/* =========================================================
   LivFlo Clean — Service Landing Pages
   Brand: Deep Navy #142B4C, Sage/Olive accent, Montserrat
   ========================================================= */

:root, [data-theme="light"] {
  /* Type scale */
  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl:  clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6.5vw, 6.5rem);

  /* Spacing (4px) */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* LivFlo brand palette */
  --color-bg:               #FAF9F6;   /* warm off-white */
  --color-surface:          #FFFFFF;
  --color-surface-2:        #F4F2EC;   /* cream */
  --color-surface-offset:   #E9E5DB;   /* deeper cream */
  --color-divider:          #E5E1D6;
  --color-border:           #D4CFC2;

  --color-text:             #142B4C;   /* deep navy — body & headings */
  --color-text-muted:       #5A6B85;
  --color-text-faint:       #9AA3B3;
  --color-text-inverse:     #FAF9F6;

  --color-primary:          #142B4C;   /* deep navy */
  --color-primary-hover:    #0B1B33;
  --color-primary-active:   #050E1F;

  --color-accent:           #6B7A4A;   /* sage olive — uniform color */
  --color-accent-hover:     #56633A;
  --color-accent-soft:      #DDE2D0;   /* light sage tint */

  --color-gold:             #B89656;   /* warm gold for highlights */

  /* Radius */
  --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.875rem;
  --radius-xl: 1.25rem; --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(20, 43, 76, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 43, 76, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 43, 76, 0.12);

  /* Transitions */
  --t: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout widths */
  --w-narrow: 720px;
  --w-default: 1100px;
  --w-wide: 1320px;

  /* Fonts */
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-weight: 400;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-wrap: balance;
}

p, li { text-wrap: pretty; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t), opacity var(--t);
}
a:hover { opacity: 0.7; }

button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
}

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

::selection { background: var(--color-accent-soft); color: var(--color-text); }

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: var(--radius-sm); }

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

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

/* =========================================================
   Layout helpers
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 4vw, var(--space-12));
}

.container-narrow { max-width: var(--w-default); margin-inline: auto;
  padding-inline: clamp(var(--space-5), 4vw, var(--space-12));}

section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
section.tight { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-accent);
}

/* =========================================================
   Promo bar + Header
   ========================================================= */
.promo-bar {
  background: var(--color-text);
  color: var(--color-text-inverse);
  text-align: center;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  padding: var(--space-3) var(--space-4);
}
.promo-bar strong { font-weight: 600; color: #E2C68C; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.header.is-scrolled {
  border-bottom-color: var(--color-divider);
  background: rgba(250, 249, 246, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  color: var(--color-text);
  text-decoration: none;
  gap: 2px;
}
.brand:hover { opacity: 1; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  position: relative;
  line-height: 1;
  font-style: normal;
}
.brand-tm {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 500;
  vertical-align: super;
  margin-left: 1px;
  letter-spacing: 0;
  top: -0.4em;
}
.brand-sub {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-text);
  text-transform: none;
  line-height: 1;
  margin-top: 3px;
}
/* Footer brand sits on dark background — invert color */
.footer .brand,
.footer .brand .brand-sub { color: var(--color-text-inverse); }

.nav {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}
.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

@media (max-width: 880px) {
  .nav { display: none; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-pill);
  text-transform: none;
  transition: transform var(--t), background var(--t), color var(--t), box-shadow var(--t);
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); opacity: 1; }

.btn-primary {
  background: var(--color-text);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}
