:root {
    color-scheme: light;
    --ink: #202923;
    --muted: #626b64;
    --paper: #f5f5ef;
    --green: #315b46;
    --green-dark: #1c3529;
    --gold: #d2a75b;
    --white: #fff;
    --content-width: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 82px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--green);
    text-decoration: none;
}

a:hover {
    color: var(--green-dark);
}

h1,
h2,
h3,
h6 {
    margin-top: 0;
    color: var(--ink);
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.7rem);
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
}

h3 {
    font-size: 1.8rem;
}

h6 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.container {
    width: min(var(--content-width), calc(100% - 48px));
    margin-inline: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-inline: -12px;
}

.row > [class*="col-"] {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
}

.col-12 { width: 100%; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.mx-auto { margin-inline: auto; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mb-1 { margin-bottom: .35rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.pb-2 { padding-bottom: .5rem; }
.d-block { display: block; }
.img-fluid { width: 100%; height: auto; }

.navbar {
    position: fixed;
    z-index: 20;
    inset: 0 0 auto;
    min-height: 76px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 4px 22px rgba(25, 41, 31, .09);
}

.navbar > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.navbar-brand img {
    width: 120px;
    max-height: 60px;
    object-fit: contain;
}

.navbar-collapse,
.navbar-nav {
    display: flex;
    align-items: center;
}

.navbar-nav {
    flex-wrap: wrap;
    gap: .25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    display: block;
    padding: .6rem .75rem;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 700;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--green);
}

.navbar-toggler {
    display: none;
}

.hero {
    position: relative;
    min-height: min(760px, 92vh);
    padding: 120px 0 80px;
    overflow: hidden;
    background: var(--green-dark) url("../images/main-banner-img.jpg") center 46% / cover no-repeat;
}

.hero::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 35, 26, .76), rgba(17, 35, 26, .28));
    content: "";
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 820px;
    margin-inline: auto;
}

.hero h1 {
    margin-bottom: 1.25rem;
    color: var(--white);
    text-shadow: 0 2px 24px rgba(0, 0, 0, .28);
}

.custom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .75rem 1.35rem;
    border: 1px solid var(--gold);
    border-radius: 3px;
    background: var(--gold);
    color: #18241d;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.custom-btn:hover {
    transform: translateY(-2px);
    background: #e0bb78;
    color: #18241d;
}

.feature {
    padding: 92px 0;
    background: var(--green-dark);
}

.feature h3,
.feature h6,
.feature strong,
.feature p {
    color: var(--white);
}

.feature p {
    color: rgba(255, 255, 255, .78);
}

.about,
.contact {
    padding: 96px 0;
}

.about {
    background: var(--paper);
}

.about p i {
    margin-right: .5rem;
    color: var(--green);
}

.team-thumb img {
    border-radius: 3px;
    object-fit: cover;
}

.class,
.schedule {
    padding: 88px 0 96px;
}

.class .row > [class*="col-"],
.schedule .row > [class*="col-"] {
    display: flex;
}

.class-thumb {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 3px;
    background: var(--paper);
}

.class-thumb > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .35s ease;
}

.class-thumb:hover > img {
    transform: scale(1.035);
}

.class-info {
    padding: 1rem 1.1rem;
    background: var(--white);
}

.class-info h6 {
    margin: 0;
    font-size: 1.05rem;
}

.schedule {
    background: var(--paper);
}

.schedule .class-thumb {
    align-self: flex-start;
    background: transparent;
}

.schedule .class-thumb > img {
    aspect-ratio: 4 / 3;
}

.contact-form,
.membership-form {
    display: grid;
    gap: 1rem;
}

.form-control {
    width: 100%;
    min-height: 48px;
    padding: .75rem .9rem;
    border: 1px solid #d5dbd5;
    border-radius: 3px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

button.form-control {
    border-color: var(--green);
    background: var(--green);
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
}

button.form-control:hover {
    background: var(--green-dark);
}

.form-control:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.google-map img {
    width: 100%;
    max-height: 320px;
    border-radius: 3px;
    object-fit: cover;
}

.site-footer {
    padding: 30px 0;
    background: var(--green-dark);
}

.site-footer p {
    margin: 0;
    color: rgba(255, 255, 255, .8);
    text-align: center;
}

.site-footer a {
    color: var(--white);
}

.modal {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    background: rgba(12, 22, 16, .65);
}

.modal.show {
    display: flex;
}

.modal-dialog {
    width: min(100%, 540px);
    margin: auto;
}

.modal-content {
    overflow: hidden;
    border-radius: 4px;
    background: var(--white);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .2);
}

.modal-header,
.modal-body {
    padding: 1.25rem 1.5rem;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e8e4;
}

.modal-title {
    margin: 0;
    font-size: 1.7rem;
}

.close {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.8rem;
    cursor: pointer;
}

#social .float-sm {
    position: fixed;
    z-index: 15;
    top: 42%;
    right: 0;
    display: grid;
    gap: .5rem;
}

#social .fl-fl a {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .7rem;
    border-radius: 4px 0 0 4px;
    background: var(--green);
    color: var(--white);
    box-shadow: 0 3px 14px rgba(0, 0, 0, .18);
    font-size: .85rem;
    font-weight: 700;
}

#social .fl-fl img {
    width: 26px;
    height: 26px;
}

@media (min-width: 576px) {
    .col-md-6 { width: 50%; }
}

@media (min-width: 768px) {
    .col-md-5 { width: 41.6667%; }
    .col-md-6 { width: 50%; }
    .col-md-10 { width: 83.3333%; }
}

@media (min-width: 992px) {
    .col-lg-3 { width: 25%; }
    .col-lg-4 { width: 33.3333%; }
    .col-lg-5 { width: 41.6667%; }
    .col-lg-8 { width: 66.6667%; }
    .col-lg-12 { width: 100%; }

    .ml-lg-auto { margin-left: auto; }
    .mr-lg-auto { margin-right: auto; }
    .mr-lg-5 { margin-right: 3rem; }
    .mt-lg-0 { margin-top: 0; }
    .mb-lg-0 { margin-bottom: 0; }
}

@media (max-width: 767px) {
    .container {
        width: min(100% - 32px, var(--content-width));
    }

    .navbar,
    .navbar > .container {
        min-height: 68px;
    }

    .navbar-brand img {
        width: 100px;
    }

    .navbar-nav {
        justify-content: flex-end;
        gap: 0;
    }

    .nav-link {
        padding: .45rem .5rem;
        font-size: .78rem;
    }

    .hero {
        min-height: 620px;
        min-height: 86svh;
        padding-top: 105px;
    }

    .feature,
    .about,
    .class,
    .schedule,
    .contact {
        padding-block: 64px;
    }

    .class .row > [class*="col-"] + [class*="col-"],
    .schedule .row > [class*="col-"] + [class*="col-"] {
        margin-top: 1.25rem;
    }

    .team-thumb {
        margin-top: 1.5rem;
    }

    #social .float-sm {
        top: auto;
        right: 12px;
        bottom: 12px;
        display: flex;
    }

    #social .fl-fl a {
        width: 48px;
        height: 48px;
        justify-content: center;
        padding: .5rem;
        border-radius: 50%;
        font-size: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}