/* ============================================
   Casa Amigos Mexican Restaurant
   Classic & Elegant Design System
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Color Palette - Emerald & Cream */
    --color-emerald-900: #064e3b;
    --color-emerald-800: #065f46;
    --color-emerald-700: #047857;
    --color-emerald-600: #059669;
    --color-emerald-500: #10b981;
    --color-emerald-100: #d1fae5;
    --color-emerald-50: #ecfdf5;
    
    --color-cream-900: #1c1917;
    --color-cream-800: #292524;
    --color-cream-700: #44403c;
    --color-cream-600: #57534e;
    --color-cream-500: #78716c;
    --color-cream-400: #a8a29e;
    --color-cream-300: #d6d3d1;
    --color-cream-200: #e7e5e4;
    --color-cream-100: #f5f5f4;
    --color-cream-50: #fafaf9;
    --color-cream-25: #fcfcf9;
    
    --color-accent: #d97706;
    --color-accent-light: #fcd34d;
    
    /* Typography */
    --font-serif: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Lora', 'Georgia', serif;
    
    /* Spacing */
    --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;
    
    /* Layout */
    --max-width: 1200px;
    --nav-height: 80px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-cream-900);
    background-color: var(--color-cream-25);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
}

em {
    font-style: italic;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(250, 250, 249, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-cream-200);
    transition: var(--transition-base);
}

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

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-emerald-800);
}

.logo-icon {
    color: var(--color-emerald-700);
}

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

.nav-link {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-cream-700);
    transition: var(--transition-fast);
    position: relative;
}

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

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

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

.nav-cta {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-cream-50);
    background: var(--color-emerald-800);
    padding: 0.625rem 1.25rem;
    border-radius: 4px;
    transition: var(--transition-base);
}

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

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-cream-800);
    transition: var(--transition-base);
}

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

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

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--color-cream-25);
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

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

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

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--color-cream-900);
    margin-bottom: var(--space-lg);
    line-height: 1.15;
}

.hero-headline em {
    color: var(--color-emerald-700);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-cream-600);
    margin-bottom: var(--space-xl);
    max-width: 540px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 4px;
    transition: var(--transition-base);
}

.btn-primary {
    color: var(--color-cream-50);
    background: var(--color-emerald-800);
}

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

.btn-secondary {
    color: var(--color-emerald-800);
    background: transparent;
    border: 1.5px solid var(--color-emerald-800);
}

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

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

.hero-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--color-cream-600);
}

.hero-detail svg {
    color: var(--color-emerald-600);
    flex-shrink: 0;
}

.hero-detail a {
    color: var(--color-emerald-700);
    font-weight: 500;
    transition: var(--transition-fast);
}

.hero-detail a:hover {
    color: var(--color-emerald-600);
    text-decoration: underline;
}

.hero-right {
    position: relative;
}

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

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

.hero-image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-emerald-200);
    border-radius: 8px;
    z-index: -1;
}

/* ============================================
   Section Shared Styles
   ============================================ */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-emerald-600);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--color-cream-900);
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.section-title em {
    color: var(--color-emerald-700);
}

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

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

/* ============================================
   About Section
   ============================================ */
.about {
    padding: var(--space-4xl) var(--space-lg);
    background: var(--color-cream-50);
}

.about-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-content {
    order: 1;
}

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

.about-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.value-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.value-icon {
    color: var(--color-emerald-600);
    flex-shrink: 0;
}

.value-label {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--color-cream-800);
}

.about-image {
    order: 2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 11/14;
    object-fit: cover;
}

/* ============================================
   Specialties Section
   ============================================ */
.specialties {
    padding: var(--space-4xl) var(--space-lg);
    background: var(--color-cream-25);
}

.specialties-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
}

.specialty-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-lg);
    align-items: start;
    padding: var(--space-lg);
    background: var(--color-cream-50);
    border-radius: 8px;
    transition: var(--transition-base);
}

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

.specialty-image {
    border-radius: 6px;
    overflow: hidden;
}

.specialty-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.specialty-content {
    padding-top: var(--space-xs);
}

.specialty-name {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-cream-900);
    margin-bottom: var(--space-sm);
}

.specialty-description {
    font-size: 0.9375rem;
    color: var(--color-cream-600);
    line-height: 1.75;
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery {
    padding: var(--space-4xl) var(--space-lg);
    background: var(--color-emerald-900);
}

.gallery .section-eyebrow {
    color: var(--color-emerald-400);
}

.gallery .section-title {
    color: var(--color-cream-50);
}

.gallery .section-title em {
    color: var(--color-accent-light);
}

.gallery-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

/* ============================================
   Visit Section
   ============================================ */
.visit {
    padding: var(--space-4xl) var(--space-lg);
    background: var(--color-cream-50);
}

.visit-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.visit-description {
    font-size: 1.0625rem;
    color: var(--color-cream-600);
    margin-bottom: var(--space-2xl);
    line-height: 1.85;
}

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

.visit-detail {
    display: flex;
    gap: var(--space-md);
}

.detail-icon {
    color: var(--color-emerald-600);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.detail-label {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-emerald-700);
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1rem;
    color: var(--color-cream-800);
    line-height: 1.7;
}

.detail-link {
    font-size: 1rem;
    color: var(--color-emerald-700);
    font-weight: 500;
    transition: var(--transition-fast);
}

.detail-link:hover {
    color: var(--color-emerald-600);
    text-decoration: underline;
}

.visit-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.visit-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-cream-900);
    color: var(--color-cream-400);
    padding: var(--space-3xl) var(--space-lg) var(--space-lg);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-brand {
    margin-bottom: var(--space-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-cream-50);
    margin-bottom: var(--space-sm);
}

.footer-logo-icon {
    color: var(--color-emerald-500);
}

.footer-tagline {
    font-size: 1rem;
    color: var(--color-cream-500);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: var(--space-xl);
}

.footer-info a {
    color: var(--color-emerald-400);
    transition: var(--transition-fast);
}

.footer-info a:hover {
    color: var(--color-emerald-300);
    text-decoration: underline;
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-cream-800);
    font-size: 0.875rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        gap: var(--space-2xl);
    }
    
    .specialty-card {
        grid-template-columns: 160px 1fr;
        gap: var(--space-md);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(250, 250, 249, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
        border-bottom: 1px solid var(--color-cream-200);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        font-size: 1.0625rem;
    }
    
    .nav-cta {
        width: 100%;
        text-align: center;
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) + var(--space-xl));
        padding-bottom: var(--space-xl);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .hero-left {
        padding-right: 0;
        order: 2;
    }
    
    .hero-right {
        order: 1;
    }
    
    .hero-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-image-accent {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-details {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    /* About */
    .about-container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-content {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    .about-image img {
        aspect-ratio: 4/3;
    }
    
    .about-values {
        grid-template-columns: 1fr;
    }
    
    /* Specialties */
    .specialties-grid {
        grid-template-columns: 1fr;
    }
    
    .specialty-card {
        grid-template-columns: 1fr;
    }
    
    .specialty-image {
        max-height: 250px;
    }
    
    .specialty-image img {
        aspect-ratio: 16/9;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        aspect-ratio: 16/9;
    }
    
    /* Visit */
    .visit-container {
        grid-template-columns: 1fr;
    }
    
    .visit-map iframe {
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .specialty-name {
        font-size: 1.25rem;
    }
}

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

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure content is visible without JS */
@supports not (animation: none) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}
