/* ===== Terma Coffee: home page (21 Nov 2026 redesign) ===== */
.hm { padding-top: var(--hdr, 70px); overflow-x: hidden; }
.hm h1, .hm h2, .hm h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; letter-spacing: .2px; }
.hm h1 span, .hm h2 span { color: var(--accent); font-style: italic; }
.hm-eyebrow { display: inline-block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); font-weight: 700; }
.hm-eyebrow i { margin-right: 6px; }

/* HERO */
.hm-hero { max-width: 1200px; margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hm-hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.08; margin: 14px 0 16px; }
.hm-lead { font-size: 1.08rem; color: #e4d8c8; max-width: 520px; }
.hm-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hm-cta .btn { padding: 15px 28px; }
.hm-proof { list-style: none; display: flex; gap: 34px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(201,154,83,.25); }
.hm-proof strong { display: block; font-family: Georgia, serif; font-size: 1.7rem; color: var(--accent-2); line-height: 1.1; }
.hm-proof span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hm-hero-img { position: relative; }
.hm-hero-img::before { content: ""; position: absolute; inset: 8% 4% 2%; background: radial-gradient(closest-side, rgba(201,154,83,.35), transparent 70%); filter: blur(30px); }
.hm-hero-img img { position: relative; width: 100%; display: block; border-radius: 22px; border: 1px solid rgba(201,154,83,.35); box-shadow: 0 30px 70px rgba(0,0,0,.55); }

/* TRUST STRIP */
.hm-trust { max-width: 1200px; margin: 10px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hm-trust > div { background: rgba(20,16,12,.6); border: 1px solid var(--border); border-radius: 14px; padding: 18px 16px; display: flex; flex-direction: column; gap: 2px; align-items: center; text-align: center; }
.hm-trust i { font-size: 22px; color: var(--accent); margin-bottom: 6px; }
.hm-trust b { font-size: 14px; }
.hm-trust span { font-size: 12px; color: var(--muted); }

/* SECTIONS */
.hm-sec { max-width: 1200px; margin: 0 auto; padding: 64px 24px 8px; scroll-margin-top: calc(var(--hdr, 70px) + 10px); }
.hm-head { text-align: center; margin-bottom: 30px; }
.hm-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 8px 0 6px; line-height: 1.15; }
.hm-head p { color: var(--muted); }

/* CATEGORIES */
.hm-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hm-cat { position: relative; height: 340px; border-radius: 20px; overflow: hidden; display: flex; align-items: flex-end; border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.hm-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.hm-cat:hover img { transform: scale(1.07); }
.hm-cat-ov { position: relative; width: 100%; padding: 26px; background: linear-gradient(180deg, transparent, rgba(15,10,6,.55) 35%, rgba(15,10,6,.94)); }
.hm-cat-ov small { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); }
.hm-cat-ov h3 { font-size: 1.9rem; color: #fff; line-height: 1.1; margin: 4px 0; }
.hm-cat-ov p { font-size: 14px; color: #e9dcc9; }
.hm-cat-ov span { display: inline-block; margin-top: 12px; font-weight: 800; font-size: 14px; color: var(--accent); }
.hm-cat:hover .hm-cat-ov span { color: var(--accent-2); }
.hm-cat-ov span i { margin-left: 4px; transition: margin .2s; }
.hm-cat:hover .hm-cat-ov span i { margin-left: 9px; }

/* SIZES */
.hm-size-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.hm-size { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 30px 20px 24px; text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center; transition: transform .2s, border-color .2s; }
.hm-size:hover { transform: translateY(-5px); border-color: var(--accent); }
.hm-size i { font-size: 26px; color: var(--accent); margin-bottom: 6px; }
.hm-size strong { font-family: Georgia, serif; font-size: 1.7rem; }
.hm-size em { font-style: normal; font-size: 1.25rem; font-weight: 800; color: var(--accent-2); }
.hm-size span { font-size: 13px; color: var(--muted); }
.hm-size-pop { border-color: var(--accent); background: linear-gradient(180deg, #2b2016, var(--surface)); box-shadow: 0 14px 40px rgba(201,154,83,.18); }
.hm-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1a1a1a; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }

/* STORY */
.hm-story-card { text-align: center; max-width: 760px; margin: 0 auto; padding: 44px 34px; border-radius: 22px; background: rgba(20,16,12,.62); border: 1px solid rgba(201,154,83,.28); }
.hm-story-card h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 10px 0 14px; line-height: 1.2; }
.hm-story-card p { color: #e4d8c8; margin-bottom: 22px; }

/* REVIEWS */
.hm-rev { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hm-rev a { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #000; aspect-ratio: 3 / 4; }
.hm-rev img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .5s ease; }
.hm-rev a:hover img { transform: scale(1.05); }
.hm-more { text-align: center; margin-top: 18px; }
.hm-more a { color: var(--accent); font-weight: 700; }
.hm-more a:hover { color: var(--accent-2); }

/* STEPS */
.hm-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hm-steps li { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px 22px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.hm-steps i { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: #1a1a1a; background: linear-gradient(135deg, var(--accent), var(--accent-2)); margin-bottom: 6px; }
.hm-steps b { font-family: Georgia, serif; font-size: 1.15rem; }
.hm-steps span { font-size: 14px; color: var(--muted); }

/* FINAL CTA */
.hm-final { max-width: 1100px; margin: 70px auto 60px; padding: 52px 24px; text-align: center; border-radius: 24px; background: linear-gradient(135deg, rgba(201,154,83,.2), rgba(20,16,12,.7)); border: 1px solid rgba(201,154,83,.35); }
.hm-final h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
.hm-final p { color: #e4d8c8; margin-top: 6px; }
.hm-final .hm-cta { justify-content: center; }

/* FLOATING WHATSAPP */
.hm-wa { position: fixed; right: 18px; bottom: 18px; z-index: 900; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 30px; box-shadow: 0 10px 28px rgba(0,0,0,.45); transition: transform .2s; }
.hm-wa:hover { transform: scale(1.1); }

/* TABLET & PHONE */
@media (max-width: 900px) {
  .hm-hero { grid-template-columns: 1fr; padding: 28px 18px 24px; gap: 26px; text-align: center; }
  .hm-lead { margin: 0 auto; }
  .hm-hero .hm-cta { justify-content: center; }
  .hm-proof { justify-content: center; }
  .hm-hero-img { order: -1; max-width: 520px; margin: 0 auto; }
  .hm-trust { grid-template-columns: repeat(2, 1fr); padding: 0 16px; }
  .hm-sec { padding: 48px 16px 4px; }
  .hm-cats { grid-template-columns: 1fr; gap: 14px; }
  .hm-cat { height: 210px; align-items: center; }
  .hm-cat-ov { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 20px 22px; background: linear-gradient(90deg, rgba(15,10,6,.93) 0%, rgba(15,10,6,.7) 55%, rgba(15,10,6,.1) 100%); }
  .hm-cat-ov h3 { font-size: 1.6rem; }
  .hm-cat-ov p { max-width: 62%; font-size: 13px; }
  .hm-size-row { grid-template-columns: 1fr; gap: 22px; max-width: 420px; }
  .hm-rev { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hm-steps { grid-template-columns: 1fr; gap: 14px; }
  .hm-story-card { padding: 32px 20px; }
  .hm-final { margin: 50px 16px 44px; padding: 40px 18px; }
}
@media (max-width: 400px) {
  .hm-hero h1 { font-size: 2.1rem; }
  .hm-cta .btn { width: 100%; }
  .hm-proof { gap: 22px; }
}

/* ===== more sections (21 Nov) ===== */
.hm-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hm-why > div { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px 24px; }
.hm-why b { font-family: Georgia, serif; font-size: 2.4rem; color: var(--accent); opacity: .85; line-height: 1; }
.hm-why h3 { font-size: 1.25rem; margin: 10px 0 8px; }
.hm-why p { color: var(--muted); font-size: 14.5px; }

.hm-roasts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hm-roasts a { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px 18px; text-align: center; transition: transform .2s, border-color .2s; }
.hm-roasts a:hover { transform: translateY(-5px); border-color: var(--accent); }
.hm-roasts i { display: block; width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 55%, #0003); box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.hm-roasts h3 { font-size: 1.15rem; }
.hm-roasts p { font-size: 13px; color: var(--muted); margin-top: 4px; }

.hm-brew { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 800px; margin: 0 auto; }
.hm-brew li { padding: 10px 20px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 14px; font-weight: 600; }

.hm-vids { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hm-vids a { position: relative; display: block; aspect-ratio: 9 / 14; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); }
.hm-vids img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.hm-vids a:hover img { transform: scale(1.06); }
.hm-vids a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15,10,6,.6)); }
.hm-vids i { position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 40px; color: #fff; text-shadow: 0 4px 14px rgba(0,0,0,.6); transition: transform .2s; }
.hm-vids a:hover i { transform: translateX(-50%) scale(1.15); }

.hm-faq-sec { max-width: 820px; }
.hm-faq { display: flex; flex-direction: column; gap: 10px; }
.hm-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; }
.hm-faq details[open] { border-color: var(--accent); }
.hm-faq summary { cursor: pointer; list-style: none; padding: 17px 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: "+"; font-size: 22px; color: var(--accent); line-height: 1; }
.hm-faq details[open] summary::after { content: "\2212"; }
.hm-faq p { padding: 0 0 18px; color: #d9cdbd; font-size: 14.5px; }

.hm-visit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hm-visit > div { background: rgba(20,16,12,.6); border: 1px solid var(--border); border-radius: 16px; padding: 22px 16px; text-align: center; display: flex; flex-direction: column; gap: 3px; align-items: center; }
.hm-visit i { font-size: 24px; color: var(--accent); margin-bottom: 6px; }
.hm-visit span, .hm-visit a { color: var(--muted); font-size: 14px; }
.hm-visit a:hover { color: var(--accent-2); }

@media (max-width: 900px) {
  .hm-why { grid-template-columns: 1fr; gap: 14px; }
  .hm-roasts { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hm-vids { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hm-visit { grid-template-columns: 1fr; }
}

/* ===== square boxes, two per row on phones (21 Nov) ===== */
.hm-why { grid-template-columns: repeat(4, 1fr); }
.hm-steps { grid-template-columns: repeat(4, 1fr); }
.hm-visit { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .hm-why, .hm-steps, .hm-visit { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hm-why > div, .hm-steps li, .hm-visit > div { aspect-ratio: 1 / 1; padding: 14px 12px; justify-content: center; align-items: center; text-align: center; overflow: hidden; }
  .hm-why b { font-size: 1.6rem; }
  .hm-why h3 { font-size: 1rem; margin: 4px 0; line-height: 1.2; }
  .hm-why p { font-size: 12px; line-height: 1.35; }
  .hm-steps i { width: 44px; height: 44px; font-size: 17px; margin-bottom: 2px; }
  .hm-steps b { font-size: 1rem; }
  .hm-steps span { font-size: 12px; line-height: 1.35; }
  .hm-visit i { font-size: 26px; }
  .hm-visit b { font-size: 14px; }
  .hm-visit span, .hm-visit a { font-size: 12.5px; }
  .hm-size-row { grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: none; }
  .hm-size { padding: 22px 6px 16px; border-radius: 16px; }
  .hm-size i { font-size: 20px; }
  .hm-size strong { font-size: 1.2rem; }
  .hm-size em { font-size: .95rem; }
  .hm-size span { font-size: 11px; line-height: 1.25; }
  .hm-tag { font-size: 9px; padding: 3px 8px; }
}

/* ===== offer bar, badges, best sellers, stars (21 Nov) ===== */
.hm-bar { background: linear-gradient(90deg, #7a5524, var(--accent), #7a5524); color: #1a1208; text-align: center; font-size: 13.5px; font-weight: 600; padding: 9px 14px; }
.hm-bar i { margin-right: 6px; }
.hm-bar span { opacity: .8; }
.hm-badges { list-style: none; max-width: 1200px; margin: 18px auto 0; padding: 0 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hm-badges li { padding: 8px 16px; border-radius: 99px; border: 1px solid rgba(201,154,83,.4); background: rgba(201,154,83,.08); font-size: 13px; font-weight: 600; color: var(--accent-2); }
.hm-badges i { margin-right: 6px; }
.hm-stars { color: #f2b84b; font-size: 18px; letter-spacing: 3px; margin: 4px 0 8px; }
.hm-best { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hm-loading { grid-column: 1 / -1; text-align: center; color: var(--muted); }
.hm-prod { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, transform .2s; }
.hm-prod:hover { border-color: var(--accent); transform: translateY(-4px); }
.hm-prod-img { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.hm-prod-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-prod h3 { font-size: 1.02rem; line-height: 1.25; min-height: 2.5em; }
.hm-f { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hm-f select { width: 100%; font: inherit; font-size: 13.5px; letter-spacing: 0; text-transform: none; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 8px 8px; }
.hm-prod-foot { margin-top: auto; padding-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hm-price { color: var(--accent-2); font-size: 1.1rem; }
.hm-add { font: inherit; font-weight: 700; font-size: 13.5px; border: none; cursor: pointer; padding: 9px 14px; border-radius: 10px; color: #1a1a1a; background: linear-gradient(135deg, var(--accent), var(--accent-2)); transition: transform .15s; }
.hm-add:hover { transform: translateY(-2px); }
.hm-add.done { background: var(--green); color: #fff; }
.hm-add:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 900px) {
  .hm-best { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hm-prod { padding: 9px 9px 11px; border-radius: 15px; gap: 6px; }
  .hm-prod h3 { font-size: .92rem; }
  .hm-f select { font-size: 12.5px; padding: 7px 5px; }
  .hm-add { padding: 8px 10px; font-size: 12.5px; }
  .hm-price { font-size: .98rem; }
  .hm-bar { font-size: 12px; padding: 8px 10px; }
  .hm-badges { padding: 0 14px; gap: 8px; }
  .hm-badges li { font-size: 12px; padding: 7px 12px; }
}
