/* ============================================================
   Chaveiro 24h — estilos do site público
   Tema escuro com acento âmbar (convertido do design original).
   ============================================================ */

:root {
  color-scheme: dark;
  --background: oklch(0.17 0.025 256);
  --foreground: oklch(0.96 0.008 95);
  --card: oklch(0.22 0.03 256);
  --card-foreground: oklch(0.96 0.008 95);
  --primary: oklch(0.28 0.04 256);
  --primary-foreground: oklch(0.98 0.004 95);
  --secondary: oklch(0.24 0.025 256);
  --muted: oklch(0.24 0.025 256);
  --muted-foreground: oklch(0.68 0.02 256);
  --accent: oklch(0.74 0.13 75);
  --accent-foreground: oklch(0.2 0.03 256);
  --border: oklch(0.38 0.03 256 / 45%);
  --radius: 0.5rem;
}

/* Fallback para browsers sem suporte a oklch */
@supports not (color: oklch(0 0 0)) {
  :root {
    --background: #181d2a;
    --foreground: #f2f1ec;
    --card: #222838;
    --card-foreground: #f2f1ec;
    --primary: #2c3346;
    --primary-foreground: #fafaf8;
    --secondary: #242a39;
    --muted: #242a39;
    --muted-foreground: #98a1b3;
    --accent: #e0a23c;
    --accent-foreground: #2a2014;
    --border: rgba(120, 132, 158, 0.35);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) { .container { padding: 0 1.5rem; } }

.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.icon-sm { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon-lg { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }

.accent-text { color: var(--accent); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  font-size: 1rem;
  padding: 0.875rem 1.5rem;
}
.btn-accent { background: var(--accent); color: var(--accent-foreground); }
.btn-accent:hover { transform: scale(1.02); }
.btn-outline {
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
  font-weight: 600;
}
.btn-outline:hover { background: var(--secondary); }
.btn-ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--primary-foreground);
  font-weight: 600;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--background) 90%, transparent);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.5rem; }
.brand-mark {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
}
.brand-name { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.nav-desktop { display: none; align-items: center; gap: 1.75rem; }
.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}
.nav-desktop a:hover { color: var(--foreground); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-whatsapp {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.header-whatsapp:hover { opacity: 0.9; }
.menu-toggle {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
}
.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--background);
}
.nav-mobile.open { display: block; }
.nav-mobile nav { display: flex; flex-direction: column; padding: 0.5rem 1rem; }
.nav-mobile a {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 500;
}
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile .header-whatsapp {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 0;
}

@media (min-width: 640px) { .header-whatsapp { display: flex; } }
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  align-items: center;
  gap: 2.5rem;
  padding: 3.5rem 0;
}
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; padding: 5rem 0; }
}
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: color-mix(in oklch, var(--accent) 20%, transparent);
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 40%, transparent);
}
.pulse { position: relative; display: inline-flex; width: 0.5rem; height: 0.5rem; }
.pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--accent);
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.pulse::after {
  content: "";
  position: relative;
  display: inline-flex;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--accent);
}
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }

.hero h1 {
  margin-top: 1.25rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 768px) { .hero h1 { font-size: 3.75rem; } }
.hero-sub {
  margin-top: 1rem;
  max-width: 28rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}
.hero-cta {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}
@media (min-width: 640px) { .hero-cta { flex-direction: row; align-items: center; } }
.hero-stats {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  width: 100%;
}
.hero-stats > div { display: flex; flex-direction: column; gap: 0.25rem; }
.hero-stats svg { color: var(--accent); }
.hero-stats dt { font-size: 1.25rem; font-weight: 700; }
.hero-stats dd { font-size: 0.75rem; color: var(--muted-foreground); }
.hero-image {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure { position: relative; }
.hero-callout {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  display: none;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.hero-callout p:first-child { font-size: 0.875rem; font-weight: 600; }
.hero-callout p:last-child { font-size: 0.875rem; color: var(--muted-foreground); }
@media (min-width: 640px) { .hero-callout { display: block; } }

/* ---------- Secções genéricas ---------- */
.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }
.section-alt { background: color-mix(in oklch, var(--secondary) 50%, var(--background)); }
.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.section h2 {
  margin-top: 0.5rem;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { .section h2 { font-size: 2.25rem; } }
.section-lead { margin-top: 0.75rem; color: var(--muted-foreground); max-width: 42rem; }

/* ---------- Serviços ---------- */
.services-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.2s ease;
}
.service-card:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
.service-badge {
  position: absolute;
  right: 1rem;
  top: 1rem;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.service-icon {
  display: flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
}
.service-card h3 { margin-top: 1rem; font-size: 1.125rem; font-weight: 700; }
.service-card p { margin-top: 0.5rem; flex: 1; font-size: 0.875rem; color: var(--muted-foreground); }
.service-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.service-link:hover { color: var(--accent); }
.service-card:hover .service-link svg { transform: translateX(2px); }
.service-link svg { transition: transform 0.15s ease; }

/* ---------- Porquê nós ---------- */
.split-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .split-grid { grid-template-columns: repeat(2, 1fr); } }
.split-image {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
.reasons-grid { margin-top: 2rem; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .reasons-grid { grid-template-columns: repeat(2, 1fr); } }
.reason { display: flex; gap: 0.75rem; }
.reason-icon {
  display: flex;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-foreground);
}
.reason h3 { font-weight: 700; }
.reason p { margin-top: 0.25rem; font-size: 0.875rem; color: color-mix(in oklch, var(--foreground) 75%, transparent); }
@media (min-width: 768px) {
  .order-1-md { order: 1; }
  .order-2-md { order: 2; }
}

/* ---------- Processo ---------- */
.process { background: var(--primary); color: var(--primary-foreground); }
.process h2 { color: var(--primary-foreground); }
.process-grid { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }
.process-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
}
.process-card .reason-icon { background: var(--accent); }
.process-card h3 { margin-top: 1rem; font-size: 1.125rem; font-weight: 700; }
.process-card p { margin-top: 0.5rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); }