.btn-accent:hover { background: var(--color-accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
  padding: calc(0.95rem - 1px) calc(1.6rem - 1px);
}
.btn-ghost:hover {
  background: var(--color-text);
  color: var(--color-text-inverse);
}

.btn-on-dark {
  background: #FAF9F6;
  color: var(--color-text);
}
.btn-on-dark:hover { background: #fff; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-text);
  color: var(--color-text-inverse);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Services hub hero: keep team faces above the headline and body copy across viewports.
   The source image is portrait 1280x1920; as the viewport widens the visible Y range shifts,
   so we anchor the photo lower (smaller Y%) on narrow screens and higher (larger Y%) on wide screens. */
.hero--team .hero-image img {
  object-position: center 8%;
}
@media (min-width: 1100px) {
  .hero--team .hero-image img { object-position: center 14%; }
}
@media (min-width: 1400px) {
  .hero--team .hero-image img { object-position: center 28%; }
}
@media (min-width: 1700px) {
  .hero--team .hero-image img { object-position: center 42%; }
}
/* Window cleaning hero: portrait of team member with extension pole — keep her face visible to the right of the headline */
.hero--window .hero-image img {
  object-position: 75% 20%;
}
@media (min-width: 1100px) {
  .hero--window .hero-image img { object-position: 70% 25%; }
}
@media (min-width: 1500px) {
  .hero--window .hero-image img { object-position: 65% 35%; }
}
.hero-image::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(20, 43, 76, 0.20) 0%,
      rgba(20, 43, 76, 0.25) 45%,
      rgba(20, 43, 76, 0.85) 100%);
}

.hero-inner {
  width: 100%;
  padding-block: clamp(var(--space-20), 14vw, var(--space-32));
}

.hero h1 {
  color: var(--color-text-inverse);
  font-size: var(--text-hero);
  font-weight: 400;
  max-width: 16ch;
  margin-bottom: var(--space-6);
}

.hero h1 em {
  font-style: italic;
  color: #DBE0CC;
}

.hero-lede {
  font-size: var(--text-lg);
  color: rgba(250, 249, 246, 0.88);
  max-width: 56ch;
  margin-bottom: var(--space-8);
  font-weight: 400;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #DBE0CC;
  margin-bottom: var(--space-6);
  font-weight: 600;
}
.hero-eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: #DBE0CC;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-8);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(250, 249, 246, 0.18);
}
.hero-meta div { font-size: var(--text-sm); }
.hero-meta dt {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(250, 249, 246, 0.65);
  margin-bottom: var(--space-1);
  font-weight: 500;
}
.hero-meta dd { color: var(--color-text-inverse); font-weight: 500; }

/* =========================================================
   Section heads
   ========================================================= */
.section-head {
  max-width: 64ch;
  margin: 0 auto var(--space-12);
  text-align: center;
}
.section-head.left { text-align: left; margin-inline: 0; }

.section-head h2 {
  font-size: var(--text-2xl);
  font-weight: 400;
  margin-block: var(--space-4) var(--space-5);
}
.section-head h2 em {
  font-style: italic;
  color: var(--color-accent);
}
.section-head p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-inline: auto;
}
.section-head.left p { margin-inline: 0; }

/* =========================================================
   Service hub cards
   ========================================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--space-8);
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
  opacity: 1;
}
.service-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface-offset);
}
.service-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .service-card-image img { transform: scale(1.04); }

.service-card-body {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}
.service-card h3 {
  font-size: var(--text-xl);
  font-weight: 500;
}
.service-card p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}
.service-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}
.service-card-link svg {
  width: 14px; height: 14px;
  transition: transform var(--t);
}
.service-card:hover .service-card-link svg { transform: translateX(4px); }

/* =========================================================
   Feature row (icon list)
   ========================================================= */
.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-8);
}
.feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}
.feature-icon {
  width: 36px; height: 36px;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}
.feature h4 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0;
}
.feature p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* =========================================================
   Two-column / split layout
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split.reverse > :last-child  { order: 1; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child,
  .split.reverse > :last-child { order: initial; }
}

.split-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.split-content h2 {
  font-size: var(--text-2xl);
  font-weight: 400;
  margin-block: var(--space-3) var(--space-5);
}
.split-content h2 em { font-style: italic; color: var(--color-accent); }

.split-content > p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.split-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.split-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-base);
}
.split-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 5px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center,
      var(--color-accent) 0 35%,
      transparent 36% 100%),
    var(--color-accent-soft);
}

/* =========================================================
   Pricing
   ========================================================= */
.pricing {
  background: var(--color-surface-2);
  position: relative;
}

