/* ==========================================================================
   BASE — Fábrica de Sites
   Toda a identidade visual vive nos tokens do :root.
   Para um cliente novo, troque SÓ este bloco (cores, fontes, raio).
   Padrão herdado do Sabor & Casa (aulão do prof. Eliel).
   ========================================================================== */
:root {
    /* tema: Pet shop — creme, verde-água e laranja */
    --canvas: #fffaf1;
    --surface: #fdf0d8;
    --card: #ffffff;
    --ink: #1f2a2e;
    --muted: #566266;
    --line: #f0e0c2;
    --brand: #0f7478;
    --brand-dark: #0b5b5e;
    --brand-ink: #ffffff;
    --accent: #b4400f;
    --whatsapp: #1fa855;

    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-title: 'Fredoka', 'Trebuchet MS', sans-serif;

    --radius: 1.5rem;
    --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px -12px rgb(0 0 0 / .10);
    --shadow-float: 0 16px 40px -12px rgb(0 0 0 / .20);
    --max: 1160px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--canvas);
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--surface); }
.section__head { max-width: 640px; margin-bottom: 2.5rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow {
    display: inline-block;
    font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .75rem;
}
.lead { font-size: 1.125rem; color: var(--muted); }

/* ---------- botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; padding: .8rem 1.5rem;
    border-radius: 999px; border: 2px solid transparent;
    font: 600 1rem var(--font-sans); text-decoration: none; cursor: pointer;
    transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn svg { width: 20px; height: 20px; }

/* ---------- cabeçalho ---------- */
.header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--canvas) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--font-title); font-size: 1.4rem; font-weight: 700; text-decoration: none; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 1.75rem; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav .btn { color: var(--brand-ink); }
.menu-btn {
    display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer;
}
.menu-btn svg { width: 28px; height: 28px; margin: auto; }

@media (max-width: 860px) {
    .menu-btn { display: block; }
    .nav {
        /* o backdrop-filter do header vira a referência do "fixed": top 100% = logo abaixo dele */
        position: fixed; inset: 100% 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--canvas); border-bottom: 1px solid var(--line);
        padding: .5rem 1rem 1.25rem;
        box-shadow: var(--shadow-float);
        visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    }
    .nav.is-open { visibility: visible; opacity: 1; transform: none; }
    .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
    .nav .btn { margin-top: 1rem; border-bottom: 0; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__media {
    aspect-ratio: 4 / 5; border-radius: calc(var(--radius) * 1.5); overflow: hidden;
    background: var(--surface); box-shadow: var(--shadow-float);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.5rem; }
.hero__facts strong { display: block; font-family: var(--font-title); font-size: 1.8rem; }
.hero__facts span { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__media { aspect-ratio: 4 / 3; order: -1; }
}

/* ---------- cartões ---------- */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.75rem; box-shadow: var(--shadow);
    transition: transform .25s var(--ease), box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.card__icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); margin-bottom: 1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); margin: 0; }
.price { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.price strong { font-family: var(--font-title); font-size: 1.5rem; color: var(--ink); }
.price small { color: var(--muted); }

/* ---------- sobre ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split__media { aspect-ratio: 1; border-radius: calc(var(--radius) * 1.5); overflow: hidden; background: var(--surface); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; }
.checklist svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- galeria ---------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.gallery figure { margin: 0; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: .6rem; } }

/* ---------- depoimentos ---------- */
.quote p { color: var(--ink); font-size: 1.05rem; }
.quote footer { margin-top: 1rem; font-weight: 600; }
.quote footer span { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }
.stars { color: var(--accent); letter-spacing: 2px; margin-bottom: .75rem; }

/* ---------- contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.info-list li { display: flex; gap: 1rem; }
.info-list svg { flex: none; width: 24px; height: 24px; color: var(--accent); margin-top: 3px; }
.info-list strong { display: block; }
.info-list span { color: var(--muted); }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; color: var(--muted); }
.map { border-radius: var(--radius); overflow: hidden; min-height: 320px; background: var(--surface); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- cardápio / tabela em lista ---------- */
.menu-cols { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-list li { display: flex; align-items: baseline; gap: 1rem; padding: .75rem 0; border-bottom: 1px dashed var(--line); }
.menu-list li:last-child { border-bottom: 0; }
.menu-list div { flex: 1; }
.menu-list small { display: block; color: var(--muted); font-size: .9rem; }
.menu-list strong { font-family: var(--font-title); font-size: 1.15rem; white-space: nowrap; }
.chips { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
    padding: .3rem .8rem; border-radius: 999px; font-size: .9rem;
    background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.nota { font-size: .9rem; color: var(--muted); margin-top: 1.5rem; }
.btn--ifood { background: #ea1d2c; color: #fff; }

/* ---------- chamada final ---------- */
.cta {
    background: var(--brand); color: var(--brand-ink);
    border-radius: calc(var(--radius) * 1.5); padding: clamp(2rem, 6vw, 4rem); text-align: center;
}
.cta .lead { color: color-mix(in srgb, var(--brand-ink) 80%, transparent); }

/* ---------- rodapé ---------- */
.footer { padding: 2.5rem 0 6rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.social { display: flex; gap: .75rem; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.social svg { width: 18px; height: 18px; }

/* ---------- botão flutuante do WhatsApp ---------- */
.whats-float {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
    width: 60px; height: 60px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--whatsapp); color: #fff; box-shadow: var(--shadow-float);
    transition: transform .2s var(--ease);
}
.whats-float:hover { transform: scale(1.08); }
.whats-float svg { width: 32px; height: 32px; }

/* ---------- animação de entrada ---------- */
/* só esconde se o JS carregou (classe .js no <html>) — sem JS o conteúdo aparece normal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    * { transition: none !important; }
}
