/* Fibernet Engineering — Bootstrap + custom theme */

:root {
  --sky: #0ea5e9;
  --sky-light: #38bdf8;
  --sky-pale: #e0f2fe;
  --sky-soft: #f0f9ff;
  --sky-deep: #0284c7;
  --sky-glow: rgba(14, 165, 233, 0.25);
  --text: #0c4a6e;
  --text-dark: #082f49;
  --text-muted: #64748b;
  --border: rgba(14, 165, 233, 0.15);
  --border-strong: rgba(14, 165, 233, 0.3);
  --shadow-sm: 0 2px 12px rgba(14, 165, 233, 0.08);
  --shadow-md: 0 8px 32px rgba(14, 165, 233, 0.12);
  --shadow-lg: 0 20px 50px rgba(14, 165, 233, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 76px;
  --bs-primary: #0ea5e9;
  --bs-primary-rgb: 14, 165, 233;
  --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --bs-body-color: #0c4a6e;
  --bs-link-color: #0284c7;
  --bs-link-hover-color: #0ea5e9;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--bs-body-font-family);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
address { font-style: normal; }

/* Header / Navbar */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar { --bs-navbar-padding-y: 0; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark) !important;
  text-decoration: none;
}

.logo-img {
  width: 40px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.logo-accent { color: var(--sky); }

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem !important;
}

.navbar-nav .nav-link:hover { color: var(--sky-deep); }

.navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    border-top: 1px solid var(--border);
    margin-top: 0.75rem;
  }
}

/* Buttons */
.btn-fiber {
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-deep) 100%);
  color: #fff !important;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  box-shadow: 0 4px 16px var(--sky-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-fiber:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--sky-glow);
  color: #fff !important;
}

.btn-fiber-outline {
  background: #fff;
  color: var(--sky-deep) !important;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
}

.btn-fiber-outline:hover {
  background: var(--sky-pale);
  border-color: var(--sky);
  color: var(--sky-deep) !important;
}

.cta-banner .btn-fiber {
  background: #fff;
  color: var(--sky-deep) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Sections */
.section { padding: 4rem 0; }

@media (min-width: 992px) {
  .section { padding: 5.5rem 0; }
}

.section-header { max-width: 640px; }

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

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

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--sky-soft);
}

.hero-media { position: absolute; inset: 0; z-index: 0; }

.hero-video { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(240, 249, 255, 0.97) 0%, rgba(224, 242, 254, 0.92) 45%, rgba(240, 249, 255, 0.78) 100%);
}

.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-bottom: 1rem;
  padding: 0.4rem 0.85rem;
  background: #fff;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
}

