/* =======================================
   JAYmath Tutoring — style.css
   Palette: #00a660 #00a6a6 #0097b2 #082b5f #5170ff #cb6ce6
   Fonts: Sora (headings) + Lora (body/italic accents)
   ======================================= */

:root {
    --teal:         #00a660;
    --teal-dark:    #008a50;
    --ocean:        #0097b2;
    --ocean-dark:   #007a92;
    --navy:         #0f437f;
    --navy-mid:     #0f3d7a;
    --green:        #00a660;
    --green-dark:   #008a50;
    --indigo:       #5170ff;
    --violet:       #cb6ce6;

    --off-white:    #f7f8fc;
    --white:        #ffffff;
    --text:         #0d1b2a;
    --text-mid:     #3a4a5c;
    --text-muted:   #6b7a8d;
    --border:       #dde3ed;
    --border-light: #edf0f6;

    --shadow-xs: 0 1px 4px rgba(8,43,95,0.06);
    --shadow-sm: 0 3px 12px rgba(8,43,95,0.08);
    --shadow:    0 8px 28px rgba(8,43,95,0.11);
    --shadow-lg: 0 18px 50px rgba(8,43,95,0.14);

    --r-sm: 8px;
    --r:    14px;
    --r-lg: 20px;
    --r-xl: 28px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Lora', Georgia, serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

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

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== LOGO ===== */
.logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }

.logo-img {
    height: 72px;
    width: auto;
    display: block;
}

/* ===== MOBILE STICKY ===== */
.sticky-contact {
    position: fixed;
    bottom: 16px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.btn-sticky {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    border-radius: 6px;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    color: white;
    letter-spacing: 0.3px;
    transition: opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.btn-sticky:active { opacity: 0.88; }
.btn-call { background: var(--navy); }
.btn-book { background: var(--teal); }

/* ===== HEADER ===== */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 200;
    padding: 14px 0;
    transition: box-shadow 0.3s;
}

header.scrolled { box-shadow: 0 2px 16px rgba(8,43,95,0.08); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-family: 'Sora', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--teal);
    color: white;
    padding: 9px 20px;
    border-radius: 6px;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.855rem;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: background 0.2s;
}

.nav-cta:hover { background: var(--teal-dark); }

.nav-phone {
    text-decoration: none;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--navy);
    letter-spacing: 0.2px;
}

/* ===== HERO ===== */
#hero {
    padding: 90px 0 80px;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(0,166,166,0.18) 0%, transparent 70%);
    pointer-events: none;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(81,112,255,0.13) 0%, transparent 65%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.hero-location {
    font-family: 'Sora', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 18px;
}

.hero-text h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.14;
    color: var(--white);
    margin-bottom: 22px;
    letter-spacing: -0.5px;
}

.hero-text h1 em {
    font-style: italic;
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    color: var(--teal);
}

.hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.68);
    max-width: 480px;
    line-height: 1.78;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn-primary {
    display: inline-block;
    background: var(--teal);
    color: white;
    padding: 15px 32px;
    border-radius: 6px;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: rgba(255,255,255,0.85);
    padding: 14px 26px;
    border-radius: 6px;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    border: 1.5px solid rgba(255,255,255,0.25);
    transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover { border-color: rgba(255,255,255,0.55); color: white; }

/* Stat cards in hero */
.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--r);
    padding: 22px 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border-left: 3px solid var(--teal);
}

.stat-card.stat-accent { border-left-color: var(--indigo); }

.stat-num {
    font-family: 'Sora', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--white);
    min-width: 64px;
    flex-shrink: 0;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.55;
    padding-top: 4px;
}

/* ===== SECTION SHARED ===== */
section { padding: 88px 0; }

.section-header { margin-bottom: 52px; }

.section-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 14px;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.section-sub {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 580px;
    line-height: 1.76;
}

/* ===== BENEFITS ===== */
#why { background: var(--off-white); }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.benefit-card {
    background: var(--white);
    padding: 32px 28px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
    position: relative;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--teal);
    transition: height 0.3s ease;
}

.benefit-card:hover::before { height: 100%; }
.benefit-card:hover { background: var(--off-white); }

.benefit-card h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    letter-spacing: -0.1px;
}

.benefit-card p {
    font-size: 0.915rem;
    color: var(--text-muted);
    line-height: 1.68;
}

/* ===== SERVICES ===== */
#services { background: var(--white); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}

.service-card {
    background: var(--off-white);
    border-radius: var(--r-lg);
    padding: 32px 28px;
    border-top: 3px solid var(--teal);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card.service-card-alt {
    background: var(--navy);
    border-top-color: var(--indigo);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.service-card h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    letter-spacing: -0.1px;
}

.service-card.service-card-alt h3 { color: var(--white); }

.service-card p {
    font-size: 0.91rem;
    color: var(--text-muted);
    line-height: 1.68;
}

.service-card.service-card-alt p { color: rgba(255,255,255,0.62); }

/* ===== GALLERY ===== */
#gallery { background: var(--off-white); }

.gallery-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: 240px 240px;
    gap: 14px;
}

.gallery-item {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--border);
}

.gallery-item-large {
    grid-row: 1 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item-large img { min-height: 340px; }
.gallery-item:not(.gallery-item-large) img { height: 100%; min-height: 200px; }

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(8,43,95,0.72) 0%, transparent 100%);
    color: white;
    font-family: 'Sora', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ===== TESTIMONIALS ===== */
