/* ============================================
   The Donut Stop — Classic & Elegant Styles
   Palette: Emerald Green + Cream
   ============================================ */

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

:root {
    --emerald-900: #0d3b24;
    --emerald-800: #1a5c3a;
    --emerald-700: #237a4c;
    --emerald-600: #2d9259;
    --cream-50:  #faf8f4;
    --cream-100: #f5f0e8;
    --cream-200: #ece4d4;
    --cream-300: #e0d5c0;
    --text-dark:  #1a1a1a;
    --text-muted: #5a5a5a;
    --text-light: #f5f0e8;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans:  'Lato', 'Helvetica Neue', Arial, sans-serif;
    
    --transition: 0.3s ease;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--cream-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
}

em {
    font-style: italic;
    font-family: var(--font-serif);
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--emerald-900);
    margin-bottom: 1.5rem;
}

.section-title--center {
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--emerald-800);
    color: var(--cream-50);
    border-color: var(--emerald-800);
}

.btn-primary:hover {
    background-color: var(--emerald-700);
    border-color: var(--emerald-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 92, 58, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--cream-50);
    border-color: var(--cream-50);
}

.btn-secondary:hover {
    background-color: var(--cream-50);
    color: var(--emerald-900);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.125rem 2.75rem;
    font-size: 0.9rem;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--cream-200);
    transition: all var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--emerald-900);
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    color: var(--emerald-800);
}

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

.nav-links a {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dark);
    position: relative;
    transition: color var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--emerald-700);
    transition: width var(--transition);
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--emerald-900);
    transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('https://images.pexels.com/photos/28097271/pexels-photo-28097271.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 59, 36, 0.88) 0%,
        rgba(26, 92, 58, 0.82) 50%,
        rgba(13, 59, 36, 0.88) 100%
    );
}

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

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--cream-300);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    color: var(--cream-50);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-title em {
    color: var(--cream-200);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--cream-200);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

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

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: var(--cream-200);
    animation: float 2.5s ease-in-out infinite;
}

.hero-scroll svg {
    width: 24px;
    height: 24px;
}

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

/* ---------- About ---------- */
.about {
    padding: 8rem 0;
    background-color: var(--cream-50);
}

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

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.about-content .section-title {
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.9;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--emerald-800);
}

.feature-item svg {
    width: 22px;
    height: 22px;
    color: var(--emerald-600);
    flex-shrink: 0;
}

/* ---------- Menu ---------- */
.menu {
    padding: 8rem 0;
    background-color: var(--cream-100);
}

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

.menu-card {
    background-color: var(--cream-50);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all var(--transition);
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.menu-card-image {
    overflow: hidden;
    aspect-ratio: 5/4;
}

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

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

.menu-card-content {
    padding: 1.75rem;
}

.menu-card-content h3 {
    font-size: 1.4rem;
    color: var(--emerald-900);
    margin-bottom: 0.75rem;
}

.menu-card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.menu-note {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
}

/* ---------- Gallery ---------- */
.gallery {
    padding: 8rem 0 6rem;
    background-color: var(--cream-50);
}

.gallery .container {
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 6/5;
}

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

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

/* ---------- Visit ---------- */
.visit {
    padding: 8rem 0;
    background-color: var(--cream-100);
}

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

.visit-info .section-title {
    margin-bottom: 2.5rem;
}

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

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

.visit-detail svg {
    width: 24px;
    height: 24px;
    color: var(--emerald-700);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--emerald-900);
    margin-bottom: 0.25rem;
}

.visit-detail p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.visit-detail a {
    color: var(--emerald-700);
    transition: color var(--transition);
}

.visit-detail a:hover {
    color: var(--emerald-900);
    text-decoration: underline;
}

.visit-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3;
}

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

/* ---------- CTA ---------- */
.cta {
    padding: 8rem 0;
    background-color: var(--emerald-900);
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--cream-50);
    margin-bottom: 1.25rem;
}

.cta-title em {
    color: var(--cream-200);
}

.cta-text {
    font-size: 1.1rem;
    color: var(--cream-200);
    max-width: 540px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.cta .btn-primary {
    background-color: var(--cream-50);
    color: var(--emerald-900);
    border-color: var(--cream-50);
}

.cta .btn-primary:hover {
    background-color: var(--cream-100);
    border-color: var(--cream-100);
    color: var(--emerald-900);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ---------- Footer ---------- */
.footer {
    padding: 4rem 0 2rem;
    background-color: var(--emerald-900);
    color: var(--cream-200);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--cream-50);
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 28px;
    height: 28px;
    color: var(--cream-200);
}

.footer-brand p {
    color: var(--cream-300);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cream-50);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    color: var(--cream-300);
    font-size: 0.95rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--cream-50);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact p {
    color: var(--cream-300);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-contact a {
    color: var(--cream-300);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--cream-50);
}

.footer-bottom {
    border-top: 1px solid rgba(245, 240, 232, 0.15);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--cream-300);
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: rgba(250, 248, 244, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--cream-200);
        transform: translateY(-120%);
        transition: transform var(--transition);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.open {
        transform: translateY(0);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .about-grid,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .about,
    .menu,
    .gallery,
    .visit,
    .cta {
        padding: 5rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        padding: 0 1.25rem;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
