/* ── HOME NAV ACTIVE SIGN ── */
body.home-page nav a {
  position: relative;
}
body.home-page nav a.active:not(.nav-cta) {
  background: rgba(14, 165, 201, 0.18);
  color: var(--accent-bright);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--gold-bright);
}
body.home-page nav a.active:not(.nav-cta)::before {
  content: '●';
  font-size: 8px;
  margin-right: 6px;
  color: var(--gold-bright);
  vertical-align: middle;
  line-height: 1;
}

/* Section highlight when navigated via menu */
@keyframes sectionNavHighlight {
  0% {
    box-shadow: inset 5px 0 0 var(--accent-bright);
    background-color: color-mix(in srgb, var(--accent) 8%, transparent);
  }
  100% {
    box-shadow: inset 5px 0 0 transparent;
    background-color: transparent;
  }
}
body.home-page .section.nav-highlight,
body.home-page .hero.nav-highlight {
  animation: sectionNavHighlight 1.5s ease;
}

/* ── HERO (photo) ── */
.hero {
  position: relative;
  min-height: clamp(520px, 85vh, 720px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 18, 32, 0.92) 0%, rgba(6, 18, 32, 0.75) 45%, rgba(6, 18, 32, 0.35) 100%),
    linear-gradient(180deg, transparent 60%, rgba(6, 18, 32, 0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 2rem 80px;
  width: 100%;
  text-align: left;
}
.hero-badge {
  display: inline-block;
  background: rgba(14, 165, 201, 0.15);
  border: 1px solid rgba(14, 165, 201, 0.4);
  color: var(--accent-bright);
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 6px; margin-bottom: 18px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 720px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.84);
  max-width: 520px;
  margin: 0 0 32px;
  line-height: 1.6;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}
.hero-lead span { color: var(--accent-bright); font-weight: 600; }
.hero .hero-btns {
  justify-content: flex-start;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 400px;
}
.hero-stat .val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-bright);
  line-height: 1.1;
}
.hero-stat .lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .hero { min-height: 560px; }
  .hero-content {
    padding: 100px 1.5rem 64px;
    text-align: center;
  }
  .hero h1, .hero-lead { margin-left: auto; margin-right: auto; }
  .hero .hero-btns { justify-content: center; }
  .hero-stats {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-bg__img { object-position: center 30%; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(6, 18, 32, 0.88) 0%, rgba(6, 18, 32, 0.72) 50%, rgba(6, 18, 32, 0.85) 100%);
  }
}

