/* ============================================
   Stockton Deli Grocery — Custom Styles
   ============================================ */

:root {
    --plum: #4A235A;
    --plum-dark: #3A1D4A;
    --plum-light: #6B3A7D;
    --amber: #D4A017;
    --amber-light: #E8B82C;
    --amber-dark: #B8860B;
    --neutral-50: #FAFAFA;
    --neutral-100: #F5F5F5;
    --neutral-200: #EEEEEE;
    --neutral-300: #E0E0E0;
    --neutral-400: #BDBDBD;
    --neutral-500: #9E9E9E;
    --neutral-600: #757575;
    --neutral-700: #616161;
    --neutral-800: #424242;
    --neutral-900: #212121;
    --white: #FFFFFF;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 3px rgba(74, 35, 90, 0.08);
    --shadow-md: 0 4px 16px rgba(74, 35, 90, 0.10);
    --shadow-lg: 0 8px 32px rgba(74, 35, 90, 0.14);
    --shadow-xl: 0 16px 48px rgba(74, 35, 90, 0.16);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--neutral-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--plum);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
    transition: top var(--transition);
}

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--neutral-200);
    transition: box-shadow var(--transition);
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--plum);
    letter-spacing: -0.02em;
}

.logo-text {
    line-height: 1.1;
}

.logo-text span {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    color: var(--neutral-500);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 1px;
}

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

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-700);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.main-nav a:hover {
    color: var(--plum);
    background: rgba(74, 35, 90, 0.06);
}

.btn-nav {
    background: var(--plum) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
}

.btn-nav:hover {
    background: var(--plum-dark) !important;
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.nav-toggle:hover {
    background: var(--neutral-100);
}

.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--plum);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger span {
    height: 0;
    width: 100%;
    transform: translateY(-7px);
}

.hamburger::before {
    transform: translateY(-7px);
}

.hamburger::after {
    transform: translateY(7px);
}

.nav-toggle[aria-expanded="true"] .hamburger span {
    transform: translateY(0);
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    margin-top: -1px;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    margin-top: -1px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--white) 50%, rgba(74, 35, 90, 0.03) 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 48px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 160, 23, 0.12);
    color: var(--amber-dark);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 700;
    line-height: 1.12;
    color: var(--neutral-900);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.text-amber {
    color: var(--amber-dark);
}

.text-plum {
    color: var(--plum);
}

.hero-sub {
    font-size: 18px;
    line-height: 1.7;
    color: var(--neutral-600);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 26px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--plum);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(74, 35, 90, 0.25);
}

.btn-primary:hover {
    background: var(--plum-dark);
    box-shadow: 0 6px 20px rgba(74, 35, 90, 0.35);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--plum);
    border: 2px solid var(--plum);
}

.btn-secondary:hover {
    background: var(--plum);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-map {
    margin-top: 24px;
    background: var(--amber);
    color: var(--neutral-900);
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.3);
}

.btn-map:hover {
    background: var(--amber-light);
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.4);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--neutral-200);
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--plum);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--neutral-500);
    font-weight: 500;
}

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

.hero-image {
    position: relative;
}

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

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

.hero-img-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--amber);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.4;
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
    background: var(--plum);
    padding: 28px 0;
}

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

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
}

.trust-item svg {
    flex-shrink: 0;
}

/* ============================================
   SECTIONS — Shared
   ============================================ */
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber-dark);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--neutral-900);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 17px;
    color: var(--neutral-600);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

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

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 100px 0;
    background: var(--white);
}

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

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

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

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

.about-img-secondary {
    position: absolute;
    bottom: -32px;
    right: -32px;
    width: 55%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--white);
}

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

.about-experience-badge {
    position: absolute;
    top: -16px;
    left: -16px;
    background: var(--plum);
    color: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-experience-badge .exp-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    opacity: 0.8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.about-experience-badge .exp-label {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--neutral-600);
    margin-bottom: 16px;
}

.about-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--neutral-700);
}

.about-features svg {
    flex-shrink: 0;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
    padding: 100px 0;
    background: var(--neutral-50);
}

