:root {
    --ink: #18201d;
    --muted: #66706b;
    --paper: #f7f3ea;
    --panel: #fffaf0;
    --line: #ddd3bf;
    --accent: #2e6f63;
    --accent-dark: #17483f;
    --gold: #b88746;
    --white: #ffffff;
    --shadow: 0 20px 70px rgba(24, 32, 29, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(20px, 4vw, 56px);
    background: rgba(247, 243, 234, 0.92);
    border-bottom: 1px solid rgba(221, 211, 191, 0.8);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--white);
    background: var(--accent-dark);
    border-radius: 8px;
    font-weight: 800;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-size: 0.78rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    padding: 9px 11px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav .language-link {
    color: var(--ink);
    background: rgba(46, 111, 99, 0.1);
}

.main-nav .nav-cta {
    color: var(--white);
    background: var(--accent-dark);
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta.active {
    color: var(--white);
    background: var(--accent);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 8px 10px;
    background: var(--panel);
    color: var(--ink);
    font-weight: 800;
}

main {
    min-height: 72vh;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    padding: clamp(64px, 10vw, 128px) clamp(20px, 5vw, 72px) clamp(36px, 7vw, 80px);
}

.hero-copy h1,
.page-intro h1,
.article h1 {
    max-width: 920px;
    margin: 0;
    font-size: clamp(2.55rem, 6vw, 5.9rem);
    line-height: 0.98;
}

.hero-text,
.page-intro p,
.article-lead {
    max-width: 780px;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-dark);
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 850;
    text-decoration: none;
}

.button.primary {
    color: var(--white);
    background: var(--accent-dark);
}

.button.secondary {
    color: var(--accent-dark);
    background: transparent;
}

.hero-panel,
.contact-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero-visual {
    position: relative;
    min-height: 560px;
    margin: 0;
    border-radius: 8px;
}

.hero-visual img,
.page-photo img,
.image-feature img,
.post-card-image img,
.article-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-visual img {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-visual::after {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(24, 32, 29, 0.02), rgba(24, 32, 29, 0.42));
    content: "";
}

.hero-visual .hero-panel {
    position: absolute;
    left: 22px;
    bottom: 22px;
    z-index: 1;
    max-width: 360px;
    background: rgba(255, 250, 240, 0.92);
    backdrop-filter: blur(12px);
}

.hero-panel span,
.timeline span {
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-panel h2 {
    margin: 12px 0;
    font-size: 1.65rem;
    line-height: 1.1;
}

.section,
.split-section,
.page-intro,
.page-photo,
.image-feature,
.top-cta,
.text-section,
.service-grid,
.post-list,
.video-grid,
.feature-list,
.timeline,
.contact-layout,
.article {
    padding: clamp(44px, 7vw, 88px) clamp(20px, 5vw, 72px);
}

.section-heading,
.page-intro {
    max-width: 850px;
}

.section-heading h2,
.split-section h2,
.page-intro h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.05;
}

.page-photo {
    padding-top: 0;
    padding-bottom: clamp(18px, 4vw, 34px);
}

.page-photo img {
    max-height: 430px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.image-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.58fr) minmax(280px, 0.42fr);
    gap: clamp(22px, 4vw, 52px);
    align-items: center;
    background: var(--paper);
}

.image-feature img {
    min-height: 360px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.image-feature h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.05;
}

.image-feature p:not(.eyebrow) {
    color: var(--muted);
}

.top-cta {
    display: grid;
    grid-template-columns: minmax(260px, 0.42fr) minmax(360px, 0.58fr);
    align-items: start;
    gap: 24px;
    padding-top: 0;
    padding-bottom: clamp(18px, 4vw, 36px);
}

.top-cta div {
    max-width: 720px;
    border-left: 3px solid var(--accent);
    padding-left: 18px;
}

.top-cta h2 {
    margin: 0 0 6px;
    font-size: clamp(1.45rem, 3vw, 2.3rem);
    line-height: 1.08;
}

.top-cta p {
    margin: 0;
    color: var(--muted);
}

.compact-contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.ajax-form.is-submitted .form-body {
    display: none;
}

.form-status:empty {
    display: none;
}

.notice {
    border-radius: 7px;
    padding: 12px 14px;
    font-weight: 700;
}

.notice.success {
    color: var(--accent-dark);
    background: rgba(46, 111, 99, 0.12);
    border: 1px solid rgba(46, 111, 99, 0.24);
}

.notice.error {
    color: #8a2f2f;
    background: rgba(197, 74, 74, 0.1);
    border: 1px solid rgba(197, 74, 74, 0.24);
}

.hp-field,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-body {
    display: contents;
}

.compact-contact-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.compact-contact-form .wide,
.compact-contact-form button {
    grid-column: 1 / -1;
}

.compact-contact-form input,
.compact-contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 10px 11px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

.compact-contact-form textarea {
    resize: vertical;
}

.pillar-grid,
.service-grid,
.video-grid,
.feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.pillar-card,
.service-card,
.post-card,
.video-card,
.feature-list article,
.timeline article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 250, 240, 0.72);
    padding: 22px;
}

.pillar-card span {
    color: var(--gold);
    font-weight: 900;
}

.pillar-card h3,
.feature-list h3,
.service-card h2,
.post-card h2,
.video-card h2,
.timeline h2 {
    margin: 12px 0 10px;
    line-height: 1.15;
}

