/**
 * Taxi Lille Connect — Components.
 * Buttons, hero, trust strip, services index, comfort, benefits,
 * destinations, booking steps, Google trust, FAQ, final CTA,
 * sticky mobile action bar.
 */

/* =========================================================
   Buttons
   ========================================================= */

.tlc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  font-family: var(--tlc-font-body);
  font-size: var(--tlc-text-button);
  font-weight: 600;
  letter-spacing: var(--tlc-tracking-wide);
  text-transform: uppercase;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--tlc-radius-sm);
  cursor: pointer;
  transition: background var(--tlc-transition), color var(--tlc-transition),
              border-color var(--tlc-transition), transform var(--tlc-transition);
}

.tlc-btn:active {
  transform: translateY(1px);
}

.tlc-btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

/* Primary — champagne fill, ink text */
.tlc-btn--primary {
  background: var(--tlc-color-gold);
  border-color: var(--tlc-color-gold);
  color: var(--tlc-color-ink);
}

.tlc-btn--primary:hover,
.tlc-btn--primary:focus-visible {
  background: #D4B172;
  border-color: #D4B172;
  color: var(--tlc-color-ink);
}

/* Ghost on dark surfaces */
.tlc-btn--ghost {
  background: transparent;
  border-color: rgba(246, 242, 234, 0.38);
  color: var(--tlc-color-ivory);
}

.tlc-btn--ghost:hover,
.tlc-btn--ghost:focus-visible {
  border-color: var(--tlc-color-ivory);
  color: var(--tlc-color-white);
  background: rgba(246, 242, 234, 0.06);
}

/* Ghost on light surfaces */
.tlc-btn--ghost-dark {
  background: transparent;
  border-color: rgba(11, 23, 38, 0.35);
  color: var(--tlc-color-text);
}

.tlc-btn--ghost-dark:hover,
.tlc-btn--ghost-dark:focus-visible {
  border-color: var(--tlc-color-navy);
  background: rgba(11, 23, 38, 0.04);
  color: var(--tlc-color-navy);
}

/* Slim text-like button */
.tlc-btn--line {
  padding: 0.6rem 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--tlc-color-gold-line);
  border-radius: 0;
  color: inherit;
}

.tlc-btn--line:hover {
  border-bottom-color: var(--tlc-color-gold);
  color: var(--tlc-color-gold-muted);
}

/* =========================================================
   Hero
   ========================================================= */

.tlc-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(94vh, 900px);
  padding: calc(var(--tlc-header-height) + var(--tlc-space-xl)) 0 var(--tlc-space-xl);
  background-color: var(--tlc-color-ink);
  color: var(--tlc-color-text-inverse);
  overflow: hidden;
}

.tlc-hero__media,
.tlc-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.tlc-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(5, 10, 16, 0.92) 0%, rgba(5, 10, 16, 0.72) 34%, rgba(5, 10, 16, 0.18) 66%, rgba(5, 10, 16, 0.42) 100%),
    linear-gradient(to top, rgba(5, 10, 16, 0.85), rgba(5, 10, 16, 0) 36%);
}

.tlc-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.tlc-hero__content {
  max-width: 620px;
}

.tlc-hero h1 {
  margin-bottom: var(--tlc-space-md);
  color: var(--tlc-color-ivory);
}

.tlc-hero__text {
  max-width: 520px;
  margin-bottom: var(--tlc-space-lg);
  font-size: var(--tlc-text-lead);
  color: var(--tlc-color-text-inverse-soft);
}

.tlc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tlc-space-sm);
  margin-bottom: var(--tlc-space-lg);
}

.tlc-hero__availability {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--tlc-text-small);
  color: var(--tlc-color-text-inverse-soft);
}

.tlc-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #3FA46A;
  box-shadow: 0 0 0 3px rgba(63, 164, 106, 0.22);
}

/* =========================================================
   Trust strip
   ========================================================= */

