/* ================================================================
   Luxefaves Child Theme — frontpage.css  v2.1
   PATCH: image fallback display, premium hover, interactive cards,
   zoom-on-hover, CTA improvements, no visual regressions.
   All changes are additive or targeted overrides — safe to deploy.
   ================================================================ */

/* ── Design tokens ─────────────────────────────────────────────── */
:root {
  --lfx-bg:      #0b0b0d;
  --lfx-panel:   #131316;
  --lfx-text:    #f5f1e8;
  --lfx-muted:   #b8b1a4;
  --lfx-line:    rgba(255,255,255,.08);
  --lfx-gold:    #c8a96b;
  --lfx-gold-2:  #e3c58a;
  --lfx-accent:  #8c1f26;
  --lfx-shadow:  0 18px 60px rgba(0,0,0,.18);
  --lfx-radius:  22px;
  --lfx-trans:   .22s cubic-bezier(.4,0,.2,1);
}

/* ── GeneratePress full-width override ─────────────────────────── */
body.home .site.grid-container,
body.blog .site.grid-container,
body.home .inside-article,
body.blog .inside-article {
  max-width: 100%;
}
body.home #page,
body.blog #page { background: #f6f2ea; }

/* ── Layout helpers ─────────────────────────────────────────────── */
.lfx-container { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }

/* ── Top bar ─────────────────────────────────────────────────────── */
.lfx-topbar {
  background: var(--lfx-bg);
  color: var(--lfx-muted);
  border-bottom: 1px solid var(--lfx-line);
  font-size: 12px;
}
.lfx-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  gap: 16px;
}

/* ── Hero ────────────────────────────────────────────────────────── */
.lfx-hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(200,169,107,.18), transparent 32%),
    radial-gradient(circle at 85% 10%, rgba(140,31,38,.22), transparent 28%),
    linear-gradient(180deg, #0b0b0d 0%, #121216 100%);
  color: var(--lfx-text);
  padding: 48px 0 38px;
}
.lfx-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
}
.lfx-hero-copy {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--lfx-text);
  padding: 28px;
  border-radius: var(--lfx-radius);
  box-shadow: var(--lfx-shadow);
}
.lfx-hero-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--lfx-text);
  padding: 24px;
  border-radius: var(--lfx-radius);
  box-shadow: var(--lfx-shadow);
  display: grid;
  gap: 16px;
}
.lfx-hero-card-title {
  margin: 0;
  font-size: 22px;
  font-family: Georgia, 'Times New Roman', serif;
  color: #fff;
}

/* ── Typography helpers ─────────────────────────────────────────── */
.lfx-eyebrow,
.lfx-mini-label {
  display: inline-flex;
  width: fit-content;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--lfx-gold-2);
}
.lfx-mini-label {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(200,169,107,.16);
}
.lfx-hero h1 {
  margin: 0 0 14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: #fff;
}
.lfx-hero p { color: #d7cebf; font-size: 17px; max-width: 720px; margin: 0 0 24px; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.lfx-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.lfx-btn,
.lfx-btn-secondary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform var(--lfx-trans), box-shadow var(--lfx-trans), background var(--lfx-trans);
  text-decoration: none;
}
.lfx-btn {
  background: linear-gradient(135deg, var(--lfx-gold), var(--lfx-gold-2));
  color: #131313;
  box-shadow: 0 14px 32px rgba(200,169,107,.28);
}
.lfx-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(200,169,107,.42);
  background: linear-gradient(135deg, var(--lfx-gold-2), #f0d9a8);
  color: #111;
}
.lfx-btn-secondary {
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  background: transparent;
}
.lfx-btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.07);
}
/* Smaller button variant for table CTAs */
.lfx-btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }

/* ── Metrics strip ───────────────────────────────────────────────── */
.lfx-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.lfx-metric {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.lfx-metric strong { display: block; color: #fff; font-size: 22px; }
.lfx-metric span   { color: var(--lfx-muted); font-size: 13px; }

/* ── Image wrappers (shared by hero card, thumbs, media, cards) ──── */

/* PATCH: .lfx-img-wrap  = overflow container that enables zoom-on-hover.
   Applied in PHP to every <a> that wraps an image.              */
.lfx-img-wrap {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #efe6d7, #d9c0a1);
}
.lfx-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s cubic-bezier(.4,0,.2,1), filter .45s;
}
.lfx-img-wrap:hover img {
  transform: scale(1.06);
  filter: brightness(1.04);
}

/* PATCH: placeholder img inside empty wrappers — no broken box */
.lfx-placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .6;
}

