/* ==========================================================================
   NY.Limo — components.css
   Buttons, hero, cards, CTA band, booking panel, FAQ, breadcrumbs, chips,
   stats, quotes, tables, notices.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.875rem 1.625rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast),
    color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

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

.btn-accent {
  background: linear-gradient(135deg, var(--c-accent-bright), var(--c-accent));
  color: var(--c-white);
  box-shadow: var(--sh-accent);
}

.btn-accent:hover {
  background: var(--c-accent-bright);
  color: var(--c-white);
  box-shadow: 0 16px 40px rgba(179, 36, 63, 0.38);
}

.btn-outline {
  border-color: var(--c-line-strong);
  color: var(--c-white);
}

.btn-outline:hover {
  border-color: var(--c-accent);
  background: var(--c-accent-wash);
  color: var(--c-white);
}

.btn-ghost {
  padding-inline: 0;
  border-radius: 0;
  color: var(--c-accent-bright);
}

.btn-ghost:hover {
  color: var(--c-white);
}

.btn-dark {
  background: var(--c-ink);
  color: var(--c-white);
}

.btn-dark:hover {
  background: var(--c-black);
  color: var(--c-accent-bright);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 1.0625rem 2.125rem;
  font-size: var(--fs-base);
}

.btn-sm {
  padding: 0.625rem 1.125rem;
  font-size: var(--fs-xs);
}

.btn svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.btn-row-center {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   2. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(84vh, 46rem);
  padding-block: var(--s-10) var(--s-9);
  background: var(--c-black);
  overflow: hidden;
  isolation: isolate;
}

.hero-compact {
  min-height: auto;
  padding-block: var(--s-9) var(--s-8);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      to top,
      rgba(8, 8, 10, 0.95) 0%,
      rgba(8, 8, 10, 0.72) 38%,
      rgba(8, 8, 10, 0.42) 68%,
      rgba(8, 8, 10, 0.62) 100%
    ),
    linear-gradient(to right, rgba(8, 8, 10, 0.8) 0%, rgba(8, 8, 10, 0) 62%);
}

.hero-inner {
  position: relative;
  width: 100%;
}

.hero-content {
  max-width: 46rem;
}

.hero h1 {
  font-size: var(--fs-hero);
  margin-bottom: var(--s-5);
}

.hero-compact h1 {
  font-size: var(--fs-h1);
}

.hero-lede {
  max-width: 48ch;
  margin-bottom: var(--s-6);
  color: var(--c-text-soft);
  font-size: var(--fs-xl);
  line-height: 1.55;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-7);
  padding: 0;
  list-style: none;
  color: var(--c-text-mute);
  font-size: var(--fs-sm);
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
}

.hero-trust li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-accent-bright);
  flex: none;
}

/* --------------------------------------------------------------------------
   3. Page header (interior pages without a photo hero)
   -------------------------------------------------------------------------- */

.page-header {
  position: relative;
  padding-block: calc(var(--s-8) + var(--s-2)) var(--s-8);
  background:
    radial-gradient(
      120% 140% at 12% 0%,
      rgba(179, 36, 63, 0.16) 0%,
      rgba(179, 36, 63, 0) 58%
    ),
    var(--c-black);
  border-bottom: 1px solid var(--c-line);
}

.page-header-content {
  max-width: 54rem;
}

.page-header h1 {
  margin-bottom: var(--s-4);
}

.page-header .lede {
  margin-bottom: 0;
}

.page-header .btn-row {
  margin-top: var(--s-6);
}

/* --------------------------------------------------------------------------
   4. Breadcrumbs
   -------------------------------------------------------------------------- */

.breadcrumbs {
  margin-bottom: var(--s-5);
  font-size: var(--fs-sm);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  color: var(--c-text-mute);
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--c-accent-deep);
}

.breadcrumbs a {
  color: var(--c-text-mute);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--c-accent-bright);
}

.breadcrumbs [aria-current="page"] {
  color: var(--c-text-soft);
}

