
/* =========================================================
   RAICES BARRIO
   Modern Cocina de Abuela
========================================================= */

:root {
    --cream: #f4ead8;
    --paper: #eadcc3;
    --brown: #241813;
    --brown-light: #49342a;
    --terracotta: #b84d32;
    --terracotta-dark: #8f3926;
    --yellow: #d9a441;
    --white: #fffaf0;

    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
    --typewriter: "Special Elite", monospace;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--brown);
    font-family: var(--sans);
    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;
}

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


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 5vw;
    color: var(--white);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    max-width: none;
    margin: 0;
}

/* Keep logo firmly on the left */
.logo {
    display: block;
    width: 150px;
    flex-shrink: 0;
    margin-right: auto;
}

.logo img {
    display: block;
    filter: none;
    width: 150px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;

    margin-left: auto;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.main-nav a {
    position: relative;
}

.main-nav a:not(.nav-order)::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

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

.nav-order {
    padding: 12px 21px;
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 100px;
    transition: 0.3s ease;
}

.nav-order:hover {
    background: var(--white);
    color: var(--brown);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 0;
    color: white;
    font-size: 25px;
}



/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 150px 8vw 100px;
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(20, 11, 7, 0.88) 0%,
            rgba(20, 11, 7, 0.62) 42%,
            rgba(20, 11, 7, 0.22) 100%
        ),
        url("images/hero-food.jpg") center / cover no-repeat;

    transform: scale(1.02);
    animation: heroZoom 12s ease-out forwards;
}

@keyframes heroZoom {
    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1.02);
    }
}

.hero-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.12;

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.6'/%3E%3C/svg%3E");
}

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

.eyebrow,
.section-label {
    display: block;
    margin-bottom: 22px;
    font-family: var(--typewriter);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "✦";
    margin-right: 10px;
    color: var(--yellow);
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(64px, 8vw, 125px);
    line-height: 0.88;
    letter-spacing: -0.055em;
    max-width: 900px;
}

.hero h1 em,
.story h2 em,
.food-heading h2 em,
.visit h2 em {
    color: var(--yellow);
    font-weight: 500;
}

.hero-description {
    max-width: 530px;
    margin-top: 34px;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,0.84);
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 40px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

.button:hover {
    transform: translateY(-3px);
}

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

.button-primary:hover {
    background: var(--terracotta-dark);
}

.button-secondary {
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
}

.button-secondary:hover {
    background: white;
    color: var(--brown);
}

.hero-note {
    position: absolute;
    z-index: 3;
    bottom: 38px;
    right: 5vw;

    display: flex;
    align-items: center;
    gap: 15px;

    font-family: var(--typewriter);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.75;
}


/* =========================================================
   INTRO STRIP
========================================================= */

.intro-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--terracotta);
    color: var(--white);
}

.intro-item {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 95px;
    padding: 20px 30px;
    border-right: 1px solid rgba(255,255,255,0.2);
    font-family: var(--serif);
    font-size: 18px;
}

.intro-number {
    font-family: var(--typewriter);
    font-size: 11px;
    opacity: 0.65;
}


/* =========================================================
   STORY
========================================================= */

.story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9vw;
    align-items: center;

    max-width: 1350px;
    margin: auto;
    padding: 150px 6vw;
}
.story-image {
    position: relative;
    width: 100%;
}

.image-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--paper);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.image-frame:hover img {
    transform: scale(1.04);
}

.stamp {
    position: absolute;
    right: -35px;
    bottom: 35px;

    width: 130px;
    height: 130px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    border: 2px solid var(--brown);
    border-radius: 50%;

    background: var(--yellow);
    color: var(--brown);

    font-family: var(--typewriter);
    font-size: 11px;
    letter-spacing: 0.1em;

    transform: rotate(10deg);
}

.stamp strong {
    margin: 8px 0;
    font-size: 20px;
}

.story-content {
    max-width: 570px;
}

.section-label {
    color: var(--terracotta);
}

.story h2,
.food-heading h2,
.visit h2 {
    font-family: var(--serif);
    font-size: clamp(50px, 6vw, 85px);
    line-height: 0.95;
    letter-spacing: -0.045em;
}

.story h2 em,
.food-heading h2 em,
.visit h2 em {
    color: var(--terracotta);
}

.story p {
    margin-top: 25px;
    color: var(--brown-light);
    font-size: 16px;
    line-height: 1.8;
}