/* Per-pane lead block (window cleaning) */
.per-pane {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  max-width: 760px;
  margin: var(--space-8) auto var(--space-4);
}
@media (min-width: 720px) {
  .per-pane { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}
.per-pane-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6);
  text-align: center;
}
.per-pane-card--featured {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}
.per-pane-card--featured p { color: rgba(250,249,246,0.85); }
.per-pane-label {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: var(--space-3);
  opacity: 0.85;
}
.per-pane-price {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}
.per-pane-price .currency {
  font-size: 0.55em;
  vertical-align: top;
  margin-right: 2px;
  font-weight: 500;
}
.per-pane-unit {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  margin-left: 8px;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.per-pane-card p {
  font-size: var(--text-sm);
  margin: 0 auto;
  max-width: 32ch;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-6);
  align-items: stretch;
}
@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.tier {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.tier:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.tier.featured {
  border-color: var(--color-text);
  background: var(--color-text);
  color: var(--color-text-inverse);
}
.tier.featured h3,
.tier.featured .tier-price,
.tier.featured .tier-list li { color: var(--color-text-inverse); }
.tier.featured .tier-list li::before { background: #DBE0CC; }
.tier.featured .tier-tagline { color: rgba(250, 249, 246, 0.7); }

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-text-inverse);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
}

.tier h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
}
.tier.featured h3 { color: #DBE0CC; }

.tier-price {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.tier-price .currency {
  font-size: 0.55em;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-text-muted);
}
.tier-price .unit {
  font-size: 0.32em;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}
.tier.featured .tier-price .currency,
.tier.featured .tier-price .unit { color: rgba(250, 249, 246, 0.6); }

/* Included blocks (Reset + Signature breakdown above pricing tiles) */
.included-block {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.included-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-3);
  line-height: 1.2;
}
.included-tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-pill);
}
.included-lede {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin: 0;
}
.included-goal {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-3);
  margin-top: var(--space-2);
  line-height: 1.5;
}

.tier-subtitle {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-accent);
  letter-spacing: 0.01em;
  margin-top: calc(var(--space-2) * -1);
}
.tier.featured .tier-subtitle { color: #DBE0CC; }

.tier-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: var(--space-5);
}
.tier.featured .tier-tagline { border-bottom-color: rgba(250, 249, 246, 0.18); }

.tier-goal {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-4);
  margin-top: var(--space-2);
  line-height: 1.5;
}
.tier.featured .tier-goal {
  color: rgba(250, 249, 246, 0.78);
  border-top-color: rgba(250, 249, 246, 0.18);
}

.tier-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.tier-list li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
  align-items: flex-start;
}
.tier-list li::before {
  content: '';
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/70% no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/70% no-repeat;
}

.tier .btn { width: 100%; }

/* Recurring discount callout */
.recurring-callout {
  margin-top: var(--space-12);
  background: var(--color-accent-soft);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  align-items: center;
}
.recurring-callout h3 {
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-2);
}
.recurring-callout h3 em { font-style: italic; color: var(--color-accent-hover); }
.recurring-callout p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 56ch;
}
@media (max-width: 700px) {
  .recurring-callout { grid-template-columns: 1fr; }
}

/* =========================================================
   Before / After
   ========================================================= */
.before-after {
  background: var(--color-text);
  color: var(--color-text-inverse);
}
.before-after h2 { color: var(--color-text-inverse); }
.before-after .section-head p { color: rgba(250, 249, 246, 0.75); }
.before-after .eyebrow { color: #DBE0CC; }
.before-after .eyebrow::before { background: #DBE0CC; }

.ba-stack {
  display: grid;
  gap: var(--space-12);
}
.ba-figure {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.ba-figure img {
  width: 100%;
  display: block;
}
.ba-caption {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: rgba(250, 249, 246, 0.7);
  text-align: center;
}
.ba-caption strong { color: var(--color-text-inverse); font-weight: 600; }

/* =========================================================
   Testimonials
   ========================================================= */
.testimonials {
  background: var(--color-surface-2);
}
.t-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--space-6);
}
.t-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.t-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-gold);
}
.t-stars svg { width: 16px; height: 16px; fill: currentColor; }
.t-quote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--color-text);
}
.t-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-divider);
}
.t-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.t-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-list {
  max-width: var(--w-narrow);
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--color-divider);
}
.faq-item:first-child { border-top: 1px solid var(--color-divider); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  font-family: var(--font-body);
}
.faq-icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
  position: relative;
  transition: transform var(--t);
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--color-text);
}
.faq-icon::before { width: 100%; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 100%; transition: opacity var(--t); }
.faq-item[open] .faq-icon::after { opacity: 0; }
.faq-item[open] .faq-icon { transform: rotate(180deg); }

