/* FDR Home minimalista v4 — Issue #102.
   Page-scoped. Reuses the existing booking flow and official FDR design tokens. */

.fdr-home-v3.fdr-home-v4 {
  background: var(--fdr-paper);
}

.fdr-home-v3.fdr-home-v4 .fdr-home-v3-hero {
  min-height: min(620px, 72vh);
}

.fdr-home-v3.fdr-home-v4 .fdr-home-v3-hero-inner {
  padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(5rem, 9vw, 7.5rem);
}

.fdr-home-v3.fdr-home-v4 .fdr-home-v3-hero-copy {
  max-width: 640px;
}

.fdr-home-v3.fdr-home-v4 .fdr-home-v3-copy {
  max-width: 50ch;
}

.fdr-home-v4-quick-wrap {
  position: relative;
  z-index: 5;
  margin-top: -2.75rem;
}

.fdr-home-v4-quick {
  padding: 1.25rem;
  border: 1px solid var(--fdr-line);
  border-radius: 1.5rem;
  background: var(--fdr-paper);
  box-shadow: var(--fdr-shadow);
}

.fdr-home-v4-quick-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: .2rem .25rem;
}

.fdr-home-v4-quick-head h2 {
  margin: 0;
  color: var(--fdr-navy);
  font: inherit;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.025em;
}

.fdr-home-v4-quick-head p {
  margin: .45rem 0 0;
  color: var(--fdr-muted);
  font-size: .82rem;
  line-height: 1.5;
}

