/* ==========================================================
   Martins Sistemas de Segurança — Static Site
   Dark security palette + yellow accent
   ========================================================== */

:root {
  --background: oklch(0.14 0.005 240);
  --foreground: oklch(0.97 0.005 240);
  --surface: oklch(0.18 0.006 240);
  --surface-elevated: oklch(0.22 0.007 240);
  --card: oklch(0.18 0.006 240);
  --primary: oklch(0.85 0.17 90);
  --primary-foreground: oklch(0.14 0.005 240);
  --muted-foreground: oklch(0.7 0.01 240);
  --border: oklch(0.28 0.008 240);
  --destructive: oklch(0.62 0.2 25);
  --gradient-hero: linear-gradient(135deg, oklch(0.12 0.005 240) 0%, oklch(0.18 0.01 240) 100%);
  --shadow-yellow: 0 10px 40px -10px oklch(0.85 0.17 90 / 0.35);
  --shadow-elevated: 0 20px 60px -15px oklch(0 0 0 / 0.6);
  --font-display: "Oswald", "Inter", sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
* { border-color: var(--border); }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px;
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  margin: 0;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* Layout helpers */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.container-narrow { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
.container-faq { max-width: 48rem; margin: 0 auto; padding: 0 1rem; }

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.text-gradient-yellow { color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.2s, border-color 0.2s, background 0.2s;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-yellow);
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline {
  background: var(--surface);
  color: var(--foreground);
  border-color: var(--border);
}
.btn-outline:hover { border-color: oklch(0.85 0.17 90 / 0.5); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }

@keyframes cta-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 oklch(0.85 0.17 90 / 0.55), var(--shadow-yellow);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px oklch(0.85 0.17 90 / 0), var(--shadow-yellow);
    transform: scale(1.02);
  }
}
.animate-cta { animation: cta-pulse 2.4s ease-in-out infinite; }

.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 1.75rem; height: 1.75rem; }

/* ===== Header (desktop only) ===== */
.site-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid oklch(0.28 0.008 240 / 0.5);
  background: oklch(0.14 0.005 240 / 0.85);
  backdrop-filter: blur(12px);
}
@media (min-width: 768px) { .site-header { display: block; } }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.site-header img { height: 3rem; width: auto; }
.site-header nav {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.site-header nav a:hover { color: var(--foreground); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}
.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-size: cover;
  background-position: center;
  background-image:
    linear-gradient(rgba(15,15,20,0.85), rgba(15,15,20,0.97)),
    url("assets/hero-monitoring.jpg");
}
.hero-inner {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  text-align: center;
}
@media (min-width: 640px) { .hero-inner { padding: 3.5rem 1.5rem; } }
@media (min-width: 1024px) { .hero-inner { padding: 4rem 2rem; } }

.hero-logo {
  margin: 0 auto;
  height: 8rem;
  width: auto;
}
@media (min-width: 640px) { .hero-logo { height: 11rem; } }
@media (min-width: 1024px) { .hero-logo { height: 13rem; } }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid oklch(0.85 0.17 90 / 0.3);
  background: oklch(0.85 0.17 90 / 0.1);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
@media (min-width: 640px) { .badge { font-size: 0.75rem; } }

.hero h1 {
  max-width: 48rem;
  margin: 1.25rem auto 0;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }

.hero-sub {
  max-width: 36rem;
  margin: 1.25rem auto 0;
  font-size: 1rem;
  color: var(--muted-foreground);
}
@media (min-width: 640px) { .hero-sub { font-size: 1.125rem; } }
.hero-sub strong { color: var(--foreground); font-weight: 700; }

.hero-actions {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
@media (min-width: 640px) { .hero-actions { display: flex; } }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 36rem;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(0.28 0.008 240 / 0.5);
}
@media (min-width: 640px) { .stats { gap: 1.5rem; padding-top: 2rem; } }
.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}
@media (min-width: 640px) { .stat-value { font-size: 1.875rem; } }
.stat-label {
  margin-top: 0.25rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}
@media (min-width: 640px) { .stat-label { font-size: 0.75rem; } }

/* ===== Trust Bar ===== */
.trustbar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: oklch(0.18 0.006 240 / 0.5);
}
.trustbar .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
}
@media (min-width: 640px) { .trustbar .grid { grid-template-columns: repeat(4, 1fr); } }
.trustbar .item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
@media (min-width: 640px) { .trustbar .item { justify-content: center; } }
.trustbar .item svg { color: var(--primary); }

/* ===== Sections ===== */
.section { padding: 3.5rem 0; }
@media (min-width: 640px) { .section { padding: 6rem 0; } }
.section-surface { background: oklch(0.18 0.006 240 / 0.4); }

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}
.section-title {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  font-weight: 700;
}
@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .section-title { font-size: 3rem; } }
.section-lead {
  margin-top: 1rem;
  color: var(--muted-foreground);
}

