/* =================================================================
   Floors & Stone — Base stylesheet
   Mobile-first. Every section scales fluidly from small phones
   up to large desktops.
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
    /* Colours */
    --color-bg:        #0e0e0e;
    --color-ink:       #1c1a17;
    --color-light:     #f5f5f5;   /* primary text on dark */
    --color-gold:      #c4a87c;   /* accent / CTA */
    --color-gold-dark: #a98c5e;
    --color-overlay:   rgba(0, 0, 0, 0.5);  /* hero overlay #000 50% */

    /* Typography */
    --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Fluid hero type — design target: 130px / 130 line-height.
       Scales down gracefully on smaller screens. */
    --fs-hero:     clamp(3rem, 1.5rem + 8.5vw, 130px);
    --lh-hero:     1;                                  /* 130px line-height on 130px font */
    --fs-hero-sub: clamp(1.05rem, 0.95rem + 0.5vw, 22px);
    --lh-hero-sub: 1.36;                               /* ~30px on 22px */

    /* Spacing / layout */
    --container-max: 1440px;
    --container-pad: clamp(1.25rem, 0.6rem + 3vw, 4rem);
    --section-pad:   clamp(3.5rem, 2rem + 6vw, 7rem);
    --header-h:      88px;

    --transition: 0.25s ease;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
    scroll-behavior: smooth;
    /* Offset anchor targets by the fixed header plus a little clearance so
       the section lands fully visible, not tucked under the header. */
    scroll-padding-top: calc(var(--header-h) + 0.75rem);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: #302d28;          /* dark text on a light site */
    background: #ffffff;     /* hero & footer set their own dark backgrounds */
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, picture, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

/* ---------- Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.25rem;
    font: inherit;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition);
}

.btn--outline {
    width: 210px;
    height: 52px;
    padding: 0;
    gap: 0.6rem;
    background: transparent;
    color: var(--color-light);
    border: 1px solid var(--color-light);
    border-radius: 100px;          /* fully rounded pill */
    font-weight: 400;              /* Poppins Regular */
    font-size: 15px;
    letter-spacing: 0.02em;
    text-transform: none;
}
.btn--outline .btn__arrow {
    width: 13px;
    height: 13px;
    transition: transform var(--transition);
}
.btn--outline:hover {
    background: var(--color-light);
    color: #14110d;
}
.btn--outline:hover .btn__arrow {
    transform: translate(2px, -2px);
}

/* Gold variant (About section CTA) */
.btn--outline.btn--gold {
    color: #906d22;
    border-color: #906d22;
}
.btn--outline.btn--gold:hover {
    background: #906d22;
    color: #f5f5f5;
}

/* Solid gold variant (builders CTA) */
.btn--filled {
    width: 210px;
    height: 52px;
    padding: 0;
    gap: 0.6rem;
    background: #906d22;
    color: #ffffff;
    border: 1px solid #906d22;
    border-radius: 100px;
    font-weight: 400;
    font-size: 15px;
}
.btn--filled .btn__arrow {
    width: 13px;
    height: 13px;
    transition: transform var(--transition);
}
.btn--filled:hover {
    background: #7a5b1d;
    border-color: #7a5b1d;
}
.btn--filled:hover .btn__arrow {
    transform: translate(2px, -2px);
}

/* ---------- Site header / nav ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 120;   /* above the mobile menu so the logo + close button stay on top */
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled {
    background: rgba(14, 14, 14, 0.92);
    backdrop-filter: blur(6px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

/* Desktop nav links */
.nav__list {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2vw, 2.5rem);
}
.nav--right .nav__list { justify-content: flex-end; }

.nav__link {
    font-weight: 500;          /* Poppins Medium */
    font-size: 14px;
    color: var(--color-light);
    letter-spacing: 0.04em;
    position: relative;
    padding-block: 0.25rem;
    white-space: nowrap;
}
.nav__link::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--color-gold);
    transition: width var(--transition);
}
.nav__link:hover { color: var(--color-gold); }
.nav__link:hover::after { width: 100%; }

/* Brand / logo */
.brand {
    display: inline-flex;
    align-items: center;
    justify-self: center;
}
.brand__logo {
    height: 58px;
    width: auto;
}

/* Hamburger (hidden on desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    justify-self: end;
    grid-column: 3;
    z-index: 110;
}
.nav-toggle__bar {
    display: block;
    width: 26px;
    height: 2px;
    margin-inline: auto;
    background: var(--color-light);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile slide-in menu */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(14, 14, 14, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    visibility: hidden;
    z-index: 105;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}
