/* ============================================================
   Omny WiFi — theme styles (front-end + editor)
   Brand tokens + all component styles.
   ============================================================ */

:root {
  --yellow: #FFB703;
  --orange: #E47936;
  --navy: #023047;
  --teal: #80A5A8;
  --green: #76B087;

  --navy-deep: #011E2E;
  --navy-soft: #0A4360;
  --ink: #0B2231;
  --muted: #4E6472;
  --paper: #FFFFFF;
  --paper-alt: #F4F7F8;
  --line: #E2E9EC;
  --teal-on-dark: #9FBEC1;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(2, 48, 71, 0.10);
  --shadow-lg: 0 24px 60px rgba(1, 30, 46, 0.35);
  --container: 1120px;
}

html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }

/* Neutralize default flow-layout gaps inside our custom components */
.wp-block-group :where(p, h1, h2, h3, h4) { margin-block-start: 0; }

/* WordPress automatically adds margin-top between a group block's own
   children (its default "flow" layout spacing). This theme lays out every
   multi-item section (cards, grids, the header) with its own gap/padding,
   so that automatic margin only breaks things -- it makes the first card in
   a row taller than the rest, since only the later ones get pushed down.
   Zeroed globally rather than patched per-section. */
.wp-block-group.is-layout-flow > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

.container, .header-inner, .footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  width: 100%;
  box-sizing: border-box;
}

/* ---------- Buttons ---------- */

.wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 0;
}
.wp-block-button .wp-block-button__link:hover { transform: translateY(-1px); }

