/* ═══════════════════════════════════════════════════════════
   elevate.css — IHD Design Build
   Design elevations for Intro, Apart, Services & Footer
   to match the quality of the Projects + Consult sections.
═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────
   SHARED — Section label row
   Used in Intro, Apart, Services to establish consistent
   editorial entry point for each section.
───────────────────────────────────────────────────────── */
.intro-meta,
.apart-label,
.services-label {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin-bottom: 4rem;
}
.intro-meta span,
.apart-label span,
.services-label span {
    font-family: var(--font-accent);
    font-size: 1.1rem;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--color-main-100);
}

/* Rule between label text items */
.intro-meta-divider,
.apart-label-rule,
.services-label-rule {
    flex: 1;
    height: 1px;
    background: hsla(0 0% 0% / .12) !important;
    display: block !important;
    letter-spacing: 0 !important;
    font-size: 0 !important;
}

/* ─────────────────────────────────────────────────────────
   INTRO — Elevated
───────────────────────────────────────────────────────── */

/* Meta label sits above the editable content, right-aligned */
.intro .intro-meta {
    width: calc(58.5% - 1.6rem);
    margin-left: auto;
    margin-bottom: 3.2rem;
    padding-top: 2.4rem;
    border-top: 1px solid hsla(0 0% 0% / .12);
}

/* Tagline — replace the plain <strong> with a typographic statement */
.intro-tagline {
    margin-top: 4rem !important;
    padding-top: 3.2rem;
    border-top: 1px solid hsla(0 0% 0% / .1);
    position: relative;
}
.intro-tagline span {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 2.4vw, 3.2rem);
    line-height: 1.25;
    color: var(--color-main);
    font-weight: 400;
}
.intro-tagline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4.8rem;
    height: 2px;
    background: var(--color-main);
    transform: translateY(-1px);
}

/* ─────────────────────────────────────────────────────────
   APART — Elevated
───────────────────────────────────────────────────────── */
.apart {
    background: var(--color-light);
}
.apart-label {
    border-top: 1px solid hsla(0 0% 0% / .16);
    padding-top: 2.4rem;
    margin-bottom: 6.4rem;
}

/* Supporting sub-copy under heading */
.apart-sub {
    margin-top: 2.4rem;
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--color-dark);
    opacity: 0.55;
    max-width: 40rem;
}

/* List items — add numbered indicators */
.apart ul li {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    padding-block: 2rem;
}
.apart-li-num {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-main-100);
    flex-shrink: 0;
    width: 2.4rem;
    letter-spacing: 0.04em;
}
.apart-li-text {
    flex: 1;
    font-size: clamp(1.8rem, 1.4vw, 2rem);
    font-family: var(--font-accent);
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: .24em;
    font-weight: 400;
    color: var(--color-dark);
}

/* Hover: image now appears to the right of the row instead of overlapping */
.apart ul li .img-wrapper {
    left: auto;
    right: 0;
    transform: translate(0, -50%);
    width: 20rem;
    aspect-ratio: 4 / 3;
    display: none;
}
.apart ul li:hover .img-wrapper {
    opacity: 1;
}

/* Line reveal animation on hover — the border grows left-to-right */
.apart ul li {
    overflow: visible;
}
.apart ul li::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-main);
    transition: width 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}
.apart ul li:hover::after {
    width: 100%;
}

/* ─────────────────────────────────────────────────────────
   SERVICES — Elevated
───────────────────────────────────────────────────────── */

/* Label row sits above the boxes, light text on dark bg */
.services-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.4rem 3.2rem;
    z-index: 2;
    border-bottom: 1px solid hsla(67 33% 91% / .16);
    margin-bottom: 0;
}
.services-label span {
    color: hsla(67 33% 91% / .45);
}
.services-label .services-label-rule {
    background: hsla(67 33% 91% / .12) !important;
}

/* Push box content down to clear the label row */
.services {
    min-height: 72rem;
}

/* Service number badge — architectural small numeral top-left of each box */
.services .box .content-wrapper::before {
    content: attr(data-num);
    position: absolute;
    top: 3.2rem;
    left: 2.4rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: hsla(67 33% 91% / .35);
    letter-spacing: 0.08em;
    transition: var(--animate-medium);
}
.services .box:hover .content-wrapper::before {
    color: hsla(67 33% 91% / .6);
}