.hero-title {
  font-size: clamp(1.85rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.hero-title em { font-style: normal; color: var(--sky-deep); }

.hero-desc { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.25rem; max-width: 36rem; }

.hero-stats {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-md);
}

.stat-num { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 700; color: var(--sky-deep); line-height: 1.2; }
.stat-label { font-size: 0.68rem; color: var(--text-muted); font-weight: 500; line-height: 1.3; }

.hero-image-wrap { position: relative; max-width: 420px; }

.hero-image { border: 4px solid #fff; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }

.hero-badge {
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

@media (min-width: 992px) {
  .hero-badge { left: -1rem; }
  .hero-image-wrap { max-width: none; }
}

.hero-badge-icon { font-size: 1.35rem; }
.hero-badge strong { display: block; font-size: 0.85rem; color: var(--text-dark); }
.hero-badge span { font-size: 0.7rem; color: var(--text-muted); }

/* Ticker */
.ticker {
  background: linear-gradient(90deg, var(--sky-deep), var(--sky), var(--sky-light));
  color: #fff;
  overflow: hidden;
  padding: 0.75rem 0;
}

.ticker-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: ticker 30s linear infinite;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-track span:nth-child(even) { opacity: 0.5; }

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

/* Metrics */
.metric-card {
  padding: 1.5rem 1rem;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  height: 100%;
}

@media (min-width: 992px) {
  .metric-card { padding: 2rem 1.25rem; }
}

.metric-num { display: block; font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 700; color: var(--sky-deep); }
.metric-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

.col-6:nth-child(2n) .metric-card,
.col-lg-3:last-child .metric-card { border-right: none; }

@media (max-width: 991.98px) {
  .col-6:nth-child(n+3) .metric-card { border-bottom: none; }
}

/* Clients */
.clients-bar {
  background: linear-gradient(135deg, var(--sky-soft) 0%, #fff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) { .clients-bar { padding: 2rem; } }

.clients-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.client-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 0.75rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.client-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--sky); }

.client-logo-wrap {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
  filter: grayscale(30%) opacity(0.88);
  transition: filter 0.25s ease;
}

.client-card:hover .client-logo { filter: none; }

.client-logo-att { max-height: 32px; }

.client-logo-gfiber { flex-direction: column; gap: 0.1rem; height: 52px; }
.client-logo-google { max-height: 24px; filter: none; opacity: 1; }
.client-logo-sub { font-size: 0.75rem; font-weight: 600; color: #5f6368; }

.client-type {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 0.65rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  width: 100%;
}

/* Experience cards */
.experience { background: #fff; }

.experience-card {
  background: var(--sky-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.experience-card h3 { font-size: 1rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.5rem; }
.experience-card p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.experience-icon { font-size: 1.5rem; display: block; margin-bottom: 0.5rem; }

.experience-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.experience-tags li {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--sky-deep);
}

.experience-footnote {
  background: linear-gradient(90deg, var(--sky-deep), var(--sky));
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 1.25rem 1.5rem;
}

/* Services */
.services { background: var(--sky-soft); }

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card-featured { border-color: var(--border-strong); }

.service-card-image { position: relative; height: 180px; overflow: hidden; }
.service-card-image img { width: 100%; height: 100%; object-fit: cover; }

.service-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--sky);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.service-badge-alt { background: var(--sky-deep); }
.service-card-body { padding: 1.5rem; }

.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.service-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.service-list li:last-child { border-bottom: none; }

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--sky);
  border-radius: 50%;
}

.service-link { font-size: 0.875rem; font-weight: 600; color: var(--sky-deep); text-decoration: none; }

/* Software expertise */
.expertise { background: #fff; border-block: 1px solid var(--border); }

.software-bar {
  background: linear-gradient(180deg, var(--sky-soft) 0%, #fff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) { .software-bar { padding: 2rem 2.25rem; } }

.software-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 0.75rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.software-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--sky);
}

.software-logo {
  width: 100%;
  max-width: 130px;
  height: 52px;
  object-fit: contain;
}

.software-logo-wide { max-width: 150px; }

.software-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.software-use {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
  max-width: 14ch;
}

/* Video */
.video-showcase { background: linear-gradient(180deg, var(--sky-soft) 0%, #fff 100%); }

.video-main { border: 3px solid #fff; box-shadow: var(--shadow-lg); background: #000; }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--text-dark);
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--text-dark);
}

.video-play-hint {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(14, 165, 233, 0.92);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.video-play-hint.visible {
  opacity: 1;
  transform: none;
}

.video-main-footer {
  background: #fff;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}

.video-main-label { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); }

.video-unmute-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Gallery — ponytail: CSS grid with mobile stack fallback */
.gallery { background: var(--sky-soft); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
  min-height: 140px;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; min-height: 140px; }

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(transparent, rgba(8, 47, 73, 0.85));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 160px;
    gap: 1rem;
  }
  .gallery-item-large { grid-column: span 2; grid-row: span 2; min-height: auto; }
  .gallery-item-wide { grid-column: span 2; }
  .gallery-item img { min-height: 0; }
}

@media (max-width: 767.98px) {
  .gallery-item-large,
  .gallery-item-wide { grid-column: span 2; }
}

/* Trust */
.trust { background: #fff; border-block: 1px solid var(--border); }

.trust-badge {
  background: var(--sky-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  height: 100%;
}

.trust-badge strong { display: block; font-size: 0.9rem; color: var(--sky-deep); }
.trust-badge span { font-size: 0.72rem; color: var(--text-muted); }

.testimonial-slider {
  background: linear-gradient(145deg, var(--sky-soft), #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  min-height: 200px;
}

.testimonial-track { position: relative; min-height: 120px; }

.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial.active { opacity: 1; transform: none; position: relative; }
.testimonial p { font-size: 1rem; font-style: italic; color: var(--text-dark); margin-bottom: 0.75rem; }
.testimonial footer { font-size: 0.8rem; color: var(--text-muted); }
.testimonial footer strong { color: var(--sky-deep); }

.testimonial-dots { display: flex; gap: 0.4rem; }

.testimonial-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--border-strong);
  padding: 0;
  cursor: pointer;
}

.testimonial-dots .dot.active { background: var(--sky); transform: scale(1.15); }

/* Process */
.process-step {
  background: var(--sky-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.process-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

/* About */
.about { background: var(--sky-soft); }

.about-photo { border: 4px solid #fff; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }

.about-float-card {
  position: absolute;
  bottom: -1rem;
  right: 0;
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

@media (min-width: 992px) { .about-float-card { right: -1rem; } }

.about-float-num { display: block; font-size: 1.75rem; font-weight: 700; line-height: 1; }
.about-float-label { font-size: 0.7rem; opacity: 0.9; }

.about-highlights li {
  position: relative;
  padding: 0.6rem 1rem 0.6rem 2.25rem;
  margin-bottom: 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.about-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0.85rem;
  color: var(--sky);
  font-weight: 700;
}

/* CTA Banner */
.cta-banner { position: relative; overflow: hidden; }

.cta-banner-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.88), rgba(14, 165, 233, 0.78));
}

.cta-banner-content { position: relative; z-index: 1; max-width: 640px; margin-inline: auto; }

/* Locations */
.location-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.location-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.location-card-primary { border-color: var(--border-strong); }

.location-image { height: 160px; overflow: hidden; }
.location-image img { width: 100%; height: 100%; object-fit: cover; }
.location-body { padding: 1.5rem; }
.location-flag { font-size: 1.5rem; margin-bottom: 0.35rem; }
.location-body h3 { color: var(--text-dark); margin-bottom: 0.5rem; }
.location-body address { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.location-phone { font-weight: 600; color: var(--text-dark); text-decoration: none; font-size: 0.9rem; }
.location-email { color: var(--sky-deep); font-weight: 500; text-decoration: none; font-size: 0.9rem; }

/* Contact */
.contact { background: var(--sky-soft); }

.contact-detail {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}

.contact-detail-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-detail a { font-weight: 600; color: var(--sky-deep); text-decoration: none; }

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) { .contact-form { padding: 2rem; } }

.form-control, .form-select {
  border-color: var(--border);
  background: var(--sky-soft);
  padding: 0.7rem 0.9rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.15);
  background: #fff;
}

.form-label { font-size: 0.8rem; font-weight: 600; color: var(--text-dark); }

.form-note.success { color: var(--sky-deep); font-weight: 600; }
.form-note.error { color: #dc3545; }

.contact-side-img { border: 3px solid #fff; box-shadow: var(--shadow-md); aspect-ratio: 16/10; object-fit: cover; }

/* Footer */
.footer { background: var(--text-dark); color: rgba(255, 255, 255, 0.8); }
.footer .logo-text { color: #fff; }
.footer-nav a { color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 0.85rem; }
.footer-nav a:hover { color: var(--sky-light); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }
