/* ============================================================
   F. Moço — Segurança Privada | CSS
   Fiel ao design original React/Tailwind
   ============================================================ */

:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(0 0% 5%);
  --card: hsl(0 0% 97%);
  --card-foreground: hsl(0 0% 5%);
  --primary: hsl(40 45% 47%);
  --primary-foreground: hsl(0 0% 100%);
  --secondary: hsl(220 10% 92%);
  --muted: hsl(220 10% 94%);
  --muted-foreground: hsl(220 10% 40%);
  --border: hsl(220 10% 88%);
  --gold: hsl(40 45% 47%);
  --gold-light: hsl(40 50% 60%);
  --radius: 0.75rem;

  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: hsl(0 0% 95%); }
::-webkit-scrollbar-thumb { background: hsl(40 45% 47% / 0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: hsl(40 45% 47% / 0.6); }

/* ── Utility ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.bg-card { background: var(--card); }
.text-gold { color: var(--primary); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 1rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  white-space: nowrap;
}
.btn-primary:hover {
  box-shadow: 0 8px 30px -8px hsl(40 45% 47% / 0.5);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid hsl(40 45% 47% / 0.3);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 1rem 1.75rem;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease;
}
.btn-outline:hover { background: hsl(40 45% 47% / 0.1); }
.btn-full { width: 100%; justify-content: center; padding: 1rem; }

/* ── Section commons ── */
.section { padding: 6rem 0; }
@media (min-width: 768px) { .section { padding: 8rem 0; } }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--foreground);
  line-height: 1.15;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 1rem auto 0;
  line-height: 1.7;
}
.section-desc {
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* ── Icon box ── */
.icon-box {
  width: 3rem; height: 3rem;
  border-radius: 0.75rem;
  background: hsl(40 45% 47% / 0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: background 0.3s;
}

/* ── Image card ── */
.img-card {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
}
.img-card img { width: 100%; height: 16rem; object-fit: cover; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all 0.5s ease;
}
.navbar.scrolled {
  background: hsl(0 0% 100% / 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 0 var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 1.5rem; height: 5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.nav-brand-text { line-height: 1.2; }
.nav-brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.5s;
}
.navbar.scrolled .nav-brand-name { color: var(--foreground); }
.nav-brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
}
.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s;
}
.nav-link:hover { color: var(--primary); }
.navbar.scrolled .nav-link { color: var(--muted-foreground); }
.navbar.scrolled .nav-link:hover { color: var(--primary); }
.nav-cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  transition: box-shadow 0.3s;
}
.nav-cta:hover { box-shadow: 0 4px 20px -4px hsl(40 45% 47% / 0.4); }
/* Mobile toggle */
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  padding: 0.5rem; background: none; border: none; cursor: pointer;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block; width: 1.5rem; height: 2px;
  transition: all 0.3s;
  background: #fff;
}
.navbar.scrolled .nav-toggle span { background: var(--foreground); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
/* Mobile menu */
.mobile-menu {
  display: none; flex-direction: column; gap: 1rem;
  background: hsl(0 0% 100% / 0.98);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  font-family: var(--font-body); font-size: 0.875rem;
  color: var(--muted-foreground); transition: color 0.2s;
}
.mobile-link:hover { color: var(--primary); }
.mobile-cta {
  text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: 0.875rem;
  background: var(--primary); color: var(--primary-foreground);
  padding: 0.625rem 1.25rem; border-radius: var(--radius);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay-h {
  position: absolute; inset: 0;
  background: linear-gradient(to right, #000, rgba(0,0,0,0.8), rgba(0,0,0,0.3));
}
.hero-overlay-v {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent, #000);
}
.hero-content { position: relative; z-index: 10; width: 100%; }
.hero-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: hsl(40 45% 47% / 0.1);
  border: 1px solid hsl(40 45% 47% / 0.2);
  border-radius: 9999px;
  padding: 0.375rem 1rem; margin-bottom: 2rem;
  color: var(--primary);
  font-family: var(--font-body); font-size: 0.75rem;
  font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.08; letter-spacing: -0.02em;
  color: #fff; margin-bottom: 1.5rem;
  max-width: 36rem;
}
.hero-desc {
  font-size: 1.125rem; color: rgba(255,255,255,0.7);
  max-width: 32rem; margin-bottom: 2.5rem; line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 5rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem; max-width: 42rem;
}
@media (min-width: 768px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.stat-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--primary);
}
.stat-label { font-family: var(--font-body); font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-top: 0.25rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid; gap: 4rem;
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.values-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.value-tag {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 500;
  padding: 0.375rem 0.75rem; border-radius: 9999px;
  border: 1px solid hsl(40 45% 47% / 0.2);
  color: var(--primary); background: hsl(40 45% 47% / 0.05);
}
.mission-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 1.25rem; padding: 2.5rem;
}
.mission-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--foreground); margin: 1.5rem 0 1rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: 1fr 1fr 1fr; } }
.service-card {
  background: var(--background); border: 1px solid var(--border);
  border-radius: 1.25rem; padding: 2rem;
  transition: border-color 0.5s, box-shadow 0.5s;
}
.service-card:hover {
  border-color: hsl(40 45% 47% / 0.3);
  box-shadow: 0 0 40px -12px hsl(40 45% 47% / 0.15);
}
.service-card:hover .icon-box { background: hsl(40 45% 47% / 0.2); }
.service-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem;
  color: var(--foreground); margin: 1.25rem 0 0.75rem;
}
.service-desc { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.7; }

