/* ==========================================================================
   Fiberlink Wired Internet Services — Site Stylesheet
   Shared, unmodified, by every page: index.html, messenger/index.html,
   privacy/index.html, data-deletion/index.html. No build step, plain CSS.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand color — sampled directly from the official logo. Exact value,
     do not alter or approximate. All primary accents use --brand itself;
     the shades/tints below exist only for hover states and subtle fills. */
  --brand: #950044;
  --brand-dark: #75003a;
  --brand-darker: #52002a;
  --brand-light: #f7e7ee;
  --brand-lighter: #fbf2f6;

  --white: #ffffff;
  --gray-900: #1d1a1e;
  --gray-700: #48434b;
  --gray-500: #726d76;
  --gray-300: #c9c3cc;
  --gray-200: #e6e1e7;
  --gray-100: #f6f4f7;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container-width: 1120px;

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 3px rgba(29, 26, 30, .08);
  --shadow-md: 0 10px 30px rgba(29, 26, 30, .14);

  --fs-sm: .9rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --fs-hero: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);

  --header-height: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
}

h1, h2, h3, h4 { color: var(--gray-900); line-height: 1.25; margin: 0 0 var(--space-4); }
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
li { margin-bottom: var(--space-2); }
a { color: var(--brand); text-decoration: underline; text-underline-offset: .15em; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
strong { color: var(--gray-900); }

/* Visible keyboard focus everywhere, including the visually-hidden nav checkbox */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.nav-toggle-checkbox:focus-visible + .nav-toggle-label {
  outline: 3px solid var(--brand-dark);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--brand);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.section { padding-block: var(--space-10); }
.section--tint { background: var(--brand-lighter); }
.section--muted { background: var(--gray-100); }
.section-heading { max-width: 640px; margin-inline: auto; text-align: center; margin-bottom: var(--space-8); }
.section-heading p { color: var(--gray-500); margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: var(--space-2);
}

.callout {
  background: var(--brand-lighter);
  border-left: 4px solid var(--brand);
  padding: var(--space-4) var(--space-5);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: var(--space-5) 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: .8rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
  line-height: 1.2;
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: var(--brand-light); color: var(--brand-dark); }
.btn-white { background: var(--white); color: var(--brand); }
.btn-white:hover { background: var(--brand-lighter); }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: var(--space-4);
  position: relative;
}
.logo-link { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; }
.logo-icon { height: 34px; width: auto; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; justify-content: center; line-height: 1; }
.logo-name { font-size: 1.05rem; font-weight: 800; letter-spacing: .05em; color: var(--brand); }
.logo-tagline { margin-top: 3px; font-size: .6rem; font-weight: 600; letter-spacing: .03em; color: var(--gray-500); }

/* Visually-hidden but still keyboard-focusable checkbox drives the mobile
   menu with zero JavaScript required (see SPEC.md Edge Cases). */
.nav-toggle-checkbox {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-toggle-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  position: relative;
  transition: transform .15s ease, opacity .15s ease, background-color .15s ease;
}
.hamburger-icon::before,
.hamburger-icon::after { content: ""; position: absolute; left: 0; }
.hamburger-icon::before { top: -7px; }
.hamburger-icon::after { top: 7px; }

.nav-toggle-checkbox:checked ~ .nav-toggle-label .hamburger-icon { background: transparent; }
.nav-toggle-checkbox:checked ~ .nav-toggle-label .hamburger-icon::before { transform: translateY(7px) rotate(45deg); background: var(--gray-900); }
.nav-toggle-checkbox:checked ~ .nav-toggle-label .hamburger-icon::after { transform: translateY(-7px) rotate(-45deg); background: var(--gray-900); }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
}
.nav-toggle-checkbox:checked ~ .site-nav { display: block; }

.nav-list { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.nav-list li { margin-bottom: 0; }
.nav-list a { color: var(--gray-900); text-decoration: none; font-weight: 600; display: block; padding: var(--space-2) 0; }
.nav-list a:hover, .nav-list a:focus-visible { color: var(--brand); }
.nav-chat-btn { width: 100%; }

@media (min-width: 860px) {
  .nav-toggle-checkbox,
  .nav-toggle-label { display: none; }
  .site-nav {
    display: flex !important; /* guards against a resize while the mobile menu is open */
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0;
    align-items: center;
    gap: var(--space-6);
    background: transparent;
  }
  .nav-list { flex-direction: row; margin: 0; gap: var(--space-5); }
  .nav-chat-btn { width: auto; }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: var(--space-12) var(--space-10);
  background: linear-gradient(180deg, var(--brand-lighter) 0%, var(--white) 100%);
  text-align: center;
}
.hero-inner { max-width: 760px; margin-inline: auto; }
.hero-lead { font-size: var(--fs-md); color: var(--gray-700); margin-bottom: var(--space-8); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); }

