/* ══════════════════════════════════════════
   FORTRESS ALARM SOLUTIONS — style.css
══════════════════════════════════════════ */

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #081528;
  --navy-mid: #0d1f3c;
  --navy-light: #1a3660;
  --orange: #e8661a;
  --orange-lit: #ff8833;
  --blue-neon: #2a9ee8;
  --white: #ffffff;
  --offwhite: #f8f9fc;
  --gray-light: #eef0f5;
  --text: #1e2a3a;
  --text-muted: #5a6a7e;

  --font-display: "Oswald", sans-serif;
  --font-body: "Inter", sans-serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;

  --t: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 20px rgba(8, 21, 40, 0.1);
  --shadow-hover: 0 10px 36px rgba(8, 21, 40, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

/* ── Helpers ── */
.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.section-pad {
  padding: 100px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.eyebrow.light {
  color: #ffb07a;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1.15;
}

.section-title.light {
  color: var(--white);
}

.title-accent {
  width: 48px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin-top: 16px;
  margin-bottom: 28px;
}

.title-accent.centered {
  margin-inline: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: transparent;
  transition: background var(--t), box-shadow var(--t);
  opacity: 0;
  pointer-events: none;
}

.site-header.scrolled {
  background: rgba(8, 21, 40, 0.97);
  box-shadow: 0 2px 0 rgba(232, 102, 26, 0.3);
  opacity: 1;
  pointer-events: all;
  backdrop-filter: blur(14px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  width: min(1180px, 92%);
  margin-inline: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  height: 20px;
  width: auto;
  display: block;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--white);
  line-height: 1;
}

.nav-brand-sub {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--t);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--t);
}

.nav-links a:hover {
  color: #fff;
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--t);
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: auto;
  background: var(--navy);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-building-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(rgba(8, 21, 40, 0.15), rgba(8, 21, 40, 0.15)),
    url("../img/building-bg2.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    108deg,
    rgba(8, 21, 40, 0.92) 0%,
    rgba(8, 21, 40, 0.8) 42%,
    rgba(8, 21, 40, 0.45) 72%,
    rgba(8, 21, 40, 0.2) 100%
  );
}

/* Neon oval */
.neon-oval-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.neon-oval {
  width: 78%;
  height: 75%;
  border-radius: 50%;
  border-top: 2px solid var(--blue-neon);
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--blue-neon);
  border-left: 2px solid var(--orange);
  box-shadow: 0 0 12px 2px rgba(42, 158, 232, 0.35),
    0 0 28px 4px rgba(42, 158, 232, 0.15),
    inset 0 0 14px 2px rgba(232, 102, 26, 0.12),
    inset 0 0 30px 4px rgba(232, 102, 26, 0.06);
  opacity: 0.7;
  transform: rotate(-12deg) scaleX(1.6);
  animation: oval-glow 4s ease-in-out infinite alternate;
}

@keyframes oval-glow {
  0% {
    opacity: 0.55;
    box-shadow: 0 0 10px 2px rgba(42, 158, 232, 0.3),
      0 0 24px 4px rgba(42, 158, 232, 0.12),
      inset 0 0 12px 2px rgba(232, 102, 26, 0.1);
  }
  100% {
    opacity: 0.85;
    box-shadow: 0 0 18px 4px rgba(42, 158, 232, 0.55),
      0 0 44px 8px rgba(42, 158, 232, 0.22),
      inset 0 0 20px 4px rgba(232, 102, 26, 0.2);
  }
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.7;
}

/* ── Hero layout ── */
.hero-inner {
  position: relative;
  z-index: 5;
  width: min(1400px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 120px 0 140px;
}

.hero-logo-column {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 420px;
  flex-shrink: 0;
}

.hero-logo {
  width: auto;
  max-width: 420px;
  height: auto;
  display: block;
}

.hero-content-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 580px;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.hero-sub {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.72;
  margin-bottom: 38px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn-primary:hover {
  background: #c9560f;
  border-color: #c9560f;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 102, 26, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

/* PRE-LAUNCH badge */
.prelaunch-badge {
  position: absolute;
  bottom: 66px;
  left: calc((100% - min(1400px, 92%)) / 2);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(8, 21, 40, 0.9);
  border: 1.5px solid var(--orange);
  border-radius: 100px;
  padding: 7px 20px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  backdrop-filter: blur(6px);
}

/* Wave */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  line-height: 0;
  margin-bottom: -1px;
}

.hero-wave svg {
  width: 100%;
  height: 90px;
  display: block;
}

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about-section {
  background: var(--offwhite);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}

.about-text p {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.78;
  margin-bottom: 16px;
}

.about-text p:last-of-type {
  margin-bottom: 32px;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1.5px solid #dde2ea;
  border-radius: var(--r-sm);
  padding: 9px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow);
  transition: border-color var(--t), transform var(--t);
}

.about-badge:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.badge-icon {
  font-size: 0.95rem;
}

.about-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background-image: url("../img/about-image.png");
  background-size: 140%;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--r-lg);
}

/* ══════════════════════════════════════════
   SERVICES
══════════════════════════════════════════ */
.services-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 72px,
      rgba(42, 110, 200, 0.04) 72px,
      rgba(42, 110, 200, 0.04) 73px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 72px,
      rgba(42, 110, 200, 0.04) 72px,
      rgba(42, 110, 200, 0.04) 73px
    );
  pointer-events: none;
}

