/* Cleveland Business Internet
   Dark navy theme matching the sibling sites, single cobalt accent,
   Geist + Geist Mono. All text/background pairs verified WCAG AA.
   Radius system: interactive elements 10px, containers/cards 16px. */

:root {
  --bg: #070c18;
  --bg-lift: #0b1322;
  --surface: #0f1728;
  --surface-input: #0a1120;
  --ink: #f0f4fc;
  --ink-soft: #c2cde2;
  --muted: #8fa0bf;
  --line: rgba(148, 168, 210, 0.13);
  --line-strong: rgba(148, 168, 210, 0.26);
  --accent: #4d7cfe;          /* links, icons, focus rings: 5.2:1 on bg */
  --accent-bright: #7ba0ff;   /* link hover: 7.7:1 on bg */
  --accent-btn: #2b5ce6;      /* button fill: white text 5.6:1, fill 3.5:1 vs bg */
  --accent-btn-hover: #3f70fa;
  --accent-glow: rgba(77, 124, 254, 0.14);
  --accent-tint: rgba(77, 124, 254, 0.08);
  --error: #fda29b;
  --error-strong: #f97066;
  --success: #6fdcae;
  --shadow: 0 14px 40px rgba(2, 5, 12, 0.55);
  --radius-ui: 10px;
  --radius-box: 16px;
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  /* z-index scale */
  --z-nav: 20;
  --z-skip: 30;
  --z-grain: 40;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain overlay: fixed, pointer-events-none, breaks digital flatness */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 0.75rem;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-bright); }

::selection { background: rgba(77, 124, 254, 0.35); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: var(--z-skip);
  padding: 0.6rem 1rem;
  background: var(--accent-btn);
  color: #fff;
  border-radius: 0 0 var(--radius-ui) var(--radius-ui);
}
.skip-link:focus { top: 0; color: #fff; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.95em;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-ui);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
  background: var(--accent-btn);
  color: #fff;
}
.button-primary:hover {
  background: var(--accent-btn-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(43, 92, 230, 0.35);
}
.button-primary:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.button-primary:disabled {
  background: #1c2740;
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button-lg { padding: 0.85rem 1.7rem; font-size: 1.02rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.text-link:hover { color: var(--accent-bright); }
.text-link .ph { color: var(--accent); transition: transform 0.2s ease; }
.text-link:hover .ph { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(7, 12, 24, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand-mark { flex: none; border-radius: 7px; }
.brand-name { font-size: 1.02rem; }

.site-nav { margin-left: auto; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.button) {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:not(.button):hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: none;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}
.header-phone .ph { color: var(--accent); font-size: 1.15rem; }
.header-phone:hover { color: var(--accent-bright); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-ui);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.35rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(58rem 32rem at 84% -10rem, var(--accent-glow), transparent 64%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.75rem);
}

.hero-copy { padding-bottom: 0.5rem; }

.hero-copy h1 {
  font-size: clamp(2.35rem, 1.35rem + 2.8vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 26ch;
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 38ch;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Signal-bars brand motif: a static designed graphic, echoes the mark. */
.hero-signal {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.5rem;
}
.hero-signal::before {
  content: "";
  position: absolute;
  inset: auto -20% -6rem;
  height: 24rem;
  background: radial-gradient(50% 60% at 50% 100%, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.signal-bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: clamp(0.8rem, 1.6vw, 1.25rem);
  padding-bottom: 1px;
  border-bottom: 1px solid var(--line-strong);
}

.signal-bars span {
  width: clamp(2.1rem, 3.4vw, 3rem);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(77, 124, 254, 0.28) 100%);
  transform-origin: bottom;
}
.signal-bars span:nth-child(1) { height: 4.25rem;  opacity: 0.4; }
.signal-bars span:nth-child(2) { height: 7.5rem;   opacity: 0.55; }
.signal-bars span:nth-child(3) { height: 11rem;    opacity: 0.7; }
.signal-bars span:nth-child(4) { height: 15rem;    opacity: 0.85; }
.signal-bars span:nth-child(5) { height: 19.5rem;  opacity: 1; }

/* ---------- Sections ---------- */

section { scroll-margin-top: 88px; }

.why { padding-block: clamp(4rem, 9vw, 6.5rem) clamp(4.5rem, 10vw, 7rem); }

.why h2,
.speed-header h2,
.customers-header h2,
.contact-info h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.why h2 { margin-bottom: 2.5rem; }

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

/* ---------- Bento (why we're different) ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.cell {
  grid-column: span 4;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  padding: 1.75rem;
}

.cell h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.cell p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

.cell-icon {
  display: inline-flex;
  font-size: 1.65rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.cell-feature {
  grid-column: span 7;
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background:
    radial-gradient(30rem 18rem at 100% 0%, var(--accent-glow), transparent 65%),
    var(--surface);
}
.cell-feature p { max-width: 58ch; }

.cell-tint {
  grid-column: span 5;
  background:
    linear-gradient(160deg, rgba(77, 124, 254, 0.12), rgba(77, 124, 254, 0.04)),
    var(--bg-lift);
  border-color: rgba(77, 124, 254, 0.28);
}

.cell-accent {
  grid-column: span 12;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: linear-gradient(115deg, var(--accent-btn) 0%, #1f47bd 100%);
  border-color: rgba(123, 160, 255, 0.4);
}
.cell-accent .cell-icon {
  color: #fff;
  font-size: 2rem;
  margin: 0.15rem 0 0;
}
.cell-accent h3 { color: #fff; }
.cell-accent p { color: rgba(255, 255, 255, 0.88); max-width: 75ch; }

/* ---------- Speed ---------- */

.speed {
  background:
    radial-gradient(48rem 26rem at 10% 115%, var(--accent-glow), transparent 62%),
    var(--bg-lift);
  border-block: 1px solid var(--line);
  padding-block: clamp(4rem, 9vw, 6.5rem) clamp(4.5rem, 10vw, 7rem);
}

.speed-header { max-width: 60ch; margin-bottom: 3rem; }

.speed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 6vw, 5rem);
  row-gap: 2.5rem;
}

.speed-item {
  position: relative;
  border-top: 1px solid var(--line-strong);
  padding-top: 1.25rem;
}
.speed-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3rem;
  height: 2px;
  background: var(--accent);
}

.speed-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.speed-item p {
  color: var(--muted);
  max-width: 48ch;
}

/* ---------- Testimonials ---------- */

.customers {
  background:
    radial-gradient(50rem 30rem at 88% -8rem, rgba(77, 124, 254, 0.08), transparent 65%),
    var(--bg);
  padding-block: clamp(4rem, 9vw, 6.5rem) clamp(4.5rem, 10vw, 7rem);
}

.customers-header { margin-bottom: 2.75rem; }

.quote-wall {
  columns: 2;
  column-gap: 1.5rem;
}

.quote {
  break-inside: avoid;
  margin: 0 0 1.5rem;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  box-shadow: var(--shadow);
}

.quote blockquote { margin: 0 0 1.5rem; }

.quote blockquote p {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quote-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--radius-ui);
  background: var(--accent-tint);
  border: 1px solid rgba(77, 124, 254, 0.3);
  color: var(--accent-bright);
  font-weight: 600;
  font-size: 1.05rem;
}

.quote-attr { display: flex; flex-direction: column; line-height: 1.3; }
.quote-attr strong { font-weight: 600; color: var(--ink); }
.quote-attr span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Contact ---------- */

.contact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 50% -12rem, var(--accent-glow), transparent 68%),
    var(--bg-lift);
  border-top: 1px solid var(--line);
  padding-block: clamp(4rem, 9vw, 6.5rem) clamp(4.5rem, 10vw, 7rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-info .section-sub { margin-bottom: 2rem; }

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  letter-spacing: -0.02em;
}
.contact-phone .ph { color: var(--accent); font-size: 0.85em; flex: none; }
.contact-phone:hover { color: var(--accent-bright); }

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-soft);
}

