/* ============================================
   SUPERIORMED — STYLESHEET
   Mobile-first. Apple-inspired. Orange + Black.
   ============================================ */


/* ---- RESET & BASE ---- */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-black);
    background: var(--color-white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


/* ---- TOKENS ---- */

:root {
    --color-orange: #E8611A;
    --color-orange-dark: #C94E0E;
    --color-black: #0A0A0A;
    --color-white: #FFFFFF;
    --color-grey-light: #F6F6F4;
    --color-grey-mid: #777777;
    --color-border: #E8E8E8;
    --color-overlay: rgba(0, 0, 0, 0.54);
    --font-luxury: 'Cinzel Decorative', serif;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --radius-btn: 4px;
    --radius-card: 10px;
    --max-width: 1160px;
    --nav-height: 72px;
}


/* ---- TYPOGRAPHY ---- */

h1 {
    font-family: var(--font-luxury);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.03em;
}

h2,
h3 {
    font-family: var(--font-display);
    line-height: 1.1;
    font-weight: 600;
}

h2 {
    font-size: clamp(32px, 5vw, 38px);
    color: var(--color-black);
    margin-bottom: 18px;
}

h3 {
    font-size: clamp(20px, 2.5vw, 24px);
    margin-bottom: 12px;
}

p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

.eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 14px;
}


/* ---- CONTAINER ---- */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}


/* ---- SECTION SPACING ---- */

section {
    padding: 96px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}

.section-sub {
    font-size: 16px;
    color: var(--color-grey-mid);
    margin-top: 12px;
    white-space: nowrap;
}


/* ---- BUTTONS ---- */

.btn-primary {
    display: inline-block;
    background: var(--color-orange);
    color: var(--color-white);
    padding: 14px 32px;
    border-radius: var(--radius-btn);
    border: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

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

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    display: inline-block;
    border: 1.5px solid var(--color-orange);
    color: var(--color-orange);
    padding: 12px 28px;
    border-radius: var(--radius-btn);
    background: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: var(--color-orange);
    color: var(--color-white);
}

.btn-white {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-orange);
    padding: 14px 28px;
    border-radius: var(--radius-btn);
    border: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-white:hover {
    opacity: 0.88;
}


/* ============================================
   NAV
   ============================================ */

#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

#main-nav.scrolled {
    background: var(--color-black);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}


/* Logo */

.nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 36px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 0.5px;
}

.logo-text em {
    font-style: italic;
    color: var(--color-orange);
}


/* Nav links */

.nav-links {
    display: none;
    align-items: center;
    gap: 32px;
}

.nav-links li a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s;
}

.nav-links li a:hover {
    color: var(--color-white);
}


/* Nav CTA */

.nav-cta {
    padding: 10px 22px;
    font-size: 13px;
}


/* ============================================
   HERO
   ============================================ */

#hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-black);
    /* fallback if video not loaded */
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--color-overlay);
    z-index: 1;
}


/* Gradient at bottom for readability */

.hero-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    max-width: 820px;
    padding: 0 24px;
    padding-top: var(--nav-height);
}

.hero-content .eyebrow {
    margin-bottom: 18px;
    color: var(--color-orange);
}

#hero h1 {
    font-family: var(--font-luxury);
    /* Reduced size scale so it fits screens safely without breaking */
    font-size: clamp(24px, 4.5vw, 48px);
    font-weight: 700;
    line-height: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    margin: 0 auto 28px auto;
    position: relative;
    padding-bottom: 20px;
    display: table;
}

#hero h1 .line-orange {
    color: var(--color-orange);
    font-size: clamp(24px, 4.2vw, 44px);
    font-weight: 700;
    line-height: 0;
    letter-spacing: 0.02em;
    white-space: nowrap;
    display: block;
}


/* Line 2: Scaled up to perfectly match the width of Line 1 */

#hero h1 .line-main {
    color: #FFFFFF;
    font-size: clamp(26px, 4.6vw, 50px);
    /* Slightly larger than line 1 */
    font-weight: 700;
    line-height: 0.3em;
    /* Increased letter spacing to stretch text edges evenly */
    white-space: nowrap;
    display: block;
}

.hero-sub {
    font-family: var(--font-body);
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    max-width: 560px;
    margin: 0 auto 40px;
}

.hero-btn {
    font-size: 15px;
    padding: 16px 40px;
}


/* Scroll hint animation */

.hero-scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-hint span {
    display: block;
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 auto;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
        opacity: 1;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 1;
    }
    51% {
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
        opacity: 0;
    }
}


/* ============================================
   ABOUT
   ============================================ */

#about {
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 18px;
}

.about-text .btn-primary {
    margin-top: 12px;
}

.about-image {
    position: relative;
}

.about-image-placeholder {
    position: relative;
    height: 340px;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--color-grey-light);
}

.about-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Fallback if no image */

.about-image-placeholder.no-image .image-fallback {
    display: flex;
}

.image-fallback {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-body);
    font-size: 14px;
}


/* Stat card overlay */

