/*--------------------------------------------------------------
  Hero — home hero layouts, trust badges, floating quote form
--------------------------------------------------------------*/

.hero {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(4rem, 10vw, 8rem);
  overflow: hidden;
  background: linear-gradient(135deg, #0E1B32 0%, #1a3a6b 100%);
  color: var(--color-white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 87, 34, 0.25), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 193, 7, 0.15), transparent 40%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  font-weight: 800;
}

.hero-content h1 .highlight {
  color: var(--color-accent);
  position: relative;
  display: inline-block;
}

.hero-content h1 .highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 8px;
  background: rgba(255, 193, 7, 0.25);
  z-index: -1;
  border-radius: 4px;
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  max-width: 540px;
  margin-bottom: var(--space-8);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  font-weight: 500;
  margin-bottom: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
  animation: blink 2s infinite;
}

@keyframes blink {
  50% { opacity: 0.5; }
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

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

.avatars {
  display: flex;
}

.avatars img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--color-secondary);
  margin-left: -12px;
  object-fit: cover;
}

.avatars img:first-child { margin-left: 0; }

.trust-text strong {
  display: block;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.125rem;
}

.trust-text .stars {
  color: var(--color-accent);
  font-size: 0.875rem;
  margin-bottom: 2px;
}

.trust-text small {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-xs);
}

.hero-visual {
  position: relative;
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.15), rgba(255, 193, 7, 0.15));
  box-shadow: var(--shadow-xl);
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  padding: var(--space-4);
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  color: var(--color-heading);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero-badge.badge-top {
  top: 24px;
  left: -24px;
  animation: floatY 4s ease-in-out infinite;
}

.hero-badge.badge-bottom {
  bottom: 24px;
  right: -24px;
  animation: floatY 4s ease-in-out infinite reverse;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-badge .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.hero-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-heading);
}

.hero-badge small {
  color: var(--color-muted);
  font-size: var(--fs-xs);
}

/* Quote form floating on hero */
.quick-quote {
  position: relative;
  z-index: 5;
  margin-top: -80px;
  padding: var(--space-8);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}

.quick-quote form {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: var(--space-4);
  align-items: end;
}

/* Page hero (subpage) */
.page-hero {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: linear-gradient(135deg, #0E1B32 0%, #1a3a6b 100%);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 30m-1 0a1 1 0 1 0 2 0a1 1 0 1 0-2 0' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.page-hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-4);
  position: relative;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-small);
  position: relative;
}

.breadcrumb a {
  color: var(--color-white);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.4);
}

/* --- Modern hero (index-2.html) ------------------------------------- */
.hero-modern {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--color-surface);
  color: var(--color-heading);
  position: relative;
  overflow: hidden;
}
.hero-modern::before { display: none; }
.hero-modern h1 {
  color: var(--color-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
}
.hero-modern .hero-content .lead { color: var(--color-text); }
.hero-modern .hero-eyebrow {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: none;
}
.hero-modern .trust-text strong,
.hero-modern .trust-text small { color: var(--color-heading); }
.hero-modern .avatars img { border-color: var(--color-surface); }
.hero-modern .hero-image {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

/* --- Cinematic hero (index-3.html) ----------------------------------- */
/* Deliberately avoids mask-image, backdrop-filter and pseudo-element orbs:
   they render inconsistently and previously hid the hero copy on Chromium. */
.cinematic-hero {
  min-height: 70vh;
  padding: 120px 0 100px;
  background: linear-gradient(160deg, #0A1730 0%, #0E1B32 45%, #142B4E 100%);
  color: #fff;
  text-align: center;
  position: relative;
}
.cinematic-hero__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.cinematic-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 28px;
}
.cinematic-hero__eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
}
.cinematic-hero__title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 24px;
}
.cinematic-hero__title .accent { color: var(--color-primary); }
.cinematic-hero__lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 36px;
}
.cinematic-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 36px;
}
.cinematic-hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}
.cinematic-hero__badges span i {
  color: var(--color-accent);
  margin-right: 6px;
}
.cinematic-hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  max-width: 900px;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

/* --- Page hero lead --------------------------------------------------- */
.page-hero-lead {
  max-width: 620px;
  margin: 0 auto var(--space-5);
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.65;
}

/*--------------------------------------------------------------
  Hero estimator — the home page calculator
  A working tool sits where most templates put a stock photo:
  pick a home size, drag the distance, read a real number.
--------------------------------------------------------------*/

/* A photograph behind the copy instead of a second decorative glow.
   The gradient carries enough opacity to keep AA contrast on the text. */
.hero--estimate {
  background:
    linear-gradient(115deg, rgba(14, 27, 50, 0.97) 0%, rgba(14, 27, 50, 0.88) 45%, rgba(26, 58, 107, 0.78) 100%),
    url('../../images/photos/hero-movers.webp') center / cover no-repeat;
}

.hero--estimate::before {
  background: none;
}

.hero--estimate .hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

.rating-score {
  color: var(--color-white);
  margin-left: 6px;
}

.hero-estimate {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-6);
}

.hero-estimate__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.hero-estimate__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.hero-estimate__kind {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-estimate__field {
  border: 0;
  padding: 0;
  margin: 0 0 var(--space-5);
}

.hero-estimate__field legend {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  padding: 0;
  margin-bottom: var(--space-3);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-heading);
}

.hero-estimate__distance {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
}

/* Home-size chips: radios styled as a segmented control. The input
   stays in the DOM and keeps its focus ring, so it remains keyboard
   and screen-reader operable. */
.hero-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.hero-chip {
  position: relative;
  display: block;
}

.hero-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.hero-chip span {
  display: block;
  padding: var(--space-3) var(--space-2);
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-heading);
  transition: border-color var(--t), background var(--t), color var(--t);
}

.hero-chip input:hover + span {
  border-color: var(--color-primary);
}

.hero-chip input:focus-visible + span {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.hero-chip input:checked + span {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.hero-range {
  width: 100%;
  height: 6px;
  margin: 0;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  accent-color: var(--color-primary);
  cursor: pointer;
}

.hero-range__scale {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--color-muted);
}

.hero-estimate__result {
  padding: var(--space-5);
  margin-bottom: var(--space-5);
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.hero-estimate__result > small {
  display: block;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 2px;
}

.hero-estimate__result strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  line-height: 1.15;
  color: var(--color-heading);
}

.hero-estimate__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: var(--space-4) 0 0;
  padding: var(--space-4) 0 0;
  list-style: none;
  border-top: 1px solid var(--color-border);
}

.hero-estimate__facts li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-small);
  color: var(--color-text);
}

.hero-estimate__facts i {
  color: var(--color-primary);
}

.hero-estimate__note {
  margin: var(--space-3) 0 0;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--color-muted);
  text-align: center;
}
