/* ============================================================
   Eastscape — main stylesheet
   Single sans-serif (Manrope), brand green #30746D, generous
   whitespace, editorial typography hierarchy.
   ============================================================ */

:root {
    /* Brand */
    --brand:           #30746D;
    --brand-deep:      #234F4B;
    --brand-soft:      #5E988F;
    --brand-mist:      #DCE9E5;
    --brand-tint:      #EEF4F2;
    --brand-paper:     #F7F9F7;

    /* Neutrals */
    --ink:             #1A2624;
    --ink-soft:        #4A5957;
    --ink-mute:        #7A8886;
    --line:            #E1E5E2;
    --paper:           #FBFBF8;
    --white:           #FFFFFF;

    /* Accents */
    --warm:            #C9A878;   /* warm stone accent */

    /* Type */
    --font:            'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Layout */
    --container:       1280px;
    --container-tight: 960px;
    --container-wide:  1440px;
    --gutter:          clamp(1.25rem, 4vw, 2.5rem);
    --section:         clamp(4rem, 9vw, 7.5rem);
    --radius:          4px;
    --radius-lg:       12px;

    /* Motion */
    --ease:            cubic-bezier(.2,.7,.2,1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }

body {
    margin: 0;
    font-family: var(--font);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

a {
    color: var(--brand);
    text-decoration: none;
    transition: color .25s var(--ease);
}
a:hover { color: var(--brand-deep); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.018em;
    color: var(--ink);
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 700; letter-spacing: -.028em; }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); letter-spacing: -.022em; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; font-weight: 600; }

::selection { background: var(--brand); color: #fff; }

/* Visible focus */
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
.container--tight { max-width: var(--container-tight); }
.container--wide  { max-width: var(--container-wide); }

.section { padding: var(--section) 0; }
.section--tint  { background: var(--brand-tint); }
.section--paper { background: var(--brand-paper); }

/* When a section sits immediately under a page-header, the header's own
   bottom padding is enough — drop the section's top padding right down. */
.page-header + .section { padding-top: clamp(1rem, 2vw, 1.75rem); }
.section--dark  {
    background: var(--brand-deep);
    color: #E8EFEC;
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark a  { color: #fff; border-color: rgba(255,255,255,.4); }

/* Section eyebrow */
.eyebrow {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--brand);
    margin: 0 0 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: .75rem;
}
.eyebrow::before {
    content: '';
    width: 32px; height: 1px;
    background: var(--brand);
}
.section--dark .eyebrow { color: var(--brand-mist); }
.section--dark .eyebrow::before { background: var(--brand-mist); }

.lede {
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    line-height: 1.55;
    color: var(--ink-soft);
    font-weight: 400;
    max-width: 62ch;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .95rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .005em;
    line-height: 1;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all .25s var(--ease);
    text-align: center;
}
.btn--primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}
.btn--primary:hover {
    background: var(--brand-deep);
    border-color: var(--brand-deep);
    color: #fff;
    transform: translateY(-1px);
}
.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn--ghost:hover {
    background: var(--ink);
    color: #fff;
}
.btn--ghost-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.6);
}
.btn--ghost-light:hover {
    background: #fff;
    color: var(--brand-deep);
    border-color: #fff;
}
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   Site header
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease);
}
.site-header.scrolled {
    border-bottom-color: var(--line);
}
.site-header__inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 1.1rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.brand img {
    width: clamp(180px, 22vw, 234px);
    height: auto;
}

/* Primary nav (desktop layout — both menu and social icons inline) */
.primary-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.primary-nav__list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    gap: 2.25rem;
}
.primary-nav__list a {
    color: var(--ink);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .005em;
    position: relative;
    padding: .35rem 0;
}
.primary-nav__list a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .35s var(--ease);
}
.primary-nav__list a:hover:not(.nav-cta)::after,
.primary-nav__list a[aria-current="page"]:not(.nav-cta)::after { transform: scaleX(1); }
.primary-nav__list a[aria-current="page"]:not(.nav-cta) { color: var(--brand); }

