/* ============================================================
   Apex Business Communications - site styles
   ============================================================ */

:root {
  --cyan: #3db8f5;
  --purple: #6b3fa0;
  --deep: #3d1a6e;
  --navy: #0b1428;
  --bg: #ffffff;
  --surface: #f7f9fc;
  --text: #0b1428;
  --muted: #5a6478;
  --border: #e4e8ef;

  --grad: linear-gradient(135deg, #3db8f5 0%, #6b3fa0 55%, #3d1a6e 100%);
  --grad-soft: linear-gradient(135deg, rgba(61, 184, 245, 0.08) 0%, rgba(107, 63, 160, 0.08) 55%, rgba(61, 26, 110, 0.08) 100%);

  --shadow-sm: 0 1px 2px rgba(11, 20, 40, 0.06);
  --shadow-md: 0 6px 24px rgba(11, 20, 40, 0.08);
  --shadow-lg: 0 14px 40px rgba(11, 20, 40, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container { padding: 0 24px; }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 0;
}

.btn-primary {
  background: var(--grad);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.btn-on-grad {
  background: #ffffff;
  color: var(--deep);
}

.btn-on-grad:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

.btn .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================================
   Header (sticky)
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

@media (min-width: 960px) {
  .site-header .container { height: 72px; }
}

.site-header .logo {
  display: flex;
  align-items: center;
}

.site-header .logo img {
  height: 36px;
}

@media (min-width: 960px) {
  .site-header .logo img { height: 44px; }
}

.site-nav {
  display: none;
  gap: 28px;
  align-items: center;
  font-weight: 500;
  font-size: 15px;
}

@media (min-width: 960px) {
  .site-nav { display: flex; }
}

.site-nav a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions .btn {
  padding: 10px 16px;
  font-size: 14px;
}

@media (min-width: 640px) {
  .header-actions .btn { padding: 12px 18px; font-size: 15px; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: 56px 0 64px;
  overflow: hidden;
}

@media (min-width: 960px) {
  .hero { padding: 96px 0 112px; }
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 560px;
  height: 560px;
  background: var(--grad);
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 360px;
  height: 360px;
  background: var(--grad);
  filter: blur(120px);
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero .container {
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.hero h1 .grad-word {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 580px;
}

@media (min-width: 960px) {
  .hero p.lead { font-size: 19px; }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-strip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
  display: inline-block;
}

.hero-mark {
  display: flex;
  justify-content: center;
}

.hero-mark img {
  width: clamp(180px, 28vw, 360px);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(61, 26, 110, 0.18));
}

@media (max-width: 959px) {
  .hero-mark { order: -1; }
  .hero-mark img { width: min(260px, 60vw); }
}

/* ============================================================
   Section primitives
   ============================================================ */

section.band {
  padding: 64px 0;
}

@media (min-width: 960px) {
  section.band { padding: 96px 0; }
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.section-head p {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   Services
   ============================================================ */

.services {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

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

.service-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(61, 26, 110, 0.25);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.service-card p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================================
   Why us
   ============================================================ */

.why-us .why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 960px) {
  .why-us .why-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.why-prose h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.why-prose p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
}

.why-prose p strong {
  color: var(--text);
  font-weight: 600;
}

.why-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}

.why-bullets li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
}

.check-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.check-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-bullets .b-title {
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.why-bullets .b-desc {
  color: var(--muted);
  font-size: 15px;
}

/* ============================================================
   Networks strip
   ============================================================ */

.networks {
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 48px 0;
}

@media (min-width: 960px) {
  .networks { padding: 64px 0; }
}

.networks-label {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
  font-weight: 600;
}

.network-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.network-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  border: 1px solid transparent;
  background-clip: padding-box;
  isolation: isolate;
}

.network-pill img {
  height: 24px;
  width: auto;
  display: block;
}

.network-pills { align-items: center; }

.network-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  padding: 1px;
  background: var(--grad);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.network-pill--logo {
  padding: 6px 18px;
}

/* ============================================================
   Closing CTA band
   ============================================================ */

.cta-band {
  background: var(--grad);
  color: #ffffff;
  padding: 56px 0;
}

@media (min-width: 960px) {
  .cta-band { padding: 72px 0; }
}

.cta-band .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  text-align: center;
}

@media (min-width: 960px) {
  .cta-band .container {
    grid-template-columns: 1fr auto;
    text-align: left;
  }
}

.cta-band h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.2;
}

.cta-band p {
  margin: 0;
  font-size: 16px;
  opacity: 0.92;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--navy);
  color: #c8cdd9;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 48px;
  }
}

.footer-brand img {
  height: 48px;
  margin-bottom: 16px;
  /* The source logo is dark navy on transparent - it disappears against the
     dark footer background. brightness(0) collapses every pixel to black,
     invert(1) then flips that to white. Result: a clean white silhouette
     that reads on the navy footer. */
  filter: brightness(0) invert(1);
}

.footer-brand p {
  margin: 0;
  font-size: 14px;
  color: #8a93a6;
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 15px;
}

.footer-list a {
  color: #c8cdd9;
  transition: color 0.15s ease;
}

.footer-list a:hover { color: #ffffff; }

.footer-contact {
  display: grid;
  gap: 12px;
  font-size: 15px;
}

.footer-contact .row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  stroke: #8a93a6;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 3px;
}

.footer-contact a {
  color: #c8cdd9;
}

.footer-contact a:hover { color: #ffffff; }

.social-row {
  display: flex;
  gap: 12px;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transition: background 0.15s ease, transform 0.15s ease;
}

.social-row a:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.social-row svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #8a93a6;
  text-align: center;
  line-height: 1.7;
}

.footer-legal span + span::before {
  content: " · ";
  margin: 0 4px;
  color: #5a6478;
}

/* ============================================================
   Accessibility & motion
   ============================================================ */

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

/* Buttons: suppress the default :focus outline that some browsers keep after
   a click (the outline against the cyan side of the brand gradient reads as a
   dark vertical edge). Swap the :focus-visible (keyboard) ring to a white +
   purple double box-shadow so it stays visible against both light and dark
   sides of the gradient. */
.btn:focus { outline: none; }

.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 5px var(--purple),
    var(--shadow-md);
}