.story .lead {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.55;
    color: var(--brown);
}

.text-link {
    display: inline-block;
    margin-top: 32px;
    padding-bottom: 7px;
    border-bottom: 2px solid var(--terracotta);
    color: var(--terracotta);
    font-weight: 700;
}


/* =========================================================
   FOOD
========================================================= */

.food-section {
    padding: 120px 6vw 150px;
    background: var(--paper);
}

.food-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    max-width: 1100px;
    margin: auto;
    margin-bottom: 60px;
}

.button-dark {
    background: var(--brown);
    color: var(--white);
}

.button-dark:hover {
    background: var(--terracotta);
}

/* Three equal food cards */
.food-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
    max-width: 1100px;
    margin: auto;
}

.food-card {
    overflow: hidden;
}

/* Small square image */
.food-image {
    width: 240px;
    height: 240px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--cream);
}

/* Make the "large" card the same size */
.food-card-large .food-image {
    width: 240px;
    height: 240px;
    aspect-ratio: 1 / 1;
}

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

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

/* Text underneath image */
.food-card-content {
    max-width: 240px;
    margin: 0 auto;
    padding: 23px 4px;
}

.food-card-content span {
    font-family: var(--typewriter);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--terracotta);
}

.food-card-content h3 {
    margin-top: 9px;
    font-family: var(--serif);
    font-size: 27px;
}

.food-card-content p {
    margin-top: 6px;
    color: var(--brown-light);
    font-size: 14px;
    line-height: 1.5;
}



/* =========================================================
   QUOTE
========================================================= */

.quote-section {
    padding: 150px 10vw;
    background: var(--brown);
    color: var(--cream);
    text-align: center;
}

.quote-mark {
    color: var(--yellow);
    font-family: Georgia, serif;
    font-size: 100px;
    line-height: 0.5;
}

.quote-section blockquote {
    max-width: 950px;
    margin: 30px auto;
    font-family: var(--serif);
    font-size: clamp(35px, 5vw, 68px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.quote-credit {
    font-family: var(--typewriter);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--yellow);
}


/* =========================================================
   VISIT / CTA
========================================================= */

.visit {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding: 100px 8vw;
    overflow: hidden;
    color: var(--white);
}

.visit-background {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(36, 24, 19, 0.72),
            rgba(36, 24, 19, 0.72)
        ),
        url("images/restaurant.jpg") center / cover no-repeat;
}

.visit-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.visit h2 {
    font-size: clamp(65px, 8vw, 110px);
}

.visit h2 em {
    color: var(--yellow);
}

.visit p {
    max-width: 450px;
    margin-top: 30px;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
}

.visit-buttons {
    display: flex;
    gap: 14px;
    margin-top: 38px;
}

.button-outline {
    border: 1px solid rgba(255,255,255,0.6);
    color: white;
}

.button-outline:hover {
    background: white;
    color: var(--brown);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding: 70px 6vw 25px;
    background: var(--cream);
}

.footer-brand img {
    width: 180px;
}

.footer-brand p {
    margin-top: 15px;
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 100px;
    margin-top: -80px;
}

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

.footer-links span {
    margin-bottom: 8px;
    font-family: var(--typewriter);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--terracotta);
}

