/* ==========================================================================
   شركة السحابة الرقمية الحديثة
   Identity: one logo blue, white, circles and round-capped strokes.
   ========================================================================== */

@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 160 700;
  font-display: swap;
  src: url("../fonts/readex-pro-arabic-wght-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 160 700;
  font-display: swap;
  src: url("../fonts/readex-pro-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-200B, U+2012-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #06529e;
  --blue-bright: #1273cc;
  --navy: #03244a;
  --navy-deep: #021a36;
  --signal: #6fd3ff;
  --sky-100: #e6f0fa;
  --sky-50: #f4f8fc;
  --ink: #0f2740;
  --muted: #4b6075;
  --line: #d6e3ef;
  --white: #fff;
  --on-dark: rgba(255, 255, 255, 0.84);
  --on-dark-soft: rgba(255, 255, 255, 0.64);
  --line-dark: rgba(255, 255, 255, 0.16);
  --whatsapp: #0f7d44;

  --radius-lg: 28px;
  --radius-md: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 80px;

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.85;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.3;
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(100%, 1240px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--blue);
  font-weight: 500;
}
.skip-link:focus { inset-block-start: 12px; }

.ltr { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Shared pieces
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}
.on-dark .eyebrow,
.eyebrow.on-dark { color: var(--signal); }

.section-title {
  margin-block-start: 14px;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem);
  color: var(--navy);
}
.on-dark .section-title { color: var(--white); }

.section-lead {
  margin-block-start: 18px;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}
.on-dark .section-lead { color: var(--on-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: none;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(-4px); }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-bright); box-shadow: 0 12px 28px -12px rgba(6, 82, 158, 0.8); }