.about-stat-card {
    position: absolute;
    bottom: -20px;
    right: -16px;
    background: var(--color-orange);
    color: var(--color-white);
    padding: 20px 24px;
    border-radius: var(--radius-card);
    text-align: center;
    box-shadow: 0 8px 32px rgba(232, 97, 26, 0.35);
}

.about-stat-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 600;
    line-height: 1;
}

.about-stat-card span {
    display: block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    opacity: 0.9;
    max-width: 100px;
}


/* ============================================
   PILLARS
   ============================================ */

#pillars {
    background: var(--color-grey-light);
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.pillar-card {
    background: var(--color-white);
    padding: 36px 28px;
    border-radius: var(--radius-card);
    border-top: 3px solid var(--color-orange);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.pillar-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.pillar-card h4 {
    color: var(--color-black);
    margin-bottom: 6px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-height: 1;
    /* Restricts the space bound to exactly 2 rows */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.4em * 2);
}

.pillar-card p {
    font-size: 15px;
    color: var(--color-grey-mid);
    line-height: 1.3;
}


/* ============================================
   LOCATIONS
   ============================================ */

#locations {
    background: var(--color-white);
}

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

.location-card {
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: box-shadow 0.2s ease;
}

.location-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.location-image {
    height: 240px;
    background: linear-gradient(135deg, #1a1a1a, #333);
    position: relative;
    overflow: hidden;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.location-card:hover .location-image img {
    transform: scale(1.04);
}

.location-image.no-image img {
    display: none;
}

.location-image-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-body);
    font-size: 14px;
    padding: 20px;
    text-align: center;
}

.location-info {
    padding: 28px;
}

.location-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 10px;
}

.location-info h3 {
    color: var(--color-black);
    font-size: 22px;
    margin-bottom: 6px;
}

.location-info p {
    font-size: 14px;
    color: var(--color-grey-mid);
    margin-bottom: 20px;
}


/* ============================================
   PROGRAM
   ============================================ */

#program {
    background: var(--color-black);
    position: relative;
    overflow: hidden;
}


/* Subtle texture */

#program::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 97, 26, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.program-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.program-intro {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    max-width: 580px;
    margin: 0 auto 44px;
    line-height: 1.7;
}

.program-list {
    list-style: none;
    text-align: left;
    max-width: 520px;
    margin: 0 auto 48px;
}

.program-list li {
    font-family: var(--font-body);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.78);
    padding: 14px 0 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    line-height: 1.5;
}

.program-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-orange);
}

.program-list li:last-child {
    border-bottom: none;
}

.program-cta {
    font-size: 15px;
    padding: 16px 40px;
}

#program h2 {
    white-space: nowrap !important;
    text-align: center;
    width: 100%;
    font-size: clamp(32px, 5vw, 26px) !important;
}


/* Cleanly restricts the intro paragraph to exactly 2 lines by narrowing its box width */

#program .program-intro {
    max-width: 540px !important;
    /* Forces the text to wrap cleanly into 2 balanced rows */
    margin: 0 auto 40px auto !important;
    /* Keeps it perfectly centered above your list items */
    text-align: center;
    line-height: 1.6;
}


/* ============================================
   FAQ
   ============================================ */

#faq {
    background: var(--color-white);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
    border-top: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-black);
    text-align: left;
    gap: 16px;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--color-orange);
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--color-orange);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    line-height: 1;
    width: 24px;
    text-align: center;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s ease, padding 0.38s ease;
}

.faq-answer.open {
    max-height: 500px;
    padding-bottom: 22px;
}

.faq-answer p {
    font-size: 15px;
    color: #666;
    line-height: 1.75;
}


/* ============================================
   CONTACT / FOOTER
   ============================================ */

#contact {
    background: var(--color-orange);
}

.contact-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 20px;
    display: grid;
    grid-template-columns: 1fr;
}

.contact-form-col h2,
.contact-info-col h2 {
    color: var(--color-white);
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 12px;
}

.contact-form-col>p,
.contact-info-col>p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.65;
}


/* Form fields */

#contact-form input,
#contact-form textarea,
#booking-form input,
#booking-form textarea,
#booking-form select {
    width: 100%;
    padding: 14px 0;
    margin-bottom: 4px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    display: block;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-bottom-color: var(--color-white);
}

#contact-form textarea {
    resize: none;
    margin-top: 8px;
}

.contact-form-col .btn-white {
    margin-top: 24px;
}


/* Contact details */

.contact-details {
    margin-bottom: 28px;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
}

.contact-details li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    stroke: var(--color-white);
}


/* Social icons */

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.2s;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-white);
}

.social-icons svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-white);
}

.footer-bar {
    background: rgba(0, 0, 0, 0.2);
    width: 100%;
    padding: 24px 20px;
}

.footer-bar .footer-bar-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px;
    text-align: center;
    width: 100%;
}


/* Dynamic Logo on Mobile */