/* ---------- Pricing / services ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.plan-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.plan-speed { font-size: var(--fs-lg); font-weight: 700; color: var(--gray-900); margin-bottom: var(--space-2); }
.plan-price { font-size: 2rem; font-weight: 800; color: var(--brand); }
.plan-price span { font-size: var(--fs-sm); font-weight: 500; color: var(--gray-500); }
.plan-tag {
  display: inline-block;
  margin-top: var(--space-3);
  padding: .3rem .85rem;
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.plans-note { text-align: center; color: var(--gray-500); font-size: var(--fs-sm); max-width: 640px; margin: var(--space-8) auto 0; }

@media (min-width: 640px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .plans-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .plans-grid { grid-template-columns: repeat(5, 1fr); } }

/* ---------- Value props ("Why Fiberlink") ---------- */
.value-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
.value-card { padding: var(--space-5); }
.value-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--brand-light);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
}
.value-card h3 { margin-bottom: var(--space-2); }
.value-card p { margin-bottom: 0; color: var(--gray-700); }

@media (min-width: 640px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Coverage ---------- */
.coverage-list { columns: 1; margin: var(--space-5) 0; }
@media (min-width: 640px) { .coverage-list { columns: 2; column-gap: var(--space-6); } }

/* ---------- Contact ---------- */
.contact-card {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-5);
}
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); margin: var(--space-5) 0; }
.contact-disclaimer { font-size: var(--fs-sm); color: var(--gray-500); margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand);
  color: var(--white);
  padding-block: var(--space-10);
  /* Extra bottom padding keeps footer links clear of the fixed chat button on short pages. */
  padding-bottom: calc(var(--space-10) + 64px);
}
.footer-inner { text-align: center; }
.footer-logo { height: 64px; width: auto; margin: 0 auto var(--space-4); }
.footer-tagline { font-weight: 700; margin-bottom: var(--space-5); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-5); padding: 0; margin: 0 0 var(--space-5); }
.footer-links li { margin-bottom: 0; }
.footer-links a { color: var(--white); text-decoration: none; font-weight: 600; }
.footer-links a:hover, .footer-links a:focus-visible { text-decoration: underline; }
.footer-copyright { font-size: var(--fs-sm); color: var(--brand-light); margin: 0; }

/* ---------- Floating "Chat now" button (every page) ---------- */
.chat-fab {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--brand);
  color: var(--white);
  padding: .85rem 1.25rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: background-color .15s ease, transform .1s ease;
}
.chat-fab:hover { background: var(--brand-dark); color: var(--white); transform: translateY(-2px); }
.chat-fab:focus-visible { outline: 3px solid var(--gray-900); outline-offset: 3px; }
.chat-fab-icon { width: 24px; height: 24px; flex-shrink: 0; }
.chat-fab-text { white-space: nowrap; }

@media (max-width: 420px) {
  .chat-fab { padding: .75rem; right: var(--space-4); bottom: var(--space-4); }
  .chat-fab-text { display: none; }
}

/* ---------- Simple content pages (messenger / privacy / data-deletion) ---------- */
.page-hero {
  background: var(--brand-lighter);
  padding-block: var(--space-10) var(--space-8);
  text-align: center;
}
.page-hero .container { max-width: 760px; }
.page-hero p { color: var(--gray-700); margin-bottom: 0; }

.content-section { padding-block: var(--space-8); }
.content-section .container { max-width: 760px; }
.content-section h2 { margin-top: var(--space-8); }
.content-section h2:first-child,
.content-section > .container > h2:first-child { margin-top: 0; }

/* Message-flow diagram: decorative chip row with a screen-reader text alternative
   placed next to it in markup (see HTML) rather than relying on the diagram alone. */
.flow-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2) var(--space-3);
  margin: var(--space-6) 0;
}
.flow-step {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  color: var(--gray-900);
}
.flow-arrow { color: var(--brand); font-weight: 700; }

/* Numbered step list used by /messenger's Meta Review section and /data-deletion */
.steps-list {
  list-style: none;
  padding-left: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}
.steps-list li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 0;
  min-height: 2rem;
  display: flex;
  align-items: center;
}
.steps-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem;
  background: var(--brand); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--fs-sm);
  flex-shrink: 0;
}