.products-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-img {
    overflow: hidden;
    height: 220px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-info {
    padding: 24px;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 8px;
}

.product-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--neutral-600);
}

/* ============================================
   WHY US
   ============================================ */
.why-us {
    padding: 100px 0;
    background: var(--white);
}

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

.why-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--neutral-600);
    margin-bottom: 40px;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.why-feature {
    display: flex;
    gap: 18px;
}

.why-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(212, 160, 23, 0.12);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-feature-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 4px;
}

.why-feature-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--neutral-600);
}

.why-image-block {
    position: relative;
}

.why-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.why-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-floating-card {
    position: absolute;
    bottom: 32px;
    left: -24px;
    background: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 2;
}

.why-floating-card strong {
    display: block;
    font-size: 15px;
    color: var(--neutral-900);
}

.why-floating-card span {
    font-size: 13px;
    color: var(--neutral-500);
}

/* ============================================
   LOCATION
   ============================================ */
.location {
    padding: 100px 0;
    background: var(--neutral-50);
}

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

.location-details {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.location-detail {
    display: flex;
    gap: 16px;
}

.detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(74, 35, 90, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-detail strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 2px;
}

.location-detail p {
    font-size: 14px;
    color: var(--neutral-600);
    line-height: 1.6;
}

.location-detail a {
    color: var(--plum);
    font-weight: 600;
    transition: color var(--transition);
}

.location-detail a:hover {
    color: var(--plum-light);
}

.hours-note {
    font-size: 13px;
    color: var(--neutral-500);
    font-style: italic;
}

.location-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 460px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
}

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

/* ============================================
   CTA
   ============================================ */
.cta {
    padding: 100px 0;
    background: var(--plum);
    overflow: hidden;
}

.cta-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: center;
}

.cta-content .section-label {
    color: var(--amber-light);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 700;
    line-height: 1.12;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta-text {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
    max-width: 480px;
}

.cta-contacts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--amber-light);
    transition: color var(--transition);
}

.cta-phone:hover {
    color: var(--amber);
}

.cta-address {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
}

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

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

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--neutral-900);
    color: var(--neutral-400);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--neutral-500);
    max-width: 280px;
}

.footer-heading {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 14px;
    color: var(--neutral-500);
    transition: color var(--transition);
}

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

.footer-contact address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    line-height: 1.7;
}

.footer-contact a {
    color: var(--amber-light);
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--neutral-800);
    padding: 24px 0;
}

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

.footer-bottom p {
    font-size: 13px;
    color: var(--neutral-600);
}

.footer-bottom a {
    color: var(--neutral-500);
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--amber-light);
}

/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 32px;
    }

    .about-grid,
    .why-grid,
    .location-grid,
    .cta-inner {
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-grid,
    .why-grid,
    .location-grid,
    .cta-inner {
        grid-template-columns: 1fr;
    }

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

    .why-image-block {
        max-width: 480px;
        margin: 0 auto;
    }

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

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

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

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

    .header-inner {
        height: 64px;
    }

    .main-nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        padding: 32px 24px;
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 95;
        overflow-y: auto;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .main-nav a {
        font-size: 17px;
        padding: 14px 16px;
        border-radius: var(--radius-md);
    }

    .btn-nav {
        text-align: center;
        margin-top: 16px;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding-top: 64px;
        min-height: auto;
        padding-bottom: 48px;
    }

    .hero-headline {
        font-size: clamp(28px, 7vw, 40px);
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

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

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

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

    .about-img-secondary {
        right: -12px;
        bottom: -20px;
    }

    .about-experience-badge {
        top: -12px;
        left: -8px;
    }

    .why-floating-card {
        left: 16px;
        bottom: 16px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .trust-item {
        justify-content: flex-start;
    }

    .location-map {
        height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

    .cta-inner {
        text-align: center;
    }

    .cta-text {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-contacts {
        align-items: center;
    }

    .cta-image {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .fade-in-delay-1 { transition-delay: 0.1s; }
    .fade-in-delay-2 { transition-delay: 0.2s; }
    .fade-in-delay-3 { transition-delay: 0.3s; }
    .fade-in-delay-4 { transition-delay: 0.4s; }
}
