/* Shared components. Rule order is intentional across responsive breakpoints. */
:root {
    --bg: #f7f8f6;
    --paper: #fff;
    --ink: #142019;
    --muted: #58665d;
    --green: #1e3828;
    --green-2: #2f5740;
    --green-soft: #e9f1eb;
    --green-light: #5eb875;
    --red: #d64a43;
    --terra: #a9513b;
    --terra-dark: #a9513b;
    --line: #d8e2db;
    --white: #ffffff;
    --shadow: 0 14px 36px rgba(30, 56, 40, .08);
    --radius: 20px;
    --max: 1160px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(var(--max), calc(100% - 48px));
    margin-inline: auto;
}

.topbar {
    background: var(--green);
    color: #fff;
    text-align: center;
    padding: 9px 18px;
    font-size: .86rem;
    font-weight: 650;
}

.topbar strong {
    color: #cfe7d5;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 248, 246, .95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(216, 226, 219, .88);
}

.nav {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    width: 250px;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: .93rem;
    font-weight: 730;
}

.nav-links a:hover, .nav-links a[aria-current="page"] {
    color: var(--green);
}

.nav-links a.btn-primary, .nav-links a.btn-primary:hover, .nav-links a.btn-primary[aria-current="page"] {
    color: var(--white);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--paper);
    font-size: 1.35rem;
    color: var(--green);
    cursor: pointer;
}

.btn {
    font: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    border: 0;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.btn-primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 8px 20px rgba(196, 104, 77, .18);
}

.btn-primary:hover {
    background: var(--green-2);
    transform: translateY(-1px);
}

.btn-secondary {
    color: var(--green);
    border: 1.5px solid var(--green);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--green-soft);
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--terra);
    font-weight: 900;
    font-size: .78rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    background: currentColor;
}

.hero h1, .page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.35rem);
    line-height: 1.02;
    letter-spacing: -1.8px;
    color: var(--green);
    max-width: 830px;
}

.hero .lead, .page-hero .lead {
    font-size: 1.13rem;
    color: var(--muted);
    max-width: 720px;
    margin-top: 18px;
}

.price-line {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin: 22px 0 2px;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--paper);
    border: 1px solid var(--line);
    font-weight: 850;
    color: var(--green);
    box-shadow: var(--shadow);
}

.price-line b {
    color: var(--green-2);
}

.hero-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.hero-list li {
    display: flex;
    gap: 10px;
    font-weight: 650;
}

