/* Design refresh preview. Remove the <link> to this file from each page to roll back. */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --font-body: 'Lato', -apple-system, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-ui: 'Montserrat', sans-serif;
    --navy: #0b1f3a;
    --navy-soft: #16345d;
    --red: #c8102e;
    --red-dark: #a00d25;
    --ink: #1c2430;
    --muted: #5a6575;
    --surface: #f3f5f9;
    --line: #e1e6ee;
    --radius: 12px;
    --shadow: 0 6px 20px rgba(11, 31, 58, 0.08);
}

body,
textarea,
input,
button {
    font-family: var(--font-body);
}

body {
    color: var(--ink);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--navy);
    font-family: var(--font-heading);
    line-height: 1.25;
}

h2 {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin: 0.75rem auto 0;
    border-radius: 2px;
    background: var(--red);
}

.hero-content h2,
.hero-content h2::after {
    color: #fff;
}

.hero-eyebrow,
.hero-intro,
.hero-follow-up,
.button-link,
.nav-links a,
.nav-links summary {
    font-family: var(--font-ui);
}

.hero-content h2::after {
    display: none;
}

h3 {
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
}

section > p,
.section-intro {
    color: var(--muted);
}

/* Header */
header {
    background: var(--navy);
    border-bottom: 3px solid var(--red);
}

.nav-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.logo img {
    height: 68px;
}

nav {
    height: 88px;
}

.nav-links a,
.nav-links summary {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.nav-links > li > a:hover,
.nav-links > li > details > summary:hover {
    border-bottom-color: var(--red);
}

.nav-dropdown ul {
    background: var(--navy-soft);
    border-radius: 0 0 var(--radius) var(--radius);
    border-top: 2px solid var(--red);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.nav-dropdown ul a {
    padding: 0.7rem 1.1rem;
    border-bottom: 0;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: none;
}

.nav-dropdown ul a:hover,
.nav-dropdown ul a:focus-visible {
    background: var(--navy);
}

.hero {
    background-color: var(--navy);
}

/* Hero: keep the images, add a navy-tinted overlay */
.hero-overlay {
    background: linear-gradient(180deg, rgba(11, 31, 58, 0.55), rgba(11, 31, 58, 0.78));
}

.hero-eyebrow {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--red);
    font-size: 0.8rem;
}

.hero-content h2 {
    font-weight: 800;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

/* Buttons */
.button-link {
    border-radius: 999px;
    border-color: var(--red);
    padding: 0.75rem 1.6rem;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25);
}

.button-link-primary {
    background: var(--red);
}

.button-link-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

.button-link-secondary {
    box-shadow: none;
}

.button-link-secondary:hover {
    color: var(--navy);
}

.page-secondary-link {
    border-color: var(--navy);
    color: var(--navy);
    box-shadow: none;
}

.page-secondary-link:hover {
    background: var(--navy);
    color: #fff;
}

.button-link:focus-visible,
.text-link:focus-visible {
    outline-color: var(--navy);
}

.text-link,
.class-location a,
.class-time,
.faq-item a,
.fee-information a:not(.button-link),
.events-panel a {
    color: var(--red);
}

/* Sections: alternate backgrounds */
section {
    padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 5vw, 2rem);
}

section:nth-of-type(even),
.welcome-section {
    background: var(--surface);
}

.home-classes {
    background: #fff;
}

/* Cards */
.benefit-item,
.class-item,
.faq-item,
.fee-information,
.events-panel,
.contact-details,
.contact-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.benefit-item {
    border-top: 4px solid var(--red);
}

section:nth-of-type(even) .benefit-item,
section:nth-of-type(even) .class-item,
section:nth-of-type(even) .faq-item {
    background: #fff;
}

.class-item .class-time {
    font-size: 1.3rem;
}

.taekwondo-background .general-choi-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.general-choi-portrait {
    display: block;
    width: min(100%, 12rem);
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.taekwondo-background .class-item > .general-choi-portrait {
    margin-bottom: 1rem;
}

.butf-photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.butf-photo-gallery figure {
    margin: 0;
}

.butf-photo-gallery img {
    display: block;
    width: 100%;
    height: 9rem;
    object-fit: contain;
    background: var(--surface);
    border-radius: 8px;
}

.butf-photo-gallery figcaption {
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.taekwondo-background .class-item > h4 + p + h4 {
    margin-top: 1.75rem;
}

.butf-section-divider {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 1.75rem 0;
}

#abouttkd > .class-list > .class-item:nth-child(-n+2) {
    text-align: left;
}

#abouttkd > .class-list > .class-item:nth-child(-n+2) h3 {
    margin-bottom: 1.5rem;
}

