@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

:root {
    --paper: #f5f2ea;
    --ink: #182018;
    --muted: #697066;
    --line: rgba(24, 32, 24, 0.18);
    --accent: #c99d68;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.section-shell {
    width: min(1180px, 84%);
    margin: 0 auto;
}

.social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.social-sidebar a {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease, transform 0.3s ease;
}

.social-sidebar a:first-child {
    border-radius: 4px 0 0 0;
}

.social-sidebar a:last-child {
    border-bottom: none;
    border-radius: 0 0 0 4px;
}

.social-sidebar a:hover {
    background: var(--accent);
    transform: translateX(-4px);
}

.social-sidebar img {
    width: 30px;
    height: 30px;
    display: block;
}

.site-header {
    position: relative;
    z-index: 1001;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.nav-container {
    width: min(1280px, 90%);
    min-height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-subtitle {
    margin-top: 4px;
    font-size: 10px;
    letter-spacing: 0.2em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 27px;
    margin-left: auto;
}

.desktop-nav > a,
.nav-item > a {
    position: relative;
    padding: 34px 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
}

.desktop-nav > a::after,
.nav-item > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 27px;
    width: 0;
    height: 2px;
    background: var(--ink);
    transition: width 0.3s ease;
}

.desktop-nav > a:hover::after,
.desktop-nav > a.active::after,
.nav-item > a:hover::after,
.nav-item > a.active::after {
    width: 100%;
}

.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 78px;
    left: 50%;
    transform: translate(-50%, 10px);
    width: 190px;
    padding: 10px 0;
    background: var(--ink);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.dropdown-menu a {
    display: block;
    padding: 12px;
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fee-button {
    padding: 12px 17px;
    background: var(--ink);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--ink);
    border-radius: 4px;
    background: var(--ink);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 1002;
}

.menu-button span {
    display: block;
    width: 23px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-button.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
}

.curriculum-hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background:
        linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.48)),
        url("../Assets/Images/Classroom.jpeg");
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, 84%);
    margin: 0 auto;
    padding-bottom: 90px;
    color: var(--white);
}

.eyebrow,
.section-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-content .eyebrow {
    margin-bottom: 20px;
}

