/* ==========================================================================
   Hyperblaze public website — site.css

   Standalone from assets/style.css (that file is the AdminPro admin theme).
   Matches the real hyperblazeinternet.com's look (dark navy, white type, an
   orange-gradient accent) rather than this module's original light theme —
   deliberate parity, per the brief that this page should look like the real
   site. Dark-committed: no light variant, same as the live site has none.
   ========================================================================== */

:root {
  color-scheme: dark;

  --ink:      #F3F7FA;
  --ink-soft: #C7D3DD;
  --paper:    #0A0E16;
  --mist:     #121826;
  --slate:    #8CA0B3;
  --blaze-1:  #FF5A1F;
  --blaze-2:  #FFA23A;
  --line:     rgba(255, 255, 255, 0.12);

  --beam: linear-gradient(90deg, var(--blaze-1), var(--blaze-2));

  --measure: 64ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --wrap: 1140px;

  --step-hero: clamp(2.4rem, 1.4rem + 4vw, 3.6rem);
  --step-h2:   clamp(1.6rem, 1.2rem + 1.6vw, 2.15rem);
  --step-h3:   1.2rem;

  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: var(--step-hero); }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); font-weight: 600; }

p { max-width: var(--measure); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* -- The beam ------------------------------------------------------------- */
/* A shallow-angle slice of the blaze gradient. Used full-width between
   major sections and, skewed, across the hero. */
.beam {
  height: 3px;
  background: var(--beam);
  border: 0;
}

.beam--section {
  max-width: var(--wrap);
  margin: 0 auto;
}

/* -- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.35rem;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}
.btn--primary:hover { background: #05121e; }

.btn--blaze {
  color: #fff;
  background-image: var(--beam);
  position: relative;
}
.btn--blaze:hover { filter: saturate(1.1) brightness(0.96); }

.btn--ghost {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--ink); }

/* -- Badge chip (hero eyebrow, "Bengaluru · Fibre · ...") ---------------- */
.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}
.badge-chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #35D07F;
  flex-shrink: 0;
}

/* -- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 14, 22, 0.88);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-brand { display: flex; align-items: center; }
.site-brand img { height: 46px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  padding: 0.4rem 0.15rem;
  margin-inline: 0.6rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--blaze-1);
  font-weight: 600;
}

.site-header .btn { padding: 0.6rem 1rem; }

/* The nav carries its own "Get connected" only in the mobile dropdown;
   on desktop the standalone button in the header bar is the one shown. */
.site-nav > .btn { display: none; }

.site-nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  width: 40px; height: 38px;
  cursor: pointer;
}
.site-nav__toggle span,
.site-nav__toggle span::before,
.site-nav__toggle span::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}
.site-nav__toggle span::before { content: ''; position: absolute; top: -6px; }
.site-nav__toggle span::after  { content: ''; position: absolute; top: 6px; }

/* -- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.hero__beam {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 52%;
  height: 42%;
  background: var(--beam);
  opacity: 0.1;
  transform: skewY(-7deg) scaleX(1);
  transform-origin: left center;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__lede {
  margin-top: 1.1rem;
  font-size: 1.075rem;
  color: var(--ink-soft);
}

.hero__cta {
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__facts {
  border-left: 3px solid transparent;
  border-image: var(--beam) 1;
  padding-left: 1.5rem;
  display: grid;
  gap: 1.4rem;
}

.fact__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.fact__label {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--slate);
}
.fact__label .dot {
  color: var(--blaze-1);
  font-size: 1.1em;
  vertical-align: -0.05em;
}

/* -- Generic section ------------------------------------------------- */
.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section--mist { background: var(--mist); }

.section__head { max-width: var(--measure); margin-bottom: 2.25rem; }
.section__head p { margin-top: 0.6rem; color: var(--slate); }

/* -- Value points (bare type, no cards) ---------------------------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.value-grid h3 { margin-bottom: 0.5rem; }
.value-grid p { color: var(--slate); font-size: 0.96rem; }

/* -- Plan comparison table --------------------------------------- */
.plan-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.plan-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 640px;
  font-size: 0.94rem;
}

.plan-table caption {
  text-align: left;
  color: var(--slate);
  font-size: 0.85rem;
  padding-bottom: 0.75rem;
}

.plan-table th,
.plan-table td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}

.plan-table thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 2px solid var(--ink);
}

.plan-table tbody tr:nth-child(even) td { background: var(--mist); }
.plan-table thead th { color: var(--ink); }

.plan-table .row-label {
  font-weight: 600;
  color: var(--slate);
  white-space: nowrap;
}

