:root {
    --bg: #f7f3ee;
    --paper: #fffcf8;
    --stone: #efe8df;
    --ink: #1c2822;
    --muted: #5d675f;
    --sage: #2c4a3c;
    --sage-deep: #1e342b;
    --terra: #b55245;
    --line: #e3d8cc;
    --white: #ffffff;
    --header: 76px;
    --wrap: 1120px;
    --serif: "Fraunces", "Times New Roman", serif;
    --sans: "Outfit", "Segoe UI", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.65;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 520;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.25em; }

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

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

.section {
    padding: 96px 0;
}

.section-stone {
    background: var(--stone);
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--terra);
}

.section-head {
    margin-bottom: 40px;
}

.section-head.narrow,
.section-head p {
    max-width: 640px;
}

.section-head.narrow {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head.narrow p {
    margin-left: auto;
    margin-right: auto;
}

a.plain-text-link,
a.plain-text-link:hover,
a.plain-text-link:focus {
    color: inherit;
    text-decoration: none;
    cursor: text;
}

header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header);
    background: rgba(255, 252, 248, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    border-bottom-color: var(--line);
}

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

.brand img {
    height: 52px;
    width: auto;
}

nav {
    margin-left: auto;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 22px;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
}

nav a.active,
nav a:hover {
    color: var(--terra);
}

.mobile-contact { display: none; }

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    font-weight: 600;
    color: var(--sage);
    border: 1px solid var(--sage);
    border-radius: 999px;
    padding: 8px 16px;
}

.header-phone:hover {
    background: var(--sage);
    color: var(--paper);
}

.mobile-menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 1.3rem;
    color: var(--ink);
    cursor: pointer;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: calc(100vh - var(--header));
    background: var(--paper);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 7vw 64px 8vw;
}

.hero-copy p {
    max-width: 34rem;
    color: var(--muted);
    font-size: 1.15rem;
}

.hero-address {
    margin-top: 28px;
    margin-bottom: 0;
    font-size: 0.95rem !important;
    color: var(--muted);
}

.free-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    margin-bottom: 22px;
    padding: 8px 18px;
    border: 1px solid var(--sage);
    border-radius: 999px;
    background: var(--paper);
    color: var(--sage);
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.free-badge:hover {
    background: var(--sage);
    color: var(--paper);
}

.hero-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0 0 24px;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--ink);
}

.hero-perks i {
    color: var(--terra);
    margin-right: 4px;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 420px;
}

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

.cta-row.center {
    justify-content: center;
    margin-top: 36px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: var(--sage);
    color: var(--paper);
}

.btn-primary:hover { background: var(--sage-deep); }

.btn-ghost {
    background: transparent;
    color: var(--sage);
    border-color: var(--sage);
}

.btn-ghost:hover {
    background: var(--sage);
    color: var(--paper);
}

.text-link {
    color: var(--terra);
    font-weight: 600;
    border-bottom: 1px solid currentColor;
}

.about {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

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

.about-photo img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 18px;
}

.team { margin-top: 88px; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.team-grid img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
    margin-bottom: 14px;
    background: var(--stone);
}

.team-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
    margin-bottom: 28px;
    background: var(--paper);
    border-radius: 20px;
    overflow: hidden;
}

.band img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.band div { padding: 28px 36px 28px 8px; }
.band-reverse div { padding: 28px 8px 28px 36px; }
.band-reverse img { order: 2; }

.band-index {
    margin: 0 0 6px;
    font-family: var(--serif);
    font-size: 0.95rem;
    color: var(--terra);
}

.band p:last-child { color: var(--muted); margin: 0; }

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    background: var(--paper);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.card h3,
.card p {
    padding: 0 20px;
}

.card h3 { margin-top: 18px; }
.card p { color: var(--muted); padding-bottom: 8px; }

.band-cta {
    background: var(--sage);
    color: var(--paper);
    padding: 72px 0;
    text-align: center;
}

.band-cta h2,
.band-cta p { color: var(--paper); }

.band-cta p {
    max-width: 460px;
    margin: 0 auto 22px;
}

.band-cta .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-light {
    background: var(--paper);
    color: var(--sage);
}

.btn-light-ghost {
    color: var(--paper);
    border-color: rgba(255, 252, 248, 0.6);
}

