/* =========================================================================
   100Foods — folha de estilo global.
   Identidade: "cardápio de entretenimento". Base creme + espresso, acento
   âmbar/tangerina. Componentes globais aqui; cada página traz o seu próprio
   layout num <style> local para não virar clone das outras.
   ========================================================================= */

:root {
  --espresso: #241a14;
  --espresso-2: #3a2a20;
  --cream: #fff7ec;
  --cream-2: #fdeedb;
  --paper: #ffffff;
  --amber: #f5a623;
  --tangerine: #ff7a18;
  --teal: #0f766e;
  --ink: #2c211a;
  --muted: #6d5c50;
  --line: #ead9c4;
  --ok: #1f9254;
  --radius: 16px;
  --shadow-s: 0 2px 8px rgba(36, 26, 20, .07);
  --shadow-m: 0 10px 30px rgba(36, 26, 20, .12);
  --wrap: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.68;
  overflow-x: hidden;
}

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

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }

h1, h2, h3, h4 { color: var(--espresso); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.015em; }
h1 { font-size: clamp(1.95rem, 5.2vw, 3.05rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.15rem); }
h3 { font-size: clamp(1.12rem, 2.2vw, 1.32rem); }
p { margin: 0 0 1.05em; }

.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.2rem) 0; }
.section--paper { background: var(--paper); }
.section--cream2 { background: var(--cream-2); }
.section--dark { background: var(--espresso); color: #e9ddd2; }
.section--dark h2, .section--dark h3 { color: var(--cream); }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--tangerine); margin-bottom: .7rem;
}
.section--dark .eyebrow { color: var(--amber); }

