:root {
    --slate: #0f1e2e;
    --slate-deep: #09131e;
    --slate-soft: #1c3147;
    --ivory: #f4f1ea;
    --stone: #e8e3d8;
    --ink: #141c24;
    --muted: #5a6470;
    --copper: #a86428;
    --copper-hover: #8f521d;
    --rule: #d2cbbd;
    --rule-dark: rgba(244, 241, 234, 0.16);
    --header: 76px;
    --wrap: 1180px;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--ivory);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin: 0 0 0.45em;
}

h1 { font-size: clamp(2.7rem, 5.2vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.05rem); }
h3 { font-size: 1.55rem; }
h4 {
    font-family: var(--sans);
    font-size: 0.98rem;
    font-weight: 600;
    margin: 0 0 0.25em;
}

p { margin: 0 0 1em; }

.wrap {
    width: min(var(--wrap), calc(100% - 56px));
    margin: 0 auto;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 30;
    height: var(--header);
    background: rgba(244, 241, 234, 0.96);
    border-bottom: 1px solid var(--rule);
    backdrop-filter: blur(8px);
}

.header-inner {
    height: 100%;
    width: min(var(--wrap), calc(100% - 56px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand img {
    height: 50px;
    width: auto;
    max-width: min(240px, 50vw);
    object-fit: contain;
}

header nav { margin-left: auto; }

header nav ul {
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: var(--muted);
}

header nav a:hover { color: var(--ink); }

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--slate);
    color: var(--ivory);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.header-phone:hover { background: var(--copper); }

/* Hero */
.hero {
    position: relative;
    color: var(--ivory);
    background: var(--slate-deep);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
    filter: grayscale(35%) contrast(1.05);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9, 19, 30, 0.94) 0%, rgba(15, 30, 46, 0.82) 60%, rgba(15, 30, 46, 0.68) 100%);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 64px;
    align-items: end;
    padding: 96px 0 84px;
}

.hero h1 {
    color: var(--ivory);
    margin-bottom: 24px;
}

.hero-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 0 0 34px;
    padding: 18px 0;
    border-top: 1px solid var(--rule-dark);
    border-bottom: 1px solid var(--rule-dark);
    list-style: none;
    font-size: 0.94rem;
    color: #d9d4c7;
}

.hero-perks i {
    color: var(--copper);
    margin-right: 7px;
    font-size: 0.78rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid transparent;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-copper {
    background: var(--copper);
    color: #fff;
}

.btn-copper:hover { background: var(--copper-hover); }

.btn-outline-light {
    background: transparent;
    color: var(--ivory);
    border-color: rgba(244, 241, 234, 0.42);
}

.btn-outline-light:hover {
    border-color: var(--ivory);
    background: rgba(244, 241, 234, 0.08);
}

.hero-meta {
    margin: 0;
    padding-left: 32px;
    border-left: 1px solid var(--rule-dark);
    display: grid;
    gap: 20px;
}

.hero-meta dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #9aa6b2;
    margin-bottom: 4px;
}

.hero-meta dd {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ivory);
}

.hero-meta a:hover { text-decoration: underline; }

/* Sections & ledger header */
.section { padding: 96px 0; }
.section-stone {
    background: var(--stone);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.section-dark {
    background: var(--slate);
    color: var(--ivory);
}

.section-dark h2,
.section-dark h3 { color: var(--ivory); }

.ledger-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 44px;
    border-bottom: 1px solid var(--rule);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.ledger-head.light {
    border-bottom-color: var(--rule-dark);
    color: #9aa6b2;
}

.sec-num {
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--copper);
    letter-spacing: 0.04em;
}

/* 01 About */
.about-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr 0.9fr;
    gap: 44px;
    align-items: start;
}

.about-body p { color: var(--muted); }

.inline-cta {
    display: inline-block;
    margin-top: 8px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
}

.inline-cta:hover {
    color: var(--copper);
    border-color: var(--copper);
}

.about-fig { margin: 0; }
.about-fig img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.about-fig figcaption {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--muted);
}

/* Roster */
.roster {
    margin-top: 84px;
    padding-top: 48px;
    border-top: 1px solid var(--rule);
}

.roster-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 28px;
}

.roster-head p {
    margin: 0;
    color: var(--muted);
    max-width: 460px;
}

.roster-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}

.roster-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.roster-list img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
    filter: grayscale(18%);
}

.roster-list p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--muted);
}

/* 02 Modes table */
.split-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: end;
    margin-bottom: 44px;
}

.split-intro p {
    margin: 0;
    color: #c2ccd6;
}

.modes-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--rule-dark);
    border-bottom: 1px solid var(--rule-dark);
}

.modes-table article {
    padding: 36px 32px 36px 0;
}

.modes-table article + article {
    padding-left: 32px;
    border-left: 1px solid var(--rule-dark);
}

.mode-tag {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--copper);
    margin-bottom: 12px;
}

.modes-table p:last-child {
    margin: 0;
    color: #c2ccd6;
}

.modes-foot {
    margin-top: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.modes-foot p {
    margin: 0;
    color: #c2ccd6;
}

/* 03 Programs & areas */
.programs-block {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: start;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--rule);
}

.programs-intro p { color: var(--muted); }

.programs-dl { margin: 0; }

