/* ============================================================
   HOMEPAGE STYLES
   ============================================================ */

/* ── HERO ── */
.hero {
  background: var(--bg-invert);
  color: var(--ink-on-dark);
  overflow: hidden;
  position: relative;
  padding: clamp(var(--sp-10), 7vw, var(--sp-16)) var(--pad-x) clamp(var(--sp-8), 5vw, var(--sp-12));
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 100%, rgba(196, 82, 42, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%,  rgba(107, 143, 113, 0.12) 0%, transparent 55%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: block;
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-inner--split {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-10);
  text-align: left;
}
.hero-inner--split .hero-sub { margin-left: 0; margin-right: 0; }
.hero-inner--split .hero-actions { justify-content: flex-start; }
.hero-inner--split .hero-trust { justify-content: flex-start; }
.hero-sub { margin-left: auto; margin-right: auto; }
.hero-actions { justify-content: center; }
.hero-trust { justify-content: center; }

/* Hero SVG logo */
.hero-visual-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-svg-img {
  width: clamp(180px, 22vw, 320px);
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 8px 40px rgba(240, 234, 216, 0.10));
  animation: logo-float 7s ease-in-out infinite;
}
.hero-content {}
.hero-headline {
  font-size: var(--text-2xl);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--ink-on-dark);
  margin-bottom: var(--sp-6);
}
.hero-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-muted);
}

.hero-sub {
  font-size: var(--text-md);
  color: rgba(240, 234, 216, 0.65);
  max-width: 48ch;
  margin-bottom: var(--sp-8);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-12);
}
.hero-actions .btn-ghost {
  border-color: rgba(255,255,255,0.25);
  color: var(--ink-on-dark);
}
.hero-actions .btn-ghost:hover {
  border-color: var(--accent-muted);
  color: var(--accent-muted);
  background: transparent;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.hero-trust-item {
  text-align: center;
}
.hero-trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--accent-muted);
}
.hero-trust-item span {
  font-size: var(--text-xs);
  color: rgba(240, 234, 216, 0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-trust-sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
}

/* Hero visual (right column) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-badge-float {
  position: absolute;
  bottom: -20px;
  left: -24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.hero-badge-float-icon { font-size: 1.6rem; }
.hero-badge-float-text strong { display: block; font-size: var(--text-sm); font-weight: 700; color: var(--ink); }
.hero-badge-float-text span  { font-size: var(--text-xs); color: var(--ink-muted); }

/* Large logo mark in hero */
.hero-logo-large {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-logo-img {
  width: clamp(260px, 30vw, 420px);
  height: auto;
  filter:
    drop-shadow(0 20px 60px rgba(240, 234, 216, 0.12))
    drop-shadow(0 4px 20px rgba(240, 234, 216, 0.08));
  animation: logo-float 6s ease-in-out infinite;
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* ── FEATURED TOPICS ── */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.topic-card {
  background: var(--card-bg);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  cursor: pointer;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  text-decoration: none;
  color: inherit;
}
.topic-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.topic-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--sp-2);
}
.topic-icon--terra  { background: var(--accent-bg); }
.topic-icon--sage   { background: var(--sage-bg); }
.topic-icon--warm   { background: #fef9e7; }
.topic-icon--earth  { background: #f0ebe0; }
.topic-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--ink);
}
.topic-card p {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.5;
  flex: 1;
}
.topic-card-arrow {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
  margin-top: var(--sp-2);
  transition: transform var(--t-fast);
}
.topic-card:hover .topic-card-arrow { transform: translateX(4px); }

/* ── FEATURED ARTICLES ── */
.articles-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--sp-5);
}
.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--border-dark);
}
.article-card--hero { grid-row: span 2; }
.article-card--hero .article-body { flex: 1; }

.article-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-offset);
}
.article-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.article-card--hero .article-img-placeholder { aspect-ratio: 4/3; font-size: 5rem; }

/* Placeholder backgrounds */
.img-grow   { background: linear-gradient(135deg, #2d4a2f, #4a6b3d); }
.img-cbd    { background: linear-gradient(135deg, #5a4030, #7a5040); }
.img-law    { background: linear-gradient(135deg, #3a3040, #2a2030); }
.img-gear   { background: linear-gradient(135deg, #303828, #485540); }
.img-recipe { background: linear-gradient(135deg, #4a3820, #6a5030); }

.article-body {
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.article-tag-row { display: flex; gap: var(--sp-2); align-items: center; }
.article-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
  transition: color var(--t-fast);
}
.article-card--hero h3 { font-size: var(--text-xl); }
.article-card:hover h3 { color: var(--accent); }
.article-card p {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.6;
}
.article-meta {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  font-size: var(--text-xs);
  color: var(--ink-faint);
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-faint);
}
.article-meta-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.avatar-max  { background: var(--accent); }
.avatar-leon { background: var(--sage); }

/* ── SHOP PICKS ── */
.shops-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
.shop-card {
  background: var(--card-bg);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.shop-card:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-sm);
}
.shop-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-3);
}
.shop-card-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--ink);
}
.shop-commission-badge {
  flex-shrink: 0;
  padding: 0.2em 0.7em;
  background: var(--sage-bg);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--sage);
}
.shop-card-desc {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.55;
}
.shop-card-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.shop-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-faint);
}
.shop-card-rating {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.stars { color: #c4912a; letter-spacing: 0.05em; }

/* ── NEWSLETTER ── */
.newsletter-box {
  background: var(--bg-invert);
  border-radius: var(--r-xl);
  padding: clamp(var(--sp-6), 3.5vw, var(--sp-12));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
  overflow: hidden;
  position: relative;
}
.newsletter-box::before {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 82, 42, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.newsletter-text h2 {
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--ink-on-dark);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
}
.newsletter-text h2 em { color: var(--accent-muted); font-style: italic; }
.newsletter-text p {
  font-size: var(--text-base);
  color: rgba(240,234,216,0.55);
  max-width: 40ch;
}
.newsletter-form-wrap { position: relative; z-index: 1; }
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.85em 1.2em;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-full);
  color: var(--ink-on-dark);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.newsletter-form input::placeholder { color: rgba(240,234,216,0.3); }
.newsletter-form input:focus {
  border-color: var(--accent-muted);
  background: rgba(255,255,255,0.1);
}
.newsletter-disclaimer {
  font-size: var(--text-xs);
  color: rgba(240,234,216,0.3);
  text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner  { grid-template-columns: 1fr; }
  .hero-inner--split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-inner--split .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-inner--split .hero-actions { justify-content: center; }
  .hero-inner--split .hero-trust { justify-content: center; }
  .hero-svg-img { width: clamp(120px, 30vw, 200px); }
  .hero-type-block { display: none; }
  .hero-badge-float { display: none; }
}
@media (max-width: 768px) {
  .articles-layout { grid-template-columns: 1fr; }
  .article-card--hero { grid-row: span 1; }
  .shops-grid { grid-template-columns: 1fr; }
  .newsletter-box { grid-template-columns: 1fr; }
  .hero-trust { gap: var(--sp-4); }
}
@media (max-width: 480px) {
  .topics-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
}
