/* ============================================================
   Moonfire — Fluid corporate layout
   Units: rem / em / % / vw / svh / clamp — no fixed pixel boxes
   Media: object-fit cover, full-bleed backgrounds
   ============================================================ */

:root {
  --blue: #00aaff;
  --blue-dark: #0088cc;
  --blue-deep: #006699;
  --blue-soft: #e8f7ff;
  --blue-mid: #b8e6ff;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-soft: #f1f5f9;
  --shadow: 0 0.25rem 1.5rem rgba(15, 23, 42, 0.06);
  --shadow-md: 0 0.75rem 2.5rem rgba(15, 23, 42, 0.08);
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --header-h: 4.75rem;
  /* Liquid gutters only — content uses the full viewport width */
  --gutter: clamp(1rem, 3.2vw, 2.75rem);
  --space: var(--gutter);
  --space-section: clamp(3.25rem, 7vw, 6rem);
  /* No boxed max-width shell: stretch across the screen */
  --content-max: 100%;
  --font: "Montserrat", system-ui, -apple-system, sans-serif;
  --text-sm: clamp(0.8rem, 0.75rem + 0.2vw, 0.9rem);
  --text: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --text-lg: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  --h1: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  --h2: clamp(1.55rem, 1.2rem + 1.4vw, 2.4rem);
  --h3: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--text);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  overflow-x: hidden;
}

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

/* Fluid media fills parent */
.media-picture,
.media-picture img,
.media-bg__video,
.media-bg__fallback,
.media-bg__fallback img {
  width: 100%;
  height: 100%;
}

.media-picture img,
.media-bg__video,
.media-bg__fallback img,
.card-img img,
.hero-media img,
.hero-media video,
.split-media img,
.split-media video {
  object-fit: cover;
  object-position: center;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--blue);
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.75em 1em;
  z-index: 1000;
}
.skip-link:focus {
  left: var(--space);
  top: var(--space);
}

:focus-visible {
  outline: 0.125rem solid var(--blue);
  outline-offset: 0.2rem;
}

/* ---------- Layout: liquid full-screen (no fixed content box) ---------- */
.container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

/* Nested containers: don't double-pad */
.container .container {
  padding-inline: 0;
}

.section {
  padding-block: var(--space-section);
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* Optional narrow text measure for long-form only */
.measure {
  max-width: min(100%, 48rem);
}

.measure-wide {
  max-width: min(100%, 70rem);
}

.section-sm {
  padding-block: calc(var(--space-section) * 0.65);
}

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

.section-header {
  width: 100%;
  max-width: min(100%, 56rem);
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  text-align: center;
}

.section-header.left {
  margin-inline: 0;
  text-align: left;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 0.75em;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: var(--h1); letter-spacing: -0.02em; }
h2 { font-size: var(--h2); letter-spacing: -0.015em; }
h3 { font-size: var(--h3); }

.lead {
  font-size: var(--text-lg);
  color: var(--muted);
  line-height: 1.7;
  margin-top: 1em;
  max-width: 40em;
}

.text-center { text-align: center; }
.text-blue { color: var(--blue-dark); }
.mt-1 { margin-top: 0.5em; }
.mt-2 { margin-top: 1em; }
.mt-3 { margin-top: 1.5em; }
.mt-4 { margin-top: 2em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 0.9em;
  border-radius: 0.65em;
  border: 0.1em solid transparent;
  padding: 0.7em 1.35em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.btn-icon svg {
  width: 1.05em;
  height: 1.05em;
  display: block;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--blue-dark);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue-soft);
  color: var(--blue-deep);
}

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

.btn-sm {
  padding: 0.55em 1em;
  font-size: 0.82em;
  border-radius: 0.5em;
}

