/*
Theme Name: 98a Observado
Theme URI: https://98a.cam/
Author: 98a.cam
Description: Tema editorial independente em pt-BR para o guia 98a.cam.
Version: 1.0.0
Text Domain: noventa-oito-observado
*/

:root {
  --bg: #f7f0e5;
  --surface: #fffdf8;
  --surface-soft: #efe1d2;
  --ink: #302a26;
  --muted: #6c625b;
  --forest: #243f38;
  --terracotta: #a94e37;
  --sage: #547461;
  --ochre: #c48724;
  --line: #d8c6b3;
  --info: #e5eee7;
  --warning: #fff0cf;
  --focus: #1f6650;
  --wide: 1180px;
  --read: 760px;
  --radius: 16px;
  --organic: 36px;
  --shadow: 0 16px 38px rgba(80, 50, 35, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.76;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: #8c3928; text-decoration-thickness: .09em; text-underline-offset: .18em; }
a:hover { color: #5f251b; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: fixed; left: 18px; top: -100px; z-index: 9999; padding: 10px 16px; background: var(--surface); color: var(--ink); border-radius: 10px; }
.skip-link:focus { top: 18px; }
.site-shell { width: min(calc(100% - 40px), var(--wide)); margin-inline: auto; }

.site-header { position: relative; z-index: 20; background: rgba(255,253,248,.96); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--forest); font-weight: 800; font-size: 1.65rem; line-height: 1; text-decoration: none; letter-spacing: -.04em; }
.brand span { color: var(--terracotta); }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--forest); font: inherit; font-weight: 700; cursor: pointer; }
.site-nav ul { display: flex; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: inline-flex; min-height: 48px; align-items: center; padding: 8px 14px; color: var(--forest); font-weight: 700; text-decoration: none; border-radius: 12px; }
.site-nav a:hover { background: var(--surface-soft); }

.hero { overflow: clip; padding: clamp(46px, 7vw, 92px) 0 64px; background: linear-gradient(135deg, #f7f0e5 0 62%, #ead4c2 62%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(340px, .98fr); align-items: center; gap: clamp(34px, 6vw, 76px); }
.eyebrow { display: inline-flex; margin: 0 0 18px; padding: 6px 12px; color: var(--forest); background: var(--info); border-radius: 999px; font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
h1, h2, h3 { color: var(--forest); line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
h1 { margin: 0 0 22px; font-size: clamp(2.35rem, 5.6vw, 4.35rem); }
h2 { margin: 0 0 22px; font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3 { margin: 34px 0 12px; font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1.25em; }
.hero-lead { max-width: 680px; font-size: clamp(1.08rem, 1.6vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 18px; border: 2px solid var(--forest); border-radius: 13px; background: var(--forest); color: #fffdf8; font-weight: 800; text-decoration: none; }
.button:hover { background: #152b25; color: white; }
.button.secondary { background: transparent; color: var(--forest); }
.button.secondary:hover { background: var(--surface); }
.hero-media { position: relative; transform: rotate(1.5deg); }
.hero-media::before { content: ""; position: absolute; inset: -18px 12% 9% -16px; z-index: -1; border-radius: 42% 58% 54% 46% / 36% 39% 61% 64%; background: var(--terracotta); opacity: .22; }
.hero-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 44% 56% 35% 65% / 39% 33% 67% 61%; box-shadow: var(--shadow); }
.hero-media figcaption, .brand-image figcaption { margin-top: 10px; color: var(--muted); font-size: .82rem; line-height: 1.45; }

.disclosure { margin: -28px auto 0; position: relative; z-index: 2; padding: 22px 26px; border: 1px solid #c4d6c8; border-radius: var(--radius); background: var(--info); box-shadow: 0 10px 30px rgba(36,63,56,.08); }
.disclosure p { margin: 0; }
.updated { display: inline-block; margin-top: 12px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.content-section { scroll-margin-top: 28px; padding: clamp(58px, 8vw, 100px) 0; }
.content-section:nth-of-type(even) { background: var(--surface); }
.section-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; gap: clamp(38px, 6vw, 76px); }
.section-grid.reverse > :first-child { order: 2; }
.section-copy { max-width: var(--read); }
.section-copy > :last-child { margin-bottom: 0; }
.brand-image { margin: 0; position: sticky; top: 28px; }
.brand-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 17% 4% 18% 5% / 8% 16% 6% 15%; box-shadow: var(--shadow); }
.callout { margin: 28px 0; padding: 20px 22px; border-left: 5px solid var(--terracotta); border-radius: 0 var(--radius) var(--radius) 0; background: var(--warning); }
.callout strong { color: #70430f; }
.plain-links { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 24px 0 0; padding: 0; list-style: none; }
.plain-links a { font-weight: 800; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 28px 0; }
.catalog-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.catalog-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.catalog-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.promo-list { margin: 22px 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.promo-list li { padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 700; }
.faq-list { max-width: 840px; margin: 34px auto 0; }
.faq-list details { margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: clip; }
.faq-list summary { min-height: 56px; padding: 15px 56px 15px 18px; cursor: pointer; font-weight: 800; color: var(--forest); }
.faq-list details p { padding: 0 18px 18px; margin: 0; }

.inner-hero { padding: clamp(52px, 8vw, 92px) 0 48px; background: linear-gradient(145deg, var(--surface-soft), var(--bg)); }
.inner-hero p { max-width: 670px; color: var(--muted); font-size: 1.12rem; }
.article-wrap { padding: clamp(52px, 8vw, 96px) 0; }
.article-content { max-width: var(--read); margin-inline: auto; }
.article-content h2 { margin-top: 2em; }
.article-content .button { margin-top: 16px; }

.site-footer { padding: 56px 0 28px; background: var(--forest); color: #f5eee5; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.site-footer .brand { color: white; }
.site-footer p { max-width: 560px; color: #d9e1dc; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { display: inline-flex; min-height: 44px; align-items: center; color: white; font-weight: 700; }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); color: #becdc5; font-size: .84rem; }

@media (max-width: 839px) {
  body { font-size: 17px; }
  .site-shell { width: min(calc(100% - 36px), var(--wide)); }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { position: absolute; left: 18px; right: 18px; top: 64px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
  .site-nav ul { display: block; }
  .site-nav a { width: 100%; }
  .js .site-nav[hidden] { display: none; }
  .hero-grid, .section-grid { grid-template-columns: 1fr; }
  .hero-media { order: 2; transform: none; }
  .section-grid.reverse > :first-child { order: 0; }
  .brand-image { position: static; max-width: 680px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 599px) {
  body { font-size: 16px; line-height: 1.7; }
  .site-shell { width: min(calc(100% - 32px), var(--wide)); }
  .hero { padding-top: 42px; background: var(--bg); }
  h1 { font-size: clamp(2.1rem, 10vw, 2.7rem); }
  h2 { font-size: clamp(1.7rem, 8vw, 2.15rem); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .catalog-grid, .footer-nav { grid-template-columns: 1fr; }
  .content-section { padding-block: 52px; }
  .brand-image img { border-radius: 24px 8px 28px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

