/* ==========================================================================
   Bali Fast Track — Card Component System
   Shared, reusable card primitives for all /template-parts/ pages.
   Aesthetic: luxury dark-navy + heritage gold, glass depth, refined motion.
   Loaded after main.css, before mobile-fixes.css.
   ========================================================================== */

/* --- Responsive card grids -------------------------------------------------
   Use .bft-grid as a wrapper; pick a column hint modifier or let it auto-fit. */
.bft-grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.bft-grid--2 { grid-template-columns: repeat(2, 1fr); }
.bft-grid--3 { grid-template-columns: repeat(3, 1fr); }
.bft-grid--4 { grid-template-columns: repeat(4, 1fr); }
.bft-grid--5 { grid-template-columns: repeat(5, 1fr); }

/* --- Base card -------------------------------------------------------------- */
.bft-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)) ,
    var(--navy-800);
  border: 1px solid var(--white-10);
  border-radius: 18px;
  padding: clamp(22px, 2.4vw, 32px);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}
/* Gold hairline that ignites on hover */
.bft-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}
@media (hover: hover) {
  .bft-card:hover {
    transform: translateY(-6px);
    border-color: rgba(184, 162, 101, 0.45);
    box-shadow:
      0 22px 48px -24px rgba(0, 0, 0, 0.75),
      0 0 0 1px rgba(184, 162, 101, 0.12) inset;
  }
  .bft-card:hover::before { opacity: 1; }
}

/* Make anchor-wrapped cards behave */
a.bft-card { text-decoration: none; color: inherit; }
/* Keyboard focus affordance for clickable cards */
a.bft-card:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
  border-color: rgba(184, 162, 101, 0.55);
}
a.bft-card:focus-visible::before { opacity: 1; }

/* --- Card typography -------------------------------------------------------- */
.bft-card-title {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  margin: 0;
}
.bft-card--accent .bft-card-title,
.bft-card-title.is-gold { color: var(--gold-300); }
.bft-card-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
}
.bft-card-text strong { color: var(--white); }

/* --- Icon / number chip ----------------------------------------------------- */
.bft-card-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-300);
  background: radial-gradient(120% 120% at 30% 20%, rgba(184, 162, 101, 0.22), rgba(184, 162, 101, 0.06));
  border: 1px solid rgba(184, 162, 101, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 18px -10px rgba(184, 162, 101, 0.5);
  flex-shrink: 0;
}
.bft-card-chip svg { width: 24px; height: 24px; }

/* --- Feature card (icon + title + text), e.g. local tips, benefits --------- */
.bft-card--feature .bft-card-title { font-size: clamp(17px, 1.3vw, 20px); }

/* --- Accent card: gold-bordered highlight (was border:1px solid gold) ------ */
.bft-card--accent {
  border-color: rgba(184, 162, 101, 0.5);
  background:
    linear-gradient(180deg, rgba(184, 162, 101, 0.08), rgba(255, 255, 255, 0)),
    var(--navy-800);
}
.bft-card--accent::before { opacity: 1; }

/* --- Checklist panel (e.g. "What's Included") ------------------------------- */
.bft-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.bft-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-body);
}
.bft-check-list li::before {
  content: "✓";
  color: var(--gold-400);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* --- Prose card: wraps a long-form text block in a contained surface -------- */
.bft-card--prose {
  gap: 18px;
  padding: clamp(28px, 3.2vw, 48px);
}
.bft-card--prose p { font-size: 16px; line-height: 1.9; color: var(--text-body); margin: 0 0 18px; }
.bft-card--prose p:last-child { margin-bottom: 0; }
.bft-card--prose a { color: var(--gold-400); text-decoration: none; border-bottom: 1px solid rgba(160, 138, 78, 0.3); transition: border-color 0.3s ease; }
.bft-card--prose a:hover { border-color: var(--gold-300); }
.bft-card--prose:hover { transform: none; }            /* prose cards stay calm */
.bft-card--prose:hover::before { opacity: 0; }

/* --- Numbered "step" card --------------------------------------------------- */
.bft-card--step { padding-top: clamp(26px, 2.6vw, 36px); }

/* --- Stat / metric card ----------------------------------------------------- */
.bft-card--stat { align-items: center; text-align: center; gap: 6px; }
.bft-card--stat .bft-stat-num {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1;
}
.bft-card--stat .bft-stat-label {
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white-50);
}

/* --- Comparison / tier table -----------------------------------------------
   Used on lounge/transfer/police (.comparison-table) and the fast-track tables.
   Guarantees a full-width, evenly-distributed table inside a rounded panel. */
.comparison-table {
  width: 100%;
  border: 1px solid var(--white-10);
  border-radius: 18px;
  overflow: hidden;
  background: var(--navy-800);
}
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;        /* even columns, fills the panel fully */
  font-size: 15px;
}
.comparison-table thead tr { background: var(--navy-700); }
.comparison-table th {
  padding: 16px 22px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  color: var(--gold-300);
}
.comparison-table th:first-child,
.comparison-table td:first-child { text-align: left; width: 40%; }
.comparison-table th:first-child { color: var(--white); }
.comparison-table td {
  padding: 14px 22px;
  text-align: center;
  color: var(--white-70);
  border-top: 1px solid var(--white-05);
  word-wrap: break-word;
}
.comparison-table td:first-child { color: var(--text-body); }
.comparison-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
@media (max-width: 700px) {
  .comparison-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .comparison-table table { min-width: 560px; }
  .comparison-table th,
  .comparison-table td { padding: 12px 14px; font-size: 14px; }
}

