/* ========================================
   Nelly's Deli & Bakery — Styles
   Midnight Blue + Mint · Editorial Design
   ======================================== */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #1a2744;
    background-color: #FAFCFB;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

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

ul {
    list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.15;
    color: #0A1628;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Skip Link ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #0A1628;
    color: #A7F3D0;
    padding: 8px 16px;
    border-radius: 4px;
    z-index: 200;
    font-size: 0.875rem;
    font-weight: 500;
}

.skip-link:focus {
    top: 16px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn--primary {
    background-color: #0A1628;
    color: #FAFCFB;
    border-color: #0A1628;
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background-color: #132744;
    border-color: #132744;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(10, 22, 40, 0.3);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--primary:focus-visible {
    outline: 2px solid #A7F3D0;
    outline-offset: 2px;
}

.btn--outline-light {
    background-color: transparent;
    color: #FAFCFB;
    border-color: rgba(250, 252, 251, 0.6);
}

.btn--outline-light:hover,
.btn--outline-light:focus-visible {
    background-color: rgba(250, 252, 251, 0.1);
    border-color: #FAFCFB;
}

.btn--light {
    background-color: #FAFCFB;
    color: #0A1628;
    border-color: #FAFCFB;
}

.btn--light:hover,
.btn--light:focus-visible {
    background-color: #E8F5EF;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn--sm {
    padding: 8px 18px;
    font-size: 0.8125rem;
}

.btn--lg {
    padding: 14px 32px;
    font-size: 1rem;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(167, 243, 208, 0.1);
    transition: background 0.3s ease;
}

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

/* ---------- Logo ---------- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-abbr {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #A7F3D0;
    line-height: 1;
}

.logo-mark {
    color: #A7F3D0;
    font-size: 0.625rem;
    opacity: 0.7;
    letter-spacing: 2px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #FAFCFB;
}

.logo-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.625rem;
    font-weight: 400;
    color: rgba(167, 243, 208, 0.7);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ---------- Nav ---------- */
.nav-list {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(250, 252, 251, 0.75);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #A7F3D0;
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #A7F3D0;
}

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

.header-cta {
    display: none;
}

/* ---------- Mobile Menu Toggle ---------- */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.menu-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #FAFCFB;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: #0A1628;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

.mobile-menu nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mobile-nav-link {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #FAFCFB;
    padding: 12px 24px;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
    color: #A7F3D0;
}

.mobile-cta {
    margin-top: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #A7F3D0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0A1628;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/6122263/pexels-photo-6122263.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.92) 0%,
        rgba(10, 22, 40, 0.82) 50%,
        rgba(10, 22, 40, 0.88) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    padding: 120px 24px 80px;
}

.hero-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #A7F3D0;
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 800;
    color: #FAFCFB;
    line-height: 1.08;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero-headline .text-mint {
    color: #A7F3D0;
    font-style: italic;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(250, 252, 251, 0.7);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 44px;
}

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

/* ---------- Section Eyebrow ---------- */
.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #0D9488;
    margin-bottom: 16px;
}

/* ---------- Section Headline ---------- */
.section-headline {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #0A1628;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* ---------- Features ---------- */
.features {
    padding: 120px 0;
    background: #FAFCFB;
}

.features-header {
    max-width: 720px;
    margin-bottom: 72px;
}

.features-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

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

.feature-card {
    padding: 40px 32px;
    background: #FFFFFF;
    border: 1px solid rgba(10, 22, 40, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.08);
    border-color: rgba(167, 243, 208, 0.3);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0A1628;
    border-radius: 12px;
    margin-bottom: 24px;
    color: #A7F3D0;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #0A1628;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #4B5563;
}

/* ---------- Split Section ---------- */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    background: #0A1628;
}

.split-image {
    overflow: hidden;
}

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

.split-content {
    display: flex;
    align-items: center;
    padding: 80px 64px;
}

.split-inner {
    max-width: 480px;
}

.split-inner .section-eyebrow {
    color: #A7F3D0;
    margin-bottom: 20px;
}

.split-inner .section-headline {
    color: #FAFCFB;
    margin-bottom: 24px;
}

.split-inner > p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(250, 252, 251, 0.7);
    margin-bottom: 32px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.9375rem;
    color: rgba(250, 252, 251, 0.8);
    line-height: 1.6;
}

.feature-list-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    background: #A7F3D0;
    border-radius: 50%;
    margin-top: 8px;
}

.split-inner .btn {
    margin-top: 8px;
}

/* ---------- Menu Section ---------- */
.menu-section {
    padding: 120px 0;
    background: #FAFCFB;
}

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

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

.menu-intro {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #4B5563;
}

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

