:root {
    --bg: #f6f3ee;
    --surface: #ffffff;
    --ink: #1f1c19;
    --ink-soft: #4a443e;
    --muted: #8a8178;
    --line: #e3ddd3;
    --accent: #8a5a3c;       /* clay / oak */
    --accent-deep: #5f3d28;
    --accent-soft: #c89b7e;
    --maxw: 1180px;
    --radius: 4px;
    --shadow: 0 18px 50px -24px rgba(31, 28, 25, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
h4 { font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-deep); }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

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

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
    padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(246, 243, 238, .9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }

.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 42px; height: 42px; flex: none;
    display: grid; place-items: center;
    background: var(--accent-deep); color: #fff;
    font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.5rem;
    border-radius: var(--radius);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.45rem; }
.brand-sub { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.primary-nav > ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.primary-nav > ul > li { position: relative; }
.primary-nav > ul > li > a {
    display: block; padding: 12px 16px; color: var(--ink); font-weight: 500;
    font-size: .92rem; letter-spacing: .02em; border-bottom: 2px solid transparent;
}
.primary-nav > ul > li > a:hover { color: var(--accent-deep); }
.primary-nav > ul > li.is-active > a { border-bottom-color: var(--accent); color: var(--accent-deep); }

.submenu {
    position: absolute; top: 100%; left: 0; min-width: 220px;
    list-style: none; margin: 0; padding: 8px 0;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-children:hover .submenu,
.has-children:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li a { display: block; padding: 9px 20px; color: var(--ink-soft); font-size: .9rem; }
.submenu li a:hover { background: var(--bg); color: var(--accent-deep); }
.submenu li.is-current a { color: var(--accent-deep); font-weight: 600; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; background: none; border: 0;
    padding: 8px; cursor: pointer;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); display: block; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-slider { position: relative; height: clamp(420px, 78vh, 720px); }
.hero-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,28,25,.25), rgba(31,28,25,.72)); }
.hero-slide.is-on { opacity: 1; }
.hero-content { position: absolute; inset: 0; display: flex; align-items: flex-end; z-index: 2; }
.hero-content .container { padding-bottom: clamp(48px, 8vh, 96px); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p { color: rgba(255,255,255,.88); font-size: 1.15rem; max-width: 46ch; }
.hero .eyebrow { color: var(--accent-soft); letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; margin-bottom: 14px; }
.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 3; display: flex; gap: 10px; justify-content: center; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.hero-dots button.is-on { background: #fff; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .eyebrow { color: var(--accent); letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; font-weight: 600; }
.section-head p { font-size: 1.08rem; }

.lead { font-size: 1.25rem; color: var(--ink); max-width: 60ch; }

/* Services / cards */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 16px; }
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.card .num { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--accent-soft); }
.card h3 { margin: 6px 0 10px; }

/* Overview / feature row */
.feature-row { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; align-items: center; }
.feature-row.reverse > .feature-media { order: 2; }
.feature-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Portfolio grid */
.gallery {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-auto-rows: 220px;
}
.gallery a {
    overflow: hidden; border-radius: var(--radius); position: relative; background: var(--line);
}
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a::after {
    content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(31,28,25,.5));
    opacity: 0; transition: opacity .3s ease;
}
.gallery a:hover::after { opacity: 1; }

/* People */
.people { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.person {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; display: flex; flex-direction: column; gap: 6px;
}
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--accent-deep); font-weight: 600; font-size: .95rem; }
.person .contact { font-size: .9rem; color: var(--muted); }
.person .bio { font-size: .9rem; margin-top: 10px; }
.person ul { margin: 8px 0 0; padding-left: 18px; font-size: .88rem; color: var(--ink-soft); }

/* Licenses / badges */
.badges { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 24px; }
.badges img { height: 110px; width: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts strong { color: var(--ink); }

/* Contact */
.contact-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
.contact-info p { margin-bottom: .6em; }
.contact-info .label { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 18px 0 2px; }
.contact-info a { color: var(--ink); }
.contact-info a:hover { color: var(--accent-deep); }

/* Breadcrumb */
.breadcrumb { font-size: .82rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-deep); }
.breadcrumb span { margin: 0 8px; }

.page-hero { padding: clamp(40px, 7vw, 80px) 0 clamp(20px, 4vw, 40px); }
.page-hero .eyebrow { color: var(--accent); letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; font-weight: 600; }

/* CTA band */
.cta {
    background: var(--accent-deep); color: #fff; border-radius: var(--radius);
    padding: clamp(36px, 6vw, 64px); text-align: center; margin-top: 24px;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); }
.btn {
    display: inline-block; margin-top: 18px; padding: 13px 30px; border-radius: var(--radius);
    background: #fff; color: var(--accent-deep); font-weight: 600; letter-spacing: .02em;
    transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--accent-soft); color: var(--ink); }

.site-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.site-links a {
    border: 1px solid var(--line); padding: 10px 18px; border-radius: var(--radius);
    font-size: .9rem; color: var(--ink); background: var(--surface);
}
.site-links a:hover { border-color: var(--accent); color: var(--accent-deep); }

/* Footer */
.site-footer { background: var(--ink); color: #d9d2c8; margin-top: 0; padding-top: 56px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-col h4 { color: #fff; }
.footer-col p, .footer-col a { color: #b9b1a6; font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin: 6px 0; }
.footer-social { display: flex; flex-direction: column; gap: 14px; }
.social-link img { width: 46px; height: 46px; object-fit: cover; border-radius: var(--radius); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding: 22px 0; font-size: .82rem; color: #9a9389; }

/* Responsive */
@media (max-width: 900px) {
    .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 28px; }
    .feature-row.reverse > .feature-media { order: 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .nav-toggle { display: flex; }
    .primary-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--surface); border-bottom: 1px solid var(--line);
        max-height: 0; overflow: hidden; transition: max-height .3s ease;
    }
    .primary-nav.is-open { max-height: 80vh; overflow: auto; }
    .primary-nav > ul { flex-direction: column; gap: 0; padding: 8px 0; }
    .primary-nav > ul > li > a { border-bottom: 0; padding: 14px 24px; }
    .submenu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0;
        margin: 0 0 6px 18px; padding: 0;
    }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 160px; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
    .hero-slide { transition: opacity .4s ease; }
}
