/* ───────────────────────────────────────────
   Ziggys Donuts of Peabody — Stylesheet
   Teal + Slate Grey · Bold Editorial
   ─────────────────────────────────────────── */

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

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #080e1a;

    --cream: #f5f0eb;
    --warm-white: #faf8f5;

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

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.16), 0 8px 20px rgba(15, 23, 42, 0.08);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--slate-800);
    background-color: var(--warm-white);
    -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 {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ───────────────────────────────────────────
   Navigation
   ─────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(30, 41, 59, 0.06);
    transition: box-shadow var(--transition-fast);
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

.nav-logo-icon {
    color: var(--teal-600);
}

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

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-600);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover {
    color: var(--slate-900);
    background: rgba(30, 41, 59, 0.05);
}

.nav-link--cta {
    background: var(--teal-600);
    color: #fff !important;
    font-weight: 600;
    margin-left: 8px;
}

.nav-link--cta:hover {
    background: var(--teal-700);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    color: var(--slate-700);
    transition: background var(--transition-fast);
}

.nav-toggle:hover {
    background: rgba(30, 41, 59, 0.05);
}

/* Mobile overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(8, 14, 26, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-overlay-inner {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    background: var(--warm-white);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    transition: transform var(--transition-base);
}

.nav-overlay.active .nav-overlay-inner {
    transform: translateY(0);
}

.nav-overlay-link {
    padding: 14px 16px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--slate-700);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-overlay-link:hover {
    color: var(--slate-900);
    background: rgba(30, 41, 59, 0.05);
}

/* ───────────────────────────────────────────
   Buttons
   ─────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn--primary {
    background: var(--teal-600);
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.btn--primary:hover {
    background: var(--teal-700);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--slate-700);
    border: 1.5px solid var(--slate-300);
}

.btn--ghost:hover {
    border-color: var(--slate-500);
    color: var(--slate-900);
    background: rgba(30, 41, 59, 0.03);
}

.btn--outline {
    background: transparent;
    color: var(--slate-800);
    border: 1.5px solid var(--slate-300);
}

.btn--outline:hover {
    border-color: var(--teal-600);
    color: var(--teal-700);
    background: var(--teal-50);
}

.btn--lg {
    padding: 18px 36px;
    font-size: 1rem;
}

/* ───────────────────────────────────────────
   Section Labels & Headings
   ─────────────────────────────────────────── */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 16px;
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--slate-900);
    letter-spacing: -0.025em;
    margin-bottom: 24px;
}

.section-heading em {
    font-style: italic;
    color: var(--teal-700);
}

/* ───────────────────────────────────────────
   Hero
   ─────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background: var(--warm-white);
    padding: 100px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--slate-900);
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-headline em {
    font-style: italic;
    color: var(--teal-700);
}

.hero-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--slate-600);
    max-width: 480px;
    margin-bottom: 36px;
}

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

.hero-right {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-accent {
    position: absolute;
    bottom: -16px;
    left: -16px;
    width: 120px;
    height: 120px;
    background: var(--teal-600);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.15;
}

.hero-badge {
    position: absolute;
    bottom: -24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--slate-900);
    color: #fff;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
}

.hero-badge svg {
    color: var(--teal-400);
}

/* ───────────────────────────────────────────
   Divider
   ─────────────────────────────────────────── */
.section-divider {
    background: var(--slate-900);
    overflow: hidden;
}

/* ───────────────────────────────────────────
   About
   ─────────────────────────────────────────── */
.about {
    padding: 100px 24px;
    background: var(--slate-900);
    color: #fff;
}

.about-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-label {
    color: var(--teal-400);
}

.about-content .section-heading {
    color: #fff;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--slate-400);
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--teal-400);
    letter-spacing: -0.02em;
}

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

.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

/* ───────────────────────────────────────────
   Menu
   ─────────────────────────────────────────── */
.menu {
    padding: 100px 24px;
    background: var(--cream);
}

.menu-container {
    max-width: 1240px;
    margin: 0 auto;
}

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

.menu-header .section-heading {
    margin-bottom: 16px;
}

.menu-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--slate-600);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.menu-card {
    background: #fff;
    padding: 36px 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    transition: all var(--transition-base);
}

.menu-card:hover {
    border-color: var(--teal-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.menu-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-50);
    border-radius: var(--radius-md);
    color: var(--teal-700);
    margin-bottom: 20px;
    transition: background var(--transition-fast);
}

.menu-card:hover .menu-card-icon {
    background: var(--teal-600);
    color: #fff;
}

.menu-card-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.menu-card-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--slate-500);
}

/* ───────────────────────────────────────────
   Hours
   ─────────────────────────────────────────── */
.hours {
    padding: 100px 24px;
    background: var(--warm-white);
}

.hours-container {
    max-width: 1240px;
    margin: 0 auto;
}

.hours-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.hours-info .section-heading {
    margin-bottom: 32px;
}

.hours-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: #fff;
    border-bottom: 1px solid var(--slate-200);
    gap: 16px;
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-day {
    font-weight: 600;
    color: var(--slate-800);
    font-size: 0.95rem;
}

.hours-time {
    color: var(--slate-500);
    font-size: 0.9rem;
    text-align: right;
}

.hours-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--slate-400);
    font-style: italic;
}

.map-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
}

/* Contact strip */
.contact-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 60px;
    padding-top: 48px;
    border-top: 1px solid var(--slate-200);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--slate-700);
    font-size: 1rem;
}

.contact-item svg {
    color: var(--teal-600);
    flex-shrink: 0;
}

.contact-item a {
    font-weight: 600;
    color: var(--slate-800);
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--teal-700);
}

/* ───────────────────────────────────────────
   CTA
   ─────────────────────────────────────────── */
.cta {
    padding: 100px 24px;
    background: var(--slate-900);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.cta-container {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.cta-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-400);
    margin-bottom: 20px;
}

.cta-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.cta-headline em {
    font-style: italic;
    color: var(--teal-400);
}

.cta-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--slate-400);
    margin-bottom: 40px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

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

/* ───────────────────────────────────────────
   Footer
   ─────────────────────────────────────────── */
.footer {
    background: var(--slate-950);
    padding: 64px 24px 32px;
    color: var(--slate-400);
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.footer-logo-icon {
    color: var(--teal-500);
}

.footer-tagline {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--slate-500);
}

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

.footer-links a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-400);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.footer-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 32px;
    font-size: 0.85rem;
    color: var(--slate-500);
}

/* ───────────────────────────────────────────
   Scroll Reveal (progressive enhancement)
   ─────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity var(--transition-slow), transform var(--transition-slow);
    }

    .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) {
    .hero-container {
        gap: 40px;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        gap: 48px;
    }
}

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

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 20px 60px;
    }

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

    .hero-right {
        order: -1;
        max-width: 480px;
        margin: 0 auto;
    }

    .hero-badge {
        left: 0;
        bottom: -20px;
    }

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

    .about-image {
        order: -1;
        max-width: 480px;
        margin: 0 auto;
    }

    .hours-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-strip {
        flex-direction: column;
        gap: 20px;
    }

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

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

@media (max-width: 480px) {
    .hero {
        padding: 90px 16px 48px;
    }

    .hero-headline {
        font-size: 2rem;
    }

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

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

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

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

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

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .hours-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .hours-time {
        text-align: left;
    }
}
