
/* ==========================================================
   NAGGULU SEED SECONDARY SCHOOL
   Premium Responsive School Website
   Brand colours: Navy Blue, Gold and White
   Includes scroll-reveal animations and transitions
   ========================================================== */

/* 1. BRAND DESIGN SYSTEM */

:root {
    --navy: #102f56;
    --navy-dark: #0b2342;
    --navy-mid: #194773;
    --navy-light: #eaf1f9;
    --gold: #d8ad52;
    --gold-light: #f2dda7;
    --gold-dark: #a77b27;
    --white: #ffffff;
    --off-white: #f6f8fc;
    --pale-blue: #edf3fa;
    --text: #28384d;
    --muted: #66758a;
    --border: #dfe7f0;
    --font-body: "Segoe UI", Arial, sans-serif;
    --font-heading: Georgia, "Times New Roman", serif;
    --container: 1200px;
    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --shadow-sm: 0 5px 20px rgba(16,47,86,.07);
    --shadow-md: 0 14px 38px rgba(16,47,86,.12);
    --shadow-lg: 0 24px 60px rgba(11,35,66,.19);
    --transition: .28s ease;
}

/* 2. RESET AND GLOBAL STYLES */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

img, picture, video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition),
                background var(--transition),
                border-color var(--transition);
}

button, input, textarea, select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    color: var(--navy);
    font-weight: 700;
    line-height: 1.23;
    text-wrap: balance;
}

h1, h2 {
    font-family: var(--font-heading);
}

p {
    margin-top: 0;
}

::selection {
    color: var(--navy-dark);
    background: var(--gold-light);
}

/* 3. CONTAINERS AND SECTIONS */

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.section {
    padding-block: 88px;
}

.section-light {
    background: var(--off-white);
}

.section-blue {
    background: var(--pale-blue);
}

.section-dark {
    color: var(--white);
    background: var(--navy);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--muted);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--gold-dark);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .15em;
    line-height: 1.6;
    text-transform: uppercase;
}

.gold-divider {
    width: 70px;
    height: 4px;
    margin: 22px 0;
    background: var(--gold);
    border: 0;
}

/* 4. ACCESSIBILITY */