.primary-nav__list a.nav-cta {
    display: inline-flex;
    align-items: center;
    background: var(--brand);
    color: #fff !important;
    padding: .7rem 1.75rem;
    border-radius: 999px;
    line-height: 1;
    transition: background .25s var(--ease);
}
.primary-nav__list a.nav-cta:hover { background: var(--brand-deep); }

/* ----- Dropdown submenu (desktop) ----- */
.has-submenu { position: relative; }
.submenu {
    list-style: none;
    margin: 0;
    padding: .5rem 0;
    position: absolute;
    top: calc(100% + .5rem);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    min-width: 280px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 20px 40px -15px rgba(35, 79, 75, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
    z-index: 200;
}
/* Invisible bridge above the submenu so the cursor can travel from
   the parent link to the dropdown without it closing mid-move. */
.submenu::before {
    content: '';
    position: absolute;
    inset: -.5rem 0 auto 0;
    height: .5rem;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear 0s;
}
.submenu li {
    display: block;
}
.primary-nav__list .submenu a {
    display: block;
    padding: .55rem 1.4rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.primary-nav__list .submenu a::after { display: none; } /* no underline animation inside dropdown */
.primary-nav__list .submenu a:hover {
    background: var(--brand-tint);
    color: var(--brand-deep);
}
.primary-nav__list .submenu a[aria-current="page"] {
    color: var(--brand);
    background: var(--brand-tint);
}

/* Social icons (desktop: small inline; mobile: larger inside drawer) */
.nav-social {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    gap: .35rem;
    padding-left: 1rem;
    border-left: 1px solid var(--line);
}
.nav-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    color: var(--ink-soft);
    transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-social a:hover {
    color: var(--brand);
    background: var(--brand-tint);
}

/* Mobile header actions: phone + burger */
.header-mobile {
    display: none;
    align-items: center;
    gap: .25rem;
}
.header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    color: var(--brand);
    border-radius: 50%;
    transition: background .25s var(--ease);
}
.header-phone:hover {
    background: var(--brand-tint);
    color: var(--brand-deep);
}

/* Mobile nav toggle */
.nav-toggle {
    display: flex;
    width: 44px; height: 44px;
    padding: 0; border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.nav-toggle span {
    width: 22px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero (home)
   ============================================================ */
.hero {
    position: relative;
    padding: clamp(.75rem, 2vw, 1.75rem) 0 var(--section);
    overflow: hidden;
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}
.hero__copy h1 {
    font-size: clamp(2.1rem, 5.2vw, 3.9rem);
    font-weight: 700;
    line-height: 1.05;
}
.hero__copy h1 .accent {
    font-style: italic;
    font-weight: 300;
    color: var(--brand);
}
.hero__lede {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--ink-soft);
    line-height: 1.6;
    margin: 1.5rem 0 2.25rem;
    max-width: 50ch;
}
.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.hero__visual {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(35, 79, 75, .25);
}
.hero__slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 300ms ease-in-out;
}
.hero__slide.is-active {
    opacity: 1;
}

.hero__badge {
    position: absolute;
    bottom: 1.5rem; left: 1.5rem;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    padding: 1rem 1.25rem;
    border-radius: 6px;
    font-size: .85rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: .75rem;
    box-shadow: 0 12px 32px -10px rgba(0,0,0,.25);
}
.hero__badge strong {
    color: var(--brand);
    font-weight: 700;
}

/* Subtle decorative leaf-circle behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: 10%; right: -6%;
    width: 26vw; height: 26vw;
    max-width: 380px; max-height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--brand-mist) 0%, transparent 70%);
    z-index: -1;
    opacity: .9;
}

/* ============================================================
   Stats strip
   ============================================================ */
.stats {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 2.5rem 0;
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.stat__num {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--brand);
    letter-spacing: -.025em;
    line-height: 1;
    margin-bottom: .35rem;
}
.stat__lbl {
    font-size: .82rem;
    color: var(--ink-soft);
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ============================================================
   Services preview / cards
   ============================================================ */
.svc-preview__head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: end;
    margin-bottom: 3.5rem;
}
.svc-preview__intro p { margin: 0; }

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.service-card {
    background: var(--white);
    padding: 2rem 1.75rem 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--ease);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px -20px rgba(35, 79, 75, .18);
    border-color: var(--brand-mist);
}
.service-card:hover::after { transform: scaleX(1); }
.service-card__icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--brand-tint);
    color: var(--brand);
    display: grid; place-items: center;
    margin-bottom: 1.25rem;
}
.service-card h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.service-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ============================================================
   Featured project (homepage)
   ============================================================ */
