
/* =========================================================
   QONÈKT – FLAT DESIGN SYSTEM
   Complete global stylesheet (production-ready)
   ========================================================= */

/* -----------------------------
   BRAND COLOR SYSTEM & TOKENS
------------------------------ */
:root {
  /* Brand */
  --blue: #0A2E75;
  --yellow: #F2C438;
  --ink: #0B1220;

  /* Grays */
  --gray-100: #F4F6F9;
  --gray-200: #E2E6EC;
  --gray-300: #C8D0DB;
  --gray-600: #4F647E;

  /* Base */
  --white: #FFFFFF;
  --bg: var(--gray-100);

  /* Radii */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  /* Typography */
  --font-body: 'Lato', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-heading: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Spacing scale */
  --s2: 4px;
  --s3: 6px;
  --s4: 8px;
  --s5: 12px;
  --s6: 16px;
  --s7: 24px;
  --s8: 32px;
  --s9: 48px;
  --s10: 64px;

  /* Hero icon color (one-color mask icons) */
  --hero-icon-color: #F2C438; /* switch to #FFF if needed for contrast */
}

/* -----------------------------
   GLOBAL RESET & BASE
------------------------------ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--gray-600);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a   { color: var(--blue); text-decoration: none; }
.hidden { display: none !important; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--s6); }
.center { text-align: center; }
.tiny   { font-size: 12px; color: var(--gray-600); }

/* -----------------------------
   TYPOGRAPHY
------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--blue);
  font-weight: 700;
  line-height: 1.2;
}

/* ============================================
   Top Notification Bar (collapsible)
   ============================================ */
.notify-bar{
  position: sticky;
  top: 0;
  z-index: 90;                /* above nav (which was 60) */
  background: var(--yellow);
  color: var(--ink);
  overflow: hidden;
  /* Expanded by default via JS: we transition to a 2px line when collapsed */
  max-height: 80px;           /* enough for one line + padding */
  padding: 10px 0;            /* vertical padding when expanded */
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: max-height .28s ease, padding .28s ease, border-color .28s ease;
  will-change: max-height, padding;
}

.notify-bar.is-collapsed{
  max-height: 12px;            /* thin line when collapsed */
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
}

.notify-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
}

.notify-text{
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;           /* punchy single-line text */
}

.notify-actions a.notice-link{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(2,8,23,.12);
  color: var(--blue);
  font-weight: 800;
  font-size: 12px;
}

/* Center toggle tab that sticks out below the bar */
.notify-toggle{
  position: absolute;
  left: 50%;
  top: 100%;                   /* render just below the bar edge */
  transform: translate(-50%, -50%); /* half overlap */
  width: 28px;
  height: 20px;
  background: #fff;
  color: var(--blue);
  border: 1px solid rgba(2,8,23,.12);
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.notify-bar.is-collapsed .notify-toggle{
  /* flip chevron to indicate expand */  
  /* Ensure toggle overlaps a collapsed bar correctly */
  top: 100%;               /* stays below */
  transform: translate(-50%, -50%);

}

.notify-toggle:focus{ outline: 12px solid #0000; box-shadow: 0 0 0 2px rgba(10,46,117,.25); }

/* Rotate chevron based on expanded/collapsed state */
.notify-toggle svg{
  transition: transform .2s ease;
  margin-top: -8px;
}

.notify-bar.is-collapsed .notify-toggle svg{
  transform: rotate(180deg);
}

/* Hide the 'See service status' button when the bar is collapsed */
.notify-bar.is-collapsed .notify-actions {
  display: none;
}

/* Hide ONLY the notification text + actions when collapsed */
.notify-bar.is-collapsed .notify-inner {
  /*display: none;*/
  color: var(--yellow);
}

@media (max-width: 700px){
  .notify-inner{
    gap: var(--s4);
  }
  .notify-text{
    font-size: 13px;
    font-weight: 700;
  }
  .notify-actions a.notice-link{
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* =========================================================
   NAVIGATION
========================================================= */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 60;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav a img { height: 90px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 24px;
  color: var(--blue);
  cursor: pointer;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--s7);
}

.nav-menu a {
  font-weight: 700;
  font-size: 15px;
  color: var(--blue);
}

.lang-switch { display: flex; gap: var(--s4); }

.lang-switch button {
  padding: var(--s3) var(--s5);
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--gray-300);
  font-weight: 700;
  cursor: pointer;
  color: var(--blue);
  min-width: 44px; /* touch target */
}

.lang-switch button.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    width: 100%;
    padding: var(--s6);
    border-bottom: 1px solid var(--gray-200);
  }
  .nav-menu.open { display: flex; }
}

/* =========================================================
   HERO BANNER
========================================================= */
.hero {
  position: relative;
  background: url('../images/background-online-form.jpg') center/cover no-repeat;
  padding: var(--s10) 0;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 46, 117, 0.25); /* lighter overlay per request */
}

