/* ===========================================================
   Rico Sabor — Home / landing page styles (index.html)
   Shared design tokens & reset live in base.css.
   =========================================================== */
:root {
    --bg-soft:   #15100b;
    --line:      rgba(244, 230, 193, 0.12);
    --radius:    4px;
    --maxw:      1100px;
}

html { scroll-behavior: smooth; }

body {
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.5px;
}

a { color: var(--accent); text-decoration: none; transition: color .25s; }
a:hover { color: var(--ink); }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--accent); color: var(--bg);
    padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- NAV ---------- */
nav {
    position: fixed; top: 0; left: 0; right: 0;
    padding: 1.25rem 1.5rem;
    background: rgba(15, 11, 8, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    z-index: 50;
    display: flex; justify-content: space-between; align-items: center;
}
nav .brand {
    font-family: var(--font-heading);
    font-size: 1.4rem; font-weight: 600;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--ink);
}
nav ul { list-style: none; display: flex; gap: 2rem; }
nav ul a {
    color: var(--ink-soft);
    font-size: .82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 400;
}
@media (max-width: 640px) { nav ul { display: none; } }

/* ---------- HERO ---------- */
header.hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    position: relative;
    background:
        radial-gradient(ellipse at top, rgba(139, 30, 30, 0.25), transparent 60%),
        radial-gradient(ellipse at bottom, rgba(201, 161, 74, 0.12), transparent 60%),
        var(--bg);
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(244, 230, 193, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 230, 193, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Hero background crossfade slideshow */
.hero-slides {
    position: absolute; inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-slide {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    /* Resting state = the zoom's END frame, so an outgoing slide holds its
       zoomed position instead of snapping back during the fade-out. */
    transform: scale(1.18) translate(-2%, -1.5%);
    transition: opacity 1.6s ease-in-out;
    will-change: opacity, transform;
}
/* Active slide fades in and slowly, continuously zooms/drifts (Ken Burns).
   Duration matches the slide interval so it lands on the end frame before swapping. */
.hero-slide.is-active {
    opacity: 1;
    animation: heroKenBurns 5.5s linear forwards;
}
@keyframes heroKenBurns {
    from { transform: scale(1.05) translate(0, 0); }
    to   { transform: scale(1.18) translate(-2%, -1.5%); }
}
/* Scrim over the photos: dark enough for readable text, light enough to see the image.
   Extra darkening at centre sits behind the headline; brand-red glow up top. */
.hero-slides::after {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at top, rgba(139, 30, 30, 0.33), transparent 60%),
        radial-gradient(ellipse at center, rgba(15, 11, 8, 0.55), transparent 72%),
        linear-gradient(rgba(15, 11, 8, 0.62), rgba(15, 11, 8, 0.88));
}
/* Keep all hero text/CTAs above the photos, scrim and texture */
.hero-tag, .hero h1, .hero-sub, .hero-meta, .hero-cta { z-index: 2; }
.hero-tag {
    color: var(--accent);
    font-size: .8rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    position: relative;
}
.hero h1 {
    font-size: clamp(3rem, 9vw, 6.5rem);
    margin-bottom: 1rem;
    position: relative;
}
.hero h1 .ampersand { color: var(--accent); font-style: italic; font-weight: 400; }
.hero-sub {
    color: var(--ink-soft);
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-style: italic;
    margin-bottom: 0.5rem;
    position: relative;
}
.hero-meta {
    display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
    color: var(--muted);
    font-size: .8rem; letter-spacing: 2px; text-transform: uppercase;
    position: relative;
    font-weight: 600;
}
.hero-meta span:not(:last-child)::after {
    content: "·"; margin-left: 2rem; color: var(--accent);
}
.hero-cta {
    margin-top: 1rem;
    display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
    position: relative;
}
/* Hero promo / early-dinner offer card */
.hero-offer {
    position: relative;
    z-index: 2;
    margin-top: 2.25rem;
    max-width: 440px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1.1rem 2rem 1.25rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    background: rgba(15, 11, 8, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.hero-offer-badge {
    font-size: .65rem; letter-spacing: 3px; text-transform: uppercase;
    color: var(--bg); background: var(--accent);
    padding: .25rem .8rem; border-radius: 999px;
}
.hero-offer-main {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    color: var(--ink);
}
.hero-offer-main strong { color: var(--accent); font-weight: 600; }
.hero-offer-desc {
    margin: 0;
    font-size: .85rem;
    line-height: 1.5;
    max-width: 40ch;
}
.hero-offer-desc[lang="pt"] { color: var(--ink-soft); font-family: var(--font-heading); font-size: 22px;}
.hero-offer-desc[lang="en"] { color: var(--muted); }
.btn {
    display: inline-block;
    padding: .9rem 2rem;
    font-size: .8rem; letter-spacing: 2px; text-transform: uppercase;
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    border-radius: var(--radius);
    transition: all .3s;
    cursor: pointer;
    font-family: inherit;
}
.btn:hover { background: var(--accent); color: var(--bg); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: transparent; color: var(--accent); }

/* ---------- SECTIONS ---------- */
section { padding: 6rem 0; position: relative; }
section.alt { background: var(--bg-soft); }

.section-label {
    color: var(--accent);
    font-size: .75rem; letter-spacing: 5px; text-transform: uppercase;
    margin-bottom: 1rem; text-align: center;
}
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 1rem;
}
.section-intro {
    max-width: 640px; margin: 0 auto 4rem; text-align: center;
    color: var(--ink-soft);
    font-family: var(--font-heading);
    font-size: 1.2rem; font-style: italic;
}

/* ---------- ABOUT ---------- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}
.feature {
    padding: 2rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    text-align: center;
    transition: border-color .3s, transform .3s;
}
.feature:hover { border-color: var(--accent); transform: translateY(-3px); }
.feature-icon {
    font-family: var(--font-heading);
    font-size: 2rem; color: var(--accent);
    margin-bottom: .75rem;
}
.feature h3 {
    font-size: 1.15rem;
    margin-bottom: .5rem;
    color: var(--ink);
}
.feature p { font-size: .9rem; color: var(--muted); }

/* ---------- GALLERY ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
    margin-top: 3rem;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}
.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
/* Subtle zoom-hint cue on hover/focus */
.gallery-item::after {
    content: "⤢";
    position: absolute;
    top: .6rem; right: .6rem;
    width: 2rem; height: 2rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--bg);
    background: rgba(0, 0, 0, .45);
    border-radius: 50%;
    opacity: 0;
    transform: scale(.85);
    transition: opacity .3s, transform .3s;
    pointer-events: none;
}
.gallery-item:hover::after,
.gallery-item:focus-within::after { opacity: 1; transform: scale(1); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
    .gallery-item.wide, .gallery-item.tall { grid-column: auto; grid-row: auto; }
}
/* GLightbox caption — match the dark theme for readability */
.glightbox-clean .gslide-description { background: var(--bg-soft); }
.glightbox-clean .gslide-title { color: var(--ink); }
.glightbox-clean .gslide-desc {
    color: var(--ink);
    font-family: var(--font-body);
    font-size: .95rem;
    line-height: 1.55;
}

/* ---------- FOOD CAROUSEL ---------- */
/* Multi-row horizontal strip: free-momentum swipe on touch, arrows step
   one column at a time. All 36 dishes stay in the DOM (lazy-loaded) for SEO. */
.food-carousel { position: relative; margin-top: 3rem; }

.food-track {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: clamp(150px, 42vw, 200px);
    gap: .7rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .6rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}
@media (min-width: 600px) { .food-track { grid-auto-columns: clamp(170px, 26vw, 210px); gap: .85rem; } }
@media (min-width: 960px) { .food-track { grid-auto-columns: 200px; gap: 1rem; } }
.food-track::-webkit-scrollbar { height: 6px; }
.food-track::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
.food-track::-webkit-scrollbar-track { background: rgba(244, 230, 193, .08); }

.food-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    aspect-ratio: 1 / 1;
    scroll-snap-align: start;
}
.food-item a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.food-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.food-item::after {
    content: "⤢";
    position: absolute;
    top: .5rem; right: .5rem;
    width: 1.8rem; height: 1.8rem;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; color: var(--bg);
    background: rgba(0, 0, 0, .45);
    border-radius: 50%;
    opacity: 0;
    transform: scale(.85);
    transition: opacity .3s, transform .3s;
    pointer-events: none;
}
.food-item:hover::after,
.food-item:focus-within::after { opacity: 1; transform: scale(1); }
.food-item:hover img { transform: scale(1.06); }
.food-item a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Step arrows */
.fc-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 5;
    width: 2.6rem; height: 2.6rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; line-height: 1;
    color: var(--ink);
    background: rgba(15, 11, 8, .82);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s, color .2s, opacity .2s;
}
.fc-arrow:hover:not(:disabled) { background: var(--accent); color: var(--bg); }
.fc-prev { left: -.5rem; }
.fc-next { right: -.5rem; }
.fc-arrow:disabled { opacity: .3; cursor: default; }
@media (max-width: 600px) { .fc-arrow { width: 2.2rem; height: 2.2rem; font-size: 1.3rem; } }