.hero-content h1 {
    max-width: 850px;
    font-size: clamp(54px, 8vw, 104px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero-content h1 em,
.intro-grid h2 em,
.framework-heading h2 em,
.section-heading-row h2 em,
.vacation-grid h2 em,
.dress-heading h2 em,
.note-box h2 em,
.curriculum-cta h2 em {
    font-family: "Playfair Display", serif;
    font-weight: 500;
}

.hero-content p {
    max-width: 610px;
    margin-top: 28px;
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
}

.hero-number {
    display: block;
    margin-top: 38px;
    font-size: 12px;
    letter-spacing: 0.15em;
}

.intro-section {
    padding-top: 120px;
    padding-bottom: 125px;
}

.section-label {
    color: var(--muted);
    padding-bottom: 17px;
    border-bottom: 1px solid var(--line);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding-top: 52px;
}

.intro-grid h2 {
    max-width: 520px;
    font-size: clamp(38px, 5vw, 65px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.intro-copy {
    padding-top: 8px;
}

.intro-copy p {
    max-width: 560px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
}

.framework-section,
.routine-section,
.vacation-section,
.dress-section,
.note-section {
    padding-bottom: 125px;
}

.framework-heading {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 80px;
    padding: 52px 0 60px;
}

.framework-heading h2,
.section-heading-row h2,
.dress-heading h2 {
    max-width: 620px;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.framework-heading p,
.section-heading-row p {
    color: var(--muted);
    line-height: 1.9;
    align-self: end;
}

.framework-list {
    border-top: 1px solid var(--line);
}

.framework-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 28px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.framework-number,
.routine-title span,
.dress-item > span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.framework-item h3 {
    margin-bottom: 7px;
    font-size: 22px;
}

.framework-item p {
    max-width: 720px;
    color: var(--muted);
    line-height: 1.8;
}

.section-heading-row {
    display: grid;
    grid-template-columns: 1fr 0.55fr;
    gap: 80px;
    padding: 52px 0 65px;
}

.routine-block {
    margin-bottom: 75px;
}

.routine-block:last-child {
    margin-bottom: 0;
}

.routine-title {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 22px;
}

.routine-title h3 {
    font-size: 28px;
    font-weight: 500;
}

.table-wrap {
    overflow-x: auto;
    border-top: 1px solid var(--ink);
}

.routine-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

.routine-table th,
.routine-table td {
    padding: 17px 20px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.routine-table th {
    background: var(--ink);
    color: var(--white);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.routine-table td {
    color: var(--muted);
    font-size: 14px;
}

.routine-table td:first-child {
    width: 32%;
    color: var(--ink);
    font-weight: 600;
}

.vacation-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 90px;
    padding-top: 52px;
    align-items: start;
}

.vacation-grid h2 {
    max-width: 480px;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 500;
    line-height: 1.08;
}

.vacation-grid p,
.dress-heading p {
    max-width: 650px;
    margin-top: 25px;
    color: var(--muted);
    line-height: 1.9;
}

.dress-heading {
    max-width: 760px;
    padding: 52px 0 60px;
}

.dress-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line);
}

.dress-item {
    min-height: 230px;
    padding: 30px;
    border-bottom: 1px solid var(--line);
}

.dress-item:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.dress-item h3 {
    margin-top: 25px;
    font-size: 23px;
}

.dress-item p {
    max-width: 440px;
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.8;
}

.note-box {
    padding: 60px;
    background: var(--ink);
    color: var(--white);
}

.note-box .section-label {
    color: rgba(255, 255, 255, 0.62);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.note-box h2 {
    margin-top: 45px;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 500;
    line-height: 1.08;
}

.note-box p {
    max-width: 820px;
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.85;
}

.curriculum-cta {
    padding: 105px 0;
    background: #e9e3d7;
}

.cta-inner {
    width: min(1180px, 84%);
    margin: 0 auto;
}

.cta-inner h2 {
    max-width: 760px;
    margin-top: 25px;
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 500;
    line-height: 1.06;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    margin-top: 35px;
    padding: 15px 20px;
    background: var(--ink);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-footer {
    background: #111711;
    color: var(--white);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.8fr;
    gap: 70px;
    padding-top: 75px;
    padding-bottom: 70px;
}

.footer-brand img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    margin-bottom: 18px;
}

.footer-brand h3 {
    font-size: 20px;
    letter-spacing: 0.08em;
    line-height: 1.15;
}

.footer-brand h3 span {
    font-size: 11px;
    letter-spacing: 0.2em;
}

.footer-brand p {
    max-width: 330px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
    line-height: 1.8;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer-column ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
    line-height: 1.5;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column li:last-child {
    margin-bottom: 0;
}

.footer-column li::marker {
    color: var(--accent);
}

.footer-column a,
.footer-column p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    line-height: 1.8;
    text-decoration: none;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-top: 20px;
    padding-bottom: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
}

@media (max-width: 1000px) {
    .desktop-nav {
        display: none;
    }

    .fee-button {
        display: none;
    }

    .menu-button {
        display: flex;
        flex: 0 0 44px;
    }

    .mobile-nav {
        display: block;
        position: absolute;
        top: 86px;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: var(--paper);
        border-bottom: 1px solid transparent;
        transition: max-height 0.35s ease, border-color 0.35s ease;
    }

    .mobile-nav.open {
        max-height: 600px;
        border-bottom-color: var(--line);
    }

    .mobile-nav a {
        display: block;
        padding: 16px 6%;
        border-top: 1px solid var(--line);
        font-family: Arial, Helvetica, sans-serif;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: normal;
        text-decoration: none;
        text-transform: none;
    }

    .mobile-nav .mobile-fee {
        background: var(--ink);
        color: var(--white);
    }

    .intro-grid,
    .framework-heading,
    .section-heading-row,
    .vacation-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .social-sidebar {
        display: none;
    }
}

@media (max-width: 650px) {
    .section-shell,
    .hero-content,
    .cta-inner {
        width: 88%;
    }

    .nav-container {
        width: 90%;
        min-height: 76px;
    }

    .brand img {
        width: 43px;
        height: 43px;
    }

    .brand-name {
        font-size: 15px;
    }

    .brand-subtitle {
        font-size: 8px;
    }

    .menu-button {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .menu-button span {
        width: 21px;
    }

    .mobile-nav {
        top: 76px;
    }

    .curriculum-hero {
        min-height: 600px;
    }

    .hero-content {
        padding-bottom: 65px;
    }

    .hero-content h1 {
        font-size: clamp(46px, 14vw, 72px);
    }

    .hero-content p {
        font-size: 15px;
    }

    .intro-section,
    .framework-section,
    .routine-section,
    .vacation-section,
    .dress-section,
    .note-section {
        padding-top: 85px;
        padding-bottom: 90px;
    }

    .intro-grid,
    .framework-heading,
    .section-heading-row,
    .vacation-grid {
        padding-top: 40px;
    }

    .framework-item {
        grid-template-columns: 50px 1fr;
        gap: 15px;
    }

    .framework-item h3 {
        font-size: 20px;
    }

    .routine-title h3 {
        font-size: 24px;
    }

    .dress-grid {
        grid-template-columns: 1fr;
    }

    .dress-item {
        min-height: auto;
        padding: 25px 0;
    }

    .dress-item:nth-child(odd) {
        border-right: none;
    }

    .note-box {
        padding: 35px 25px;
    }

    .curriculum-cta {
        padding: 80px 0;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 400px) {
    .brand-name {
        font-size: 14px;
    }

    .menu-button {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .menu-button span {
        width: 20px;
    }

    .curriculum-hero {
        min-height: 560px;
    }
}

/* =========================================================
   MOBILE DROPDOWN MENUS
   Tap "Academics" to open its sub-links.
   (Hover does not work on phones, so we toggle a class instead.)
   Added at the end of the file so it is easy to find.
========================================================= */
@media (max-width: 1000px) {

    .mobile-nav.open {
        max-height: 80vh;
        overflow-y: auto;
    }

    .mobile-nav .mobile-dropdown-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 6%;
        cursor: pointer;
    }

    .mobile-nav .mobile-dropdown-heading::after {
        content: "+";
        position: static;
        width: auto;
        height: auto;
        bottom: auto;
        background: none;
        font-size: 18px;
        font-weight: 700;
        line-height: 1;
    }

    .mobile-nav .dropdown.open .mobile-dropdown-heading::after {
        content: "\2212";
    }

    .mobile-nav .dropdown .dropdown-menu {
        position: static;
        display: none;
        min-width: 0;
        width: 100%;
        padding: 0 0 8px;
        background: transparent;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .mobile-nav .dropdown.open .dropdown-menu {
        display: block;
    }

    .mobile-nav .dropdown-menu a {
        padding: 12px 6% 12px 12%;
        border-top: 1px solid var(--line);
        color: inherit;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 14px;
        font-weight: 400;
        letter-spacing: normal;
        text-transform: none;
    }

    .mobile-nav .dropdown-menu a:hover {
        background: transparent;
    }
}