.mobile-nav__link {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.mobile-nav__link:hover { color: var(--color-gold); }

body.nav-open { overflow: hidden; }

/* Switch to mobile layout below 920px */
@media (max-width: 920px) {
    .site-header__inner { grid-template-columns: 1fr auto 1fr; }
    .nav--left,
    .nav--right { display: none; }
    .brand { grid-column: 2; }
    .brand__logo { height: 50px; }
    .nav-toggle { display: inline-flex; }
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;     /* content sits toward the bottom */
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url("../images/hero.png");
    background-size: cover;
    background-position: center;
    background-color: #1a1714;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--color-overlay);   /* #000000 @ 50% */
}

.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding-top: calc(var(--header-h) + 2rem);
    /* Lift the content up off the bottom edge */
    padding-bottom: clamp(4rem, 16vh, 11rem);
}

/* Headline + subtitle block */
.hero__content {
    display: flex;
    flex-direction: column;
}
.hero__title {
    font-weight: 400;          /* Poppins Regular */
    font-size: var(--fs-hero);
    line-height: var(--lh-hero);
    color: var(--color-light);
    letter-spacing: -0.01em;
}

/* Accent line sits beside the subtitle */
.hero__sub-row {
    display: flex;
    align-items: flex-start;
    gap: clamp(1rem, 1.5vw, 1.75rem);
    margin-top: 1.75rem;
}
.hero__line {
    flex: none;
    width: 2px;                 /* weight 2 */
    height: 53px;               /* design spec */
    background: var(--color-light);
    margin-top: 0.25rem;
}
.hero__subtitle {
    font-weight: 400;
    font-size: var(--fs-hero-sub);
    line-height: var(--lh-hero-sub);
    color: var(--color-light);
    max-width: 52ch;
}

/* CTA on the right */
.hero__cta {
    flex: none;
    padding-bottom: 0.5rem;
}

/* Stack the CTA under the text on smaller screens */
@media (max-width: 820px) {
    .hero__inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero__cta { padding-bottom: 0; }
}

/* ---------- ABOUT ---------- */
.about {
    background: #fdfcfa;
    color: #302d28;
    padding-block: var(--section-pad);
}

/* Label row: badge + eyebrow + rule */
/* ---------- Reusable section heading (label row + title + lead) ---------- */
.section-label {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.75rem);
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-label__badge {
    flex: none;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(133, 94, 19, 0.5);   /* #855E13 @ 50% */
    font-weight: 300;                           /* Poppins Light */
    font-size: 30px;
    line-height: 1;
    color: rgba(133, 94, 19, 0.5);
}
.section-label__eyebrow {
    flex: none;
    font-weight: 400;                           /* Poppins Regular */
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0.04em;
    color: #302d28;
}
.section-label__rule {
    flex: 1;
    height: 1px;
    background: rgba(133, 94, 19, 0.25);        /* #855E13 @ 25% */
}
.section-title {
    font-weight: 400;                           /* Poppins Regular */
    font-size: clamp(1.75rem, 1.2rem + 1.6vw, 40px);
    line-height: 1.25;                          /* 50 on 40 */
    color: #302d28;
    max-width: 20ch;
    margin-bottom: 1.75rem;
}
/* Body / lead copy shared across sections */
.section-text,
.about__body p {
    font-weight: 300;                           /* Poppins Light */
    font-size: 14px;
    line-height: 25px;
    color: #000000;
    max-width: 62ch;
}

/* Content grid */
.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 4rem);
}
@media (min-width: 980px) {
    .about__grid {
        /* Text takes the remaining space; media sizes to the images,
           which are driven by the (stretched) column height. */
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;   /* media column == text column height */
    }
}

.about__body {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 2.25rem;
}

/* Media column: two portrait images side by side */
.about__media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
.about__img {
    width: 100%;
    height: auto;
    /* Exact source proportion — the whole image shows, never cropped or stretched */
    aspect-ratio: 318 / 486;
    object-fit: cover;   /* harmless: box ratio == image ratio, so no crop occurs */
}

/* Desktop: images take their height from the text column and keep
   their exact proportion, so their bottoms line up with the button. */