.btn-lg {
  padding: 0.9em 1.6em;
  font-size: 0.95em;
  border-radius: 0.75em;
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  margin-top: 1.75em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(0.75rem);
  border-bottom: 0.0625rem solid var(--line);
  min-height: var(--header-h);
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 0.75em;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

.logo img {
  height: clamp(2.25rem, 4vw, 2.75rem);
  width: auto;
  object-fit: contain;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.05em;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-desktop a,
.nav-dropdown-toggle {
  color: var(--muted);
  font-size: clamp(0.72rem, 0.65rem + 0.35vw, 0.88rem);
  font-weight: 500;
  padding: 0.45em 0.55em;
  border-radius: 0.5em;
  white-space: nowrap;
  font-family: inherit;
  line-height: inherit;
}

.nav-desktop a:hover,
.nav-desktop a.active,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-item.has-dropdown.active > .nav-dropdown-toggle {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.nav-item.has-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  border: 0;
  background: transparent;
  cursor: pointer;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  vertical-align: middle;
}

.nav-caret {
  width: 0.4em;
  height: 0.4em;
  border-right: 0.11em solid currentColor;
  border-bottom: 0.11em solid currentColor;
  transform: rotate(45deg) translateY(-0.1em);
  transition: transform 0.15s ease;
}

.nav-item.has-dropdown.open .nav-caret,
.nav-item.has-dropdown:focus-within .nav-caret {
  transform: rotate(225deg) translateY(-0.05em);
}

.nav-dropdown {
  position: absolute;
  /* No vertical gap — a gap between toggle and menu drops :hover and hides the menu */
  top: 100%;
  left: 0;
  min-width: 12.5rem;
  margin: 0;
  padding: 0.4rem;
  background: #fff;
  border: 0.0625rem solid var(--line);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 40;
}

/* Invisible bridge above the panel so diagonal mouse movement still keeps hover */
.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.5rem;
  height: 0.5rem;
}

.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown,
.nav-item.has-dropdown.open .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 0.65em 0.85em;
  border-radius: 0.55em;
  color: var(--ink-2);
  font-size: 0.88rem;
  white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

/* Mobile Products accordion — matches other nav links + expand/collapse */
.nav-mobile-accordion {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
}

.nav-mobile-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 0.55em 1em;
  border: 0;
  border-radius: 0.65em;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-weight: 500;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.nav-mobile-accordion-toggle:hover,
.nav-mobile-accordion.is-open > .nav-mobile-accordion-toggle {
  background: var(--bg-alt);
  color: var(--blue-dark);
}

.nav-mobile-plus {
  position: relative;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-left: 0.75em;
}

.nav-mobile-plus::before,
.nav-mobile-plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 0.1em;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

/* Horizontal bar of + */
.nav-mobile-plus::before {
  left: 0.1rem;
  right: 0.1rem;
  top: 50%;
  height: 0.125rem;
  transform: translateY(-50%);
}

/* Vertical bar of + */
.nav-mobile-plus::after {
  top: 0.1rem;
  bottom: 0.1rem;
  left: 50%;
  width: 0.125rem;
  transform: translateX(-50%);
}

/* Open state: + becomes − (hide vertical bar) */
.nav-mobile-accordion.is-open .nav-mobile-plus::after {
  opacity: 0;
  transform: translateX(-50%) scaleY(0);
}

.nav-mobile-accordion-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0 0 0.15em;
}

.nav-mobile-accordion-panel[hidden] {
  display: none !important;
}

.nav-mobile a.nav-mobile-sub {
  padding: 0.45em 1em 0.45em 1.65em;
  font-size: 0.95em;
  text-align: left;
}

/* ---------- Vastu Compass how-to demo ---------- */
.vastu-howto-media {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0.0625rem solid var(--line);
  box-shadow: var(--shadow-md);
  background: #0f172a;
}

.vastu-howto-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0f172a;
}

.vastu-howto-caption {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: #fff;
  border-top: 0.0625rem solid var(--line);
}

.vastu-howto-thumb {
  margin: 0;
  border-radius: 0.65rem;
  overflow: hidden;
  border: 0.0625rem solid var(--line);
  background: #fff;
}

.vastu-howto-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.vastu-howto-thumb figcaption {
  padding: 0.45rem 0.55rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.3;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.desktop-only {
  display: none;
}

.nav-toggle {
  width: 2.65rem;
  height: 2.65rem;
  border: 0.0625rem solid var(--line);
  border-radius: 0.65rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 0.125rem;
  background: var(--ink);
  border-radius: 0.125rem;
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  padding: 0.65em var(--gutter) 1.15em;
  background: #fff;
  border-bottom: 0.0625rem solid var(--line);
  box-shadow: var(--shadow);
  width: 100%;
  box-sizing: border-box;
}

.nav-mobile[hidden] {
  display: none !important;
}

.nav-mobile a:not(.btn) {
  padding: 0.55em 1em;
  border-radius: 0.65em;
  color: var(--ink-2);
  font-weight: 500;
}

.nav-mobile a:not(.btn):hover {
  background: var(--bg-alt);
  color: var(--blue-dark);
}

.nav-mobile .btn {
  margin-top: 0.45em;
}

@media (min-width: 72em) {
  .nav-desktop { display: flex; }
  .desktop-only { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ---------- Full-bleed media background ---------- */
.media-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.media-bg__video,
.media-bg__fallback {
  position: absolute;
  inset: 0;
}

.media-bg__fallback {
  z-index: 0;
}

.media-bg__video {
  z-index: 1;
  /* Cover full area of any section size */
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.media-bg__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.45) 70%, rgba(232, 247, 255, 0.35) 100%);
}

.media-bg--dark .media-bg__scrim {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.78) 100%);
}