.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { box-shadow: 0 14px 34px -14px rgba(111, 211, 255, 0.9); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn-outline { border-color: var(--line); color: var(--blue); background: var(--white); }
.btn-outline:hover { border-color: var(--blue); }

.socials { display: flex; gap: 10px; }
.social {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line-dark);
  color: var(--white);
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.social svg { width: 19px; height: 19px; fill: currentColor; }
.social:hover { transform: translateY(-3px); border-color: transparent; }
.social[data-net="facebook"]:hover { background: #1877f2; color: var(--white); }
.social[data-net="linkedin"]:hover { background: #0a66c2; color: var(--white); }
.social[data-net="whatsapp"]:hover { background: var(--whatsapp); color: var(--white); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  transition: height 0.3s var(--ease);
}
.brand { flex: none; }
.brand img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s, height 0.3s var(--ease);
}

.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative;
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 400;
  font-size: 1rem;
  transition: color 0.2s, background-color 0.2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  inset-block-end: 2px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }

.header-socials { flex: none; }
.header-socials .social { width: 40px; height: 40px; }
.header-socials .social svg { width: 17px; height: 17px; }

.menu-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-inline-start: auto;
  padding: 0;
  border: 1.5px solid var(--line-dark);
  border-radius: 50%;
  background: none;
  color: var(--white);
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.menu-toggle span { position: relative; }
.menu-toggle span::before,
.menu-toggle span::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-toggle span::before { transform: translateY(-7px); }
.menu-toggle span::after { transform: translateY(7px); }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { background: currentColor; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { background: currentColor; transform: rotate(-45deg); }

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(3, 36, 74, 0.6);
}
.site-header.is-solid .wrap { height: 68px; }
.site-header.is-solid .brand img { height: 44px; filter: none; }
.site-header.is-solid .main-nav a { color: var(--navy); }
.site-header.is-solid .main-nav a.is-active,
.site-header.is-solid .main-nav a:hover { color: var(--blue); }
.site-header.is-solid .social { border-color: var(--line); color: var(--blue); }
.site-header.is-solid .social:hover { border-color: transparent; color: var(--white); }
.site-header.is-solid .menu-toggle { border-color: var(--line); color: var(--blue); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: calc(var(--header-h) + clamp(24px, 5vw, 64px)) 0;
  background:
    radial-gradient(90% 90% at 18% 38%, #0b5fb3 0%, rgba(6, 82, 158, 0.55) 38%, transparent 72%),
    linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.hero-copy h1 {
  margin-block-start: 18px;
  font-size: clamp(2.5rem, 0.8rem + 4.4vw, 4.4rem);
  font-weight: 600;
  line-height: 1.22;
}
.hero-copy h1 em {
  display: block;
  font-style: normal;
  color: var(--signal);
  white-space: nowrap;
}
.hero-copy p {
  margin-block-start: 22px;
  max-width: 54ch;
  color: var(--on-dark);
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.28rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 32px;
}

/* The logo as a broadcasting station */
.station {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.station-ping {
  position: absolute;
  inset: 21%;
  border: 2px solid var(--signal);
  border-radius: 50%;
  opacity: 0;
}
.station-orbit {
  position: absolute;
  inset: 7%;
  border: 1.5px dashed rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}
.station-orbit i {
  position: absolute;
  inset-block-start: -6px;
  inset-inline-start: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 16px 3px rgba(111, 211, 255, 0.65);
}
.station-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  box-shadow:
    inset 0 0 0 clamp(4px, 0.7vw, 7px) var(--white),
    inset 0 0 0 clamp(7px, 1.1vw, 11px) var(--blue),
    0 30px 80px -24px rgba(0, 0, 0, 0.6);
}
.station-disc svg { width: 66%; overflow: visible; }
.station-disc path { fill: var(--blue); fill-rule: evenodd; }

.js .station-disc path {
  fill-opacity: 0;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-mark 1.9s var(--ease) 0.2s forwards, fill-mark 0.7s ease 1.6s forwards;
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(3, 36, 74, 0.72);
  backdrop-filter: blur(8px);
  font-size: 0.95rem;
  font-weight: 400;
  white-space: nowrap;
}
.chip::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
}
.chip-a { inset-block-start: 10%; inset-inline-end: 4%; }
.chip-b { inset-block-end: 22%; inset-inline-end: 0; }
.chip-c { inset-block-end: 6%; inset-inline-start: 12%; }

/* Stats */
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block-start: clamp(32px, 4vw, 56px);
  border-block-start: 1px solid var(--line-dark);
}
.stat {
  padding: clamp(18px, 2.4vw, 30px) clamp(12px, 2vw, 28px);
  border-inline-start: 1px solid var(--line-dark);
}
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat strong {
  display: block;
  font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block;
  margin-block-start: 4px;
  color: var(--on-dark-soft);
  font-size: 0.98rem;
}

.hero-curve {
  display: block;
  width: 100%;
  height: clamp(40px, 6vw, 88px);
  margin-block-start: clamp(4px, 1vw, 12px);
  fill: var(--white);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 80px) var(--section-y);
}
.about::before {
  content: "";
  position: absolute;
  inset-block-start: -180px;
  inset-inline-end: -240px;
  width: 620px;
  aspect-ratio: 1;
  border: 34px solid var(--sky-50);
  border-radius: 50%;
  pointer-events: none;
}
.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-copy p + p { margin-block-start: 18px; }
.about-copy .prose {
  margin-block-start: 22px;
  color: var(--muted);
  max-width: 62ch;
}
.pull {
  margin-block-start: 30px;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.72rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--blue);
  max-width: 28ch;
}

.timeline {
  --progress: 0;
  position: relative;
  padding-inline-start: 44px;
}
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  inset-block: 12px 12px;
  inset-inline-start: 10px;
  width: 6px;
  border-radius: 999px;
}
.timeline::before { background: var(--sky-100); }
.timeline::after {
  background: var(--blue);
  transform: scaleY(var(--progress));
  transform-origin: top;
}
html:not(.js) .timeline::after { transform: none; }
.timeline li { position: relative; padding-block-end: 32px; }
.timeline li:last-child { padding-block-end: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset-block-start: 7px;
  inset-inline-start: -44px;
  width: 26px;
  height: 26px;
  border: 6px solid var(--blue);
  border-radius: 50%;
  background: var(--white);
}
.timeline li.is-future::before { border-color: var(--signal); }
.timeline small {
  display: block;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 500;
}
.timeline h3 { font-size: 1.22rem; color: var(--navy); }
.timeline p { margin-block-start: 4px; color: var(--muted); font-size: 1rem; }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.services {
  padding-block: var(--section-y);
  background: var(--sky-50);
}
.services-head { max-width: 760px; }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-block-start: clamp(32px, 4vw, 56px);
}
.card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(18, 115, 204, 0.11), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: rgba(6, 82, 158, 0.4); box-shadow: 0 28px 50px -34px rgba(3, 36, 74, 0.55); }
.card:hover::before { opacity: 1; }

