/* =========================================================
   newwificonnection – Wi-Fi Installation Services
   Design tokens: navy / logo blue / green on white
   Brand blue matched to logo (#002db1)
   ========================================================= */

:root {
  --navy: #0a2540;
  --navy-deep: #06182b;
  --navy-soft: #123556;
  --sky: #002db1;
  --sky-deep: #002090;
  --sky-mid: #1a47d4;
  --sky-light: #5b7cff;
  --sky-pale: #e8ecfc;
  --green: #16a34a;
  --green-bright: #22c55e;
  --green-pale: #dcfce7;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --shadow-sm: 0 4px 14px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 37, 64, 0.1);
  --radius: 1rem;
  --radius-sm: 0.65rem;
  --header-h: 96px;
  --mobile-bar-h: 72px;
  --font-display: "Outfit", sans-serif;
  --font-body: "Manrope", sans-serif;
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sky);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--navy);
}

h1,
h2,
h3,
h4,
.h1,
.h2,
.h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
}

.section-pad {
  padding: 5rem 0;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 40rem;
}

.bg-soft {
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(0, 45, 177, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(34, 197, 94, 0.06), transparent 50%),
    var(--surface-alt);
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.btn:focus-visible {
  outline: 3px solid rgba(0, 45, 177, 0.45);
  outline-offset: 2px;
}

.btn-primary,
.btn-call {
  background: var(--sky);
  border: none;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 45, 177, 0.28);
}

.btn-primary:hover,
.btn-call:hover {
  background: var(--sky-mid);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 45, 177, 0.34);
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--green-bright) 0%, var(--green) 100%);
  border: none;
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.25);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, var(--green) 0%, #15803d 100%);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-navy {
  border: 2px solid var(--sky);
  color: var(--sky);
  background: transparent;
}

.btn-outline-navy:hover {
  background: var(--sky);
  color: #fff;
  border-color: var(--sky);
}

.btn-outline-light-custom {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  background: transparent;
}

.btn-outline-light-custom:hover {
  background: #fff;
  color: var(--sky);
}

.btn-sm-pill {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}

.navbar {
  min-height: var(--header-h);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
}

.brand-logo .logo-img {
  display: block;
  height: clamp(72px, 10vw, 88px);
  width: auto;
  max-width: min(320px, 72vw);
  object-fit: contain;
}

.navbar-nav .nav-link {
  color: var(--navy-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem !important;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--sky);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.header-call-btn {
  white-space: nowrap;
}

.navbar-toggler {
  border: 1px solid var(--border);
  padding: 0.4rem 0.55rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(10, 37, 64, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(6, 24, 43, 0.88) 0%, rgba(10, 37, 64, 0.72) 45%, rgba(0, 45, 177, 0.4) 100%),
    url("../images/hero-wifi-install.webp") center/cover no-repeat;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.25), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.12), transparent 35%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 5rem;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-brand span {
  color: var(--sky-light);
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 650;
  margin-bottom: 1rem;
  max-width: 18ch;
  margin-inline: auto;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 0.85rem;
}

.hero .hero-desc {
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.hero-visual-credit {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  z-index: 1;
}

/* ---------- Highlights ---------- */
.highlights {
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}

.highlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.highlight-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 0.9rem;
  background: var(--sky-pale);
  color: var(--sky);
}

.highlight-card:nth-child(2) .highlight-icon,
.highlight-card.alt .highlight-icon {
  background: var(--green-pale);
  color: var(--green);
}

.highlight-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ---------- About ---------- */
.about-image-wrap {
  position: relative;
  border-radius: calc(var(--radius) + 0.25rem);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.about-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
}

.about-badge i {
  color: var(--green);
}

/* ---------- Services ---------- */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sky-pale);
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 1.35rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.service-card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.1rem;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Who We Serve ---------- */
.audience-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  height: 100%;
  transition: border-color var(--transition), transform var(--transition);
}

.audience-item:hover {
  border-color: var(--sky-light);
  transform: translateY(-3px);
}

.audience-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: linear-gradient(145deg, var(--sky-pale), #fff);
  color: var(--navy);
  border: 1px solid var(--border);
}

.audience-item h3 {
  font-size: 1rem;
  margin: 0;
}

/* ---------- Why Choose ---------- */
.why-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  height: 100%;
}