.hero-box {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-title {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: var(--s4);
  color: var(--white);
}

.hero-title .em { color: var(--yellow); }

.hero-sub {
  font-size: 20px;
  margin-bottom: var(--s5);
  color: var(--white);
}

/* ---- Hero list with ONE-COLOR MASK SVG ICONS ---- */
.hero-list {
  list-style: none;
  margin-bottom: var(--s7);
  padding: 0;
}

.hero-item {
  display: grid;
  grid-template-columns: 28px auto;
  align-items: start;
  gap: 10px;
  margin-bottom: var(--s3);
  color: #fff;
  font-size: 18px;
}

/* Mask-based icon block: recolor with background-color */

/* --- HERO ICONS (final patch) --- */
.hero-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Individual icons */
.icon-home {
  background-image: url('icons/hero-home.svg');
}

.icon-briefcase {
  background-image: url('icons/hero-briefcase.svg');
}

.icon-wifi {
  background-image: url('icons/hero-wifi.svg');
}

.icon-wrench {
  background-image: url('icons/hero-wrench.svg');
}


/* CTA buttons */
.hero-cta { display: flex; gap: var(--s4); flex-wrap: wrap; }
.btn-primary {
  padding: var(--s5) var(--s7);
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--radius);
}
.btn-outline {
  padding: var(--s5) var(--s7);
  background: transparent;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  font-weight: 700;
  border-radius: var(--radius);
}

/* =========================================================
   SECTION WRAPPER
========================================================= */
.section { padding: var(--s9) 0; }
.section-title { font-size: 32px; font-weight: 800; margin-bottom: var(--s7); }

/* =========================================================
   FEATURES
========================================================= */
.grid { display: grid; gap: var(--s7); }

.features-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .features-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: var(--s7);
}

.feature .icon img { width: 42px; margin-bottom: var(--s5); }
.feature h3 { margin-bottom: var(--s4); font-size: 20px; }
.feature p  { font-size: 16px; }

/* =========================================================
   PLANS SECTION
========================================================= */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s6);
}

.seg-switch { display: flex; gap: var(--s4); }
.seg-btn {
  border: 1px solid var(--gray-300);
  background: var(--white);
  padding: var(--s4) var(--s6);
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
}
.seg-btn.active { background: var(--blue); color: var(--white); }

.plans-grid {
  margin-top: var(--s7);
  display: grid;
  gap: var(--s7);
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans-grid { grid-template-columns: 1fr; } }

.plan h3 { font-size: 22px; font-weight: 800; margin-bottom: var(--s5); }
.plan.highlight { border: 2px solid var(--yellow); }

.price { font-size: 24px; font-weight: 800; color: var(--ink); margin-bottom: var(--s4); }
.promo { color: var(--yellow); font-weight: 700; margin-bottom: var(--s5); }

.plan-list {
  list-style: none;
  margin-bottom: var(--s6);
}

/* Checkmarks for plan features */
.plan-list li {
  font-size: 15px;
  margin-bottom: var(--s3);
  position: relative;
  padding-left: 22px;
}
.plan-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--yellow);
  font-weight: 900;
}

.plan-cta { display: flex; gap: var(--s4); }
.plan-cta a {
  padding: var(--s4) var(--s6);
  border-radius: var(--radius);
  font-weight: 700;
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
}

/* =========================================================
   MESH WIFI COVERAGE BOX
========================================================= */
.mesh-box {
  margin-top: var(--s8);
  padding: var(--s8);
  background: var(--white);
  border: 2px solid var(--yellow);
  border-radius: var(--radius-lg);
}

.mesh-desc {
  font-size: 16px;
  margin-bottom: var(--s5);
  color: var(--ink);
}

.mesh-list {
  list-style: none;
  margin-bottom: var(--s6);
  padding: 0;
}

.mesh-list li {
  margin-bottom: var(--s3);
  font-size: 15px;
  position: relative;
  padding-left: 22px;
}
.mesh-list li::before {
  content: "✔";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--blue);
  font-weight: 900;
}

.mesh-btn {
  background: var(--blue);
  color: var(--white);
  padding: var(--s4) var(--s6);
  border-radius: var(--radius);
  font-weight: 700;
  display: inline-block;
}


/* ===============================================
   Wi‑Fi Coverage Section — AT&T‑Style Redesign
   =============================================== */

/* Gray rounded border for Wi‑Fi Coverage section */
.wifi-pro-section {
  margin-top: 20px;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: var(--s10) var(--s6);
  background: var(--white);
  box-sizing: border-box;
}

.wifi-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s10);
  align-items: center;
}

@media (max-width: 900px) {
  .wifi-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.wifi-left {}

.wifi-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: var(--s5);
}