.btn-on-grad:focus-visible {
  /* Inside the gradient CTA band, white is the band background - use a darker
     ring so it doesn't disappear into the band. */
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.95),
    0 0 0 5px var(--deep);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   v2 - multi-page additions
   ============================================================ */

/* Service cards as links - reset anchor defaults */
a.service-card {
  color: inherit;
  text-decoration: none;
  display: block;
}

/* ---- Page hero (used on simple pages and Services) ---- */
.page-hero {
  position: relative;
  padding: 48px 0 40px;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 960px) {
  .page-hero { padding: 72px 0 56px; }
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 380px;
  height: 380px;
  background: var(--grad);
  filter: blur(120px);
  opacity: 0.10;
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; max-width: 820px; }

.page-hero h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.page-hero .grad-word {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero p.lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 640px;
}

/* ---- Content sections (used on simple pages) ---- */
.content-section { padding: 56px 0; }

@media (min-width: 960px) {
  .content-section { padding: 80px 0; }
}

.content-section--alt { background: var(--surface); }

.content-section h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.content-section p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 14px;
  max-width: 720px;
}

.content-section ul {
  margin: 14px 0 0;
  padding: 0 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

.content-section ul li { margin: 6px 0; }

/* ---- Tabs (Services page) ---- */
.tabs-strip {
  position: sticky;
  top: 64px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 960px) {
  .tabs-strip { top: 72px; }
}

.tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tabs > a {
  flex: 0 0 auto;
  padding: 18px 18px;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  position: relative;
  white-space: nowrap;
  transition: color 0.15s ease;
}

@media (min-width: 960px) {
  .tabs > a { padding: 20px 28px; font-size: 16px; }
}

.tabs > a:hover { color: var(--text); }

.tabs > a[aria-selected="true"] { color: var(--text); }

.tabs > a[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  background: var(--grad);
  border-radius: 2px 2px 0 0;
}

@media (min-width: 960px) {
  .tabs > a[aria-selected="true"]::after { left: 28px; right: 28px; }
}

/* On phones the horizontal scroll-row hides 2 of the 4 tabs off the right
   edge. Lay them out as a 2x2 grid so every tab is visible without
   scrolling. Thin grey dividers separate the four cells. */
@media (max-width: 640px) {
  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }

  .tabs > a {
    padding: 14px 10px;
    font-size: 14px;
    text-align: center;
    justify-content: center;
    white-space: normal;
    line-height: 1.25;
  }

  .tabs > a:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .tabs > a:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .tabs > a[aria-selected="true"]::after {
    left: 10px;
    right: 10px;
  }
}