#testimonials { background: var(--navy); }

#testimonials .section-title { color: var(--white); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.testimonial-card {
    border-radius: var(--r-lg);
    padding: 32px 28px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    transition: background 0.2s;
}

.testimonial-card:hover { background: rgba(255,255,255,0.07); }

.testimonial-card blockquote {
    font-size: 0.97rem;
    font-style: italic;
    color: rgba(255,255,255,0.78);
    line-height: 1.76;
    margin-bottom: 18px;
}

.testimonial-card cite {
    font-family: 'Sora', sans-serif;
    font-style: normal;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--teal);
    letter-spacing: 0.3px;
}

/* ===== HOURS & LOCATION ===== */
#hours { background: var(--white); }

.hl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.hl-card {
    background: var(--off-white);
    border-radius: var(--r-xl);
    padding: 42px 38px;
    border: 1px solid var(--border);
}

.hl-card .section-title { margin-bottom: 28px; }

.hours-list { margin-bottom: 24px; }

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.hours-row:last-child { border-bottom: none; }

.h-day {
    font-family: 'Sora', sans-serif;
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-mid);
}

.h-time {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--navy);
}

.h-closed {
    color: var(--text-muted);
    font-weight: 400;
}

.capacity-note {
    font-size: 0.875rem;
    color: var(--text-mid);
    line-height: 1.62;
    padding: 16px;
    background: rgba(0,166,166,0.07);
    border-left: 3px solid var(--teal);
    border-radius: var(--r-sm);
}

.address-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 26px;
    padding: 20px 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
}

.address-block strong {
    font-family: 'Sora', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--navy);
}

.address-block span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.btn-directions,
.btn-call-loc {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px;
    border-radius: var(--r);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: opacity 0.2s, transform 0.2s;
    margin-bottom: 12px;
}

.btn-directions {
    background: var(--navy);
    color: white;
}

.btn-call-loc {
    background: var(--white);
    color: var(--navy);
    border: 1.5px solid var(--border);
}

.btn-directions:hover,
.btn-call-loc:hover { opacity: 0.88; transform: translateY(-1px); }

/* ===== CONTACT ===== */
#contact { background: var(--off-white); }

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 72px;
    align-items: start;
}

.contact-text .section-title { margin-bottom: 14px; }

.contact-text > p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.76;
    margin-bottom: 30px;
}

.c-info-list { display: flex; flex-direction: column; gap: 12px; }

.c-info-item {
    font-size: 0.95rem;
    color: var(--text-mid);
}

.c-info-item a {
    color: var(--navy);
    text-decoration: none;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.c-info-item a:hover { color: var(--teal); }

/* Form */
.form-group { margin-bottom: 18px; }

label {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

input[type="text"],
input[type="tel"],
select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    font-family: 'Lora', Georgia, serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5l5 5 5-5' stroke='%236b7a8d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 42px;
    cursor: pointer;
}

input::placeholder { color: #b0bbc8; }

input:focus,
select:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0,166,166,0.12);
}

.btn-submit {
    width: 100%;
    border: none;
    background: var(--navy);
    color: white;
    padding: 16px;
    border-radius: 6px;
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.15s;
}

.btn-submit:hover { background: var(--navy-mid); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 12px;
}

/* Confirmation */
.confirmation-message {
    text-align: center;
    padding: 60px 20px;
}

.confirmation-message h3 {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--teal);
    margin-bottom: 14px;
}

.confirmation-message p {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.72;
    margin-bottom: 6px;
}

.confirmation-message .signature {
    margin-top: 18px;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== FOOTER ===== */
footer {
    background: var(--navy);
    padding: 52px 0 28px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    opacity: 1;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
}

.footer-links a {
    color: rgba(255,255,255,0.44);
    text-decoration: none;
    font-family: 'Sora', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--teal); }

.footer-copy p {
    font-family: 'Sora', sans-serif;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.28);
    line-height: 1.7;
}

/* ===== RESPONSIVE ===== */

@media (min-width: 900px) {
    .sticky-contact { display: none; }

    .hero-inner {
        flex-direction: row;
        align-items: center;
        gap: 72px;
    }

    .hero-text { flex: 1.25; }
    .hero-stats { flex: 0.8; }

    .gallery-caption {
        background: transparent;
        padding: 12px 16px 12px;
    }

    .gallery-item:not(.gallery-item-large) .gallery-caption {
        background: transparent;
        color: white;
    }
}

@media (max-width: 899px) {
    .sticky-contact { display: flex; }

    .header-nav .nav-link,
    .header-nav .nav-cta { display: none; }

    .hero-inner { align-items: flex-start; }

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

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-item-large { grid-row: auto; min-height: auto; }
    .gallery-item-large img,
    .gallery-item:not(.gallery-item-large) img {
        height: 260px;
        min-height: 260px;
    }

    body { padding-bottom: 82px; }
}

@media (max-width: 600px) {
    section { padding: 62px 0; }

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

    .hero-actions .btn-primary,
    .hero-actions .btn-outline {
        text-align: center;
        justify-content: center;
    }

    .hl-card { padding: 28px 22px; }

    .benefits-grid,
    .services-grid,
    .testimonials-grid { grid-template-columns: 1fr; }
}

* { max-width: 100%; }
img, select, input { max-width: 100%; }