.plan-table .col-recommended {
  border-top: 3px solid transparent;
  border-image: var(--beam) 1;
  background: var(--mist);
}
.plan-table thead .col-recommended { position: relative; }
.plan-table .rec-tag {
  display: inline-block;
  font-family: var(--font-text);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blaze-1);
  margin-top: 0.2rem;
}

.plan-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.plan-price small { font-weight: 500; font-size: 0.8rem; color: var(--slate); font-family: var(--font-text); }

.plan-speed { font-family: var(--font-display); font-weight: 700; }

.empty-note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--blaze-1);
  background: var(--mist);
  padding: 1.5rem;
  max-width: var(--measure);
}
.empty-note h3 { margin-bottom: 0.4rem; }
.empty-note p { color: var(--slate); }

/* -- Localities -------------------------------------------------- */
.locality-cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem 1.5rem;
  list-style: none;
}
.locality-cols li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.locality-cols .status {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blaze-1);
  flex-shrink: 0;
}
.locality-cols li.is-planned { color: var(--slate); }
.locality-cols li.is-planned .status { background: var(--line); }

/* -- Contact methods ------------------------------------------- */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.contact-methods dt { font-weight: 600; margin-bottom: 0.25rem; }
.contact-methods dd { color: var(--ink-soft); }
.contact-methods a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--blaze-1); }

/* -- FAQ ------------------------------------------------------- */
.faq { max-width: var(--measure); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--blaze-1); font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 0.6rem; color: var(--slate); }

/* -- Legal identity block ------------------------------------ */
.legal-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  font-size: 0.92rem;
  max-width: 34rem;
}
.legal-facts dt { color: var(--slate); }

/* -- Footer ------------------------------------------------- */
.site-footer {
  background: #050810;
  border-top: 1px solid var(--line);
  color: #c6d2dc;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  font-size: 0.9rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.site-footer img { height: 40px; width: auto; margin-bottom: 1rem; }
.site-footer h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.site-footer ul { list-style: none; display: grid; gap: 0.45rem; }
.site-footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #8fa1ad;
  font-size: 0.82rem;
  line-height: 1.7;
}

/* -- CTA strip -------------------------------------------- */
.cta-strip { padding-block: clamp(2.5rem, 5vw, 4rem); }
.cta-strip h2 { margin-bottom: 0.5rem; }
.cta-strip p { color: var(--slate); margin-bottom: 1.5rem; }
.cta-strip .btn { margin-right: 0.75rem; }

/* -- Connect form (the public intake form) ----------------------------- */
.connect {
  padding-block: clamp(3rem, 6vw, 5.5rem);
  scroll-margin-top: 90px;
}

.connect__card {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.connect__banner {
  border: 1px solid var(--line);
  border-left: 3px solid var(--blaze-1);
  background: var(--mist);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.connect__banner--success { border-left-color: #35D07F; }
.connect__banner p { margin: 0; color: var(--ink-soft); }
.connect__banner ul { margin: 0.4rem 0 0 1.1rem; color: var(--ink-soft); }

.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.field .hint { font-size: 0.8rem; color: var(--slate); margin-top: 0.35rem; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field input[type="file"] {
  width: 100%;
  font-family: var(--font-text);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}
.field input:focus,
.field select:focus {
  outline: 2px solid var(--blaze-1);
  outline-offset: 1px;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.connect__map {
  height: 260px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.connect__coords {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--slate);
}

.connect__submit { margin-top: 0.5rem; }

/* Leaflet ships its own light-chrome zoom control; darkening just the
   control chrome keeps it from looking like a stray light rectangle on
   this dark form. */
.leaflet-control-zoom a { background: var(--paper) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.leaflet-bar { border-color: var(--line) !important; }

/* -- Motion --------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__beam { animation: beam-draw 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__facts > * { animation: fact-rise 0.5s ease both; }
  .hero__facts > *:nth-child(1) { animation-delay: 0.25s; }
  .hero__facts > *:nth-child(2) { animation-delay: 0.35s; }
  .hero__facts > *:nth-child(3) { animation-delay: 0.45s; }

  @keyframes beam-draw {
    from { transform: skewY(-7deg) scaleX(0); opacity: 0; }
    to   { transform: skewY(-7deg) scaleX(1); opacity: 0.1; }
  }
  @keyframes fact-rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* -- Responsive --------------------------------------- */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__facts { border-left: 0; border-image: none; padding-left: 0; border-top: 3px solid transparent; border-image: var(--beam) 1; padding-top: 1.4rem; }
  .value-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .connect__card { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { margin: 0; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .site-nav > .btn { display: flex; margin-top: 0.8rem; justify-content: center; }
  .site-nav__toggle { display: block; }
  .site-header__inner > .btn { display: none; }
}