/* ---- Tab panels ---- */
.tab-panel { padding: 56px 0; }

@media (min-width: 960px) {
  .tab-panel { padding: 80px 0; }
}

.tab-panel h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.tab-panel .panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 960px) {
  .tab-panel .panel-grid { grid-template-columns: 1.4fr 1fr; gap: 56px; }
}

.tab-panel .panel-prose p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 14px;
}

.tab-panel .panel-includes h3 {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 14px;
  font-weight: 700;
}

.tab-panel .panel-includes ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 12px;
}

.tab-panel .panel-includes li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.tab-panel .panel-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  color: var(--purple);
  font-weight: 700;
}

.tab-panel .panel-networks h3 {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 14px;
  font-weight: 700;
}

.tab-panel .panel-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* ---- Tabs: visibility ----
   Default state (works in every browser): hide every panel, show whichever
   currently has .is-active. The HTML ships with .is-active on Mobiles so a
   fresh load shows Mobiles even before JS runs.

   When JS is active, scripts.js adds the `has-js` class to <html> and owns
   the .is-active class - clicking a tab swaps .is-active to that panel and
   the rule below does the rest. :target is intentionally NOT consulted in
   the JS path: the URL hash updates via replaceState slightly after the
   class change, and during that gap a `:target`-based rule fights .is-active
   and the new tab briefly hides. .is-active alone is unambiguous. */
.services-page .tab-panel { display: none; }
.services-page .tab-panel.is-active { display: block; }

/* No-JS only: support deep links like /services#care via :target.
   These rules are scoped to `html:not(.has-js)` so they never compete with
   .is-active once scripts.js has loaded. */
html:not(.has-js) .services-page .tab-panel:target { display: block; }
html:not(.has-js) .services-page:has(.tab-panel:target) .tab-panel.is-active:not(:target) {
  display: none;
}

/* ---- Nav system (replaces the simple .site-nav above) ---- */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  gap: 4px;
}

.nav-toggle__bar {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
}

/* Active nav link */
.site-nav a[aria-current="page"] { color: var(--text); position: relative; }

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