/* ─────────────────────────────────────────────────────────
   FOOTER — Full designed footer
───────────────────────────────────────────────────────── */
footer {
    background: var(--color-dark);
    padding: 0;
    text-align: left;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 6.4rem;
    padding: 8rem 3.2rem 6.4rem;
    border-bottom: 1px solid hsla(67 33% 91% / .08);
    align-items: start;
}

/* Brand column */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}
.footer-logo {
    display: block;
    width: 12rem;
}
.footer-logo img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}
.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    color: var(--color-light);
    letter-spacing: 0.08em;
    line-height: 1;
}
.footer-tagline {
    font-family: var(--font-body);
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--color-light);
    opacity: 0.72;
    margin: 0;
}
.footer-coords {
    margin-top: auto;
}
.footer-coords span {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-main-100);
    opacity: 1;
}

/* Nav columns */
.footer-nav-col {}
.footer-nav-heading {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--color-main-100);
    opacity: 1;
    margin: 0 0 2.4rem;
}
.footer-nav-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.footer-nav-col ul li {
    margin: 0;
    padding: 0;
}
.footer-nav-col ul li a {
    font-family: var(--font-body);
    font-size: 1.4rem;
    color: var(--color-light);
    text-decoration: none;
    opacity: 0.65;
    transition: opacity 0.25s ease, color 0.25s ease;
    display: inline-block;
    position: relative;
}
.footer-nav-col ul li a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-main-100);
    transition: width 0.35s cubic-bezier(0.76, 0, 0.24, 1);
}
.footer-nav-col ul li a:hover {
    opacity: 1;
    color: var(--color-light);
}
.footer-nav-col ul li a:hover::after {
    width: 100%;
}

/* Contact column */
.footer-contact-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
    min-width: 24.6rem;
}
.footer-email,
.footer-phone {
    font-family: var(--font-body);
    font-size: 1.4rem;
    color: var(--color-light);
    text-decoration: none;
    opacity: 0.65;
    transition: opacity 0.25s ease;
    display: block;
}
.footer-email:hover,
.footer-phone:hover {
    opacity: 1;
    color: var(--color-light);
}
.footer-cta {
    margin-top: 1.6rem;
    color: var(--color-light);
}
.footer-cta::before {
    border-color: hsla(67 33% 91% / .35);
}
.footer-cta::after {
    filter: invert(1);
}
.footer-cta:hover {
    color: var(--color-dark);
}
.footer-cta:hover::before {
    background: var(--color-light);
    border-color: var(--color-light);
}
.footer-cta:hover::after {
    filter: invert(0);
    transform: rotate(45deg);
}

/* Bottom bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.4rem 3.2rem;
    gap: 2.4rem;
}
.footer-legal {
    font-family: var(--font-accent);
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-main-100);
    opacity: 1;
    margin: 0;
}
.footer-legal-links {
    display: flex;
    gap: 3.2rem;
}
.footer-legal-links a {
    font-family: var(--font-accent);
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-main-100);
    opacity: 1;
    text-decoration: none;
    transition: opacity 0.25s ease;
}
.footer-legal-links a:hover {
    opacity: 0.7;
    color: var(--color-light);
}

/* ─────────────────────────────────────────────────────────
   SHARED ENTRANCE ANIMATION SYSTEM — ev-reveal
   A unified, lightweight reveal used across all sections.
   .ev-reveal = hidden state
   .ev-reveal.in-view = visible state
   .ev-delay-1/2/3/4 = stagger delays
───────────────────────────────────────────────────────── */
.ev-reveal {
    opacity: 0;
    transform: translateY(2.8rem);
    transition:
        opacity  0.75s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.ev-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}
.ev-delay-1 { transition-delay: 0.12s; }
.ev-delay-2 { transition-delay: 0.22s; }
.ev-delay-3 { transition-delay: 0.32s; }
.ev-delay-4 { transition-delay: 0.42s; }

/* Services label starts hidden (dark bg variant) */
.services-label.ev-reveal {
    opacity: 0;
    transform: none; /* label is position:absolute, skip translate */
}
.services-label.in-view {
    opacity: 1;
}