.btn-light-ghost:hover {
    background: var(--paper);
    color: var(--sage);
}

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

.topics li {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px 26px 10px;
}

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

.support {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.support > div > p:last-of-type { color: var(--muted); }

.support-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 28px;
}

.support-list h3 { font-size: 1.25rem; }
.support-list p { color: var(--muted); margin: 0; }

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 20px;
}

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

.testimonial {
    flex: 0 0 100%;
    scroll-snap-align: start;
    margin: 0;
    background: var(--sage-deep);
    color: var(--paper);
    border-radius: 20px;
    padding: 48px 56px;
    min-height: 240px;
}

.testimonial p {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.35;
    margin-bottom: 20px;
}

.testimonial footer {
    color: #d7c4b4;
    font-weight: 600;
}

.testimonial-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.testimonial-controls button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
}

.testimonial-controls button:hover {
    background: var(--sage);
    color: var(--paper);
    border-color: var(--sage);
}

.contact {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: start;
}

.contact-form,
.contact-info {
    background: var(--paper);
    border-radius: 18px;
    padding: 28px;
    border: 1px solid var(--line);
}

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

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    color: var(--ink);
}

textarea { resize: vertical; }

input:focus,
textarea:focus {
    outline: 2px solid var(--sage);
    border-color: var(--sage);
}

.invalid-field { border-color: var(--terra) !important; }
.valid-field { border-color: var(--sage) !important; }

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

.form-group.check input {
    margin-top: 5px;
}

.form-group.check label {
    margin: 0;
    font-weight: 400;
    color: var(--muted);
}

.form-message {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
}

.form-message.success { background: #e5f2ea; color: var(--sage-deep); }
.form-message.error { background: #fdecea; color: #8e3d33; }
.form-message.loading { background: var(--stone); color: var(--ink); }

.contact-info p {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.contact-info i {
    width: 18px;
    margin-top: 5px;
    color: var(--terra);
}

.contact-info a:hover { color: var(--terra); }

.map {
    margin-top: 8px;
    border-radius: 14px;
    overflow: hidden;
}

footer {
    background: var(--sage-deep);
    color: #e7efe9;
    padding-top: 56px;
}

footer a:hover { color: #fff; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1.1fr;
    gap: 32px;
    padding-bottom: 36px;
}

footer h4 { color: #fff; }
footer p, footer li { color: #d5e0d8; }
footer li { margin-bottom: 8px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    padding: 16px;
    font-size: 0.9rem;
}

.float-call {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--terra);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    box-shadow: 0 10px 24px rgba(181, 82, 69, 0.35);
    z-index: 30;
}

.float-call::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--terra);
    z-index: -1;
    animation: float-pulse 2.4s ease-out infinite;
}

.float-call i {
    animation: float-ring 2.4s ease-in-out infinite;
}

.float-call:hover { background: #8e3d33; }

@keyframes float-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    70% { transform: scale(1.7); opacity: 0; }
    100% { transform: scale(1.7); opacity: 0; }
}

@keyframes float-ring {
    0%, 62%, 100% { transform: rotate(0); }
    70% { transform: rotate(-14deg); }
    78% { transform: rotate(12deg); }
    86% { transform: rotate(-6deg); }
}

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

@media (max-width: 980px) {
    .hero,
    .about,
    .band,
    .contact,
    .support,
    .cards,
    .team-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .topics,
    .support-list {
        grid-template-columns: 1fr;
    }

    .team-grid { grid-template-columns: 1fr 1fr; }

    .band-reverse img { order: 0; }
    .band div,
    .band-reverse div { padding: 8px 22px 24px; }

    .hero-copy { padding: 48px 24px 32px; }
    .about-photo img { height: 360px; }
    .testimonial { padding: 32px 24px; }
}

@media (max-width: 760px) {
    .hero-perks {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .hero .cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    nav.mobile-active ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: var(--header);
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 12px 22px 18px;
        gap: 14px;
        box-shadow: 0 16px 30px rgba(28, 40, 34, 0.08);
    }

    .mobile-contact { display: list-item; }

    .section { padding: 64px 0; }
    .team { margin-top: 56px; }
    .team-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .float-call::before,
    .float-call i { animation: none; }
}