.programs-dl > div {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--rule);
}

.programs-dl > div:first-child { padding-top: 0; border-top: 0; }

.programs-dl dt {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.2;
}

.programs-dl dd {
    margin: 0;
    color: var(--muted);
}

.areas-block { padding-top: 56px; }
.areas-block > h3 { margin-bottom: 24px; }

.areas-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 32px;
}

.areas-columns > div {
    padding-top: 14px;
    border-top: 1px solid var(--rule);
}

.areas-columns p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

/* 04 Testimonials */
.quote-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.quote-head h2 { margin: 0; max-width: 620px; }

.testimonial-controls {
    display: flex;
    gap: 8px;
}

.testimonial-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.testimonial-controls button:hover {
    background: var(--ink);
    color: var(--ivory);
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-top: 1px solid var(--rule);
}

.testimonial-slider::-webkit-scrollbar { display: none; }

.testimonial {
    flex: 0 0 100%;
    scroll-snap-align: start;
    margin: 0;
    padding: 36px 0 8px;
}

.testimonial p {
    max-width: 860px;
    font-family: var(--serif);
    font-size: clamp(1.45rem, 2.5vw, 2.05rem);
    line-height: 1.32;
    color: var(--ink);
}

.testimonial footer {
    margin-top: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--copper);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* 05 Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: start;
}

.contact-intro {
    color: #c2ccd6;
    margin-bottom: 28px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group { margin-bottom: 18px; }

label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b7c2cd;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(244, 241, 234, 0.24);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ivory);
    font: inherit;
}

input::placeholder,
textarea::placeholder { color: rgba(244, 241, 234, 0.42); }

textarea { resize: vertical; }

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--copper);
}

.form-group.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 22px 0;
}

.form-group.check input {
    width: 16px;
    height: 16px;
    margin-top: 4px;
    flex-shrink: 0;
}

.form-group.check label {
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.9rem;
    color: #c2ccd6;
}

.form-message { margin-top: 14px; padding: 12px 14px; }
.form-message.success { background: rgba(46, 125, 82, 0.25); color: #d7f2e3; }
.form-message.error { background: rgba(180, 60, 50, 0.28); color: #f9d7d4; }
.form-message.loading { background: rgba(255, 255, 255, 0.08); color: var(--ivory); }

.contact-right {
    padding-left: 44px;
    border-left: 1px solid var(--rule-dark);
}

.location-dl {
    margin: 18px 0 24px;
    display: grid;
    gap: 14px;
}

.location-dl dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #9aa6b2;
}

.location-dl dd {
    margin: 2px 0 0;
    color: var(--ivory);
}

.location-dl a:hover { text-decoration: underline; }

.map { border: 1px solid var(--rule-dark); }

/* Footer */
footer {
    background: var(--slate-deep);
    color: #9aa6b2;
    padding: 36px 0;
    border-top: 1px solid var(--rule-dark);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--ivory);
    margin-bottom: 4px;
}

.footer-sub,
.footer-copy {
    margin: 0;
    font-size: 0.86rem;
}

.float-call {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 30;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: var(--copper);
    color: #fff;
    font-size: 1rem;
}

section[id] { scroll-margin-top: calc(var(--header) + 12px); }

@media (max-width: 980px) {
    header nav { display: none; }
    .header-phone { margin-left: auto; }

    .hero-grid,
    .about-layout,
    .split-intro,
    .modes-table,
    .programs-block,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid { gap: 36px; padding: 64px 0 56px; }
    .hero-meta {
        padding-left: 0;
        padding-top: 24px;
        border-left: 0;
        border-top: 1px solid var(--rule-dark);
    }

    .roster-head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .roster-list { grid-template-columns: 1fr 1fr; }

    .modes-table article,
    .modes-table article + article {
        padding: 24px 0;
        border-left: 0;
        border-top: 1px solid var(--rule-dark);
    }
    .modes-table article:first-child { border-top: 0; }

    .programs-dl > div { grid-template-columns: 1fr; gap: 6px; }
    .areas-columns { grid-template-columns: 1fr 1fr; }

    .contact-right {
        padding-left: 0;
        padding-top: 32px;
        border-left: 0;
        border-top: 1px solid var(--rule-dark);
    }
}

@media (max-width: 760px) {
    :root { --header: 64px; }

    .wrap,
    .header-inner {
        width: min(100% - 28px, var(--wrap));
    }

    .header-inner { gap: 12px; }

    .brand img {
        height: 38px;
        max-width: min(185px, 54vw);
    }

    .header-phone {
        padding: 8px 12px;
        font-size: 0.84rem;
    }

    .hero-perks {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .cta-row {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .cta-row .btn,
    .contact-form .btn { width: 100%; }

    .section { padding: 64px 0; }
    .field-row,
    .areas-columns,
    .roster-list { grid-template-columns: 1fr; }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea { font-size: 16px; }

    .form-group.check label { word-break: break-word; }
    .location-dl dd { overflow-wrap: anywhere; }
    .map iframe { width: 100%; height: 220px; }
}

@media (max-width: 470px) {
    .brand img { height: 34px; max-width: min(160px, 56vw); }
    .header-phone span { display: none; }
    .header-phone { padding: 9px 11px; }
}
