/* ===== EXECUTIVE FIBER — SHARED STYLES ===== */
/* Fonts are loaded with <link> tags in each page <head> (Fraunces, Plus Jakarta Sans, JetBrains Mono). */

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

:root {
  --navy:    #080F1E;
  --navy2:   #0C1830;
  --blue:    #1547B8;
  --sky:     #2E86DE;
  --cyan:    #00CFE8;
  --ice:     #EBF3FF;
  --white:   #FFFFFF;
  --offwhite:#F7F9FC;
  --gray:    #64748B;
  --lgray:   #66758B;
  --border:  #E2E8F4;
  --gold:    #F5A623;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--navy); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 72px;
  background: rgba(8,15,30,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 900;
  color: var(--white); letter-spacing: -0.5px;
  text-decoration: none;
}
.logo em { font-style: italic; color: var(--cyan); }
nav ul { display: flex; gap: 0.25rem; list-style: none; align-items: center; }
nav ul a {
  color: rgba(255,255,255,0.65);
  text-decoration: none; font-size: 0.875rem; font-weight: 500;
  padding: 0.45rem 0.85rem; border-radius: 6px;
  transition: all 0.2s;
}
nav ul a:hover, nav ul a.active { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-cta {
  background: var(--cyan) !important; color: var(--navy) !important;
  font-weight: 700 !important; padding: 0.5rem 1.2rem !important;
  border-radius: 8px !important; margin-left: 0.5rem;
}
.nav-cta:hover { background: #00e5ff !important; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,207,232,0.35) !important; }

/* FOOTER */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.4);
  padding: 60px 5% 30px;
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 2rem;
}
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.4); margin-top: 1rem; max-width: 260px; line-height: 1.7; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.25); margin-bottom: 1rem; }
.footer-col a { display: block; color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.875rem; margin-bottom: 0.6rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; }
.footer-bottom span { color: var(--cyan); }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-socials a {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 0.85rem; text-decoration: none;
  transition: all 0.2s;
}
.footer-socials a:hover { background: var(--cyan); color: var(--navy); border-color: var(--cyan); }

/* SHARED COMPONENTS */
.tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan); background: rgba(0,207,232,0.1);
  border: 1px solid rgba(0,207,232,0.25);
  padding: 0.35rem 0.85rem; border-radius: 20px;
  margin-bottom: 1.25rem; width: fit-content;
}
.tag::before { content: ''; width: 5px; height: 5px; background: var(--cyan); border-radius: 50%; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

h1,h2,h3 { font-family: var(--font-display); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 900; line-height: 1.15; letter-spacing: -1px; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.lead { font-size: 1.05rem; color: var(--gray); max-width: 560px; margin-bottom: 3rem; line-height: 1.75; }

.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; 
  padding: 0.8rem 1.8rem; border-radius: 10px; text-decoration: none; transition: all 0.22s; cursor: pointer; border: none; }
.btn-cyan { background: var(--cyan); color: var(--navy); }
.btn-cyan:hover { background: #00e5ff; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,207,232,0.35); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.25); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--sky); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(21,71,184,0.35); }
.btn-outline-blue { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline-blue:hover { background: var(--blue); color: var(--white); }
.btn-arrow::after { content: '→'; transition: transform 0.2s; }
.btn-arrow:hover::after { transform: translateX(4px); }

section { padding: 100px 5%; }
.dark-section { background: var(--navy); color: var(--white); }
.dark-section .lead { color: rgba(255,255,255,0.5); }
.dark-section h2 { color: var(--white); }
.mid-section { background: var(--navy2); color: var(--white); }
.mid-section .lead { color: rgba(255,255,255,0.5); }
.mid-section h2 { color: var(--white); }
.light-section { background: var(--offwhite); }

/* SPEED TICKER */
.speed-ticker {
  background: var(--cyan); color: var(--navy);
  padding: 0.6rem 0; overflow: hidden; white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  animation: ticker 20s linear infinite;
  will-change: transform;
}
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.ticker-item { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; padding-right: 3rem; }

/* PING ANIMATION */
.ping-dot { display: inline-block; width: 8px; height: 8px; background: #22c55e; border-radius: 50%; position: relative; }
.ping-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: #22c55e; opacity: 0.4; animation: ping 1.5s infinite; }
@keyframes ping { 0%{transform:scale(1);opacity:0.4} 100%{transform:scale(2.5);opacity:0} }

@media (max-width: 900px) {
  nav ul { display: none !important; }
  .hamburger { display: flex !important; }
}
@media (min-width: 901px) {
  .mobile-nav { display: none !important; }
}
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-top { grid-template-columns: 1fr; }
}


/* ===== HAMBURGER & MOBILE NAV ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  z-index: 300;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(8,15,30,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 5% 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 199;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  transition: all 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a.active { color: #FFFFFF; background: rgba(255,255,255,0.06); }
.mobile-nav .mob-cta {
  background: #00CFE8 !important;
  color: #080F1E !important;
  font-weight: 700 !important;
  text-align: center;
  margin-top: 0.5rem;
  border-bottom: none !important;
  border-radius: 8px;
}
.mobile-nav .mob-cta:hover { background: #00e5ff !important; }


/* ===== REVIEW FIXES ===== */

/* form feedback (used by contact.html) */
.field-error { display: block; margin-top: 0.35rem; font-size: 0.78rem; font-weight: 600; color: #dc2626; }
.form-error { color: #b91c1c; font-size: 0.85rem; font-weight: 600; margin-top: 0.75rem; text-align: center; }
.form-note a { color: var(--blue); }
.submit-btn:disabled { opacity: 0.7; cursor: wait; transform: none; box-shadow: none; }

/* footer privacy link */
.footer-bottom p a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-bottom p a:hover { color: var(--cyan); }

/* readable tag pills on light sections (cyan on white fails contrast) */
.mission .tag, .values .tag, .speed-section .tag, .testi-section .tag,
.services-main .tag, .process .tag, .compare .tag, .contact-main .tag {
  color: var(--blue); background: rgba(21,71,184,0.08); border-color: rgba(21,71,184,0.25);
}
.mission .tag::before, .values .tag::before, .speed-section .tag::before, .testi-section .tag::before,
.services-main .tag::before, .process .tag::before, .compare .tag::before, .contact-main .tag::before {
  background: var(--blue);
}

/* tags sitting above centered headings */
.story .tag, .dig-process .dig-tag, .dig-pricing .dig-tag {
  display: flex; margin-left: auto; margin-right: auto;
}

/* anchors should not hide under the fixed nav */
[id] { scroll-margin-top: 90px; }

/* keyboard focus */
a:focus-visible, button:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

/* lighter vertical rhythm on phones */
@media (max-width: 600px) {
  section:not(.hero):not(.dig-hero) { padding-top: 64px !important; padding-bottom: 64px !important; }
}

/* respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