.footer-bar-inner::before {
    content: "";
    display: block;
    width: 160px;
    height: 34px;
    background-image: url('assets/logo-footer.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


/* Typography Control */

.footer-bar p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin: 0 !important;
}


/* Form success */

.form-success {
    padding: 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-btn);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 15px;
    text-align: center;
    margin-top: 16px;
}


/* ============================================
   BOOKING MODAL
   ============================================ */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--color-white);
    border-radius: 12px;
    padding: 48px 40px;
    max-width: 520px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--color-black);
}


/* Modal form fields — different style from footer form */

#booking-form input,
#booking-form select,
#booking-form textarea {
    width: 100%;
    padding: 13px 16px;
    margin-bottom: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-btn);
    color: var(--color-black);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    background: var(--color-white);
    transition: border-color 0.2s;
    display: block;
}

#booking-form input::placeholder,
#booking-form textarea::placeholder {
    color: #bbb;
}

#booking-form input:focus,
#booking-form select:focus,
#booking-form textarea:focus {
    border-color: var(--color-orange);
}

#booking-form select {
    color: #bbb;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

#booking-form select.has-value {
    color: var(--color-black);
}

#booking-form textarea {
    resize: none;
}

.modal-submit {
    width: 100%;
    padding: 15px;
    font-size: 15px;
    margin-top: 4px;
}

#modal-success {
    background: #f0faf0;
    color: #2d7a2d;
}


/* ============================================
   FLOATING MOBILE CTA
   ============================================ */

#sticky-cta {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 20px;
    background: var(--color-orange);
    color: var(--color-white);
    padding: 14px 24px;
    border-radius: 50px;
    border: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    z-index: 800;
    box-shadow: 0 4px 24px rgba(232, 97, 26, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
}

#sticky-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(232, 97, 26, 0.55);
}


/* ============================================
   RESPONSIVE — TABLET (600px+)
   ============================================ */

@media (min-width: 600px) {
    .pillars-grid {
        grid-template-columns: 1fr 1fr;
    }
    .locations-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-image-placeholder {
        height: 400px;
    }
    #program h2 {
        /*white-space: normal !important; */
    }
    .footer-bar .footer-bar-inner {
        flex-direction: row !important;
        /* Logo Left, Text Right */
        justify-content: space-between !important;
        /* Pushes elements to opposite edges */
        align-items: center !important;
        /* Vertically aligns columns */
        /* ─── THE VIEWPORT CONTAINER SHIELD ─── */
        max-width: var(--max-width, 1160px);
        /* Restricts expansion to mirror top sections */
        margin: 0 auto !important;
        /* Centers the layout container on the screen */
        padding: 0 16px !important;
        /* Structural safety padding edge */
    }
    .footer-bar-inner::before {
        background-position: left center !important;
        /* Pins logo to the inner left wall */
    }
    .footer-bar p {
        text-align: right !important;
        /* Aligns text lines squarely to the inner right wall */
        margin-left: auto !important;
        /* Keeps item anchored to the right margin border */
    }
}


/* ============================================
   RESPONSIVE — DESKTOP (900px+)
   ============================================ */

@media (min-width: 900px) {
    /* Nav */
    .nav-links {
        display: flex;
    }
    /* About */
    .about-grid {
        grid-template-columns: 55% 1fr;
        gap: 80px;
    }
    .about-image-placeholder {
        height: 480px;
    }
    /* Pillars */
    .pillars-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    /* Contact */
    .contact-inner {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
    /* Mobile sticky CTA hidden on desktop */
    #sticky-cta {
        display: none !important;
    }
    .footer-bar .footer-bar-inner {
        flex-direction: row !important;
        /* Logo Left, Text Right */
        justify-content: space-between !important;
        /* Pushes elements to opposite edges */
        align-items: center !important;
        /* Vertically aligns columns */
        /* ─── THE VIEWPORT CONTAINER SHIELD ─── */
        max-width: var(--max-width, 1160px);
        /* Restricts expansion to mirror top sections */
        margin: 0 auto !important;
        /* Centers the layout container on the screen */
        padding: 0 16px !important;
        /* Structural safety padding edge */
    }
    .footer-bar-inner::before {
        background-position: left center !important;
        /* Pins logo to the inner left wall */
    }
    .footer-bar p {
        text-align: right !important;
        /* Aligns text lines squarely to the inner right wall */
        margin-left: auto !important;
        /* Keeps item anchored to the right margin border */
    }
}


/* ============================================
   RESPONSIVE — MOBILE ONLY (below 600px)
   ============================================ */

@media (max-width: 599px) {
    section {
        padding: 72px 0;
    }
    .modal-box {
        padding: 36px 24px;
    }
    #sticky-cta {
        display: block;
    }
    .about-stat-card {
        right: 0;
        bottom: -16px;
    }
    .section-header .section-sub {
        /* This allows the text to break onto multiple rows naturally on phones */
        white-space: normal !important;
    }
    #program h2 {
        white-space: normal !important;
    }
    .contact-info-col {
        margin-top: 20px;
    }
    .nav-cta {
        padding: 8px 14px;
        font-size: 10px;
    }
}


/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .hero-scroll-hint {
        display: none;
    }
}