.footer-links a {
    font-size: 14px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
    padding-top: 20px;
    border-top: 1px solid rgba(36,24,19,0.2);

    font-family: var(--typewriter);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .site-header {
        padding: 18px 5vw;
    }

    .logo {
        width: 120px;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        height: 420px;
        min-height: 0;
        padding: 0 7vw;
        align-items: center;
    }

    .hero-content {
        margin-top: 20px;
    }

    .hero h1 {
        font-size: clamp(52px, 15vw, 82px);
        line-height: 0.9;
    }

    .hero-description {
        margin-top: 25px;
        font-size: 16px;
        line-height: 1.6;
    }

    .hero-buttons {
        margin-top: 30px;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-note {
        display: none;
    }
}

    .intro-strip {
        grid-template-columns: 1fr 1fr;
    }

    .intro-item {
        min-height: 80px;
        padding: 18px;
        font-size: 15px;
    }

    .story {
        grid-template-columns: 1fr;
        padding: 90px 7vw;
        gap: 70px;
    }

    .stamp {
        right: -15px;
    }



/* =========================================================
   MENU PAGE
   Cocina de Abuela
========================================================= */

.menu-page {
    background: var(--cream);
    color: var(--brown);
}


/* =========================================================
   MENU HEADER
========================================================= */

.menu-header {
    position: relative;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 28px 6vw;

    border-bottom: 1px solid rgba(36, 24, 19, 0.15);
}

.menu-logo {
    width: 50px;
}

.menu-logo img {
    width: 50px;
    height: auto;
}

.back-home {
    font-family: var(--typewriter);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;

    color: var(--terracotta);

    transition: color 0.3s ease;
}

.back-home:hover {
    color: var(--brown);
}


/* =========================================================
   MENU INTRO
========================================================= */

.menu-intro {
    max-width: 1000px;
    margin: auto;

    padding: 110px 7vw 90px;

    text-align: center;
}

.menu-label {
    display: block;

    margin-bottom: 25px;

    font-family: var(--typewriter);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;

    color: var(--terracotta);
}

.menu-intro h1 {
    font-family: var(--serif);
    font-size: clamp(60px, 8vw, 110px);
    line-height: 0.9;
    letter-spacing: -0.055em;
}

.menu-intro h1 em {
    color: var(--terracotta);
    font-weight: 500;
}

.menu-intro p {
    max-width: 520px;
    margin: 30px auto 0;

    font-size: 17px;
    line-height: 1.7;

    color: var(--brown-light);
}


/* =========================================================
   MENU GALLERY
========================================================= */

.menu-gallery {
    padding: 30px 6vw 150px;

    background: var(--paper);
}

.menu-gallery-heading {
    display: flex;
    justify-content: space-between;

    max-width: 1200px;
    margin: 0 auto 45px;

    font-family: var(--typewriter);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;

    color: var(--terracotta);
}


/* =========================================================
   MENU PAGES
========================================================= */

.menu-pages {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 55px;

    max-width: 900px;
    margin: auto;
}

.menu-page-image {
    position: relative;

    width: 100%;
    max-width: 800px;

    padding: 12px;

    background: var(--white);

    box-shadow:
        0 15px 35px rgba(36, 24, 19, 0.12),
        0 2px 5px rgba(36, 24, 19, 0.08);

    transform: rotate(-0.4deg);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.menu-page-image:nth-child(2) {
    transform: rotate(0.5deg);
}

.menu-page-image:nth-child(3) {
    transform: rotate(-0.3deg);
}

.menu-page-image:hover {
    transform: translateY(-5px) rotate(0deg);

    box-shadow:
        0 22px 45px rgba(36, 24, 19, 0.16),
        0 3px 8px rgba(36, 24, 19, 0.08);
}

.menu-page-image img {
    width: 100%;
    height: auto;

    display: block;
}

.page-number {
    position: absolute;

    top: -15px;
    left: -15px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--yellow);
    color: var(--brown);

    font-family: var(--typewriter);
    font-size: 10px;

    transform: rotate(-8deg);

    box-shadow: 0 5px 12px rgba(36, 24, 19, 0.15);
}


/* =========================================================
   MENU CTA
========================================================= */

.menu-cta {
    padding: 140px 7vw;

    text-align: center;

    background: var(--brown);
    color: var(--cream);
}

.menu-cta > span {
    font-family: var(--typewriter);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;

    color: var(--yellow);
}

.menu-cta h2 {
    margin: 20px 0 35px;

    font-family: var(--serif);
    font-size: clamp(55px, 7vw, 100px);
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.menu-cta h2 em {
    color: var(--yellow);
    font-weight: 500;
}

.menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 54px;
    padding: 0 28px;

    border-radius: 100px;

    background: var(--terracotta);
    color: var(--white);

    font-size: 13px;
    font-weight: 700;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.menu-button:hover {
    background: var(--terracotta-dark);
    transform: translateY(-3px);
}


/* =========================================================
   MENU FOOTER
========================================================= */

.menu-footer {
    padding: 55px 7vw 25px;

    text-align: center;

    background: var(--cream);
}

.menu-footer img {
    width: 160px;
    margin: auto;
}

.menu-footer p {
    margin-top: 15px;

    font-family: var(--serif);
    font-size: 18px;
}

.menu-footer > span {
    display: block;

    margin-top: 35px;

    font-family: var(--typewriter);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;

    opacity: 0.55;
}


/* =========================================================
   MENU MOBILE
========================================================= */

@media (max-width: 800px) {

    .menu-header {
        padding: 20px 6vw;
    }

    .menu-logo,
    .menu-logo img {
        width: 115px;
    }

    .back-home {
        font-size: 9px;
    }


    .menu-intro {
        padding: 40px 7vw 70px;
    }

    .menu-intro h1 {
        font-size: clamp(52px, 15vw, 76px);
    }

    .menu-intro p {
        margin-top: 15px;
        font-size: 15px;
        line-height: 1.6;
    }


    .menu-gallery {
        padding: 20px 5vw 90px;
    }

    .menu-gallery-heading {
        margin-bottom: 30px;

        font-size: 9px;
    }

    .menu-gallery-heading span:last-child {
        display: none;
    }


    .menu-pages {
        gap: 35px;
    }

    .menu-page-image {
        padding: 7px;
    }

    .page-number {
        top: -10px;
        left: -8px;

        width: 34px;
        height: 34px;

        font-size: 9px;
    }


    .menu-cta {
        padding: 100px 7vw;
    }

    .menu-cta h2 {
        font-size: clamp(55px, 15vw, 80px);
    }


    .menu-footer {
        padding: 50px 7vw 25px;
    }

    .menu-footer img {
        width: 140px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    /* -------------------------
       HEADER
    ------------------------- */

    .site-header {
        padding: 18px 5vw;
    }

    .logo {
        width: 120px;
    }
    .logo img {
        width: 100px;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }


    /* -------------------------
       HERO
    ------------------------- */

    .hero {
        min-height: 760px;
        padding: 5px 7vw 70px;
        align-items: center;
    }

    .hero-content {
        margin-top: 20px;
    }

    .hero h1 {
        font-size: clamp(52px, 15vw, 82px);
        line-height: 0.9;
    }

    .hero-description {
        margin-top: 25px;
        font-size: 16px;
        line-height: 1.6;
    }

    .hero-buttons {
        margin-top: 30px;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-note {
        display: none;
    }


    /* -------------------------
       INTRO STRIP
    ------------------------- */

    .intro-strip {
        grid-template-columns: 1fr 1fr;
    }

    .intro-item {
        min-height: 80px;
        padding: 18px;
        font-size: 15px;
    }


    /* -------------------------
       STORY
    ------------------------- */

    .story {
        grid-template-columns: 1fr;
        padding: 90px 7vw;
        gap: 70px;
    }

    .stamp {
        right: -15px;
    }


    /* -------------------------
       FOOD
    ------------------------- */

    .food-section {
        padding: 90px 7vw;
    }

    .food-heading {
        display: block;
        margin-bottom: 45px;
    }

    .food-heading .button {
        margin-top: 30px;
    }

    /* Stack each food item vertically */
    .food-grid {
        display: flex;
        flex-direction: column;
        gap: 60px;
        width: 100%;
        max-width: 100%;
    }

    /* Each food item */
    .food-card {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Small square food image */
    .food-image,
    .food-card-large .food-image {
        width: 210px;
        height: 210px;
        aspect-ratio: 1 / 1;
        margin: 0 auto;
        overflow: hidden;
    }

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

    /* Text underneath image */
    .food-card-content {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 18px 0 0;
        text-align: center;
    }

    .food-card-content span {
        font-size: 9px;
        letter-spacing: 0.07em;
    }

    .food-card-content h3 {
        margin-top: 8px;
        font-size: 24px;
        line-height: 1.15;
    }

    .food-card-content p {
        margin-top: 7px;
        font-size: 14px;
        line-height: 1.5;
    }


    /* -------------------------
       QUOTE
    ------------------------- */

    .quote-section {
        padding: 100px 7vw;
    }


    /* -------------------------
       VISIT / CTA
    ------------------------- */

    .visit {
        min-height: 650px;
        padding: 90px 7vw;
    }

    .visit-buttons {
        flex-direction: column;
        align-items: stretch;
    }


    /* -------------------------
       FOOTER
    ------------------------- */

    .footer {
        padding: 60px 7vw 25px;
    }

    .footer-links {
        justify-content: flex-start;
        margin-top: 50px;
        gap: 60px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        margin-top: 60px;
    }

}




/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   MENU HEADER — MOBILE LOGO
========================================================= */

@media (max-width: 800px) {

    .menu-header {
        padding: 2px 6vw;
    }

    .menu-logo {
        display: block;
        width: 90px;
        max-width: 90px;
        flex-shrink: 0;
    }

    .menu-logo img {
        display: block;
        width: 70px;
        max-width: 90px;
        height: auto;
    }

}