/* ---- Mobile drawer (< 960px) ---- */
@media (max-width: 959px) {
  /* Move the hamburger to the right of the header, sitting next to the call
     button. The header is a 3-item flex: logo / call button / hamburger.
     `order` + a small left margin puts the toggle as the rightmost item; the
     call button slides one position left so the two right-side controls sit
     together. */
  .site-header .container { gap: 8px; }
  .nav-toggle { order: 3; margin-left: 4px; }
  .header-actions { order: 2; margin-left: auto; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    align-items: stretch;
  }

  body[data-menu-open="true"] .site-nav { display: flex; }

  .nav-item { width: 100%; border-bottom: 1px solid var(--border); }
  .nav-item:last-child { border-bottom: none; }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    font-size: 16px;
    color: var(--text);
  }

  .nav-link[aria-current="page"]::after { display: none; }

  .nav-caret { width: 18px; height: 18px; }

  .nav-item--has-dropdown .nav-link {
    /* tapping the link still navigates; we add a separate expand button
       inline so users can choose between landing on /services or browsing the
       sub-items. */
  }

  .nav-dropdown {
    display: none;
    background: var(--surface);
    padding: 4px 0 8px;
  }

  .nav-dropdown a {
    display: block;
    padding: 10px 36px;
    font-size: 15px;
    color: var(--muted);
  }

  .nav-dropdown a:hover { color: var(--text); }

  .nav-dropdown__sep {
    display: block;
    height: 1px;
    background: var(--border);
    margin: 6px 24px;
  }

  .nav-item[data-expanded="true"] .nav-dropdown { display: block; }
  .nav-item[data-expanded="true"] .nav-caret { transform: rotate(180deg); }

  /* Hide the phone-number label on the smallest screens; keep the icon */
  .header-actions__label { display: none; }
}

@media (max-width: 380px) {
  .header-actions .btn { padding: 10px; }
}

/* ---- Desktop dropdowns (>= 960px) ---- */
@media (min-width: 960px) {
  .site-nav {
    display: flex;
    gap: 32px;
    align-items: center;
  }

  .nav-item { position: relative; }

  .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    color: var(--muted);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.15s ease;
  }

  .nav-link:hover { color: var(--text); }

  .nav-caret { width: 14px; height: 14px; opacity: 0.6; }

  .nav-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 240px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 40;
  }

  .nav-item--has-dropdown:hover .nav-dropdown,
  .nav-item--has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-dropdown a {
    display: block;
    padding: 10px 18px;
    color: var(--text);
    font-size: 15px;
    transition: background 0.12s ease;
  }

  .nav-dropdown a:hover { background: var(--surface); }

  .nav-dropdown__sep {
    display: block;
    height: 1px;
    background: var(--border);
    margin: 6px 0;
  }
}

/* ---- Contact page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; }
}

.contact-form {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 960px) {
  .contact-form { padding: 36px 32px; }
}

.contact-form .form-row { display: grid; gap: 6px; margin-bottom: 18px; }

.contact-form label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="number"],
.contact-form textarea {
  font: inherit;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(107, 63, 160, 0.18);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form .honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .form-actions { margin-top: 8px; }

.form-errors {
  background: #fff4f4;
  border: 1px solid #f3c5c5;
  color: #8a1f1f;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 15px;
}

.form-errors ul { margin: 6px 0 0; padding: 0 0 0 20px; }

.form-success {
  background: #f1faf3;
  border: 1px solid #b9e3c2;
  color: #1d5a2d;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  font-size: 16px;
  line-height: 1.6;
}

.form-success h3 { margin: 0 0 6px; color: #1d5a2d; font-size: 18px; }

/* Contact details card */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.contact-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
}

.contact-card .row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 14px;
  font-size: 15px;
}

.contact-card .row svg {
  width: 18px;
  height: 18px;
  stroke: var(--purple);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 3px;
}

.contact-card a { color: var(--text); }
.contact-card a:hover { color: var(--purple); }

/* Footer: a second heading inside a column (e.g. "Follow" after the
   "Company" list) gets the same vertical gap the inline style used to
   carry. */
.footer-grid > div > .footer-list + .footer-heading {
  margin-top: 24px;
}

/* ---- Richer prose inside service tabs (Mobiles + Care) ---- */
.tab-panel .panel-lead {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: -8px 0 24px;
  max-width: 720px;
}

@media (min-width: 960px) {
  .tab-panel .panel-lead { font-size: 19px; }
}

.tab-panel .panel-prose h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
  letter-spacing: -0.005em;
}

.tab-panel .panel-prose h3:first-child { margin-top: 0; }

.tab-panel .panel-prose ul {
  margin: 8px 0 16px;
  padding: 0 0 0 20px;
  color: var(--muted);
  line-height: 1.65;
}

