/* =========================================================
   Cannabis Medicinal Teresina — Estilos compartilhados
   CSS puro, sem etapa de build. Cores e tipografia via variáveis.
   ========================================================= */

:root {
  --brand:        #007a60;   /* verde esmeralda com contraste WCAG AA */
  --brand-dark:   #005c48;   /* tom mais escuro para hover */
  --brand-soft:   #ebf6f3;   /* fundo suave para destaques */
  --ink:          #15212e;   /* texto principal */
  --ink-soft:     #435364;   /* texto secundário */
  --line:         #dfe6ed;   /* divisórias e bordas */
  --bg:           #ffffff;
  --bg-alt:       #f5f8fa;   /* fundo alternado de seções */
  --bg-dark:      #13202c;   /* rodapé e faixas escuras */
  --max:          1160px;    /* largura máxima do conteúdo */
  --radius:       10px;
  --font-head: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--brand-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  text-decoration: none;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); font-weight: 800; margin-bottom: .6em; }
h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: .4em; letter-spacing: -.01em; }
p  { margin-bottom: 1rem; color: var(--ink-soft); }
a  { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--brand);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-body);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn--wa { background: #128c5e; color: #fff; }
.btn--wa:hover { background: #0d6f49; color: #fff; }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--hero-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn--hero-ghost:hover { background: #fff; color: var(--ink); }
.btn--lg { padding: 16px 32px; font-size: 1.03rem; }
.btn--block { width: 100%; text-align: center; }
.icon-wa { width: 20px; height: 20px; flex-shrink: 0; fill: currentColor; }

.muted { color: var(--ink-soft); font-size: .92rem; }

/* ---------- cabeçalho e navegação ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px 20px; max-width: var(--max); margin: 0 auto;
}
.nav__logo { color: var(--ink); font-size: 1.05rem; letter-spacing: -.01em; }
.nav__logo:hover { color: var(--brand); text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: 20px; list-style: none; }
.nav__links a { color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav__links a:hover { color: var(--brand); text-decoration: none; }

/* submenu de serviços */
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  min-width: 240px; padding: 8px 0; box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.has-dropdown::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; display: none;
}
.has-dropdown:hover::after,
.has-dropdown:focus-within::after { display: block; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li { list-style: none; }
.dropdown a { display: block; padding: 9px 18px; font-size: .92rem; }
.dropdown a:hover { background: var(--bg-alt); }

.nav__call {
  background: var(--brand); color: #fff !important;
  padding: 10px 16px; border-radius: var(--radius); font-weight: 600;
  white-space: nowrap;
}
.nav__call:hover { background: var(--brand-dark); text-decoration: none; }

/* botão do menu móvel */
.nav__toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: 4px 10px; font-size: 1.45rem; cursor: pointer; color: var(--ink);
}
@media (max-width: 960px) {
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px;
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; padding: 8px 0; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 4px 0 4px 14px; min-width: 0; }
  .nav__toggle { display: block; }
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: .88rem;
}
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  list-style: none; color: var(--ink-soft);
}
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: #94a3b8; }
.breadcrumbs a { color: var(--brand); font-weight: 500; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19,32,44,.62), rgba(19,32,44,.84));
  z-index: 1;
}
.hero__inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 84px 20px; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .84rem; font-weight: 700; color: #a7f3d0; margin-bottom: .5rem; }
.hero h1 { color: #fff; margin: 8px 0 16px; max-width: 22ch; }
.hero p { color: rgba(255,255,255,.92); font-size: 1.12rem; max-width: 52ch; }
.hero__cta { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- seções ---------- */
.section { padding: 60px 0; }
.section--compact { padding: 28px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.84); }
.section__lead { max-width: 68ch; }
.center { text-align: center; }
.center .section__lead { margin: 0 auto; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.mb-22 { margin-bottom: 22px; }

/* figuras e imagens de conteúdo */
.media-banner {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 24px rgba(19, 32, 44, .06);
}
.media-banner img { width: 100%; height: auto; display: block; }
.media-banner figcaption {
  padding: 11px 16px;
  font-size: .88rem;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.media-card {
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}
.media-card img {
  margin: 0 auto;
  border-radius: 6px;
}
.media-card figcaption {
  margin-top: 10px;
  font-size: .88rem;
  color: var(--ink-soft);
}

/* ícones de confiança e condições tratadas */
.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.icon-badge svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.condition-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.condition-card:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 18px rgba(0, 122, 96, .08);
}
.condition-card .icon-badge {
  width: 42px;
  height: 42px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.condition-card h3 { font-size: 1.06rem; margin-bottom: .25em; }
.condition-card p { font-size: .92rem; margin-bottom: 0; }

.trust-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 26px;
}
.trust-card h3 { margin-bottom: .45em; }
.trust-card p:last-child { margin-bottom: 0; }

/* layout em duas colunas */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* grades de cartões */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }

/* listas de links (serviços e bairros) */
.linklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; }
@media (max-width: 820px) { .linklist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .linklist { grid-template-columns: 1fr; } }
.linklist a {
  display: block; padding: 13px 16px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--ink); font-weight: 600;
  font-size: .95rem;
}
.linklist a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* tabela de custos e caixa informativa */
.table-wrap { overflow-x: auto; margin-top: 22px; }
table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .96rem; vertical-align: top; }
th { background: var(--bg-alt); font-family: var(--font-body); font-weight: 700; color: var(--ink); }
tr:last-child td { border-bottom: 0; }

