/* =========================================================
   TEMPLATE IPTV — tema "Editorial" (creme / verde-floresta / terracota)
   Paleta e formas NOVAS em relação aos builds anteriores do usuário
   (Genoveva, Haute STR, Infov RCT, Ienec Play, Host ELC, Jetis BRL) —
   ver /areas/sites-hostinger.md antes de repetir combinações.
   ========================================================= */

:root {
  --bg: #FBF8F3;
  --bg-alt: #F1ECE1;
  --ink: #22261F;
  --ink-soft: #52584A;
  --green: #1F6F54;
  --green-dark: #17543F;
  --terracota: #C0532B;
  --gold: #D9A441;
  --line: #E3DCC9;
  --white: #FFFFFF;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(34, 38, 31, 0.08);
  --shadow-lg: 0 16px 40px rgba(34, 38, 31, 0.12);
  --maxw: 1180px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 10%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.lead { font-size: 1.15rem; max-width: 640px; }

/* ---------- Botões: retangulares, cantos leves, sublinhado de destaque ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.btn-primary {
  background: var(--terracota);
  color: var(--white);
  box-shadow: 0 4px 0 var(--green-dark);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--green-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  header.site-header {
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo-mark { display: flex; align-items: center; gap: 10px; }
.logo-mark img { height: 34px; width: auto; }
.logo-mark span { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
nav.main-nav { display: flex; gap: 28px; }
nav.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--green); border-color: var(--terracota); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

@media (max-width: 860px) {
  nav.main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--line); display: none; gap: 14px; }
  nav.main-nav.open { display: flex; }
  .menu-toggle { display: block; }
}

/* ---------- Hero empilhado (headline no topo, banner full-width abaixo) ---------- */
.hero { padding: 56px 0 0; text-align: center; }
.hero .trust-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 40px;
}
.trust-chip {
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-chip::before { content: "✓"; color: var(--green); font-weight: 700; }
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: 18px 18px 0 0;
  padding: 48px 24px 0;
  overflow: hidden;
}
.hero-banner .container { display: flex; justify-content: center; }
.device-mock {
  width: min(880px, 92vw);
  background: #0F1A15;
  border-radius: 14px 14px 0 0;
  padding: 14px 14px 0;
  box-shadow: var(--shadow-lg);
}
.device-mock .screen {
  background: repeating-linear-gradient(180deg, #12241C, #12241C 2px, #17301F 2px, #17301F 4px);
  border-radius: 6px 6px 0 0;
  aspect-ratio: 16 / 8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 20px;
}
.device-mock .tile {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
}

/* ---------- Cards com barra superior colorida ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.card.alt-top { border-top-color: var(--terracota); }
.card .icon { font-size: 1.8rem; margin-bottom: 12px; }

/* ---------- Planos ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 980px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }

.plan-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 28px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plan-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--green);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.plan-card .badge {
  position: absolute; top: 18px; right: -34px;
  background: var(--terracota); color: var(--white);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 5px 40px; text-transform: uppercase;
  transform: rotate(38deg);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--terracota) 35%, transparent);
}
.plan-card h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin-bottom: 2px; }
.plan-card .price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--green);
  margin: 10px 0 22px;
  line-height: 1;
}
.plan-card .price small { font-size: 0.95rem; font-family: var(--font-body); color: var(--ink-soft); font-weight: 500; }
.plan-card .price-equiv {
  font-size: 0.82rem; color: var(--ink-soft);
  margin: -16px 0 22px;
}

.plan-card ul { list-style: none; padding: 0; margin: 0 0 26px; flex-grow: 1; display: flex; flex-direction: column; gap: 12px; }
.plan-card li { font-size: 0.94rem; padding-left: 28px; position: relative; color: var(--ink); }
.plan-card li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green);
  font-size: 0.7rem; font-weight: 700;
}

.plan-card.featured {
  border-color: var(--terracota);
  background: linear-gradient(180deg, color-mix(in srgb, var(--terracota) 6%, transparent), var(--white) 55%);
  box-shadow: var(--shadow-lg);
}
.plan-card.featured::before { background: var(--terracota); height: 6px; }
.plan-card.featured h3 { color: var(--terracota); }
.plan-card.featured li::before { background: color-mix(in srgb, var(--terracota) 14%, transparent); color: var(--terracota); }
.plan-card.featured:hover { transform: translateY(-6px); }

/* ---------- Passo a passo ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: none; }
.step-num {
  counter-increment: step;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--white);
  background: var(--green);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-num::before { content: counter(step); }

/* ---------- FAQ (accordion simples) ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 0; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; color: var(--ink);
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-answer p { padding-bottom: 18px; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-item.open .faq-question .chevron { transform: rotate(180deg); }
.chevron { transition: transform 0.2s ease; color: var(--terracota); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); padding: 18px 0 0; }
.breadcrumb a { color: var(--green); font-weight: 600; }
.breadcrumb span { margin: 0 6px; }

/* ---------- Footer ---------- */
footer.site-footer { background: #14201A; color: #D9E4DC; padding: 56px 0 28px; margin-top: 80px; }
footer.site-footer a { color: #D9E4DC; }
footer.site-footer .logo-mark span { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
footer.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 0.82rem; color: #9FB0A6; text-align: center; }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.whatsapp-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  background: var(--green); color: var(--white);
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); font-size: 1.6rem;
}
.content-page { padding: 56px 0 80px; }
.content-page article { max-width: 760px; }
.content-page h2 { margin-top: 1.4em; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card img { border-radius: var(--radius) var(--radius) 0 0; }
.blog-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.blog-card .body { padding: 18px; }
.blog-card .date { font-size: 0.8rem; color: var(--ink-soft); }
