/* ============================================================
   REDNET Networks — main stylesheet
   Mobile-first. Plain CSS. No build step.
   ============================================================ */

:root {
  --red:        #C8202E;
  --red-dark:   #A21824;
  --navy:       #0E1F3A;
  --navy-soft:  #1B2D4F;
  --bg:         #FFFFFF;
  --bg-alt:     #F5F6F8;
  --text:       #1A1A1A;
  --text-mute:  #5B6473;
  --border:     #E2E5EB;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 4px 16px rgba(14, 31, 58, 0.06);
  --shadow-lg:  0 12px 32px rgba(14, 31, 58, 0.12);
  --maxw:       1120px;
}

* { box-sizing: border-box; }

/* Skip link for keyboard / screen-reader users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; outline: 3px solid var(--red); }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--red);
  text-decoration: none;
}
a:hover { color: var(--red-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
.muted { color: var(--text-mute); font-size: 0.95rem; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- Notice bar -------------------------------------------- */
.notice-bar {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ----- Header / nav ------------------------------------------ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.brand-logo { height: 36px; width: auto; }
.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 8px;
  /* Logo's black text disappears on the navy footer — invert to white. */
  filter: brightness(0) invert(1);
}

.primary-nav {
  display: none;
  gap: 6px;
  align-items: center;
}
.primary-nav a {
  color: var(--navy);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
}
.primary-nav a:hover {
  background: var(--bg-alt);
  color: var(--navy);
  text-decoration: none;
}
.primary-nav .btn-portal {
  margin-left: 6px;
  background: var(--red);
  color: #fff;
  padding: 9px 16px;
}
.primary-nav .btn-portal:hover {
  background: var(--red-dark);
  color: #fff;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* mobile nav open state */
.primary-nav.open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  padding: 12px 20px 20px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.primary-nav.open a {
  padding: 14px 12px;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
}
.primary-nav.open a:last-child {
  border-bottom: none;
  margin-top: 8px;
}

/* ----- Buttons ----------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, transform 0.05s;
  min-height: 44px;
  line-height: 1.2;
}
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover {
  background: var(--red-dark);
  color: #fff;
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}
.btn-on-dark {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-on-dark:hover {
  background: #fff;
  color: var(--navy);
  text-decoration: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* ----- Brand banner (home page) ------------------------------ */
.brand-banner {
  background: var(--navy); /* matches the dark-sky edges of the banner on very wide screens */
  line-height: 0;          /* prevent inline-image whitespace */
}
.brand-banner img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 60vh;        /* cap height on tall narrow viewports so banner doesn't dominate */
  object-fit: cover;
  object-position: center;
}

/* ----- CTA bar (sits flush under the banner) ----------------- */
.cta-bar {
  background: var(--navy);
  color: #fff;
  padding: 24px 0;
}
.cta-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.cta-bar-text {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
}
.cta-bar .btn-row {
  margin-top: 0;
  justify-content: center;
}
@media (min-width: 720px) {
  .cta-bar { padding: 20px 0; }
  .cta-bar-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 24px;
  }
  .cta-bar-text { font-size: 1.2rem; max-width: 55%; }
}

/* ----- Hero -------------------------------------------------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(14,31,58,0.78) 0%, rgba(14,31,58,0.92) 100%),
    var(--navy);
  color: #fff;
  padding: 64px 0 72px;
  overflow: hidden;
}
.hero.hero-compact { padding: 56px 0; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero p.lead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.88);
  max-width: 620px;
  margin-bottom: 28px;
}

/* ----- Sections ---------------------------------------------- */
section.section {
  padding: 64px 0;
}
section.section-alt {
  background: var(--bg-alt);
}
.section-head {
  text-align: center;
  margin-bottom: 36px;
}
.section-head p {
  color: var(--text-mute);
  max-width: 640px;
  margin: 0 auto;
}

/* ----- Plans cards ------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.plan-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.plan-card h3,
.plan-card .plan-label {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}
.plan-card .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
  margin: 6px 0 12px;
}
.plan-card .desc {
  color: var(--text-mute);
  flex: 1;
  margin-bottom: 0;
}
.plan-note {
  margin-top: 22px;
  text-align: center;
  color: var(--text-mute);
  font-size: 0.95rem;
}

/* ----- Trust strip ------------------------------------------- */
.trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-weight: 600;
  color: var(--navy);
}
.trust-strip li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 12 10 18 20 6'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

/* ----- Steps ------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  padding-left: 72px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--text-mute); }

/* ----- Contact card ------------------------------------------ */
.contact-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.contact-card h2 { color: #fff; margin-bottom: 6px; }
.contact-card .big-phone {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  display: inline-block;
  margin: 14px 0 6px;
  letter-spacing: -0.01em;
}
.contact-card .big-phone:hover { color: #fff; text-decoration: underline; }
.contact-card .email {
  display: inline-block;
  color: #fff;
  font-size: 1.1rem;
  margin: 4px 0 18px;
}
.contact-card .email:hover { color: #fff; }
.contact-card .hours {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 8px auto 0;
}

/* ----- Generic content blocks -------------------------------- */
.lead-text {
  font-size: 1.1rem;
  color: var(--text-mute);
  max-width: 700px;
}

.area-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.area-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-weight: 600;
  color: var(--navy);
}

/* ----- FAQ accordion ----------------------------------------- */
.faq {
  margin: 0;
}
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  position: relative;
  padding-right: 50px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--red);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .faq-body { padding: 16px 20px 20px; color: var(--text); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ----- About page -------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}
.about-grid.about-grid-no-photos {
  max-width: 760px;
}
.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.about-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.photo-placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--bg-alt) 0%, #E6E9EE 100%);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mute);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.team-card h3 { margin: 0 0 4px; }
.team-card .role {
  color: var(--red);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ----- Outage list ------------------------------------------- */
.outage-list {
  background: var(--bg-alt);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 18px 22px 18px 40px;
  margin: 20px 0;
}
.outage-list li { margin-bottom: 4px; }

/* ----- Footer ------------------------------------------------ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.86);
  margin-top: 72px;
  padding: 48px 0 20px;
}
.site-footer a { color: #fff; }
.site-footer .muted { color: rgba(255,255,255,0.6); }
.footer-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { padding: 4px 0; }
.copyright {
  padding-top: 18px;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  text-align: center;
}

/* ============================================================
   Tablet (≥ 720px)
   ============================================================ */
@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; }

  .plans { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .area-list { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1.1fr 1fr; }
  .about-grid.about-grid-no-photos { grid-template-columns: 1fr; }
  .footer-row { grid-template-columns: 1.2fr 1fr 1fr; }
  section.section { padding: 80px 0; }
  .hero { padding: 96px 0 104px; }
}

/* ============================================================
   Desktop (≥ 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .plans { grid-template-columns: repeat(3, 1fr); }
  .trust-strip { grid-template-columns: repeat(5, 1fr); }
  .trust-strip li { flex-direction: column; text-align: center; gap: 10px; padding: 22px 14px; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
