/* ============================================
   Village Cafe — Arkport
   Clean Minimalist Design System
   ============================================ */

/* CSS Custom Properties */
:root {
    --color-terracotta: #C1666B;
    --color-terracotta-deep: #A85559;
    --color-terracotta-light: #D49195;
    --color-sand: #E8D5C4;
    --color-sand-light: #F5EDE4;
    --color-sand-deep: #D4C0AD;
    --color-cream: #FDF8F4;
    --color-white: #FFFFFF;
    --color-charcoal: #2C2C2C;
    --color-text: #3D3D3D;
    --color-text-light: #6B6B6B;
    --color-text-muted: #9A9A9A;
    --color-line: #E8E0D8;
    --color-line-light: #F0E8E0;
    
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text);
    background-color: var(--color-cream);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* Container */
.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, 248, 244, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-base), background var(--transition-base);
}

.nav.scrolled {
    border-bottom-color: var(--color-line);
    background: rgba(253, 248, 244, 0.97);
}

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

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

.nav-logo-mark {
    width: 32px;
    height: 32px;
    background: var(--color-terracotta);
    border-radius: 50%;
    position: relative;
    opacity: 0.9;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-charcoal);
    letter-spacing: -0.01em;
}

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

.nav-link {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-light);
    position: relative;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

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

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

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

.nav-link--cta {
    padding: 8px 20px;
    border: 1px solid var(--color-terracotta);
    border-radius: 100px;
    color: var(--color-terracotta);
    transition: all var(--transition-fast);
}

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

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

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-line {
    width: 22px;
    height: 1.5px;
    background: var(--color-charcoal);
    transition: all var(--transition-base);
    transform-origin: center;
}

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

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

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

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

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

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--color-charcoal);
    padding: 8px;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.mobile-menu-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-charcoal);
    letter-spacing: -0.01em;
    transition: color var(--transition-fast);
}

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px var(--space-md) var(--space-lg);
    position: relative;
    overflow: hidden;
    background: var(--color-cream);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: radial-gradient(circle at 1px 1px, var(--color-terracotta) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

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

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--color-charcoal);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

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

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--color-text-light);
    max-width: 560px;
    margin: 0 auto var(--space-lg);
    line-height: 1.8;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 100px;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn--primary {
    background: var(--color-terracotta);
    color: var(--color-white);
    border: 1px solid var(--color-terracotta);
}

.btn--primary:hover {
    background: var(--color-terracotta-deep);
    border-color: var(--color-terracotta-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(193, 102, 107, 0.25);
}

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

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

.btn--full {
    width: 100%;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

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

/* ============================================
   Section Dividers
   ============================================ */
.section-divider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-lg);
}

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

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--color-charcoal);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text-light);
    line-height: 1.8;
}

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

.menu-categories {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.menu-cat {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: 10px 24px;
    border: 1px solid var(--color-line);
    border-radius: 100px;
    transition: all var(--transition-fast);
}

.menu-cat:hover {
    color: var(--color-terracotta);
    border-color: var(--color-terracotta-light);
}

.menu-cat.active {
    color: var(--color-white);
    background: var(--color-terracotta);
    border-color: var(--color-terracotta);
}

.menu-grid {
    max-width: 800px;
    margin: 0 auto;
}

.menu-panel {
    display: none;
}

.menu-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-line-light);
    align-items: flex-start;
}

.menu-item:first-child {
    border-top: 1px solid var(--color-line-light);
}

.menu-item-mark {
    width: 6px;
    height: 6px;
    background: var(--color-terracotta);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 10px;
    opacity: 0.6;
}

.menu-item-name {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--color-charcoal);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.menu-item-desc {
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--color-text-light);
    line-height: 1.7;
}

.menu-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: var(--space-md);
    font-style: italic;
}

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

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

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
}

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

.about-image:hover img {
    transform: scale(1.03);
}

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

