/* Infinity Digital — single theme: navy hero + primary blue (#4f8cff) + teal accent (#21c7a8) */
:root {
  --bg: #071226;
  --bg-soft: #0d1b33;
  --bg-mid: #0f2744;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.09);

  --primary: #4f8cff;
  --primary-dark: #2f6fe8;
  --primary-rgb: 79, 140, 255;
  --primary-soft: rgba(var(--primary-rgb), 0.14);
  --primary-faint: rgba(var(--primary-rgb), 0.09);
  --primary-border: rgba(47, 111, 232, 0.22);

  --accent: #21c7a8;
  --accent-rgb: 33, 199, 168;
  --accent-soft: rgba(var(--accent-rgb), 0.2);
  /* Same as .flow-item.accent — teal → blue */
  --accent-flow-gradient: linear-gradient(
    135deg,
    rgba(var(--accent-rgb), 0.9),
    rgba(var(--primary-rgb), 0.9)
  );

  /* Light page (below hero): always blue-tinted, never neutral gray */
  --page-1: #dce6f8;
  --page-2: #e8eef9;
  --page-3: #eef3fc;
  --band-alt: linear-gradient(180deg, #d2dff5 0%, #e2eaf8 55%, #eaf0fc 100%);

  /* Tiles / cards (primary-tinted, not neutral gray) */
  --surface-tile: linear-gradient(165deg, #c4d7f4 0%, #d9e6fa 45%, #e8f0fc 100%);
  --surface-tile-hover: linear-gradient(165deg, #b3cbf0 0%, #ccdff7 100%);
  --surface-tile-solid: #cfe0f6;

  --card-border: var(--primary-border);
  --line: rgba(255, 255, 255, 0.12);

  /* Text — cool slate to match UI */
  --text: #0a1628;
  --text-heading: #0a1628;
  --text-body: #3d4f6e;
  --text-muted: #51657f;
  --text-subtle: #647896;
  --text-light: #dbe7ff;
  --text-on-dark-muted: #b8c9e8;
  --muted: #8ea3c7;
  --white: #ffffff;

  --shadow: 0 20px 50px rgba(5, 15, 35, 0.25);
  --shadow-soft: 0 12px 36px rgba(15, 35, 65, 0.09);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.5);

  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--primary-rgb), 0.22), transparent 38%),
    radial-gradient(circle at 100% 18%, rgba(var(--accent-rgb), 0.12), transparent 35%),
    linear-gradient(180deg, #081327 0%, #0c1d3d 27%, var(--page-1) 27%, var(--page-2) 72%, var(--page-3) 100%);
  line-height: 1.6;
  padding-bottom: env(safe-area-inset-bottom);
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

/* iOS Safari: native <button> = white rounded rect — reset for custom styling */
button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  font: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  box-sizing: border-box;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7, 18, 38, 0.82);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

.nav {
  min-height: 78px;
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

/* Mobile menu toggle (hidden on desktop via @media below) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.menu-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-open .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
}

.brand strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand span {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
}

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--text-light);
  font-size: 0.95rem;
  min-width: 0;
}

.menu a:not(.btn) {
  color: var(--text-light);
  transition: color 0.2s ease;
}

.menu a:not(.btn):hover {
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  max-width: 100%;
  box-sizing: border-box;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-1px);
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 16px 30px rgba(var(--primary-rgb), 0.32);
}

.btn-primary:hover {
  box-shadow: 0 22px 36px rgba(var(--primary-rgb), 0.38);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-full {
  width: 100%;
}

/* Hero — avoid overflow:hidden clipping buttons/shadows on narrow viewports; body handles horizontal scroll */
.hero {
  position: relative;
  overflow: visible;
  padding: 72px 0 64px;
  color: #fff;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  min-width: 0;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.section-kicker,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.eyebrow {
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 5vw, 4.35rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 11ch;
}

@media (max-width: 820px) {
  .hero h1 {
    max-width: none;
  }

  /* Stack hero CTAs full-width — smaller shadow so iOS doesn’t clip against viewport */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 2px 0 8px;
    box-sizing: border-box;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
    justify-content: center;
    padding-left: 16px;
    padding-right: 16px;
    overflow-wrap: anywhere;
  }

  .hero-actions .btn-primary {
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.32);
  }

  .hero-actions .btn-secondary {
    box-shadow: none;
  }
}

.lead {
  margin: 0;
  max-width: 670px;
  font-size: 1.08rem;
  color: #d8e5ff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  width: 100%;
  max-width: 100%;
}