.tlc-trust {
  padding: 0;
  background: var(--tlc-color-navy);
  color: var(--tlc-color-text-inverse);
  border-top: 1px solid rgba(198, 161, 91, 0.18);
}

.tlc-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.tlc-trust__item {
  display: flex;
  gap: var(--tlc-space-sm);
  align-items: flex-start;
  padding: var(--tlc-space-lg) var(--tlc-space-md);
}

.tlc-trust__item + .tlc-trust__item {
  border-left: 1px solid var(--tlc-color-line-dark);
}

.tlc-trust__icon {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--tlc-color-gold);
  border: 1px solid var(--tlc-color-gold-line);
  border-radius: 50%;
}

.tlc-trust__icon svg {
  width: 17px;
  height: 17px;
}

.tlc-trust__item .tlc-trust__title {
  margin: 0 0 0.2rem;
  font-family: var(--tlc-font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--tlc-color-gold);
}

.tlc-trust__item p {
  margin: 0;
  font-size: var(--tlc-text-xs);
  color: var(--tlc-color-text-inverse-soft);
  line-height: 1.5;
}

/* =========================================================
   Section heading block (shared editorial intro)
   ========================================================= */

.tlc-section-head {
  max-width: 420px;
}

.tlc-section-head--center {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.tlc-section-head--center .tlc-heading-rule {
  margin-inline: auto;
}

.tlc-section-head p {
  color: var(--tlc-color-text-soft);
  font-size: var(--tlc-text-small);
  line-height: 1.7;
}

.tlc-surface-dark .tlc-section-head p,
.tlc-surface-navy .tlc-section-head p,
.tlc-surface-ink .tlc-section-head p {
  color: var(--tlc-color-text-inverse-soft);
}

/* =========================================================
   Services index
   ========================================================= */

.tlc-services__layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: var(--tlc-space-2xl);
  align-items: start;
}

.tlc-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--tlc-color-line-light);
  border-top: 1px solid var(--tlc-color-line-light);
}

.tlc-service {
  display: block;
  padding: 0;
  border-right: 1px solid var(--tlc-color-line-light);
  border-bottom: 1px solid var(--tlc-color-line-light);
  color: inherit;
  overflow: hidden;
  transition: background var(--tlc-transition);
}

/* Photograph sits flush at the top of the cell; the hairline grid still
   provides the structure, so the card needs no padding of its own. */
.tlc-service__img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform var(--tlc-transition-slow);
}

a.tlc-service:hover .tlc-service__img,
a.tlc-service:focus-visible .tlc-service__img {
  transform: scale(1.04);
}

.tlc-service__body {
  padding: var(--tlc-space-md);
}

a.tlc-service:hover,
a.tlc-service:focus-visible {
  background: rgba(198, 161, 91, 0.07);
}

.tlc-service h3 {
  margin: 0 0 0.35rem;
  font-family: var(--tlc-font-body);
  font-size: 0.98rem;
  font-weight: 600;
}

.tlc-service p {
  margin: 0;
  font-size: var(--tlc-text-xs);
  color: var(--tlc-color-text-soft);
  line-height: 1.55;
}

/* =========================================================
   Comfort / vehicle section
   ========================================================= */

.tlc-comfort__layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: var(--tlc-space-2xl);
  align-items: center;
}

.tlc-comfort__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tlc-space-md);
}

.tlc-figure {
  margin: 0;
}

.tlc-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--tlc-radius-sm);
}

.tlc-figure figcaption {
  padding-top: 0.7rem;
  font-size: var(--tlc-text-xs);
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--tlc-color-text-inverse-soft);
}

/* =========================================================
   Benefits band
   ========================================================= */

.tlc-benefits__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.tlc-benefit {
  padding: var(--tlc-space-md) var(--tlc-space-sm);
  text-align: center;
}

.tlc-benefit + .tlc-benefit {
  border-left: 1px solid var(--tlc-color-line-light);
}

.tlc-benefit__icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0.6rem;
  color: var(--tlc-color-gold-muted);
}