.media-bg--soft .media-bg__scrim {
  /* Lighter wash so photo still reads; keep text readable */
  background:
    linear-gradient(
      100deg,
      rgba(248, 250, 252, 0.94) 0%,
      rgba(255, 255, 255, 0.88) 45%,
      rgba(255, 255, 255, 0.72) 100%
    );
}

/* ---------- Hero: full viewport width ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
  background: var(--blue-soft);
}

.hero > .container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: none;
}

.hero-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  width: 100%;
  min-width: 0;
}

@media (min-width: 56em) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  }
}

.hero-grid > * {
  min-width: 0;
  max-width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: rgba(255, 255, 255, 0.92);
  border: 0.0625rem solid var(--line);
  color: var(--ink-2);
  font-size: 0.8em;
  font-weight: 600;
  padding: 0.4em 0.9em;
  border-radius: 999em;
  box-shadow: var(--shadow);
  margin-bottom: 1.25em;
}

.hero-badge::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.hero h1 span {
  color: var(--blue-dark);
}

.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 0.0625rem solid rgba(255, 255, 255, 0.6);
  background: var(--bg-soft);
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75em 1.25em;
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 0.0625rem solid rgba(226, 232, 240, 0.9);
  font-size: var(--text-sm);
  color: var(--muted);
}

.hero-trust img {
  height: 2.25rem;
  width: 2.25rem;
  object-fit: contain;
  background: #fff;
  border: 0.0625rem solid var(--line);
  border-radius: 0.5em;
  padding: 0.2em;
}

/* ---------- Stats ---------- */
.stats-bar {
  position: relative;
  z-index: 4;
  margin-top: clamp(-2.5rem, -4vw, -1.5rem);
  padding-bottom: 1em;
  width: 100%;
}

.stats-card {
  background: #fff;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  overflow: hidden;
}

@media (min-width: 48em) {
  .stats-card {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat-item {
  text-align: center;
  padding: clamp(1.25rem, 3vw, 1.85rem) 0.75em;
  border-right: 0.0625rem solid var(--line);
  border-bottom: 0.0625rem solid var(--line);
}

.stats-card .stat-item:nth-child(2n) {
  border-right: none;
}

@media (min-width: 48em) {
  .stat-item {
    border-bottom: none;
  }
  .stats-card .stat-item:nth-child(2n) {
    border-right: 0.0625rem solid var(--line);
  }
  .stats-card .stat-item:last-child {
    border-right: none;
  }
}

.stat-value {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem);
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: 0.35em;
  font-weight: 500;
}

.stat-item img {
  height: 3rem;
  width: 3rem;
  margin: 0 auto 0.5em;
  object-fit: contain;
}

/* ---------- Cards grid: fluid columns ---------- */
.cards-3 {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  /* Fluid 1 → 2 → 3 columns without orphan edge stretch */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  width: 100%;
  min-width: 0;
}

.cards-3 > * {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 64em) {
  .cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: #fff;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-mid);
  transform: translateY(-0.15rem);
}

a.card {
  color: inherit;
}

.card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}

.card-img img,
.card-img .media-picture,
.card-img .media-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-body {
  padding: clamp(1.1rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  margin-bottom: 0.5em;
}

.card-body p {
  color: var(--muted);
  font-size: 0.92em;
  flex: 1;
}

.card-link {
  margin-top: 1em;
  font-size: 0.875em;
  font-weight: 600;
  color: var(--blue-dark);
}

.badge {
  display: inline-block;
  font-size: 0.65em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--blue);
  color: #fff;
  padding: 0.3em 0.65em;
  border-radius: 999em;
}

.card-img .badge {
  position: absolute;
  top: 0.75em;
  right: 0.75em;
  z-index: 2;
}

/* ---------- Feature / split ---------- */
.feature-grid {
  display: grid;
  gap: clamp(0.85rem, 1.5vw, 1.15rem);
  /* Always 2×2 inside the split column — never 3+1 edge wrap */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
  align-content: start;
}

@media (max-width: 30em) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.feature-item {
  background: #fff;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 2vw, 1.35rem);
  min-width: 0;
  height: 100%;
  box-shadow: var(--shadow);
}

