/* ========================================
   The Emporium Ice Cream Parlor
   Styles — Minimalist · Teal + Slate
   ======================================== */

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

:root {
    --color-teal-50: #f0fdfa;
    --color-teal-100: #ccfbf1;
    --color-teal-200: #99f6e4;
    --color-teal-300: #5eead4;
    --color-teal-400: #2dd4bf;
    --color-teal-500: #14b8a6;
    --color-teal-600: #0d9488;
    --color-teal-700: #0f766e;
    --color-teal-800: #115e59;
    --color-teal-900: #134e4a;
    
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    --color-slate-950: #020617;
    
    --color-white: #ffffff;
    --color-black: #000000;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-slate-800);
    background-color: var(--color-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;
}

ul {
    list-style: none;
}

/* --- Utility --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 300;
    line-height: 1.15;
    color: var(--color-slate-900);
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-teal-600);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 300;
    color: var(--color-slate-900);
    line-height: 1.15;
    margin-bottom: var(--space-xl);
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-slate-100);
    transition: transform var(--transition-medium);
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

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

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

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

.logo-light {
    color: var(--color-white);
}

.logo-light svg {
    color: var(--color-teal-300);
}

/* --- Navigation --- */
.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-list a {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-slate-600);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-teal-600);
    transition: width var(--transition-fast);
}

.nav-list a:hover {
    color: var(--color-teal-600);
}

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

/* --- Nav Toggle --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-slate-800);
    transition: all var(--transition-fast);
}

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

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

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

/* --- Mobile Nav Overlay --- */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

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

.nav-overlay-list {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.nav-overlay-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-slate-800);
    transition: color var(--transition-fast);
}

.nav-overlay-link:hover {
    color: var(--color-teal-600);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-slate-900);
}

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

.hero.loaded .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(2, 6, 23, 0.65) 0%,
        rgba(2, 6, 23, 0.55) 50%,
        rgba(2, 6, 23, 0.75) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 780px;
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-teal-300);
    margin-bottom: var(--space-lg);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

.hero-accent {
    font-style: italic;
    color: var(--color-teal-200);
}

.hero-sub {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-slate-300);
    max-width: 560px;
    margin: 0 auto var(--space-xl);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 0;
}

.btn-primary {
    background: var(--color-teal-600);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-teal-700);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
}

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

/* --- Scroll Indicator --- */
.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-slate-400);
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-slate-400), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* --- Section Divider --- */
.section-divider {
    padding: 0;
}

.divider-line {
    width: 100%;
    height: 1px;
    background: var(--color-slate-200);
}

/* --- Section Spacing --- */
section {
    padding: var(--space-4xl) 0;
}

/* --- Flavors Section --- */
.flavors {
    background: var(--color-white);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.flavors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.flavor-card {
    background: var(--color-slate-50);
    overflow: hidden;
    transition: transform var(--transition-medium);
}

.flavor-card:hover {
    transform: translateY(-4px);
}

.flavor-image {
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.flavor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.flavor-info {
    padding: var(--space-lg);
}

.flavor-name {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--space-xs);
}

.flavor-desc {
    font-size: 0.9375rem;
    color: var(--color-slate-500);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.flavor-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-teal-700);
    border: 1px solid var(--color-teal-200);
    padding: 0.35rem 0.75rem;
    background: var(--color-teal-50);
}

.flavors-note {
    text-align: center;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--color-slate-400);
}

/* --- About Section --- */
.about {
    background: var(--color-slate-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

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

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

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    border: 1px solid var(--color-teal-200);
    z-index: -1;
}

.about-content {
    padding: var(--space-lg) 0;
}

.about-text {
    margin-bottom: var(--space-2xl);
}

.about-text p {
    font-size: 1.0625rem;
    color: var(--color-slate-600);
    line-height: 1.85;
    margin-bottom: var(--space-md);
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-teal-600);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-slate-500);
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--color-slate-200);
    flex-shrink: 0;
}

/* --- Visit Section --- */
.visit {
    background: var(--color-white);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.visit-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.visit-block h3 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-teal-600);
    margin-bottom: var(--space-sm);
}

.visit-block p {
    font-size: 1.0625rem;
    color: var(--color-slate-700);
    line-height: 1.7;
}

.visit-block a {
    color: var(--color-slate-700);
    transition: color var(--transition-fast);
    border-bottom: 1px solid var(--color-slate-200);
}

.visit-block a:hover {
    color: var(--color-teal-600);
    border-color: var(--color-teal-600);
}

.hours-table {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-slate-100);
}

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

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

.hours-time {
    font-size: 0.9375rem;
    color: var(--color-slate-800);
    font-weight: 400;
}

.visit-map {
    aspect-ratio: 4 / 3;
    background: var(--color-slate-100);
    overflow: hidden;
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(0.5) contrast(1.05);
    transition: filter var(--transition-medium);
}

.visit-map:hover iframe {
    filter: grayscale(0) contrast(1);
}

/* --- Contact Section --- */
.contact {
    background: var(--color-slate-900);
    color: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact .section-eyebrow {
    color: var(--color-teal-400);
}

.contact .section-title {
    color: var(--color-white);
}

.contact-intro {
    font-size: 1.0625rem;
    color: var(--color-slate-400);
    line-height: 1.8;
    max-width: 440px;
}

/* --- Contact Form --- */
.contact-form-wrap {
    background: var(--color-slate-800);
    padding: var(--space-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-slate-400);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--color-white);
    background: var(--color-slate-900);
    border: 1px solid var(--color-slate-700);
    padding: 0.875rem 1rem;
    outline: none;
    transition: border-color var(--transition-fast);
    border-radius: 0;
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-slate-600);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-teal-500);
}

.form-group select {
    color: var(--color-slate-400);
    cursor: pointer;
}

.form-group select option {
    background: var(--color-slate-900);
    color: var(--color-white);
}

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

.form-success {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--color-teal-300);
}

.form-success svg {
    margin: 0 auto var(--space-md);
}

.form-success p {
    font-size: 1rem;
    color: var(--color-slate-300);
    line-height: 1.6;
}

/* --- Footer --- */
.site-footer {
    background: var(--color-slate-950);
    color: var(--color-slate-400);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-top: var(--space-md);
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-slate-500);
    margin-bottom: var(--space-md);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--color-slate-400);
    transition: color var(--transition-fast);
}

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

.footer-contact p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.footer-contact a {
    color: var(--color-slate-400);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-slate-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--color-slate-600);
}

.footer-bottom a {
    color: var(--color-slate-600);
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--color-teal-400);
}

/* --- Scroll Reveal (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 768px) {
    :root {
        --space-4xl: 5rem;
        --space-3xl: 4rem;
    }
    
    .nav {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        padding-top: var(--space-3xl);
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .flavors-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-image-accent {
        display: none;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .about-stats {
        flex-wrap: wrap;
    }
    
    .stat-divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .visit-block {
        padding-bottom: var(--space-md);
        border-bottom: 1px solid var(--color-slate-200);
    }
    
    .visit-block:last-child {
        border-bottom: none;
    }
}
