/* ============================================================
   SOS Chaveiro 24 Horas Botucatu — Design System (CSS puro)
   ============================================================ */

:root {
  --c-navy-900: #0a1220;
  --c-navy-800: #0f1b2e;
  --c-navy-700: #16273f;
  --c-navy-600: #1f3552;
  --c-gold-600: #b8871f;
  --c-gold-500: #c9a227;
  --c-gold-400: #dab94a;
  --c-gold-100: #f7ecc9;
  --c-whats: #25d366;
  --c-whats-dark: #1ebe57;
  --c-white: #ffffff;
  --c-ink: #16233c;
  --c-ink-soft: #45536b;
  --c-gray-50: #f6f7fa;
  --c-gray-100: #eef1f6;
  --c-gray-200: #dde2ea;
  --c-danger: #c0392b;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 8px rgba(10, 18, 32, 0.08);
  --shadow-md: 0 10px 30px rgba(10, 18, 32, 0.14);
  --shadow-lg: 0 20px 50px rgba(10, 18, 32, 0.22);

  --container-w: 1180px;
  --header-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--c-ink);
  background: var(--c-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; }
p { margin: 0 0 1em; color: var(--c-ink-soft); }
button { font: inherit; }
svg { display: block; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--c-gold-500);
  color: var(--c-navy-900);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

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

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn-whats {
  background: var(--c-whats);
  color: var(--c-white);
  box-shadow: var(--shadow-sm);
}
.btn-whats:hover { background: var(--c-whats-dark); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: inherit;
}
.hero .btn-outline { border-color: rgba(255, 255, 255, 0.55); color: var(--c-white); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, 0.1); }
.btn-gold {
  background: var(--c-gold-500);
  color: var(--c-navy-900);
}
.btn-gold:hover { background: var(--c-gold-400); box-shadow: var(--shadow-md); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(10, 18, 32, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-white);
  font-weight: 800;
  font-size: 1.05rem;
}
.brand img { border-radius: var(--radius-sm); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--c-gold-400); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-cta-label { display: inline; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--c-white);
  cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }
#nav-check { display: none; }

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--c-navy-800);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .main-nav a {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  #nav-check:checked ~ .main-nav { max-height: 320px; }
  .nav-toggle { display: inline-flex; }
  .header-cta-label { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(201, 162, 39, 0.25), transparent 60%),
    linear-gradient(160deg, var(--c-navy-900), var(--c-navy-700));
  color: var(--c-white);
  padding: clamp(20px, 3vw, 40px) 0 clamp(26px, 4vw, 48px);
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h) - 48px);
  min-height: calc(100svh - var(--header-h) - 48px);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  width: 100%;
}
.eyebrow {
  color: var(--c-gold-400);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 8px;
}
.hero h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  margin-bottom: 12px;
  color: var(--c-white);
}
.hero h1 mark {
  background: none;
  color: inherit;
}
.hero-lead {
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 56ch;
  margin-bottom: 0.6em;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 18px;
}
.hero-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
}
.hero-trust svg { width: 20px; height: 20px; color: var(--c-gold-400); flex-shrink: 0; }
.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-visual img {
  max-width: 70%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-trust { grid-template-columns: 1fr; }
}

/* ---------- Faixa de emergência 24h ---------- */
.emergency-bar {
  background: var(--c-gold-500);
  color: var(--c-navy-900);
}
.emergency-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  padding: 9px 20px;
  font-weight: 700;
  text-align: center;
  font-size: 0.9rem;
}
.emergency-bar svg { width: 20px; height: 20px; flex-shrink: 0; }
.emergency-bar a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Seções genéricas ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--c-gray-50); }
.section-dark { background: var(--c-navy-900); color: var(--c-white); }
.section-dark p { color: rgba(255, 255, 255, 0.75); }
.section-dark .eyebrow { color: var(--c-gold-400); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------- Diferenciais ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
}
.diff-card {
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.diff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.diff-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--c-navy-900);
  color: var(--c-gold-400);
  margin-bottom: 16px;
}
.diff-card .icon svg { width: 26px; height: 26px; }
.diff-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.diff-card p { margin: 0; font-size: 0.94rem; }

