/* ==========================================================================
   Northeast Wireless — site styles
   Hand-built, no framework. Edit the tokens below to retheme the site.
   ========================================================================== */

:root {
  /* Color: taken from the logo */
  --ink-900:   #1E1F25;   /* charcoal: dark sections */
  --ink-800:   #2A2B33;   /* cards on dark */
  --ink-700:   #3B3C46;   /* borders on dark */
  --text:      #27292F;   /* logo charcoal: headings, body text */
  --muted:     #5F6270;   /* muted text */
  --purple-300: #B69CF7;  /* purple accent on dark backgrounds */
  --purple-600: #722DDC;  /* logo purple: buttons, accents */
  --purple-700: #5A1FB8;  /* button hover */
  --purple-50:  #F2ECFD;  /* purple tint (icon tiles, highlights) */
  --purple-100: #DDD0FB;  /* purple borders */
  --bg:        #F7F7F9;   /* page background */
  --bg-alt:    #F0EFF4;   /* alt section background */
  --line:      #E5E4EA;   /* borders */
  --white:     #FFFFFF;

  /* Type */
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 104px);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 76px;

  --shadow: 0 1px 2px rgba(30,31,37,.06), 0 8px 24px rgba(30,31,37,.08);
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; margin: 0; color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink-900); color: var(--white); padding: 10px 16px; text-decoration: none; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { position: relative; overflow: hidden; background: var(--ink-900); color: var(--white); }
.section--dark::before {
  content: ""; position: absolute; left: -40px; top: -40px; width: 260px; height: 260px; opacity: .10; pointer-events: none;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'><g fill='%23722DDC'><polygon points='60,130 110,80 110,120 60,170'/><polygon points='10,290 240,60 240,100 10,330'/><polygon points='110,290 250,150 250,190 110,330'/><polygon points='170,290 290,170 290,210 170,330'/></g></svg>") no-repeat center / contain; transform: rotate(180deg);
}
.section--dark > .container { position: relative; }
.section--tight { padding-top: 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; max-width: 680px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--purple-600); }
.eyebrow::before { content: ""; width: 5px; height: 15px; background: currentColor; transform: skewX(-40deg); margin-right: 4px; }  /* slanted bar from the logo */
.section--dark .eyebrow { color: var(--purple-300); }
.lead { color: var(--muted); font-size: 18px; }
.section--dark .lead { color: #B4B5C2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--purple-600); color: var(--white); box-shadow: 0 6px 18px rgba(114,45,220,.32); }
.btn--primary:hover { background: var(--purple-700); }
.btn--dark { background: var(--ink-900); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink-900); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-900); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn--ghost-light:hover { background: rgba(255,255,255,.08); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink-900); color: #C9C9D3; font-size: 13.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: var(--white); font-weight: 600; text-decoration: none; }
.topbar-links { display: flex; gap: 20px; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #8E8F9C; flex: none; }
.status-dot.is-open { background: var(--purple-300); box-shadow: 0 0 0 4px rgba(114,45,220,.18); }
.status-dot.is-closed { background: #FF8A65; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,247,249,.92); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(30,31,37,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { height: 50px; width: auto; }
.site-footer .brand img { height: 52px; }
.brand-name { display: block; font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; line-height: 1; color: var(--ink-900); }
.brand-name span { color: var(--purple-600); }
.brand-sub { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: none; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: block; padding: 9px 13px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-800); }
.nav a:hover { background: #EEEBF6; }
.header-actions { display: none; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--ink-900); }
.header-phone svg { width: 18px; height: 18px; color: var(--purple-600); }
.header-actions .btn { min-height: 42px; padding: 0 18px; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; margin-right: -10px;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--ink-900); position: relative; transition: transform .25s var(--ease), background .25s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--bg); padding: 28px var(--gutter);
  display: flex; flex-direction: column; gap: 12px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.menu-open .mobile-nav { opacity: 1; transform: none; visibility: visible; }
.menu-open, .menu-open body { overflow: hidden; }
.mobile-nav ul { display: flex; flex-direction: column; margin-bottom: 16px; }
.mobile-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--ink-900); }