.contact-list .ph { color: var(--accent); font-size: 1.25rem; flex: none; }
.contact-list a { color: var(--ink-soft); font-weight: 500; }
.contact-list a:hover { color: var(--accent-bright); }

/* ---------- Form ---------- */

.quote-form {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-box);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.45rem; }

.field label {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink);
}

.field .optional { color: var(--muted); font-weight: 400; }

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--surface-input);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-ui);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea { resize: vertical; min-height: 8rem; }

.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(77, 124, 254, 0.25);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--error-strong); }

.field-error {
  margin: 0;
  font-size: 0.85rem;
  color: var(--error);
}

/* Honeypot: visually removed, still a real text input */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.25rem;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  min-height: 1.5em;
}
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-block: 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.footer-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
}

.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--accent-bright); }

.footer-contact > * + * {
  border-left: 1px solid var(--line-strong);
  padding-left: 1.25rem;
}

/* ---------- Scroll reveal (JS-gated, reduced-motion safe) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  }
  html.js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
  html.js .reveal.no-anim { transition: none; }
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .header-phone-number { display: none; }
  .header-phone {
    width: 42px;
    height: 42px;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-ui);
    background: var(--surface);
  }
  .header-phone .ph { font-size: 1.3rem; }
}

@media (max-width: 960px) {
  .bento { gap: 1rem; }
  .cell { grid-column: span 6; }
  .cell-feature { grid-column: span 12; }
  .cell-tint { grid-column: span 6; }
  .cell-accent { grid-column: span 12; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    background: var(--bg-lift);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem clamp(1.25rem, 4vw, 2.5rem) 1.25rem;
  }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a:not(.button) {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 0;
  }
  .nav-cta { padding-top: 1rem; }
  .nav-cta .button { width: 100%; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
  }
  .hero-signal { justify-content: flex-start; }
  .signal-bars span:nth-child(1) { height: 3rem; }
  .signal-bars span:nth-child(2) { height: 5rem; }
  .signal-bars span:nth-child(3) { height: 7.25rem; }
  .signal-bars span:nth-child(4) { height: 9.75rem; }
  .signal-bars span:nth-child(5) { height: 12.5rem; }

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .cell,
  .cell-tint { grid-column: span 12; }

  .cell-accent { flex-direction: column; gap: 0.75rem; }

  .speed-grid { grid-template-columns: 1fr; row-gap: 2rem; }

  .quote-wall { columns: 1; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-contact > * + * { border-left: 0; padding-left: 0; }
  .footer-contact { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 0.95rem; }
  .header-inner { gap: 0.9rem; }
}
