/* ========================================
   El Garato Restaurant - Styles
   Classic & Elegant Design
   Color Palette: Plum + Amber
======================================== */

/* CSS Custom Properties */
:root {
    --plum-50: #FDF6FA;
    --plum-100: #F9E8F0;
    --plum-200: #F2D0E0;
    --plum-300: #E8AFCA;
    --plum-400: #D785B0;
    --plum-500: #C16194;
    --plum-600: #A84578;
    --plum-700: #8B3462;
    --plum-800: #722B52;
    --plum-900: #5E2545;
    --plum-950: #341024;
    
    --amber-50: #FFFBF0;
    --amber-100: #FFF5D6;
    --amber-200: #FFE9A8;
    --amber-300: #FFD870;
    --amber-400: #FFC440;
    --amber-500: #E5A823;
    --amber-600: #C48A15;
    --amber-700: #A06C0F;
    --amber-800: #80550D;
    --amber-900: #6A450E;
    --amber-950: #3D2607;
    
    --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;
    --neutral-950: #121212;
    
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Lato', 'Segoe UI', system-ui, sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--neutral-800);
    background-color: var(--neutral-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--plum-900);
}

.section-tag {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber-600);
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
    color: var(--plum-900);
}

.section-lead {
    font-size: 1.125rem;
    color: var(--neutral-600);
    max-width: 640px;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--amber-500);
    color: var(--neutral-950);
}

.btn-primary:hover {
    background-color: var(--amber-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--neutral-100);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* ========================================
   Navigation
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(52, 16, 36, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.2);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.logo-mark {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--amber-400);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--amber-400);
    border-radius: 4px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--neutral-100);
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--neutral-300);
    letter-spacing: 0.03em;
}

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

.nav-cta {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: var(--amber-500);
    color: var(--neutral-950);
    border-radius: 4px;
}

.nav-cta:hover {
    background-color: var(--amber-400);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--neutral-200);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--neutral-200);
    transition: var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* ========================================
   Hero Section
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--plum-950);
    background-image: url('https://images.pexels.com/photos/7973622/pexels-photo-7973622.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(52, 16, 36, 0.92) 0%,
        rgba(94, 37, 69, 0.85) 50%,
        rgba(52, 16, 36, 0.92) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: var(--spacing-3xl) var(--spacing-lg);
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-400);
    margin-bottom: var(--spacing-md);
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 500;
    color: var(--neutral-100);
    margin-bottom: var(--spacing-md);
    line-height: 1.15;
}

.hero-subtext {
    font-size: 1.125rem;
    color: var(--plum-200);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

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

.hero-scroll {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--plum-300);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--amber-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.8); }
}

/* ========================================
   About Section
======================================== */
.about {
    padding: var(--spacing-3xl) 0;
    background-color: var(--neutral-50);
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
}

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background-color: var(--amber-100);
    border-radius: 4px;
    z-index: -1;
}

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

.about-content .section-lead {
    margin-bottom: var(--spacing-md);
}

.about-content p {
    color: var(--neutral-600);
    margin-bottom: var(--spacing-lg);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--amber-500);
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--plum-800);
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--neutral-600);
    margin: 0;
}

/* ========================================
   Cuisine Section
======================================== */
.cuisine {
    padding: var(--spacing-3xl) 0;
    background-color: var(--plum-950);
}

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

.cuisine .section-lead {
    color: var(--plum-200);
    margin: 0 auto;
}

.cuisine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.cuisine-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(212, 168, 67, 0.15);
    transition: var(--transition);
}

.cuisine-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(212, 168, 67, 0.3);
}

.cuisine-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.cuisine-card-content {
    padding: var(--spacing-lg);
}

.cuisine-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--amber-400);
    margin-bottom: var(--spacing-sm);
}

.cuisine-card-content p {
    font-size: 0.95rem;
    color: var(--plum-200);
    line-height: 1.7;
}

/* ========================================
   Gallery Section
======================================== */
.gallery {
    padding: var(--spacing-3xl) 0;
    background-color: var(--neutral-100);
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(52, 16, 36, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-lg);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--neutral-100);
}

/* ========================================
   Visit Section
======================================== */
.visit {
    padding: var(--spacing-3xl) 0;
    background-color: var(--neutral-50);
}

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

.visit-info {
    padding: var(--spacing-lg) 0;
}

.visit-info .section-lead {
    margin-bottom: var(--spacing-xl);
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

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

.visit-icon {
    width: 24px;
    height: 24px;
    color: var(--amber-500);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--plum-800);
    margin-bottom: 4px;
}

.visit-detail p {
    color: var(--neutral-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

.visit-detail a {
    color: var(--amber-600);
    font-weight: 500;
}

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

.visit-map {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
}

/* ========================================
   Footer
======================================== */
.footer {
    background-color: var(--plum-950);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

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

.footer-brand .logo-mark {
    margin-bottom: var(--spacing-md);
}

.footer-brand p {
    color: var(--plum-300);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--amber-400);
    margin-bottom: var(--spacing-md);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--plum-300);
    font-size: 0.95rem;
}

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

.footer-contact p {
    color: var(--plum-300);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-xs);
}

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

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

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(212, 168, 67, 0.15);
    text-align: center;
}

.footer-bottom p {
    color: var(--plum-400);
    font-size: 0.875rem;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1024px) {
    .about-grid {
        gap: var(--spacing-2xl);
    }
    
    .cuisine-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--plum-950);
        flex-direction: column;
        justify-content: center;
        gap: var(--spacing-lg);
        transition: right 0.3s ease;
        box-shadow: var(--shadow-xl);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-toggle.active .hamburger {
        background-color: transparent;
    }
    
    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }
    
    .hero-headline {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .about-image img {
        height: 350px;
    }
    
    .about-accent {
        display: none;
    }
    
    .cuisine-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-content {
        padding: var(--spacing-2xl) var(--spacing-md);
    }
    
    .gallery-item img {
        height: 250px;
    }
}

/* ========================================
   Accessibility
======================================== */
@media (prefers-reduced-motion: no-preference) {
    .btn-primary:hover {
        transform: translateY(-2px);
    }
}

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

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--amber-400);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--plum-900);
    color: var(--neutral-100);
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}
