@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

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

:root {
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-body);

  /* Brand core */
  --navy:        #0B1F36;
  --navy-deep:   #061220;
  --blue:        #122D4A;
  --mid:         #1A4A6E;
  --accent:      #0EA5C9;
  --accent-bright: #22D3EE;
  --gold:        #E5A019;
  --gold-bright: #F5C04A;
  --white:       #ffffff;
  --light:       #F5F9FC;
  --text:        #152232;
  --muted:       #5C7289;
  --border:      #D8E4EF;

  /* Service theme (overridden per page) */
  --svc:         #0B1F36;
  --svc2:        #1A4A6E;
  --svc-accent:  #0EA5C9;
  --svc-light:   #F5F9FC;
  --svc-glow:    rgba(14, 165, 201, 0.18);
}

html { scroll-behavior: smooth; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--navy-deep);
  font-size: 13px;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--gold-bright);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.footer-brand .brand-name {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { letter-spacing: -0.03em; }
h4 { letter-spacing: -0.01em; line-height: 1.35; }

.hero-stat .val,
.pkg-price,
.calc-result .saving {
  font-family: var(--font-heading);
  font-variant-numeric: tabular-nums;
}

.btn-explore,
.btn-pkg {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Service page themes — distinct but harmonized with brand navy */
body.service-cctv {
  --svc: #0B1F36;
  --svc2: #1A5278;
  --svc-accent: #0EA5C9;
  --svc-light: #EEF5FA;
  --svc-glow: rgba(14, 165, 201, 0.2);
}
body.service-solar {
  --svc: #14532D;
  --svc2: #1A7A42;
  --svc-accent: #E5A019;
  --svc-light: #F0FAF4;
  --svc-glow: rgba(229, 160, 25, 0.18);
}
body.service-network {
  --svc: #1A2F5E;
  --svc2: #2B5EA8;
  --svc-accent: #38BDF8;
  --svc-light: #EEF3FA;
  --svc-glow: rgba(56, 189, 248, 0.18);
}
body.service-alarm {
  --svc: #5C1515;
  --svc2: #9B1C1C;
  --svc-accent: #F5C04A;
  --svc-light: #FDF5F5;
  --svc-glow: rgba(245, 192, 74, 0.15);
}

/* ── TOPBAR ── */
.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  padding: 6px 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar a { color: var(--accent-bright); text-decoration: none; }
.topbar a:hover { color: var(--gold-bright); }
.topbar-right { display: flex; gap: 20px; align-items: center; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-item svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.85; }

/* ── HEADER / NAV ── */
header {
  background: linear-gradient(180deg, var(--blue) 0%, var(--navy) 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(6, 18, 32, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.logo:hover {
  box-shadow: none;
  transform: none;
  opacity: 0.92;
}
.logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(240px, 55vw);
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

@media (max-width: 480px) {
  .header-inner { height: 68px; padding: 0 1rem; }
  .logo { padding: 0; }
  .logo-img {
    height: 38px;
    max-width: 170px;
  }
}

nav { display: flex; gap: 2px; align-items: center; flex-shrink: 0; }
nav a {
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
nav a:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-weight: 700;
}

nav a.nav-cta {
  background: linear-gradient(135deg, var(--accent) 0%, #0891B2 100%);
  color: var(--navy-deep);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 8px 18px;
  margin-left: 6px;
  box-shadow: 0 2px 10px rgba(14, 165, 201, 0.35);
}
nav a.nav-cta:hover {
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 100%);
  color: var(--navy-deep);
}
nav a.nav-cta.active {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: var(--navy-deep);
  box-shadow: 0 2px 10px rgba(229, 160, 25, 0.35);
}

body.service-page nav a.nav-cta {
  background: linear-gradient(135deg, var(--svc-accent) 0%, color-mix(in srgb, var(--svc-accent) 75%, var(--svc2)) 100%);
  color: var(--navy-deep);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--svc-accent) 35%, transparent);
}
body.service-page nav a.nav-cta:hover {
  filter: brightness(1.06);
  color: var(--navy-deep);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: transparent;
  border-radius: 6px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  display: block;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ── */
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  padding: 14px 32px;
  background: var(--accent);
  color: var(--navy-deep);
  font-family: var(--font-heading);
  font-size: 14px; font-weight: 700; border-radius: 8px;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(14, 165, 201, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 165, 201, 0.45);
}
.btn-outline {
  padding: 14px 32px; background: transparent;
  color: var(--white); font-size: 14px; font-weight: 600;
  border-radius: 8px; text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
}

body.service-page .btn-primary {
  padding: 13px 28px;
  font-size: 13px;
  background: var(--svc-accent);
  color: var(--navy-deep);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--svc-accent) 40%, transparent);
}
body.service-page .btn-primary:hover {
  box-shadow: 0 8px 22px color-mix(in srgb, var(--svc-accent) 50%, transparent);
}
body.service-alarm .btn-primary,
body.service-solar .btn-primary {
  color: var(--navy-deep);
}
body.service-page .btn-outline { padding: 13px 28px; font-size: 13px; }

/* ── SECTIONS ── */
.section { padding: 80px 2rem; }
body.service-page .section { padding: 72px 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: #0891B2;
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 10px;
}
body.service-page .section-tag {
  background: color-mix(in srgb, var(--svc2) 14%, transparent);
  color: var(--svc2);
}
.section-title {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}
body.service-page .section-title { font-size: clamp(1.6rem, 3vw, 2rem); }
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}
.section-head { margin-bottom: 42px; }
body.service-page .section-sub { margin-bottom: 36px; }
.light-bg, .why-bg { background: var(--light); }
body.service-page .light-bg { background: var(--svc-light); }