/* ---------- GUEST REVIEWS (Splide slider) ---------- */
.reviews-label { margin-top: 4.5rem; }
.review-slider { margin-top: 1.5rem; padding: 0 .25rem; }
.review-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    margin: 0;
    text-align: left;
}
.review-inner { max-width: 760px; margin: 0 auto; }
.review-stars {
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: .75rem;
}
.review-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1.15rem, 3.5vw, 1.5rem);
    line-height: 1.45;
    color: var(--ink);
    margin: 0 0 .85rem;
}
/* Author line: sits directly under the quote, left-aligned, no box */
.review-meta {
    display: block;
    text-align: left;
    font-size: .72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    background: none;
    padding: 0;
    border: none;
}
.review-meta .review-author { color: var(--ink-soft); }
.review-meta a { color: var(--accent); border-bottom: 1px solid transparent; }
.review-meta a:hover { border-bottom-color: var(--accent); }

/* Theme Splide controls to match the dark palette */
.review-slider .splide__arrow { background: var(--card); border: 1px solid var(--line); }
.review-slider .splide__arrow svg { fill: var(--accent); }
.review-slider .splide__arrow:hover:not(:disabled) { background: var(--accent); }
.review-slider .splide__arrow:hover:not(:disabled) svg { fill: var(--bg); }
.review-slider .splide__slide { height: auto; }
/* Smooth the autoHeight resize so arrow clicks aren't jerky */
.review-slider .splide__track { transition: height .6s cubic-bezier(.25, .725, .5, 1); }