.services-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 55% 40% at 80% 20%,
      rgba(42, 158, 232, 0.06) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 50% 45% at 15% 80%,
      rgba(232, 102, 26, 0.05) 0%,
      transparent 65%
    );
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 18px;
  position: relative;
  z-index: 1;
}

.service-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-md);
  padding: 30px 26px;
  transition: background var(--t), border-color var(--t), transform var(--t),
    box-shadow var(--t);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(232, 102, 26, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(232, 102, 26, 0.1);
}

.card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.68;
}

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact-section {
  background: var(--offwhite);
}

.contact-sub {
  font-size: 0.97rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: -12px auto 52px;
  line-height: 1.7;
  text-align: center;
}

.contact-cards {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1.5px solid #dde2ea;
  border-radius: var(--r-md);
  padding: 24px 28px;
  text-decoration: none;
  box-shadow: var(--shadow);
  min-width: 260px;
  max-width: 340px;
  flex: 1;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}

.contact-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.contact-icon {
  width: 46px;
  height: 46px;
  background: rgba(232, 102, 26, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.contact-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  word-break: break-word;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  position: relative;
  background: var(--navy-mid);
  overflow: hidden;
}

.footer-background-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.12);
  border: 2px dashed rgba(255, 255, 255, 0.08);
  margin: 10px;
  border-radius: 4px;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 21, 40, 0.97) 50%,
    rgba(8, 21, 40, 0.7) 100%
  );
  z-index: 1;
}

.footer-inner {
  position: relative;
  z-index: 2;
  padding: 48px 0 28px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(232, 102, 26, 0.2);
  margin-bottom: 20px;
}

.footer-left {
  flex: 1;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 3px;
}

.footer-tagline {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.55;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.28);
  text-align: center;
}

/* ══════════════════════════════════════════
   REVEAL ANIMATIONS
══════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

.services-grid .service-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease, background var(--t),
    border-color var(--t), box-shadow var(--t);
}

.services-grid .service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════
   RESPONSIVE — 1200px
══════════════════════════════════════════ */
@media (max-width: 1200px) {
  .hero-inner {
    gap: 40px;
  }
  .hero-logo-column {
    width: 360px;
  }
  .hero-logo {
    max-width: 360px;
  }
  .about-grid {
    grid-template-columns: 1fr 360px;
    gap: 56px;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — 992px (tablet landscape)
══════════════════════════════════════════ */
@media (max-width: 992px) {
  /* Hero: logo topo + texto embaixo, centralizados */
  .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 0 120px;
    gap: 32px;
    overflow: hidden;
    width: 92%;
    margin: 0 auto;
  }

  .hero-logo-column {
    width: 100%;
    justify-content: center;
  }

  .hero-logo {
    max-width: 280px;
  }

  .hero-content-column {
    width: 100%;
    max-width: 600px;
    align-items: center;
  }

  .hero-heading {
    text-align: center;
  }
  .hero-sub {
    text-align: center;
    margin-inline: auto;
  }
  .hero-buttons {
    justify-content: center;
  }

  .neon-oval {
    width: 90%;
    height: 60%;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-image-wrap {
    order: -1;
  }
  .about-image-placeholder {
    max-width: 480px;
    margin: 0 auto;
  }

  /* Footer */
  .footer-right {
    align-items: flex-start;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — 768px (tablet portrait)
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .section-pad {
    padding: 72px 0;
  }

  /* Nav mobile */
  .nav-toggle {
    display: flex;
  }
  .nav-brand-text {
    display: none;
  } /* evita poluição no mobile */

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(8, 21, 40, 0.98);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    border-bottom: 1px solid rgba(232, 102, 26, 0.25);
  }

  .nav-links.open {
    max-height: 240px;
    padding: 20px 0 28px;
  }
  .nav-links a {
    padding: 11px 0;
    font-size: 0.9rem;
  }

  /* Hero */
  .hero-inner {
    padding: 72px 0 110px;
    gap: 24px;
  }
  .hero-logo {
    max-width: 220px;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
  }
  .footer-right {
    align-items: flex-start;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — 576px (mobile)
══════════════════════════════════════════ */
@media (max-width: 576px) {
  .hero-inner {
    width: 92%;
    padding: 60px 0 100px;
    overflow: hidden;
  }
  .hero-logo-column {
    width: 100%;
    overflow: hidden;
  }

  .hero-content-column {
    width: 100%;
    padding: 0 4%;
  }

  .hero-logo {
    max-width: 260px;
    width: 100%;
    margin: 0 auto;
  }
  .hero-heading {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
    white-space: nowrap;
    padding: 14px 20px;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
  }

  .prelaunch-badge {
    left: 4%;
    bottom: 56px;
  }

  .neon-oval {
    width: 95%;
    height: 55%;
  }

  .contact-cards {
    flex-direction: column;
    align-items: center;
  }
  .contact-card {
    width: 100%;
    max-width: 400px;
  }

  .about-badges {
    gap: 8px;
  }

  .footer-logo-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-right {
    align-items: flex-start;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal],
  .services-grid .service-card {
    opacity: 1 !important;
    transform: none !important;
  }
}