.tlc-benefit__icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.1;
}

.tlc-benefit .tlc-benefit__title {
  margin: 0 0 0.25rem;
  font-family: var(--tlc-font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--tlc-color-text);
}

.tlc-benefit p {
  margin: 0;
  font-size: var(--tlc-text-xs);
  color: var(--tlc-color-text-soft);
  line-height: 1.5;
}

/* =========================================================
   Destinations
   ========================================================= */

.tlc-destinations__head {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: var(--tlc-space-lg);
  align-items: end;
  margin-bottom: var(--tlc-space-lg);
}

.tlc-destinations__cta {
  justify-self: end;
}

.tlc-destinations__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--tlc-space-md);
}

.tlc-destination {
  position: relative;
  display: block;
  border-radius: var(--tlc-radius-sm);
  overflow: hidden;
  color: var(--tlc-color-ivory);
}

.tlc-destination img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform var(--tlc-transition-slow), filter var(--tlc-transition-slow);
}

.tlc-destination::after {
  content: "";
  position: absolute;
  inset: 0;
  /* The 3/4 card is only ~200px tall on a 360px phone, which puts the wordmark
     at ~65% of its height — above where the old 45% stop had already faded out,
     and straight over the lit station roof. */
  background: linear-gradient(to top,
              rgba(5, 10, 16, 0.9) 0%,
              rgba(5, 10, 16, 0.75) 22%,
              rgba(5, 10, 16, 0.05) 60%);
  transition: background var(--tlc-transition);
}

.tlc-destination:hover img,
.tlc-destination:focus-visible img {
  transform: scale(1.04);
}

.tlc-destination__label {
  position: absolute;
  z-index: 2;
  inset: auto 0 0 0;
  padding: var(--tlc-space-sm);
  font-family: var(--tlc-font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.tlc-destination__label small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--tlc-color-gold);
}

/* =========================================================
   Booking steps
   ========================================================= */

.tlc-steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--tlc-space-lg);
  margin-top: var(--tlc-space-xl);
}

.tlc-step {
  position: relative;
  text-align: center;
  padding-inline: var(--tlc-space-sm);
}

.tlc-step__num {
  display: block;
  margin-bottom: var(--tlc-space-sm);
  font-family: var(--tlc-font-display);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--tlc-color-gold-muted);
}

.tlc-step__num::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  margin: 0.9rem auto 0;
  background: var(--tlc-color-gold-line);
}

.tlc-step h3 {
  margin: 0 0 0.4rem;
  font-family: var(--tlc-font-body);
  font-size: 1rem;
  font-weight: 600;
}

.tlc-step p {
  margin: 0;
  font-size: var(--tlc-text-small);
  color: var(--tlc-color-text-soft);
}

/* Dotted connector between steps (desktop only) */
@media (min-width: 981px) {
  .tlc-step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 1.2rem;
    left: calc(50% + 3rem);
    width: calc(100% - 6rem);
    border-top: 1px dashed rgba(169, 134, 73, 0.4);
  }
}

/* =========================================================
   Google trust + FAQ row
   ========================================================= */

.tlc-feedback__layout {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) 7fr;
  gap: var(--tlc-space-lg);
  align-items: start;
}

/* Dark card inside a light section — same gold-role inversion as the asides. */
.tlc-review-card {
  padding: var(--tlc-space-xl) var(--tlc-space-lg);
  --tlc-color-focus: var(--tlc-color-gold);
  --tlc-color-gold-text: var(--tlc-color-gold);
  background: var(--tlc-color-midnight);
  color: var(--tlc-color-text-inverse);
  border-radius: var(--tlc-radius-md);
  box-shadow: var(--tlc-shadow-soft);
}

.tlc-review-card h2 {
  color: var(--tlc-color-ivory);
}

.tlc-review-card p {
  font-size: var(--tlc-text-small);
  color: var(--tlc-color-text-inverse-soft);
}