.faq-answer {
  padding-bottom: var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: 70ch;
}

/* =========================================================
   Meet the team
   ========================================================= */
.team-section {
  background: var(--color-bg);
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
}
.team-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
.team-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
}
.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-copy h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}
.team-copy h2 em {
  font-style: italic;
  color: var(--color-accent);
}
.team-copy p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.65;
  max-width: 52ch;
  margin-bottom: var(--space-4);
}
.team-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}
.team-stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1rem + 2vw, 2.5rem);
  line-height: 1;
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.team-stat-label {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1.3;
}
@media (max-width: 768px) {
  .team-split {
    grid-template-columns: 1fr;
  }
  .team-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }
  .team-stat-label {
    font-size: 0.6875rem;
  }
}

/* =========================================================
   Closing CTA
   ========================================================= */
.cta-final {
  background:
    linear-gradient(180deg, rgba(20,43,76,0.8), rgba(20,43,76,0.95)),
    var(--color-text);
  color: var(--color-text-inverse);
  text-align: center;
}
.cta-final h2 {
  color: var(--color-text-inverse);
  font-size: var(--text-2xl);
  font-weight: 400;
  max-width: 22ch;
  margin: 0 auto var(--space-5);
}
.cta-final h2 em { font-style: italic; color: #DBE0CC; }
.cta-final p {
  color: rgba(250, 249, 246, 0.75);
  max-width: 52ch;
  margin: 0 auto var(--space-8);
  font-size: var(--text-base);
}
.cta-final .hero-actions { justify-content: center; }
.cta-final .btn-ghost {
  border-color: rgba(250, 249, 246, 0.4);
  color: var(--color-text-inverse);
}
.cta-final .btn-ghost:hover {
  background: var(--color-text-inverse);
  color: var(--color-text);
  border-color: var(--color-text-inverse);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--color-surface-2);
  padding-block: clamp(var(--space-16), 6vw, var(--space-20));
  border-top: 1px solid var(--color-divider);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text);
}
.footer-tag {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  max-width: 36ch;
}
.footer-bottom {
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer-legal {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
}
.footer-legal a {
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.footer-legal a:hover,
.footer-legal a[aria-current="page"] {
  color: var(--color-text-inverse);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal-sep {
  color: var(--color-text-muted);
  opacity: 0.5;
  user-select: none;
}

/* =========================================================
   Legal pages (privacy, terms, service-terms)
   ========================================================= */
.legal-page {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  background: var(--color-bg);
}
.legal-container {
  max-width: 760px;
  margin: 0 auto;
}
.legal-header {
  text-align: center;
  padding-bottom: var(--space-8);
  margin-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-divider);
}
.legal-header .hero-eyebrow {
  color: var(--color-accent);
  display: inline-block;
  margin-bottom: var(--space-4);
}
.legal-header h1 {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
  color: var(--color-text);
}
.legal-meta {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
}
.legal-content {
  font-family: var(--font-sans, 'Montserrat', sans-serif);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.75;
}
.legal-content > p:first-child {
  font-size: 1.0625rem;
  color: var(--color-text);
}
.legal-content h2 {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: var(--space-10) 0 var(--space-4);
  color: var(--color-text);
}
.legal-content h3 {
  font-family: var(--font-sans, 'Montserrat', sans-serif);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: var(--space-6) 0 var(--space-3);
  color: var(--color-text);
}
.legal-content p {
  margin: 0 0 var(--space-4);
  color: var(--color-text);
}
.legal-content ul {
  margin: 0 0 var(--space-5);
  padding-left: 1.35rem;
}
.legal-content li {
  margin-bottom: var(--space-3);
  padding-left: 0.25rem;
}
.legal-content li::marker {
  color: var(--color-accent);
}
.legal-content strong {
  color: var(--color-text);
  font-weight: 600;
}
.legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.legal-content a:hover {
  color: var(--color-accent-hover);
}
.legal-footer-cta {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}
@media (max-width: 640px) {
  .legal-content { font-size: 0.95rem; line-height: 1.7; }
  .legal-footer-cta .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Home gallery — masonry-style mosaic
   ========================================================= */
.home-gallery {
  background: var(--color-surface-2);
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
}
.home-gallery .section-head {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto var(--space-12);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: var(--space-4);
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-surface-offset);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery-item:hover img {
  transform: scale(1.04);
}
.gallery-item-tall {
  grid-row: span 2;
  grid-column: span 2;
}
.gallery-item-wide {
  grid-column: span 2;
}
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .gallery-item-tall { grid-column: span 2; grid-row: span 1; }
  .gallery-item-wide { grid-column: span 2; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-auto-rows: 220px; }
}

/* =========================================================
   Mobile-only adjustments
   ========================================================= */
@media (max-width: 600px) {
  .hero { min-height: 82vh; }
  .hero-meta { gap: var(--space-5); }
  .hero h1 { max-width: 18ch; }
  .hero--team .hero-image img { object-position: center 12%; }
  .hero--window .hero-image img { object-position: 75% 18%; }
  .hero-inner { padding-block: var(--space-12) var(--space-12); }
}

/* ============================================================
   Careers page
   ============================================================ */

.section {
  padding-block: var(--space-12);
}
.section-light {
  background: var(--color-surface);
}
.section-lede {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  max-width: 56ch;
  margin-inline: auto;
  line-height: 1.6;
}
.section-head.left .section-lede { margin-inline: 0; }

/* Why LivFlo grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.why-card {
  padding: var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
}
.section-light .why-card {
  background: var(--color-bg);
}
.why-num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.08em;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  margin: 0;
  line-height: 1.2;
}
.why-card p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 720px) {
  .why-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* Roles */
.role-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-8);
}
.role-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.section-light .role-card { background: var(--color-bg); }
.role-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
}
.role-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text);
  margin: 0;
  line-height: 1.15;
}
.role-tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-pill);
}
.role-card > p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}
.role-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-4);
}
.role-bullets li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  padding-left: var(--space-4);
  position: relative;
}
.role-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 1px;
  background: var(--color-accent);
}

