/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #1a9af7;
  --blue-dk: #0d7fd4;
  --orange:  #f5921e;
  --dark:    #111827;
  --dark2:   #1f2937;
  --gray:    #6b7280;
  --light:   #f9fafb;
  --white:   #ffffff;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(0,0,0,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.15); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 8px 18px; font-size: .85rem; font-weight: 600; color: #fff; }
.tag-dot { width: 8px; height: 8px; background: var(--orange); border-radius: 50%; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.section-sub { font-size: 1.05rem; color: var(--gray); max-width: 580px; margin: 0 auto; }
.text-center { text-align: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 8px; font-weight: 700; font-size: .95rem; cursor: pointer; border: none; transition: all .2s; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #e07d10; transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); }
.btn-outline-dark { background: transparent; color: var(--dark); border: 2px solid var(--dark); }
.btn-outline-dark:hover { background: var(--dark); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dk); }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15,20,30,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s;
}
.nav.scrolled { background: rgba(10,15,25,.97); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 32px;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 16px; border-radius: 8px;
  font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.8);
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.1); color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 10px 20px; font-size: .88rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-links, .nav-cta .btn-outline-white { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(10,15,25,.98);
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.open a { width: 100%; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: url('../images/background-hero.png') center center / cover no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(5,10,25,.78) 0%, rgba(5,10,25,.55) 60%, rgba(5,10,25,.4) 100%);
}
.hero-content { position: relative; z-index: 1; padding-top: 68px; }
.hero-content .tag { margin-bottom: 28px; }
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900; line-height: 1.1;
  color: #fff; margin-bottom: 24px;
  max-width: 640px;
}
.hero-title span { color: var(--orange); display: block; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.75); max-width: 500px; margin-bottom: 40px; line-height: 1.7; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 72px; }
.hero-badges {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.hero-badge {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px; padding: 14px 20px;
  color: #fff;
}
.hero-badge-icon { color: var(--orange); font-size: 1.3rem; }
.hero-badge-title { font-weight: 700; font-size: .95rem; }
.hero-badge-sub { font-size: .78rem; color: rgba(255,255,255,.6); }

/* ===== SERVICES ===== */
.services { background: var(--light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 56px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.14); }
.service-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.service-img-bg {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: transform .4s;
}
.service-card:hover .service-img-bg { transform: scale(1.04); }
.service-num {
  position: absolute; top: 16px; left: 16px;
  font-size: 1.4rem; font-weight: 900; color: rgba(255,255,255,.7);
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.service-body { padding: 28px; }
.service-body h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.service-body p { color: var(--gray); font-size: .93rem; line-height: 1.6; margin-bottom: 20px; }
.learn-more { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; font-size: .9rem; transition: gap .2s; }
.learn-more:hover { gap: 10px; }

/* Service image placeholders */
.svc-splicing {
  background: linear-gradient(rgba(5,15,35,.35), rgba(5,15,35,.35)),
              url('../images/Fujikura-Splicing-Machine-90R.webp') center/cover no-repeat;
}
.svc-otdr {
  background: linear-gradient(rgba(5,15,35,.35), rgba(5,15,35,.35)),
              url('../images/otdr-testing.webp') center/cover no-repeat;
}
.svc-repair {
  background: linear-gradient(rgba(5,15,35,.35), rgba(5,15,35,.35)),
              url('../images/troubleshooting.webp') center/cover no-repeat;
}

.svc-icon-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.svc-icon-wrap svg { opacity: .18; }

/* ===== WHY US ===== */
.why { background: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.why-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow .2s, transform .2s;
}
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.why-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(26,154,247,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 1.4rem;
  margin-bottom: 20px;
}
.why-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.why-card p  { color: var(--gray); font-size: .9rem; line-height: 1.6; }
.why-card--dod { border: 2px solid rgba(26,154,247,.25); background: linear-gradient(135deg, #f0f7ff 0%, var(--light) 100%); }
.why-icon--dod { background: rgba(26,154,247,.15); color: var(--blue); }

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--blue);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900; color: #fff; margin-bottom: 16px; }
.cta-band p  { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 520px; margin: 0 auto 40px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: #e8f4fe; }

/* ===== FOOTER ===== */
.footer { background: var(--dark2); color: rgba(255,255,255,.7); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 72px 0 48px;
}
.footer-brand img { height: 48px; margin-bottom: 20px; filter: brightness(0) invert(1) opacity(.85); }
.footer-brand p { font-size: .9rem; line-height: 1.7; max-width: 240px; }
.footer-col h4 {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #fff;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: .9rem; transition: color .2s; }
.footer-col ul a:hover { color: #fff; }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: .9rem; }
.footer-contact-item svg { color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: .82rem;
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-badges { flex-direction: column; }
}

/* ===== INNER PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 100%);
  padding: 140px 0 80px;
  text-align: center;
  color: #fff;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 16px; }
.page-hero p  { color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ===== SERVICES PAGE ===== */
.services-full { background: var(--light); }
.service-full-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}
.service-full-card.reverse { direction: rtl; }
.service-full-card.reverse > * { direction: ltr; }
.service-full-visual {
  height: 280px;
  border-radius: 10px;
  overflow: hidden;
}
.service-full-text h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; }
.service-full-text p  { color: var(--gray); margin-bottom: 20px; line-height: 1.7; }
.service-full-text ul { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.service-full-text ul li { display: flex; align-items: center; gap: 10px; color: var(--gray); font-size: .93rem; }
.service-full-text ul li::before { content: ''; width: 8px; height: 8px; background: var(--orange); border-radius: 50%; flex-shrink: 0; }

@media (max-width: 768px) {
  .service-full-card { grid-template-columns: 1fr; }
  .service-full-card.reverse { direction: ltr; }
}

/* ===== ABOUT PAGE ===== */
.about-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.about-intro-visual {
  height: 420px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, #1d3d6b 100%);
  display: flex; align-items: center; justify-content: center;
}
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px;
}
.stat-card {
  background: var(--light); border-radius: 10px; padding: 24px; text-align: center;
}
.stat-card .num { font-size: 2rem; font-weight: 900; color: var(--blue); }
.stat-card .label { font-size: .85rem; color: var(--gray); margin-top: 4px; }
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 48px;
}
.team-card {
  background: var(--white); border-radius: var(--radius); padding: 32px; text-align: center; box-shadow: var(--shadow);
}
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dk));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff; font-weight: 900;
}
.team-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.team-card p  { color: var(--orange); font-size: .85rem; font-weight: 600; }

