/**
 * Fox Logic — 2026 layout layer.
 * Loaded after style.css (blocking, small). Keeps the Desert Teal palette
 * from style.css tokens and only changes layout, rhythm and components:
 * pill buttons, split hero with proof card, 4-column footer, city and
 * pricing grids, tighter section rhythm. No colour tokens are redefined.
 */

:root {
  --radius-btn: 999px;
  --radius-card: 20px;
  --section-pad-y: clamp(3.5rem, 7.5vw, 6rem);
  --hero-inner-h: clamp(520px, 58vh, 640px);
}

/* ---------- Buttons: pill shape, clearer hierarchy ---------- */
.btn {
  border-radius: var(--radius-btn);
  padding: 0.6rem 1.35rem;
  min-height: 2.75rem;
  gap: 0.5rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  min-height: 3.25rem;
}

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

.btn-primary {
  box-shadow: 0 6px 18px rgba(20, 184, 166, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---------- Header: calmer glass, tighter nav ---------- */
.site-header {
  background: linear-gradient(180deg, rgba(26, 23, 20, 0.55) 0%, rgba(26, 23, 20, 0) 100%);
}

.site-header.is-scrolled {
  background: rgba(26, 23, 20, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-list {
  gap: 0.25rem 1.5rem;
}

.nav-list a {
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.btn-nav-cta {
  padding: 0.55rem 1.15rem;
  min-height: 2.5rem;
  font-size: 0.9rem;
}

/* ---------- Section rhythm ---------- */
.section-v2 {
  padding: var(--section-pad-y) 0;
}

.section-title {
  font-size: clamp(1.85rem, 3.3vw, 2.55rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.section-lead {
  font-size: 1.08rem;
  line-height: 1.65;
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head--left {
  text-align: left;
  margin-inline: 0;
  max-width: 100%;
}

.section-head--left .eyebrow::before {
  margin-left: 0;
}

/* ---------- Homepage hero: split layout with proof card ---------- */
main#main-content .page-hero-full.page-hero-full--home.hero-v2 {
  min-height: clamp(600px, 88vh, 820px);
  height: auto;
}

.hero-v2 .page-hero-full__inner,
.page-hero-full.page-hero-full--home .hero-v2__inner {
  align-items: stretch;
  text-align: left;
  padding-top: calc(var(--header-stack) + clamp(1.5rem, 5vw, 3.5rem));
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hero-v2__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  width: 100%;
}

@media (min-width: 1000px) {
  .hero-v2__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  }
}

.hero-v2__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  padding: 0.4rem 0.9rem 0.4rem 0.55rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.14);
  border: 1px solid rgba(20, 184, 166, 0.35);
  color: #9cf5e8;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-v2__pin {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.22);
}

.hero-v2__title {
  margin: 0 0 1.15rem;
  max-width: 14em;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.06;
}

.hero-v2__accent {
  background: linear-gradient(90deg, #5eead4 0%, var(--color-accent) 60%, #2dd4bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-v2__intro {
  margin: 0 0 1.6rem;
  max-width: 34em;
}

.hero-v2__actions {
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}

.hero-v2__trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.hero-v2__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-v2__trust .fl-icon {
  width: 16px;
  height: 16px;
  color: #5eead4;
}

.proof-card {
  position: relative;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.9);
}

.proof-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 100% 0%, rgba(20, 184, 166, 0.22), transparent 60%);
  pointer-events: none;
}

.proof-card > * {
  position: relative;
}

.proof-card__rating {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
}

.proof-card__stars {
  display: inline-flex;
  gap: 2px;
  color: #fbbf24;
}

.proof-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0 0 1.1rem;
  padding: 0;
}

.proof-card__stat {
  padding: 0.85rem 0.75rem;
  border-radius: 14px;
  background: rgba(26, 23, 20, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.proof-card__stat dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 0.25rem;
}

.proof-card__stat dd {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.proof-card__logos {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0.9rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 1rem;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.proof-card__logos img {
  width: 100%;
  max-width: 110px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.72;
}

.proof-card__foot {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.66);
}

@media (max-width: 999px) {
  .hero-v2__title {
    max-width: 100%;
  }

  .hero-v2__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-v2__actions .btn {
    width: auto;
  }
}

@media (max-width: 560px) {
  .hero-v2__actions .btn {
    width: 100%;
  }

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

/* ---------- Cards: softer radius, hover lift ---------- */
.card,
.pricing-card,
.bento-card,
.service-hub-card,
.process-premium-card {
  border-radius: var(--radius-card);
}

.card--feature-stack {
  align-items: flex-start;
  text-align: left;
  padding: 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card--feature-stack:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(20, 184, 166, 0.35);
}

/* ---------- Why grid ---------- */
.why-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (min-width: 980px) {
  .why-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  }

  .why-grid .section-head {
    position: sticky;
    top: calc(var(--header-stack) + 1.5rem);
    margin-bottom: 0;
  }
}

.why-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

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

.why-card {
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(20, 184, 166, 0.35);
}

.why-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--color-accent-12);
  color: var(--color-accent-hover);
  margin-bottom: 1rem;
}

.why-card__icon .fl-icon {
  width: 24px;
  height: 24px;
}

.why-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.why-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

/* ---------- Cities ---------- */
.city-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

.city-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.6rem;
  border-radius: var(--radius-card);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.city-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(20, 184, 166, 0.4);
  color: inherit;
}

