/* ============================================
   THE ATRIUM BAKERY & CAFE — STYLESHEET
   Palette: Plum (#5B2C6F) + Amber (#F59E0B)
   Fonts: Playfair Display + Inter
   ============================================ */

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

:root {
    --plum-50: #F5F0F7;
    --plum-100: #EDE0F0;
    --plum-200: #D8BFE0;
    --plum-300: #C095CC;
    --plum-400: #A76DB8;
    --plum-500: #8B4D9A;
    --plum-600: #7B3F8A;
    --plum-700: #5B2C6F;
    --plum-800: #4A2459;
    --plum-900: #3A1C45;
    --plum-950: #24102A;

    --amber-50: #FFFBF0;
    --amber-100: #FEF3C7;
    --amber-200: #FDE68A;
    --amber-300: #FCD34D;
    --amber-400: #F59E0B;
    --amber-500: #D97706;
    --amber-600: #B45309;
    --amber-700: #92400E;
    --amber-800: #78350F;
    --amber-900: #451A03;

    --cream: #FFFAF5;
    --warm-white: #FFF8F0;
    --warm-gray: #F5F0EB;
    --text-dark: #1A1018;
    --text-mid: #4A3F48;
    --text-light: #7A6E78;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    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 {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.5s var(--ease-out);
}

.navbar.scrolled {
    background: rgba(91, 44, 111, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    z-index: 1001;
}

.logo-letter {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--amber-400);
    line-height: 1;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--amber-400);
    transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
    color: #fff;
}

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

.nav-cta {
    background: var(--amber-400) !important;
    color: var(--plum-950) !important;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    transition: all 0.3s ease !important;
}

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

.nav-cta:hover {
    background: var(--amber-300) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

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

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--plum-900);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
}

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

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mobile-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    padding: 12px 24px;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--amber-400);
}

.mobile-phone {
    font-family: var(--font-sans);
    font-size: 1rem !important;
    font-weight: 400 !important;
    color: var(--amber-400) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.mobile-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #fff;
    padding: 8px;
    transition: transform 0.3s ease;
}

.mobile-close:hover {
    transform: rotate(90deg);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: var(--plum-950);
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(36, 16, 42, 0.88) 0%,
        rgba(91, 44, 111, 0.75) 40%,
        rgba(74, 36, 89, 0.65) 70%,
        rgba(58, 28, 69, 0.80) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 140px 24px 80px;
    width: 100%;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-400);
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 28px;
    max-width: 900px;
}

.hero-accent {
    color: var(--amber-400);
    font-style: italic;
}

.hero-subhead {
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 48px;
    font-weight: 300;
}

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

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 16px 36px;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--amber-400);
    color: var(--plum-950);
    border-color: var(--amber-400);
}

.btn-primary:hover {
    background: var(--amber-300);
    border-color: var(--amber-300);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.35);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

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

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

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

/* ---------- SECTION COMMON ---------- */
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-600);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.text-accent {
    color: var(--plum-700);
    font-style: italic;
}

/* ---------- ABOUT ---------- */
.about {
    padding: 140px 0;
    background: var(--cream);
}

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

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

.about-image-main {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(91, 44, 111, 0.15);
}

.about-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.about-image-accent {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(91, 44, 111, 0.2);
    border: 6px solid var(--cream);
}

.about-image-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.about-text-col {
    padding: 20px 0;
}

.about-body {
    font-size: 1.1rem;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 20px;
}

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

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--plum-700);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
}

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

/* ---------- MENU ---------- */
.menu {
    padding: 140px 0;
    background: var(--plum-900);
    position: relative;
}

.menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--plum-400), transparent);
}

.menu-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 80px;
}

.menu-header .section-eyebrow {
    color: var(--amber-400);
}

.menu-header .section-title {
    color: #fff;
}

.menu-intro {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.75;
}

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

.menu-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s var(--ease-out);
}

.menu-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

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

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

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

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

.menu-card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.menu-card-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.menu-footer {
    text-align: center;
}

.menu-footer > p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* ---------- GALLERY ---------- */
.gallery {
    padding: 140px 0;
    background: var(--cream);
}

.gallery-header {
    text-align: center;
    margin-bottom: 64px;
}

.gallery-header .section-title {
    max-width: 600px;
    margin: 0 auto 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.gallery-item--wide {
    grid-column: 1 / -1;
}

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

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

.gallery-item--wide img {
    aspect-ratio: 16/7;
}

.gallery-item:not(.gallery-item--wide) img {
    aspect-ratio: 3/2;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 32px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* ---------- VISIT ---------- */
.visit {
    padding: 140px 0;
    background: var(--warm-white);
}

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

.visit-info {
    padding-top: 10px;
}

.contact-blocks {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 48px 0;
}

.contact-block {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--plum-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum-700);
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.contact-value a {
    color: var(--plum-700);
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: var(--amber-600);
}

.map-placeholder {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(91, 44, 111, 0.1);
}

/* Form */
.visit-form-col {
    position: relative;
}

.form-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(91, 44, 111, 0.08);
    border: 1px solid var(--plum-100);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--plum-200);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--cream);
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-input:focus {
    border-color: var(--plum-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(91, 44, 111, 0.08);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    margin-bottom: 16px;
}

.success-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.success-text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--plum-950);
    padding: 80px 0 40px;
}

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

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

.footer-brand .logo-letter {
    font-size: 2.5rem;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
}

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

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--amber-400);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--amber-400);
    border-color: var(--amber-400);
    color: var(--plum-950);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    }

    .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) {
    .about-grid {
        gap: 60px;
    }

    .menu-grid {
        gap: 24px;
    }

    .visit-grid {
        gap: 60px;
    }
}

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

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        padding: 120px 24px 100px;
    }

    .hero-headline {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .about {
        padding: 80px 0;
    }

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

    .about-image-accent {
        right: -16px;
        bottom: -24px;
    }

    .menu {
        padding: 80px 0;
    }

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

    .gallery {
        padding: 80px 0;
    }

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

    .gallery-item--wide {
        grid-column: 1;
    }

    .visit {
        padding: 80px 0;
    }

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

    .form-card {
        padding: 32px;
    }

    .footer-top {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 20px;
    }

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

    .hero-scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

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

    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

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

    .contact-blocks {
        gap: 24px;
    }
}