#abouttkd > .class-list > .class-item:nth-child(-n+2) .centered-list {
    text-align: left;
}

#abouttkd > .class-list > .class-item:nth-child(-n+2) .centered-list li {
    margin-bottom: 1.5rem;
    text-align: left;
}

#abouttkd > .class-list > .class-item:nth-child(-n+2) .centered-list li:last-child {
    margin-bottom: 0;
}

#abouttkd > .class-list > .class-item:nth-child(-n+2) .centered-list h4 {
    margin-bottom: 0.5rem;
}

#abouttkd > .class-list > .class-item:nth-child(-n+2) .centered-list li p {
    max-width: 38rem;
    margin: 0;
    line-height: 1.7;
}

/* Photos */
.profile-image,
.instructor-group-photo,
.events-panel img,
.photo-gallery img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Forms */
form input,
form textarea {
    border: 1px solid var(--line);
    border-radius: 8px;
}

form input:focus,
form textarea:focus {
    outline: 2px solid var(--navy);
    outline-offset: 1px;
}

.contact-map iframe {
    border-radius: var(--radius);
}

@media (min-width: 1101px) {
    #contact-main {
        display: flex;
        flex-direction: column;
    }

    #contact {
        display: flex;
        flex: 1;
        flex-direction: column;
    }

    .contact-map {
        display: flex;
        flex: 1;
        flex-direction: column;
    }

    .contact-map iframe {
        flex: 1;
        height: auto;
        min-height: 400px;
    }
}

/* Footer */
footer {
    background: var(--navy);
    border-top: 3px solid var(--red);
    margin-top: 0;
    padding: 2rem 1rem;
}

@media (max-width: 1100px) {
    .nav-header {
        letter-spacing: -0.02em;
    }
}

/* Very narrow screens: let the title wrap onto two lines instead of running under the menu button */
@media (max-width: 420px) {
    .logo-container {
        flex: 1 1 auto;
        min-width: 0;
    }

    .nav-header {
        white-space: normal;
        min-width: 0;
        font-size: clamp(0.7rem, 3.6vw, 0.95rem);
        line-height: 1.15;
        letter-spacing: 0;
    }

    .logo img {
        height: 48px;
    }

}

@media (max-width: 1100px) {
    .nav-links {
        background: var(--navy-soft);
    }

    .nav-dropdown ul {
        background: var(--navy);
        border-top: 0;
        border-radius: 0;
    }

    .nav-links a,
    .nav-links summary {
        border-bottom: 0;
        padding: 0.85rem 1rem;
    }
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0 0 0.75rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff;
}

.footer-social a:hover,
.footer-social a:focus-visible {
    background: var(--red);
    border-color: var(--red);
    outline: none;
}

.footer-social svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Phones in landscape: let the hero grow to fit its content and tighten spacing */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: 0;
        padding: 0;
    }

    .hero-overlay {
        position: relative;
        height: auto;
        min-height: 100svh;
    }

    .hero-content {
        padding: 1.25rem 0;
    }

    .hero-content h2 {
        font-size: clamp(1.5rem, 5vw, 2.25rem);
        max-width: none;
    }

    .hero-intro {
        margin-top: 0.5rem;
        font-size: 1rem;
    }

    .hero-actions {
        margin-top: 1rem;
    }
}

/* Classes page: space the buttons when they stack on narrow screens */
.class-next-step .button-link {
    margin: 0.5rem 0.4rem 0;
}

@media (max-width: 600px) {
    .class-next-step .button-link {
        display: flex;
        width: 100%;
        max-width: 22rem;
        margin: 0.9rem auto 0;
    }
}

.map-directions {
    margin-top: 0.75rem;
    text-align: center;
}

.map-directions a {
    color: var(--red);
    font-weight: 700;
    text-underline-offset: 0.2em;
}

.footer-review {
    margin-bottom: 0.75rem;
}

.footer-review a {
    color: #fff;
    text-underline-offset: 0.2em;
}

/* Contact form submit button: match the site's primary button */
form button[type="submit"] {
    padding: 0.85rem 2rem;
    border: 1px solid var(--red);
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-family: var(--font-ui);
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, border-color 0.2s ease;
}

form button[type="submit"]:hover,
form button[type="submit"]:focus-visible {
    border-color: var(--red-dark);
    background: var(--red-dark);
}

/* Contact page icons: use the site palette */
.contact-details .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 1.15rem;
    transition: background 0.2s ease;
}

