/* ============================================
   Ice Cream Theory — Stylesheet
   Burgundy + Blush · Clean Minimalist
   ============================================ */

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

:root {
    --color-burgundy: #7B2D3B;
    --color-burgundy-deep: #5C1F2C;
    --color-blush: #F2E0DC;
    --color-blush-light: #FAF5F3;
    --color-cream: #FDF9F7;
    --color-white: #FFFFFF;
    --color-text: #1A1416;
    --color-text-muted: #6B5E60;
    --color-text-light: #9B8C8E;
    --color-line: #E8DDD9;
    --color-line-light: #F0E8E5;
    
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 249, 247, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-line-light);
    transition: var(--transition);
}

.nav.scrolled {
    box-shadow: 0 1px 0 var(--color-line);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: block;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-burgundy);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-burgundy);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--color-burgundy);
}

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

.nav-link--cta {
    color: var(--color-burgundy);
    border: 1px solid var(--color-burgundy);
    padding: 0.5rem 1.25rem;
    transition: all var(--transition);
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    background: var(--color-burgundy);
    color: var(--color-white);
}

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

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--color-text);
    transition: all var(--transition);
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-cream);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

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

.mobile-menu-link {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--color-text);
    transition: color var(--transition);
}

.mobile-menu-link:hover {
    color: var(--color-burgundy);
}

.mobile-menu-link--cta {
    margin-top: var(--space-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-burgundy);
    border: 1px solid var(--color-burgundy);
    padding: 0.75rem 2rem;
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 72px var(--space-md) var(--space-lg);
    background: var(--color-cream);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    width: 100%;
}

.hero-left {
    padding-right: var(--space-md);
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-burgundy);
    margin-bottom: var(--space-md);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

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

.hero-sub {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    max-width: 440px;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

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

.btn--primary:hover {
    background: var(--color-burgundy-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(123, 45, 59, 0.25);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-line);
}

.btn--ghost:hover {
    border-color: var(--color-burgundy);
    color: var(--color-burgundy);
}

/* Hero Image */
.hero-right {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    overflow: hidden;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
}

.hero-image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--color-burgundy);
    opacity: 0.2;
    pointer-events: none;
}

/* Hero Scroll */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

/* ---------- Divider ---------- */
.divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--color-line);
}

.divider-icon {
    font-size: 0.6rem;
    color: var(--color-burgundy);
    opacity: 0.5;
}

/* ---------- Section Eyebrow & Title ---------- */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-burgundy);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* ---------- Menu Section ---------- */
.menu {
    padding: var(--space-2xl) 0;
    background: var(--color-cream);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.menu-card {
    background: var(--color-white);
    border: 1px solid var(--color-line-light);
    padding: var(--space-lg) var(--space-md);
    transition: all var(--transition);
}

.menu-card:hover {
    border-color: var(--color-burgundy);
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(123, 45, 59, 0.08);
}

.menu-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--color-burgundy);
    opacity: 0.8;
}

.menu-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.menu-card-desc {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.menu-card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-card-list li {
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--color-text-muted);
    padding-left: 1rem;
    position: relative;
}

.menu-card-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--color-burgundy);
}

/* ---------- About Section ---------- */
.about {
    padding: var(--space-2xl) 0;
    background: var(--color-blush-light);
}

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

.about-image-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

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

.about-image-main {
    aspect-ratio: 7/8;
}

.about-image-secondary {
    aspect-ratio: 4/3;
}

.about-text-col {
    padding-top: var(--space-md);
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.about-title em {
    font-style: italic;
    color: var(--color-burgundy);
}

.about-divider {
    width: 40px;
    height: 1px;
    background: var(--color-burgundy);
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.about-body {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.about-stats {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-line);
}

.stat {
    flex: 1;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-burgundy);
    margin-bottom: 0.25rem;
}

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

.stat-divider {
    width: 1px;
    background: var(--color-line);
    align-self: stretch;
}

/* ---------- Philosophy Section ---------- */
.philosophy {
    padding: var(--space-2xl) 0;
    background: var(--color-burgundy);
    color: var(--color-white);
}

.philosophy-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-quote {
    color: var(--color-white);
    margin-bottom: var(--space-md);
    opacity: 0.3;
}

.philosophy-text {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    color: var(--color-blush);
    margin-bottom: var(--space-md);
}

.philosophy-attr {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(242, 224, 220, 0.5);
}

/* ---------- Visit Section ---------- */
.visit {
    padding: var(--space-2xl) 0;
    background: var(--color-cream);
}

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

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

.visit-block {
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-line-light);
}

.visit-block:last-child {
    border-bottom: none;
}

.visit-block-title {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-burgundy);
    margin-bottom: var(--space-xs);
}

.visit-block-text {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.visit-block-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text);
    transition: color var(--transition);
}

.visit-block-link:hover {
    color: var(--color-burgundy);
}

.visit-map {
    aspect-ratio: 4/3;
    background: var(--color-line-light);
    overflow: hidden;
    border: 1px solid var(--color-line);
}

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

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

/* ---------- Footer ---------- */
.footer {
    background: var(--color-text);
    color: var(--color-blush);
    padding: var(--space-lg) 0;
}

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

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-blush);
}

.footer-addr {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(242, 224, 220, 0.5);
    margin-top: 0.25rem;
}

.footer-phone {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-blush);
    letter-spacing: 0.05em;
    transition: color var(--transition);
}

.footer-phone:hover {
    color: var(--color-white);
}

.footer-copy {
    font-size: 0.72rem;
    font-weight: 300;
    color: rgba(242, 224, 220, 0.35);
    letter-spacing: 0.05em;
    text-align: right;
}

/* ---------- Reveal Animations ---------- */
[data-reveal] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .hero-left {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-right {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-layout {
        grid-template-columns: 1fr;
    }
    
    .about-image-col {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .visit-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding-top: 100px;
        padding-bottom: var(--space-lg);
    }
    
    .hero-headline {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .hero-image-accent {
        display: none;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
    
    .about-stats {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .stat-divider {
        width: 100%;
        height: 1px;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .footer-copy {
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --space-md: 1.25rem;
        --space-lg: 2.5rem;
        --space-xl: 4rem;
        --space-2xl: 5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

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