.featured {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.featured__img {
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px -25px rgba(35, 79, 75, .3);
}
.featured__img img { width: 100%; height: 100%; object-fit: cover; }
.featured__copy h2 { margin-bottom: 1.25rem; }
.tag-list {
    list-style: none;
    margin: 1.5rem 0 2rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.tag-list li {
    font-size: .78rem;
    color: var(--brand-deep);
    background: var(--brand-tint);
    padding: .35rem .85rem;
    border-radius: 999px;
    letter-spacing: .02em;
}

/* ============================================================
   Page header (interior pages)
   ============================================================ */
.page-header {
    padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
    background: linear-gradient(180deg, var(--brand-tint) 0%, var(--paper) 100%);
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 60vw; height: 100%;
    background: radial-gradient(ellipse at center, var(--brand-mist) 0%, transparent 70%);
    z-index: 0;
    opacity: .5;
}
.page-header__inner { position: relative; z-index: 1; }
.page-header h1 {
    margin: 0;
    max-width: 18ch;
}
.page-header .lede { margin-top: 1.5rem; }

/* Contact-page header: intro lede on the left, "follow us" socials on the right */
.page-header__lede-row {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: clamp(2rem, 5vw, 4rem);
}
.page-header__social ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: .5rem;
}
.page-header__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--brand);
    background: var(--brand-tint);
    transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.page-header__social a:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-2px);
}
@media (max-width: 700px) {
    .page-header__lede-row {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 1.5rem;
    }
}

/* ============================================================
   About page
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}
.about-grid__copy p {
    font-size: 1.05rem;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.about-grid__copy p:first-of-type::first-letter {
    font-size: 3.2em;
    float: left;
    line-height: .85;
    padding: .15em .15em 0 0;
    color: var(--brand);
    font-weight: 600;
}
.about-grid__visual {
    position: sticky;
    top: 110px;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px -25px rgba(35, 79, 75, .25);
}
.about-grid__visual img { width: 100%; height: 100%; object-fit: cover; }

.values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.value {
    padding: 1.75rem 0 0;
    border-top: 2px solid var(--brand);
}
.value h3 {
    font-size: 1.05rem;
    margin: 0 0 .5rem;
    color: var(--ink);
}
.value p { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.value__num {
    font-size: .78rem;
    color: var(--brand);
    font-weight: 600;
    letter-spacing: .15em;
    display: block;
    margin-bottom: .75rem;
}

/* ============================================================
   Services page
   ============================================================ */
.svc-block {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    padding: clamp(3rem, 6vw, 5rem) 0;
    border-top: 1px solid var(--line);
}
.svc-block:first-of-type { border-top: 0; padding-top: 0; }
.svc-block__head {
    position: sticky;
    top: 110px;
}
.svc-block__head h2 {
    margin: .5rem 0 1rem;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}