/* ---------- Quem somos ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}
.about-grid h3 { margin-top: 28px; font-size: 1.15rem; }
.mvv-grid {
  display: grid;
  gap: 18px;
}
.mvv-card {
  background: var(--c-gray-50);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-md);
  padding: 22px;
}
.mvv-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.mvv-card ul { display: grid; gap: 6px; }
.mvv-card li {
  font-size: 0.92rem;
  color: var(--c-ink-soft);
  padding-left: 18px;
  position: relative;
}
.mvv-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-gold-500);
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

.quote-banner {
  margin-top: 56px;
  background: linear-gradient(160deg, var(--c-navy-900), var(--c-navy-700));
  color: var(--c-white);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 56px);
  text-align: center;
}
.quote-banner h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.quote-banner p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}
.quote-banner .btn { margin-top: 10px; }

/* ---------- Serviços ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card .thumb { aspect-ratio: 777 / 521; overflow: hidden; background: var(--c-gray-100); }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 0; }
.service-card p { font-size: 0.92rem; flex: 1; margin-bottom: 4px; }

/* ---------- Galeria ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--c-gray-100);
  border: 1px solid var(--c-gray-200);
  display: block;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(10, 18, 32, 0.85), transparent);
  color: var(--c-white);
  font-weight: 700;
  font-size: 0.92rem;
}

/* Lightbox (via :target, sem JS) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 18, 32, 0.92);
  padding: 30px;
}
.lightbox:target { display: flex; }
.lightbox-inner { max-width: 900px; width: 100%; text-align: center; }
.lightbox-inner img {
  border-radius: var(--radius-md);
  max-height: 78vh;
  width: auto;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-lg);
}
.lightbox-caption { color: var(--c-white); font-weight: 700; margin-bottom: 16px; }
.lightbox-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-navy-900);
  background: var(--c-gold-500);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
}
.lightbox-close:hover { background: var(--c-gold-400); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-md);
  padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { width: 20px; height: 20px; color: var(--c-gold-600); flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item p { padding-bottom: 18px; margin: 0; }

/* ---------- Contato ---------- */
.contact-card-full {
  background: var(--c-navy-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
.contact-card-cols {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.contact-list { display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 24px; height: 24px; color: var(--c-gold-400); flex-shrink: 0; margin-top: 2px; }
.contact-list strong { display: block; color: var(--c-white); margin-bottom: 2px; }
.contact-list span, .contact-list a { color: rgba(255, 255, 255, 0.78); }
.contact-list a:hover { color: var(--c-gold-400); }

.contact-side { display: flex; flex-direction: column; gap: 22px; }

.contact-form { display: grid; gap: 14px; }
.form-field { display: grid; gap: 6px; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-white);
  font: inherit;
  font-size: 0.95rem;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255, 255, 255, 0.45); }
.form-field select option { color: var(--c-ink); }
.form-field textarea { resize: vertical; min-height: 70px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--c-gold-500); }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); margin: 0; }

.social-row { display: flex; gap: 12px; }
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-white);
  transition: background 0.15s ease, transform 0.15s ease;
}
.social-btn svg { width: 20px; height: 20px; }
.social-btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.16); }
.social-btn.btn-whats { background: var(--c-whats); }
.social-btn.btn-whats:hover { background: var(--c-whats-dark); }

@media (max-width: 780px) {
  .contact-card-cols { grid-template-columns: 1fr; }
}

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center;
  background: linear-gradient(135deg, var(--c-gold-500), var(--c-gold-600));
  color: var(--c-navy-900);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 56px);
}
.cta-final h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-final p { color: rgba(10, 18, 32, 0.8); max-width: 56ch; margin: 0 auto 20px; }
.cta-final .btn-whats { box-shadow: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-navy-900);
  color: rgba(255, 255, 255, 0.8);
  padding: clamp(48px, 7vw, 72px) 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1.1fr;
  gap: clamp(24px, 4vw, 40px);
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { border-radius: var(--radius-sm); }
.site-footer p { color: #ffffff; }
.footer-col h4 { color: var(--c-white); font-size: 0.95rem; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--c-gold-400); }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}
.footer-bottom .credit { color: var(--c-gold-400); font-weight: 700; }
.footer-bottom a[href*="politica"] { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Botão flutuante WhatsApp ---------- */
.whats-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--c-whats);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 400;
  transition: transform 0.15s ease;
}
.whats-float svg { width: 30px; height: 30px; }
.whats-float:hover { transform: scale(1.08); background: var(--c-whats-dark); }

/* ---------- Banner de consentimento LGPD ---------- */
.lgpd-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 620px;
  margin: 0 auto;
  background: var(--c-navy-900);
  color: var(--c-white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
  z-index: 950;
  display: none;
}
.lgpd-banner.is-visible { display: block; }
.lgpd-banner p { color: rgba(255, 255, 255, 0.85); font-size: 0.88rem; margin-bottom: 14px; }
.lgpd-banner a { text-decoration: underline; color: var(--c-gold-400); }
.lgpd-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.lgpd-actions button {
  border: none;
  border-radius: var(--radius-full);
  padding: 10px 20px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.88rem;
}
.lgpd-accept { background: var(--c-gold-500); color: var(--c-navy-900); }
.lgpd-accept:hover { background: var(--c-gold-400); }
.lgpd-reject { background: transparent; color: var(--c-white); border: 1px solid rgba(255, 255, 255, 0.3) !important; }
.lgpd-reject:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Página de política de privacidade ---------- */
.policy-content { max-width: 820px; margin: 0 auto; }
.policy-content h2 { font-size: 1.3rem; margin-top: 2em; }
.policy-content h2:first-child { margin-top: 0; }
.policy-content ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.policy-content li { color: var(--c-ink-soft); margin-bottom: 6px; }
.policy-updated { color: var(--c-ink-soft); font-size: 0.9rem; margin-bottom: 2em; }

/* ---------- Utilidades ---------- */
.breadcrumb {
  padding: 18px 0;
  font-size: 0.88rem;
  color: var(--c-ink-soft);
}
.breadcrumb a:hover { color: var(--c-gold-600); }