/* ===== Risks ===== */
.risks { position: relative; overflow: hidden; }
.risks-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-size: cover;
  background-position: center;
  background-image:
    linear-gradient(rgba(15,15,20,0.92), rgba(15,15,20,0.98)),
    url("assets/condo-entrance.jpg");
}
.risks .grid {
  display: grid;
  gap: 3rem;
  position: relative;
}
@media (min-width: 1024px) {
  .risks .grid { grid-template-columns: 1fr 1fr; align-items: center; }
}
.alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid oklch(0.62 0.2 25 / 0.4);
  background: oklch(0.62 0.2 25 / 0.1);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--destructive);
}
.risks-img {
  margin-top: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-elevated);
}
.risks-list { display: flex; flex-direction: column; gap: 1rem; }
.risk-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: oklch(0.18 0.006 240 / 0.8);
  backdrop-filter: blur(4px);
}
.risk-card .ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: oklch(0.62 0.2 25 / 0.15);
  color: var(--destructive);
  flex-shrink: 0;
}
.risk-card p { font-size: 0.875rem; line-height: 1.6; }

/* ===== Services ===== */
.services-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3.5rem;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: oklch(0.85 0.17 90 / 0.4);
  box-shadow: var(--shadow-yellow);
}
.service-card .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 0.5rem;
  background: oklch(0.85 0.17 90 / 0.15);
  color: var(--primary);
}
.service-card h3 { font-size: 1.125rem; font-weight: 700; }
.service-card p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }

/* ===== Benefits ===== */
.benefits .grid {
  display: grid;
  gap: 3.5rem;
}
@media (min-width: 1024px) { .benefits .grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.checks { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.checks li { display: flex; align-items: flex-start; gap: 0.75rem; }
.checks li svg { color: var(--primary); margin-top: 0.125rem; flex-shrink: 0; }
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.benefit-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
}
.benefit-card svg { color: var(--primary); }
.benefit-card h3 { margin-top: 1rem; font-size: 1rem; font-weight: 700; }
.benefit-card p { margin-top: 0.375rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* ===== How it works ===== */
.steps-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3.5rem;
}
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }
.step-card {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
}
.step-card img { height: 11rem; width: 100%; object-fit: cover; }
.step-card .body { padding: 1.25rem; }
.step-card h3 { font-size: 1rem; font-weight: 700; color: var(--primary); }
.step-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* ===== Process ===== */
.process .grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .process .grid { grid-template-columns: 1fr 1.2fr; align-items: center; } }
.process-img-wrap { position: relative; display: none; }
@media (min-width: 1024px) { .process-img-wrap { display: block; } }
.process-img-wrap::before {
  content: "";
  position: absolute;
  inset: -1rem;
  border-radius: 1rem;
  background: oklch(0.85 0.17 90 / 0.1);
  filter: blur(40px);
}
.process-img-wrap img {
  position: relative;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-elevated);
}
.process-img-mobile {
  margin-top: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-elevated);
}
@media (min-width: 1024px) { .process-img-mobile { display: none; } }
.process-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.process-step { display: flex; gap: 1rem; }
.process-step .ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  border: 1px solid oklch(0.85 0.17 90 / 0.3);
  background: oklch(0.85 0.17 90 / 0.1);
  color: var(--primary);
  flex-shrink: 0;
}
.process-step h3 { font-size: 1rem; font-weight: 700; }
.process-step h3 span { color: var(--primary); }
.process-step p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* ===== Coverage ===== */
.coverage-pills { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.pill {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid oklch(0.85 0.17 90 / 0.4);
  background: oklch(0.85 0.17 90 / 0.1);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

/* ===== FAQ ===== */
.faq-list { margin-top: 3rem; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: oklch(0.85 0.17 90 / 0.4); }
.faq-item summary {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { color: var(--primary); transition: transform 0.2s; flex-shrink: 0; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }

/* ===== CTA ===== */
.cta-card {
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
  border-radius: 1rem;
  border: 1px solid oklch(0.85 0.17 90 / 0.3);
  background: linear-gradient(135deg, var(--surface), var(--surface-elevated));
  box-shadow: var(--shadow-elevated);
}
@media (min-width: 640px) { .cta-card { padding: 4rem; } }
.cta-card::before {
  content: "";
  position: absolute;
  top: -5rem; right: -5rem;
  width: 16rem; height: 16rem;
  border-radius: 9999px;
  background: oklch(0.85 0.17 90 / 0.2);
  filter: blur(40px);
}
.cta-card .inner { position: relative; }
.cta-card h2 {
  max-width: 36rem;
  font-size: 1.875rem;
  font-weight: 700;
}
@media (min-width: 640px) { .cta-card h2 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .cta-card h2 { font-size: 3rem; } }
.cta-card p {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}
.cta-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: oklch(0.18 0.006 240 / 0.6);
  padding: 3rem 0;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid img { height: 3.5rem; width: auto; }
.footer-grid h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-grid ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.footer-grid ul li { display: flex; align-items: center; gap: 0.5rem; }
.footer-grid ul svg { color: var(--primary); }
.footer-grid > div > p { margin-top: 1rem; max-width: 22rem; font-size: 0.875rem; color: var(--muted-foreground); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ===== Mobile sticky CTA ===== */
.mobile-cta {
  position: fixed;
  inset: auto 0.75rem 0.75rem 0.75rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  box-shadow: var(--shadow-elevated);
}
@media (min-width: 768px) { .mobile-cta { display: none; } }

/* WhatsApp icon dark filter */
.wa-icon { width: 1.25rem; height: 1.25rem; filter: brightness(0); }
.wa-icon-sm { width: 1rem; height: 1rem; filter: brightness(0); }