/* --------------------------------------------------------------------------
   5. Cards
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-ink-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-base), transform var(--t-base),
    box-shadow var(--t-base);
}

.card:hover {
  border-color: var(--c-accent-line);
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}

.card-media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--c-ink-3);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  /* contain, not cover — fleet source photos are an unedited mix of
     portrait/square/landscape shots; cover was cropping several of them. */
  object-fit: contain;
  transition: transform var(--t-slow);
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--s-5);
}

.card-body h3 {
  margin-bottom: var(--s-2);
  font-size: var(--fs-xl);
}

.card-body h3 a {
  color: var(--c-white);
  text-decoration: none;
}

.card-body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card:hover .card-body h3 a {
  color: var(--c-accent-bright);
}

.card-body p {
  color: var(--c-text-soft);
  font-size: var(--fs-base);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin-top: auto;
  padding-top: var(--s-4);
  color: var(--c-text-mute);
  font-size: var(--fs-sm);
}

.card-meta strong {
  color: var(--c-accent-bright);
  font-weight: 600;
}

/* Compact link card — used for service/airport/town index grids */
.link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  background: var(--c-ink-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: border-color var(--t-base), background var(--t-base),
    transform var(--t-base);
}

.link-card:hover {
  border-color: var(--c-accent-line);
  background: var(--c-ink-3);
  transform: translateY(-2px);
}

.link-card h3 {
  margin: 0;
  font-size: var(--fs-lg);
}

.link-card h3 a {
  color: var(--c-white);
  text-decoration: none;
}

.link-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.link-card:hover h3 a {
  color: var(--c-accent-bright);
}

.link-card p {
  margin: 0;
  color: var(--c-text-mute);
  font-size: var(--fs-base);
}

.section-paper .link-card,
.section-paper .card {
  background: var(--c-white);
  border-color: var(--c-paper-line);
}

.section-paper .link-card:hover,
.section-paper .card:hover {
  background: var(--c-white);
  border-color: var(--c-accent-deep);
}

.section-paper .link-card h3 a,
.section-paper .card-body h3 a {
  color: var(--c-paper-ink);
}

.section-paper .link-card p,
.section-paper .card-body p {
  color: var(--c-paper-soft);
}

/* --------------------------------------------------------------------------
   6. Stats
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  margin: 0;
  padding: 0;
}

.stat {
  padding: var(--s-5);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-ink-2);
}

.stat dt {
  color: var(--c-text-mute);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat dd {
  margin: var(--s-2) 0 0;
  color: var(--c-white);
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 2.4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.05;
}

/* --------------------------------------------------------------------------
   7. Chips / tags
   -------------------------------------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  margin: 0;
}

.chip {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--c-accent-line);
  border-radius: var(--r-pill);
  background: var(--c-accent-wash);
  color: var(--c-accent-bright);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

a.chip:hover {
  background: var(--c-accent);
  color: var(--c-white);
}

/* --------------------------------------------------------------------------
   8. Feature list (checkmarks)
   -------------------------------------------------------------------------- */

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--s-3);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.75rem;
  height: 0.4rem;
  border-left: 1.5px solid var(--c-accent-bright);
  border-bottom: 1.5px solid var(--c-accent-bright);
  transform: rotate(-45deg);
}

/* Numbered process list */
.step-list {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
  margin-bottom: var(--s-5);
}

.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-accent-bright);
  font-family: var(--f-display);
  font-size: 1.375rem;
  line-height: 1.2;
}

.step-list h3 {
  margin-bottom: var(--s-2);
  font-size: var(--fs-lg);
}

/* --------------------------------------------------------------------------
   9. Answer block — the "answer-first" lead paragraph on content pages
   -------------------------------------------------------------------------- */

.answer {
  position: relative;
  margin-bottom: var(--s-7);
  padding: var(--s-5) var(--s-6);
  background: var(--c-ink-2);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--c-text);
  font-size: var(--fs-lg);
  line-height: 1.6;
}

