/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --color-navy:   #0A1F44;
  --color-accent: #0066CC;
  --color-bg:     #FFFFFF;
  --color-surface:#F5F7FA;
  --color-text:   #1A1A1A;
  --color-muted:  #6B7280;
  --color-white:  #FFFFFF;
  --color-border: #E5E7EB;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --container-max: 1200px;
  --container-pad: 1.25rem;
}

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

html { scroll-behavior: smooth; }

/* Global focus-visible ring for keyboard navigation */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section { padding: 4rem 0; }
.section--surface { background: var(--color-surface); }

.section__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--color-navy);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
  text-align: center;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:hover { opacity: 0.85; }

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--large { padding: 1rem 2rem; font-size: 1.125rem; }

/* ============================================================
   Cards Grid (shared by Why Us, Devices, Plans)
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card__icon { font-size: 2rem; }

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-navy);
}

.card__text {
  color: var(--color-muted);
  font-size: 0.9375rem;
  flex: 1;
}

/* ============================================================
   Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 1rem;
}

.nav__logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-white);
  flex-shrink: 0;
  margin-right: auto;
}

.nav__menu {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav__menu { display: flex; align-items: center; }
  .nav__logo { margin-right: 0; }
}

.nav__link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__link:hover { color: var(--color-white); }

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .nav__toggle { display: none; }
}

.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav__cta {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .nav__cta {
    margin-left: 1rem;
  }
}

/* Mobile menu open */
.site-header.is-open .nav__menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--color-navy);
  padding: 1.5rem var(--container-pad);
  gap: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 5rem 0;
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero__inner {
    flex-direction: row;
    text-align: left;
    gap: 4rem;
  }

  .hero__content { flex: 1; }
  .hero__image { flex: 0 0 auto; }
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 540px;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .hero__subtitle { margin-left: 0; }
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero__ctas { justify-content: flex-start; }
}

.hero__btn-outline {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero__btn-outline:hover {
  border-color: var(--color-white);
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero__broadband {
  width: 240px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.35));
}

.hero__phone {
  width: 240px;
  height: auto;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.4));
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .hero__visual { gap: 2rem; }
  .hero__broadband { width: 280px; }
  .hero__phone { width: 280px; margin: 0; }
}

/* ============================================================
   Product Cards (Devices section)
   ============================================================ */
.card--product {
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

.card--product img {
  width: 140px;
  height: 175px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

/* ============================================================
   How to Order Steps
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  list-style: none;
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.step__number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-navy);
}

.step__text { color: var(--color-muted); }

/* ============================================================
   Contact Section
   ============================================================ */
.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .contact__channels { flex-direction: row; gap: 2rem; }
}

.contact__phone {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--color-accent);
}

.contact__phone:hover,
.contact__email:hover { text-decoration: underline; }

.contact__email {
  font-size: 1.125rem;
  color: var(--color-accent);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-navy);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color 0.2s;
  width: 100%;
  background: var(--color-bg);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.form-group textarea { resize: vertical; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__copy { font-size: 0.875rem; }

.footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

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

/* ============================================================
   Skip Link
   ============================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* ============================================================
   Nav Services Dropdown
   ============================================================ */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav__dropdown-toggle:hover {
  color: var(--color-white);
}

.nav__dropdown-toggle::after {
  content: "▾";
  font-size: 0.7em;
}

.nav__dropdown-menu {
  display: none;
  flex-direction: column;
}

.nav__dropdown-menu.is-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.75rem;
  background: var(--color-navy);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  min-width: 200px;
  padding: 0.5rem;
  gap: 0.25rem;
  box-shadow: var(--shadow);
  z-index: 200;
}

.nav__dropdown-menu .nav__dropdown-label {
  display: none;
}

.nav__dropdown-menu .nav__link {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.nav__dropdown-menu .nav__link:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 767px) {
  .nav__dropdown-toggle {
    display: none;
  }

  .nav__dropdown-menu {
    display: flex !important;
    flex-direction: column;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0 0 0.5rem 0;
    gap: 0;
  }

  .nav__dropdown-menu .nav__dropdown-label {
    display: block;
    font-family: var(--font);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.4rem;
  }
}

/* ============================================================
   Service Cards
   ============================================================ */
.card--service {
  text-align: left;
}

.card__link {
  margin-top: auto;
  font-weight: 600;
  color: var(--color-accent);
}

.card__link:hover {
  text-decoration: underline;
}

/* ============================================================
   Trust Strip
   ============================================================ */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0 0 3rem;
  padding: 2rem 0 0;
}

.trust-strip li {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.5rem 1rem;
  border-radius: 99px;
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonial-grid--triple {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
  margin: 0;
}

.testimonial p {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.testimonial cite {
  font-style: normal;
  font-weight: 600;
  color: var(--color-navy);
  font-size: 0.9375rem;
}

/* ============================================================
   CTA Block
   ============================================================ */
.cta-block__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-block__text {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

/* ============================================================
   FAQ Accordion
   ============================================================ */
.faq-group {
  margin-bottom: 2.5rem;
}

.faq-group:last-child {
  margin-bottom: 0;
}

.faq-group__title {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin-top: 0.75rem;
  color: var(--color-muted);
}

/* ============================================================
   Sticky Mobile Call Bar
   ============================================================ */
.call-bar {
  display: none;
}

@media (max-width: 767px) {
  .call-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    background: var(--color-accent);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .call-bar__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 56px;
    color: var(--color-white);
    font-weight: 700;
    font-size: 1rem;
  }

  .call-bar__number {
    font-weight: 400;
    opacity: 0.9;
  }

  body {
    padding-bottom: 76px;
  }
}

/* ============================================================
   Contact Rework
   ============================================================ */
.contact__form-heading {
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
  text-align: center;
}
