/* Custom homepage — egcoffee.com. All selectors namespaced under .hc-* /
   #hc-home to avoid colliding with shared theme classes in style.css
   (confirmed .section-title, .review-title etc. already exist there). */
#hc-home {
  --hc-bg: #fbf6ec;
  --hc-bg-deep: #2a1b12;
  --hc-ink: #2a1b12;
  --hc-ink-soft: #6b5847;
  --hc-accent: #8a4a24;
  --hc-accent-2: #c98a3e;
  --hc-line: #e6d9c3;
  --hc-card: #fffdf9;
  --hc-font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  background: var(--hc-bg);
  color: var(--hc-ink);
}
#hc-home * { box-sizing: border-box; }
#hc-home a { color: inherit; text-decoration: none; }
#hc-home .hc-frame { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

#hc-home .hc-eyebrow {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--hc-accent-2);
}
#hc-home .hc-heading {
  font-family: var(--hc-font-display);
  font-size: clamp(24px, 3vw, 32px);
  margin: 6px 0 4px;
  text-wrap: balance;
}
#hc-home .hc-desc { color: var(--hc-ink-soft); font-size: 14.5px; max-width: 60ch; }

#hc-home .hc-ph-img {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--hc-ph-1, #ddd), var(--hc-ph-2, #ccc));
  overflow: hidden;
}
#hc-home .hc-ph-img img { width: 100%; height: 100%; object-fit: cover; }
#hc-home .hc-ph-img svg { width: 34%; height: 34%; opacity: 0.85; }

/* hero */
#hc-home .hc-hero {
  background:
    radial-gradient(circle at 14% 20%, rgba(201,138,62,0.16), transparent 42%),
    radial-gradient(circle at 92% 78%, rgba(138,74,36,0.14), transparent 40%),
    var(--hc-bg-deep);
  color: #f4e9d8; padding: 64px 28px 60px;
}
#hc-home .hc-hero .hc-eyebrow { color: var(--hc-accent-2); }
#hc-home .hc-hero-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
#hc-home .hc-hero h1 {
  font-family: var(--hc-font-display); font-weight: 700; text-wrap: balance;
  font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; margin: 8px 0 16px;
  color: #f4e9d8;
}
#hc-home .hc-hero p { color: #d9c6ab; font-size: 15.5px; max-width: 46ch; margin: 0 0 22px; }
#hc-home .hc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--hc-accent-2); color: #2a1b12; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; font-size: 14px;
}
#hc-home .hc-hero-card { border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.35); }
#hc-home .hc-hero-card .hc-ph-img { aspect-ratio: 4/5; }
#hc-home .hc-hero-card .hc-cap { background: var(--hc-card); color: var(--hc-ink); padding: 16px 18px; }
#hc-home .hc-hero-card .hc-tag { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--hc-accent); }
#hc-home .hc-hero-card .hc-title { font-family: var(--hc-font-display); font-size: 17px; font-weight: 700; margin: 4px 0 0; }

/* category grid */
#hc-home .hc-cats { padding: 46px 28px 10px; }
#hc-home .hc-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 20px; }
#hc-home .hc-cat-card {
  display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; border-radius: 14px;
  background: var(--hc-card); border: 1px solid var(--hc-line);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
#hc-home .hc-cat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); border-color: var(--hc-accent); }
#hc-home .hc-cat-icon {
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: rgba(138,74,36,0.14); color: var(--hc-accent);
}
#hc-home .hc-cat-icon svg { width: 20px; height: 20px; }
#hc-home .hc-cat-name { font-weight: 700; font-size: 14.5px; }

/* latest reviews */
#hc-home .hc-latest { padding: 46px 28px 60px; }
#hc-home .hc-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
#hc-home .hc-review-card .hc-ph-img { border-radius: 12px; aspect-ratio: 4/3; margin-bottom: 12px; }
#hc-home .hc-review-card .hc-tag { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--hc-accent); }
#hc-home .hc-review-card .hc-title { font-size: 15.5px; font-weight: 700; line-height: 1.35; margin: 4px 0 0; }

@media (max-width: 760px) {
  #hc-home .hc-hero-split { grid-template-columns: 1fr; }
  #hc-home .hc-review-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  #hc-home .hc-review-grid { grid-template-columns: 1fr; }
}