.hero-list li::before {
    content: "✓";
    color: var(--green-light);
    font-weight: 950;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.micro {
    font-size: .82rem;
    color: var(--muted);
    margin-top: 11px;
}

.section {
    padding: 0 0 96px;
}

.section-soft {
    padding: 72px 0;
    background: var(--green-soft);
    border-block: 1px solid var(--line);
    margin-bottom: 96px;
}

.section-head {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1.12;
    letter-spacing: -.8px;
    color: var(--green);
}

.section-head p {
    color: var(--muted);
    margin-top: 10px;
}

.section-head .eyebrow {
    justify-content: center;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.course-card {
    align-items: flex-start;
    min-height: 100%;
}

.course-card h3 {
    color: var(--green);
    font-size: 1.24rem;
    line-height: 1.25;
}

.course-card p {
    color: var(--muted);
    font-size: .92rem;
    margin: 9px 0 16px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
}

.chip {
    background: var(--bg);
    border-radius: 8px;
    padding: 6px 9px;
    color: var(--green);
    font-size: .78rem;
    font-weight: 800;
}

.course-price {
    font-weight: 900;
    color: var(--green-2);
    margin-bottom: 18px;
}

.text-link {
    font-weight: 850;
    color: var(--green);
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.split {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 30px;
    align-items: stretch;
}

.content-card h2, .content-card h3 {
    color: var(--green);
}

.content-card h2 {
    font-size: 2rem;
    line-height: 1.18;
}

.content-card p {
    color: var(--muted);
    margin-top: 13px;
}

.checklist {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.checklist li {
    display: flex;
    gap: 10px;
}

.checklist li::before {
    content: "✓";
    color: var(--green-light);
    font-weight: 950;
}

.quote {
    background: var(--green-soft);
    color: var(--green);
    font-weight: 750;
    padding: 16px 18px;
    border-radius: 14px;
    margin-top: 20px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.why-card h3 {
    color: var(--green);
    font-size: 1.06rem;
    margin-bottom: 7px;
}

.why-card p {
    color: var(--muted);
    font-size: .91rem;
}

.num {
    width: 120px;
    height: 40px;
    border-radius: 11px;
    background: var(--green-soft);
    display: grid;
    place-items: center;
    color: var(--green);
    font-weight: 900;
    margin-bottom: 15px;
}

.process {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step {
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
}

.step .num {
    background: var(--green);
    color: #fff;
}

.step h3 {
    color: var(--green);
}

.step p {
    color: var(--muted);
    font-size: .92rem;
    margin-top: 6px;
}

.faq {
    max-width: 900px;
    margin: auto;
}

.faq details {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 12px;
    padding: 0 20px;
}

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 0;
    color: var(--green);
    font-weight: 850;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    float: right;
    color: var(--terra);
    font-size: 1.25rem;
}

.faq details[open] summary::after {
    content: "–";
}

.faq details p {
    padding: 0 0 18px;
    color: var(--muted);
    font-size: .93rem;
}

.cta {
    background: var(--green);
    color: #fff;
    border-radius: 28px;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    margin-bottom: 96px;
}

.cta h2 {
    font-size: 2rem;
    line-height: 1.15;
}

.cta p {
    opacity: .88;
    margin-top: 8px;
}

.cta .btn {
    min-width: 180px;
}

.page-hero {
    padding: 58px 0 42px;
}

.page-hero .lead {
    max-width: 760px;
}

.breadcrumbs {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 18px;
}

.breadcrumbs a {
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 30px;
    align-items: start;
}

.detail-main h2 {
    color: var(--green);
    font-size: 1.8rem;
    margin: 30px 0 10px;
}

.detail-main h2:first-child {
    margin-top: 0;
}

.detail-main p {
    color: var(--muted);
    margin: 10px 0;
}

.detail-main ul {
    padding-left: 22px;
    color: var(--muted);
}

.detail-main li {
    margin: 6px 0;
}

.aside {
    position: sticky;
    top: 110px;
}

.factbox {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.factrow {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.factrow:last-child {
    border-bottom: 0;
}

.factrow span {
    display: block;
    color: var(--muted);
    font-size: .8rem;
}

.factrow b {
    color: var(--green);
}

.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 34px;
}

.contact-intro {
    background: var(--green);
    color: #fff;
    border-radius: 24px;
    padding: 34px;
}

.contact-intro p {
    opacity: .88;
    margin-top: 10px;
}

.contact-intro .checklist {
    margin-top: 24px;
}

.contact-intro .checklist li::before {
    color: #cde5d3;
}

.form {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    color: var(--green);
    font-size: .83rem;
    font-weight: 820;
    margin-bottom: 6px;
}

.field input, .field select, .field textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: 9px;
    padding: 12px;
    font: inherit;
    color: var(--ink);
}

.field textarea {
    resize: vertical;
}

.field input:focus, .field select:focus, .field textarea:focus {
    outline: 3px solid rgba(46, 82, 57, .12);
    border-color: var(--green-2);
    background: #fff;
}

.form-note {
    color: var(--muted);
    font-size: .77rem;
    margin-top: 10px;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 38px 0 96px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 28px;
}

.site-footer img {
    width: 220px;
    margin-bottom: 14px;
}

.site-footer h2 {
    font-size: .92rem;
    color: var(--green);
    margin-bottom: 8px;
}

.site-footer p, .site-footer a {
    color: var(--muted);
    font-size: .84rem;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 5px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin-top: 14px;
}

.site-footer .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    color: var(--green);
}

.site-footer .social-link:hover {
    background: var(--green-soft);
    border-color: var(--green);
}

.copyright {
    border-top: 1px solid var(--line);
    margin-top: 28px;
    padding-top: 20px;
    color: var(--muted);
    font-size: .78rem;
}

@media (max-width:1050px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:900px) {
    .container {
        width: min(100% - 32px, var(--max));
    }

    .site-header {
        position: static;
    }

    .brand img {
        width: 210px;
    }

    .menu-toggle {
        place-items: center;
    }

    .nav-links {
        left: 16px;
        right: 16px;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 16px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li a {
        display: block;
        padding: 11px 8px;
    }

    .nav-links .btn {
        margin-top: 8px;
    }

    .hero, .split, .detail-grid, .contact-grid, .cta {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 42px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.65rem;
    }

    .hero-list {
        max-width: 570px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .actions {
        justify-content: center;
    }

    .price-line {
        margin-inline: auto;
    }

    .process, .course-grid, .why-grid {
        grid-template-columns: 1fr;
    }

    .aside {
        position: static;
    }

    .cta {
        text-align: center;
        padding: 34px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .row {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding-bottom: 110px;
    }
}

@media (max-width:520px) {
    .brand img {
        width: 190px;
    }

    .topbar {
        font-size: .76rem;
    }

    .hero h1, .page-hero h1 {
        font-size: 2.25rem;
    }

    .section-head h2 {
        font-size: 1.9rem;
    }

    .card {
        padding: 22px;
    }

    .cta {
        border-radius: 20px;
    }
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: #fff;
    color: var(--green);
    padding: 10px 14px;
    border-radius: 8px;
    z-index: 999;
    font-weight: 800;
}

.skip-link:focus {
    left: 12px;
}

:focus-visible {
    outline: 3px solid rgba(196, 104, 77, .45);
    outline-offset: 3px;
}

.nav {
    position: relative;
}

.factbox .btn {
    margin-top: 18px;
}

.factbox-note {
    font-size: .78rem;
    color: var(--muted);
    margin-top: 10px;
    line-height: 1.45;
}

.source-note {
    font-size: .78rem;
    color: var(--muted);
    margin-top: 12px;
}

.source-note a {
    color: var(--green);
    font-weight: 750;
}

@media (max-width:900px) {
    .nav-links {
        top: calc(100% + 8px);
    }
}

.hero {
    align-items: start;
    padding: 54px 0 42px;
}

.hero>div:first-child {
    padding-top: 12px;
}

.hero-list {
    margin: 20px 0 26px;
}

.hero-image, .about-image, .equipment-image {
    --image-focus: center;
    width: 100%;
    min-width: 0;
    aspect-ratio: 4 / 3;
    align-self: start;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: left;
}

.about-image {
    aspect-ratio: 4 / 5;
}

.about-profile .content-card h3 {
    margin-top: 24px;
    font-size: 1.15rem;
    line-height: 1.3;
}

.about-profile .content-card h3 + .checklist {
    margin-top: 12px;
}

@media (min-width:901px) {
    .hero > .hero-image {
        align-self: center;
    }

    .about-profile {
        grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
        align-items: start;
    }
}

.hero-image img, .about-image img, .equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--image-focus);
    display: block;
}

.focus-top {
    --image-focus: center top;
}

.focus-upper {
    --image-focus: center 25%;
}

.focus-center {
    --image-focus: center;
}

.focus-lower {
    --image-focus: center 75%;
}

.focus-bottom {
    --image-focus: center bottom;
}

.section {
    padding-bottom: 86px;
}

.section-head {
    margin-bottom: 34px;
}

.course-grid {
    align-items: stretch;
}

.course-card {
    display: flex;
    flex-direction: column;
}

.course-card .text-link {
    margin-top: auto;
    align-self: flex-start;
}

.course-card .chips {
    min-height: 58px;
    align-content: flex-start;
}

.course-card .course-price {
    min-height: 28px;
    margin-bottom: 20px;
}

@media (max-width:1050px) {
    .course-card {
        min-height: 320px;
    }
}

@media (max-width:900px) {
    .hero {
        padding: 34px 0 34px;
    }

    .hero>div:first-child {
        padding-top: 0;
    }

    .course-card {
        min-height: 0;
    }

    .course-card .chips, .course-card .course-price {
        min-height: 0;
    }
}

.card, .course-card, .why-card, .step, .content-card, .factbox {
    text-align: left;
}

.course-grid, .why-grid, .process {
    text-align: left;
}

.home-courses {
    padding-top: 18px;
}

.split-compact {
    align-items: center;
}

.home-about-copy {
    padding: 10px 0;
    text-align: left;
}

.home-about-copy h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.45rem);
    line-height: 1.15;
    color: var(--green);
}

.home-about-copy p {
    color: var(--muted);
    margin-top: 14px;
    max-width: 620px;
}

.home-process .section-head {
    margin-bottom: 28px;
}

@media (max-width:1050px) {
    .compact-card {
        min-height: 200px;
    }
}

@media (max-width:900px) {
    .home-courses {
        padding-top: 0;
    }

    .compact-card {
        min-height: 0;
    }

    .home-about-copy {
        padding: 0;
    }
}

.course-grid-compact {
    align-items: stretch;
}

.compact-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-price {
    min-height: 4.5rem;
}

.compact-card .text-link {
    margin-top: auto;
}

[hidden] {
    display: none !important;
}

.btn-white {
    background: var(--white);
    color: var(--green);
}

.btn-white:hover {
    background: var(--green-soft);
    transform: translateY(-1px);
}

.nav-links a[aria-current] {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: .25em;
}

.nav-links a.btn-primary[aria-current] {
    color: var(--white);
}

.site-footer img {
    height: auto;
}

.site-footer a, .contact-intro a {
    overflow-wrap: anywhere;
}

.about-actions {
    margin-top: 22px;
}

.hero-image picture, .about-image picture, .equipment-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.contact-panel {
    min-width: 0;
}

.contact-notice {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 18px;
}

.contact-notice h2 {
    color: var(--green);
    font-size: 1.3rem;
    line-height: 1.3;
}

.contact-notice p {
    margin-top: 12px;
    color: var(--muted);
}

.contact-notice a {
    color: var(--green);
    overflow-wrap: anywhere;
}

.form-note {
    overflow-wrap: anywhere;
}

.price-line {
    flex-wrap: wrap;
    justify-content: center;
}

.hero > *, .split > *, .detail-grid > *, .contact-grid > *, .course-grid > * {
    min-width: 0;
}

@media (max-width:900px) {
    .nav {
        height: auto;
        min-height: 70px;
        flex-wrap: wrap;
        padding-block: 12px;
    }

    .nav-links {
        display: flex;
        position: static;
        width: 100%;
    }

    .menu-toggle {
        display: none;
    }

    .nav.menu-ready {
        height: 70px;
        padding-block: 0;
        flex-wrap: nowrap;
    }

    .nav.menu-ready .menu-toggle {
        display: grid;
    }

    .nav.menu-ready .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        width: auto;
        z-index: 60;
    }

    .nav.menu-ready .nav-links.open {
        display: flex;
    }
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn {
        transition: none;
    }

    .btn:hover {
        transform: none;
    }
}