.menu-category {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 40px 32px;
    border: 1px solid rgba(10, 22, 40, 0.06);
    transition: box-shadow 0.3s ease;
}

.menu-category:hover {
    box-shadow: 0 16px 48px rgba(10, 22, 40, 0.07);
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0A1628;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(10, 22, 40, 0.08);
}

.category-num {
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #0D9488;
    letter-spacing: 0.05em;
    background: rgba(13, 148, 136, 0.08);
    padding: 4px 8px;
    border-radius: 4px;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-item-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0A1628;
}

.menu-item-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #6B7280;
}

.menu-note {
    text-align: center;
    margin-top: 56px;
    font-size: 0.9375rem;
    color: #4B5563;
    line-height: 1.7;
}

/* ---------- Bakery Section ---------- */
.bakery-section {
    padding: 100px 0;
    background: #F0F7F4;
}

.bakery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 80px;
}

.bakery-image-wrap {
    border-radius: 12px;
    overflow: hidden;
}

.bakery-img-main {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.bakery-img-secondary {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.bakery-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.bakery-cta .section-headline {
    margin-bottom: 20px;
}

.bakery-cta > p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #4B5563;
    margin-bottom: 36px;
}

/* ---------- Visit Section ---------- */
.visit-section {
    padding: 120px 0;
    background: #0A1628;
}

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

.visit-info .section-eyebrow {
    color: #A7F3D0;
    margin-bottom: 16px;
}

.visit-info .section-headline {
    color: #FAFCFB;
    margin-bottom: 48px;
}

.contact-block {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(167, 243, 208, 0.1);
    border-radius: 10px;
    color: #A7F3D0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #A7F3D0;
    margin-bottom: 6px;
}

.contact-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(250, 252, 251, 0.85);
}

.contact-item a {
    color: rgba(250, 252, 251, 0.85);
    transition: color 0.2s ease;
}

.contact-item a:hover,
.contact-item a:focus-visible {
    color: #A7F3D0;
}

.hours-note {
    font-size: 0.875rem !important;
    color: rgba(250, 252, 251, 0.45) !important;
    margin-top: 4px;
}

/* ---------- Map ---------- */
.visit-map {
    position: relative;
}

.map-placeholder {
    background: #132744;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder-inner {
    text-align: center;
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.map-placeholder svg {
    color: #A7F3D0;
    opacity: 0.6;
}

.map-placeholder p {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #FAFCFB;
    line-height: 1.5;
}

.map-link {
    margin-top: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #060F1D;
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(250, 252, 251, 0.08);
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(250, 252, 251, 0.5);
    margin-top: 16px;
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-abbr {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #A7F3D0;
}

.footer-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #FAFCFB;
}

.footer-heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #A7F3D0;
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(250, 252, 251, 0.55);
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #A7F3D0;
}

.footer-contact p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(250, 252, 251, 0.55);
    margin-bottom: 8px;
}

.footer-contact a {
    color: rgba(250, 252, 251, 0.55);
    transition: color 0.2s ease;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
    color: #A7F3D0;
}

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

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(250, 252, 251, 0.3);
    line-height: 1.6;
}

.footer-bottom a {
    color: rgba(250, 252, 251, 0.3);
    transition: color 0.2s ease;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
    color: #A7F3D0;
}

/* ---------- Responsive ---------- */

/* Tablet */
@media (max-width: 1024px) {
    .header-cta {
        display: inline-flex;
    }
    
    .split-content {
        padding: 64px 48px;
    }
    
    .visit-grid {
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* Mobile landscape / small tablet */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .header-cta {
        display: none;
    }
    
    .hero-content {
        padding: 100px 20px 60px;
    }
    
    .hero-headline {
        margin-bottom: 20px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .features {
        padding: 80px 0;
    }
    
    .features-header {
        margin-bottom: 48px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .split-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .split-image {
        height: 360px;
    }
    
    .split-content {
        padding: 56px 24px;
    }
    
    .menu-section {
        padding: 80px 0;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .bakery-section {
        padding: 80px 0;
    }
    
    .bakery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .bakery-img-main,
    .bakery-img-secondary {
        height: 240px;
    }
    
    .visit-section {
        padding: 80px 0;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .header-inner {
        padding: 0 16px;
    }
    
    .hero {
        min-height: 100dvh;
    }
    
    .hero-content {
        padding: 90px 16px 50px;
    }
    
    .section-headline {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 28px 24px;
    }
    
    .split-content {
        padding: 48px 20px;
    }
    
    .menu-category {
        padding: 28px 24px;
    }
    
    .bakery-cta {
        padding: 0 8px;
    }
    
    .contact-block {
        gap: 28px;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