/* ---------- Cobertura ---------- */
.coverage-box {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
}
@media (min-width: 768px) { .coverage-box { padding: 3rem; } }
.coverage-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .coverage-grid { grid-template-columns: 2fr 3fr; align-items: start; } }
.coverage-cta { margin-top: 1.5rem; display: none; flex-direction: column; gap: 0.75rem; }
@media (min-width: 768px) { .coverage-cta { display: flex; } }
.coverage-cta .btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.areas-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
.area-card {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--secondary) 80%, var(--background));
  padding: 1.25rem;
  transition: border-color 0.15s ease;
}
.area-card:hover { border-color: color-mix(in oklch, var(--accent) 30%, transparent); }
.area-head { display: flex; align-items: center; gap: 0.625rem; }
.area-icon {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--accent);
}
.area-card h3 { font-size: 1.125rem; font-weight: 700; }
.chips { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ---------- Depoimentos ---------- */
.testimonials-head { margin: 0 auto; max-width: 42rem; text-align: center; }
.stars { display: flex; align-items: center; justify-content: center; gap: 0.25rem; color: var(--accent); }
.stars svg { fill: var(--accent); }
.testimonials-grid { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial {
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
}
.testimonial .stars-row { display: flex; gap: 0.125rem; color: var(--accent); }
.testimonial .stars-row svg { width: 1rem; height: 1rem; fill: var(--accent); }
.testimonial blockquote { margin-top: 0.75rem; flex: 1; }
.testimonial figcaption { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.testimonial figcaption .name { display: block; font-weight: 600; }
.testimonial figcaption .loc { font-size: 0.875rem; color: var(--muted-foreground); }

/* ---------- Contacto CTA ---------- */
.contact-box {
  overflow: hidden;
  border-radius: 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
}
.contact-grid { display: grid; gap: 2rem; padding: 2rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(2, 1fr); align-items: center; padding: 3rem; } }
.contact-box h2 { color: var(--primary-foreground); }
.contact-box .section-lead { color: rgba(255, 255, 255, 0.7); }
.contact-cta-btns { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .contact-cta-btns { flex-direction: row; } }
.contact-info {
  display: grid;
  gap: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
}
.contact-info-row { display: flex; align-items: flex-start; gap: 0.75rem; }
.contact-info-row svg { margin-top: 0.125rem; color: var(--accent); }
.contact-info-row .label { display: block; font-size: 0.875rem; font-weight: 600; }
.contact-info-row .value { font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); }
.contact-info-row a.value:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Rodapé ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: color-mix(in oklch, var(--secondary) 50%, var(--background));
}
.footer-grid { display: grid; gap: 2rem; padding: 3rem 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-grid h3 { font-size: 0.875rem; font-weight: 600; }
.footer-grid ul, .footer-col p { margin-top: 0.75rem; }
.footer-grid li, .footer-col p, .footer-col a { font-size: 0.875rem; color: color-mix(in oklch, var(--foreground) 75%, transparent); }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-col a:hover { color: var(--accent); }
.footer-desc { margin-top: 0.75rem; max-width: 20rem; font-size: 0.875rem; color: color-mix(in oklch, var(--foreground) 75%, transparent); }
.footer-phone { margin-top: 0.75rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; }
.footer-phone:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 0;
  font-size: 0.75rem;
  color: color-mix(in oklch, var(--foreground) 60%, transparent);
}
@media (min-width: 768px) { .footer-bottom-inner { flex-direction: row; } }
.footer-bottom-inner a { font-weight: 500; color: var(--foreground); }
.footer-bottom-inner a:hover { color: var(--accent); }

/* ---------- Botão flutuante ---------- */
.floating-call {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 0.875rem 1.25rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}
.floating-call:hover { transform: scale(1.05); }

/* ---------- Faixa de pré-visualização (só visível ao admin) ---------- */
.preview-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  text-align: center;
}
.preview-bar a {
  text-decoration: underline;
  font-weight: 700;
}