.trust-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-list li {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: #dbe7ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card {
  position: relative;
  min-width: 0;
}

.glass-card {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.08));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

/* One row on wide screens; no horizontal scroll — minmax(0,1fr) lets cells shrink */
.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(4px, 1.5vw, 12px);
  margin-bottom: 24px;
  width: 100%;
  max-width: 100%;
}

.flow-item {
  min-width: 0;
  width: 100%;
  padding: clamp(8px, 2vw, 14px) clamp(6px, 1.5vw, 12px);
  text-align: center;
  font-weight: 700;
  font-size: clamp(0.62rem, 0.5rem + 1.2vw, 1rem);
  line-height: 1.25;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  white-space: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.flow-item.accent {
  background: var(--accent-flow-gradient);
}

.flow-arrow {
  font-size: clamp(0.85rem, 0.75rem + 1vw, 1.35rem);
  line-height: 1;
  color: #cfe0ff;
  padding: 0 2px;
  user-select: none;
}

/* Stack vertically on very narrow viewports — no sideways scroll */
@media (max-width: 380px) {
  .flow {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
    justify-items: stretch;
    gap: 6px;
  }

  .flow-arrow {
    justify-self: center;
    transform: rotate(90deg);
    padding: 4px 0;
  }
}

.metrics {
  display: grid;
  gap: 14px;
}

.metric {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.metric strong {
  display: block;
  font-size: 1.12rem;
  margin-bottom: 5px;
  color: #fff;
}

.metric span {
  color: #d7e4ff;
  font-size: 0.95rem;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}

.glow-1 {
  top: 80px;
  left: -80px;
  width: 220px;
  height: 220px;
  background: rgba(var(--primary-rgb), 0.24);
}

.glow-2 {
  right: -80px;
  bottom: -20px;
  width: 260px;
  height: 260px;
  background: rgba(var(--accent-rgb), 0.2);
}

/* Sections — bands use same hue family as --primary */
.section {
  padding: 88px 0;
  color: var(--text);
}

/* Default alt strip: same dark band as solutions (overridden where needed) */
.section-alt {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-mid) 55%, #0f2744 100%);
  border-top: none;
  border-bottom: none;
}

.section-heading {
  margin-bottom: 32px;
  max-width: 760px;
}

.section-kicker {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0 0 12px;
  color: var(--text-heading);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Dark bands — same gradient as solutions (includes .section-alt CTA strip + contact) */
#demo,
#web-marketing,
#solutions,
#industries,
#process,
#faq,
#contact,
.section-alt {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-mid) 55%, #0f2744 100%);
}

/* Logos → demo (start dark) → … → contact: one continuous strip */
#demo,
#web-marketing {
  border-top: 1px solid var(--line);
  border-bottom: none;
}

/* Solutions → … → contact: one continuous strip; only top + bottom page edges */
#solutions {
  border-top: none;
  border-bottom: none;
}

#industries,
#process,
#faq {
  border-top: none;
  border-bottom: none;
}

#contact {
  border-top: none;
  border-bottom: 1px solid var(--line);
}

#demo .section-heading h2,
#web-marketing .section-heading h2,
#solutions .section-heading h2,
#industries .section-heading h2,
#process .section-heading h2,
#faq .section-heading h2 {
  color: #fff;
}

/* Explicit heading id — avoids any cascade/inheritance issues on dark band */
#demo-heading,
#web-marketing-heading {
  color: #fff;
}

#demo .section-heading p,
#web-marketing .section-heading p {
  color: rgba(255, 255, 255, 0.92);
}

/* Demo / web marketing section copy inherits dark from .section — normalize for dark strip */
section#demo.section-demo,
section#web-marketing.section-web-marketing {
  color: rgba(255, 255, 255, 0.92);
}

#solutions .section-heading p {
  color: var(--text-on-dark-muted);
}

/* Contact column copy on dark (form stays light tile) */
#contact .contact-grid > div > h2 {
  color: #fff;
}

#contact .contact-grid > div > p {
  color: var(--text-on-dark-muted);
}

/* Logo bar */
.logos {
  padding-top: 42px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--primary-faint);
  text-align: center;
}

.logo-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.logo-bar span {
  padding: 16px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: none;
  text-align: center;
  font-weight: 700;
  color: #fff;
}