.why-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--sky-light);
  font-size: 1.25rem;
}

.why-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.why-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- How It Works ---------- */
.process-step {
  position: relative;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  height: 100%;
}

.process-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--navy));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.process-step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.process-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative;
  border-radius: calc(var(--radius) + 0.35rem);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(6, 24, 43, 0.92), rgba(0, 45, 177, 0.78)),
    url("../images/cta-banner.webp") center/cover no-repeat;
  padding: 3.25rem 2rem;
  box-shadow: var(--shadow-md);
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 32rem;
}

.cta-phone {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem 0 1.5rem;
}

.cta-phone:hover {
  color: var(--sky-light);
}

/* ---------- Client Reviews / Testimonials ---------- */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.15rem);
  padding: 1.75rem 1.6rem 1.5rem;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.testimonial-card blockquote {
  margin: 0 0 1.35rem;
  flex: 1;
}

.testimonial-card blockquote p {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.7;
}

.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.testimonial-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--sky-pale), #c5cff5);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-card cite {
  display: block;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}

.testimonial-card figcaption span:not(.testimonial-avatar) {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* ---------- FAQ ---------- */
.accordion-item {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--surface);
}

.accordion-button {
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--navy);
  box-shadow: none !important;
  background: var(--surface);
  font-size: 1rem;
}

.accordion-button:not(.collapsed) {
  background: var(--sky-pale);
  color: var(--navy);
}

.accordion-button:focus {
  box-shadow: none !important;
  border-color: transparent;
}

.accordion-body {
  color: var(--text-muted);
}

/* ---------- Contact ---------- */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
}

.contact-card i {
  font-size: 1.5rem;
  color: var(--sky);
  margin-bottom: 0.65rem;
  display: block;
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.contact-card a {
  color: var(--navy);
  font-weight: 650;
}

.contact-card a:hover {
  color: var(--sky);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 2rem;
}

.site-footer .brand-logo {
  margin-bottom: 1.25rem;
}

.site-footer .brand-logo .logo-img {
  height: clamp(88px, 14vw, 140px);
  width: auto;
  max-width: min(420px, 88vw);
  object-fit: contain;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: var(--sky-light);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-disclaimer {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Mobile Sticky Bar ---------- */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(10, 37, 64, 0.12);
  gap: 0.65rem;
}

.mobile-sticky-bar .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.75rem;
}

/* ---------- Floating WhatsApp (desktop) ---------- */
.float-whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 1045;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 10px 28px rgba(18, 140, 126, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.float-whatsapp:hover {
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 14px 32px rgba(18, 140, 126, 0.5);
}

/* ---------- Legal Pages ---------- */
.legal-hero {
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  padding: 3.5rem 0 2.75rem;
}

.legal-hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.legal-hero p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.legal-content {
  padding: 3rem 0 4rem;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

.legal-content ul {
  padding-left: 1.2rem;
}

.approval-note {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
  margin: 1rem 0;
}

/* ---------- Reveal animations (lightweight) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  :root {
    --header-h: 108px;
  }

  .brand-logo .logo-img {
    height: clamp(78px, 18vw, 96px);
    max-width: min(360px, 78vw);
  }

  .navbar-collapse {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    margin-top: 0.75rem;
    box-shadow: var(--shadow-md);
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .header-call-btn {
    margin-top: 0.75rem;
    width: 100%;
  }

  .mobile-sticky-bar {
    display: flex;
  }

  body {
    padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom));
  }

  .site-footer {
    padding-bottom: calc(2rem + var(--mobile-bar-h));
  }

  .float-whatsapp {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .float-whatsapp {
    display: inline-flex;
  }
}

@media (max-width: 575.98px) {
  :root {
    --header-h: 112px;
  }

  .brand-logo .logo-img {
    height: 88px;
    max-width: min(340px, 82vw);
  }

  .section-pad {
    padding: 3.5rem 0;
  }

  .hero-content {
    padding: 3rem 0 4rem;
  }

  .testimonial-card {
    padding: 1.4rem 1.25rem 1.25rem;
  }

  .cta-banner {
    padding: 2.25rem 1.25rem;
  }
}

/* Prevent horizontal scroll */
.container,
.row {
  max-width: 100%;
}

@media (min-width: 320px) {
  body {
    min-width: 0;
  }
}