/* Apply form */
.apply-form {
  margin-top: var(--space-8);
  padding: var(--space-7);
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}
.section-light .apply-form { background: var(--color-bg); }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-field-full { grid-column: 1 / -1; }

.form-field label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.01em;
}
.form-field .req {
  color: var(--color-accent);
  font-weight: 600;
}
.form-hint {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-weight: 400;
}
.form-field textarea {
  resize: vertical;
  min-height: 6rem;
  line-height: 1.55;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(107, 122, 74, 0.15);
}
.form-field input[type="file"] {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: 0.7rem 0;
}
.form-field input[type="file"]::file-selector-button {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-bg);
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.55rem 1rem;
  margin-right: 0.85rem;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.form-field input[type="file"]::file-selector-button:hover {
  filter: brightness(1.08);
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}
.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.radio-pill:hover { border-color: var(--color-accent); }
.radio-pill input[type="radio"] {
  accent-color: var(--color-accent);
  margin: 0;
}
.radio-pill:has(input:checked) {
  border-color: var(--color-accent);
  background: rgba(107, 122, 74, 0.08);
}

.form-submit {
  margin-top: var(--space-6);
  width: 100%;
  justify-content: center;
}
.form-footnote {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .apply-form { padding: var(--space-5); }
  .role-header { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
}