/* Demo video slider — compact centered “window” */
.section-demo .section-heading,
.section-web-marketing .section-heading {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.demo-slider {
  max-width: min(100%, 480px);
  margin: 0 auto;
}

.demo-chat-note {
  max-width: 42rem;
  margin: 1.75rem auto 0;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  text-align: center;
}

.demo-chat-note code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
}

.demo-slider-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius);
  background: var(--surface-tile);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft), var(--shadow-inset);
}

.demo-slider-track {
  display: flex;
  /* width & slide flex-basis set in script from slide count */
  transition: transform 0.35s ease;
  will-change: transform;
  min-width: 0;
}

.demo-slide {
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 12px;
  min-width: 0;
}

.demo-slide-title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
}

/* Slide titles sit on dark gradient — must be light, not body text color */
#demo .demo-slide-title,
#web-marketing .demo-slide-title {
  color: rgba(255, 255, 255, 0.95);
}

#web-marketing .demo-slide {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.demo-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  background: #0f172a;
  overflow: hidden;
}

/* iOS Safari: flex + intrinsic video sizing — reserve space and letterbox */
.demo-video-wrap video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: var(--radius-sm);
  background: #0f172a;
  object-fit: contain;
}

.demo-video-fallback {
  margin: 0;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

#demo .demo-video-fallback {
  color: rgba(255, 255, 255, 0.88);
}

#demo .demo-video-fallback a {
  color: var(--accent);
}

.demo-video-fallback a {
  color: var(--primary-dark);
}

.demo-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

.demo-slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.demo-slider-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

.demo-slider-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.demo-slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.demo-slider-dot[aria-current="true"] {
  background: var(--primary);
  transform: scale(1.15);
}

.demo-slider-dot:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Website & marketing — Facebook post examples (from oc_facebook_posts_1.html) */
#web-marketing .fb-post-showcase {
  font-family: "DM Sans", Inter, sans-serif;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
}

#web-marketing .fb-post-showcase .card-content h3 {
  margin: 0;
}

/* Facebook post examples — scoped (generated from oc_facebook_posts_1.html) */
/* ── CARD BASE ── */
#web-marketing .fb-post-showcase .card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    /* 20% more height than 1:1 → height = 1.2×width → width/height = 5/6 */
    aspect-ratio: 5 / 6;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    cursor: default;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
#web-marketing .fb-post-showcase .card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
#web-marketing .fb-post-showcase .week-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 30px;
    z-index: 10;
  }
#web-marketing .fb-post-showcase .card-content {
    position: relative;
    z-index: 5;
    padding: 36px;
    padding-top: 52px;
  }
#web-marketing .fb-post-showcase .tag {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: block;
  }
#web-marketing .fb-post-showcase .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 14px;
  }
#web-marketing .fb-post-showcase .card-body {
    font-size: 0.88rem;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 22px;
    opacity: 0.9;
  }
#web-marketing .fb-post-showcase .tips-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
  }
#web-marketing .fb-post-showcase .tip-pill {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 6px 13px;
    border-radius: 20px;
    letter-spacing: 0.04em;
  }
#web-marketing .fb-post-showcase .cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
  }
#web-marketing .fb-post-showcase .cta:hover { opacity: 0.8; }
#web-marketing .fb-post-showcase .cta svg { width: 14px; height: 14px; }
#web-marketing .fb-post-showcase .hashtags {
    font-size: 0.72rem;
    margin-top: 14px;
    opacity: 0.6;
    font-weight: 400;
    letter-spacing: 0.02em;
  }
/* ── CARD 1 – Warm Terracotta / First-Time Buyer ── */
#web-marketing .fb-post-showcase .card-1 {
    background: linear-gradient(160deg, #c9622b 0%, #8b2e0a 40%, #3d1205 100%);
  }
#web-marketing .fb-post-showcase .card-1::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(255,180,100,0.25) 0%, transparent 60%),
                url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }
#web-marketing .fb-post-showcase .card-1 .week-badge { background: rgba(255,255,255,0.15); color: #ffd4a8; border: 1px solid rgba(255,255,255,0.2); }
#web-marketing .fb-post-showcase .card-1 .tag { color: #ffb87a; }
#web-marketing .fb-post-showcase .card-1 .card-title { color: #fff; }
#web-marketing .fb-post-showcase .card-1 .card-body { color: #ffdcc4; }
#web-marketing .fb-post-showcase .card-1 .tip-pill { background: rgba(255,255,255,0.12); color: #ffe5cc; border: 1px solid rgba(255,255,255,0.15); }
#web-marketing .fb-post-showcase .card-1 .cta { background: #ff8c42; color: #fff; }
#web-marketing .fb-post-showcase .card-1 .hashtags { color: #ffb87a; }
#web-marketing .fb-post-showcase .card-1 .deco-circle {
    position: absolute; top: -60px; right: -60px;
    width: 280px; height: 280px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 1;
  }