.feature-item .num {
  font-size: 0.75em;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.08em;
}

.feature-item h3 {
  margin: 0.5em 0 0.4em;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem);
  word-wrap: break-word;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.88em;
  line-height: 1.55;
}

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  width: 100%;
  min-width: 0;
}

.split > * {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 56em) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Edge / why section: text + cards balanced, never flush to viewport */
.split--edge {
  align-items: start;
}

@media (min-width: 56em) {
  .split--edge {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 3.5vw, 2.75rem);
  }
}

.split-media {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0.0625rem solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  min-width: 0;
}

.split-media img,
.split-media video,
.split-media .media-picture,
.split-media .media-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Testimonials / clients ---------- */
.quote-card {
  background: #fff;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.quote-mark {
  font-size: 2.5em;
  line-height: 1;
  color: var(--blue-mid);
  font-weight: 700;
}

.quote-card blockquote {
  color: var(--ink-2);
  font-size: 0.95em;
  flex: 1;
  margin: 0.5em 0 1.25em;
}

.quote-card footer {
  border-top: 0.0625rem solid var(--line-soft);
  padding-top: 1em;
  font-size: 0.85em;
}

.quote-card strong {
  display: block;
  color: var(--ink);
}

.quote-card span {
  color: var(--muted);
  font-size: 0.9em;
}

.client-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75em;
  width: 100%;
}

/* ---------- Client logo marquee (category-wise, seamless) ---------- */
.clients-section .section-header {
  margin-bottom: 1.75rem;
}

.logo-track-block {
  margin-bottom: 1.35rem;
}

.logo-track-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.logo-track-label span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.logo-track-label::after {
  content: "";
  flex: 1;
  height: 0.0625rem;
  background: var(--line);
}

.logo-marquee {
  overflow: hidden;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  /* Soft edge fade only — logos stay continuous underneath */
  mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
}

.logo-marquee-track {
  display: flex;
  width: max-content;
  align-items: stretch;
  /* -50% works because track is exactly two equal groups */
  animation: logo-marquee 38s linear infinite;
  will-change: transform;
}

.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}

/* Each group is one full sequence; groups sit flush (no extra padding between sets) */
.logo-marquee-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 0;
  padding: 0.9rem 0;
}

.logo-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 5.5rem;
  /* Equal spacing between logos — no empty dead zones */
  padding: 0 2.25rem;
  box-sizing: content-box;
}

.logo-item img {
  display: block;
  height: 3.75rem;
  width: auto;
  max-width: 16rem;
  object-fit: contain;
  object-position: center;
  filter: grayscale(1) contrast(1.08);
  opacity: 0.88;
  user-select: none;
  pointer-events: none;
}

.logo-item:hover img {
  opacity: 1;
  filter: grayscale(1) contrast(1.15);
}

@keyframes logo-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 40em) {
  .logo-item {
    height: 4.5rem;
    padding: 0 1.65rem;
  }
  .logo-item img {
    height: 3rem;
    max-width: 12rem;
  }
  .logo-marquee-track {
    animation-duration: 28s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
  .logo-marquee-group {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 0.75rem;
  }
  .logo-marquee-group[aria-hidden="true"] {
    display: none;
  }
  .logo-item {
    padding: 0.45rem 0.85rem;
  }
}

/* ---------- Hero product highlight (Vastu orange) ---------- */
.hero-product-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 0.0625rem solid rgba(194, 65, 12, 0.35);
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.96), rgba(255, 247, 237, 0.94) 45%, rgba(255, 255, 255, 0.95));
  box-shadow: 0 0.5rem 1.5rem rgba(154, 52, 18, 0.1);
  color: inherit;
  text-decoration: none;
  max-width: 34rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.hero-product-card:hover {
  transform: translateY(-0.12rem);
  box-shadow: 0 0.75rem 2rem rgba(154, 52, 18, 0.16);
  border-color: #c2410c;
  color: inherit;
}

.hero-product-icon {
  grid-row: 1 / span 2;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, #fb923c 0%, #c2410c 55%, #9a3412 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0.35rem 0.85rem rgba(154, 52, 18, 0.28);
  flex-shrink: 0;
}

.hero-product-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
}

.hero-product-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c2410c;
  margin-bottom: 0.2rem;
}

.hero-product-title {
  display: block;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.3;
}

.hero-product-desc {
  grid-column: 2;
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 0.2rem;
}

.hero-product-cta {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-top: 0.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #9a3412;
}

.hero-product-card:hover .hero-product-cta {
  color: #c2410c;
}