@media (min-width: 1000px) {
  .nav, .header-actions { display: flex; }
  .menu-toggle, .mobile-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  padding: 72px 0 120px;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(114,45,220,.22), transparent 60%),
    linear-gradient(160deg, #18191F 0%, #26232F 100%);
}
.hero::after {
  /* Oversized version of the logo's diagonal bars */
  content: ""; position: absolute; right: -60px; bottom: -120px; width: 640px; height: 640px; opacity: .16; pointer-events: none;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'><g fill='%23722DDC'><polygon points='60,130 110,80 110,120 60,170'/><polygon points='10,290 240,60 240,100 10,330'/><polygon points='110,290 250,150 250,190 110,330'/><polygon points='170,290 290,170 290,210 170,330'/></g></svg>") no-repeat center / contain;
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 13.5px; font-weight: 600; color: #E2E2EA;
}
.hero-pill svg { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 800; margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--purple-300); }
.hero .lead { color: #BDBECB; font-size: 19px; max-width: 600px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 32px; margin-top: 40px; }
.hero-facts li { font-size: 14px; color: #B4B5C2; }
.hero-facts strong { display: block; color: var(--white); font-family: var(--font-display); font-size: 22px; }

.hero-visual { position: relative; min-height: 420px; }
.photo { position: relative; overflow: hidden; border-radius: 14px; background: linear-gradient(135deg, #3A3546, #24222C); }
.photo::before {
  content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.35); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.hero-visual .photo--main { position: absolute; inset: 0 60px 40px 0; box-shadow: var(--shadow-lg); }
.hero-visual .photo--small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 3; border: 5px solid #221F2A; box-shadow: var(--shadow-lg); }
.status-card {
  position: absolute; z-index: 3; left: -20px; bottom: 64px;
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px;
  background: var(--white); color: var(--ink-900); box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.status-card .icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--purple-50); color: var(--purple-600); }
.status-card .icon svg { width: 22px; height: 22px; }
.status-card b { display: block; font-size: 15px; }
.status-card small { color: var(--muted); font-size: 13px; }

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .hero-visual { min-height: 460px; }
}
@media (max-width: 600px) {
  .hero { padding: 48px 0 100px; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-facts li { font-size: 12.5px; }
  .hero-facts strong { font-size: 17px; }
  .hero-visual { min-height: 300px; }
  .hero-visual .photo--main { inset: 0 30px 30px 0; }
  .status-card { left: 8px; bottom: 20px; }
}

/* ---------- Quick actions ---------- */
.quick { position: relative; z-index: 5; margin-top: -64px; }
.quick-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.quick-card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow); text-decoration: none; border: 1px solid transparent;
  transition: border-color .15s, transform .15s var(--ease);
}
.quick-card:hover { border-color: var(--purple-600); transform: translateY(-3px); }
.quick-card h3 { font-size: 19px; }
.quick-card p { color: var(--muted); font-size: 14.5px; }
.quick-card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--purple-600); }
.quick-card .more svg { width: 16px; height: 16px; }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--purple-50); color: var(--purple-600); flex: none; }
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile--dark { width: 56px; height: 56px; border-radius: 12px; background: var(--ink-900); color: var(--purple-300); }
.icon-tile--dark svg { width: 28px; height: 28px; }
@media (min-width: 600px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .quick-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cards / chips ---------- */
.card-grid { display: grid; gap: 20px; }
@media (min-width: 820px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.card-top { display: flex; align-items: center; gap: 16px; }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); }
.card .num { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--purple-600); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: var(--bg); border: 1px solid var(--line); color: var(--ink-800); }

/* ---------- Plans ---------- */
.plans-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 980px) { .plans-grid { grid-template-columns: 1.1fr .9fr; } }
.carriers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.carriers li { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-radius: 14px; background: var(--ink-800); border: 1px solid var(--ink-700); font-weight: 700; }
.carriers li::before { content: ""; width: 5px; height: 16px; background: var(--purple-300); transform: skewX(-40deg); flex: none; }
.checks { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; color: var(--purple-300); flex: none; margin-top: 1px; }
.panel { padding: 32px; border-radius: 14px; background: var(--white); color: var(--text); border: 1px solid var(--line); }
.panel h3 { font-size: 26px; margin: 10px 0; }
.panel > p { color: var(--muted); }
.panel--warm { background: linear-gradient(160deg, #F8F5FF, var(--purple-50)); border-color: var(--purple-100); }
.panel--warm .eyebrow { color: var(--purple-700); }
.panel--warm .chip { background: var(--white); border-color: var(--purple-100); }
.steps { display: flex; flex-direction: column; gap: 18px; margin: 24px 0 26px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; counter-increment: step; }
.steps li::before {
  content: counter(step); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--purple-50); color: var(--purple-600); font-family: var(--font-display); font-weight: 800; font-size: 18px;
}
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 600px) { .carriers { grid-template-columns: 1fr; } .panel { padding: 24px; } }

/* ---------- Repairs + form ---------- */
.split { display: grid; gap: 20px; }
@media (min-width: 980px) { .split { grid-template-columns: 1fr 1fr; } }
.fixlist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0; }
.fixlist li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.fixlist svg { width: 20px; height: 20px; color: var(--purple-600); flex: none; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-800); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple-600); background: var(--white); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.form-foot small { color: var(--muted); font-size: 13px; }
.form-foot small a { font-weight: 700; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 15px; display: none; }
.form-status.is-success { display: block; background: var(--purple-50); color: #4C1D95; }
.form-status.is-error { display: block; background: #FDEBEA; color: #8A2E1D; }
@media (max-width: 600px) { .form-grid, .fixlist { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; grid-template-rows: 200px 140px 140px; }
.gallery .photo { border-radius: 12px; }
.gallery .photo:first-child { grid-column: 1 / 3; }
@media (min-width: 820px) {
  .gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; }
  .gallery .photo:first-child { grid-column: auto; grid-row: 1 / 3; }
  .gallery .photo:nth-child(4) { grid-column: 2 / 4; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; margin-bottom: 10px; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--purple-600); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* ---------- Visit ---------- */
.visit-grid { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 980px) { .visit-grid { grid-template-columns: 1fr 1.15fr; } }
.info { display: flex; flex-direction: column; gap: 22px; }
.info-row { display: flex; gap: 14px; }
.info-row small { display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.info-row a { font-weight: 700; font-size: 17px; text-decoration: none; }
.hours { width: 100%; max-width: 340px; border-collapse: collapse; font-size: 15px; margin-top: 4px; }
.hours td { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.is-today td { color: var(--purple-600); font-weight: 800; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.map { min-height: 420px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #EEEBF6; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #B4B5C2; font-size: 14.5px; padding: 64px 0 32px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer .brand-name { color: var(--white); }
.site-footer .brand-name span { color: var(--purple-300); }
.site-footer p { margin-top: 14px; max-width: 320px; }
.site-footer h4 { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #DEDEE6; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ink-700); font-size: 13.5px; }

/* ---------- Mobile call bar ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(247,247,249,.96); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
}
.call-bar .btn { min-height: 46px; padding: 0 12px; font-size: .9rem; }
@media (min-width: 1000px) { .call-bar { display: none; } }
@media (max-width: 999px) { body { padding-bottom: 72px; } .topbar-links .hide-sm { display: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