/* --- Card header row (chip beside title) ------------------------------------ */
.bft-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bft-card-head .bft-card-title { margin: 0; }

/* --- Responsive collapse ---------------------------------------------------- */
@media (max-width: 980px) {
  .bft-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .bft-grid--4,
  .bft-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  /* Larger cards stack to 1; dense/compact cards stay 2-up so small
     chips & stats don't waste vertical space on phones. */
  .bft-grid,
  .bft-grid--2,
  .bft-grid--3 { grid-template-columns: 1fr; }
  .bft-grid--4,
  .bft-grid--5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bft-card { padding: clamp(18px, 5vw, 24px); border-radius: 16px; }
}
@media (hover: hover) and (max-width: 600px) {
  .bft-card:hover { transform: translateY(-3px); }
}

/* ==========================================================================
   ADDITIONS — eyebrow / link arrow, new variants, reduced-motion
   ========================================================================== */

/* --- Eyebrow: small uppercase kicker above a title ------------------------- */
.bft-card-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold-300);
  margin: 0;
}

/* --- Link arrow: affordance for clickable cards; nudges on hover ----------- */
.bft-card-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--gold-300);
}
.bft-card-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
@media (hover: hover) {
  a.bft-card:hover .bft-card-arrow svg { transform: translateX(4px); }
}

/* --- Media card: image on top, body below --------------------------------- */
.bft-card--media { padding: 0; gap: 0; }
.bft-card--media .bft-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-700);
}
.bft-card--media .bft-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
@media (hover: hover) {
  .bft-card--media:hover .bft-card-media img { transform: scale(1.05); }
}
.bft-card--media .bft-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.2vw, 28px);
}

/* --- CTA card: gold-filled, dark text — for booking / action tiles --------- */
.bft-card--cta {
  background: linear-gradient(135deg, var(--gold-200), var(--gold-400));
  border-color: transparent;
  color: var(--navy-950);
}
.bft-card--cta::before { display: none; }
.bft-card--cta .bft-card-title,
.bft-card--cta .bft-card-text { color: var(--navy-950); }
.bft-card--cta .bft-card-text { opacity: 0.82; }
.bft-card--cta .bft-card-arrow { color: var(--navy-900); }
@media (hover: hover) {
  .bft-card--cta:hover {
    border-color: transparent;
    box-shadow: 0 22px 48px -22px rgba(160, 138, 78, 0.7);
  }
}

/* --- Compact card: tighter padding for dense lists ------------------------- */
.bft-card--compact {
  padding: clamp(16px, 1.6vw, 20px);
  gap: 8px;
  border-radius: 14px;
}

/* --- Respect reduced-motion: kill lifts, zooms & nudges -------------------- */
@media (prefers-reduced-motion: reduce) {
  .bft-card,
  .bft-card--media .bft-card-media img,
  .bft-card-arrow svg { transition: none; }
  .bft-card:hover,
  .bft-card--media:hover .bft-card-media img,
  a.bft-card:hover .bft-card-arrow svg { transform: none; }
}

/* ==========================================================================
   INTERIOR CONTENT PAGES — shared polish (reviews / about / faq / pricing …)
   Reusable helpers so long-form pages read well and look consistent.
   ========================================================================== */

/* AEO answer block: turn the bare summary paragraph into a refined,
   readable lead with emphasis colour for figures. */
.aeo-block {
  max-width: 860px;
  margin-inline: auto;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.85;
  color: var(--white-70);
  text-align: center;
}
.aeo-block strong { color: var(--gold-200); font-weight: 600; }

/* Readable long-form column (when prose isn't inside a .bft-card). */
.ip-prose { max-width: 820px; margin-inline: auto; }
.ip-prose > p { font-size: 16.5px; line-height: 1.9; color: var(--text-body); margin: 0 0 20px; }
.ip-prose > p:last-child { margin-bottom: 0; }
.ip-prose strong { color: var(--white); }
.ip-prose h3 {
  font-family: var(--font-heading);
  color: var(--gold-300);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .2px;
  margin: 34px 0 12px;
  padding-left: 14px;
  border-left: 3px solid var(--gold-400);
}
.ip-prose h3:first-child { margin-top: 0; }

/* Framed hero/feature image — rounded, soft shadow, subtle gold ring.
   Shadow lives on the figure (not the img) so it survives overflow:hidden
   crops; the ::after ring sits above the (possibly clipped) image. */
.ip-figure {
  position: relative;
  margin: 0;
  border-radius: 20px;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.46);
}
.ip-figure img {
  width: 100%; height: auto; display: block;
  border-radius: 20px;
}
.ip-figure::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(205, 184, 126, 0.18);
  pointer-events: none;
}

/* Keep CTA-banner content above the radial glow when the card class is used
   together with the legacy .cta-inner wrapper. */
.cta-banner .cta-inner > * { position: relative; z-index: 1; }

@media (max-width: 600px) {
  .ip-prose > p { font-size: 15px; line-height: 1.75; }
  .ip-prose h3 { font-size: 18px; margin-top: 26px; }
}

/* Inline icon inside a card: gold, with breathing room below. The SVG is
   inline-block so its horizontal position follows the card's text-align —
   a centred card centres the icon, a left-aligned card keeps it left. */
.bft-card-icon { color: var(--gold-400); margin-bottom: 12px; line-height: 0; }
.bft-icon { display: inline-block; vertical-align: middle; }