.btn-primary .wp-block-button__link {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(255, 183, 3, 0.35);
}
.btn-primary .wp-block-button__link:hover { background: #FFC427; color: var(--navy); }

.btn-ghost-dark .wp-block-button__link {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost-dark .wp-block-button__link:hover { border-color: var(--yellow); color: var(--yellow); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 48, 71, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
/* WordPress adds an automatic margin-top between a group block's children
   (its default "flow" layout spacing). That pushes every child but the
   logo down and breaks vertical centering, so it's zeroed here. */
.header-inner > * { margin: 0; }
.header-collapsible > * { margin: 0; }

.site-header .wp-block-site-logo,
.site-header .wp-block-site-logo a,
.site-header .wp-block-site-logo img { display: flex; align-items: center; }
.site-header .wp-block-site-logo img { height: 26px; width: auto; }

.header-collapsible {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 auto;
  gap: 30px;
}

.site-header .omny-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.site-header .omny-nav a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .omny-nav a:hover,
.site-header .omny-nav a.is-current { color: var(--yellow); }
.header-cta { flex: none; }
.header-cta .wp-block-button__link { padding: 10px 20px; font-size: 15px; white-space: nowrap; }

/* Polylang language switcher */
.site-header .lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 3px;
  flex: none;
}
.site-header .lang-switch a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
}
.site-header .lang-switch a.is-current { color: var(--yellow); }

/* ---------- Mobile burger menu ---------- */

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin-left: auto;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  flex: none;
}
.menu-toggle svg { width: 24px; height: 24px; display: block; }
.menu-toggle .icon-close { display: none; }

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; }
  .menu-toggle { display: flex; }
  .header-collapsible {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding-block: 22px 28px;
  }
  .site-header.menu-open .header-collapsible { display: flex; }
  .site-header.menu-open .menu-toggle .icon-open { display: none; }
  .site-header.menu-open .menu-toggle .icon-close { display: block; }
  .site-header .omny-nav { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ---------- Shared section scaffolding ---------- */

.eyebrow {
  display: inline-block;
  color: var(--yellow);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.block-section { padding-block: 92px; }
.block-section.alt { background: var(--paper-alt); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--navy); }
.section-head .sub { margin-top: 14px; color: var(--muted); font-size: 17.5px; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 183, 3, 0.16), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(228, 121, 54, 0.14), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  padding-block: 96px 110px;
}
.hero-inner.single { grid-template-columns: 1fr; text-align: center; padding-block: 88px; }
.hero h1 { font-size: clamp(38px, 5vw, 58px); color: #fff; line-height: 1.12; }
.hero h1 .hl { color: var(--yellow); }
.hero .sub {
  margin-top: 22px;
  font-size: 19px;
  color: var(--teal-on-dark);
  max-width: 54ch;
}
.hero-inner.single .sub { margin-inline: auto; }
.hero .actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-inner.single .actions { justify-content: center; }

/* ---------- Phone mockup ---------- */

.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone {
  width: 290px;
  border-radius: 40px;
  background: #0d1b24;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.12);
  position: relative;
}
.phone .screen { border-radius: 30px; overflow: hidden; background: #fff; }
.phone .notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 24px; background: #0d1b24; border-radius: 0 0 14px 14px; z-index: 2;
}
.screen .portal-head { background: var(--navy); color: #fff; padding: 40px 20px 20px; text-align: center; }
.screen .portal-head img { height: 18px; width: auto; margin: 0 auto 12px; display: block; }
.screen .portal-head .t { font-weight: 650; font-size: 18px; }
.screen .portal-head .s { font-size: 12.5px; color: var(--teal-on-dark); margin-top: 4px; }
.screen .portal-body { padding: 18px 16px 22px; display: grid; gap: 10px; }
.screen .field {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.screen .send {
  background: var(--yellow); color: var(--navy);
  font-weight: 650; text-align: center;
  border-radius: 10px; padding: 12px; font-size: 14.5px;
}
.screen .sms {
  margin-top: 6px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 3px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink);
  display: flex; gap: 8px; align-items: center;
}
.screen .sms .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.phone-badge {
  position: absolute; right: -6px; bottom: 38px;
  background: var(--green); color: #fff;
  font-size: 13px; font-weight: 600;
  border-radius: 999px; padding: 8px 14px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 7px;
}

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.step .num {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--yellow);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  margin-bottom: 18px;
}
.step h3 { font-size: 19.5px; color: var(--navy); margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- Features ---------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.feature .ico, .why-card .ico {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: rgba(255, 183, 3, 0.15);
  color: var(--orange);
}
.feature .ico svg, .why-card .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Compliance (dark) ---------- */

.compliance {
  background:
    radial-gradient(700px 400px at 110% 0%, rgba(118, 176, 135, 0.18), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
}
.compliance .section-head h2 { color: #fff; }
.compliance .section-head .sub { color: var(--teal-on-dark); }
.compliance .eyebrow { color: var(--green); }
.comp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.comp-card {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  gap: 16px;
}
.comp-card .check {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(118, 176, 135, 0.2);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.comp-card .check svg { width: 18px; height: 18px; }
.comp-card h3 { font-size: 18px; color: #fff; margin-bottom: 7px; }
.comp-card p { color: var(--teal-on-dark); font-size: 15px; }
.comp-note { margin-top: 34px; text-align: center; color: var(--teal); font-size: 14.5px; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: 16.5px;
  padding-block: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--orange);
  font-size: 22px;
  font-weight: 500;
  flex: none;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .a, .faq-item p { color: var(--muted); font-size: 15.5px; padding-bottom: 18px; }

/* ---------- Teaser & CTA ---------- */

.teaser {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 300px at 90% 20%, rgba(255,183,3,.18), transparent 60%),
    linear-gradient(120deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  padding: 54px;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 32px;
  align-items: center;
}
.teaser h2 { font-size: clamp(24px, 3vw, 32px); color: #fff; }
.teaser p { margin-top: 12px; color: var(--teal-on-dark); font-size: 16.5px; max-width: 56ch; }
.teaser .btn-zone { display: flex; justify-content: flex-end; }

.final-cta { text-align: center; padding-block: 100px; }
.final-cta.alt { background: var(--paper-alt); }
.final-cta h2 { font-size: clamp(28px, 3.6vw, 42px); color: var(--navy); max-width: 20ch; margin-inline: auto; }
.final-cta p { margin-top: 16px; color: var(--muted); font-size: 17.5px; }
.final-cta .wp-block-buttons { margin-top: 30px; justify-content: center; }

/* ---------- Why grid (partners) ---------- */

.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.why-card .ico { background: rgba(228, 121, 54, 0.13); }
.why-card h3 { font-size: 19px; color: var(--navy); margin-bottom: 9px; }
.why-card p { color: var(--muted); font-size: 15.5px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.75);
  padding-block: 56px 32px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer .wp-block-site-logo img { height: 22px; width: auto; }
.site-footer .tagline { color: var(--teal-on-dark); max-width: 34ch; margin-top: 14px; }
.site-footer h4 {
  color: #fff; font-size: 14px; text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 14px; font-weight: 600;
}
.site-footer .wp-block-navigation { display: block; }
.site-footer .wp-block-navigation .wp-block-navigation__container,
.site-footer .wp-block-navigation .wp-block-page-list {
  display: grid; gap: 9px; justify-items: start;
}
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 26px; font-size: 13.5px; color: rgba(255,255,255,.45);
}
.footer-bottom p { color: rgba(255,255,255,.45); }

/* ---------- Legal pages ---------- */

.legal-wrap { max-width: 800px; margin-inline: auto; padding-block: 72px 96px; padding-inline: 24px; }
.legal-wrap h1 { font-size: clamp(30px, 4vw, 40px); color: var(--navy); margin-bottom: 8px; }
.legal-wrap h2 { font-size: 24px; color: var(--navy); margin-top: 44px; margin-bottom: 12px; }
.legal-wrap h3 { font-size: 18.5px; color: var(--navy); margin-top: 28px; margin-bottom: 8px; }
.legal-wrap p, .legal-wrap li { color: var(--ink); font-size: 16px; }
.legal-wrap p { margin-block: 10px; }
.legal-wrap ul { padding-left: 22px; margin-block: 10px; }
.legal-wrap li { margin-block: 6px; }
.legal-wrap hr { border: 0; border-top: 1px solid var(--line); margin-block: 36px; }
.legal-wrap strong { color: var(--navy); }

/* ---------- Demo request modal ---------- */

.omny-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.omny-modal.is-open { display: block; }
.omny-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 48, 71, 0.55);
  backdrop-filter: blur(2px);
}
.omny-modal-panel {
  position: relative;
  max-width: 460px;
  margin: 6vh auto;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 34px 34px;
}
.omny-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
}
.omny-modal-close:hover { background: var(--paper-alt); color: var(--navy); }
.omny-modal-panel h3 { font-size: 24px; color: var(--navy); margin-bottom: 10px; }
.omny-modal-intro { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
#omny-demo-form { display: flex; flex-direction: column; gap: 16px; }
#omny-demo-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
#omny-demo-form .req { color: var(--orange); }
#omny-demo-form input {
  font: inherit;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
}
#omny-demo-form input:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.25);
}
.omny-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.omny-modal-error {
  color: #B3261E;
  background: rgba(179, 38, 30, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  margin: 0;
}
.omny-modal-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  width: 100%;
  padding: 13px 26px;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(255, 183, 3, 0.35);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.omny-modal-submit:hover { background: #FFC427; transform: translateY(-1px); }
.omny-modal-submit:disabled { opacity: .7; cursor: default; transform: none; }
.omny-modal-view[data-view="thanks"] h3 { color: var(--green); }
body.omny-modal-open { overflow: hidden; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 64px 80px; }
  .phone-wrap { order: -1; }
  .phone { width: 260px; }
  .steps, .features { grid-template-columns: 1fr; }
  .comp-grid, .why-grid { grid-template-columns: 1fr; }
  .teaser { grid-template-columns: 1fr; padding: 36px 28px; }
  .teaser .btn-zone { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 520px) {
  .omny-modal-panel { margin: 0; max-width: 100%; min-height: 100%; border-radius: 0; max-height: none; }
}