.tlc-review-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tlc-space-sm);
  margin-top: var(--tlc-space-md);
}

/* ---------- FAQ accordion ---------- */

.tlc-faq h2 {
  margin-bottom: var(--tlc-space-md);
}

.tlc-faq__list {
  border-top: 1px solid var(--tlc-color-line-light);
}

.tlc-faq__item {
  border-bottom: 1px solid var(--tlc-color-line-light);
}

.tlc-faq__heading {
  margin: 0;
}

.tlc-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tlc-space-sm);
  width: 100%;
  padding: 1.05rem 0.25rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--tlc-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tlc-color-text);
  transition: color var(--tlc-transition);
}

.tlc-faq__question:hover {
  color: var(--tlc-color-gold-text);
}

.tlc-faq__chevron {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--tlc-color-gold-muted);
  transition: transform var(--tlc-transition);
}

.tlc-faq__question[aria-expanded="true"] .tlc-faq__chevron {
  transform: rotate(180deg);
}

.tlc-faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--tlc-transition-slow);
}

/* Clipping alone leaves the answer readable to screen readers while its button
   still reports aria-expanded="false". visibility:hidden takes it out of the
   accessibility tree for real; the delay holds it back until the height
   animation has finished collapsing, so the panel does not blank out mid-slide.
   Scoped through :has() on purpose — where :has() is unsupported the rule drops
   and the panel simply behaves as it did before. */
.tlc-faq__item:has(.tlc-faq__question[aria-expanded="false"]) .tlc-faq__answer {
  visibility: hidden;
  transition: max-height var(--tlc-transition-slow),
              visibility 0s linear var(--tlc-duration-slow);
}

.tlc-faq__answer-inner {
  padding: 0 0.25rem 1.2rem;
  font-size: var(--tlc-text-small);
  color: var(--tlc-color-text-soft);
  max-width: 60ch;
}

/* =========================================================
   Final CTA
   ========================================================= */

.tlc-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--tlc-color-midnight);
  color: var(--tlc-color-text-inverse);
}

.tlc-cta__media,
.tlc-cta__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tlc-cta__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, 0.88);
}

.tlc-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin-inline: auto;
}

.tlc-cta p {
  margin-bottom: var(--tlc-space-lg);
  color: var(--tlc-color-text-inverse-soft);
}

.tlc-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--tlc-space-sm);
}

/* =========================================================
   Sticky mobile action bar
   ========================================================= */

.tlc-actionbar {
  position: fixed;
  z-index: 8500;
  inset: auto 0 0 0;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(5, 10, 16, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(198, 161, 91, 0.28);
  padding-bottom: env(safe-area-inset-bottom, 0);
  transform: translateY(0);
  transition: transform var(--tlc-transition);
}

.tlc-actionbar[data-hidden="true"] {
  transform: translateY(110%);
}

.tlc-actionbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 52px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tlc-color-ivory);
}

.tlc-actionbar a + a {
  border-left: 1px solid var(--tlc-color-line-dark);
}

.tlc-actionbar a svg {
  width: 15px;
  height: 15px;
  color: var(--tlc-color-gold);
}

.tlc-actionbar__reserve {
  background: var(--tlc-color-gold);
  color: var(--tlc-color-ink) !important;
}

.tlc-actionbar__reserve svg {
  color: var(--tlc-color-ink) !important;
}

@media (max-width: 980px) {
  .tlc-actionbar {
    display: grid;
  }

  /* Chrome parks a focused element flush with the viewport bottom, i.e. under
     the bar. Reserve the bar's height so the field stays visible. */
  html {
    scroll-padding-bottom: calc(var(--tlc-actionbar-height)
                                + env(safe-area-inset-bottom, 0px)
                                + var(--tlc-space-md));
  }

  /* Keep footer content reachable above the fixed bar */
  body.tlc-has-actionbar .tlc-site-footer {
    padding-bottom: calc(var(--tlc-space-xl) + 60px);
  }
}