.tab-panel .panel-prose ul li { margin: 4px 0; }
.tab-panel .panel-prose strong { color: var(--text); font-weight: 700; }

.tab-panel .panel-prose--full {
  margin-top: 8px;
  max-width: 880px;
}

/* Slightly looser line height on the includes list when items contain bold leads */
.tab-panel .panel-includes li { line-height: 1.5; }
.tab-panel .panel-includes li strong { color: var(--text); font-weight: 700; }

/* ---- Subhead inside a content-section (used on /sustainability) ---- */
.content-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 8px;
  letter-spacing: -0.005em;
}

.content-section h2 + h3 { margin-top: 24px; }

/* Tagline paragraph at the end of a content-section */
.content-section .content-tagline {
  margin-top: 24px;
  font-style: italic;
  color: var(--purple);
  font-weight: 600;
}

/* ============================================================
   v2 - Quick guides
   ============================================================ */

/* Index page card grid */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

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

a.guide-card {
  position: relative;
  display: block;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px 28px;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.guide-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

a.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
a.guide-card:hover::before { transform: scaleX(1); }

.guide-card .guide-card__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  display: block;
  margin-bottom: 10px;
}

.guide-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.005em;
  color: var(--text);
}

.guide-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.guide-card .guide-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 14px;
  color: var(--purple);
}

.guide-card .guide-card__cta::after {
  content: "→";
  transition: transform 0.2s ease;
}

a.guide-card:hover .guide-card__cta::after { transform: translateX(4px); }

/* Guide page layout - narrower content column for readability */
.guide-page .container { max-width: 820px; }

.guide-page .page-hero .container { max-width: 820px; }

.guide-page h2 {
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 40px 0 14px;
  color: var(--text);
}

.guide-page h2:first-of-type { margin-top: 24px; }

.guide-page h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text);
}

.guide-page p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 14px;
}

.guide-page strong { color: var(--text); }

/* Before-you-start / what-transfers checklist */
.guide-checklist {
  list-style: none;
  padding: 0;
  margin: 14px 0 24px;
  display: grid;
  gap: 10px;
}

.guide-checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.55;
}

.guide-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  color: var(--purple);
  font-weight: 700;
}

/* "May not transfer" / warning list - uses a different glyph */
.guide-warnlist {
  list-style: none;
  padding: 0;
  margin: 14px 0 24px;
  display: grid;
  gap: 10px;
}

.guide-warnlist li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.55;
}

.guide-warnlist li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(107, 63, 160, 0.12);
  color: var(--purple);
  font-weight: 700;
  text-align: center;
  font-size: 13px;
  line-height: 22px;
}

/* Numbered step list */
.guide-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 18px 0 30px;
  display: grid;
  gap: 20px;
}

.guide-steps > li {
  position: relative;
  padding-left: 56px;
  min-height: 40px;
}

.guide-steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(61, 26, 110, 0.22);
}

.guide-steps > li > h3 {
  font-size: 17px;
  margin: 6px 0 6px;
  color: var(--text);
}

.guide-steps > li > p {
  margin: 0 0 8px;
  font-size: 15.5px;
}

.guide-steps > li > ul {
  margin: 6px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.guide-steps > li > ul li { margin: 4px 0; }

/* Callout box for important warnings or notes */
.guide-callout {
  background: var(--grad-soft);
  border: 1px solid rgba(107, 63, 160, 0.18);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 20px 0 28px;
}

.guide-callout h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--deep);
  letter-spacing: -0.005em;
}

.guide-callout p {
  margin: 0;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.6;
}

.guide-callout p + p { margin-top: 8px; }

/* "Back to guides" link at the top of each guide page */
.guide-backlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 8px;
}

.guide-backlink::before { content: "←"; }
.guide-backlink:hover { color: var(--deep); }

.guide-footnote {
  margin-top: 32px;
  font-size: 15px;
  color: var(--muted);
}