#web-marketing .fb-post-showcase .card-1 .deco-circle-2 {
    position: absolute; top: -30px; right: -30px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255,140,66,0.2);
    z-index: 1;
  }
/* ── CARD 2 – Deep Navy / Market Update ── */
#web-marketing .fb-post-showcase .card-2 {
    background: linear-gradient(145deg, #0f2747 0%, #0a1628 60%, #040d1a 100%);
  }
#web-marketing .fb-post-showcase .card-2::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(56,182,255,0.15) 0%, transparent 55%),
                radial-gradient(ellipse at 85% 15%, rgba(100,220,180,0.1) 0%, transparent 45%);
  }
#web-marketing .fb-post-showcase .card-2 .week-badge { background: rgba(56,182,255,0.15); color: #7dd4fc; border: 1px solid rgba(56,182,255,0.25); }
#web-marketing .fb-post-showcase .card-2 .tag { color: #38b6ff; }
#web-marketing .fb-post-showcase .card-2 .card-title { color: #e8f4ff; }
#web-marketing .fb-post-showcase .card-2 .card-body { color: #a8c8e8; }
#web-marketing .fb-post-showcase .card-2 .tip-pill { background: rgba(56,182,255,0.1); color: #a8d8f0; border: 1px solid rgba(56,182,255,0.2); }
#web-marketing .fb-post-showcase .card-2 .cta { background: #38b6ff; color: #fff; }
#web-marketing .fb-post-showcase .card-2 .hashtags { color: #4a8fb5; }
#web-marketing .fb-post-showcase .stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px;
  }
#web-marketing .fb-post-showcase .stat-box {
    background: rgba(56,182,255,0.08);
    border: 1px solid rgba(56,182,255,0.15);
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
  }
#web-marketing .fb-post-showcase .stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #38b6ff;
    display: block;
    font-weight: 700;
  }
#web-marketing .fb-post-showcase .stat-label {
    font-size: 0.65rem;
    color: #7aaccc;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
  }
#web-marketing .fb-post-showcase .card-2 .deco-grid {
    position: absolute; top: 0; right: 0;
    width: 200px; height: 200px;
    background-image: linear-gradient(rgba(56,182,255,0.06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(56,182,255,0.06) 1px, transparent 1px);
    background-size: 25px 25px;
    z-index: 1;
    mask-image: radial-gradient(ellipse at top right, black 30%, transparent 70%);
  }
/* ── CARD 3 – Sage Green / Neighborhood Guide ── */
#web-marketing .fb-post-showcase .card-3 {
    background: linear-gradient(155deg, #2d5a3d 0%, #1a3d28 50%, #0d2218 100%);
  }
#web-marketing .fb-post-showcase .card-3::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 10%, rgba(134,210,130,0.2) 0%, transparent 50%),
                url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2386d282' fill-opacity='0.04'%3E%3Cpath d='M20 20L0 0h40z'/%3E%3C/g%3E%3C/svg%3E");
  }
#web-marketing .fb-post-showcase .card-3 .week-badge { background: rgba(134,210,130,0.15); color: #a8e6a3; border: 1px solid rgba(134,210,130,0.25); }
#web-marketing .fb-post-showcase .card-3 .tag { color: #86d282; }
#web-marketing .fb-post-showcase .card-3 .card-title { color: #e8f5e8; }
#web-marketing .fb-post-showcase .card-3 .card-body { color: #b8d8b8; }
#web-marketing .fb-post-showcase .card-3 .cta { background: #5db85a; color: #fff; }
#web-marketing .fb-post-showcase .card-3 .hashtags { color: #5a9a57; }
#web-marketing .fb-post-showcase .neighborhood-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
  }
#web-marketing .fb-post-showcase .neighborhood-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(134,210,130,0.08);
    border: 1px solid rgba(134,210,130,0.12);
    border-radius: 8px;
  }
#web-marketing .fb-post-showcase .neighborhood-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: #c8eac5;
  }
#web-marketing .fb-post-showcase .neighborhood-price {
    font-size: 0.78rem;
    color: #86d282;
    font-weight: 600;
  }