/* Pagination as small pills/lines instead of dots.
   Static (not absolute) so it flows below the card and moves with autoHeight. */
.review-slider .splide__pagination {
    position: static;
    margin-top: 1.35rem;
    padding: 0;
    gap: 6px;
}
.review-slider .splide__pagination__page {
    width: 16px;
    height: 4px;
    border-radius: 2px;
    background: var(--muted);
    opacity: .6;
    margin: 0;
    transition: width .25s, background .25s, opacity .25s;
    transform: none;
}
.review-slider .splide__pagination__page.is-active {
    width: 26px;
    background: var(--accent);
    opacity: 1;
    transform: none;
}

/* ---------- MENU ---------- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.menu-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 2.25rem 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    transition: all .35s;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.menu-card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: translateX(-100%);
    transition: transform .5s;
}
.menu-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    color: var(--ink);
}
.menu-card:hover::before { transform: translateX(0); }
.menu-flag {
    font-size: 2.2rem;
    margin-bottom: .9rem;
    line-height: 1;
}
.menu-lang {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: .25rem;
}
.menu-sub {
    font-size: .7rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- VISIT ---------- */
.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 768px) { .visit-grid { grid-template-columns: 1fr; gap: 2rem; } }
.info-block { padding: 1rem 0; }
.info-block h3 {
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .75rem;
    font-family: var(--font-body);
    font-weight: 500;
}
.info-block p, .info-block address {
    font-style: normal;
    color: var(--ink-soft);
    line-height: 1.8;
}
.info-block a { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.info-block a:hover { border-bottom-color: var(--accent); color: var(--accent); }

.map-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 4 / 3;
    background: var(--card);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(1.05); }

/* ---------- INSTAGRAM ---------- */
.ig-head { text-align: center; }
.ig-head .section-intro { margin-left: auto; margin-right: auto; margin-bottom: 0;}
.ig-handle {
    display: inline-flex; align-items: center; gap: .5rem;
    margin-top: 1.25rem;
    font-family: var(--font-heading);
    font-size: 1.5rem; letter-spacing: .5px;
    color: var(--ink-soft);
    border-bottom: 1px solid transparent;
}
.ig-handle:hover { color: var(--accent); border-bottom-color: var(--accent); }
.ig-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .75rem;
}
.ig-tile {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}
.ig-tile img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.ig-tile::after {
    content: "";
    position: absolute; inset: 0;
    background: rgba(15, 11, 8, 0.4);
    opacity: 0; transition: opacity .3s;
}
.ig-tile:hover img { transform: scale(1.06); }
.ig-tile:hover::after { opacity: 1; }
.ig-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ig-cta { text-align: center; margin-top: 2.75rem; }
.ig-follow {
    display: inline-flex; align-items: center; gap: .55rem;
}
@media (max-width: 860px) {
    .ig-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
    .ig-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- FOOTER ---------- */
footer {
    background: #0a0705;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--line);
}
.social {
    display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.social a {
    font-size: .75rem; letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--ink-soft);
}
.social a:hover { color: var(--accent); }
.copy { color: var(--muted); font-size: .75rem; letter-spacing: 1px; }
.copy .sep { color: var(--accent); margin: 0 .5rem; }