.guide-footnote a {
  color: var(--purple);
  font-weight: 600;
}

.guide-footnote a:hover { color: var(--deep); }

/* ============================================================
   v2 - "Powered by" credit chip (footer)
   ============================================================ */

.footer-credit {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.ez-chip {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 18px 9px 10px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ez-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(107, 63, 160, 0.35);
}

.ez-chip-mark {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.ez-chip-mark img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.ez-chip-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.ez-chip-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.ez-chip-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.ez-chip-tld {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .ez-chip { transition: none; }
  .ez-chip:hover { transform: none; }
}

/* ============================================================
   v2 - Referral scheme page
   ============================================================ */

.hero-actions { margin-top: 26px; }

/* Reward tiers - gradient panel */
.reward-panel {
  background: var(--grad);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

@media (min-width: 960px) {
  .reward-panel { padding: 48px 40px; }
}

.reward-panel h2 {
  color: #ffffff;
  margin: 0 0 10px;
  font-size: clamp(24px, 3.2vw, 32px);
}

.reward-panel > p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 640px;
  margin: 0 auto;
}

.reward-tiers {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

.reward-tiers li {
  background: rgba(255, 255, 255, 0.06);
  padding: 22px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tier-count {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.tier-value {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.reward-note {
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
}

/* "More than just business mobiles" cards */
.offer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

.offer-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}

.offer-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--grad);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.offer-icon svg { width: 24px; height: 24px; }

.offer-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--navy);
}

.offer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* How it works - numbered steps */
.referral-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  counter-reset: none;
}

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

@media (min-width: 960px) {
  .referral-steps { grid-template-columns: repeat(4, 1fr); gap: 26px; }
}

.referral-steps li {
  position: relative;
  padding-top: 6px;
}

/* Connector line between steps on wide screens */
@media (min-width: 960px) {
  .referral-steps li::after {
    content: "";
    position: absolute;
    top: 24px;
    left: calc(44px + 12px);
    right: -26px;
    border-top: 2px dashed var(--border);
  }
  .referral-steps li:last-child::after { display: none; }
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--grad);
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.referral-steps h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--navy);
}

.referral-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Why recommend Apex */
.why-refer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 960px) {
  .why-refer { grid-template-columns: 1.1fr 1fr; gap: 56px; }
}

.why-refer h2 { margin-top: 0; }

.why-refer .why-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.why-refer .why-bullets .b-title {
  font-weight: 600;
  color: var(--navy);
}

/* Referral form */
.referral-form-wrap { max-width: 780px; margin: 0 auto; }

.referral-form .form-block {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0 0 24px;
  padding: 22px 0 0;
}

.referral-form .form-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.referral-form legend {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  padding: 0;
  margin-bottom: 16px;
}

.referral-form .form-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 18px;
}

@media (min-width: 640px) {
  .referral-form .form-pair { grid-template-columns: 1fr 1fr; }
}

.referral-form textarea { min-height: 110px; }

.form-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.form-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--purple);
}

.form-consent label {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

/* Outro + terms */
.referral-outro { max-width: 780px; }
.referral-outro h2 { margin-top: 0; }

.referral-terms {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
  .offer-card { transition: none; }
}

/* Referral page - centring corrections.
   `.content-section p` caps width at 720px with no auto margins, so inside a
   centred `.section-head` the text centred within a box sitting flush left.
   Scoped to `.content-section` so the `.band` section-heads on the home page
   are untouched. */
.content-section .section-head p {
  margin-left: auto;
  margin-right: auto;
}

/* "What happens next?" outro reads as a closing statement, so centre it to
   match the section-heads above rather than sitting left-aligned. */
.referral-outro {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.referral-outro p {
  margin-left: auto;
  margin-right: auto;
}

.referral-outro h3 {
  margin-top: 28px;
}

.referral-outro .referral-terms {
  max-width: 640px;
}

.referral-terms-cta {
  margin-top: 16px;
}

/* Referral submit button - gated until every required field is filled.
   Only ever applied by scripts.js, so the no-JS path keeps a live button. */
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn[disabled]:hover {
  transform: none;
  box-shadow: none;
}

.form-hint {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.form-hint[hidden] { display: none; }

/* ============================================================
   v2 - "A solution built around your business" (Services page)
   ============================================================ */

.tailored-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 960px) {
  .tailored-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}

.tailored-prose p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 16px;
}

.tailored-prose .tailored-close {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--navy);
  font-weight: 500;
}