.card-internet { grid-column: span 7; background: var(--blue); border-color: transparent; color: var(--white); }
.card-networks { grid-column: span 5; }
.card-infra { grid-column: span 5; }
.card-support { grid-column: span 7; }

.card-internet::before { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(111, 211, 255, 0.28), transparent 70%); }

.card-icon {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-internet .card-icon { stroke: var(--white); }

.card h3 {
  margin-block-start: 20px;
  font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem);
  color: var(--navy);
}
.card-internet h3 { color: var(--white); }
.card > p { margin-block-start: 10px; color: var(--muted); max-width: 52ch; }
.card-internet > p { color: var(--on-dark); }

.ticks {
  display: grid;
  gap: 8px;
  margin-block: 20px 26px;
}
.ticks li {
  position: relative;
  padding-inline-start: 26px;
  font-size: 1rem;
  font-weight: 400;
}
.ticks li::before {
  content: "";
  position: absolute;
  inset-block-start: 0.68em;
  inset-inline-start: 0;
  width: 14px;
  height: 5px;
  border-radius: 999px;
  background: var(--blue);
}
.card-internet .ticks li::before { background: var(--signal); }

.card-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-start: auto;
  align-self: flex-start;
  color: var(--blue);
  font-weight: 500;
}
.card-internet .card-link { color: var(--white); }
.card-link svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.card-link:hover svg { transform: translateX(-4px); }

/* Animated signal bars on the featured card */
.bars {
  position: absolute;
  inset-block-start: clamp(24px, 3vw, 38px);
  inset-inline-end: clamp(24px, 3vw, 38px);
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 64px;
}
.bars i {
  width: 11px;
  border-radius: 999px;
  background: var(--signal);
  transform-origin: bottom;
}
.bars i:nth-child(1) { height: 26%; }
.bars i:nth-child(2) { height: 48%; }
.bars i:nth-child(3) { height: 74%; }
.bars i:nth-child(4) { height: 100%; }

/* Audiences */
.audiences {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block-start: clamp(40px, 5vw, 64px);
  border-block-start: 2px solid var(--line);
}
.audience {
  padding: 26px clamp(16px, 2.4vw, 32px) 4px;
  border-inline-start: 1px solid var(--line);
}
.audience:first-child { border-inline-start: 0; padding-inline-start: 0; }
.audience h3 { font-size: 1.2rem; color: var(--navy); }
.audience p { margin-block-start: 6px; color: var(--muted); font-size: 1rem; }

/* --------------------------------------------------------------------------
   Coverage
   -------------------------------------------------------------------------- */

.coverage {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-y);
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}
.coverage-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  gap: 32px;
  align-items: end;
}
.coverage-area { text-align: end; }
.coverage-area strong {
  display: block;
  font-size: clamp(3rem, 1.8rem + 5vw, 6rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--signal);
}
.coverage-area span { color: var(--on-dark); }

.link-map { margin-block-start: clamp(28px, 4vw, 48px); }
.link-map svg { width: 100%; height: auto; overflow: visible; }
.link-map .terrain { fill: url(#terrain-fade); }
.link-map .hop {
  fill: none;
  stroke: var(--signal);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 2 11;
  opacity: 0.75;
}
.link-map .tower {
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.link-map .tower-dot { fill: var(--signal); }
.link-map .pulse { fill: none; stroke: var(--signal); stroke-width: 1.5; }
.link-map .packet { fill: var(--white); filter: drop-shadow(0 0 6px var(--signal)); }

.link-ends {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-block-start: 8px;
}
.link-ends strong { display: block; font-size: clamp(1.08rem, 1rem + 0.6vw, 1.4rem); font-weight: 500; }
.link-ends span { color: var(--on-dark-soft); font-size: 0.95rem; }
.link-ends div:last-child { text-align: end; }
.map-note {
  margin-block-start: 10px;
  text-align: center;
  color: var(--on-dark-soft);
  font-size: 0.88rem;
}

.areas-title {
  margin-block-start: clamp(32px, 4vw, 48px);
  font-size: 1.15rem;
  color: var(--white);
}
.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-start: 14px;
}
.areas li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 400;
  transition: background-color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.areas li:hover { background: rgba(111, 211, 255, 0.14); border-color: var(--signal); transform: translateY(-2px); }
.areas li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal);
}
.coverage-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-block-start: 32px;
  padding-block-start: 28px;
  border-block-start: 1px solid var(--line-dark);
}
.coverage-foot p { color: var(--on-dark); max-width: 56ch; }