@media (min-width: 980px) {
    .about__media {
        display: flex;
        height: 100%;
    }
    .about__img {
        height: 100%;
        width: auto;
        min-height: 0;
        flex: 0 0 auto;
        /* aspect-ratio (set above) transfers height -> width, exact proportion */
    }
}

/* ---------- SERVICES ---------- */
.services {
    padding-block: var(--section-pad);
}
/* Title + subtitle each on a single row */
.services__title,
.services__lead {
    max-width: none;
}
.services__lead {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Featured image with the card slider overlaid on top of it */
.services__showcase {
    position: relative;
}
.services__feature {
    width: 64%;
}
.services__feature img {
    width: 100%;
    aspect-ratio: 873 / 627;      /* exact source proportion — no crop */
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;   /* crossfade in sync with the card row */
}
.services__feature img.is-fading { opacity: 0; }

/* Slider panel floats over the image; the active box straddles its right edge
   (image is 64% wide, active box is 340px → start half a box-width before 64%).
   The right edge breaks out of the container all the way to the screen edge. */
.services__panel {
    position: absolute;
    left: calc(64% - 170px);
    right: calc(-1 * (max(0px, (100vw - var(--container-max)) / 2) + var(--container-pad)));
    top: 50%;
    transform: translateY(-50%);
}

.services__cards {
    display: flex;
    gap: clamp(1rem, 1.6vw, 1.5rem);
    align-items: center;
    overflow: visible;   /* let the active card scale up without being clipped */
}

/* Cards keep a fixed slot and never move; only the active one scales up. */
.service-card {
    flex: 0 0 auto;
    width: 280px;
    height: 332px;
    display: flex;
    flex-direction: column;
    text-align: center;
    background: #ffffff;
    border: 1.2px solid rgba(133, 94, 19, 0.1);   /* #855E13 @ 10% */
    padding: 1.35rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card__media {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}
.service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-card__info {
    flex: 0 0 auto;
    margin-top: 1.1rem;
}

/* Card type (scales up with the card when active, matching the larger design) */
.service-card__title {
    font-weight: 400;             /* Poppins */
    font-size: 22px;
    line-height: 50px;
    color: #302d28;
}
.service-card__desc {
    font-weight: 300;             /* Poppins Light */
    font-size: 12px;
    line-height: 17px;
    color: #000000;
}

/* Active / featured card — scales up in place (340/280 ≈ 1.21) and lifts above
   its neighbours, so the row stays put and only the active box changes. */
.service-card--active {
    transform: scale(1.214);
    z-index: 2;
}

/* Slider arrows — square 60×60, anchored bottom-right of the showcase */
.services__nav {
    position: absolute;
    right: 0;
    bottom: clamp(1rem, 4%, 2.25rem);
    display: flex;
    gap: 0.75rem;
}
.services__arrow {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #906d22;    /* 1 weight */
    background: transparent;
    color: #906d22;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.services__arrow:hover:not(.is-disabled) {
    background: #906d22;
    color: #ffffff;
}
.services__arrow.is-disabled {
    border-color: rgba(133, 94, 19, 0.2);   /* #855E13 @ 20% */
    color: rgba(133, 94, 19, 0.2);
    cursor: default;
}
.services__arrow .arrow-ico { display: block; }
.services__arrow--next .arrow-ico { transform: rotate(45deg); }   /* → */
.services__arrow--prev .arrow-ico { transform: rotate(225deg); }  /* ← */

/* Stack cleanly on smaller screens — no overlap */
@media (max-width: 860px) {
    .services__feature { width: 100%; }
    .services__panel {
        position: static;
        transform: none;
        left: auto;
        right: auto;
        margin-top: 1.5rem;
    }
    .services__cards {
        overflow-x: auto;
        align-items: stretch;
        padding-bottom: 0.5rem;
    }
    .services__nav {
        position: static;
        margin-top: 1.25rem;
        justify-content: flex-end;
    }
}

/* ---------- STONE WORK / FABRICATION ---------- */
.fabrication {
    background: #fdfcfa;          /* same warm section background */
    padding-block: var(--section-pad);
}
/* Title + subtitle each on a single row */
.fabrication__title,
.fabrication__lead {
    max-width: none;
}
.fabrication__lead {
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.fab-row {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 400px);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    padding-block: clamp(1.5rem, 3vw, 2.25rem);
    border-top: 1px solid rgba(133, 94, 19, 0.1);   /* #855E13 @ 10% */
}
.fab-row:first-child {
    border-top: 0;                /* separators sit between rows only */
}
.fab-row__title {
    margin: 0;
    font-weight: 400;             /* Poppins Regular */
    font-size: 25px;
    line-height: 30px;
    color: #302d28;
    cursor: pointer;
    transition: color var(--transition);
}
.fab-row__title:hover {
    color: #906d22;
}
.fab-row__text {
    margin: 0;
    font-weight: 300;             /* Poppins Light */
    font-size: 14px;
    line-height: 25px;
    color: #000000;
    max-width: 44ch;
}

/* Stack on small screens */
@media (max-width: 760px) {
    .fab-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        align-items: start;
    }
}

/* ---------- BUILDERS CTA BANNER (full-bleed, flush to section above) ---------- */
.cta-banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(440px, 44vw, 680px);
    background: #1a1714 url("../images/custom-flooring.jpg") center / cover no-repeat;
    overflow: hidden;
}
.cta-banner__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);                /* #000000 @ 50% */
}
/* content aligns with the rest of the site's container width */
.cta-banner__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
    padding-block: 2rem;
}
.cta-banner__title {
    font-weight: 400;                              /* Poppins Regular */
    font-size: clamp(2rem, 0.8rem + 4.4vw, 70px);  /* up to 70px */
    line-height: 1;                                /* 70 / 70 */
    color: #ffffff;
    max-width: 900px;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

/* ---------- WHY US ---------- */
.why-us {
    background: #fdfcfa;          /* same warm section background */
    padding-block: var(--section-pad);
}
.why-us__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(2rem, 4vw, 4rem);
    margin-top: clamp(2rem, 4vw, 3.5rem);
}
.why-col__title {
    font-weight: 600;            /* Poppins Semibold */
    font-size: 14px;
    line-height: 25px;
    color: #000000;
    margin-bottom: 0.5rem;
}
.why-col__text {
    font-weight: 300;            /* Poppins Light */
    font-size: 14px;
    line-height: 25px;
    color: #000000;
    max-width: 42ch;
}