.tailored-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.tailored-checklist li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: center;
  font-size: 16px;
  color: var(--navy);
}

/* ---- Roaming page tabs ----
   Same show/hide + no-JS :target pattern as the Services page tabs (see
   "Tabs: visibility" above), just scoped to .roaming-page instead of
   .services-page so the two tab sets never interfere with each other. */
.roaming-page .tab-panel { display: none; }
.roaming-page .tab-panel.is-active { display: block; }

html:not(.has-js) .roaming-page .tab-panel:target { display: block; }
html:not(.has-js) .roaming-page:has(.tab-panel:target) .tab-panel.is-active:not(:target) {
  display: none;
}

.tab-panel .panel-includes .country-list {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
  margin: 0 0 32px;
}

/* The 5 roaming tab labels are the literal tariff names (see CLAUDE.md
   Networks policy exception) and together are wider than the Services
   page's 4 short labels ever were. `.tabs` scrolls horizontally with its
   scrollbar hidden for a clean look - fine when everything fits in view,
   but on any viewport narrower than ~1300px it left the 5th tab
   (World Monthly Passport) scrolled off the right edge with no visible
   hint that more was there. Wrapping avoids the hidden-overflow trap
   entirely; scoped above the phone breakpoint since that already handles
   overflow via its own 2x2 grid below. */
@media (min-width: 641px) {
  .roaming-page .tabs {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
    row-gap: 8px;
  }
}

/* Tighter type/padding so all 5 fit on one row on a typical desktop
   viewport (fits within the 1180px container from ~1130px viewport up)
   instead of the Services page's roomier sizing, which was tuned for 4
   shorter labels. `flex-wrap` above still catches anything narrower -
   it only wraps when content doesn't fit, so this and the wrap rule
   work together rather than one replacing the other. */
.roaming-page .tabs > a {
  padding: 14px 16px;
  font-size: 14px;
}

.roaming-page .tabs > a[aria-selected="true"]::after {
  left: 16px;
  right: 16px;
}

/* The generic phone 2x2 tab grid (see "Tabs: visibility" above) hardcodes
   its borders for exactly 4 tabs. Roaming has 5, so the border-bottom rule
   is widened to cover both full rows (items 1-4) and the trailing 5th tab
   is spanned across both columns instead of sitting alone in one cell. */
@media (max-width: 640px) {
  .roaming-page .tabs > a:nth-child(-n+4) {
    border-bottom: 1px solid var(--border);
  }

  .roaming-page .tabs > a:last-child {
    grid-column: 1 / -1;
    border-right: 0;
  }
}

/* Contact card: out-of-hours note under the direct-contact rows. */
.contact-card .card-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.contact-card .card-note a { color: var(--purple); }
.contact-card .card-note a:hover { text-decoration: underline; }

/* Services tabs: banner image at the top of the "What's included" column.
   Artwork is 640x360 with the headline baked in, so it is capped at its
   native width to avoid upscaling blur. */