.hero-product-cta svg {
  width: 1em;
  height: 1em;
}

/* ---------- Mobile Apps product showcase (Vastu, etc.) ---------- */
.product-showcase {
  background: var(--bg-alt);
}

.product-hero {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 0.0625rem solid transparent;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

@media (min-width: 48em) {
  .product-hero {
    grid-template-columns: minmax(10rem, 0.85fr) minmax(0, 1.5fr);
  }
}

.product-hero--orange {
  border-color: rgba(194, 65, 12, 0.28);
  background:
    radial-gradient(ellipse 80% 90% at 0% 50%, rgba(251, 146, 60, 0.22), transparent 55%),
    linear-gradient(135deg, #fff7ed 0%, #ffedd5 42%, #ffffff 100%);
}

.product-hero__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  border-radius: calc(var(--radius-lg) - 0.25rem);
  background: linear-gradient(145deg, #fb923c 0%, #ea580c 40%, #c2410c 70%, #9a3412 100%);
  box-shadow: inset 0 0 0 0.0625rem rgba(255, 255, 255, 0.12);
}

.product-hero__icon-wrap {
  width: min(100%, 10rem);
  aspect-ratio: 1;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.28);
  background: #fff;
}

.product-hero__icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-hero__body {
  min-width: 0;
}

.product-hero__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c2410c;
}

.product-hero__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  line-height: 1.25;
  color: var(--ink);
}

.product-hero__tagline {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 40rem;
}

.product-hero__list {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.product-hero__list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.45;
}

.product-hero__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #fb923c, #c2410c);
  box-shadow: 0 0 0 0.2rem rgba(251, 146, 60, 0.25);
}

.product-hero__actions {
  margin-top: 0.25rem;
  align-items: center;
}

.product-hero__actions .play-badge {
  max-width: min(100%, 11.5rem);
}

.product-hero--orange .product-hero__btn {
  background: #c2410c;
  border-color: #c2410c;
  color: #fff;
}

.product-hero--orange .product-hero__btn:hover {
  background: #9a3412;
  border-color: #9a3412;
  color: #fff;
}

.love-from-pune {
  color: #dc2626;
  font-style: normal;
  font-weight: 700;
  display: inline-block;
  margin: 0 0.15em;
  line-height: 1;
  font-size: 1.05em;
}

/* Screen-reader only (used for “love” between heart and Pune) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Floating Book a Call ---------- */
.fab-book-call {
  position: fixed;
  z-index: 90;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.85em 1.15em;
  border-radius: 999px;
  background: var(--blue);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 0.65rem 1.75rem rgba(0, 136, 204, 0.4);
  border: 0.0625rem solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.fab-book-call:hover {
  background: var(--blue-dark);
  color: #fff !important;
  transform: translateY(-0.1rem);
  box-shadow: 0 0.85rem 2rem rgba(0, 136, 204, 0.5);
}

.fab-book-call__icon {
  display: inline-flex;
  line-height: 0;
}

.fab-book-call__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

@media (max-width: 40em) {
  .fab-book-call {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 22rem;
    justify-content: center;
  }
  .fab-book-call:hover {
    transform: translateX(-50%) translateY(-0.1rem);
  }
}

body.cal-overlay-open .fab-book-call {
  opacity: 0;
  pointer-events: none;
}

/* Leave room so FAB doesn't cover footer content on mobile */
body:not(.lite-page) {
  padding-bottom: 5rem;
}

@media (min-width: 40.01em) {
  body:not(.lite-page) {
    padding-bottom: 0;
  }
}

/* ---------- Cal.com custom overlay (close control always visible) ---------- */
.cal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cal-overlay[hidden] {
  display: none !important;
}

.cal-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(0.25rem);
}

.cal-overlay__sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 48rem;
  height: min(92svh, 52rem);
  background: #fff;
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 -0.5rem 2.5rem rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

@media (min-width: 48em) {
  .cal-overlay {
    align-items: center;
    padding: 1.25rem;
  }
  .cal-overlay__sheet {
    border-radius: 1rem;
    height: min(86svh, 48rem);
  }
}

.cal-overlay__bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 0.0625rem solid var(--line);
  background: #fff;
}

.cal-overlay__bar strong {
  font-size: 1rem;
  color: var(--ink);
}