/* ---------- SERVICE AREA ---------- */
.service-area {
    background: #ffffff;
    padding-block: var(--section-pad);
}
.service-area__showcase {
    position: relative;
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.service-area__map {
    width: 86%;
}
.service-area__map .us-map {
    width: 100%;
    height: auto;
    display: block;
}
/* inactive states */
.service-area__map .us-map path,
.service-area__map .us-map circle {
    fill: #e7dfd0;
    stroke: #ffffff;
    stroke-width: 1;
}
/* hide Alaska & Hawaii insets + stray fragments — contiguous US only */
.service-area__map .us-map #AK,
.service-area__map .us-map #HI,
.service-area__map .us-map #path58,
.service-area__map .us-map #path67 {
    display: none;
}
/* active states */
.service-area__map .us-map #WI,
.service-area__map .us-map #IL,
.service-area__map .us-map #IN,
.service-area__map .us-map #KS,
.service-area__map .us-map #AZ,
.service-area__map .us-map #TN {
    fill: #906d22;
}

/* fixed info box overlapping the right side of the map */
.service-area__box {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 460px;
    height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(133, 94, 19, 0.1);   /* #855E13 @ 10% */
    padding: clamp(1.75rem, 2.5vw, 2.5rem);
}
.sa-group {
    margin-bottom: 1.5rem;
}
.sa-group__title {
    font-weight: 600;            /* Poppins Semibold */
    font-size: 15px;
    line-height: 1.5;
    color: #302d28;
    margin-bottom: 0.25rem;
}
.sa-group__locations {
    font-weight: 300;
    font-size: 14px;
    line-height: 1.6;
    color: #000000;
}
.sa-desc {
    font-weight: 300;            /* Poppins Light */
    font-size: 14px;
    line-height: 25px;
    color: #000000;
    margin-bottom: 1.75rem;
}

/* Stack on smaller screens — box drops below the map */
@media (max-width: 900px) {
    .service-area__map {
        width: 100%;
    }
    .service-area__box {
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        margin-top: 1.5rem;
    }
}

/* ---------- Contact / footer (light, continues the section above) ---------- */
.site-footer {
    position: relative;
    background: #ffffff;
    color: #302d28;
    padding-block: var(--section-pad);   /* same rhythm as every other section */
}

