/* ============================================
   JAX DONUTS — Custom Styles
   Charcoal + Coral | Clean Minimalist
   ============================================ */

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

:root {
    --charcoal: #1a1a1a;
    --charcoal-light: #2d2d2d;
    --charcoal-mid: #3a3a3a;
    --coral: #FF6B4A;
    --coral-light: #FF8A70;
    --coral-dark: #E5553A;
    --cream: #FAFAF8;
    --cream-dark: #F2F2EE;
    --white: #FFFFFF;
    --gray-100: #F7F7F5;
    --gray-200: #E8E8E4;
    --gray-300: #D1D1CC;
    --gray-400: #A0A09A;
    --gray-500: #6B6B66;
    --gray-600: #4A4A46;
    
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    --nav-height: 72px;
    --container-max: 1200px;
    --container-padding: 24px;
    
    --transition-fast: 0.2s ease;
    --transition-med: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.nav.scrolled {
    border-bottom-color: var(--gray-200);
    background: rgba(250, 250, 248, 0.97);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.9375rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal);
}

.nav-logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--coral);
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-500);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--coral);
    transition: width var(--transition-fast);
}

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

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

.nav-cta {
    color: var(--coral) !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    font-size: 0.9375rem !important;
}

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

.nav-cta:hover {
    color: var(--coral-dark) !important;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-line {
    width: 22px;
    height: 1.5px;
    background: var(--charcoal);
    transition: all var(--transition-fast);
    transform-origin: center;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med);
}

.nav-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.nav-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.nav-overlay-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--charcoal);
    transition: color var(--transition-fast);
}

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

.nav-overlay-cta {
    font-size: 1.125rem;
    color: var(--coral);
    margin-top: 16px;
}

/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    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-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.55) 0%,
        rgba(26, 26, 26, 0.40) 50%,
        rgba(26, 26, 26, 0.65) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    padding: 0 var(--container-padding);
    padding-top: var(--nav-height);
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral-light);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-title em {
    font-style: italic;
    color: var(--coral-light);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    margin: 0 auto 40px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 0;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-light {
    background: var(--white);
    color: var(--charcoal);
}

.btn-light:hover {
    background: var(--gray-100);
    transform: translateY(-1px);
}

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

.btn-ghost-light:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.btn-coral {
    background: var(--coral);
    color: var(--white);
}

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

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Section Divider --- */
.section-divider {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    gap: 16px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.divider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coral);
    flex-shrink: 0;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--charcoal);
}

/* --- Menu Section --- */
.menu-section {
    padding: 100px 0;
    background: var(--cream);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.menu-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-med);
}

.menu-card:hover {
    border-color: var(--coral);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(26, 26, 26, 0.08);
}

.menu-card-img {
    overflow: hidden;
    aspect-ratio: 3/2;
}

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

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

.menu-card-body {
    padding: 28px;
}

.menu-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.menu-card-desc {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--gray-500);
}

.menu-note {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 300;
    color: var(--gray-400);
    letter-spacing: 0.04em;
}

/* --- About Section --- */
.about-section {
    padding: 100px 0;
    background: var(--white);
}

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

.about-img-wrap {
    overflow: hidden;
    aspect-ratio: 7/9;
}

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

.about-content {
    max-width: 480px;
}

.about-content .section-eyebrow {
    text-align: left;
    margin-bottom: 16px;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 32px;
}

.about-text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--gray-500);
    margin-bottom: 20px;
}

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

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--coral);
}

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

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

/* --- Visit Section --- */
.visit-section {
    padding: 100px 0;
    background: var(--cream);
}

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

.visit-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 48px;
    background: var(--white);
    border: 1px solid var(--gray-200);
}

.visit-block h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.visit-block p {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--gray-500);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 6px 0;
}

.hours-day {
    color: var(--charcoal);
    font-weight: 400;
}

.hours-time {
    color: var(--gray-500);
}

.link-coral {
    color: var(--coral);
    transition: color var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.link-coral:hover {
    color: var(--coral-dark);
    border-bottom-color: var(--coral-dark);
}

.visit-map {
    min-height: 400px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

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

.cta-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(26, 26, 26, 0.82) 0%,
        rgba(26, 26, 26, 0.65) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.cta-section .section-header {
    text-align: left;
    margin-bottom: 0;
}

.cta-eyebrow {
    color: var(--coral-light) !important;
}

.cta-title {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
    background: var(--charcoal);
    padding: 64px 0 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--charcoal-light);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
}

.footer-logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--coral);
}

.footer-brand p {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--gray-400);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--coral-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--gray-500);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Default state: visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.animate-on-scroll {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal.animate-on-scroll.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-img-wrap {
        aspect-ratio: 4/3;
    }
    
    .about-content .section-eyebrow,
    .about-content .section-title {
        text-align: center;
    }
    
    .about-content {
        max-width: 100%;
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
    }
    
    .visit-info {
        padding: 32px;
    }
    
    .cta-section {
        padding: 80px 0;
    }
    
    .cta-content {
        text-align: center;
    }
    
    .cta-section .section-header {
        text-align: center;
    }
    
    .cta-actions {
        justify-content: center;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .visit-info {
        padding: 24px;
    }
    
    .hours-row {
        flex-direction: column;
        gap: 2px;
    }
}