/* ============================================================
   SECTORS
   ============================================================ */
.sectors-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .sectors-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .sectors-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .sectors-grid { grid-template-columns: repeat(7, 1fr); } }
.sector-card {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 1.25rem; padding: 2rem 1rem;
  transition: border-color 0.5s;
  cursor: default;
}
.sector-card:hover { border-color: hsl(40 45% 47% / 0.3); }
.sector-card:hover .sector-icon { background: hsl(40 45% 47% / 0.2); }
.sector-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  background: hsl(40 45% 47% / 0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); transition: background 0.3s;
}
.sector-card span {
  font-family: var(--font-display); font-weight: 600; font-size: 0.875rem;
  color: var(--foreground); text-align: center;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid; gap: 3rem;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 2fr 3fr; }
}
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item-title {
  font-family: var(--font-display); font-weight: 600; font-size: 0.875rem;
  color: var(--foreground); margin-bottom: 0.25rem;
}
.contact-item-text { font-family: var(--font-body); font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }
/* Form */
.contact-form-wrap {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 1.25rem; padding: 2rem;
}
.form-row { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-input {
  width: 100%; background: var(--background);
  border: 1px solid var(--border); border-radius: 0.75rem;
  padding: 0.75rem 1rem; margin-bottom: 1.25rem;
  font-family: var(--font-body); font-size: 0.875rem;
  color: var(--foreground); transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input::placeholder { color: var(--muted-foreground); }
.form-input:focus {
  border-color: hsl(40 45% 47% / 0.5);
  box-shadow: 0 0 0 3px hsl(40 45% 47% / 0.1);
}
.form-textarea { resize: none; margin-bottom: 1.25rem; }
.form-row .form-input { margin-bottom: 0; }
.form-error {
  font-size: 0.875rem; color: hsl(0 84% 60%);
  background: hsl(0 84% 60% / 0.08);
  border: 1px solid hsl(0 84% 60% / 0.2);
  border-radius: 0.5rem; padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.form-success {
  text-align: center; padding: 2rem;
  color: var(--foreground);
}
.form-success svg { color: hsl(142 71% 45%); margin: 0 auto 1rem; }
.form-success h3 { font-family: var(--font-display); font-weight: 700; margin-bottom: 0.5rem; }
.form-success p { color: var(--muted-foreground); font-size: 0.875rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 3rem 0;
  background: var(--card); border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) { .footer-inner { flex-direction: row; justify-content: space-between; } }
.footer-copy { font-family: var(--font-body); font-size: 0.875rem; color: var(--muted-foreground); text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-logo { width: 2rem; height: 2rem; object-fit: contain; }
.footer-brand-name {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 0.875rem; color: var(--foreground);
}
.footer-brand-sub {
  display: block; font-family: var(--font-body); font-size: 0.5625rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--primary);
}
.footer-credits { font-family: var(--font-body); font-size: 0.75rem; color: var(--muted-foreground); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
/* Hero entrada imediata */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s ease forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered (fade-in class, adicionada via JS) */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading state do botão */
.btn-loading { opacity: 0.7; pointer-events: none; cursor: not-allowed; }
