:root {
    --dark: #141210;
    
    --paper: #f5f2ee;
    --muted: #756f68;
    --line: rgba(20, 18, 16, 0.14);
    --gold: #a67c35;
    --white: #fff;
    --serif: "Playfair Display", Georgia, serif;
    --sans:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;

    /* Height of the fixed .nav (logo 48px + 1rem padding top/bottom). Anything
       pinned to the top of the viewport has to clear it. */
    --nav-height: 80px;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--dark);
    font-family: var(--sans);
}
a {
    color: inherit;
    text-decoration: none;
}
img,
video {
    max-width: 100%;
    display: block;
}

.section {
    padding: clamp(3rem, 7vw, 7rem) 5vw;
}
.dark-section {
    background: var(--dark);
    color: #fff;
}
.muted-section {
    background: #e8e4de;
}
.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
.hero {
    min-height: 88vh;
    display: grid;
    align-items: end;
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #050505;
    padding: 7rem 5vw 5rem;
}
.hero .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88),
        rgba(0, 0, 0, 0.15)
    );
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 980px;
}
.hero h1,
.hero h2,
.hero h3 {
    color: inherit;
}
.eyebrow {
    color: rgba(255, 255, 255, 0.68);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.72rem;
    margin-bottom: 1rem;
}
h1,
h2,
h3 {
    font-family: var(--serif);
    text-transform: uppercase;
    line-height: 0.98;
    margin: 0;
}
h1 {
    font-size: clamp(3rem, 7vw, 7rem);
}
h2 {
    font-size: clamp(2rem, 4.5vw, 4.5rem);
}
h3 {
    font-size: clamp(1.2rem, 2vw, 2rem);
}
p {
    line-height: 1.9;
}
.dark-section p,
.hero p {
    color: rgba(255, 255, 255, 0.68);
}
.actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1.5rem;
}
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--dark);
    padding: 0.85rem 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    font-size: 0.72rem;
    cursor: pointer;
    background: transparent;
}
.btn.gold {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
    box-shadow:
        0 14px 0 #6e4f20,
        0 18px 28px rgba(0, 0, 0, 0.24);
    transform: translateY(-4px);
}
.btn.light {
    border-color: rgba(255, 255, 255, 0.44);
    color: #fff;
}
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--dark);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.stat {
    padding: 2rem;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.stat strong {
    display: block;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 300;
}
.stat span {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
}
.card {
    position: relative;
    overflow: hidden;
    background: #ddd;
    min-height: 340px;
}
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.card:hover img {
    transform: scale(1.04);
}
.card-body {
    position: absolute;
    inset: auto 0 0;
    padding: 1.3rem;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}
.tag {
    display: inline-flex;
    gap: 0.3rem;
    align-items: center;
    color: var(--gold);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.meta {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
}

.service-row {
    border-top: 1px solid var(--line);
    padding: 1.2rem 0;
}
.service-row summary {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--serif);
    font-size: 1.5rem;
}
.award-list,
.team-grid,
.blog-grid,
.review-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.plain-card {
    background: #fff;
    border: 1px solid var(--line);
    padding: 1.4rem;
}
.plain-card img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    margin-bottom: 1rem;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}
.form-grid .full {
    grid-column: 1 / -1;
}
.contact-form-pair {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 0.5rem;
}
input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--dark);
    background: transparent;
    padding: 0.9rem;
    font: inherit;
}
textarea {
    min-height: 130px;
    resize: vertical;
}
.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.notice {
    background: #e5f6ea;
    color: #14502b;
    border: 1px solid #b7e4c4;
    padding: 1rem;
    margin-bottom: 1rem;
}
/* Lead form success flash. Sits above .nav (z-index 100) instead of behind it,
   and stays put while the visitor is returned to wherever the form was. */
.lead-toast {
    position: fixed;
    top: calc(var(--nav-height) + 1rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 110;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: min(34rem, calc(100vw - 2rem));
    background: #e5f6ea;
    color: #14502b;
    border: 1px solid #b7e4c4;
    padding: 1rem 1.1rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}
.lead-toast p {
    margin: 0;
    flex: 1;
}
.lead-toast.is-dismissed {
    opacity: 0;
    transform: translate(-50%, -0.75rem);
    pointer-events: none;
}
.lead-toast[hidden] {
    display: none;
}
.lead-toast-close {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
}
.lead-toast-close:hover {
    opacity: 1;
}
.wa-float {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 60;
    background: #25d366;
    color: #fff;
    border-radius: 999px;
    padding: 0.8rem 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.map {
    min-height: 620px;
    background: #d8d5cf;
    border: 1px solid var(--line);
}

@media (max-width: 860px) {
    .grid-2,
    .cards,
    .award-list,
    .team-grid,
    .blog-grid,
    .review-strip {
        grid-template-columns: 1fr;
    }
    .stats {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        min-height: 78vh;
    }
}
