/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1a1a2e;
    background: #fafafa;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
.sr-only-focusable:focus {
    position: fixed; top: 0; left: 0; z-index: 9999;
    background: #C05A3A; color: #fff; padding: .75rem 1.5rem;
    font-weight: 600; border-radius: 0 0 8px 0;
}

/* ── Custom Properties ── */
:root {
    --charcoal: #1a1a2e;
    --charcoal-light: #2d2d44;
    --charcoal-mid: #3a3a52;
    --coral: #C05A3A;
    --coral-dark: #a84a2e;
    --coral-light: #d4785a;
    --cream: #f7f5f3;
    --off-white: #fafafa;
    --gray-100: #f0eeec;
    --gray-200: #e2e0dd;
    --gray-300: #c8c5c0;
    --gray-500: #7a7770;
    --gray-700: #4a4740;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(26,26,46,.08);
    --shadow-md: 0 4px 16px rgba(26,26,46,.1);
    --shadow-lg: 0 8px 32px rgba(26,26,46,.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Typography ── */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--charcoal);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: .9375rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.btn-accent {
    background: var(--coral);
    color: var(--white);
    border-color: var(--coral);
}
.btn-accent:hover { background: var(--coral-dark); border-color: var(--coral-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-outline-dark {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--charcoal);
}
.btn-outline-dark:hover { background: var(--charcoal); color: var(--white); }
.btn-sm { padding: .625rem 1.25rem; font-size: .875rem; }
.btn-full { width: 100%; }

/* ── Section Utilities ── */
.section-label {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: .75rem;
}
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
}
.section-intro {
    font-size: 1.0625rem;
    color: var(--gray-700);
    max-width: 640px;
    line-height: 1.7;
}

/* ── Header ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: .625rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--charcoal);
}
.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--coral);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}
.main-nav ul {
    display: flex;
    align-items: center;
    gap: .25rem;
}
.main-nav a {
    padding: .5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .9375rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
}
.main-nav a:hover { color: var(--charcoal); background: var(--gray-100); }

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
    z-index: 1001;
}
.nav-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/29659894/pexels-photo-29659894.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,46,.88) 0%, rgba(26,26,46,.72) 50%, rgba(192,90,58,.4) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 8rem 0 5rem;
    max-width: 720px;
}
.hero-eyebrow {
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--coral-light);
    margin-bottom: 1.25rem;
}
.hero-headline {
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}
.hero-sub {
    font-size: 1.125rem;
    color: rgba(255,255,255,.8);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 560px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}
.hero-stat-label {
    font-size: .8125rem;
    color: rgba(255,255,255,.6);
    margin-top: .25rem;
}

/* ── Programs ── */
.programs {
    padding: 6rem 0;
    background: var(--white);
}
.programs .container { text-align: center; }
.programs .section-intro { margin: 0 auto 3.5rem; }
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    text-align: left;
}
.program-card {
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
}
.program-card:hover {
    border-color: var(--coral);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.program-icon {
    width: 52px;
    height: 52px;
    background: var(--charcoal);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--coral-light);
}
.program-icon svg { width: 24px; height: 24px; }
.program-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: .75rem;
    color: var(--charcoal);
}
.program-card p {
    font-size: .9375rem;
    color: var(--gray-700);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}
.program-features {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.program-features li {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    color: var(--gray-700);
}
.program-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--coral);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Why Us ── */
.why-us {
    padding: 6rem 0;
    background: var(--cream);
}
.why-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.why-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.why-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.why-content .section-title { margin-bottom: 1rem; }
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}
.why-item { position: relative; }
.why-item-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--coral);
    opacity: .3;
    line-height: 1;
    margin-bottom: .5rem;
}
.why-item h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--charcoal);
}
.why-item p {
    font-size: .875rem;
    color: var(--gray-700);
    line-height: 1.6;
}

/* ── Courses Table ── */
.courses {
    padding: 6rem 0;
    background: var(--white);
}
.courses .container { text-align: center; }
.courses .section-intro { margin: 0 auto 3rem; }
.courses-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    margin-bottom: 3rem;
}
.courses-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9375rem;
}
.courses-table thead {
    background: var(--charcoal);
    color: var(--white);
}
.courses-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: .8125rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.courses-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}
.courses-table tbody tr:last-child td { border-bottom: none; }
.courses-table tbody tr:hover { background: var(--cream); }
.courses-cta {
    background: var(--charcoal);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}
.courses-cta p {
    color: rgba(255,255,255,.8);
    font-size: 1.0625rem;
    text-align: center;
    max-width: 480px;
}
.courses-cta .btn-accent { background: var(--coral); border-color: var(--coral); }