/* Layout: single column on mobile (info → form → copyright/social),
   two columns on desktop (info+meta stacked left, form spanning the right). */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "info"
        "form"
        "meta";
    gap: clamp(2.5rem, 5vw, 4.5rem);
}
.contact__info      { grid-area: info; }
.contact__form-wrap { grid-area: form; }
.contact__meta      { grid-area: meta; }

@media (min-width: 900px) {
    .contact__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "info form"
            "meta form";
        align-items: start;
        column-gap: clamp(2.5rem, 5vw, 4.5rem);
        row-gap: 2rem;
    }
}

/* --- Left column --- */
.contact__title {
    max-width: none;
    margin-bottom: 1rem;
}
.contact__lead {
    font-weight: 300;            /* Poppins Light */
    font-size: 13px;
    line-height: 1.6;
    color: #302d28;
    max-width: none;
    white-space: nowrap;
    margin-bottom: 2.5rem;
}
@media (max-width: 620px) {
    .contact__lead { white-space: normal; }
}

.contact__details {
    margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
}
.contact__detail {
    display: flex;
    gap: 0.4rem;
    padding-block: 0.95rem;
    border-bottom: 1px solid rgba(133, 94, 19, 0.12);   /* #855E13 @ 12% */
    font-weight: 300;
    font-size: 14px;
    line-height: 1.5;
    color: #302d28;
}
.contact__detail dt { margin: 0; }
.contact__detail dd { margin: 0; }
.contact__detail a { transition: color var(--transition); }
.contact__detail a:hover { color: #906d22; }
.contact__note {
    padding-top: 0.95rem;
    font-weight: 600;            /* Poppins Semibold */
    font-size: 14px;
    color: #302d28;
}

/* Brand block */
.contact__logo {
    height: 54px;
    width: auto;
    margin-bottom: 1rem;
}
.contact__brand-text {
    font-weight: 300;
    font-size: 13px;
    line-height: 1.7;
    color: #302d28;
    max-width: 52ch;
    margin-bottom: 2rem;
}
.contact__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(133, 94, 19, 0.12);   /* #855E13 @ 12% */
}
.contact__copy {
    font-weight: 300;
    font-size: 13px;
    color: rgba(48, 45, 40, 0.7);
}

/* Social icons — each glyph centred in an equal square so the row reads evenly */
.social {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #906d22;
    transition: color var(--transition), transform var(--transition);
}
.social__link:hover {
    color: #302d28;
    transform: translateY(-2px);
}
.social__ico {
    display: block;
    width: auto;
    height: 19px;          /* equal optical height; width follows each mark */
}

/* --- Right column: form --- */
.contact-form {
    display: grid;
    gap: 1.1rem;
}
.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}
@media (max-width: 480px) {
    .contact-form__row { grid-template-columns: 1fr; }
}

.field {
    position: relative;
    display: block;
}
/* Accessible label kept for screen readers; the visible cue is the placeholder */
.field__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 16px 18px;
    font: inherit;
    font-weight: 300;            /* Poppins Light */
    font-size: 14px;
    color: #302d28;
    background: #ffffff;
    border: 1px solid rgba(48, 45, 40, 0.85);
    border-radius: 0;
    transition: border-color var(--transition);
    -webkit-appearance: none;
    appearance: none;
}
.field input::placeholder,
.field textarea::placeholder,
.field select:invalid {
    color: rgba(48, 45, 40, 0.55);
}
.field textarea {
    resize: vertical;
    min-height: 150px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: #906d22;
}

/* Custom dropdown caret */
.field--select { position: relative; }
.field--select select {
    padding-right: 40px;
    cursor: pointer;
}
.field--select::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 1px solid #302d28;
    border-bottom: 1px solid #302d28;
    transform: rotate(45deg);
    pointer-events: none;
}

.contact-form__submit {
    width: 150px;
    height: 48px;
    letter-spacing: 0.08em;
    margin-top: 0.5rem;
}

/* Back-to-top button — sits on the bottom edge, inset from the right */
.to-top {
    position: absolute;
    right: clamp(2rem, 8vw, 7rem);
    bottom: 0;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #efe9df;
    color: #906d22;
    transition: background var(--transition), color var(--transition);
}
.to-top:hover {
    background: #906d22;
    color: #ffffff;
}

/* ---------- Scroll reveal ----------
   Subtle fade + rise. The .reveal class is only added by JS, so without
   scripting (or before it runs) everything stays fully visible. */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    /* Never leave reveal targets stuck invisible when motion is off. */
    .reveal { opacity: 1; transform: none; }
}
