/* ============================================
   HACIENDA MECHE — Classic Elegant Restaurant
   Burgundy & Blush Palette
   ============================================ */

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

:root {
    --burgundy: #722F37;
    --burgundy-deep: #5A252C;
    --burgundy-light: #8B3A42;
    --blush: #F5E6E0;
    --blush-light: #FBF4F1;
    --blush-muted: #E8D5CE;
    --cream: #FDF8F5;
    --charcoal: #2C2424;
    --charcoal-light: #4A3F3F;
    --gold: #C4A265;
    --gold-light: #D4B87A;
    --white: #FFFFFF;
    --text-dark: #2C2424;
    --text-medium: #5A4A4A;
    --text-light: #8A7A7A;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

a:hover {
    color: var(--burgundy-light);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--charcoal);
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: 1.5rem;
    color: var(--charcoal);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 500px;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--burgundy-deep);
    border-color: var(--burgundy-deep);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(114, 47, 55, 0.3);
}

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

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

.btn-full {
    width: 100%;
    text-align: center;
}

/* ---------- HEADER ---------- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--blush-muted);
    transition: all var(--transition);
}

#header.scrolled {
    box-shadow: 0 2px 30px rgba(44, 36, 36, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--burgundy);
    letter-spacing: 0.02em;
}

.logo-tagline {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--charcoal);
    transition: all var(--transition);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--charcoal);
    position: relative;
    padding-bottom: 4px;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

/* ---------- HERO ---------- */
.hero {
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--blush-light) 50%, var(--blush) 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    padding-right: 2rem;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

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

.hero-subhead {
    font-size: 1.15rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 700px;
}

.hero-image-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    height: 85%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(44, 36, 36, 0.15);
}

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

.hero-image-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55%;
    height: 55%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(44, 36, 36, 0.2);
    border: 6px solid var(--cream);
}

.hero-image-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Decorative element */
.hero-visual::before {
    content: '';
    position: absolute;
    top: -20px;
    right: 20%;
    width: 120px;
    height: 120px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    opacity: 0.4;
}

/* ---------- ABOUT ---------- */
.about {
    padding: 8rem 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-visual img {
    border-radius: 4px;
    box-shadow: 0 25px 60px rgba(44, 36, 36, 0.12);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-visual::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    border: 2px solid var(--blush-muted);
    border-radius: 4px;
    z-index: -1;
}

.about-content .lead {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--burgundy);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-medium);
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--blush-muted);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--charcoal);
}

.feature-item svg {
    color: var(--burgundy);
    flex-shrink: 0;
}

/* ---------- MENU ---------- */
.menu {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--cream) 0%, var(--blush-light) 100%);
}

.menu-header {
    text-align: center;
    margin-bottom: 4rem;
}

.menu-header .section-subtitle {
    margin: 0 auto;
}

.menu-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.menu-category {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(44, 36, 36, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}

.menu-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(44, 36, 36, 0.1);
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--blush-muted);
    color: var(--burgundy);
}

.menu-list {
    list-style: none;
}

.menu-item {
    margin-bottom: 1.75rem;
}

.menu-item:last-child {
    margin-bottom: 0;
}

.item-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.item-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
}

.item-dots {
    flex: 1;
    border-bottom: 1px dotted var(--blush-muted);
    min-width: 2rem;
    margin-bottom: 4px;
}

.item-description {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.5;
}

.menu-note {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    background: var(--white);
    border-radius: 4px;
    border-left: 3px solid var(--burgundy);
}

.menu-note p {
    font-size: 0.95rem;
    color: var(--text-medium);
    font-style: italic;
}

/* ---------- GALLERY ---------- */
.gallery {
    padding: 8rem 0;
    background-color: var(--white);
}

.gallery-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44, 36, 36, 0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

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

.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--tall {
    grid-column: span 4;
    grid-row: span 2;
}

/* ---------- CONTACT ---------- */
.contact {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--burgundy-deep) 0%, var(--burgundy) 50%, var(--burgundy-light) 100%);
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact .section-eyebrow {
    color: var(--gold-light);
}

.contact .section-title {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.contact-intro {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-item svg {
    color: var(--gold-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.4rem;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.9);
}

.contact-item a:hover {
    color: var(--white);
}

.hours {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hours h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1rem;
}

.hours p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--charcoal);
}

.form-group input,
.form-group textarea {
    padding: 0.9rem 1rem;
    border: 1px solid var(--blush-muted);
    border-radius: 2px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--charcoal);
    background: var(--blush-light);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--burgundy);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.1);
}

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

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
    color: var(--burgundy);
}

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

.form-success p {
    font-size: 0.95rem;
    color: var(--text-medium);
}

/* ---------- FOOTER ---------- */
footer {
    background-color: var(--charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1.25rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

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

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ---------- SCROLL ANIMATIONS ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 3rem;
    }
    
    .hero-visual {
        height: 550px;
    }
    
    .about-grid {
        gap: 3rem;
    }
    
    .menu-categories {
        gap: 2rem;
    }
    
    .contact-grid {
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        order: 2;
    }
    
    .hero-subhead {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        order: 1;
        height: 450px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .menu-categories {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item--large,
    .gallery-item--tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -10px 0 40px rgba(44, 36, 36, 0.15);
        transition: right var(--transition);
        z-index: 999;
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 4rem;
    }
    
    .hero-visual {
        height: 350px;
    }
    
    .hero-image-main {
        width: 80%;
        height: 80%;
    }
    
    .hero-image-accent {
        width: 55%;
        height: 55%;
    }
    
    .about,
    .menu,
    .gallery,
    .contact {
        padding: 5rem 0;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .hero-headline {
        font-size: 2.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-category {
        padding: 1.75rem;
    }
}

/* Mobile overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 36, 36, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 998;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}