.cost-note, .source-box {
  margin-top: 20px;
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
}
.cost-note p:last-child, .source-box p:last-child, .source-box ul:last-child { margin-bottom: 0; }
.source-box ul { margin: 10px 0 0 1.25rem; color: var(--ink-soft); }
.source-box li { margin-bottom: .45rem; }
.source-box a { font-weight: 600; text-decoration: underline; }

/* perguntas frequentes (FAQ) */
.faq { max-width: 820px; margin: 26px auto 0; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-family: var(--font-head);
  font-size: 1.06rem; padding: 16px 28px 16px 0; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--brand); font-size: 1.4rem; line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { padding-bottom: 16px; margin-bottom: 0; }

/* faixa de chamada para ação */
.cta-band { background: var(--brand); color: #fff; text-align: center; padding: 54px 20px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 58ch; margin-left: auto; margin-right: auto; }
.cta-band__actions { margin-top: 22px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn { background: #fff; color: var(--brand-dark); }
.cta-band .btn:hover { background: #f0f5f3; }
.cta-band .btn--hero-ghost { background: transparent; color: #fff; border-color: #fff; }
.cta-band .btn--hero-ghost:hover { background: #fff; color: var(--brand-dark); }
.cta-band__note { color: rgba(255,255,255,.86); font-size: .92rem; margin-top: 12px; margin-bottom: 0; }

/* ---------- formulários ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff;
}
.field textarea { min-height: 125px; resize: vertical; }
.form-hint { font-size: .86rem; color: var(--ink-soft); margin-top: 10px; margin-bottom: 0; }

/* ---------- rodapé ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.84); padding: 56px 0 28px; }
.footer__title {
  color: #fff; margin-bottom: 14px; font-family: var(--font-body);
  font-size: 1rem; font-weight: 700; letter-spacing: .02em;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.15fr; gap: 34px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.86); font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.footer-text { color: rgba(255,255,255,.84); font-size: .93rem; }
.footer-hours { color: #a7f3d0; font-size: .9rem; margin-top: 10px; line-height: 1.55; }
.footer-disclaimer { font-size: .83rem; color: rgba(255,255,255,.68); margin-top: 10px; line-height: 1.5; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.16); margin-top: 38px; padding-top: 20px;
  font-size: .85rem; color: rgba(255,255,255,.68);
}

/* ---------- páginas de artigo (sobre, FAQ, jurídicas) ---------- */
.article { max-width: 820px; }
.article--center { text-align: center; margin-left: auto; margin-right: auto; }
.article--center .section__lead { margin: 18px auto 0; }
.article h1 { margin-bottom: 14px; }
.article h2 { margin-top: 36px; }
.article h3 { margin-top: 24px; }
.article ul, .article ol { margin: 0 0 1rem 1.35em; color: var(--ink-soft); }
.article li { margin-bottom: .5rem; }
.article__date { margin-top: -4px; }
.faq-page h2 { font-size: 1.32rem; margin-top: 32px; }
.contact-list { list-style: none; margin: 22px 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }

/* classe estável para rastreamento de chamadas */
.wc-phone { font-weight: 700; }