.cal-overlay__close {
  width: 2.5rem;
  height: 2.5rem;
  border: 0.0625rem solid var(--line);
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.cal-overlay__close:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.cal-overlay__close svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.cal-overlay__body {
  flex: 1 1 auto;
  min-height: 0;
  background: #fff;
}

.cal-overlay__body iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

body.cal-overlay-open {
  overflow: hidden;
  padding-bottom: 0;
}

.client-chip {
  background: #fff;
  border: 0.0625rem solid var(--line);
  border-radius: 0.65em;
  padding: 0.9em 1.4em;
  font-weight: 600;
  font-size: 0.9em;
  color: var(--ink-2);
  box-shadow: var(--shadow);
  flex: 1 1 calc(33.333% - 0.75em);
  min-width: min(100%, 9rem);
  max-width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.subbrand-card {
  background: #fff;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  transition: border-color 0.2s, box-shadow 0.2s;
  height: 100%;
  display: block;
  width: 100%;
}

.subbrand-card:hover {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow);
}

.subbrand-card h3 {
  color: var(--blue-dark);
}

/* ---------- CTA ---------- */
.cta-section {
  padding-block: var(--space-section);
  width: 100%;
}

.cta-box {
  background: linear-gradient(135deg, var(--blue-soft) 0%, #fff 50%, var(--bg-alt) 100%);
  border: 0.0625rem solid var(--line);
  border-radius: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  text-align: center;
  box-shadow: var(--shadow);
  width: 100%;
}

.cta-box h2 {
  max-width: 22em;
  margin-inline: auto;
}

.cta-box > p {
  max-width: 36em;
  margin: 1em auto 0;
  color: var(--muted);
}

.cta-box .btn-row {
  justify-content: center;
}

/* ---------- Page hero with media ---------- */
.page-hero {
  position: relative;
  width: 100%;
  padding-block: clamp(3rem, 7vw, 4.5rem);
  background: linear-gradient(180deg, var(--blue-soft) 0%, #fff 100%);
  border-bottom: 0.0625rem solid var(--line-soft);
  overflow: hidden;
}

.page-hero > .container {
  position: relative;
  z-index: 2;
}

.page-hero.with-media {
  min-height: clamp(20rem, 48vw, 36rem);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--ink);
  color: #fff;
  border-bottom: none;
  width: 100%;
}

.page-hero.with-media h1,
.page-hero.with-media .lead {
  color: #fff;
}

.page-hero.with-media .eyebrow {
  color: var(--blue-mid);
}

.page-hero.with-media .lead {
  opacity: 0.92;
  max-width: 36em;
}

.page-hero.with-media .back-link {
  color: #cbd5e1;
}

/* Vastu hero: Play badge + How it works, Privacy as small link below */
.vastu-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1.75em;
}

.vastu-hero-actions__primary {
  margin-top: 0;
  align-items: center;
}

.page-hero.with-media .vastu-hero-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.page-hero.with-media .vastu-hero-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

/* Small privacy control under Play badge — stays readable on dark hero */
.vastu-privacy-link {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.35em 0.15em;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  border: 0;
  background: transparent;
  border-radius: 0.25em;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.vastu-privacy-link:hover,
.vastu-privacy-link:focus-visible {
  color: #fff;
  opacity: 1;
  background: transparent;
  text-decoration-thickness: 0.12em;
}

/* Privacy link on light sections (not white-on-white) */
.vastu-privacy-link--on-light {
  color: var(--blue-dark);
  font-size: 0.88rem;
  padding: 0.4em 0.2em;
}

.vastu-privacy-link--on-light:hover,
.vastu-privacy-link--on-light:focus-visible {
  color: var(--blue);
  background: transparent;
}

/* ---------- Info / service layouts ---------- */
.info-card {
  background: #fff;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 2rem);
  height: 100%;
  box-shadow: var(--shadow);
  width: 100%;
}

.info-card .icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75em;
  background: var(--blue-soft);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25em;
  font-weight: 700;
  margin-bottom: 1em;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
  margin-bottom: 2.5em;
  width: 100%;
}

.filter-btn {
  border: 0.0625rem solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85em;
  padding: 0.5em 1em;
  border-radius: 999em;
  cursor: pointer;
  transition: 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.service-layout {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  width: 100%;
  align-items: start;
}

@media (min-width: 58em) {
  .service-layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 0.95fr);
  }
}

.sidebar-card {
  background: #fff;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.6rem);
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  width: 100%;
}

.check-list li {
  display: flex;
  gap: 0.65em;
  padding: 0.5em 0;
  color: var(--ink-2);
  font-size: 0.95em;
}

.check-list li::before {
  content: "✓";
  color: var(--blue-dark);
  font-weight: 700;
  flex-shrink: 0;
}

