/* ============================================================
   Sertão Clima — styles
   Design Spec v1.0.0 · tokens centralizados em :root
   ============================================================ */

:root {
  /* Marca (teal derivado da placa real) */
  --brand: #0E7C72;
  --brand-strong: #0A5F58;
  --brand-700: #0C6A61;
  --brand-50: #E7F3F1;
  --brand-100: #CFE7E3;
  --accent: #F0A93B;
  --accent-soft: #FCEFDA;
  --wa: #25D366;
  --wa-strong: #1FB457;
  --btn-bg: var(--brand);
  --btn-fg: #FFFFFF;

  /* Texto e superfícies */
  --ink: #0C1A1C;
  --ink-soft: #43595C;
  --ink-mute: #5F7679;
  --surface: #FFFFFF;
  --surface-alt: #F3F7F6;
  --surface-2: #EAF2F1;
  --border: #DCE6E5;
  --border-strong: #C7D8D6;
  --danger: #B42318;
  --footer-bg: #0B1A1C;

  /* Layout */
  --maxw: 1200px;
  --header-h: 68px;

  /* Raios */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Ritmo de espaçamento (base 8) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Movimento */
  --dur-fast: 160ms;
  --dur: 220ms;
  --dur-slow: 380ms;
  --ease-out: cubic-bezier(.16, .84, .44, 1);
  --ease-in: cubic-bezier(.4, 0, .68, .2);

  /* Sombras */
  --shadow-1: 0 1px 2px rgba(12, 26, 28, .05), 0 2px 10px rgba(12, 26, 28, .06);
  --shadow-2: 0 14px 40px rgba(12, 26, 28, .12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4FD1C5;
    --brand-strong: #7FE2D8;
    --brand-700: #3FC3B7;
    --brand-50: #0F2723;
    --brand-100: #14332E;
    --accent: #F5B65A;
    --accent-soft: #3A2C14;
    --btn-bg: #4FD1C5;
    --btn-fg: #06201D;

    --ink: #EAF2F1;
    --ink-soft: #B4C7C6;
    --ink-mute: #8EA6A5;
    --surface: #0B1416;
    --surface-alt: #0F1B1D;
    --surface-2: #132226;
    --border: #22383B;
    --border-strong: #2C474A;
    --danger: #FF8F82;
    --footer-bg: #0F1B1D;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, .40), 0 2px 10px rgba(0, 0, 0, .35);
    --shadow-2: 0 14px 40px rgba(0, 0, 0, .50);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--ink);
  font-family: 'Manrope', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: 'Sora', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.015em;
  color: var(--ink);
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font: inherit; }

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

.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;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--brand);
  color: var(--btn-fg);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: 12px; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) { .container { padding-inline: 32px; } }
.narrow { max-width: 820px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-wa {
  background: var(--wa);
  color: #06331C;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .28);
}
.btn-wa:hover { background: var(--wa-strong); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--brand); }

.btn-outline { background: transparent; color: var(--brand-strong); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-50); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: .875rem; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-1); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  padding-block: 10px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-sub { font-size: .72rem; color: var(--ink-mute); letter-spacing: .02em; }

.brand-logo {
  display: block;
  height: 34px;
  width: auto;
  padding: 4px 9px;
  background: #FFFFFF;
  border-radius: 10px;
}
@media (max-width: 560px) {
  .brand-logo { height: 30px; padding: 3px 7px; }
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav-list { display: flex; gap: 22px; }
.nav-list a {
  position: relative;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .95rem;
  padding-block: 6px;
}
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--brand);
  transition: right var(--dur) var(--ease-out);
}
.nav-list a:hover { color: var(--brand-strong); text-decoration: none; }
.nav-list a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-left: 0;
    padding: 16px 20px 22px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-2);
  }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list a { font-size: 1.05rem; padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 10px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 82px) clamp(48px, 7vw, 96px);
  background: linear-gradient(180deg, var(--brand-50) 0%, var(--surface) 62%);
}
.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }

.eyebrow {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

.hero h1 { font-size: clamp(2.05rem, 1.2rem + 3.2vw, 3.5rem); font-weight: 800; margin-top: .35em; }
.hero-lead {
  max-width: 58ch;
  margin-top: 16px;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem);
  color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: .85rem;
  font-weight: 600;
  box-shadow: var(--shadow-1);
}

.hero-media { position: relative; }
.hero-media img {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
}
.hero-badge {
  position: absolute;
  left: 16px; bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(88%, 320px);
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.hero-badge-ico {
  display: inline-flex;
  flex: none;
  padding: 8px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-strong);
}
.hero-badge-text { display: flex; flex-direction: column; line-height: 1.25; }
.hero-badge-text strong { font-family: 'Sora', sans-serif; font-size: .95rem; }
.hero-badge-text span { font-size: .8rem; color: var(--ink-mute); }