/* --------------------------------------------------------------------------
   Offices
   -------------------------------------------------------------------------- */

.offices { padding-block: var(--section-y); }
.office-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-block-start: clamp(32px, 4vw, 48px);
}
.office {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sky-50);
  transition: background-color 0.35s, color 0.35s, transform 0.35s var(--ease);
}
.office::after {
  content: "";
  position: absolute;
  inset-block-start: -76px;
  inset-inline-end: -76px;
  width: 180px;
  aspect-ratio: 1;
  border: 16px solid var(--sky-100);
  border-radius: 50%;
  transition: transform 0.6s var(--ease), border-color 0.35s;
  pointer-events: none;
}
.office h3 { font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem); color: var(--navy); transition: color 0.35s; }
.office address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 3.6em;
  color: var(--muted);
  font-style: normal;
  transition: color 0.35s;
}
.office address svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-block-start: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.office-tel {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-block-start: 10px;
  font-size: 1.28rem;
  font-weight: 500;
  color: var(--blue);
  transition: color 0.35s;
}
.office-tel svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.office:hover { background: var(--blue); transform: translateY(-5px); }
.office:hover h3,
.office:hover .office-tel { color: var(--white); }
.office:hover address { color: var(--on-dark); }
.office:hover::after { transform: scale(1.5); border-color: rgba(255, 255, 255, 0.12); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  padding-block: var(--section-y);
  background: var(--sky-50);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
}
.contact-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--blue);
  color: var(--white);
}
.contact-panel::after {
  content: "";
  position: absolute;
  inset-block-end: -130px;
  inset-inline-start: -110px;
  width: 340px;
  aspect-ratio: 1;
  border: 26px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}
.contact-panel .section-lead { color: var(--on-dark); }