.chip-list {
  display: grid;
  gap: 0.6em;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.chip {
  background: var(--bg-alt);
  border: 0.0625rem solid var(--line);
  border-radius: 0.65em;
  padding: 0.85em 1em;
  font-size: 0.88em;
  color: var(--ink-2);
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.85rem);
  box-shadow: var(--shadow);
  width: 100%;
  position: relative;
}

.form-card-title {
  font-size: 1.25rem;
  margin: 0 0 1.15rem;
  padding: 0;
  color: var(--ink);
  text-align: left;
  line-height: 1.3;
  width: 100%;
}

.form-grid {
  display: grid;
  gap: 1em;
  width: 100%;
}

@media (min-width: 36em) {
  .form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-group label {
  display: block;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 0.4em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 0.0625rem solid var(--line);
  border-radius: 0.65em;
  padding: 0.75em 0.9em;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 0.2em rgba(0, 170, 255, 0.15);
}

.form-group textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.form-error {
  color: #dc2626;
  font-size: 0.8em;
  margin-top: 0.3em;
}

.form-success {
  text-align: center;
  padding: 2em 1em;
}

.form-success h3 {
  margin: 1em 0 0.5em;
}

.alert {
  padding: 0.9em 1em;
  border-radius: 0.65em;
  margin-bottom: 1em;
  font-size: 0.9em;
}

.alert-success {
  background: #ecfdf5;
  border: 0.0625rem solid #a7f3d0;
  color: #065f46;
}

.alert-error {
  background: #fef2f2;
  border: 0.0625rem solid #fecaca;
  color: #991b1b;
}

.contact-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  width: 100%;
}

@media (min-width: 56em) {
  .contact-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    align-items: start;
  }
}

.contact-info-item {
  display: flex;
  gap: 1em;
  padding: 1em 0;
  border-bottom: 0.0625rem solid var(--line-soft);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.65em;
  background: var(--blue-soft);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.85em;
}

/* Cal.com inline embed panel */
.cal-panel,
.calendly-panel {
  background: #fff;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
  min-height: min(70svh, 44rem);
  position: relative;
}

.cal-inline-status {
  margin: 0;
  padding: 0.85rem 1.1rem;
  font-size: 0.9em;
  color: var(--muted);
  background: var(--bg-alt);
  border-bottom: 0.0625rem solid var(--line);
}

.cal-inline-status a {
  font-weight: 600;
}

.cal-panel #cal-inline,
.cal-inline-host,
.calendly-inline-widget {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: min(70svh, 44rem) !important;
}

/* Inline text-style booking link (insights etc.) */
a.cal-trigger-inline {
  background: none;
  border: none;
  color: var(--blue-dark);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-size: inherit;
  font-family: inherit;
  display: inline;
}

a.cal-trigger-inline:hover {
  color: var(--blue);
}

/* Ensure Cal.com modal sits above sticky header / mobile drawer */
cal-modal-box,
cal-dialog,
.cal-modal,
iframe[src*="cal.com"],
iframe[src*="app.cal.com"] {
  z-index: 10050 !important;
}

/* ---------- Article ---------- */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  align-items: center;
  font-size: 0.85em;
  color: var(--muted);
  margin-bottom: 1em;
}

.article-body {
  width: min(100%, 44rem);
  margin-inline: auto;
}

.article-body p {
  margin-bottom: 1.25em;
  font-size: 1.05em;
  color: var(--ink-2);
  line-height: 1.8;
}

/* Full-width legal / policy pages (match site container, not narrow article column) */
.legal-content {
  width: 100%;
  max-width: none;
}

.legal-content p {
  margin-bottom: 1.15em;
  font-size: 1.05em;
  color: var(--ink-2);
  line-height: 1.8;
  max-width: none;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin-top: 2em;
  margin-bottom: 0.75em;
  color: var(--ink);
}

.legal-content ul {
  margin: 0 0 1.25em;
  padding-left: 1.35em;
  color: var(--ink-2);
  line-height: 1.8;
  font-size: 1.05em;
}

.legal-content li {
  margin-bottom: 0.4em;
}

.legal-content a {
  color: var(--blue-dark);
  font-weight: 600;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.9em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.25em;
}

.back-link:hover {
  color: var(--blue-dark);
}

.map-box {
  border-radius: var(--radius-lg);
  border: 0.0625rem solid var(--line);
  overflow: hidden;
  min-height: clamp(14rem, 30vw, 20rem);
  width: 100%;
  background: var(--bg-soft) center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.map-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.84);
}

.map-box .map-inner {
  position: relative;
  z-index: 1;
  padding: 2em;
}