/* ── Testimonials ── */
.testimonials {
    padding: 6rem 0;
    background: var(--charcoal);
}
.testimonials .container { text-align: center; }
.testimonials .section-label { color: var(--coral-light); }
.testimonials .section-title { color: var(--white); margin-bottom: 3rem; }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    text-align: left;
}
.testimonial-card {
    background: var(--charcoal-light);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-md);
    padding: 2rem;
    position: relative;
}
.testimonial-quote {
    width: 32px;
    height: 24px;
    color: var(--coral);
    opacity: .5;
    margin-bottom: 1rem;
}
.testimonial-card p {
    font-size: .9375rem;
    color: rgba(255,255,255,.8);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}
.testimonial-footer { display: flex; flex-direction: column; gap: .25rem; }
.testimonial-name {
    font-weight: 600;
    font-size: .9375rem;
    color: var(--white);
}
.testimonial-context {
    font-size: .8125rem;
    color: rgba(255,255,255,.45);
}

/* ── Contact ── */
.contact {
    padding: 6rem 0;
    background: var(--cream);
}
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.contact-info .section-title { margin-bottom: 1rem; }
.contact-details {
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.contact-detail-icon {
    width: 44px;
    height: 44px;
    background: var(--charcoal);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--coral-light);
}
.contact-detail-icon svg { width: 20px; height: 20px; }
.contact-detail strong {
    display: block;
    font-size: .8125rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: .25rem;
}
.contact-detail p { font-size: .9375rem; color: var(--gray-700); line-height: 1.6; }
.contact-detail a {
    color: var(--coral);
    font-weight: 600;
    transition: var(--transition);
}
.contact-detail a:hover { color: var(--coral-dark); }
.contact-map { border-radius: var(--radius-md); overflow: hidden; }

/* Form */
.contact-form-wrap {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}
.form-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: .375rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: .9375rem;
    color: var(--charcoal);
    background: var(--off-white);
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--coral);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(192,90,58,.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-300); }
.form-note {
    font-size: .8125rem;
    color: var(--gray-500);
    margin-top: .75rem;
    text-align: center;
}
.form-success {
    text-align: center;
    padding: 2rem;
}
.form-success svg {
    width: 48px;
    height: 48px;
    color: #22c55e;
    margin: 0 auto 1rem;
}
.form-success h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: .5rem;
}
.form-success p { color: var(--gray-700); }

/* ── Footer ── */
.site-footer {
    background: var(--charcoal);
    color: rgba(255,255,255,.7);
    padding: 4rem 0 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}
.footer-brand .logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand p {
    font-size: .9375rem;
    line-height: 1.7;
    color: rgba(255,255,255,.55);
    max-width: 300px;
}
.footer-links h4,
.footer-contact h4 {
    font-family: 'Inter', sans-serif;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.25rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: .625rem; }
.footer-links a {
    font-size: .9375rem;
    color: rgba(255,255,255,.55);
    transition: var(--transition);
}
.footer-links a:hover { color: var(--coral-light); }
.footer-contact address {
    font-size: .9375rem;
    line-height: 1.8;
    color: rgba(255,255,255,.55);
}
.footer-contact a {
    color: var(--coral-light);
    transition: var(--transition);
}
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.5rem 0;
    text-align: center;
}
.footer-bottom p {
    font-size: .8125rem;
    color: rgba(255,255,255,.35);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .why-layout { gap: 2.5rem; }
    .contact-layout { gap: 2.5rem; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed;
        inset: 0;
        top: 72px;
        background: var(--white);
        padding: 2rem 1.5rem;
        transform: translateX(100%);
        transition: transform var(--transition);
        border-top: 1px solid var(--gray-200);
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
    .main-nav a { padding: .875rem 1rem; font-size: 1rem; }
    .main-nav a:hover { background: var(--gray-100); }
    .main-nav .btn { margin-top: 1rem; text-align: center; }

    .hero-content { padding: 7rem 0 4rem; }
    .hero-stats { gap: 2rem; flex-wrap: wrap; }

    .why-layout { grid-template-columns: 1fr; }
    .why-image-wrap { max-height: 400px; }
    .why-image-wrap img { object-fit: cover; }
    .why-grid { grid-template-columns: 1fr; gap: 1.5rem; }

    .contact-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.125rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; text-align: center; }
    .programs-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .courses-table th,
    .courses-table td { padding: .75rem 1rem; font-size: .8125rem; }
    .contact-form-wrap { padding: 1.5rem; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity .6s ease, transform .6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}