.svc-block__head .num {
    font-size: .85rem;
    color: var(--brand);
    font-weight: 600;
    letter-spacing: .15em;
}
.svc-block__head p {
    color: var(--ink-soft);
    margin: 0;
}
.svc-list {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.svc-list li {
    background: var(--white);
    padding: 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    color: var(--ink);
    transition: background .25s var(--ease), color .25s var(--ease);
}
.svc-list li:hover {
    background: var(--brand-tint);
    color: var(--brand-deep);
}
.svc-list li::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--brand);
    flex-shrink: 0;
}

/* ============================================================
   Projects gallery
   ============================================================ */
.project {
    margin-bottom: clamp(4rem, 8vw, 6rem);
}
.project:last-child { margin-bottom: 0; }
.project__head {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: end;
    margin-bottom: 2.5rem;
}
.project__head h2 {
    margin: 0;
    line-height: 1.1;
}
.project__head p { margin: 0; color: var(--ink-soft); }
.project__head .tag-list { margin: 1rem 0 0; }

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* ============================================================
   Project cards (hub /projects)
   ============================================================ */
.project-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.project-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px -20px rgba(35, 79, 75, .2);
    border-color: var(--brand-mist);
    color: inherit;
}
.project-card__img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--brand-mist);
}
.project-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}
.project-card:hover .project-card__img img {
    transform: scale(1.05);
}
.project-card__copy {
    padding: 1.5rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.project-card__tags {
    margin: 0 0 1rem;
}
.project-card__title {
    margin: 0 0 .5rem;
    font-size: 1.3rem;
    line-height: 1.2;
}
.project-card__intro {
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.55;
    margin: 0 0 1.25rem;
    flex: 1;
}
.project-card__link {
    color: var(--brand);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .005em;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: gap .3s var(--ease), color .3s var(--ease);
}
.project-card:hover .project-card__link {
    color: var(--brand-deep);
    gap: .75rem;
}

/* ============================================================
   Individual project page
   ============================================================ */
.project-hero {
    width: 100%;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: clamp(3rem, 6vw, 5rem);
    box-shadow: 0 30px 60px -25px rgba(35, 79, 75, .25);
}
.project-hero img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.project-body {
    /* Full container width — was 720px max. Let me know if this reads too long */
}
.project-body p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--ink-soft);
    margin-bottom: 1.5em;
}
.project-body p:first-of-type {
    font-size: 1.2rem;
    color: var(--ink);
    line-height: 1.65;
}

/* Tag pills inside the project page header — slightly stronger contrast
   against the gradient background. */
.page-header__tags {
    margin-top: 1.75rem;
}
.page-header__tags li {
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--brand-mist);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: .45rem 1rem;
    font-size: .82rem;
}
/* Clickable tag pills (when the tag maps to a service page) */
.page-header__tags li a {
    color: inherit;
    text-decoration: none;
    transition: color .2s var(--ease);
}
.page-header__tags li:has(a):hover {
    background: var(--brand);
    border-color: var(--brand);
}
.page-header__tags li:has(a):hover a {
    color: #fff;
}

/* Service page: nicer bullet list inside the body */
.service-bullets {
    list-style: none;
    margin: 1rem 0 2rem;
    padding: 0;
}
.service-bullets li {
    padding: .85rem 0 .85rem 1.5rem;
    border-bottom: 1px solid var(--line);
    position: relative;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ink-soft);
}
.service-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.4rem;
    width: .6rem;
    height: 1px;
    background: var(--brand);
}
.service-bullets li strong {
    color: var(--ink);
    font-weight: 600;
}