#web-marketing .fb-post-showcase .neighborhood-vibe {
    font-size: 0.68rem;
    color: #7ab077;
    margin-top: 1px;
  }
#web-marketing .fb-post-showcase .card-3 .deco-leaf {
    position: absolute; top: 20px; right: 20px;
    font-size: 80px; opacity: 0.06; z-index: 1;
    transform: rotate(20deg);
    line-height: 1;
  }
/* ── CARD 4 – Cream & Gold / Mortgage Tips ── */
#web-marketing .fb-post-showcase .card-4 {
    background: linear-gradient(150deg, #2c2010 0%, #1a1408 55%, #0d0a04 100%);
  }
#web-marketing .fb-post-showcase .card-4::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 30%, rgba(212,175,55,0.2) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(180,120,20,0.15) 0%, transparent 45%);
  }
#web-marketing .fb-post-showcase .card-4 .week-badge { background: rgba(212,175,55,0.15); color: #f0d060; border: 1px solid rgba(212,175,55,0.25); }
#web-marketing .fb-post-showcase .card-4 .tag { color: #d4af37; }
#web-marketing .fb-post-showcase .card-4 .card-title { color: #faf5e4; }
#web-marketing .fb-post-showcase .card-4 .card-body { color: #d4c49a; }
#web-marketing .fb-post-showcase .card-4 .cta { background: #d4af37; color: #1a1408; }
#web-marketing .fb-post-showcase .card-4 .hashtags { color: #8a7030; }
#web-marketing .fb-post-showcase .steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
  }
#web-marketing .fb-post-showcase .steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.84rem;
    color: #d4c49a;
    line-height: 1.5;
  }
#web-marketing .fb-post-showcase .step-num {
    min-width: 26px; height: 26px;
    background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #d4af37;
    flex-shrink: 0;
    margin-top: 1px;
  }
#web-marketing .fb-post-showcase .card-4 .deco-ring {
    position: absolute; bottom: -80px; right: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(212,175,55,0.1);
    z-index: 1;
  }
#web-marketing .fb-post-showcase .card-4 .deco-ring-2 {
    position: absolute; bottom: -50px; right: -50px;
    width: 200px; height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(212,175,55,0.08);
    z-index: 1;
  }
@media (max-width: 540px) {
  #web-marketing .fb-post-showcase .card {
    aspect-ratio: auto;
    min-height: 576px;
  }
  #web-marketing .fb-post-showcase .card-title {
    font-size: 1.6rem;
  }
}

/* Cards */
.card-grid,
.industry-grid,
.faq-grid {
  display: grid;
  gap: 22px;
}

.card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.info-card,
.industry-card,
.faq-item,
.step,
.contact-form,
.cta-panel {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft), var(--shadow-inset);
}

/* Same tile treatment sitewide: --surface-tile (logo chips, solution cards, industry cards, etc.) */
.info-card,
.industry-card,
.faq-item,
.step,
.contact-form {
  background: var(--surface-tile);
}

.info-card {
  padding: 28px;
  border: 1px solid var(--card-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.info-card h3 {
  margin: 0 0 12px;
  color: var(--text-heading);
  font-size: 1.15rem;
  line-height: 1.25;
}

.info-card p {
  margin: 0;
  color: var(--text-body);
}

.info-card .info-card-link {
  margin-top: 14px;
}

.info-card .info-card-link a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-card .info-card-link a:hover {
  color: var(--primary);
}

#web-marketing .web-marketing-offer-actions {
  margin-top: 20px;
  margin-bottom: 8px;
  text-align: center;
}

#web-marketing .web-marketing-offer-actions .btn {
  display: inline-flex;
}

.info-card:hover {
  transform: translateY(-3px);
  background: var(--surface-tile-hover);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.11), var(--shadow-inset);
}

/* Industries */
.industry-grid {
  grid-template-columns: repeat(3, 1fr);
}