.pillar-card p,
.feature-list p,
.service-card p,
.post-card p,
.video-card p,
.timeline p,
.article p {
    color: var(--muted);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.58fr);
    gap: 28px;
    align-items: start;
    background: #eee6d8;
}

.post-list {
    display: grid;
    gap: 16px;
}

.post-list.compact {
    padding: 0;
}

.post-card {
    display: grid;
    grid-template-columns: minmax(180px, 0.36fr) minmax(0, 0.64fr);
    gap: 18px;
    align-items: center;
}

.post-card-image {
    display: block;
    min-height: 170px;
    overflow: hidden;
    border-radius: 7px;
}

.post-card-image img {
    min-height: 170px;
    transition: transform 180ms ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.03);
}

.post-card .eyebrow,
.post-card h2,
.post-card p {
    grid-column: 2;
}

.post-card-image {
    grid-row: 1 / span 3;
}

.compact .post-card {
    grid-template-columns: minmax(110px, 0.28fr) minmax(0, 0.72fr);
}

.compact .post-card-image,
.compact .post-card-image img {
    min-height: 128px;
}

.feature-list.compact {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding: 0;
}

.feature-section {
    background: rgba(238, 230, 216, 0.58);
}

.post-card h2 a {
    text-decoration: none;
}

.post-card h2 a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.dark-band {
    color: var(--white);
    background: var(--accent-dark);
}

.dark-band .eyebrow,
.dark-band h2 {
    color: var(--white);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.proof-grid div {
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    padding-top: 18px;
}

.proof-grid strong,
.proof-grid span {
    display: block;
}

.proof-grid strong {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.proof-grid span {
    color: rgba(255, 255, 255, 0.76);
}

.text-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.text-section article {
    border-top: 2px solid var(--accent);
}

.service-card ul {
    margin: 18px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.video-thumb {
    display: flex;
    min-height: 168px;
    align-items: flex-end;
    justify-content: flex-end;
    border-radius: 7px;
    padding: 14px;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(23, 72, 63, 0.88), rgba(184, 135, 70, 0.8)),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.12) 0 2px, transparent 2px 12px);
    font-weight: 900;
}

.timeline {
    display: grid;
    gap: 16px;
}

.cta-band {
    margin: clamp(10px, 2vw, 20px) clamp(20px, 5vw, 72px) clamp(54px, 7vw, 88px);
    padding: clamp(28px, 5vw, 54px);
    border-radius: 8px;
    color: var(--white);
    background: var(--accent-dark);
}

.cta-band h2 {
    max-width: 760px;
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.05;
}

.cta-band p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.12rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.62fr) minmax(280px, 0.38fr);
    gap: 24px;
    align-items: start;
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 12px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

.contact-card h3 {
    margin: 28px 0 8px;
}

.contact-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.article {
    max-width: 860px;
}

.article h1 {
    margin-top: 16px;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.article-image {
    height: auto;
    max-height: 520px;
    margin: 28px 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.article p:not(.eyebrow):not(.article-lead) {
    font-size: 1.08rem;
}


.newsletter-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    margin: 0 clamp(20px, 5vw, 72px) 28px;
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid rgba(46, 111, 99, 0.2);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(23, 72, 63, 0.08), rgba(184, 135, 70, 0.08)), var(--panel);
    box-shadow: var(--shadow);
}

.newsletter-cta h2 {
    margin: 0 0 8px;
    line-height: 1.08;
}

.newsletter-cta .eyebrow {
    margin-bottom: 12px;
}

.newsletter-cta p:last-child {
    margin-bottom: 0;
}

.newsletter-form {
    display: grid;
    gap: 12px;
    max-width: 720px;
}

.newsletter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.newsletter-form input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 10px 12px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

.newsletter-form .hp-field,
.contact-form .hp-field,
.compact-contact-form .hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.newsletter-form label {
    display: grid;
    gap: 6px;
}

.newsletter-form .button {
    min-width: 140px;
    justify-self: start;
}

.back-link {
    color: var(--accent-dark);
    font-weight: 900;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 34px clamp(20px, 5vw, 72px);
    border-top: 1px solid var(--line);
}

.site-footer p {
    max-width: 420px;
    margin: 8px 0 0;
    color: var(--muted);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.site-footer a {
    color: var(--muted);
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 980px) {
    .site-header {
        align-items: flex-start;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: 74px;
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 10px;
        background: var(--panel);
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .hero,
    .top-cta,
    .image-feature,
    .split-section,
    .contact-layout,
    .newsletter-cta,
    .newsletter-row {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 460px;
    }

    .top-cta {
        align-items: stretch;
    }

    .pillar-grid,
    .service-grid,
    .video-grid,
    .feature-list,
    .proof-grid,
    .text-section {
        grid-template-columns: 1fr;
    }

    .post-card,
    .compact .post-card {
        grid-template-columns: 1fr;
    }

    .post-card-image,
    .post-card .eyebrow,
    .post-card h2,
    .post-card p {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 620px) {
    .brand small {
        display: none;
    }

    .hero-copy h1,
    .page-intro h1,
    .article h1 {
        font-size: 2.45rem;
        line-height: 1.03;
    }

    .hero-visual {
        min-height: 420px;
    }

    .hero-visual .hero-panel {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-width: none;
    }

    .image-feature img,
    .page-photo img {
        min-height: 260px;
        max-height: 320px;
    }

    .site-footer {
        flex-direction: column;
    }

    .compact-contact-form {
        grid-template-columns: 1fr;
    }
}