.contact-details .social-links {
    flex-wrap: wrap;
    row-gap: 1rem;
}

@media (max-width: 480px) {
    .contact-details .social-links {
        gap: 0.75rem;
    }
}

.contact-details .social-icon:hover,
.contact-details .social-icon:focus-visible {
    background: var(--red);
    color: #fff;
}

.contact-details .fa-phone {
    color: var(--red);
}

/* Book a trial band above the footer */
.trial-cta {
    padding: clamp(2rem, 6vw, 3.5rem) 1rem;
    background: var(--surface);
    text-align: center;
}

.trial-cta h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.4rem, 4vw, 1.9rem);
}

.trial-cta p {
    margin: 0 auto 1.25rem;
    max-width: 40rem;
}

.trial-cta .hero-actions {
    justify-content: center;
}

/* Floating Book a trial button */
.floating-trial {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 900;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    background: var(--red);
    box-shadow: 0 6px 18px rgba(11, 31, 58, 0.3);
    color: #fff;
    font-family: var(--font-ui);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, opacity 0.25s ease, transform 0.25s ease;
}

.floating-trial:hover,
.floating-trial:focus-visible {
    background: var(--red-dark);
    color: #fff;
}

.floating-trial.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.75rem);
}

@media (prefers-reduced-motion: reduce) {
    .floating-trial {
        transition: none;
    }
}

/* Home page reviews */
.review-item {
    margin: 0;
}

.review-stars {
    margin: 0 0 0.5rem;
    color: #f5a623;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
}

.review-item blockquote {
    margin: 0 0 1rem;
    padding: 0;
}

.review-item blockquote p {
    margin: 0;
}

.review-item figcaption {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.footer-areas {
    margin: 0 0 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.belt-chart {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 0.75rem;
}

.belt-chart li {
    flex: 0 0 8.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.belt-chart .belt {
    position: relative;
    display: block;
    width: 100%;
    height: 1.4rem;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.belt-chart .belt-tag {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 18%;
    width: 0.5rem;
}

.belt-chart .belt-name {
    margin-top: 0.4rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.belt-chart .belt-grade {
    font-size: 0.8rem;
    color: #555;
}

@media (min-width: 768px) {
    .events-panel.news-post {
        grid-template-columns: minmax(0, 1fr) minmax(16rem, 34rem);
    }

    .events-panel.news-post .event-poster {
        max-width: 34rem;
    }
}

.news-subheading {
    margin: 2.5rem 0 1rem;
}

.events-panel.news-post h4 {
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.news-subheading + .photo-gallery {
    margin-top: 2rem;
}

.news-photo-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: start;
}

.news-photo-pair img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

@media (min-width: 768px) {
    .events-panel.news-post:has(.news-photo-pair) {
        grid-template-columns: minmax(0, 1fr) minmax(18rem, 38rem);
    }
}

.photo-viewer.is-single {
    width: fit-content;
    min-width: min(20rem, 96vw);
    max-width: 96vw;
}

.photo-viewer.is-single .photo-viewer-toolbar {
    justify-content: flex-end;
}

.photo-viewer.is-single .photo-viewer-content {
    display: flex;
    justify-content: center;
}

.photo-viewer.is-single .photo-viewer-image {
    width: auto;
    max-width: 100%;
}

/* Tablets and below: photo on top, text underneath */
@media (max-width: 1100px) {
    .events-panel.news-post,
    .events-panel.news-post:has(.news-photo-pair) {
        grid-template-columns: minmax(0, 1fr);
    }

    .events-panel.news-post > .gallery-image-button,
    .events-panel.news-post > .news-photo-pair {
        order: -1;
        max-width: 34rem;
        margin: 0 auto;
    }

    .events-panel.news-post > .news-photo-pair {
        max-width: 40rem;
    }
}

/* In-text links use the site red (previously default or legacy blue) */
main p:not(.hero-follow-up) a:not([class]),
.profile-copy a {
    color: var(--red);
    font-weight: 700;
    text-underline-offset: 0.2em;
}

main p:not(.hero-follow-up) a:not([class]):hover,
.profile-copy a:hover {
    color: var(--red-dark);
}

.belt-chart .belt-numeral {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    color: #f4c20d;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
}

.belt-note {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

.belt-chart-heading {
    margin: 1.75rem 0 0;
    text-align: center;
    font-size: 1.05rem;
}

.belt-chart-black li {
    flex-basis: 11rem;
}

.belt-chart-black .belt {
    height: 2.6rem;
}

.belt-chart .belt-butf {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    color: #f4c20d;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
}