.industry-card {
  padding: 28px;
  border: 1px solid var(--card-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.industry-card:hover {
  transform: translateY(-3px);
  background: var(--surface-tile-hover);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.11), var(--shadow-inset);
}

.industry-card h3 {
  margin: 0 0 10px;
  color: var(--text-heading);
  font-size: 1.2rem;
}

.industry-card p {
  margin: 0;
  color: var(--text-body);
}

.pill {
  margin-bottom: 14px;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  padding: 30px 28px;
  border: 1px solid var(--card-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.step:hover {
  transform: translateY(-2px);
  background: var(--surface-tile-hover);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1), var(--shadow-inset);
}

.step span {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  margin-bottom: 18px;
}

.step h3 {
  margin: 0 0 10px;
  color: var(--text-heading);
  font-size: 1.15rem;
}

.step p {
  margin: 0;
  color: var(--text-body);
}

/* CTA */
.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px;
  border: 1px solid var(--card-border);
  background: var(--surface-tile);
  box-shadow: var(--shadow-soft), var(--shadow-inset);
}

.cta-panel > div:first-child {
  flex: 1 1 0;
  min-width: 0;
}

.cta-panel h2 {
  margin: 10px 0 12px;
  color: var(--text-heading);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.1;
}

.cta-panel p {
  margin: 0;
  color: var(--text-muted);
  max-width: 760px;
}

/* Keep CTA button label on one line when beside copy (wraps on narrow screens) */
.cta-panel > .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .cta-panel > .btn {
    white-space: normal;
    text-align: center;
    align-self: stretch;
  }
}

.cta-tagline {
  margin-top: 12px;
  color: var(--text-body);
  font-size: 0.98rem;
}

/* FAQ */
.faq-grid {
  grid-template-columns: repeat(2, 1fr);
}

.faq-item {
  padding: 26px;
  border: 1px solid var(--card-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  background: var(--surface-tile-hover);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1), var(--shadow-inset);
}

.faq-item h3 {
  margin: 0 0 10px;
  color: var(--text-heading);
  font-size: 1.08rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-body);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.contact-grid h2 {
  margin: 10px 0 12px;
  color: var(--text-heading);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.contact-grid p {
  color: var(--text-muted);
}

.contact-list {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}

.contact-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface-tile);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft), var(--shadow-inset);
}

.contact-list strong {
  color: var(--text-heading);
}

.contact-list span,
.contact-list a {
  color: var(--text-muted);
}

.contact-list a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.contact-list a:hover {
  color: var(--primary);
}

.contact-form {
  padding: 28px;
  border: 1px solid var(--card-border);
}

.contact-form label {
  display: block;
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--text-heading);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--primary-border);
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--primary-faint);
}

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

.form-note {
  margin: 14px 0 0;
  color: var(--text-subtle);
  font-size: 0.94rem;
}

/* Footer */
.site-footer {
  background: var(--bg);
  color: var(--text-light);
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-brand span {
  color: #8ea3c7;
}

.site-footer p {
  margin: 0;
  color: #9bb0d2;
  font-size: 0.94rem;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-panel > .btn {
    align-self: flex-start;
  }

  .card-grid,
  .industry-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .menu {
    display: none;
    order: 3;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 8px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
  }

  .site-header.is-open .menu {
    display: flex;
  }

  .menu a:not(.btn) {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .menu a:not(.btn):active {
    background: rgba(255, 255, 255, 0.06);
  }

  .menu .menu-cta {
    margin-top: 10px;
    justify-content: center;
    width: 100%;
    min-height: 48px;
  }

  .hero {
    padding-top: 52px;
    padding-bottom: 48px;
  }

  .section {
    padding: 68px 0;
  }

  .card-grid,
  .industry-grid,
  .faq-grid,
  .steps,
  .logo-bar {
    grid-template-columns: 1fr;
  }

  .contact-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .glass-card,
  .info-card,
  .industry-card,
  .faq-item,
  .step,
  .contact-form,
  .cta-panel {
    border-radius: 18px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  /* Zero out the outer safe-area padding so nav calc() below is the single source */
  .site-header {
    padding-top: 0;
  }

  .nav {
    /* Bake safe-area + breathing room directly into the nav padding.
       On Safari iPhone (env ≈ 59px): padding-top ≈ 75px → brand clears Dynamic Island.
       On Chrome Android (env = 0):   padding-top = 16px  → normal top spacing. */
    padding-top: calc(env(safe-area-inset-top) + 16px);
    padding-bottom: 16px;
    min-height: calc(84px + env(safe-area-inset-top));
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  /* Hero CTAs already full-width at ≤820px; keep other primary CTAs full-width on small phones */
  .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .trust-list {
    gap: 8px;
  }

  .trust-list li {
    width: 100%;
    text-align: center;
  }

  .glass-card,
  .contact-form,
  .cta-panel,
  .info-card,
  .industry-card,
  .faq-item,
  .step {
    padding: 22px;
  }
}