.wifi-sub {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 520px;
  margin-bottom: var(--s7);
}

.wifi-benefits {
  list-style: none;
  margin: 0 0 var(--s7);
  padding: 0;
}

.wifi-benefits li {
  font-size: 16px;
  margin-bottom: var(--s3);
  padding-left: 22px;
  position: relative;
  color: var(--ink);
}

.wifi-benefits li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--yellow);
  font-weight: 900;
}

.wifi-cta a {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: var(--s5) var(--s7);
  border-radius: var(--radius);
  font-weight: 700;
}

.wifi-right {
  position: relative;
  display: flex;
  justify-content: center;
}

.wifi-router-ring {
  position: relative;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: transparent;
}

.wifi-router-img {
  width: 200px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Radiating Wi‑Fi rings */
.wifi-router-ring::before,
.wifi-router-ring::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(10, 46, 117, 0.15);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.wifi-router-ring::before {
  width: 320px;
  height: 320px;
}

.wifi-router-ring::after {
  width: 260px;
  height: 260px;
}

/* Icon bubbles */
.wifi-icon {
  position: absolute;
  width: 70px;
  height: 70px;
  background-color: var(--yellow);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.wifi-icon img,
.wifi-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--blue);
}

/* Icon positions around the router */
.wifi-i1 { top: 10%; left: 50%; transform: translate(-50%, 0); }
.wifi-i2 { top: 30%; right: 5%; transform: translate(0, -50%); }
.wifi-i3 { bottom: 30%; right: 5%; transform: translate(0, 50%); }
.wifi-i4 { bottom: 10%; left: 50%; transform: translate(-50%, 0); }
.wifi-i5 { top: 30%; left: 5%; transform: translate(-0, -50%); }

@media (max-width: 900px) {
  .wifi-router-ring {
    width: 300px;
    height: 300px;
  }
}


/* =========================================================
   DEALS + STATUS
========================================================= */
.tabs {
  display: flex;
  gap: var(--s4);
  margin-bottom: var(--s6);
}

.tab-btn {
  padding: var(--s4) var(--s6);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
}
.tab-btn.active { background: var(--blue); color: var(--white); }

.deal-grid {
  display: grid;
  gap: var(--s6);
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 700px) { .deal-grid { grid-template-columns: 1fr; } }

/* =========================================================
   CONTACT
========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--s7);
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: var(--s7);
  border-radius: var(--radius-lg);
}

.contact-form label {
  font-weight: 700;
  color: var(--blue);
  margin-bottom: var(--s3);
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--s4);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  margin-bottom: var(--s6);
  font-size: 16px;
}

.contact-form button {
  background: var(--yellow);
  color: var(--ink);
  padding: var(--s5) var(--s7);
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  border: 0;
  font-size: 16px;
}

.contact-alt {
  background: var(--white);
  padding: var(--s7);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.contact-alt ul { list-style: none; margin-bottom: var(--s5); }
.contact-alt li { margin-bottom: var(--s3); }

/* =========================================================
   FOOTER
========================================================= */
.footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: var(--s7) 0 var(--s10);
}

/* =========================================================
   Service Area Validator
========================================================= */

/* Two‑column layout for validator + map */
.sa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8);
  align-items: start;
}

@media (max-width: 900px) {
  .sa-grid {
    grid-template-columns: 1fr;
  }
}

/* Map Container */
.sa-map-box {
  padding: 0;
  overflow: hidden;
}

.sa-map-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}


/* =============================
   SERVICE AREA INPUT STYLING
   ============================= */

.sa-field {
  margin-bottom: var(--s7);
}

.sa-field label {
  display: block;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--blue);
  margin-bottom: var(--s3);
}

/* Shared input/select style */
.sa-input {
  width: 100%;
  padding: var(--s5);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  transition: border-color .25s ease, box-shadow .25s ease;
  appearance: none;
}

/* Flat select arrow */
.sa-select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%230A2E75' height='16' width='16' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Focus state — matches your site button focus glow */
.sa-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10,46,117,0.2);
  outline: none;
}

/* Submit button full width for consistency */
.sa-submit {
  width: 100%;
  padding: var(--s6);
  border-radius: var(--radius-lg);
  font-size: 18px;
  margin-top: var(--s4);
}


/* Autocomplete List */
.sa-autocomplete {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  max-height: 200px;
  overflow-y: auto;
  position: absolute;
  width: 100%;
  z-index: 5000;
  display: none;
}

.sa-autocomplete li {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-200);
}

.sa-autocomplete li:hover {
  background: var(--gray-100);
}

.sa-autocomplete li:last-child {
  border-bottom: none;
}

.map-legend {
  background: #ffffff;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--gray-300);
  font-size: 14px;
  line-height: 1.4;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