.answer p:first-child {
  margin-top: 0;
}

.section-paper .answer {
  background: var(--c-white);
  border-color: var(--c-paper-line);
  border-left-color: var(--c-accent-deep);
  color: var(--c-paper-ink);
}

/* --------------------------------------------------------------------------
   10. Prose — long-form article body
   -------------------------------------------------------------------------- */

.prose > * + * {
  margin-top: var(--s-4);
}

.prose h2 {
  margin-top: var(--s-8);
  margin-bottom: var(--s-4);
  font-size: var(--fs-h2);
}

.prose h3 {
  margin-top: var(--s-6);
  margin-bottom: var(--s-3);
}

.prose > h2:first-child,
.prose > h3:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li::marker {
  color: var(--c-accent-deep);
}

/* --------------------------------------------------------------------------
   11. Data table
   -------------------------------------------------------------------------- */

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}

.data-table {
  min-width: 34rem;
  font-size: var(--fs-base);
}

.data-table th,
.data-table td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  border-bottom: 1px solid var(--c-line);
}

.data-table thead th {
  background: var(--c-ink-3);
  color: var(--c-white);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: var(--c-ink-2);
}

.data-table th[scope="row"] {
  color: var(--c-white);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   12. FAQ accordion
   -------------------------------------------------------------------------- */

.faq {
  border-top: 1px solid var(--c-line);
}

.faq-item {
  border-bottom: 1px solid var(--c-line);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  width: 100%;
  padding: var(--s-5) 0;
  color: var(--c-white);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  transition: color var(--t-fast);
}

.faq-question:hover {
  color: var(--c-accent-bright);
}

.faq-icon {
  position: relative;
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.35em;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--c-accent-bright);
  transform: translateY(-50%);
  transition: transform var(--t-base), opacity var(--t-fast);
}

.faq-icon::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: translateY(-50%) rotate(0deg);
  opacity: 0;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-base);
}

.faq-answer > div {
  overflow: hidden;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  max-width: 68ch;
  padding-bottom: var(--s-5);
  color: var(--c-text-soft);
}

/* Accordion needs JS; without it every answer stays readable. */
.no-js .faq-answer {
  grid-template-rows: 1fr;
}

.section-paper .faq,
.section-paper .faq-item {
  border-color: var(--c-paper-line);
}

.section-paper .faq-question {
  color: var(--c-paper-ink);
}

.section-paper .faq-answer-inner {
  color: var(--c-paper-soft);
}

/* --------------------------------------------------------------------------
   13. Booking panel (Limo Anywhere widget host)
   -------------------------------------------------------------------------- */

