/* ============================================================
   Keneshia Gibbs LLC — Modern Redesign
   Palette (unchanged from original):
     White      #FAF9F6 / #FFFFFF
     Navy Blue  #191c3f
     Purple     #553D75
     Gold accent#FFD700 (kept from original for hover/title)
   ============================================================ */

:root {
    --white: #FAF9F6;        /* White / off-white */
    --pure-white: #FFFFFF;
    --navy: #191c3f;         /* Navy Blue — main color */
    --purple: #553D75;       /* Purple — text / CTA */
    --gold: #FFD700;         /* Accent (from original) */
    --warm-gray: #2F2F2F;

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 4px 18px rgba(25, 28, 63, 0.08);
    --shadow-md: 0 18px 40px rgba(25, 28, 63, 0.18);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px; /* keep anchored content clear of fixed header */
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--warm-gray);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a { transition: color 0.3s ease; }

.container {
    max-width: 1240px;
    margin: 0 auto;
}

/* Accessibility focus */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--navy);
    color: #fff;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 22px rgba(25, 28, 63, 0.45);
}

/* thin gradient accent line under header */
.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purple), var(--gold));
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #fff;
    text-decoration: none;
}

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

.brand span {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    position: relative;
    padding-bottom: 4px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.main-nav a:hover { color: var(--gold); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    padding: 7rem 1.5rem 4rem;
    background: linear-gradient(rgba(25, 28, 63, 0.72), rgba(85, 61, 117, 0.55)),
                url('https://storage2.snappages.site/r8om1mruym/assets/images/855165_5760x3840_2500.jpg') center top / cover no-repeat;
}

.hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.25;
    margin-bottom: 1.2rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero p {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.7;
    margin-bottom: 2.2rem;
    color: var(--white);
    opacity: 0.95;
}

/* entrance animation */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero h1        { animation: fadeUp 0.9s ease 0.15s both; }
.hero p         { animation: fadeUp 0.9s ease 0.32s both; }
.hero .cta-button { animation: fadeUp 0.9s ease 0.48s both; }

/* ============================================================
   CTA BUTTON
   ============================================================ */
.cta-button {
    display: inline-block;
    padding: 1rem 2.4rem;
    background-color: var(--purple);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 8px 24px rgba(85, 61, 117, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(85, 61, 117, 0.55);
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    text-align: center;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin: 0.8rem auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--purple), var(--navy));
}

/* ============================================================
   COURSES SECTION
   ============================================================ */
.courses-section { padding: 5rem 1.5rem; background-color: var(--white); }

.course-note {
    text-align: center;
    color: var(--purple);
    font-weight: 600;
    margin-bottom: 1rem;
}

.spanish-link {
    display: block;
    text-align: center;
    color: var(--navy);
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

/* reset default heading margins inside the spanish link */
.spanish-link h3 {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

.spanish-link:hover { color: var(--purple); }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.8rem;
    max-width: 1240px;
    margin: 0 auto;
}

.product-card {
    background-color: var(--pure-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img { transform: scale(1.06); }

.product-info { padding: 1.3rem 1.4rem 1.5rem; }

.product-info h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 0.4rem; }
.product-info p  { color: var(--warm-gray); font-size: 0.92rem; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
    padding: 5rem 1.5rem;
    background-color: var(--navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* decorative floating blobs (no text) */
.about-section::before,
.about-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.about-section::before {
    width: 420px; height: 420px;
    background-color: rgba(85, 61, 117, 0.28);
    top: -120px; left: -120px;
    animation: float 14s ease-in-out infinite alternate;
}
.about-section::after {
    width: 380px; height: 380px;
    background-color: rgba(85, 61, 117, 0.2);
    bottom: -140px; right: -140px;
    animation: float 16s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, -30px) scale(1.05); }
}

.about-content { max-width: 820px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }

.about-section .section-title { color: var(--gold); }
.about-section .section-title::after { background: linear-gradient(90deg, var(--purple), var(--gold)); }

.about-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(250, 249, 246, 0.85);
    margin-bottom: 1.6rem;
}

.about-section p:last-of-type { margin-bottom: 0; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { padding: 5rem 1.5rem; background-color: var(--pure-white); }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
    max-width: 1240px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.testimonial-card::before {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--purple), var(--navy));
    margin-bottom: 1.3rem;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.testimonial-card q {
    display: block;
    margin-bottom: 1.2rem;
    font-style: italic;
    color: var(--warm-gray);
    line-height: 1.7;
}

.testimonial-author { color: var(--purple); font-weight: 700; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background-color: var(--navy);
    color: rgba(250, 249, 246, 0.85);
    padding: 3.5rem 1.5rem 2.5rem;
}

.footer-content {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.site-footer h3 {
    color: var(--gold);
    font-family: var(--font-serif);
    margin-bottom: 0.8rem;
}

.site-footer p { line-height: 1.7; }

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.3rem;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--purple);
    transform: translateY(-3px);
}