/* ---------- Band sections with photo bg ---------- */
.band {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.band > .container {
  position: relative;
  z-index: 2;
}

/* Prevent media/cards escaping padded content shell */
.band .split,
.band .feature-grid,
.section .cards-3,
.section .grid-2,
.section .grid-4 {
  max-width: 100%;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 0.0625rem solid var(--line);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  margin-top: 2em;
  width: 100%;
}

.footer-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: 2.5em;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--gutter);
  box-sizing: border-box;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  align-items: start;
}

@media (min-width: 72em) {
  .footer-grid {
    /* Brand + Navigate + Solutions + Products + Contact */
    grid-template-columns: minmax(0, 1.55fr) repeat(4, minmax(0, 1fr));
  }
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9em;
  margin-top: 1em;
  max-width: 22em;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-top: 1.25em;
  font-size: 0.75em;
  color: var(--muted);
}

.footer-badge img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  background: #fff;
  border: 0.0625rem solid var(--line);
  border-radius: 0.5em;
  padding: 0.25em;
}

/* Every footer column uses the same heading + list rhythm */
.footer-col {
  min-width: 0;
  text-align: left;
}

.site-footer h4,
.footer-col h4 {
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1em;
  padding: 0;
  color: var(--ink);
  text-align: left;
  line-height: 1.35;
}

.site-footer ul,
.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.site-footer ul li,
.footer-col ul li {
  margin: 0 0 0.5em;
  padding: 0;
  line-height: 1.45;
}

.site-footer ul a,
.footer-col ul a {
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 500;
  display: inline-block;
  line-height: 1.45;
}

.site-footer ul a:hover,
.footer-col ul a:hover {
  color: var(--blue-dark);
}

.footer-contact li {
  color: var(--muted);
  font-size: 0.9em;
  margin-bottom: 0.65em;
}

.footer-book {
  margin-top: 1rem;
  display: inline-flex;
}

.footer-subbrands {
  margin-top: 1.25em;
  font-size: 0.85em;
  color: var(--muted);
  line-height: 1.8;
  text-align: left;
}

/* Google Play install badge — user asset, no extra frame */
.play-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 0.45rem;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: transform 0.15s ease, opacity 0.15s ease, filter 0.15s ease;
  max-width: min(100%, 11.5rem);
}

.play-badge:hover {
  transform: translateY(-0.08rem);
  opacity: 0.96;
  filter: brightness(1.05);
  box-shadow: none;
}

.play-badge img {
  width: 100%;
  height: auto;
  display: block;
  border: 0;
  background: transparent;
  object-fit: contain;
  object-position: center;
}

.play-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.footer-bottom {
  border-top: 0.0625rem solid var(--line);
  padding-block: 1.25em;
  padding-inline: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5em;
  font-size: 0.8em;
  color: var(--muted-2);
  width: 100%;
  max-width: none;
  margin-inline: 0;
  box-sizing: border-box;
}

/* Industry / career / investor cards */
.page-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  width: 100%;
}

.page-grid > * {
  min-width: 0;
}

/* ---------- Utilities ---------- */
/*
 * Scroll reveal: never leave content blank if JS is slow/blocked.
 * Default is visible; animation only runs when .js-ready is set early by main.js.
 */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

html.js-ready .reveal:not(.visible) {
  opacity: 0;
  transform: translateY(1.1rem);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Hard failsafe: show all reveals after 1s even if observer never fires */
@keyframes reveal-failsafe {
  to {
    opacity: 1;
    transform: none;
  }
}
html.js-ready .reveal:not(.visible) {
  animation: reveal-failsafe 0.4s ease 1s forwards;
}

.grid-2 {
  display: grid;
  gap: clamp(1rem, 2vw, 1.35rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  width: 100%;
}

.grid-4 {
  display: grid;
  gap: clamp(1rem, 2vw, 1.35rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  width: 100%;
}

.related-links {
  display: grid;
  gap: 1em;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  width: 100%;
}

.related-links a {
  display: block;
  padding: 1em 1.15em;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95em;
  transition: 0.2s;
}

.related-links a:hover {
  border-color: var(--blue-mid);
  color: var(--blue-dark);
}

.related-links a span {
  display: block;
  font-weight: 400;
  font-size: 0.85em;
  color: var(--muted);
  margin-top: 0.25em;
}

.service-card[hidden] {
  display: none !important;
}

/* Prefer reduced motion: pause decorative video */
@media (prefers-reduced-motion: reduce) {
  .media-bg__video {
    display: none;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