.fdr-home-v4-quick-kicker {
  margin: 0 0 .4rem !important;
  color: var(--fdr-teal-dark) !important;
  font-size: .66rem !important;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.fdr-home-v4-booking-form {
  display: grid;
  grid-template-columns: 1.25fr 1.05fr .9fr .95fr auto;
  gap: .7rem;
  align-items: end;
}

.fdr-home-v4-field {
  display: grid;
  gap: .42rem;
  min-width: 0;
}

.fdr-home-v4-field label,
.fdr-home-v4-field-label {
  color: var(--fdr-navy);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.fdr-home-v4-field select,
.fdr-home-v4-field input,
.fdr-home-v4-location {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--fdr-line);
  border-radius: .9rem;
  background: #fff;
  color: var(--fdr-ink);
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
}

.fdr-home-v4-field select,
.fdr-home-v4-field input {
  padding: .72rem .8rem;
  outline: none;
}

.fdr-home-v4-field select:focus-visible,
.fdr-home-v4-field input:focus-visible,
.fdr-home-v4-booking-submit:focus-visible,
.fdr-home-v4-route:focus-visible {
  outline: 3px solid rgba(79,119,120,.26);
  outline-offset: 3px;
}

.fdr-home-v4-location {
  display: flex;
  align-items: center;
  padding: .72rem .8rem;
}

.fdr-home-v4-booking-submit {
  min-height: 50px;
  border: 0;
  border-radius: .9rem;
  padding: .72rem 1.1rem;
  background: var(--fdr-teal-dark);
  color: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.fdr-home-v4-booking-submit:hover {
  filter: brightness(.97);
}

.fdr-home-v4-booking-note {
  margin: .85rem .25rem 0;
  color: var(--fdr-muted);
  font-size: .7rem;
  line-height: 1.5;
}

.fdr-home-v4-booking-off {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: .85rem 1rem;
  border-radius: 1rem;
  background: var(--fdr-ivory);
}

.fdr-home-v4-booking-off p {
  margin: 0;
  color: var(--fdr-muted);
  font-size: .84rem;
}

.fdr-home-v4-routes-section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.fdr-home-v4-routes-head {
  max-width: 680px;
  margin-bottom: 2rem;
}

.fdr-home-v4-routes-head h2 {
  margin: 0;
  color: var(--fdr-navy);
  font: inherit;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -.035em;
}

.fdr-home-v4-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.fdr-home-v4-route {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--fdr-line);
  border-radius: 1.35rem;
  background: #fff;
  color: var(--fdr-ink);
  box-shadow: var(--fdr-shadow-soft);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.fdr-home-v4-route:hover {
  transform: translateY(-2px);
  border-color: rgba(79,119,120,.35);
  box-shadow: var(--fdr-shadow);
}

.fdr-home-v4-route-index {
  margin: 0 0 .75rem;
  color: var(--fdr-teal-dark);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.fdr-home-v4-route h3 {
  margin: 0;
  color: var(--fdr-navy);
  font: inherit;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.025em;
}

.fdr-home-v4-route p {
  margin: .7rem 0 0;
  max-width: 34ch;
  color: var(--fdr-muted);
  font-size: .88rem;
  line-height: 1.55;
}

.fdr-home-v4-route-action {
  color: var(--fdr-teal-dark);
  font-size: .8rem;
  font-weight: 900;
}

.fdr-home-v4-education-wrap {
  padding: 0 0 clamp(4rem, 8vw, 6.5rem);
}

.fdr-home-v4-education {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 1.45rem 1.6rem;
  border: 1px solid var(--fdr-line);
  border-radius: 1.35rem;
  background: var(--fdr-ivory);
}

.fdr-home-v4-education h2 {
  margin: 0;
  color: var(--fdr-navy);
  font: inherit;
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  font-weight: 900;
  letter-spacing: -.025em;
}

.fdr-home-v4-education p {
  margin: .45rem 0 0;
  color: var(--fdr-muted);
  font-size: .82rem;
}

.fdr-home-v4-education-action {
  display: grid;
  justify-items: end;
  gap: .25rem;
  color: var(--fdr-muted);
}

.fdr-home-v4-education-action strong {
  font-size: .8rem;
  font-weight: 900;
}

.fdr-home-v4-education-action small {
  font-size: .68rem;
}

@media (max-width: 960px) {
  .fdr-home-v4-booking-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fdr-home-v4-booking-submit {
    width: 100%;
  }

  .fdr-home-v4-routes {
    grid-template-columns: 1fr;
  }

  .fdr-home-v4-route {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  /* #102: quick booking is the protagonist. Keep the hero editorial but let
     the booking card enter the first mobile journey instead of sitting a full
     screen below it. */
  .fdr-home-v3.fdr-home-v4 .fdr-home-v3-hero {
    min-height: min(27rem, calc(100svh - 6rem));
  }

  .fdr-home-v3.fdr-home-v4 .fdr-home-v3-hero-inner {
    padding: 2.6rem 0 3.55rem;
  }

  .fdr-home-v3.fdr-home-v4 .fdr-home-v3-title {
    max-width: 9ch;
    font-size: clamp(2.2rem, 11.5vw, 3.05rem);
    line-height: .96;
  }

  .fdr-home-v3.fdr-home-v4 .fdr-home-v3-copy {
    max-width: 29ch;
    margin-top: .8rem;
    font-size: .94rem;
    line-height: 1.48;
  }

  .fdr-home-v3.fdr-home-v4 .fdr-home-v3-actions {
    display: block;
    margin-top: .95rem;
  }

  .fdr-home-v3.fdr-home-v4 .fdr-home-v3-actions .fdr-home-v3-btn {
    width: auto;
    min-height: 46px;
  }

  .fdr-home-v4-quick-wrap {
    margin-top: -1.35rem;
  }

  .fdr-home-v4-quick {
    padding: .9rem;
    border-radius: 1.15rem;
  }

  .fdr-home-v4-quick-head {
    display: block;
    margin-bottom: .8rem;
    padding: 0;
  }

  .fdr-home-v4-quick-head h2 {
    font-size: 1.35rem;
  }

  .fdr-home-v4-quick-head p {
    font-size: .76rem;
  }

  .fdr-home-v4-booking-form {
    grid-template-columns: 1fr;
    gap: .65rem;
  }

  .fdr-home-v4-field select,
  .fdr-home-v4-field input,
  .fdr-home-v4-location,
  .fdr-home-v4-booking-submit {
    min-height: 50px;
  }

  .fdr-home-v4-booking-submit {
    font-size: .82rem;
  }

  .fdr-home-v4-routes-section {
    padding: 3rem 0 2.25rem;
  }

  .fdr-home-v4-routes-head {
    margin-bottom: 1.1rem;
  }

  .fdr-home-v4-routes-head h2 {
    font-size: clamp(1.7rem, 8.8vw, 2.15rem);
  }

  .fdr-home-v4-routes {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
    gap: .65rem;
    overflow: visible !important;
    padding: 0 !important;
  }

  .fdr-home-v4-route {
    min-height: 0;
    padding: 1.05rem;
    border-radius: 1.05rem;
    gap: .85rem;
  }

  .fdr-home-v4-route h3 {
    font-size: 1.4rem;
  }

  .fdr-home-v4-route p {
    margin-top: .42rem;
    font-size: .8rem;
    line-height: 1.48;
  }

  .fdr-home-v4-education-wrap {
    padding-bottom: 3rem;
  }

  .fdr-home-v4-education {
    grid-template-columns: 1fr;
    gap: .85rem;
    padding: 1.05rem;
    border-radius: 1.05rem;
  }

  .fdr-home-v4-education-action {
    justify-items: start;
  }
}

@media (max-width: 390px) {
  .fdr-home-v3.fdr-home-v4 .fdr-home-v3-hero {
    min-height: min(25.75rem, calc(100svh - 5.75rem));
  }

  .fdr-home-v3.fdr-home-v4 .fdr-home-v3-hero-inner {
    padding-top: 2.25rem;
    padding-bottom: 3.2rem;
  }

  .fdr-home-v4-quick {
    padding: .78rem;
  }

  .fdr-home-v4-route {
    padding: .95rem;
  }
}

@media (max-width: 360px) {
  .fdr-home-v3.fdr-home-v4 .fdr-home-v3-title {
    font-size: 2.35rem;
  }

  .fdr-home-v3.fdr-home-v4 .fdr-home-v3-copy {
    font-size: .9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fdr-home-v4-route {
    transition: none;
  }

  .fdr-home-v4-route:hover {
    transform: none;
  }
}