/* Original decorative placeholder (when no query posts at all) */
.lfx-product-visual,
.lfx-thumb,
.lfx-media {
  aspect-ratio: 1/1;
  border-radius: 18px;
  background: linear-gradient(135deg, #efe6d7, #d9c0a1);
  position: relative;
  overflow: hidden;
}
.lfx-product-visual::before,
.lfx-product-visual::after,
.lfx-media::before,
.lfx-media::after {
  content: '';
  position: absolute;
  border-radius: 20px;
  background: rgba(255,255,255,.22);
}
.lfx-product-visual::before { width:62%; height:68%; left:18%; top:14%; transform:rotate(-5deg); }
.lfx-product-visual::after  { width:24%; height:28%; right:10%; bottom:12%; background:linear-gradient(180deg, rgba(200,169,107,.34), rgba(255,255,255,.08)); }

/* Fix aspect ratio for the feature section media block */
.lfx-feature-media { aspect-ratio: 4/3; }
.lfx-feature-media img { width:100%; height:100%; object-fit:cover; border-radius:18px; }

/* ── Section scaffolding ─────────────────────────────────────────── */
.lfx-section { padding: 58px 0; }
.lfx-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 22px;
}
.lfx-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  font-family: Georgia, 'Times New Roman', serif;
}
.lfx-head p { margin: 0; max-width: 700px; color: #5b5b5b; }

/* ── Pillars ─────────────────────────────────────────────────────── */
.lfx-pillars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 16px;
}
.lfx-pillar {
  background: #fff;
  border: 1px solid #ebe5db;
  border-radius: var(--lfx-radius);
  padding: 22px;
  box-shadow: 0 12px 30px rgba(20,20,20,.05);
  transition: transform var(--lfx-trans), box-shadow var(--lfx-trans);
}
.lfx-pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(20,20,20,.10);
}
.lfx-pillar h3 { margin: 0 0 8px; font-size: 20px; }
.lfx-pillar p  { margin: 0 0 14px; color: #5f5a52; font-size: 14px; }
.lfx-pillar a  { color: #8c1f26; font-weight: 700; font-size: 14px; }

/* ── Layout: edit + sidebar ─────────────────────────────────────── */
.lfx-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }

.lfx-feature,
.lfx-sidebar,
.lfx-compare,
.lfx-trust,
.lfx-newsletter,
.lfx-faq,
.lfx-band {
  background: #fff;
  border: 1px solid #ebe5db;
  border-radius: var(--lfx-radius);
  box-shadow: 0 12px 30px rgba(20,20,20,.05);
  padding: 22px;
}
.lfx-feature-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 20px;
  align-items: center;
}
.lfx-feature h3 {
  margin: 10px 0 8px;
  font-size: 30px;
  font-family: Georgia, 'Times New Roman', serif;
}
.lfx-feature p,
.lfx-sidebar span,
.lfx-card p,
.lfx-trust span,
.lfx-faq p { color: #5f5a52; }

.lfx-bullets { display: grid; gap: 10px; margin: 18px 0 0; }
.lfx-bullets span { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.lfx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lfx-gold); flex-shrink: 0; }

/* ── Sidebar mini articles ─────────────────────────────────────── */
.lfx-sidebar { display: grid; gap: 14px; }
.lfx-mini-article {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #faf7f1;
  border: 1px solid #efe8dc;
  transition: background var(--lfx-trans);
}
.lfx-mini-article:hover { background: #f3ece1; }
.lfx-mini-article strong { display: block; font-size: 15px; color: #171717; }

/* PATCH: sidebar thumb image — fixed 88px square */
.lfx-mini-article .lfx-thumb,
.lfx-mini-article .lfx-img-wrap {
  width: 88px;
  height: 88px;
  aspect-ratio: 1/1;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
}
.lfx-mini-article .lfx-img-wrap img { width:100%; height:100%; object-fit:cover; }

/* ── Compare table ───────────────────────────────────────────────── */
.lfx-compare table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.lfx-compare th,
.lfx-compare td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #efe8dc;
  font-size: 14px;
  vertical-align: middle;
}
.lfx-compare th {
  background: #121216;
  color: #f5f1e8;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.lfx-compare tr:hover td { background: #faf7f1; }
.lfx-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3ecdf;
  color: #71501c;
  font-size: 12px;
  font-weight: 700;
}

/* ── Cards grid ─────────────────────────────────────────────────── */
.lfx-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}
.lfx-card {
  background: #fff;
  border: 1px solid #ebe5db;
  border-radius: var(--lfx-radius);
  box-shadow: 0 12px 30px rgba(20,20,20,.05);
  overflow: hidden;
  transition: transform var(--lfx-trans), box-shadow var(--lfx-trans);
}
.lfx-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 56px rgba(20,20,20,.12);
}

/* PATCH: card media — enforce 16:9 aspect for consistent grid */
.lfx-card .lfx-media,
.lfx-card .lfx-img-wrap {
  aspect-ratio: 16/9;
  border-radius: 0;
  height: auto;
}
.lfx-card .lfx-img-wrap img { height: 100%; }