.tab-panel .panel-media {
  margin: 0 0 28px;
  max-width: 640px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.tab-panel .panel-media img {
  display: block;
  width: 100%;
  height: auto;
}

.tab-panel .panel-media--prose { margin: 24px 0 0; }

/* Services tabs: the banner is the first child of .panel-grid--media so it
   leads the stack on mobile (above the prose). From 960px it is placed back
   top-right, over the includes list, with the prose spanning both rows. */
.tab-panel .panel-grid--media > .panel-media { margin: 0; }

@media (min-width: 960px) {
  .tab-panel .panel-grid--media {
    grid-template-rows: auto 1fr;
    row-gap: 28px;
  }
  .tab-panel .panel-grid--media > .panel-prose    { grid-column: 1; grid-row: 1 / span 2; }
  .tab-panel .panel-grid--media > .panel-media    { grid-column: 2; grid-row: 1; }
  .tab-panel .panel-grid--media > .panel-includes { grid-column: 2; grid-row: 2; }
}

/* Home service cards led by the service banners. The artwork is 640x360
   with the headline + tagline baked in, so the grid stays one column
   (capped at native width) below 960px and 2x2 from 960px; four across
   (even broken out of the container) shrinks the baked-in text past
   legibility. The card's
   h3 + p stay in the DOM for screen readers and search, visually hidden. */
.service-grid--media {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .service-grid--media { grid-template-columns: 1fr; }
}

@media (min-width: 960px) {
  .service-grid--media {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }
}

.service-card--media {
  padding: 0;
  display: flex;
  flex-direction: column;
}

a.service-card--media { display: flex; }

.service-card--media img {
  display: block;
  width: 100%;
  height: auto;
}

.service-card--media .service-more {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  color: var(--purple);
}

.service-card--media .service-more span {
  transition: transform 0.2s ease;
}

.service-card--media:hover .service-more span {
  transform: translateX(4px);
}

/* Keep the gradient hover bar above the image rather than behind it. */
.service-card--media::before { z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .service-card--media:hover .service-more span { transform: none; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tighter vertical rhythm site-wide (2026-09-30): section padding cut by
   roughly a third so pages need less scrolling. Overrides only - the
   original values above are left in place. */
.hero { padding: 40px 0 48px; }
section.band { padding: 48px 0; }
.section-head { margin-bottom: 32px; }
.page-hero { padding: 36px 0 32px; }
.content-section { padding: 40px 0; }
.tab-panel { padding: 40px 0; }
.cta-band { padding: 44px 0; }

@media (min-width: 960px) {
  .hero { padding: 64px 0 72px; }
  section.band { padding: 64px 0; }
  .page-hero { padding: 52px 0 40px; }
  .content-section { padding: 56px 0; }
  .tab-panel { padding: 56px 0; }
  .cta-band { padding: 56px 0; }
}

/* Home hero logo bigger on mobile (was min(260px, 60vw)). logo2.png is a
   square with generous transparent padding, so the negative block margin
   stops the extra size from pushing the headline further down. */
@media (max-width: 959px) {
  .hero-mark img {
    width: min(340px, 80vw);
    margin-block: -20px -48px;
  }
}

/* Referrals "How it works": centre the stacked steps on mobile (single
   column, below 640px). The number badge is inline-flex, so text-align
   centres it along with the heading and copy. */
@media (max-width: 639px) {
  .referral-steps li { text-align: center; }
  .referral-steps p { max-width: 36ch; margin-inline: auto; }
}

/* Referrals reward panel: full-bleed. The gradient moves from the rounded
   card onto the section so it spans the whole page width; the card keeps
   its inner layout but drops its own background, radius, shadow and
   padding (the section padding now provides the breathing room). */
.reward-band { background: var(--grad); }
.reward-band .reward-panel {
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* Referrals reward tiers: `.content-section ul` / `ul li` (generic prose
   rules) out-specify `.reward-tiers`, adding a 20px left indent and 6px
   tile margins so the tiles sat inset inside their bordered box; `.content-
   section p` likewise stripped the gap above `.reward-note`. Restore
   the intended values with matching specificity. */
.content-section .reward-tiers { margin: 30px 0 0; padding: 0; }
.content-section .reward-tiers li { margin: 0; }
.content-section .reward-note { margin: 26px auto 0; }