.skip-link {
    position: absolute;
    z-index: 9999;
    top: 12px;
    left: 12px;
    padding: 12px 18px;
    color: var(--white);
    background: var(--navy);
    border: 2px solid var(--gold);
    border-radius: var(--radius-sm);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* 5. TOP INFORMATION BAR */

.topbar {
    position: relative;
    z-index: 20;
    color: var(--white);
    background: var(--navy-dark);
    border-bottom: 2px solid var(--gold);
    font-size: .78rem;
}

.topbar-inner {
    display: flex;
    min-height: 39px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar p {
    margin: 0;
}

.topbar-motto {
    color: var(--gold-light);
    font-weight: 700;
    letter-spacing: .04em;
}

/* 6. HEADER AND BRAND */

.site-header {
    position: relative;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 5px 22px rgba(16,47,86,.055);
    position: sticky;
top: 0;
z-index: 1000;
}

.navbar {
    display: flex;
    min-height: 96px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.school-brand {
    display: inline-flex;
    min-width: 0;
    flex-shrink: 0;
    align-items: center;
    gap: 13px;
    color: var(--navy);
}

.school-logo {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center;
    transition: transform .4s ease;
}

.school-brand:hover .school-logo {
    transform: rotate(-4deg) scale(1.04);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.25;
}

.brand-name {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: .045em;
}

.brand-subtitle {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .15em;
}

/* 7. DESKTOP NAVIGATION */

.primary-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.nav-link {
    position: relative;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--navy);
    font-size: .79rem;
    font-weight: 700;
    white-space: nowrap;
}

.nav-link:not(.nav-contact)::after {
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 2px;
    background: var(--gold);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-contact {
    justify-content: center;
    min-height: 43px;
    padding: 0 16px;
    color: var(--white);
    background: var(--navy);
    border: 1px solid var(--navy);
    border-radius: var(--radius-sm);
}

.nav-contact:hover {
    color: var(--navy-dark);
    background: var(--gold);
    border-color: var(--gold);
}

/* 8. MOBILE MENU BUTTON */

.menu-toggle {
    display: none;
    width: 46px;
    height: 44px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    transition: transform var(--transition),
                opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* 9. HERO SECTION */

.hero {
    position: relative;
    display: flex;
    min-height: 680px;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    color: var(--white);
    background: var(--navy);
}

.hero-background {
    position: absolute;
    z-index: -3;
    inset: 0;
    background:
        radial-gradient(ellipse at 82% 28%,
            rgba(91,133,177,.65), transparent 48%),
        radial-gradient(ellipse at 75% 85%,
            rgba(216,173,82,.15), transparent 42%),
        linear-gradient(115deg,
            #102f56 0%, #16436e 60%, #27577f 100%);
    transform: scale(1.01);
    animation: heroBackgroundReveal 1.4s ease both;
}

.hero-overlay {
    position: absolute;
    z-index: -2;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(11,35,66,.88) 0%,
        rgba(16,47,86,.72) 48%,
        rgba(16,47,86,.20) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    padding-bottom: 125px;
    animation: heroContentReveal .9s .1s ease both;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--gold-light);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.6;
}

.hero-eyebrow::before {
    width: 34px;
    height: 2px;
    flex-shrink: 0;
    background: var(--gold);
    content: "";
}

.hero h1 {
    max-width: 850px;
    margin-bottom: 25px;
    color: var(--white);
    font-size: clamp(3.25rem, 7vw, 6.2rem);
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: 1.06;
}

.hero h1 span {
    color: var(--gold-light);
}

.hero-divider {
    width: 80px;
    height: 4px;
    margin-bottom: 24px;
    background: var(--gold);
    animation: dividerGrow .9s .45s ease both;
    transform-origin: left;
}

.hero-description {
    max-width: 580px;
    margin-bottom: 32px;
    color: rgba(255,255,255,.92);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.hero-note {
    margin-top: 30px;
    margin-bottom: 0;
    color: var(--gold-light);
    font-size: .86rem;
    font-weight: 600;
    letter-spacing: .045em;
}

.hero-bottom {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    background: rgba(11,35,66,.78);
    border-top: 1px solid rgba(255,255,255,.2);
}

.hero-bottom-inner {
    display: flex;
    min-height: 66px;
    align-items: center;
    gap: 19px;
    color: var(--white);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.hero-bottom-dot {
    width: 5px;
    height: 5px;
    flex-shrink: 0;
    background: var(--gold);
    border-radius: 50%;
    animation: goldDotPulse 2s infinite;
}

/* 10. WELCOME SECTION */

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr .92fr;
    align-items: center;
    gap: 76px;
}

.welcome-copy h2 {
    max-width: 620px;
    margin-bottom: 20px;
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    letter-spacing: -.035em;
}

.heading-accent {
    color: var(--navy-mid);
}

.welcome-copy p {
    margin-bottom: 20px;
    color: var(--muted);
}

.welcome-copy .link-arrow {
    margin-top: 9px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--navy);
    font-size: .92rem;
    font-weight: 800;
}

.link-arrow span {
    color: var(--gold-dark);
    transition: transform var(--transition);
}

.link-arrow:hover {
    color: var(--gold-dark);
}

.link-arrow:hover span {
    transform: translateX(4px);
}

.welcome-image-wrap {
    position: relative;
    padding: 0 0 24px 24px;
}

.welcome-image-wrap::before {
    position: absolute;
    z-index: -1;
    top: -18px;
    right: -15px;
    width: 65%;
    height: 72%;
    background: var(--pale-blue);
    border-top: 4px solid var(--gold);
    content: "";
}

.welcome-image-placeholder {
    display: flex;
    min-height: 350px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 35px;
    color: var(--white);
    text-align: center;
    background:
        radial-gradient(circle at 50% 30%,
            rgba(75,119,165,.55), transparent 55%),
        linear-gradient(140deg, var(--navy), var(--navy-mid));
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.placeholder-icon {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    margin-bottom: 22px;
    color: var(--gold-light);
    border: 2px solid var(--gold);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
}

.welcome-image-placeholder .welcome-school-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 22px;
    padding: 10px;
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: transform .45s ease;
}

.welcome-image-placeholder .welcome-school-logo:hover {
    transform: scale(1.06) rotate(3deg);
}

.welcome-image-placeholder p {
    max-width: 300px;
    margin: 0;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.35rem;
}

.welcome-image-caption {
    position: relative;
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 11px;
    margin-top: 12px;
    padding: 10px 18px;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    font-size: .86rem;
    font-weight: 700;
}

.caption-mark {
    width: 4px;
    height: 25px;
    flex-shrink: 0;
    background: var(--gold);
}

/* 11. SECTION HEADINGS */

.section-heading {
    max-width: 760px;
    margin: 0 auto 46px;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 3.05rem);
    letter-spacing: -.035em;
}

.section-heading p {
    margin-bottom: 0;
    color: var(--muted);
}

/* 12. FEATURE CARDS */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.feature-card {
    position: relative;
    min-width: 0;
    padding: 32px 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform .35s ease,
                box-shadow .35s ease,
                border-color .35s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    display: grid;
    width: 55px;
    height: 55px;
    place-items: center;
    margin-bottom: 24px;
    color: var(--gold-dark);
    background: var(--navy-light);
    border: 1px solid rgba(216,173,82,.4);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    transition: transform .35s ease, background .35s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(8deg) scale(1.08);
    background: var(--gold-light);
}

.feature-card h3 {
    margin-bottom: 14px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.feature-card p {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: .94rem;
}

.feature-card .link-arrow {
    font-size: .85rem;
}

/* 13. ADMISSIONS CALL TO ACTION */

.admissions-section {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(ellipse at 90% 10%,
            rgba(72,117,164,.38), transparent 45%),
        linear-gradient(115deg, var(--navy-dark), var(--navy-mid));
    border-top: 4px solid var(--gold);
    border-bottom: 4px solid var(--gold);
}

.admissions-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
}

.admissions-copy {
    max-width: 720px;
}

.admissions-copy .eyebrow {
    color: var(--gold-light);
}

.admissions-copy h2 {
    margin-bottom: 18px;
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -.035em;
}

.admissions-copy p {
    max-width: 680px;
    margin-bottom: 0;
    color: rgba(255,255,255,.87);
}

.admissions-actions {
    display: flex;
    min-width: 220px;
    flex-direction: column;
    gap: 12px;
}

.admissions-actions .btn {
    width: 100%;
}

/* 14. NEWS PLACEHOLDER */

.news-placeholder {
    max-width: 780px;
    margin-inline: auto;
    padding: 45px 30px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform .35s ease, box-shadow .35s ease;
}

.news-placeholder:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.news-placeholder-icon {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    margin: 0 auto 20px;
    color: var(--gold-light);
    background: var(--navy);
    border: 2px solid var(--gold);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.news-placeholder .news-placeholder-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin: 0 auto 22px;
    padding: 7px;
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: 50%;
    transition: transform .35s ease;
}

.news-placeholder .news-placeholder-logo:hover {
    transform: scale(1.07) rotate(3deg);
}

.news-placeholder h3 {
    margin-bottom: 13px;
    font-family: var(--font-heading);
    font-size: 1.7rem;
}

.news-placeholder p {
    max-width: 560px;
    margin: 0 auto 22px;
    color: var(--muted);
}

.news-placeholder .link-arrow {
    justify-content: center;
}

/* 15. GALLERY PLACEHOLDER */

.gallery-placeholder {
    position: relative;
    display: flex;
    min-height: 330px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 45px 25px;
    color: var(--white);
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 30%,
            rgba(84,130,176,.65), transparent 60%),
        linear-gradient(135deg, var(--navy), var(--navy-mid));
    border: 1px solid rgba(216,173,82,.5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.gallery-placeholder::before,
.gallery-placeholder::after {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(242,221,167,.2);
    border-radius: 50%;
    content: "";
}

.gallery-placeholder::before {
    top: -80px;
    left: -45px;
}

.gallery-placeholder::after {
    right: -50px;
    bottom: -100px;
    width: 260px;
    height: 260px;
}

.gallery-placeholder-main {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.gallery-placeholder-main > span {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--gold-light);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .17em;
}

.gallery-placeholder h3 {
    margin-bottom: 15px;
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
}

.gallery-placeholder p {
    margin-bottom: 25px;
    color: rgba(255,255,255,.88);
}

/* 16. BUTTONS */

.btn {
    display: inline-flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 23px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    transition: background var(--transition),
                color var(--transition),
                border-color var(--transition),
                transform var(--transition),
                box-shadow var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    color: var(--navy-dark);
    background: var(--gold);
    border-color: var(--gold);
}

.btn-primary:hover {
    color: var(--navy-dark);
    background: var(--gold-light);
    border-color: var(--gold-light);
    box-shadow: 0 7px 22px rgba(216,173,82,.24);
}

.btn-secondary {
    color: var(--white);
    background: var(--navy);
    border-color: var(--navy);
}

.btn-secondary:hover {
    color: var(--white);
    background: var(--navy-mid);
}

.btn-outline-light {
    color: var(--white);
    background: transparent;
    border-color: rgba(255,255,255,.8);
}

.btn-outline-light:hover {
    color: var(--navy-dark);
    background: var(--white);
    border-color: var(--white);
}

/* 17. CONTACT CALL TO ACTION */

.contact-cta {
    text-align: center;
    background: var(--pale-blue);
    border-top: 1px solid var(--border);
}

.contact-cta-inner {
    max-width: 850px;
    margin-inline: auto;
}

.contact-cta h2 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -.035em;
}

.contact-cta p {
    max-width: 720px;
    margin: 0 auto 28px;
    color: var(--muted);
}

.contact-cta .btn {
    min-width: 180px;
}

/* 18. FOOTER */

.site-footer {
    color: rgba(255,255,255,.85);
    background: var(--navy-dark);
    border-top: 4px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr .8fr .8fr 1fr;
    gap: 42px;
    padding-top: 65px;
    padding-bottom: 52px;
}

.footer-school-brand {
    color: var(--white);
}

.footer-school-brand .brand-name {
    color: var(--white);
}

.footer-school-brand .brand-subtitle {
    color: rgba(255,255,255,.72);
}

.footer-brand > p:first-of-type {
    margin-top: 18px;
    margin-bottom: 10px;
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-description {
    max-width: 340px;
    margin-bottom: 0;
    color: rgba(255,255,255,.74);
    font-size: .91rem;
}

.footer-column {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
}

.footer-column h3 {
    margin-bottom: 10px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: .98rem;
    font-weight: 800;
}

.footer-column a {
    color: rgba(255,255,255,.76);
    font-size: .88rem;
}

.footer-column a:hover {
    color: var(--gold-light);
    transform: translateX(3px);
}

.footer-column p {
    margin-bottom: 3px;
    color: rgba(255,255,255,.76);
    font-size: .88rem;
}

.footer-contact-link {
    color: var(--gold-light) !important;
    font-weight: 700;
}

.footer-bottom {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(255,255,255,.15);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,.7);
    font-size: .79rem;
}

.footer-company {
    color: var(--gold-light);
    font-weight: 800;
}

/* ==========================================================
   19. SCROLL REVEAL ANIMATIONS
   JavaScript adds .reveal to selected elements.
   Elements rise from below into their normal position.
   ========================================================== */

/* Default reveal: rise from below */

.reveal {
    opacity: 0;
    transform: translate3d(0, 48px, 0);
    transition:
        opacity .8s cubic-bezier(.2,.65,.3,1),
        transform .8s cubic-bezier(.2,.65,.3,1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

/* Revealed elements return to their original position */

.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Optional direction variations */

.reveal-left {
    opacity: 0;
    transform: translate3d(-48px, 0, 0);
    transition:
        opacity .8s cubic-bezier(.2,.65,.3,1),
        transform .8s cubic-bezier(.2,.65,.3,1);
}

.reveal-right {
    opacity: 0;
    transform: translate3d(48px, 0, 0);
    transition:
        opacity .8s cubic-bezier(.2,.65,.3,1),
        transform .8s cubic-bezier(.2,.65,.3,1);
}

.reveal-scale {
    opacity: 0;
    transform: scale(.94) translateY(20px);
    transition:
        opacity .8s ease,
        transform .8s cubic-bezier(.2,.65,.3,1);
}

.reveal-left.is-visible,
.reveal-right.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Stagger cards so they appear one after another */

.feature-card.reveal:nth-child(3n + 1) {
    --reveal-delay: 0ms;
}

.feature-card.reveal:nth-child(3n + 2) {
    --reveal-delay: 140ms;
}

.feature-card.reveal:nth-child(3n + 3) {
    --reveal-delay: 280ms;
}

/* Elements that are already visible should animate immediately */

.hero-content {
    will-change: opacity, transform;
}

/* 20. KEYFRAME ANIMATIONS */

@keyframes heroContentReveal {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroBackgroundReveal {
    from {
        opacity: .65;
        transform: scale(1.07);
    }
    to {
        opacity: 1;
        transform: scale(1.01);
    }
}

@keyframes dividerGrow {
    from {
        opacity: .4;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes goldDotPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(216,173,82,.35);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(216,173,82,0);
    }
}

/* 21. RESPONSIVE LAYOUTS */

@media (max-width: 1150px) {
    .navbar {
        gap: 17px;
    }

    .primary-navigation {
        gap: 10px;
    }

    .nav-link {
        font-size: .73rem;
    }

    .brand-name {
        font-size: .91rem;
    }

    .brand-subtitle {
        font-size: .6rem;
    }

    .school-logo {
        width: 54px;
        height: 54px;
    }

    .welcome-grid {
        gap: 48px;
    }

    .footer-grid {
        gap: 28px;
    }
}

@media (max-width: 950px) {
    .navbar {
        min-height: 84px;
    }

    .menu-toggle {
        display: flex;
    }

    .primary-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        padding: 12px 24px 22px;
        background: var(--white);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .primary-navigation.is-open {
        display: flex;
        animation: mobileMenuReveal .25s ease both;
    }

    .nav-link {
        min-height: 48px;
        padding: 12px 8px;
        font-size: .91rem;
        white-space: normal;
    }

    .nav-link:not(.nav-contact)::after {
        right: auto;
        bottom: 4px;
        width: 40px;
    }

    .nav-contact {
        margin-top: 8px;
    }

    .hero {
        min-height: 620px;
    }

    .welcome-grid {
        grid-template-columns: 1fr .85fr;
        gap: 34px;
    }

    .feature-grid {
        gap: 17px;
    }

    .feature-card {
        padding: 27px 21px;
    }

    .admissions-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 30px;
    }

    .admissions-actions {
        width: 100%;
        min-width: 0;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .admissions-actions .btn {
        width: auto;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@keyframes mobileMenuReveal {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 680px) {
    .container {
        width: calc(100% - 32px);
    }

    .section {
        padding-block: 62px;
    }

    .topbar-inner {
        min-height: 36px;
        justify-content: center;
        text-align: center;
    }

    .topbar-inner > p:first-child {
        font-size: .72rem;
    }

    .topbar-motto {
        display: none;
    }

    .navbar {
        min-height: 76px;
    }

    .school-brand {
        gap: 9px;
    }

    .school-logo {
        width: 46px;
        height: 46px;
    }

    .brand-name {
        font-size: .82rem;
    }

    .brand-subtitle {
        font-size: .54rem;
        letter-spacing: .1em;
    }

    .hero {
        min-height: 610px;
    }

    .hero-overlay {
        background: linear-gradient(90deg,
            rgba(11,35,66,.9),
            rgba(16,47,86,.65));
    }

    .hero-content {
        padding-top: 60px;
        padding-bottom: 115px;
    }

    .hero-eyebrow {
        max-width: 100%;
        font-size: .65rem;
        letter-spacing: .09em;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 11.5vw, 4.4rem);
    }

    .hero-description {
        font-size: .99rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-bottom-inner {
        min-height: 57px;
        justify-content: center;
        gap: 9px;
        font-size: .64rem;
        letter-spacing: .025em;
    }

    .hero-bottom-dot {
        width: 4px;
        height: 4px;
    }

    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .welcome-copy h2 {
        font-size: 2.3rem;
    }

    .welcome-image-wrap {
        padding-left: 12px;
    }

    .welcome-image-wrap::before {
        top: -10px;
        right: -6px;
    }

    .welcome-image-placeholder {
        min-height: 290px;
    }

    .welcome-image-placeholder .welcome-school-logo {
        width: 125px;
        height: 125px;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .section-heading h2 {
        font-size: 2.25rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 28px 25px;
    }

    .feature-card.reveal:nth-child(n) {
        --reveal-delay: 0ms;
    }

    .admissions-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admissions-actions .btn {
        width: 100%;
    }

    .news-placeholder {
        padding: 34px 20px;
    }

    .gallery-placeholder {
        min-height: 330px;
        padding: 35px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 45px;
        padding-bottom: 38px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 9px;
        padding-block: 20px;
    }

    .reveal {
        transform: translate3d(0, 32px, 0);
    }

    .reveal-left {
        transform: translate3d(-25px, 0, 0);
    }

    .reveal-right {
        transform: translate3d(25px, 0, 0);
    }
}

@media (max-width: 360px) {
    .container {
        width: calc(100% - 26px);
    }

    .brand-name {
        font-size: .75rem;
    }

    .brand-subtitle {
        font-size: .49rem;
    }

    .school-logo {
        width: 41px;
        height: 41px;
    }

    .hero h1 {
        font-size: 2.55rem;
    }

    .hero-bottom-inner {
        gap: 6px;
        font-size: .58rem;
    }
}

/* 22. REDUCED-MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==========================================
   ANIMATED SCHOOL MOTTO
   ========================================== */

.motto-caption {
    overflow: hidden;
    position: relative;
    gap: 14px;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    animation: mottoCaptionReveal 0.9s ease both;
}

.motto-caption .caption-mark {
    height: 30px;
    animation: mottoLineReveal 0.8s 0.2s ease both;
    transform-origin: center;
}

.motto-caption .motto-text {
    display: inline-block;
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    transition:
        color 0.35s ease,
        letter-spacing 0.35s ease,
        transform 0.35s ease;
    animation: mottoTextReveal 1s 0.15s ease both;
}

.motto-caption:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.motto-caption:hover .caption-mark {
    background: var(--gold-dark);
}

.motto-caption:hover .motto-text {
    color: var(--gold-dark);
    letter-spacing: 0.045em;
    transform: translateX(3px);
}

@keyframes mottoCaptionReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mottoLineReveal {
    from {
        opacity: 0;
        transform: scaleY(0);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes mottoTextReveal {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Respect visitors who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .motto-caption,
    .motto-caption .caption-mark,
    .motto-caption .motto-text {
        animation: none;
        transition: none;
    }
}
