/* ============================================
   Ita-Mex — Custom Styles
   Terracotta + Sand · Fresh & Airy
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-terracotta: #C0623A;
    --color-terracotta-light: #D4856A;
    --color-terracotta-dark: #A34D2B;
    --color-sand: #F5EDE4;
    --color-sand-light: #FAF6F1;
    --color-sand-dark: #E8D5C4;
    --color-cream: #FFFDF9;
    --color-text: #3D2B1F;
    --color-text-light: #7A6558;
    --color-text-muted: #A89888;
    --color-white: #FFFFFF;
    --color-border: #EDE3D8;
    
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Lora', Georgia, serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px rgba(61, 43, 31, 0.06), 0 1px 2px rgba(61, 43, 31, 0.04);
    --shadow-md: 0 4px 16px rgba(61, 43, 31, 0.08), 0 2px 4px rgba(61, 43, 31, 0.04);
    --shadow-lg: 0 12px 40px rgba(61, 43, 31, 0.1), 0 4px 12px rgba(61, 43, 31, 0.06);
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

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

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }

p {
    color: var(--color-text-light);
}

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

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 253, 249, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    gap: var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-terracotta);
    transition: opacity var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.logo-text {
    letter-spacing: -0.02em;
}

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

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-light);
    transition: color var(--transition);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-terracotta);
    border-radius: 1px;
    transition: width var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--color-terracotta);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8125rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--color-terracotta-dark);
    border-color: var(--color-terracotta-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--color-terracotta);
    border-color: var(--color-terracotta);
}

.btn-secondary:hover {
    background: var(--color-terracotta);
    color: var(--color-white);
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

/* --- Mobile Nav Toggle --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--color-terracotta);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: var(--space-3xl) var(--space-md);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, 
            rgba(255, 253, 249, 0.95) 0%,
            rgba(245, 237, 228, 0.88) 50%,
            rgba(255, 253, 249, 0.92) 100%
        ),
        url('https://images.pexels.com/photos/2403392/pexels-photo-2403392.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(192, 98, 58, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(232, 213, 196, 0.3) 0%, transparent 50%);
}

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

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

.hero-title {
    margin-bottom: var(--space-md);
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.hero-title::first-letter {
    color: var(--color-terracotta);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* --- Features --- */
.features {
    padding: var(--space-2xl) 0;
    background: var(--color-sand-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--color-border);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-sand);
    border-radius: var(--radius-md);
}

.feature-card h3 {
    margin-bottom: var(--space-xs);
    font-family: var(--font-heading);
}

.feature-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* --- Section Shared --- */
.section-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: var(--space-sm);
}

.section-title {
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    max-width: 640px;
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

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

.menu-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.menu-category h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--color-terracotta);
}

.menu-category-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-md);
    aspect-ratio: 4/3;
}

.menu-category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.menu-category-img:hover img {
    transform: scale(1.04);
}

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

.menu-items li {
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.menu-items li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.item-name {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 0.1875rem;
}

.item-desc {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.menu-note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: var(--space-md);
}

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

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -2rem;
    right: -1rem;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-white);
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.about-content p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

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

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-terracotta);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

.visit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.visit-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.visit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.visit-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-sand);
    border-radius: var(--radius-md);
}

.visit-card h3 {
    font-family: var(--font-heading);
    margin-bottom: var(--space-xs);
}

.visit-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.visit-card a {
    color: var(--color-terracotta);
    font-weight: 500;
    transition: color var(--transition);
}

.visit-card a:hover {
    color: var(--color-terracotta-dark);
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* --- CTA --- */
.cta {
    padding: var(--space-2xl) 0;
    background: 
        linear-gradient(135deg, var(--color-sand) 0%, var(--color-sand-light) 50%, var(--color-sand) 100%);
}

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

.cta-content .section-title {
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
}

/* --- Form --- */
.cta-form-wrapper {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-sand-light);
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-terracotta);
    box-shadow: 0 0 0 3px rgba(192, 98, 58, 0.1);
}

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

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

.form-success {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
}

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

.form-success h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-terracotta);
    margin-bottom: var(--space-xs);
}

.form-success p {
    color: var(--color-text-light);
}

/* --- Footer --- */
.site-footer {
    background: var(--color-text);
    color: var(--color-sand-dark);
    padding: var(--space-2xl) 0 var(--space-md);
}

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

.footer-brand .logo {
    color: var(--color-sand-dark);
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-sand-dark);
    margin-bottom: var(--space-sm);
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-sand-dark);
}

.footer-contact li:not(:last-child) {
    margin-bottom: 0.25rem;
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(232, 213, 196, 0.15);
    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-text-muted);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .about-grid,
    .cta-inner {
        grid-template-columns: 1fr;
    }
    
    .about-images {
        order: -1;
        max-width: 500px;
    }
    
    .about-img-secondary {
        right: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-cream);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem var(--space-lg) var(--space-lg);
        gap: var(--space-md);
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
        z-index: 999;
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
    }
    
    .nav-links .btn {
        margin-top: var(--space-sm);
    }
    
    .hero {
        min-height: 90vh;
        padding: var(--space-2xl) var(--space-md);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .menu-categories {
        grid-template-columns: 1fr;
    }
    
    .about-img-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin-top: var(--space-sm);
    }
    
    .about-images {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .about-img-main {
        aspect-ratio: 4/3;
    }
    
    .about-img-main img,
    .about-img-secondary img {
        height: auto;
    }
    
    .about-stats {
        flex-wrap: wrap;
        gap: var(--space-md);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .feature-card {
        padding: var(--space-md);
    }
    
    .cta-form-wrapper {
        padding: var(--space-md);
    }
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