.lfx-card-body { padding: 18px; }
.lfx-kicker {
  color: #8c1f26;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.lfx-card h3 { margin: 8px 0; font-size: 18px; line-height: 1.2; }
.lfx-card h3 a { color: inherit; text-decoration: none; }
.lfx-card h3 a:hover { color: var(--lfx-accent); }

/* ── Trust section ───────────────────────────────────────────────── */
.lfx-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
  margin-top: 18px;
}
.lfx-trust-item {
  padding: 18px;
  border-radius: 18px;
  background: #faf7f1;
  border: 1px solid #efe8dc;
  transition: background var(--lfx-trans);
}
.lfx-trust-item:hover { background: #f0e9dc; }
.lfx-trust-item strong { display: block; margin-bottom: 6px; }

/* ── Newsletter ──────────────────────────────────────────────────── */
.lfx-newsletter {
  background: linear-gradient(135deg, #121216, #18181c);
  color: var(--lfx-text);
  border-color: rgba(255,255,255,.08);
}
.lfx-newsletter-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
.lfx-newsletter h2,
.lfx-band h2 {
  margin: 0 0 8px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 34px;
  color: #fff;
}
.lfx-newsletter p { color: #d7cebf; margin: 0; }
.lfx-newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.lfx-newsletter-form input {
  min-width: 280px;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 0 16px;
}
.lfx-newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
.lfx-newsletter-form input:focus { outline: 2px solid var(--lfx-gold); }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.lfx-faq-grid { display: grid; gap: 14px; }
.lfx-faq details {
  border: 1px solid #efe8dc;
  border-radius: 16px;
  padding: 16px 18px;
  background: #faf7f1;
  transition: background var(--lfx-trans);
}
.lfx-faq details[open] { background: #f3ece1; }
.lfx-faq summary { cursor: pointer; font-weight: 700; }
.lfx-faq p { margin: 12px 0 0; }

/* ── CTA band ─────────────────────────────────────────────────────── */
.lfx-band {
  background: linear-gradient(135deg, rgba(140,31,38,.95), rgba(95,13,19,.98));
  color: #fff;
  border-color: transparent;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
.lfx-band p { margin: 0; color: rgba(255,255,255,.86); }

/* ── Footer note ─────────────────────────────────────────────────── */
.lfx-footer-note { margin-top: 16px; font-size: 13px; color: #6c655b; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1120px) {
  .lfx-hero-grid,
  .lfx-layout,
  .lfx-newsletter-grid,
  .lfx-band,
  .lfx-feature-grid { grid-template-columns: 1fr; }
  .lfx-pillars       { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .lfx-cards         { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lfx-trust-grid    { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .lfx-container { width: min(1240px, calc(100% - 20px)); }
  .lfx-pillars,
  .lfx-cards,
  .lfx-trust-grid,
  .lfx-metrics { grid-template-columns: 1fr; }
  .lfx-mini-article,
  .lfx-feature-grid { grid-template-columns: 1fr; }
  .lfx-newsletter-form input { min-width: 100%; }
  .lfx-section { padding: 42px 0; }
  .lfx-newsletter-grid { grid-template-columns: 1fr; }
  .lfx-band { grid-template-columns: 1fr; }
}

/* ── Pillars with images ─────────────────────────────────────── */
.lfx-pillars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 18px;
}
.lfx-pillar--media {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.lfx-pillar--media .lfx-pillar-media {
  display: block;
  aspect-ratio: 4 / 3;
  background: #f4efe7;
  overflow: hidden;
}
.lfx-pillar--media .lfx-pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.lfx-pillar--media:hover .lfx-pillar-media img {
  transform: scale(1.04);
}
.lfx-pillar--media .lfx-pillar-body {
  padding: 20px 22px 22px;
  display: grid;
  align-content: start;
  gap: 10px;
  flex: 1;
}
.lfx-pillar--media h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}
.lfx-pillar--media p {
  margin: 0;
  color: #5f5a52;
  font-size: 14px;
  line-height: 1.6;
}
.lfx-pillar--media a {
  color: #8c1f26;
  font-weight: 700;
  font-size: 14px;
}
.lfx-pillar--media .lfx-pillar-body > a {
  margin-top: 6px;
}

@media (max-width: 1280px) {
  .lfx-pillars { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .lfx-pillars { grid-template-columns: 1fr; }
}

/* ── Pillars equal image heights ───────────────────────── */
.lfx-pillars {
  align-items: stretch;
}

.lfx-pillar--media {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.lfx-pillar--media .lfx-pillar-media {
  display: block;
  width: 100%;
  height: 260px;
  min-height: 260px;
  max-height: 260px;
  overflow: hidden;
  background: #f3efe8;
  aspect-ratio: auto !important;
}

.lfx-pillar--media .lfx-pillar-media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.lfx-pillar--media .lfx-pillar-body {
  flex: 1;
}

@media (max-width: 1280px) {
  .lfx-pillar--media .lfx-pillar-media {
    height: 240px;
    min-height: 240px;
    max-height: 240px;
  }
}

@media (max-width: 767px) {
  .lfx-pillar--media .lfx-pillar-media {
    height: 220px;
    min-height: 220px;
    max-height: 220px;
  }
}