/* "You might also be interested in" sister-services row */
.sister-services {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.sister-services a {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    background: var(--brand-paper);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
    transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.sister-services a:hover {
    background: var(--brand-tint);
    border-color: var(--brand-mist);
    transform: translateY(-2px);
    color: inherit;
}
.sister-services strong {
    display: block;
    grid-column: 1 / -1;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: .35rem;
    color: var(--ink);
}
.sister-services span:not(.sister-services__arrow) {
    grid-column: 1;
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.5;
}
.sister-services__arrow {
    grid-column: 2;
    grid-row: 2;
    color: var(--brand);
    font-size: 1.1rem;
    transition: transform .25s var(--ease);
}
.sister-services a:hover .sister-services__arrow {
    transform: translateX(4px);
    color: var(--brand-deep);
}

/* Related projects strip */
.related-projects {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.related-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1;
    transition: transform .35s var(--ease);
}
.related-card:hover {
    transform: translateY(-3px);
    color: inherit;
}
.related-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}
.related-card:hover img { transform: scale(1.06); }
.related-card__label {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.25rem 1rem .85rem;
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 26, 24, .85) 100%);
    z-index: 1;
}
.gallery__item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--brand-mist);
    position: relative;
    cursor: zoom-in;
    transform: translateZ(0);
}
.gallery__item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease), filter .4s var(--ease);
}
.gallery__item:hover img {
    transform: scale(1.04);
}
.gallery__item::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(35, 79, 75, .35) 100%);
    opacity: 0;
    transition: opacity .35s var(--ease);
    pointer-events: none;
}
.gallery__item:hover::after { opacity: 1; }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 26, 24, .94);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity .3s var(--ease);
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox__close,
.lightbox__nav {
    position: absolute;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: grid; place-items: center;
    cursor: pointer;
    transition: background .25s var(--ease);
    font-size: 1.5rem;
    line-height: 1;
}
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__nav--prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255,255,255,.22); }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.testimonial {
    background: var(--white);
    padding: 2rem 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    /* Keep the decorative “ mark (z-index: -1 on ::before) trapped inside
       this card. Without this, the card stops creating a stacking context
       once the fade-up animation finishes, and the quote drops behind the
       section background and vanishes. */
    isolation: isolate;
}
.testimonial p {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    flex-grow: 1;
    position: relative;
}
.testimonial p::before {
    content: '“';
    font-size: 4rem;
    color: var(--brand-mist);
    position: absolute;
    top: -1.5rem;
    left: -.5rem;
    z-index: -1;
    font-family: Georgia, serif;
    line-height: 1;
}
.testimonial cite {
    font-style: normal;
    font-weight: 600;
    color: var(--ink);
    font-size: .92rem;
}
.testimonial cite span {
    display: block;
    color: var(--ink-mute);
    font-weight: 400;
    font-size: .85rem;
    margin-top: .15rem;
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-areas:
        "info form"
        "why  form";
    column-gap: clamp(2.5rem, 6vw, 4.5rem);
    row-gap: 2.5rem;
    align-items: start;
}
.contact-grid > .contact-info { grid-area: info; }
.contact-grid > .contact-info + div { grid-area: form; }   /* form wrapper sits between info & why */
.contact-grid > .contact-why { grid-area: why; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--ink-soft); }
.contact-info__list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.contact-info__list li {
    padding: .85rem 0;
    border-top: 1px solid var(--line);
}
.contact-info__list li:last-child { border-bottom: 1px solid var(--line); }
.contact-info__list .lbl {
    display: block;
    font-size: .78rem;
    color: var(--brand);
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .35rem;
}
.contact-info__list .val {
    font-size: 1.05rem;
    color: var(--ink);
    font-weight: 500;
}

/* Why choose us bullets */
.why-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}
.why-list li {
    padding: 1rem 0 1rem 2rem;
    position: relative;
    border-top: 1px solid var(--line);
    color: var(--ink);
}
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 18px; height: 1px;
    background: var(--brand);
}