.cross-symbol { font-size: 1.4rem; margin: 2rem auto 0; text-align: center; }

.footer-bottom {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a { color: var(--gold); }
.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   EVENTS PAGE — gallery styles
   New class names only, scoped to the events page; reuses shared
   header/footer/section-title/reveal classes so the home page is
   unaffected.
   ============================================================ */
.gallery-container { padding: 6rem 1.5rem 4rem; }

.gallery-header { text-align: center; margin-bottom: 2.5rem; }

.gallery-subtitle {
    color: var(--warm-gray);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

.filter-group { max-width: 1240px; margin: 0 auto; }

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--navy);
    color: #fff;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.filter-btn:hover { background-color: var(--purple); }

.filter-btn.active {
    background-color: var(--purple);
    color: #fff;
    box-shadow: 0 4px 16px rgba(85, 61, 117, 0.35);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
    max-width: 1240px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(25, 28, 63, 0.92), rgba(25, 28, 63, 0.4));
    color: #fff;
    padding: 1.2rem 1.4rem;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.gallery-item:hover .item-overlay { transform: translateY(0); }

.item-overlay h3 {
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.item-overlay p {
    color: rgba(250, 249, 246, 0.85);
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .gallery-container { padding-top: 5rem; }
    /* keep captions visible on touch devices (no hover)
 */
    .item-overlay { transform: translateY(0); }
    .gallery-grid { gap: 1.2rem; }
}

/* ============================================================
   CONTACT PAGE — styles
   New class names only, scoped to the contact page; reuses shared
   header/section-title/reveal classes so other pages are unaffected.
   ============================================================ */
.contact-container { padding: 6rem 1.5rem 4rem; }

.contact-card {
    background-color: var(--pure-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.8rem;
}

.contact-item { text-align: center; }

.contact-item i {
    font-size: 2rem;
    color: var(--purple);
    margin-bottom: 0.75rem;
    display: block;
}

.contact-item p {
    color: var(--warm-gray);
    line-height: 1.6;
    font-size: 1rem;
}

.map-container {
    max-width: 900px;
    margin: 2rem auto 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-container iframe {
    width: 100%;
    height: 340px;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .contact-container { padding-top: 5rem; }
    .contact-card { padding: 1.75rem; }
    .map-container iframe { height: 240px; }
}

/* ============================================================
   SCROLL REVEAL (gated behind .js so content shows if JS is off)
   ============================================================ */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .products-grid,
    .testimonial-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--navy);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
        transform: translateY(-16px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 1.5rem 1.5rem;
    }

    .main-nav li { text-align: center; }

    .main-nav a {
        display: block;
        padding: 0.85rem 0;
        font-size: 1.05rem;
    }

    .hero { min-height: 72vh; padding-top: 6rem; }
    .courses-section,
    .about-section,
    .testimonials { padding: 3.5rem 1.25rem; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .js .reveal { opacity: 1 !important; transform: none !important; }
}