@media (max-width: 768px) {
  .about-intro { grid-template-columns: 1fr; }
  .about-intro-visual { height: 260px; }
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-card {
  background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  display: flex; gap: 20px; align-items: flex-start;
}
.contact-card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(26,154,247,.1); display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 1.3rem; flex-shrink: 0;
}
.contact-card h3 { font-weight: 700; margin-bottom: 6px; }
.contact-card p  { color: var(--gray); font-size: .9rem; line-height: 1.6; }
.contact-form-wrap {
  background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
}
.contact-form-wrap h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.contact-form-wrap .sub { color: var(--gray); margin-bottom: 32px; font-size: .93rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .85rem; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
  border: 1.5px solid #e5e7eb; border-radius: 8px;
  padding: 12px 16px; font-size: .93rem; font-family: inherit;
  transition: border-color .2s; background: var(--light);
  width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== CONTACT LOGO PANEL ===== */
.contact-logo-panel {
  background: var(--dark2);
  border-radius: var(--radius);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow);
}
.contact-logo-img {
  height: 90px;
  width: auto;
  margin-bottom: 28px;
  filter: brightness(0) invert(1) opacity(.9);
}
.contact-logo-tagline {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: .01em;
}
.contact-logo-divider {
  width: 48px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin-bottom: 20px;
}
.contact-logo-sub {
  color: rgba(255,255,255,.6);
  font-size: .95rem;
  line-height: 1.7;
  max-width: 340px;
  margin-bottom: 36px;
}
.contact-logo-cta {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1.05rem;
}
.contact-logo-panel .btn-outline-dark:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.6);
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