/* Form */
.contact-form {
    background: var(--white);
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-row--single { grid-template-columns: 1fr; }

/* Cloudflare Turnstile widget container */
.cf-turnstile {
    min-height: 65px;   /* prevents layout shift while widget loads */
    margin: .25rem 0 .5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .5rem;
    letter-spacing: .01em;
}
.form-group label .req { color: var(--brand); margin-left: .15rem; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: .9rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .25s var(--ease), background .25s var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 0;
    border-color: var(--brand);
    background: var(--white);
}
.form-group textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.55;
}
/* Honeypot — hide visually but available to bots */
.hp-field {
    position: absolute !important;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

.form-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: .95rem;
    line-height: 1.5;
}
.form-alert--success {
    background: var(--brand-tint);
    color: var(--brand-deep);
    border-left: 3px solid var(--brand);
}
.form-alert--error {
    background: #FCEFEF;
    color: #8C2A2A;
    border-left: 3px solid #C4434A;
}

/* ============================================================
   CTA strip (bottom of most pages)
   ============================================================ */
.cta-strip { text-align: center; }
.cta-strip h2 {
    color: #fff;
    max-width: 22ch;
    margin: 0 auto 1.25rem;
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
}
.cta-strip p {
    color: rgba(255,255,255,.85);
    max-width: 48ch;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,.7);
    padding: clamp(3.5rem, 6vw, 5rem) 0 0;
}
.site-footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter) 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 3rem;
}
.site-footer__logo { filter: brightness(0) invert(1); opacity: .95; margin-bottom: 1.25rem; }
.site-footer__tag { color: rgba(255,255,255,.6); font-size: .95rem; max-width: 32ch; }
.site-footer__heading {
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
}
.site-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .65rem; }
.site-footer__list a {
    color: rgba(255,255,255,.75);
    font-size: .95rem;
    transition: color .25s var(--ease);
}
.site-footer__list a:hover { color: #fff; }

.site-footer__social {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}
.site-footer__social a {
    font-size: .85rem;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255,255,255,.3);
}

.site-footer__bar {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.5rem var(--gutter);
    text-align: center;
}
.site-footer__bar p {
    margin: 0;
    font-size: .82rem;
    color: rgba(255,255,255,.45);
}

/* ============================================================
   Animations
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
    .fade-up {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity .9s var(--ease), transform .9s var(--ease);
    }
    .fade-up.is-visible {
        opacity: 1;
        transform: none;
    }
    .fade-up.delay-1 { transition-delay: .1s; }
    .fade-up.delay-2 { transition-delay: .2s; }
    .fade-up.delay-3 { transition-delay: .3s; }
    .fade-up.delay-4 { transition-delay: .4s; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__visual { max-width: 520px; margin: 0 auto; }
    .featured { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .about-grid__visual { position: static; max-height: 520px; }
    .svc-block { grid-template-columns: 1fr; }
    .svc-block__head { position: static; }
    .project__head { grid-template-columns: 1fr; align-items: start; }
    .contact-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "info"
            "form"
            "why";
    }
    .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
    .values { grid-template-columns: repeat(2, 1fr); }
    .svc-preview__head { grid-template-columns: 1fr; gap: 1.25rem; }
    .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .project-cards { grid-template-columns: repeat(2, 1fr); }
    .related-projects { grid-template-columns: repeat(2, 1fr); }
    .project-hero { aspect-ratio: 16/9; }
}

@media (max-width: 700px) {
    /* Logo bumped on mobile — proportional to desktop bump, but capped
       so it doesn't crowd the phone icon + burger at narrow widths. */
    .brand img { width: 210px; }

    /* Hero: give some breathing room above the H1 on mobile,
       and pull the rotating image ABOVE the text content so it's
       the first thing visitors see. */
    .hero { padding-top: clamp(1.5rem, 5vw, 2.5rem); }
    /* min-width: 0 stops grid children from being forced wider than
       their track by inflexible content (e.g. nowrap buttons). */
    .hero__grid > * { min-width: 0; }
    .hero__visual {
        order: -1;
        max-width: 100%;
        aspect-ratio: 5/4;
        margin: 0 0 1.25rem;
    }
    .hero__grid { gap: 0; }

    /* On mobile, restack the copy column as flex so we can pull
       the CTAs up between the image and the text content. */
    .hero__copy {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }
    .hero__cta {
        order: -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .5rem;
        margin: 0 0 1.75rem;
    }
    /* Keep the two buttons fitting cleanly side-by-side on narrow screens */
    .hero__cta .btn {
        padding: .8rem .5rem;
        font-size: .82rem;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        min-width: 0;
    }
    /* Hide the decorative arrow on mobile — saves ~24px and looks cleaner at small sizes */
    .hero__cta .btn .arrow { display: none; }

    /* Keep the home-hero eyebrow on one line at narrow widths */
    .hero__copy .eyebrow {
        letter-spacing: .08em;
        font-size: .7rem;
    }
    /* Hide the decorative leading dash on the home-hero eyebrow on mobile —
       it eats ~44px of width and pushes "Bury St Edmunds" onto a second line. */
    .hero__copy .eyebrow::before { display: none; }

    .hero__badge {
        bottom: 1rem; left: 1rem;
        padding: .8rem 1rem;
        font-size: .78rem;
    }

    /* Hide desktop nav, show mobile actions */
    .header-mobile { display: flex; }
    .primary-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        background: var(--paper);
        padding: 2rem var(--gutter) 2.5rem;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform .4s var(--ease), visibility 0s linear .4s;
        z-index: 99;
        overflow-y: auto;
    }
    .primary-nav.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        transition: transform .4s var(--ease), visibility 0s linear 0s;
    }
    .primary-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        width: 100%;
    }
    .primary-nav__list a {
        font-size: 1.25rem;
        font-weight: 500;
    }
    .primary-nav__list a.nav-cta {
        padding: .9rem 1.75rem;
        margin-top: .5rem;
    }

    /* Submenu: reset desktop popover, show as a flat indented list */
    .submenu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: transparent;
        border: 0;
        box-shadow: none;
        min-width: 0;
        padding: 0;
        margin: .5rem 0 .25rem 0;
        display: flex;
        flex-direction: column;
        gap: .85rem;
        width: 100%;
    }
    .submenu::before { display: none; }
    .primary-nav__list .submenu a {
        font-size: .95rem;
        font-weight: 400;
        color: var(--ink-soft);
        padding: 0 0 0 1.1rem;
        border-left: 1px solid var(--brand-mist);
        white-space: normal;
    }
    .primary-nav__list .submenu a:hover,
    .primary-nav__list .submenu a[aria-current="page"] {
        color: var(--brand);
        background: transparent;
    }

    /* Social icons: bottom of drawer, larger touch targets */
    .nav-social {
        margin-top: 2.5rem;
        padding-top: 2rem;
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--line);
        width: 100%;
        gap: .5rem;
    }
    .nav-social a {
        width: 48px; height: 48px;
    }
    .nav-social svg {
        width: 22px; height: 22px;
    }

    h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
    .stats__grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .gallery { gap: .65rem; grid-template-columns: repeat(2, 1fr); }
    .project-cards { grid-template-columns: 1fr; gap: 1.25rem; }
    .related-projects { grid-template-columns: 1fr 1fr; gap: .65rem; }
    .project-hero { aspect-ratio: 4/3; }
    .project-body p { font-size: 1.02rem; }
    .project-body p:first-of-type { font-size: 1.1rem; }
    .sister-services { grid-template-columns: 1fr; }
    .site-footer__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* On truly narrow phones (iPhone SE 1st gen and similar), allow the
   hero CTA button text to wrap onto two lines rather than clip. */
@media (max-width: 360px) {
    .hero__cta .btn {
        white-space: normal;
        line-height: 1.25;
    }
}

/* ============================================================
   Utilities
   ============================================================ */
.center-text { text-align: center; }
.mt-3 { margin-top: 3rem; }
.mt-2 { margin-top: 2rem; }
.mt-1 { margin-top: 1rem; }
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
