/* ============================================================
   Sky Telecommunication Services — stylesheet
   Mobile-first, plain CSS. No frameworks.
   ============================================================ */

:root {
  /* Palette — telecom blues / grays / white */
  --navy: #0a2540;
  --navy-800: #0e2f52;
  --blue: #1c6dd0;
  --blue-600: #175bb0;
  --sky: #e8f1fb;
  --gray-900: #1a2430;
  --gray-700: #3f4b5b;
  --gray-500: #6b7787;
  --gray-300: #cfd7e0;
  --gray-100: #f2f5f9;
  --white: #ffffff;

  --text: var(--gray-900);
  --text-muted: var(--gray-500);
  --bg: var(--white);
  --bg-alt: var(--gray-100);

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.08), 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.1);
  --container: 1120px;
  --header-h: 68px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.5em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font: inherit;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--blue-600);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--gray-300);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 700;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  height: 52px;
  width: auto;
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .brand-mark {
    height: 44px;
  }
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--gray-700);
  font-weight: 500;
}

.nav-menu a:hover {
  color: var(--blue);
  text-decoration: none;
}

.nav-menu a.nav-cta,
.nav-menu a.nav-cta:hover {
  color: #fff;
  text-decoration: none;
}

/* Mobile nav */
@media (max-width: 820px) {
  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-300);
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 4px;
    padding: 14px 20px 22px;
    transform: translateY(-140%);
    transition: transform 0.28s ease;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-menu a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 1.05rem;
  }

  .nav-menu .nav-cta {
    margin-top: 10px;
    border-bottom: none;
    text-align: center;
  }
}

@media (min-width: 821px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: clamp(64px, 12vw, 128px) 0 clamp(56px, 9vw, 104px);
  overflow: hidden;
  background: var(--navy);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      160deg,
      rgba(10, 37, 64, 0.93) 0%,
      rgba(14, 47, 82, 0.88) 55%,
      rgba(18, 69, 126, 0.82) 100%
    ),
    radial-gradient(circle at 20% 20%, rgba(28, 109, 208, 0.3) 0, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(78, 168, 255, 0.2) 0, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 44px 44px, 44px 44px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 760px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8ec5ff;
  margin: 0 0 14px;
}

.hero-title {
  color: #fff;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  max-width: 520px;
}

.hero-stats dt {
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
}

.hero-stats dd {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 520px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ---------- Clients strip ---------- */
.clients {
  background: var(--navy);
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.clients-label {
  margin: 0 0 12px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.logo-loop {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 10%,
    #000 90%,
    transparent 100%
  );
}

.logo-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  width: max-content;
  animation: logo-scroll 34s linear infinite;
}

.logo-track li {
  flex: 0 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
}

.logo-track img {
  height: 22px;
  width: auto;
  opacity: 0.72;
  transition: opacity 0.18s ease;
}

.logo-track li:hover img {
  opacity: 1;
}

.logo-loop:hover .logo-track {
  animation-play-state: paused;
}

@keyframes logo-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (min-width: 640px) {
  .logo-track img {
    height: 26px;
  }

  .logo-track li {
    padding: 0 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 36px;
  }

  .logo-track li[aria-hidden="true"] {
    display: none;
  }
}

/* ---------- Experience ---------- */
.exp-stats {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}

.exp-stats div {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.exp-stats strong {
  display: block;
  font-size: 1.7rem;
  color: var(--navy);
  line-height: 1.1;
}

.exp-stats span {
  color: var(--gray-700);
  font-size: 0.92rem;
}

.projects {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.project {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.project p {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .exp-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 980px) {
  .exp-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Our Work gallery ---------- */
.gallery {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-700);
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Safety note ---------- */
.safety-note {
  margin-top: 34px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-md);
}

.safety-note h3 {
  color: #fff;
  margin-bottom: 8px;
}

.safety-note p {
  margin: 0;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(56px, 10vw, 104px) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--sky);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 32px;
}

.about-copy p {
  color: var(--gray-700);
}

.about-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 22px;
}

.about-mission {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.about-mission h3 {
  color: #fff;
}

.about-mission p {
  color: rgba(255, 255, 255, 0.82);
}

.mission-points {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.mission-points li {
  position: relative;
  padding-left: 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.mission-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--blue);
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
    gap: 48px;
  }
}

/* ---------- Services cards ---------- */
.cards {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--sky);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--blue);
}

.card p {
  color: var(--gray-700);
  margin: 0;
  font-size: 0.96rem;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Why us ---------- */
.features {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  counter-reset: feat;
}

.feature {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.feature-num {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.feature p {
  color: var(--gray-700);
  margin: 0;
  font-size: 0.96rem;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 32px;
}

.contact-form {
  display: grid;
  gap: 18px;
  background: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.field input,
.field textarea {
  font: inherit;
  color: var(--text);
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  width: 100%;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28, 109, 208, 0.18);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field-error {
  color: #c0392b;
  font-size: 0.82rem;
  min-height: 1em;
}

.field.invalid input,
.field.invalid textarea {
  border-color: #c0392b;
}

.form-status {
  margin: 4px 0 0;
  font-size: 0.92rem;
  font-weight: 500;
}

.form-status.success {
  color: #1e7e46;
}

.form-status.error {
  color: #c0392b;
}

.contact-info {
  display: grid;
  gap: 22px;
  align-content: start;
}

.info-item h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.info-item p {
  margin: 0;
  color: var(--gray-700);
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 52px;
}

.footer-inner {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  padding-bottom: 36px;
}

.footer-logo {
  height: 46px;
  width: auto;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 20px 26px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
  }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}