.channels {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-block-start: auto;
  padding-block-start: 32px;
}
.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.25s, transform 0.25s var(--ease);
}
.channel:hover { background: rgba(255, 255, 255, 0.17); transform: translateX(-4px); }
.channel-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
}
.channel-icon svg { width: 22px; height: 22px; }
.channel[data-net="whatsapp"] .channel-icon { color: var(--whatsapp); }
.channel[data-net="facebook"] .channel-icon { color: #1877f2; }
.channel[data-net="linkedin"] .channel-icon { color: #0a66c2; }
.channel-icon svg { fill: currentColor; }
.channel strong { display: block; font-weight: 500; line-height: 1.4; }
.channel small { display: block; color: var(--on-dark); font-size: 0.92rem; line-height: 1.4; }

.request-form {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.request-form h3 { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem); color: var(--navy); }
.request-form > p { margin-block-start: 6px; color: var(--muted); }
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-block-start: 24px;
}
.field { display: grid; gap: 6px; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.96rem; font-weight: 500; color: var(--navy); }
.field label span { color: var(--muted); font-weight: 300; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 11px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--sky-50);
  font-size: 1rem;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  appearance: none;
  padding-inline-end: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306529e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  background-size: 18px;
  cursor: pointer;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #a9c3da; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(6, 82, 158, 0.12);
}
.field.has-error input,
.field.has-error select { border-color: #b3261e; }
.field-error { display: none; color: #b3261e; font-size: 0.9rem; font-weight: 400; }
.field.has-error .field-error { display: block; }
#f-phone { text-align: right; }

.btn-whatsapp {
  width: 100%;
  margin-block-start: 22px;
  background: var(--whatsapp);
  color: var(--white);
}
.btn-whatsapp svg { fill: currentColor; width: 22px; height: 22px; }
.btn-whatsapp:hover { background: #0c6a39; box-shadow: 0 14px 28px -14px rgba(15, 125, 68, 0.85); }
.form-note { margin-block-start: 10px; text-align: center; color: var(--muted); font-size: 0.92rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(48px, 6vw, 72px) 28px;
  background: var(--navy-deep);
  color: var(--on-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
}
.footer-brand img { height: 62px; width: auto; filter: brightness(0) invert(1); }
.footer-brand p { margin-block-start: 16px; max-width: 42ch; font-size: 1rem; }
.footer-brand .socials { margin-block-start: 18px; }
.site-footer h4 { color: var(--white); font-size: 1.05rem; }
.site-footer nav ul,
.footer-phones { display: grid; gap: 6px; margin-block-start: 12px; }
.site-footer nav a,
.footer-phones a { transition: color 0.2s; }
.site-footer nav a:hover,
.footer-phones a:hover { color: var(--signal); }
.footer-phones span { color: var(--on-dark-soft); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-block-start: 40px;
  padding-block-start: 22px;
  border-block-start: 1px solid var(--line-dark);
  color: var(--on-dark-soft);
  font-size: 0.92rem;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-end: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 14px 30px -10px rgba(4, 60, 30, 0.7);
  transition: transform 0.25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { position: relative; width: 30px; height: 30px; fill: currentColor; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  opacity: 0;
}

/* --------------------------------------------------------------------------
   Scroll reveal (only when JS is running, so content is never lost)
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Service icons stroke themselves in when their card arrives */
.js .card-icon .ink {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.js .is-in .card-icon .ink {
  transition: stroke-dashoffset 1.3s var(--ease) 0.25s;
  stroke-dashoffset: 0;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes draw-mark { to { stroke-dashoffset: 0; } }
@keyframes fill-mark { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes ping {
  0% { transform: scale(1); opacity: 0; }
  12% { opacity: 0.55; }
  100% { transform: scale(2.05); opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes bars {
  0%, 100% { transform: scaleY(0.45); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}
@keyframes wa-ping {
  0% { transform: scale(1); opacity: 0.5; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .station-ping { animation: ping 5.4s linear infinite; }
  .station-ping:nth-child(2) { animation-delay: 1.8s; }
  .station-ping:nth-child(3) { animation-delay: 3.6s; }
  .station-orbit { animation: spin 26s linear infinite; }
  .chip-a { animation: bob 6s ease-in-out infinite; }
  .chip-b { animation: bob 7s ease-in-out 0.8s infinite; }
  .chip-c { animation: bob 6.5s ease-in-out 1.6s infinite; }
  .bars i { animation: bars 2.4s ease-in-out infinite; }
  .bars i:nth-child(2) { animation-delay: 0.2s; }
  .bars i:nth-child(3) { animation-delay: 0.4s; }
  .bars i:nth-child(4) { animation-delay: 0.6s; }
  .wa-float::before { animation: wa-ping 2.8s ease-out infinite; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .link-map .packet, .link-map .pulse { display: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .header-socials { display: none; }
  .brand img { height: 46px; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .menu-toggle { display: grid; }

  .main-nav {
    position: absolute;
    inset: 100% 0 auto;
    margin: 0;
    padding: 12px var(--gutter) 22px;
    background: var(--white);
    box-shadow: 0 24px 40px -24px rgba(3, 36, 74, 0.5);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { color: var(--navy); padding: 12px 6px; border-radius: 10px; font-size: 1.08rem; }
  .main-nav a::after { display: none; }
  .main-nav a.is-active { color: var(--blue); font-weight: 500; }

  .site-header.menu-open {
    background: var(--white);
    box-shadow: 0 1px 0 var(--line);
  }
  .site-header.menu-open .brand img { filter: none; }
  .site-header.menu-open .menu-toggle { border-color: var(--line); color: var(--blue); }

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4rem); }
  .station { width: min(100%, 400px); }

  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .channels { margin-block-start: 0; }

  .card-internet, .card-networks, .card-infra, .card-support { grid-column: span 12; }

  .office-grid { grid-template-columns: minmax(0, 1fr); }
  .office address { min-height: 0; }

  .coverage-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .coverage-area { text-align: start; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .stat:nth-child(n + 3) { border-block-start: 1px solid var(--line-dark); }

  .audiences { grid-template-columns: minmax(0, 1fr); }
  .audience { border-inline-start: 0; padding-inline: 0; }
  .audience + .audience { border-block-start: 1px solid var(--line); }

  .fields { grid-template-columns: minmax(0, 1fr); }
  .chip { font-size: 0.85rem; padding: 5px 12px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .wa-float { width: 54px; height: 54px; inset-block-end: 16px; inset-inline-end: 16px; }
  .wa-float svg { width: 27px; height: 27px; }
  .bars { height: 48px; gap: 5px; }
  .bars i { width: 8px; }
}

@media (max-width: 420px) {
  .brand img { height: 40px; }
  .site-header.is-solid .brand img { height: 38px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
