/* ═══════════════════════════════════════════════════════════
   PAGE: Homepage (front-page.php)
═══════════════════════════════════════════════════════════ */

/* ── HERO ──────────────────────────────────────────────── */
.hero-outer { background: #0A0806; }
.hero {
  display: grid; grid-template-columns: 40% 60%;
  height: 580px; width: 100%;
  background: #0A0806; overflow: hidden;
}
.hero-img-panel {
  position: relative; overflow: hidden;
  height: 100%; background: transparent;
  padding: 0 0 0 60px;
}
.hero-photo {
  display: block; width: 100%; height: 100%;
  object-fit: contain; object-position: center bottom;
  transition: transform .6s;
}
.hero:hover .hero-photo { transform: scale(1.025); }
.hero-img-panel::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 60% at 42% 45%, rgba(78,55,28,.30) 0%, transparent 70%);
  pointer-events: none; z-index: 1;
}
.hero-badge {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  background: rgba(255,255,255,.10); backdrop-filter: blur(8px);
  border: .5px solid rgba(255,255,255,.15);
  border-radius: 6px; padding: 5px 10px;
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: rgba(255,255,255,.80);
  font-family: var(--font-b);
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--price); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(22,163,74,.25);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(22,163,74,.25); }
  50%     { box-shadow: 0 0 0 6px rgba(22,163,74,.10); }
}
.hero-stamp {
  position: absolute; bottom: 24px; left: 24px; z-index: 2;
  font-size: 10px; font-family: var(--font-b);
  color: rgba(255,255,255,.38); letter-spacing: .08em; text-transform: uppercase;
}
.hero-txt-panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(36px,4vw,56px) clamp(48px,5vw,80px) clamp(36px,4vw,56px) clamp(72px,7vw,100px);
  background: #0C0A08;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 10.5px; font-weight: 500;
  letter-spacing: .10em; text-transform: uppercase;
  color: rgba(184,134,11,.70); margin-bottom: 16px;
}
.hero-eyebrow-line {
  width: 22px; height: .5px;
  background: rgba(184,134,11,.50); flex-shrink: 0;
}
.hero-h1 {
  font-family: var(--font-d);
  font-size: clamp(32px,3.8vw,54px);
  font-weight: 400; line-height: 1.12;
  color: #F5EDD8; margin-bottom: 16px; letter-spacing: -.02em;
}
.hero-h1 em { color: #C4A45A; font-style: normal; }
.hero-sub {
  font-size: clamp(13px,1.2vw,15px);
  color: rgba(255,255,255,.46);
  line-height: 1.70; margin-bottom: 28px; max-width: 360px;
}
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-ctas .btn-primary {
  background: #F5EDD8; color: #1C1512;
}
.hero-ctas .btn-primary:hover { background: #fff; }
.hero-ctas .btn-destiny {
  background: rgba(184,134,11,.15); color: #C4A45A;
  border: .5px solid rgba(184,134,11,.30);
}
.hero-ctas .btn-destiny:hover { background: rgba(184,134,11,.24); }
.hero-stats { display: flex; gap: 28px; }
.hero-stat-n {
  font-family: var(--font-d);
  font-size: 22px; font-weight: 400;
  color: #E8DBBF; line-height: 1;
}
.hero-stat-l {
  font-size: 10.5px; color: rgba(255,255,255,.32);
  margin-top: 4px; letter-spacing: .04em; text-transform: uppercase;
}

/* ── BEGINNER STRIP ────────────────────────────────────── */
.beginner-strip {
  background: var(--bg1); border-bottom: .5px solid var(--br);
  border-top: .5px solid var(--br);
}
.beginner-strip-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; gap: 16px;
}
.beginner-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--bg0); border: .5px solid var(--br-md);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.beginner-icon svg { width: 18px; height: 18px; stroke: var(--t2); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.beginner-title { font-size: 14px; font-weight: 500; color: var(--t1); margin-bottom: 2px; }
.beginner-sub   { font-size: 12.5px; color: var(--t2); }
.beginner-cta   { margin-left: auto; flex-shrink: 0; }

/* ── INTENT GRID ───────────────────────────────────────── */
.intent-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; }
.intent-card {
  background: var(--bg1); border: .5px solid var(--br);
  border-radius: var(--r-lg); padding: 18px 14px 16px;
  text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.intent-card:hover {
  border-color: var(--br-md); background: var(--bg0);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.intent-card-destiny {
  background: var(--gold-l); border-color: var(--gold-b);
}
.intent-card-destiny:hover { background: #f2e8c0; border-color: rgba(184,134,11,.30); }
.intent-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--bg0); border: .5px solid var(--br);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.intent-icon svg { width: 16px; height: 16px; stroke: var(--t1); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.intent-card-destiny .intent-icon { background: rgba(184,134,11,.10); border-color: var(--gold-b); }
.intent-card-destiny .intent-icon svg { stroke: var(--gold-dim); }
.intent-name { font-size: 12.5px; font-weight: 500; color: var(--t1); }
.intent-sub  { font-size: 10.5px; color: var(--t3); margin-top: 2px; }
.intent-card-destiny .intent-name { color: var(--gold-dim); }

/* ── ANCIENT STRIP ─────────────────────────────────────── */
.ancient-strip {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.ancient-card {
  border-radius: var(--r-xl); overflow: hidden;
  position: relative; aspect-ratio: 3/4;
  background: var(--bg2); cursor: pointer;
}
.ancient-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.ancient-card:hover img { transform: scale(1.05); }
.ancient-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 50%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 20px;
}
.ancient-card-title {
  font-family: var(--font-d);
  font-size: 16px; color: #fff; margin-bottom: 4px;
}
.ancient-card-sub { font-size: 11px; color: rgba(255,255,255,.6); }

/* ── FEATURED MONKS ───────────────────────────────────── */
.fm-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; }
.fm-card {
  background: var(--bg1); border: .5px solid var(--br);
  border-radius: var(--r-lg); padding: 18px 14px 16px;
  text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
  text-decoration: none;
}
.fm-card:hover {
  border-color: var(--br-md); background: var(--bg0);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.fm-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  overflow: hidden; margin: 0 auto 10px;
  background: var(--bg2); border: 2px solid var(--br);
  display: flex; align-items: center; justify-content: center;
}
.fm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fm-avatar svg { width: 28px; height: 28px; color: var(--t3); }
.fm-name { font-size: 12.5px; font-weight: 500; color: var(--t1); line-height: 1.35; }

/* ── REVIEWS ───────────────────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.review-card {
  background: var(--bg0); border: .5px solid var(--br);
  border-radius: var(--r-xl); padding: 20px;
}
.review-stars { color: var(--gold); font-size: 14px; margin-bottom: 10px; letter-spacing: 2px; }
.review-text { font-size: 13px; color: var(--t2); line-height: 1.65; margin-bottom: 12px; font-style: italic; font-family: var(--font-i); }
.review-author { font-size: 12px; font-weight: 500; color: var(--t1); }
.review-loc { font-size: 11px; color: var(--t3); margin-top: 2px; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .intent-grid { grid-template-columns: repeat(3,1fr); }
  .fm-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
  /* Viewport overflow protection */
  .hero-outer,
  .hero { max-width: 100vw; overflow-x: hidden; }

  /* Hero — stack vertically */
  .hero { grid-template-columns: 1fr; height: auto; }
  .hero-img-panel {
    height: auto; min-height: unset;
    padding: 24px 24px 0;
    display: flex; align-items: flex-end; justify-content: center;
    overflow: hidden;
  }
  .hero-photo {
    max-height: 300px; width: auto; max-width: 90%;
    object-fit: contain; object-position: center bottom;
    height: auto; position: static; top: auto;
  }
  .hero-img-panel::before { display: none; }
  .hero-badge { top: 12px; left: 12px; font-size: 10px; padding: 4px 8px; }
  .hero:hover .hero-photo { transform: none; }

  /* Text panel — compact */
  .hero-txt-panel {
    padding: 24px 20px 28px;
    background: #0C0A08;
    text-align: center;
    align-items: center;
    overflow: hidden;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .hero-eyebrow { justify-content: center; margin-bottom: 12px; font-size: 10px; }
  .hero-h1 { font-size: 24px; line-height: 1.2; margin-bottom: 12px; word-break: break-word; }
  .hero-sub { font-size: 13px; max-width: 100%; margin-bottom: 22px; text-align: center; padding: 0 8px; }
  .hero-ctas { justify-content: center; gap: 8px; margin-bottom: 24px; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-destiny { font-size: 13px; padding: 11px 20px; }
  .hero-stats { justify-content: center; gap: 24px; }
  .hero-stat-n { font-size: 18px; }
  .hero-stat-l { font-size: 9.5px; }

  /* Intent grid */
  .intent-grid { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .intent-card { padding: 14px 10px 12px; }
  .intent-name { font-size: 11.5px; }
  .intent-sub { font-size: 10px; }

  /* Featured monks */
  .fm-grid { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .fm-card { padding: 14px 10px 12px; }
  .fm-avatar { width: 60px; height: 60px; }
  .fm-name { font-size: 11.5px; }

  /* Ancient + Reviews */
  .ancient-strip { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .ancient-card { aspect-ratio: 2/3; }
  .ancient-card-title { font-size: 13px; }
  .ancient-card-sub { font-size: 9.5px; }
  .ancient-card-overlay { padding: 12px; }
  .reviews-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Beginner strip */
  .beginner-strip-inner { flex-wrap: wrap; padding: 14px 16px; }
  .beginner-title { font-size: 13px; }
  .beginner-sub { font-size: 11.5px; }
  .beginner-cta { margin-left: 0; width: 100%; }
  .beginner-cta .btn-outline { width: 100%; text-align: center; justify-content: center; }
}
/* ── ABOUT THAI AMULETS (SEO content block) ───────────── */
.about-tac { padding-top: 40px; padding-bottom: 24px; }
/* about-tac-inner used to override .container's max-width — now matches the rest of the homepage. Readable measure achieved by capping the prose within. */
.about-tac-inner { /* inherits .container width */ }
.about-tac-eyebrow {
  font-size: 10.5px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--t3); margin-bottom: 8px;
}
.about-tac-title {
  font-family: var(--font-d, Georgia, serif);
  font-size: 26px; line-height: 1.25; color: var(--t1);
  margin: 0 0 16px;
}
/* Prose spans the same full-container width as the section title for left-edge alignment. */
.about-tac-prose { max-width: 100%; }
.about-tac-prose p {
  font-size: 15px; line-height: 1.78; color: var(--t2);
  margin: 0 0 14px;
}
.about-tac-prose strong { color: var(--t1); font-weight: 500; }
.about-tac-prose a { color: var(--gold-dim); border-bottom: 1px solid var(--gold-b); }
.about-tac-prose a:hover { color: var(--gold); }
.about-tac-links { font-size: 14px !important; padding-top: 8px; border-top: .5px solid var(--br); margin-top: 18px; }

/* ── COLLECTOR GUIDES rail — cards-grid lives in learn.css which isn't
   enqueued on the homepage; minimal local rules so the 3-up grid renders. */
.cards-grid {
  display: grid;
  gap: 18px;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid .article-card {
  display: flex; flex-direction: column;
  border: .5px solid var(--br); border-radius: 8px;
  background: #fff; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .18s, border-color .18s;
}
.cards-grid .article-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-b);
}
.cards-grid .article-card-img {
  aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg2);
}
.cards-grid .article-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cards-grid .article-card-body { padding: 14px 16px 16px; }
.cards-grid .article-card-cat {
  font-size: 10.5px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold-dim); margin-bottom: 6px;
}
.cards-grid .article-card-title {
  font-family: var(--font-d, Georgia, serif);
  font-size: 16px; line-height: 1.35; color: var(--t1);
}

/* ── BROWSE BY AMULET TYPE ────────────────────────────── */
.type-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.type-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 16px; border: .5px solid var(--br);
  border-radius: 8px; background: #fff;
  text-decoration: none; color: inherit;
  transition: all .18s;
}
.type-card:hover {
  border-color: var(--gold-b);
  background: var(--gold-l, #FAF5E4);
  transform: translateY(-1px);
}
.type-card-name {
  font-family: var(--font-d, Georgia, serif);
  font-size: 15.5px; color: var(--t1);
}
.type-card-count { font-size: 11.5px; color: var(--t3); }

@media (max-width: 1024px) {
  .type-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .about-tac { padding-top: 24px; }
  .about-tac-title { font-size: 22px; }
  .about-tac-prose p { font-size: 14.5px; line-height: 1.72; }
  .type-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .type-card { padding: 14px 12px; }
  .type-card-name { font-size: 14px; }
  .cards-3 { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 480px) {
  .intent-grid { grid-template-columns: repeat(2,1fr); }
  .fm-grid { grid-template-columns: repeat(2,1fr); }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-destiny { width: 100%; text-align: center; justify-content: center; box-sizing: border-box; }
  .hero-img-panel { padding: 20px 16px 0; }
  .hero-photo { max-height: 240px; max-width: 85%; }
  .hero-h1 { font-size: 23px; }
  .ancient-strip { grid-template-columns: repeat(3,1fr); gap: 6px; }
  .ancient-card-title { font-size: 11px; }
  .ancient-card-sub { font-size: 8.5px; }
  .ancient-card-overlay { padding: 10px; }
}