/* ---------- Seções ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-alt { background: var(--surface-alt); }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); margin-top: .4em; }
.section-lead { margin-top: 14px; font-size: 1.05rem; color: var(--ink-soft); }

/* ---------- Serviços ---------- */
.cards { grid-template-columns: 1fr; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-2);
  }
}
.card-media { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
@media (hover: hover) { .card:hover .card-media img { transform: scale(1.04); } }

.card-body { flex: 1; display: flex; flex-direction: column; padding: 20px 20px 22px; }
.card-body h3 { font-size: 1.12rem; }
.card-body p { color: var(--ink-soft); font-size: .96rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--brand-strong);
  font-weight: 700;
  font-size: .92rem;
  transition: gap var(--dur) var(--ease-out);
}
.card-link:hover { text-decoration: none; gap: 11px; }

/* ---------- Diferenciais ---------- */
.features { grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.feature-ico {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand-strong);
}
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- Processo ---------- */
.steps { grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step-num {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 16px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--btn-fg);
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Sobre ---------- */
.about-grid { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.about-photo {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  background: var(--surface-2);
}
.about-caption { margin-top: 12px; font-size: .85rem; color: var(--ink-mute); }
.about-copy h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin-top: .3em; }
.about-copy > p { color: var(--ink-soft); }
.about-copy strong { color: var(--ink); }

.fact-ico { display: inline-flex; flex: none; margin-top: 2px; color: var(--brand-strong); }
.fact dt, .contact-label {
  display: block;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.fact dd { margin: 2px 0 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Faixa ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(10, 95, 88, .93) 0%, rgba(12, 26, 28, .80) 100%);
}
.band-inner { position: relative; z-index: 1; padding-block: clamp(56px, 8vw, 100px); max-width: 760px; }
.band h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); }
.band p { margin-top: 12px; font-size: 1.05rem; color: rgba(255, 255, 255, .9); }
.band .btn { margin-top: 26px; }

/* ---------- Dúvidas ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  flex: none;
  width: 11px; height: 11px;
  margin-top: -4px;
  border-right: 2px solid var(--brand-strong);
  border-bottom: 2px solid var(--brand-strong);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease-out), margin var(--dur) var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-item[open] summary { color: var(--brand-strong); }
.faq-answer { padding: 0 20px 20px; color: var(--ink-soft); }
.faq-answer p { margin: 0; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr .9fr; align-items: start; } }

.contact-actions { display: grid; gap: 12px; }
.contact-value { display: block; color: var(--ink-soft); }
.contact-line { display: flex; }

.map-card {
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
.map-frame { display: block; width: 100%; height: 280px; border: 0; background: var(--surface-2); }
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  color: var(--brand-strong);
  font-weight: 700;
  font-size: .92rem;
}
.map-link:hover { text-decoration: none; background: var(--brand-50); }

.contact-form {
  align-self: start;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.contact-form h3 { font-size: 1.25rem; }
.form-hint { color: var(--ink-mute); font-size: .92rem; }

.contact-form label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); }
.req { color: var(--danger); margin-left: 2px; }
.opt { color: var(--ink-mute); font-weight: 500; font-size: .82rem; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.contact-form textarea { min-height: 96px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--ink-mute); opacity: .75; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 24%, transparent);
}
.contact-form input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .85rem; font-weight: 600; }

/* ---------- Rodapé ---------- */
.site-footer { margin-top: 0; padding-block: clamp(48px, 6vw, 72px) 24px; background: var(--footer-bg); color: #C9D8D7; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }

.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #8AA2A1; }
.footer-brand .brand-logo { height: 42px; margin-bottom: 4px; }
.footer-brand p { max-width: 40ch; color: #A9BDBB; font-size: .95rem; }
.footer-col h3 { margin-bottom: 14px; color: #fff; font-size: .95rem; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #C9D8D7; font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-col li { color: #A9BDBB; font-size: .93rem; }

.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom p { color: #8AA2A1; font-size: .85rem; }

/* ---------- Botão flutuante WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #06331C;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
  transition: transform var(--dur) var(--ease-out);
}
.wa-float:hover { transform: scale(1.06); text-decoration: none; }

/* ---------- Revelação no scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

.cards .reveal:nth-child(2),
.features .reveal:nth-child(2),
.steps .reveal:nth-child(2),
.faq .reveal:nth-child(2) { transition-delay: .05s; }
.cards .reveal:nth-child(3),
.features .reveal:nth-child(3),
.steps .reveal:nth-child(3),
.faq .reveal:nth-child(3) { transition-delay: .1s; }
.cards .reveal:nth-child(4),
.features .reveal:nth-child(4),
.steps .reveal:nth-child(4),
.faq .reveal:nth-child(4) { transition-delay: .15s; }
.cards .reveal:nth-child(5),
.faq .reveal:nth-child(5) { transition-delay: .2s; }

/* ---------- Acessibilidade: movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
  .card:hover .card-media img { transform: none; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