.city-card__icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--color-accent-12);
  color: var(--color-accent-hover);
}

.city-card__title {
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
  color: var(--color-primary);
}

.city-card__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  flex: 1;
}

.city-card__cta {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--color-accent-hover);
  font-size: 0.95rem;
}

.city-note {
  text-align: center;
  margin: 1.5rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------- Pricing teaser ---------- */
.price-teaser-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

.price-teaser {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.75rem;
  border-radius: var(--radius-card);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.price-teaser--featured {
  background: linear-gradient(160deg, var(--color-dark-1) 0%, var(--color-dark-3) 100%);
  color: var(--color-on-dark);
  border-color: rgba(20, 184, 166, 0.35);
  box-shadow: 0 24px 60px rgba(26, 23, 20, 0.22);
}

.price-teaser__badge {
  position: absolute;
  top: -0.7rem;
  left: 1.5rem;
  margin: 0;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-teaser__label {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--color-text-muted);
}

.price-teaser--featured .price-teaser__label {
  color: rgba(255, 255, 255, 0.66);
}

.price-teaser__amount {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.price-teaser--featured .price-teaser__amount {
  color: #fff;
}

.price-teaser__text {
  margin: 0.25rem 0 0.75rem;
  flex: 1;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.price-teaser--featured .price-teaser__text {
  color: rgba(255, 255, 255, 0.74);
}

.price-teaser--featured .text-link {
  color: #5eead4;
}

.pricing-price {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-accent-hover);
}

/* ---------- AI band ---------- */
.ai-band {
  background: linear-gradient(135deg, var(--color-dark-1) 0%, var(--color-dark-2) 100%);
  color: var(--color-on-dark);
  padding: clamp(2.75rem, 5vw, 4rem) 0;
}

.ai-band__inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .ai-band__inner {
    grid-template-columns: minmax(0, 1.5fr) auto;
  }
}

.ai-band .section-title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 0.5rem;
}

.ai-band .section-lead {
  font-size: 1rem;
  max-width: 44em;
}

.ai-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Bento grid: three columns variant ---------- */
@media (min-width: 900px) {
  .bento-grid--thirds .bento-card--third {
    grid-column: span 4;
  }
}

.bento-card {
  align-items: flex-start;
  text-align: left;
  padding: 1.5rem;
}

.bento-card-cta {
  margin-top: auto;
}

/* ---------- Footer v2 ---------- */
.site-footer--v2 {
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

@media (min-width: 800px) {
  .footer-grid--v2 {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

.footer-cities {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-cities a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.footer-cities a:hover {
  color: #5eead4;
}

.footer-cta {
  margin-top: 1.25rem;
  padding: 0.6rem 1.25rem;
  min-height: 2.6rem;
  font-size: 0.9rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: #fff;
}

/* ---------- Mobile action bar: three buttons ---------- */
@media (max-width: 768px) {
  .mobile-action-bar {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.8fr;
    gap: 0.5rem;
  }

  .mobile-action-bar__btn {
    justify-content: center;
  }

  .mobile-action-bar__btn .fl-icon {
    width: 18px;
    height: 18px;
  }
}

/* ---------- Inner hero: left-aligned, tighter ---------- */
.page-hero-full--inner .page-hero-full__inner {
  align-items: flex-start;
  text-align: left;
}

.page-hero-full--inner .page-hero-full__title,
.page-hero-full--inner .page-hero-full__intro {
  margin-left: 0;
  margin-right: 0;
}

.page-hero-full--inner .page-hero-full__actions {
  justify-content: flex-start;
}

.page-hero-full--inner .region-trust {
  justify-content: flex-start;
}

.page-hero-full--inner .page-hero-full__title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  max-width: 16em;
}

@media (max-width: 719px) {
  .page-hero-full--inner .page-hero-full__actions {
    align-items: stretch;
  }
}

/* ---------- Service page polish ---------- */
.service-quick-facts {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .service-quick-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Motion respect ---------- */
@media (prefers-reduced-motion: reduce) {
  .why-card:hover,
  .city-card:hover,
  .card--feature-stack:hover,
  .btn-primary:hover {
    transform: none;
  }
}