.about-text {
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text-light);
    line-height: 1.9;
    margin-bottom: var(--space-md);
}

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

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

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-terracotta);
    line-height: 1;
}

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

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

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: var(--space-sm);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

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

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item--large {
    grid-column: span 5;
    grid-row: span 2;
}

.gallery-item:nth-child(2) {
    grid-column: span 4;
}

.gallery-item:nth-child(3) {
    grid-column: span 3;
}

.gallery-item:nth-child(4) {
    grid-column: span 4;
}

.gallery-item:nth-child(5) {
    grid-column: span 4;
}

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

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

.visit-info {
    padding: var(--space-md) 0;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.visit-detail {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.visit-detail-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    color: var(--color-terracotta);
    flex-shrink: 0;
}

.visit-detail-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.visit-detail p {
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.7;
}

.visit-detail a {
    color: var(--color-terracotta);
    transition: color var(--transition-fast);
}

.visit-detail a:hover {
    color: var(--color-terracotta-deep);
    text-decoration: underline;
}

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

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

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

.contact-text {
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-top: var(--space-sm);
}

.contact-form-wrapper {
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

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

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.form-input,
.form-textarea {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--color-charcoal);
    background: var(--color-cream);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
    width: 100%;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--color-terracotta);
    box-shadow: 0 0 0 3px rgba(193, 102, 107, 0.1);
}

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    animation: fadeIn 0.5s ease;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    color: var(--color-terracotta);
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--color-charcoal);
}

.form-success p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    font-weight: 300;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-charcoal);
    color: var(--color-sand);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(232, 213, 196, 0.15);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-sm);
    text-decoration: none;
}

.footer-logo-mark {
    width: 28px;
    height: 28px;
    background: var(--color-terracotta);
    border-radius: 50%;
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-white);
}

.footer-tagline {
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--color-sand-deep);
    line-height: 1.7;
    max-width: 280px;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-sand-deep);
    margin-bottom: var(--space-sm);
}

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

.footer-links a {
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--color-sand);
    transition: color var(--transition-fast);
}

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

.footer-contact p {
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--color-sand);
    line-height: 1.7;
    margin-bottom: 4px;
}

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

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

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

.footer-bottom p {
    font-size: 0.8125rem;
    font-weight: 300;
    color: var(--color-text-muted);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .about-grid,
    .visit-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        aspect-ratio: 16/9;
    }
    
    .gallery-grid {
        grid-template-rows: repeat(3, 220px);
    }
    
    .gallery-item--large {
        grid-column: span 7;
        grid-row: span 1;
    }
    
    .gallery-item:nth-child(2) {
        grid-column: span 5;
    }
    
    .gallery-item:nth-child(3) {
        grid-column: span 5;
    }
    
    .gallery-item:nth-child(4) {
        grid-column: span 5;
    }
    
    .gallery-item:nth-child(5) {
        grid-column: span 7;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px var(--space-sm) var(--space-lg);
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-scroll {
        display: none;
    }
    
    .menu-categories {
        gap: 8px;
    }
    
    .menu-cat {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    
    .menu-item {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .menu-item-mark {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item--large {
        grid-column: span 2;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .gallery-item:nth-child(n) {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .contact-form-wrapper {
        padding: var(--space-md);
    }
    
    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .stat-divider {
        display: none;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item--large {
        grid-column: span 1;
    }
}

/* ============================================
   Animations
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .hero-content > * {
        animation: heroReveal 0.8s ease forwards;
        opacity: 0;
        transform: translateY(20px);
    }
    
    .hero-content > *:nth-child(1) { animation-delay: 0.1s; }
    .hero-content > *:nth-child(2) { animation-delay: 0.25s; }
    .hero-content > *:nth-child(3) { animation-delay: 0.4s; }
    .hero-content > *:nth-child(4) { animation-delay: 0.55s; }
    
    @keyframes heroReveal {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