/* ── PROOF BAND ── */
.proof-band {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 2rem;
}
.proof-band__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.proof-metrics {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}
.proof-metric {
  text-align: center;
  padding: 0 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.proof-metric:last-child { border-right: none; }
.proof-metric__val {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--accent-bright);
  line-height: 1.1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.proof-metric__lbl {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
}
.proof-band__footer {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.proof-guarantee {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.proof-brands {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}
.proof-brands__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 6px;
}
.proof-brands__names {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

@media (max-width: 768px) {
  .proof-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .proof-metric {
    border-right: none;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .proof-metric:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
  .proof-metric:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 420px) {
  .proof-metrics { grid-template-columns: 1fr; }
  .proof-metric,
  .proof-metric:nth-child(odd) {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .proof-metric:last-child { border-bottom: none; }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── WHY US ── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.why-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(11, 31, 54, 0.08);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
  border-top-color: var(--accent);
}
.why-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.why-card p { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ── SERVICES ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.svc-card {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
  background: var(--white);
  border-top: 3px solid var(--card-accent, var(--accent));
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--card-accent, var(--accent)) 18%, transparent);
}
.svc-card--cctv    { --card-accent: #0EA5C9; }
.svc-card--solar   { --card-accent: #1A7A42; }
.svc-card--network { --card-accent: #2B5EA8; }
.svc-card--alarm   { --card-accent: #9B1C1C; }

.svc-thumb {
  height: 200px;
  position: relative; overflow: hidden;
}
.svc-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(6, 18, 32, 0.65) 100%);
}
.svc-body { padding: 22px 20px; }
.svc-body h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.svc-body p  { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.6; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag {
  font-size: 10px; font-weight: 600; padding: 3px 9px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--card-accent, var(--accent)) 10%, var(--white));
  color: color-mix(in srgb, var(--card-accent, var(--mid)) 70%, var(--navy));
}
.btn-explore {
  display: inline-block; padding: 10px 22px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--mid) 100%);
  color: var(--white); font-size: 13px; font-weight: 600;
  border-radius: 7px; text-decoration: none;
  transition: all 0.2s;
}
.svc-card--cctv .btn-explore:hover    { background: linear-gradient(135deg, var(--mid), #0EA5C9); }
.svc-card--solar .btn-explore:hover   { background: linear-gradient(135deg, #14532D, #1A7A42); }
.svc-card--network .btn-explore:hover { background: linear-gradient(135deg, #1A2F5E, #2B5EA8); }
.svc-card--alarm .btn-explore:hover   { background: linear-gradient(135deg, #5C1515, #9B1C1C); }
.btn-explore:hover { transform: translateX(3px); }

/* ── PROCESS (3 up · 3 down) ── */
.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
  counter-reset: step;
}
.step {
  background: var(--white);
  border-radius: 14px;
  padding: 28px 24px 26px;
  border: 1px solid var(--border);
  position: relative;
  counter-increment: step;
  display: flex;
  flex-direction: column;
  min-height: 168px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.step:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: 0 12px 32px rgba(11, 31, 54, 0.08);
  transform: translateY(-3px);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--navy-deep);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 16%, var(--white));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
/* Connector arrows between steps 1→2→3 and 4→5→6 */
.step:not(:nth-child(3n))::after {
  content: '';
  position: absolute;
  top: 48px;
  right: -16px;
  width: 12px;
  height: 2px;
  background: color-mix(in srgb, var(--accent) 45%, var(--border));
  z-index: 1;
}
.step h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .step:not(:nth-child(3n))::after { display: none; }
  .step:not(:nth-child(2n))::after {
    content: '';
    display: block;
    position: absolute;
    top: 48px;
    right: -12px;
    width: 10px;
    height: 2px;
    background: color-mix(in srgb, var(--accent) 45%, var(--border));
  }
}

@media (max-width: 560px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .step {
    min-height: 0;
    padding: 22px 20px;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }
  .step::before {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .step::after,
  .step:not(:nth-child(2n))::after { display: none; }
  .step h4 { margin-top: 2px; }
}

/* ── TESTIMONIALS ── */
.testi-bg {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, #0E3D5C 100%);
}
.testi-bg .section-title { color: var(--white); }
.testi-bg .section-sub   { color: rgba(255, 255, 255, 0.58); }
.testi-bg .section-tag {
  background: rgba(14, 165, 201, 0.14);
  color: var(--accent-bright);
}
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testi-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px; padding: 26px 22px;
  transition: border-color 0.2s, background 0.2s;
}
.testi-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(14, 165, 201, 0.25);
}
.testi-stars { color: var(--gold-bright); font-size: 16px; margin-bottom: 12px; }
.testi-text  { font-size: 13px; color: rgba(255, 255, 255, 0.78); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: var(--navy-deep);
}
.testi-name { font-size: 13px; font-weight: 700; color: var(--white); }
.testi-role { font-size: 11px; color: rgba(255, 255, 255, 0.48); }

/* ── CONTACT ── */
.contact-section {
  background: linear-gradient(180deg, var(--light) 0%, #fff 100%);
  position: relative;
}
.contact-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 10% 90%, rgba(14, 165, 201, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 90% 10%, rgba(229, 160, 25, 0.05) 0%, transparent 45%);
  pointer-events: none;
}
.contact-section .section-inner { position: relative; }

.section-head--center { text-align: center; }
.section-sub--center { margin-left: auto; margin-right: auto; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: start;
}

/* Left panel */
.contact-panel {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #0E3D5C 100%);
  color: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 16px 48px rgba(6, 18, 32, 0.25);
}
.contact-panel__intro { margin-bottom: 28px; }
.contact-panel__intro h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.contact-panel__intro p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
a.contact-card:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(14, 165, 201, 0.4);
  transform: translateX(4px);
}
.contact-card--whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.5);
}
.contact-card--static { cursor: default; }
.contact-card__icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--mid) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card--whatsapp .contact-card__icon {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}
.contact-card__icon svg { width: 20px; height: 20px; color: #fff; }
.contact-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-card__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.5);
}
.contact-card__value {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  word-break: break-word;
}

.contact-hours {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.contact-hours__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(229, 160, 25, 0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-hours__icon svg { width: 20px; height: 20px; color: var(--gold-bright); }
.contact-hours strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
.contact-hours p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
}
.contact-hours__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(229, 160, 25, 0.2);
  color: var(--gold-bright);
  border: 1px solid rgba(229, 160, 25, 0.3);
}

/* Right form */
.contact-form-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(11, 31, 54, 0.08);
}
.contact-form-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.contact-form-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.contact-form-header p {
  font-size: 13px;
  color: var(--muted);
}
.contact-section .contact-form {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.contact-section .form-group label .req {
  color: var(--accent);
  font-weight: 700;
}
.contact-section .form-group input,
.contact-section .form-group textarea,
.contact-section .form-group select {
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 9px;
  background: var(--light);
}
.contact-section .form-group input:focus,
.contact-section .form-group textarea:focus,
.contact-section .form-group select:focus {
  background: #fff;
}
.contact-section .form-group textarea { min-height: 110px; }
.contact-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}
.contact-form__submit svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.contact-form__note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
}

@media (max-width: 480px) {
  .contact-panel,
  .contact-form-wrap { padding: 24px 20px; }
  .contact-card__value { font-size: 12px; }
}
