/* ============================================
   SMHS Oxford Corner Cafe — Stylesheet
   Deep Navy (#1a2744) + Warm Gold (#c9a84c)
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1a2744;
    --navy-light: #243352;
    --navy-dark: #111c30;
    --gold: #c9a84c;
    --gold-light: #d4b96a;
    --gold-dark: #b8943f;
    --white: #ffffff;
    --off-white: #f8f7f4;
    --cream: #f2f0eb;
    --gray-50: #faf9f7;
    --gray-100: #f5f4f1;
    --gray-200: #e8e6e1;
    --gray-300: #d4d2cc;
    --gray-400: #a8a59e;
    --gray-500: #78756e;
    --gray-600: #5c5954;
    --gray-700: #3d3a36;
    --gray-800: #2a2724;
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--gray-700);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

/* Typography */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.text-gold {
    color: var(--gold);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 0;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--navy);
    color: var(--white);
    border: 1px solid var(--navy);
}

.btn-primary:hover {
    background-color: var(--navy-light);
    border-color: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 39, 68, 0.2);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--navy);
    border: 1px solid var(--gold);
}

.btn-gold:hover {
    background-color: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--navy);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
    transition: all var(--transition);
}

.nav.scrolled {
    background-color: rgba(26, 39, 68, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.15);
}

.nav.scrolled .nav-logo-mark,
.nav.scrolled .nav-logo-text,
.nav.scrolled .nav-link {
    color: var(--white);
}

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

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-mark {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.05em;
    transition: color var(--transition);
}

.nav-logo-text {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

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

.nav-cta {
    color: var(--gold) !important;
    border: 1px solid var(--gold);
    padding: 0.5rem 1.25rem;
    transition: all var(--transition);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background-color: var(--gold);
    color: var(--navy) !important;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    color: var(--white);
    padding: 0.5rem;
    transition: color var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background-color: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-menu-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--white);
    letter-spacing: 0.05em;
    transition: color var(--transition);
}

.mobile-menu-link:hover {
    color: var(--gold);
}

.mobile-menu-cta {
    font-family: var(--font-sans) !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(17, 28, 48, 0.7) 0%,
        rgba(26, 39, 68, 0.75) 50%,
        rgba(17, 28, 48, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-accent {
    width: 60px;
    height: 1px;
    background-color: var(--gold);
    margin: 0 auto 2rem;
}

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-headline-gold {
    color: var(--gold);
    font-style: italic;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-scroll svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ============================================
   Divider
   ============================================ */
.thin-divider {
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

/* ============================================
   About
   ============================================ */
.about {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    height: clamp(400px, 60vh, 600px);
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--gold);
    z-index: -1;
}

.about-content {
    padding: clamp(1rem, 3vw, 2rem) 0;
}

.about-body {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--navy);
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-400);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: var(--gray-200);
}

/* ============================================
   Offerings
   ============================================ */
.offerings {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background-color: var(--off-white);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto clamp(3rem, 6vw, 4rem);
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.offering-card {
    background-color: var(--white);
    padding: 2.5rem;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.offering-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(26, 39, 68, 0.08);
}

.offering-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.offering-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.offering-desc {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.offering-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ============================================
   Gallery
   ============================================ */
.gallery {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    position: relative;
}

.gallery-item--tall {
    grid-column: span 5;
}

.gallery-item:not(.gallery-item--tall) {
    grid-column: span 4;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 39, 68, 0.15), transparent 40%);
    pointer-events: none;
}

/* ============================================
   Visit
   ============================================ */
.visit {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background-color: var(--off-white);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.visit-info {
    padding: clamp(1rem, 3vw, 2rem) 0;
}

.visit-details {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.visit-detail {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.visit-detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    color: var(--gold);
}

.visit-detail-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 0.35rem;
}

.visit-detail-value {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--gray-700);
}

.visit-phone {
    transition: color var(--transition);
}

.visit-phone:hover {
    color: var(--gold);
}

.btn-map {
    margin-top: 2.5rem;
}

.visit-map {
    position: relative;
}

.map-placeholder {
    position: relative;
    overflow: hidden;
}

.map-placeholder img {
    width: 100%;
    height: clamp(300px, 45vh, 500px);
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.map-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    animation: pinBounce 2s ease-in-out infinite;
}

@keyframes pinBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.map-label {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--navy);
    background-color: var(--white);
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
    padding: clamp(5rem, 10vw, 7rem) 0;
    background-color: var(--navy);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(201, 168, 76, 0.08);
    border-radius: 50%;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(201, 168, 76, 0.06);
    border-radius: 50%;
}

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

.cta-eyebrow {
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.cta-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 300;
    line-height: 1.3;
    color: var(--white);
    margin-bottom: 2.5rem;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: clamp(4rem, 6vw, 5rem) 0 0;
    background-color: var(--navy-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: clamp(2rem, 4vw, 4rem);
    padding-bottom: clamp(3rem, 5vw, 4rem);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-mark {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.05em;
}

.footer-logo-text {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.footer-tagline {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
}

.footer-nav-label,
.footer-contact .footer-nav-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.footer-nav ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--gold);
}

.footer-address {
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
}

.footer-location {
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .offerings-grid {
        gap: 1.5rem;
    }

    .gallery-item--tall {
        grid-column: span 6;
    }

    .gallery-item:not(.gallery-item--tall) {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .about-image-wrap {
        order: -1;
    }

    .about-image-wrap img {
        height: 400px;
    }

    .about-image-accent {
        top: -12px;
        right: -12px;
    }

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

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

    .gallery-item--tall,
    .gallery-item:not(.gallery-item--tall) {
        grid-column: span 1;
    }

    .gallery-item--tall {
        grid-row: span 2;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item--tall {
        grid-row: span 1;
    }

    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }
}