.booking-panel {
  padding: var(--s-6);
  background: var(--c-ink-2);
  border: 1px solid var(--c-accent-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}

.booking-panel h2 {
  margin-bottom: var(--s-3);
  font-size: var(--fs-h3);
}

.booking-panel-note {
  margin-bottom: var(--s-5);
  color: var(--c-text-mute);
  font-size: var(--fs-base);
}

/* The Limo Anywhere loader replaces this anchor with its own iframe/markup.
   Until it does, the anchor is a working link to the booking site. */
.booking-widget {
  min-height: 4rem;
}

.booking-widget-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.875rem 1.625rem;
  background: linear-gradient(135deg, var(--c-accent-bright), var(--c-accent));
  border-radius: var(--r-pill);
  color: var(--c-white);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.booking-widget-link:hover {
  background: var(--c-accent-bright);
  color: var(--c-white);
}

.booking-fallback {
  margin-top: var(--s-4);
  color: var(--c-text-mute);
  font-size: var(--fs-sm);
}

/* Aside variant used in the sticky rail */
.rail-card {
  padding: var(--s-5);
  background: var(--c-ink-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}

.rail-card + .rail-card {
  margin-top: var(--s-5);
}

.rail-card h2 {
  margin-bottom: var(--s-3);
  font-family: var(--f-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-accent-bright);
}

.rail-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-card li {
  margin-bottom: var(--s-2);
  font-size: var(--fs-base);
}

.rail-card a {
  color: var(--c-text-soft);
  text-decoration: none;
}

.rail-card a:hover {
  color: var(--c-accent-bright);
}

.rail-phone {
  display: block;
  margin-bottom: var(--s-2);
  color: var(--c-white);
  font-family: var(--f-display);
  font-size: 1.625rem;
  text-decoration: none;
}

.rail-phone:hover {
  color: var(--c-accent-bright);
}

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  padding-block: var(--section-y);
  background:
    radial-gradient(
      90% 120% at 78% 12%,
      rgba(179, 36, 63, 0.22) 0%,
      rgba(179, 36, 63, 0) 60%
    ),
    var(--c-black);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  text-align: center;
}

.cta-band-inner {
  max-width: 44rem;
  margin-inline: auto;
}

.cta-band h2 {
  margin-bottom: var(--s-4);
}

.cta-band p {
  margin-bottom: var(--s-6);
  color: var(--c-text-soft);
  font-size: var(--fs-lg);
}

.cta-band .btn-row {
  justify-content: center;
}

.cta-band-phone {
  display: block;
  margin-top: var(--s-5);
  color: var(--c-text-mute);
  font-size: var(--fs-sm);
}

.cta-band-phone a {
  color: var(--c-white);
  font-weight: 600;
  text-decoration: none;
}

.cta-band-phone a:hover {
  color: var(--c-accent-bright);
}

/* --------------------------------------------------------------------------
   15. Quote / testimonial
   -------------------------------------------------------------------------- */

.quote-card {
  padding: var(--s-6);
  background: var(--c-ink-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}

.quote-card blockquote {
  color: var(--c-text);
  font-family: var(--f-display);
  font-size: var(--fs-xl);
  font-style: italic;
  line-height: 1.5;
}

.quote-card figcaption {
  margin-top: var(--s-4);
  color: var(--c-text-mute);
  font-size: var(--fs-sm);
}

/* --------------------------------------------------------------------------
   16. Notice / editorial callout
   -------------------------------------------------------------------------- */

.notice {
  padding: var(--s-5);
  border: 1px dashed var(--c-accent-line);
  border-radius: var(--r-md);
  background: var(--c-accent-wash);
  color: var(--c-text-soft);
  font-size: var(--fs-base);
}

.notice h2,
.notice h3 {
  margin-bottom: var(--s-2);
  color: var(--c-accent-bright);
  font-family: var(--f-sans);
  font-size: var(--fs-base);
}

/* --------------------------------------------------------------------------
   17. Directory list (long alphabetical link lists — service areas)
   -------------------------------------------------------------------------- */

.directory {
  columns: 3 14rem;
  column-gap: var(--s-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.directory li {
  margin-bottom: var(--s-2);
  break-inside: avoid;
}

.directory a {
  color: var(--c-text-soft);
  font-size: var(--fs-base);
  text-decoration: none;
}

.directory a:hover {
  color: var(--c-accent-bright);
}

.section-paper .directory a {
  color: var(--c-paper-soft);
}

.section-paper .directory a:hover {
  color: var(--c-black);
}

/* --------------------------------------------------------------------------
   18. Fleet gallery — small thumbnail row beneath a vehicle's lead photo
   -------------------------------------------------------------------------- */

.fleet-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-3);
}

.fleet-gallery-item {
  aspect-ratio: 3 / 2;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-ink-3);
  border: 1px solid var(--c-line);
}

.fleet-gallery-item img {
  width: 100%;
  height: 100%;
  /* contain, not cover — source photos are a real mix of portrait, square
     and landscape (unedited phone photos), and cover was cropping large
     parts of several of them away. Letterboxing on the ink background reads
     fine at thumbnail size and never cuts off part of the vehicle. */
  object-fit: contain;
}