.lead { font-size: clamp(1.03rem, 2.1vw, 1.17rem); color: var(--muted); }
.section--dark .lead { color: #cbbcaf; }

/* ------------------------------------------------------------- botões CTA */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .85rem 1.7rem; border-radius: 999px;
  font-weight: 800; font-size: 1.02rem; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--amber), var(--tangerine));
  color: #2b1c10; box-shadow: 0 8px 22px rgba(255, 122, 24, .32);
}
.btn--primary:hover { box-shadow: 0 12px 28px rgba(255, 122, 24, .42); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--espresso); border-color: var(--line); }
.section--dark .btn--ghost { color: var(--cream); border-color: #4d3a2d; }
.btn--ghost:hover { background: rgba(245, 166, 35, .12); }
.btn--sm { min-height: 48px; padding: .6rem 1.2rem; font-size: .95rem; }
.btn--block { width: 100%; }

/* ------------------------------------------------------- selo de avaliação */
.rating {
  display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  background: rgba(245, 166, 35, .14); border: 1px solid rgba(245, 166, 35, .45);
  border-radius: 999px; padding: .45rem .95rem; font-size: .92rem; font-weight: 600;
}
.rating__stars { color: #e8890b; letter-spacing: .06em; }
.rating__item { color: var(--muted); font-weight: 600; }
/* Heróis escuros próprios de página (.hero na home, .h12 nas 12 horas, .hx no
   XCIPTV) precisam do mesmo tratamento de contraste do .section--dark. */
.section--dark .rating, .hero .rating, .h12 .rating, .hx .rating {
  background: rgba(245, 166, 35, .16); border-color: rgba(245, 166, 35, .5); color: #f4e8dc;
}
.section--dark .rating__item, .hero .rating__item, .h12 .rating__item, .hx .rating__item { color: #cbbaac; }
.hero .btn--ghost, .h12 .btn--ghost, .hx .btn--ghost { color: var(--cream); border-color: rgba(255, 247, 236, .38); }
.hero .btn--ghost:hover, .h12 .btn--ghost:hover, .hx .btn--ghost:hover { background: rgba(245, 166, 35, .18); }

/* ------------------------------------------------------------ header fixo */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 247, 236, .93); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; gap: 1rem; min-height: 66px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 900; color: var(--espresso); font-size: 1.16rem; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span small { display: block; font-size: .63rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tangerine); line-height: 1; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .3rem; }
.nav a { color: var(--espresso); text-decoration: none; font-weight: 600; font-size: .93rem; padding: .5rem .68rem; border-radius: 9px; }
.nav a:hover { background: rgba(245, 166, 35, .16); }
.nav a[aria-current="page"] { color: var(--tangerine); }
.hdr .btn { margin-left: .4rem; }
.burger { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; font-size: 1.3rem; cursor: pointer; color: var(--espresso); }

@media (max-width: 940px) {
  .burger { display: block; }
  .nav {
    position: absolute; inset: 66px 0 auto; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .6rem 1.2rem 1.1rem;
    gap: .1rem; box-shadow: var(--shadow-m); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem .6rem; border-bottom: 1px solid var(--cream-2); }
  .hdr .btn { margin: .7rem 0 0; }
  .hdr__cta-desktop { display: none; }
}

/* ------------------------------------------------------------- breadcrumb */
.crumbs { font-size: .85rem; color: var(--muted); padding: .9rem 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.crumbs li::after { content: "›"; margin-left: .35rem; color: #b9a795; }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); }

/* ------------------------------------------------------------ cards & grid */
.grid { display: grid; gap: 1.15rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.4rem; box-shadow: var(--shadow-s);
}
.card h3 { margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon { font-size: 1.6rem; line-height: 1; margin-bottom: .6rem; display: block; }
.section--dark .card { background: #2f2219; border-color: #4a3527; color: #ddcec1; }

/* --------------------------------------------------------------- tabelas */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
th, td { padding: .82rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--cream-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--espresso); }
tbody tr:last-child td { border-bottom: 0; }

/* -------------------------------------------------------------- FAQ nativo */
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: 13px;
  padding: .2rem 1.15rem; margin-bottom: .7rem;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--espresso); padding: .95rem 0;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--tangerine); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-bottom: 1rem; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- depoimentos */
.quotes { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-s); }
.quote__stars { color: #e8890b; font-size: .95rem; letter-spacing: .08em; }
.quote p { font-size: .97rem; margin: .5rem 0 .9rem; }
.quote footer { font-size: .86rem; color: var(--muted); font-weight: 700; }

/* ------------------------------------------------------- estatísticas topo */
.stats { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; text-align: center; }
.stat b { display: block; font-size: 1.5rem; color: var(--tangerine); line-height: 1.15; }
.stat span { font-size: .84rem; color: var(--muted); }
.section--dark .stat { background: #2f2219; border-color: #4a3527; }

/* -------------------------------------------------------- listas marcadas */
.checks { list-style: none; padding: 0; margin: 0 0 1.1rem; }
.checks li { padding-left: 1.75rem; position: relative; margin-bottom: .55rem; }
.checks li::before { content: "✔"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 3.1rem; margin-bottom: 1.15rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 2.2rem; height: 2.2rem;
  background: linear-gradient(135deg, var(--amber), var(--tangerine)); color: #2b1c10;
  border-radius: 50%; display: grid; place-items: center; font-weight: 900;
}

/* ------------------------------------------------------------- faixa final */
.cta-band { background: linear-gradient(135deg, #2b1e15, #43301f); color: var(--cream); border-radius: 22px; padding: clamp(1.8rem, 4vw, 2.8rem); text-align: center; }
.cta-band h2 { color: var(--cream); }
.cta-band p { color: #d3c3b5; max-width: 56ch; margin-inline: auto; }

/* ----------------------------------------------------------------- rodapé */
.ftr { background: var(--espresso); color: #bdaa9b; padding: 3rem 0 1.6rem; font-size: .92rem; }
.ftr h3 { color: var(--cream); font-size: .95rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: .8rem; }
.ftr a { color: #d9c9ba; text-decoration: none; }
.ftr a:hover { color: var(--amber); text-decoration: underline; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin-bottom: .45rem; }
.ftr__grid { display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.ftr__bottom { border-top: 1px solid #402e23; margin-top: 2.2rem; padding-top: 1.3rem; font-size: .84rem; color: #9c8a7c; display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; justify-content: space-between; }

/* --------------------------------------------------------- barra CTA móvel */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none;
  padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 247, 236, .96); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
@media (max-width: 760px) { .dock { display: block; } body { padding-bottom: 78px; } }

/* ------------------------------------------------------------ utilitários */
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.narrow { max-width: 72ch; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pill { display: inline-block; background: var(--cream-2); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-size: .84rem; font-weight: 700; color: var(--espresso-2); margin: 0 .35rem .5rem 0; }
.figcap { font-size: .82rem; color: var(--muted); margin-top: .55rem; }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow-m); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
