/* ============================================================
   HWC VoIP — Shared Stylesheet
   Hyper Wave Consulting, LLC
   ============================================================ */

:root {
  --navy: #0a1628;
  --blue: #0057b8;
  --blue-light: #1a6fd4;
  --accent: #f5a623;
  --text: #1a1a2e;
  --muted: #6b7280;
  --bg-light: #f8fafd;
  --white: #ffffff;
  --radius: 12px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

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

/* ── Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p  { color: var(--muted); }

/* ── Utility ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }

.text-white { color: var(--white) !important; }
.text-muted  { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,87,184,.15);
  color: #7db8f7;
  border: 1px solid rgba(0,87,184,.35);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.badge-accent {
  background: rgba(245,166,35,.15);
  color: var(--accent);
  border-color: rgba(245,166,35,.35);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,87,184,.35);
}

.btn-accent {
  background: var(--accent);
  color: var(--navy);
}
.btn-accent:hover {
  background: #f7b74a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,166,35,.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
}

.btn-ghost {
  background: transparent;
  color: var(--blue-light);
  border-color: var(--blue-light);
}
.btn-ghost:hover {
  background: var(--blue-light);
  color: var(--white);
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.07);
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.5px;
}

.nav-logo-mark span { color: var(--accent); }

.nav-logo-text {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255,255,255,.75);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all .15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.nav-links a.active { color: #7db8f7; }

.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  margin-left: 8px;
  padding: 8px 18px !important;
  border-radius: var(--radius) !important;
}
.nav-cta:hover {
  background: var(--blue-light) !important;
}

/* ── Page Hero Banner ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2040 100%);
  padding: 120px 0 72px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,87,184,.25) 0%, transparent 70%);
  pointer-events: none;
}

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

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255,255,255,.7);
  font-size: 1.15rem;
  max-width: 600px;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid #e5e9f0;
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .2s ease, transform .2s ease;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(10,22,40,.08);
  transform: translateY(-2px);
}

.card-dark {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
}

.card-navy {
  background: #0d1e38;
  border-color: rgba(255,255,255,.08);
}

/* ── Icon Box ── */
.icon-box {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(0,87,184,.1);
  color: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-bottom: 16px;
}

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Section label ── */
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 12px;
}

.section-intro {
  max-width: 600px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-intro h2 { margin-bottom: 12px; }

/* ── Stats bar ── */
.stats-bar {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-item {
  flex: 1;
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
}
.stat-item:last-child { border-right: none; }

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Form elements ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-group.dark label { color: rgba(255,255,255,.8); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d1d9e6;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,87,184,.12);
}

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

.input-dark {
  background: rgba(255,255,255,.07) !important;
  border-color: rgba(255,255,255,.15) !important;
  color: var(--white) !important;
}

.input-dark::placeholder { color: rgba(255,255,255,.4); }

.input-dark:focus {
  border-color: var(--blue-light) !important;
  box-shadow: 0 0 0 3px rgba(26,111,212,.25) !important;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Portability checker ── */
.portability-widget {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 28px;
}

.portability-widget .widget-title {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.portability-widget .widget-sub {
  color: rgba(255,255,255,.55);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.portability-input-row {
  display: flex;
  gap: 10px;
}

.portability-input-row input {
  flex: 1;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.18);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color .15s;
}

.portability-input-row input::placeholder { color: rgba(255,255,255,.4); }
.portability-input-row input:focus { border-color: var(--blue-light); }

.portability-result {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.portability-result.success {
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.3);
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portability-result.error {
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.3);
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portability-result.loading {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Steps ── */
.steps {
  display: flex;
  gap: 0;
  position: relative;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.step::after {
  content: '';
  position: absolute;
  top: 24px;
  right: -1px;
  width: 50%;
  height: 2px;
  background: rgba(0,87,184,.3);
}

.step:last-child::after { display: none; }

.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.step-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
}

.step-desc { font-size: 0.875rem; color: var(--muted); }

/* Steps dark variant */
.steps-dark .step-num { background: var(--blue); box-shadow: 0 4px 14px rgba(0,87,184,.4); }
.steps-dark .step-title { color: var(--white); }
.steps-dark .step-desc  { color: rgba(255,255,255,.55); }
.steps-dark .step::after { background: rgba(255,255,255,.15); }

/* ── Process steps (numbered list style) ── */
.process-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid #e5e9f0;
}

.process-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Trust bar ── */
.trust-bar {
  background: var(--bg-light);
  border-top: 1px solid #e5e9f0;
  border-bottom: 1px solid #e5e9f0;
  padding: 24px 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  white-space: nowrap;
}

.trust-items {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid #e5e9f0;
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.trust-item span { font-size: 1.1rem; }

/* ── Footer ── */
footer {
  background: #060e1c;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 64px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-sub {
  color: rgba(255,255,255,.4);
  font-size: 0.85rem;
}

.footer-cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-left: auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 130px;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: 4px;
}

.footer-col a {
  color: rgba(255,255,255,.65);
  font-size: 0.9rem;
  transition: color .15s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom span {
  color: rgba(255,255,255,.35);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255,255,255,.35);
  font-size: 0.85rem;
  transition: color .15s;
}

.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ── CTA section ── */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2040 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,87,184,.3) 0%, transparent 65%);
  pointer-events: none;
}

.cta-section-inner { position: relative; z-index: 1; }

.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p  { color: rgba(255,255,255,.65); margin-bottom: 32px; font-size: 1.05rem; }

.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FAQ ── */
.faq-item {
  border: 1px solid #e5e9f0;
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .15s;
}

.faq-question:hover { background: var(--bg-light); }

.faq-answer {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Checklist ── */
.checklist { display: flex; flex-direction: column; gap: 10px; }

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.checklist li::before {
  content: '✓';
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,87,184,.1);
  color: var(--blue-light);
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Table ── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-table th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #e5e9f0;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--bg-light); }

.compare-table .check  { color: #22c55e; font-weight: 700; }
.compare-table .cross  { color: #ef4444; font-weight: 700; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps  { flex-direction: column; gap: 24px; }
  .step::after { display: none; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-cols { gap: 32px; }
}

@media (max-width: 640px) {
  nav { padding: 0 16px; gap: 16px; }
  .nav-links { gap: 0; }
  .nav-links a:not(.nav-cta) { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .portability-input-row { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
  .trust-inner { gap: 16px; }
}