/* ── FOOTER ── */
footer {
  background: linear-gradient(180deg, var(--navy-deep) 0%, #040D18 100%);
  color: rgba(255, 255, 255, 0.62);
  padding: 50px 2rem 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
footer a { color: var(--accent-bright); text-decoration: none; }
footer a:hover { color: var(--gold-bright); }
footer.simple { padding: 30px 2rem; text-align: center; font-size: 13px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand .brand-name { font-size: 18px; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  text-decoration: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.footer-logo img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.footer-brand p { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.social-links { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; text-decoration: none;
  transition: background 0.2s;
}
.social-btn:hover { background: var(--accent); }
.social-btn svg { width: 16px; height: 16px; }
.social-btn--wa:hover { background: #25D366; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 14px; letter-spacing: 0.5px; }
.footer-col ul  { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255, 255, 255, 0.52); text-decoration: none; transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--accent-bright); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  display: flex; justify-content: space-between;
  font-size: 12px; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a {
  color: var(--accent-bright);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}
.footer-bottom a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

/* ── FORM ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 13px; font-family: inherit;
  background: var(--white); outline: none; color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input:invalid:not(:placeholder-shown) { border-color: #E05252; }
.form-submit {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--mid) 100%);
  color: var(--white); font-size: 14px; font-weight: 700;
  border: none; border-radius: 8px; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(11, 31, 54, 0.2);
}
.form-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--mid) 0%, var(--accent) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(14, 165, 201, 0.3);
}
.form-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.form-alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-top: 10px; display: none; }
.form-alert.is-visible { display: block; }
.form-alert.success { background: #EDFAF3; border: 1px solid #9ED9B8; color: #145A32; }
.form-alert.error { background: #FEF2F2; border: 1px solid #F5B8B8; color: #8B1A1A; }
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ── MOBILE CONTACT BAR ── */
.mobile-contact-bar {
  display: none;
}

@media (max-width: 768px) {
  body.has-mobile-contact-bar {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-contact-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 24px rgba(6, 18, 32, 0.22);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .mobile-contact-bar__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    transition: filter 0.15s;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-contact-bar__btn:active {
    filter: brightness(0.92);
  }

  .mobile-contact-bar__btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .mobile-contact-bar__btn--call {
    background: linear-gradient(135deg, var(--navy) 0%, var(--mid) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .mobile-contact-bar__btn--wa {
    background: linear-gradient(135deg, #1DA851 0%, #25D366 100%);
  }

  .whatsapp-float {
    display: none;
  }
}

/* ── FLOATING WHATSAPP (desktop) ── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: waPulse 2.2s ease-out infinite;
  pointer-events: none;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
  color: #fff;
}
.whatsapp-float:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.5);
  outline-offset: 3px;
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  position: relative;
  z-index: 1;
}
.whatsapp-float__label {
  position: absolute;
  right: calc(100% + 12px);
  background: var(--white);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(11, 31, 54, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1;
}
.whatsapp-float:hover .whatsapp-float__label,
.whatsapp-float:focus-visible .whatsapp-float__label {
  opacity: 1;
  transform: translateX(0);
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ── IMAGES ── */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .whatsapp-float::before { animation: none; }
}

@media (max-width: 900px) {
  .topbar { display: none; }
  nav {
    display: none;
    flex-direction: column;
    background: var(--navy);
    position: absolute;
    top: 76px; left: 0; right: 0;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(6, 18, 32, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  nav.open { display: flex; }
  nav a.nav-cta {
    display: flex;
    margin-left: 0;
    margin-top: 6px;
    text-align: center;
    justify-content: center;
  }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
