/* ═══════════════════════════════════════════════════════
   TWH Built — Style Sheet
   Dark Premium · Engineering Aesthetic
   ═══════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────── */
:root {
    --bg: #1A1A1A;
    --surface: #1E1E1E;
    --surface-deep: #0A0A0A;
    --surface-mid: #252525;
    --text-heading: #FFFFFF;
    --text-body: #E0E0E0;
    --text-muted: #888888;
    --accent: #D4A84B;
    --accent-dim: rgba(212, 168, 75, 0.25);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --space-xs: 0.35rem;
    --space-sm: 0.75rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 5rem;

    --max-width: 1100px;
    --radius: 4px;
    --transition: 0.3s ease;
}

/* ── Reset & Base ──────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}


/* ═══════════════════════════════════════════════════════
   SITE NAV (sub-pages only)
   ═══════════════════════════════════════════════════════ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(212, 168, 75, 0.15);
}

.site-nav__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.site-nav__home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-heading);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color var(--transition);
}

.site-nav__home svg {
    color: var(--accent);
    flex-shrink: 0;
}

.site-nav__home:hover {
    color: var(--accent);
}

.site-nav__section {
    font-weight: 300;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* ═══════════════════════════════════════════════════════
   SECTION 1 — HERO (Reduced height, heavy overlay)
   ═══════════════════════════════════════════════════════ */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45vh;
    min-height: 300px;
    max-height: 450px;
    overflow: hidden;
}

/* Sub-page hero: half the height, offset for fixed nav */
.hero--sub {
    height: 30vh;
    min-height: 200px;
    max-height: 300px;
    padding-top: 56px;
    /* nav height */
}

.hero--sub .hero__title {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
}

.hero--sub .hero__tagline {
    font-size: clamp(0.55rem, 1.2vw, 0.65rem);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    padding: var(--space-lg) var(--space-md);
}

.hero__logo {
    display: block;
    margin: 0 auto var(--space-md);
    color: white;
    opacity: 0.9;
}

.hero__title {
    font-weight: 600;
    font-size: clamp(2.4rem, 7vw, 4rem);
    color: var(--text-heading);
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero__rule {
    width: 48px;
    height: 2px;
    background-color: var(--accent);
    margin: 1.2rem auto;
}

.hero__tagline {
    font-weight: 500;
    font-size: clamp(0.6rem, 1.5vw, 0.75rem);
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}


/* ═══════════════════════════════════════════════════════
   SHARED SECTION STYLES
   ═══════════════════════════════════════════════════════ */
.section {
    padding: var(--space-xl) var(--space-md);
}

.section__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section__heading {
    font-weight: 600;
    font-size: clamp(1.1rem, 2.8vw, 1.5rem);
    color: var(--accent);
    letter-spacing: 0.02em;
    margin-bottom: var(--space-sm);
    text-align: center;
}

/* (removed --dark variant, How We Work is back on dark bg) */

.section__intro {
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 360px;
    margin: 0 auto var(--space-md);
    text-align: center;
    line-height: 1.8;
}


/* ═══════════════════════════════════════════════════════
   SECTION 2 — WHAT WE DO (3-column card grid on desktop)
   ═══════════════════════════════════════════════════════ */
.section--what-we-do {
    background-color: var(--bg);
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 100%;
    margin: 0 auto;
}

.card-article {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
}

.card-article__image-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.card-article__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.card-article:hover .card-article__img {
    transform: scale(1.05);
}

.card-article__title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.card-article__body {
    font-weight: 300;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card-link:hover .card-article__title {
    color: var(--text-heading);
}


/* ═══════════════════════════════════════════════════════
   SERVICE BLOCKS (surveying.html — alternating layout)
   ═══════════════════════════════════════════════════════ */
.service-block {
    padding: var(--space-xl) var(--space-md);
    background-color: var(--bg);
}

.service-block:nth-child(even) {
    background-color: var(--surface-mid);
}

.service-block__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.service-block__image-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.service-block__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: transform 0.7s ease, filter 0.7s ease;
}

.service-block__image-wrap:hover .service-block__img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

.service-block__heading {
    font-weight: 600;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--accent);
    letter-spacing: 0.02em;
    margin-bottom: var(--space-sm);
}

.service-block__body {
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.85;
}

.service-coverage {
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: var(--space-md);
    letter-spacing: 0.02em;
}

.survey-disclaimer {
    font-size: 0.68rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: var(--space-lg) auto 0;
    text-align: center;
    line-height: 1.75;
    opacity: 0.65;
}

.service-block__text {
    text-align: center;
}


/* ═══════════════════════════════════════════════════════
   SECTION 3 — HOW WE WORK (Slightly lighter dark, centre-aligned)
   ═══════════════════════════════════════════════════════ */
.section--how-we-work {
    background-color: var(--surface-mid);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.process-step {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.process-step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.process-step__title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.process-step__rule {
    width: 24px;
    height: 2px;
    background-color: var(--accent);
}

.process-step__desc {
    font-weight: 300;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 220px;
}


/* ═══════════════════════════════════════════════════════
   SECTION 4 — CONTACT
   ═══════════════════════════════════════════════════════ */
.section--contact {
    background-color: var(--bg);
    text-align: center;
    padding: var(--space-xl) var(--space-md);
}

.contact-lines {
    margin-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-line {
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--text-body);
}

.contact-link {
    color: var(--accent);
    border-bottom: 1px solid var(--accent-dim);
    padding-bottom: 2px;
    transition: border-color var(--transition), color var(--transition);
}

.contact-link:hover {
    color: var(--text-heading);
    border-color: var(--text-heading);
}


/* ═══════════════════════════════════════════════════════
   SECTION 5 — FOOTER (Near-black, logo repeat)
   ═══════════════════════════════════════════════════════ */
.footer {
    background-color: var(--surface-deep);
    padding: var(--space-xl) var(--space-md);
    text-align: center;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.footer__logo-mark {
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent);
    transform: rotate(45deg);
    margin-bottom: var(--space-xs);
}

.footer__name {
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.footer__rule {
    width: 32px;
    height: 1px;
    background-color: #333;
}

.footer__text {
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: var(--space-sm);
}


/* ═══════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Desktop (>768px)
   ═══════════════════════════════════════════════════════ */
@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: none;
        margin: 0;
    }

    .process-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .contact-lines {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-lg);
    }

    .section__intro {
        max-width: 580px;
    }

    /* Service blocks: two equal columns on desktop */
    .service-block__inner {
        grid-template-columns: 1fr 1fr;
    }

    .service-block__text {
        text-align: left;
    }

    /* Image-right blocks: swap column order */
    .service-block--image-right .service-block__inner {
        direction: rtl;
    }

    .service-block--image-right .service-block__inner>* {
        direction: ltr;
    }
}