/* ==========================================================================
   وعد — homepage (art direction after the supplied reference pack)
   ========================================================================== */

/* ---------- shared bits ---------- */
.btn-gold-solid, .btn-gold-line, .btn-green-line { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; height: 50px; padding: 0 1.7rem; border-radius: 12px; font-family: var(--font-ui); font-weight: 700; font-size: .98rem; text-decoration: none; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; white-space: nowrap; }
.btn-gold-solid i, .btn-gold-line i, .btn-green-line i { font-size: .8rem; transition: transform .25s var(--ease); }
.btn-gold-solid:hover i, .btn-gold-line:hover i, .btn-green-line:hover i { transform: translateX(-4px); }
.btn-gold-solid { background: linear-gradient(180deg, #d8b46c, var(--w-gold)); color: var(--w-deep); border: 1.5px solid #d8b46c; box-shadow: 0 10px 24px rgba(0, 0, 0, .28); }
.btn-gold-solid:hover { background: var(--w-gold-soft); color: var(--w-deep); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .34); }
.btn-gold-line { background: rgba(9, 35, 24, .25); color: var(--w-gold-soft); border: 1.5px solid var(--w-gold); backdrop-filter: blur(2px); }
.btn-gold-line:hover { background: rgba(201, 164, 92, .18); color: #fff; transform: translateY(-2px); }
.btn-green-line { background: transparent; color: var(--w-green); border: 1.5px solid var(--w-green); }
.btn-green-line:hover { background: var(--w-green); color: var(--w-cream); transform: translateY(-2px); }

/* scroll reveal (one-time; content stays visible without JS) */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ---------- section heads ---------- */
.hs { padding-top: clamp(44px, 5.4vw, 84px); }
.hs-head { text-align: center; margin-bottom: clamp(22px, 2.6vw, 34px); }
.hs-head h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.1vw, 2.4rem); line-height: 1.3; color: var(--w-green); display: flex; align-items: center; justify-content: center; gap: 1.1rem; }
.hs-head h2::before, .hs-head h2::after { content: ''; flex: 0 1 clamp(60px, 9vw, 150px); height: 1.5px; background: linear-gradient(90deg, transparent, var(--w-gold)); }
.hs-head h2::after { background: linear-gradient(270deg, transparent, var(--w-gold)); }
.hs-head p { margin: .35rem 0 0; color: var(--w-muted); font-size: .98rem; }
.hs-more { text-align: center; margin: 8px 0 0; }

/* ======================================================================
   HERO
   ====================================================================== */
.hz { --mx: 0; --my: 0; position: relative; height: clamp(480px, 37.5vw, 560px); background: var(--w-deep); overflow: hidden; isolation: isolate; }
.hz-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.hz-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hz-bg { position: absolute; inset: 0; display: block; overflow: hidden; }
.hz-bg img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 28% 42%; transform: translate3d(calc(var(--mx) * -14px), calc(var(--my) * -8px), 0) scale(1.06); transition: transform .9s ease-out; will-change: transform; }
.hz-slide.is-active .hz-bg img { animation: hzKen 14s ease-out both; }
@keyframes hzKen { from { scale: 1.04; } to { scale: 1; } }

/* every slide: the text side (right in RTL) melts into deep forest green so Arabic stays readable */
.hz-shade { position: absolute; inset: 0; background: linear-gradient(270deg, rgba(9, 35, 24, .98) 0%, rgba(9, 35, 24, .93) 26%, rgba(9, 35, 24, .62) 46%, rgba(9, 35, 24, .08) 74%, rgba(9, 35, 24, 0) 100%), linear-gradient(0deg, rgba(9, 35, 24, .55), transparent 38%); }
/* slide 1 (desktop): the supplied scene (1672x941: mosque, Nile, palms, stone steps) is object-fit:cover anchored
   left. --s is its exact scale, so the covers are placed in SOURCE pixels and stay glued to the top stone
   slab (x 90-705, top face y~720) at every width. */
@media (min-width: 992px) {
    .hz { --hh: clamp(480px, 37.5vw, 560px); }
    .hz-discover { --s: max(calc(100vw / 1672), calc(var(--hh) / 941)); --bs: min(var(--s), calc(var(--hh) / 640)); --oy: calc((var(--hh) - 941 * var(--s)) * .85); }
    .hz-discover .hz-bg img { width: 100%; object-position: 0 85%; scale: 1; animation: none !important; transform: none !important; }
    .hz-discover .hz-in { position: static; }
    .hz-discover .hz-books { position: absolute; inset: 0; z-index: 2; display: block; padding: 0; transform: none !important; pointer-events: none; }
    .hz-discover .hz-books::before { content: ''; position: absolute; left: calc(var(--s) * 120); top: 4%; width: calc(var(--s) * 660); height: 80%; background: radial-gradient(closest-side, rgba(255, 207, 120, .3), transparent 78%); pointer-events: none; }
    .hz-discover .bk { position: absolute; pointer-events: auto; margin: 0; }
    .hz-discover .bk-3 { --h: calc(var(--bs) * 330); left: calc(var(--s) * 232 - var(--h) * .333); top: calc(var(--oy) + var(--s) * 706 - var(--h)); --ry: 20deg; z-index: 1; }
    .hz-discover .bk-2 { --h: calc(var(--bs) * 410); left: calc(var(--s) * 430 - var(--h) * .333); top: calc(var(--oy) + var(--s) * 714 - var(--h)); --ry: 15deg; z-index: 3; }
    .hz-discover .bk-1 { --h: calc(var(--bs) * 300); left: calc(var(--s) * 706 - var(--h) * .333); top: calc(var(--oy) + var(--s) * 820 - var(--h)); --ry: 18deg; z-index: 2; }
}
.hz-discover .hz-shade { background: linear-gradient(270deg, rgba(9, 35, 24, .35) 0%, rgba(9, 35, 24, .12) 30%, rgba(9, 35, 24, 0) 50%), linear-gradient(0deg, rgba(9, 35, 24, .3), transparent 20%); }
.hz-grain { position: absolute; inset: 0; opacity: .5; mix-blend-mode: soft-light; background: radial-gradient(60% 80% at 22% 40%, rgba(255, 214, 140, .22), transparent 70%); }

.hz-in { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: clamp(1rem, 3vw, 3rem); padding-bottom: 38px; }
.hz-copy { flex: 0 0 min(46%, 600px); position: relative; z-index: 3; }
.hz-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: 1.28; color: var(--w-cream); text-shadow: 0 6px 32px rgba(0, 0, 0, .45); }
.hz-title .t1, .hz-title .t2 { display: block; }
.hz-title .t2 { background: linear-gradient(180deg, #f6dfa6, var(--w-gold) 70%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: .12em; }
.hz-swash { display: block; width: min(250px, 62%); height: 12px; margin: .35rem 0 1rem; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.hz-swash::before { content: ''; position: absolute; inset-inline: 0; top: 2px; height: 9px; border-radius: 50%; border-bottom: 3px solid var(--w-gold); transform: rotate(-1.6deg); }
.hz-text { margin: 0 0 1.7rem; color: #f0e5cd; font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.95; max-width: 44ch; }
.hz-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.hz.is-ready .hz-slide.is-active .hz-copy > * { animation: hzUp .9s var(--ease) both; }
.hz.is-ready .hz-slide.is-active .hz-copy > :nth-child(2) { animation-delay: .08s; }
.hz.is-ready .hz-slide.is-active .hz-copy > :nth-child(3) { animation-delay: .16s; }
.hz.is-ready .hz-slide.is-active .hz-copy > :nth-child(4) { animation-delay: .26s; }
@keyframes hzUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* 3D book mock-ups: a real box (front cover, fore-edge pages, spine, back) built with CSS 3D transforms */
.hz-books { flex: 1 1 50%; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: clamp(10px, 2.2vw, 36px); padding-bottom: clamp(36px, 6.5vw, 70px); }
.bk { --h: clamp(230px, 23vw, 330px); --d: calc(var(--h) * .105); --ry: 16deg; --rz: 0deg; display: block; position: relative; width: calc(var(--h) * .667); height: var(--h); transform-style: preserve-3d; transform: perspective(1200px) rotateY(var(--ry)) rotateZ(var(--rz)); }
.bk-1 { --h: clamp(215px, 21vw, 305px); --ry: 18deg; }
.bk-2 { --h: clamp(255px, 26vw, 370px); --ry: 14deg; z-index: 2; margin-bottom: 8px; }
.bk-3 { --h: clamp(200px, 19.5vw, 285px); --ry: 20deg; }
.bk-cover { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 2px 5px 5px 2px; background: #173a2a; transform: translateZ(calc(var(--d) / 2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.bk-cover img { width: 100%; height: 100%; object-fit: cover; display: block; background: #102D20; }
.bk-cover::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, 0) 87%, rgba(0, 0, 0, .3) 93.5%, rgba(255, 240, 200, .16) 95.5%, rgba(0, 0, 0, .22) 100%), linear-gradient(108deg, rgba(255, 233, 180, .24) 0, rgba(255, 233, 180, 0) 34%, rgba(0, 0, 0, .26) 100%); }
.bk-l, .bk-r, .bk-b { position: absolute; display: block; pointer-events: none; }
.bk-l { left: calc(var(--d) / -2); top: 1.2%; width: var(--d); height: 97.6%; transform: rotateY(-90deg); background: linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(255, 255, 255, .12) 50%, rgba(0, 0, 0, .3)), repeating-linear-gradient(90deg, #f5ebd0 0 1.5px, #c9b583 1.5px 3px); }
.bk-r { left: calc(100% - var(--d) / 2); top: 0; width: var(--d); height: 100%; transform: rotateY(90deg); background: linear-gradient(90deg, #26402f, #0e2318 60%, #07150e); box-shadow: inset 0 0 0 1px rgba(201, 164, 92, .25); }
.bk-b { inset: 0; transform: translateZ(calc(var(--d) / -2)); background: #0a1a12; }
.bk::after { content: ''; position: absolute; left: -8%; right: -24%; bottom: calc(var(--d) * -.5 - 4px); height: 22px; background: radial-gradient(closest-side, rgba(0, 0, 0, .62), transparent); filter: blur(3px); transform: translateZ(calc(var(--d) / -2)); pointer-events: none; }
.bk-cover .img-fallback { aspect-ratio: auto; height: 100%; border: 0; font-size: .85rem; }

/* controls */
.hz-controls { position: absolute; inset-inline: 0; bottom: 18px; z-index: 6; display: flex; align-items: center; justify-content: center; gap: 1.1rem; pointer-events: none; }
.hz-controls > * { pointer-events: auto; }
.hz-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--w-gold); background: rgba(9, 35, 24, .55); color: var(--w-gold-soft); display: inline-grid; place-items: center; cursor: pointer; transition: all .25s; backdrop-filter: blur(3px); }
.hz-arrow:hover { background: var(--w-gold); color: var(--w-deep); transform: scale(1.06); }
.hz-dots { display: flex; gap: .5rem; align-items: center; }
.hz-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--w-gold); background: transparent; padding: 0; cursor: pointer; transition: all .3s var(--ease); }
.hz-dot.is-active { background: var(--w-gold); width: 28px; border-radius: 6px; }
.hz-count, .hz-bar { display: none; }
@media (min-width: 992px) {
    .hz-controls { inset: 0; display: block; }
    .hz-arrow { position: absolute; bottom: 24px; width: 42px; height: 42px; }
    .hz-prev { left: 30px; } .hz-next { left: 80px; }
    .hz-count { direction: ltr; display: block; position: absolute; left: 138px; bottom: 34px; color: var(--w-cream); font: 600 .95rem var(--font-ui); letter-spacing: .08em; pointer-events: none; }
    .hz-count b { font-weight: 700; }
    .hz-bar { display: block; position: absolute; left: 216px; bottom: 44px; width: 150px; height: 2px; background: rgba(240, 229, 205, .28); overflow: hidden; pointer-events: none; }
    .hz-bar i { display: block; height: 100%; width: 100%; background: var(--w-gold); transform-origin: left; animation: hzBar 5.8s linear both; }
    .hz-dots { position: absolute; right: 4%; bottom: 36px; }
}
@keyframes hzBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ======================================================================
   TRUST BAR
   ====================================================================== */
.tb { background: var(--w-cream); border-bottom: 1px solid var(--w-beige); }
.tb-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.tb-item { display: flex; align-items: center; justify-content: center; gap: .9rem; padding: 1.25rem .5rem; color: var(--w-green); font-weight: 600; font-size: 1rem; position: relative; }
.tb-item svg { color: var(--w-green); flex: none; }
.tb-item + .tb-item::before { content: ''; position: absolute; inset-inline-start: 0; top: 22%; bottom: 22%; width: 1px; background: var(--w-beige); }

/* ======================================================================
   BOOK RAILS (اختيارات وعد / أحدث الإصدارات)
   ====================================================================== */
.rail { --gap: 20px; --per: 5; position: relative; }
.rail-track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 12px 4px 30px; margin-inline: -4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline-offset: -2px; }
.rail-track::-webkit-scrollbar { display: none; }
.hbk { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; scroll-snap-align: start; display: flex; flex-direction: column; background: var(--w-ivory); border: 1px solid var(--w-beige); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 18px rgba(16, 45, 32, .07); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.hbk:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(16, 45, 32, .17); border-color: var(--w-gold); }
.hbk-cover { position: relative; display: block; aspect-ratio: 4 / 4.4; padding: 18px 18px 10px; background: radial-gradient(circle at 50% 30%, #fffaf0 0%, #f4e7cc 100%); overflow: hidden; }
.hbk-cover img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 14px 12px rgba(16, 45, 32, .28)); transition: transform .6s var(--ease); }
.hbk:hover .hbk-cover img { transform: scale(1.06); }
.hbk-cover .img-fallback { aspect-ratio: auto; height: 100%; border-radius: 6px; font-size: .85rem; }
.hbk-badge { position: absolute; top: 12px; right: 12px; z-index: 2; width: 54px; height: 54px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 35% 30%, #d6283c, var(--w-red)); color: #fff; font-weight: 800; font-size: 1.02rem; line-height: 1; box-shadow: 0 0 0 3px rgba(255, 249, 239, .95), 0 8px 16px rgba(181, 22, 38, .4); transform: rotate(-8deg); }
.hbk-badge small { display: block; font-size: .62rem; font-weight: 600; margin-bottom: 2px; }
.hbk-pdf { position: absolute; bottom: 10px; left: 10px; z-index: 2; background: var(--w-green); color: var(--w-gold-soft); font-size: .68rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; }
.hbk-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 18px; text-align: center; }
.hbk-title { margin: 0 0 .25rem; font-family: var(--font-ui); font-size: 1.02rem; font-weight: 700; line-height: 1.5; min-height: 3em; }
.hbk-title a { color: var(--w-green); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hbk-title a:hover { color: #8a6a22; }
.hbk-author { margin: 0 0 .6rem; color: var(--w-muted); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbk-price { margin-top: auto; display: flex; flex-direction: column; align-items: center; min-height: 3.1rem; justify-content: flex-end; margin-bottom: .75rem; }
.hbk-price del { color: #9a948a; font-size: .85rem; text-decoration-thickness: 1.5px; line-height: 1.2; }
.hbk-price strong { color: var(--w-green); font-size: 1.28rem; font-weight: 800; line-height: 1.3; }
.hbk-add { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; height: 44px; border: 0; border-radius: 11px; background: var(--w-green); color: var(--w-cream); font: 700 .92rem var(--font-ui); cursor: pointer; transition: background .25s, color .25s, transform .25s var(--ease), box-shadow .25s; }
.hbk-add i { color: var(--w-gold-soft); transition: transform .25s var(--ease); }
.hbk-add:hover { background: var(--w-gold); color: var(--w-deep); box-shadow: 0 10px 20px rgba(201, 164, 92, .35); }
.hbk-add:hover i { color: var(--w-deep); transform: translateX(-3px); }
.hbk-add:active { transform: scale(.98); }
.hbk-add:disabled { opacity: .7; cursor: progress; }
.hbk-na { display: grid; place-items: center; height: 44px; border-radius: 11px; background: #efe6d3; color: var(--w-red); font-weight: 700; font-size: .88rem; }

.rail-btn { position: absolute; top: 34%; z-index: 4; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--w-beige); background: #fff; color: var(--w-green); box-shadow: 0 8px 20px rgba(16, 45, 32, .16); display: grid; place-items: center; cursor: pointer; transition: all .25s; }
.rail-btn:hover:not(:disabled) { background: var(--w-green); color: var(--w-gold-soft); border-color: var(--w-green); transform: scale(1.06); }
.rail-btn:disabled { opacity: 0; pointer-events: none; }
.rail-prev { right: -18px; } .rail-next { left: -18px; }
@media (min-width: 1400px) { .rail-prev { right: -22px; } .rail-next { left: -22px; } }

@media (max-width: 1279.98px) { .rail { --per: 4; } }
@media (max-width: 991.98px) { .rail { --per: 3.15; --gap: 16px; } .rail-prev { right: 4px; } .rail-next { left: 4px; } }
@media (max-width: 767.98px) {
    .rail { --per: 2.35; --gap: 12px; }
    .rail-btn { display: none; }
    .rail-track { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
    .hbk-cover { padding: 14px 14px 8px; }
    .hbk-body { padding: 10px 10px 14px; }
    .hbk-title { font-size: .9rem; }
    .hbk-price strong { font-size: 1.1rem; }
    .hbk-add { height: 40px; font-size: .82rem; gap: .35rem; }
    .hbk-badge { width: 44px; height: 44px; font-size: .88rem; top: 8px; right: 8px; }
}
@media (max-width: 460px) { .rail { --per: 2.1; } }

/* ======================================================================
   CATEGORIES
   ====================================================================== */
.hc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hc { position: relative; display: block; aspect-ratio: 16 / 11; border-radius: 16px; overflow: hidden; isolation: isolate; text-decoration: none; color: #fff; box-shadow: 0 10px 26px rgba(16, 45, 32, .18); transition: box-shadow .4s, transform .4s var(--ease); }
.hc:hover { transform: translateY(-4px); box-shadow: 0 24px 46px rgba(16, 45, 32, .3); color: #fff; }
.hc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.hc:hover .hc-img { transform: scale(1.1); }
.hc-ov { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(9, 35, 24, .9) 0%, rgba(9, 35, 24, .45) 45%, rgba(9, 35, 24, .12) 100%); transition: opacity .4s; }
.hc:hover .hc-ov { background: linear-gradient(0deg, rgba(9, 35, 24, .82) 0%, rgba(9, 35, 24, .3) 50%, rgba(9, 35, 24, .05) 100%); }
.hc-txt { position: absolute; inset-inline: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 2px; }
.hc-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.25; text-shadow: 0 3px 14px rgba(0, 0, 0, .55); }
.hc-count { font-size: .82rem; color: #e9d9b3; }
.hc-go { position: absolute; top: 14px; left: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(9, 35, 24, .55); border: 1.5px solid var(--w-gold); color: var(--w-gold-soft); backdrop-filter: blur(3px); transition: all .3s var(--ease); }
.hc:hover .hc-go { background: var(--w-gold); color: var(--w-deep); transform: translateX(-4px); }
@media (max-width: 991.98px) { .hc-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } .hc { aspect-ratio: 16 / 10; } }
@media (max-width: 575.98px) { .hc-grid { gap: 10px; } .hc { aspect-ratio: 1 / 1; border-radius: 14px; } .hc-txt { inset-inline: 12px; bottom: 12px; } .hc-name { font-size: 1.2rem; } .hc-go { width: 32px; height: 32px; top: 10px; left: 10px; font-size: .75rem; } }

/* ======================================================================
   EDITORIAL BANNER
   ====================================================================== */
.eb { position: relative; margin-top: clamp(52px, 6vw, 92px); min-height: clamp(270px, 23vw, 330px); background: var(--w-deep); overflow: hidden; isolation: isolate; display: grid; place-items: center; border-block: 2px solid rgba(201, 164, 92, .55); }
.eb-bg, .eb-bg img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -3; }
.eb-bg img { object-fit: cover; object-position: 0 70%; }
.eb-glow { position: absolute; left: 4%; bottom: 8%; width: 34%; height: 70%; z-index: -1; background: radial-gradient(closest-side, rgba(255, 214, 130, .28), transparent 75%); animation: ebPulse 6s ease-in-out infinite alternate; pointer-events: none; }
.eb-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(270deg, rgba(9, 35, 24, .35) 0%, rgba(9, 35, 24, 0) 55%), linear-gradient(0deg, rgba(9, 35, 24, .35), transparent 40%); }
.eb-pulse { animation: ebPulse 6s ease-in-out infinite alternate; transform-origin: center; }
.eb-rays { animation: ebPulse 7s ease-in-out infinite alternate-reverse; }
@keyframes ebPulse { from { opacity: .72; } to { opacity: 1; } }
.eb-dust { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.eb-dust i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #ffe6a6; box-shadow: 0 0 8px 2px rgba(255, 224, 150, .7); opacity: 0; animation: ebDust 9s ease-in-out infinite; }
.eb-dust i:nth-child(1) { left: 10%; bottom: 30%; animation-delay: 0s; } .eb-dust i:nth-child(2) { left: 18%; bottom: 55%; animation-delay: 1.4s; width: 3px; height: 3px; }
.eb-dust i:nth-child(3) { left: 26%; bottom: 40%; animation-delay: 2.8s; } .eb-dust i:nth-child(4) { left: 34%; bottom: 62%; animation-delay: 4.2s; width: 3px; height: 3px; }
.eb-dust i:nth-child(5) { left: 14%; bottom: 70%; animation-delay: 5.6s; } .eb-dust i:nth-child(6) { left: 30%; bottom: 25%; animation-delay: 7s; width: 3px; height: 3px; }
.eb-dust i:nth-child(7) { left: 22%; bottom: 48%; animation-delay: 3.5s; } .eb-dust i:nth-child(8) { left: 8%; bottom: 50%; animation-delay: 6.3s; width: 3px; height: 3px; }
@keyframes ebDust { 0% { opacity: 0; transform: translateY(14px); } 25% { opacity: .9; } 100% { opacity: 0; transform: translateY(-46px); } }
.eb-in { text-align: center; padding-block: 3rem; position: relative; justify-self: stretch; padding-inline-end: 42%; }
.eb-in > * { margin-inline: auto; }
.eb-in h2 { margin: 0 0 .5rem; font-family: var(--font-display); font-weight: 700; color: var(--w-cream); font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.3; text-shadow: 0 5px 26px rgba(0, 0, 0, .5); }
.eb-in p { margin: 0 0 1.5rem; color: #eadfc4; font-size: clamp(1rem, 1.4vw, 1.15rem); }
@media (max-width: 767.98px) {
    .eb { min-height: 330px; }
        .eb-bg img { object-position: 12% 70%; }
        .eb-in { padding-block: 2.4rem; padding-inline-end: var(--gutter, 16px); }
    .eb-shade { background: linear-gradient(180deg, rgba(9, 35, 24, .55), rgba(9, 35, 24, .8)); }
}

/* ======================================================================
   TESTIMONIALS (rendered only with real reviews)  &  NEWSLETTER (only with a real endpoint)
   ====================================================================== */
.rail-reviews { --per: 3; }
.rv-card { flex: 0 0 calc((100% - 2 * var(--gap)) / 3); margin: 0; scroll-snap-align: start; background: var(--w-ivory); border: 1px solid var(--w-beige); border-radius: 16px; padding: 20px 22px; box-shadow: 0 6px 18px rgba(16, 45, 32, .06); }
.rv-top { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.rv-top img, .rv-ph { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.rv-ph { display: grid; place-items: center; background: var(--w-green); color: var(--w-gold-soft); font-weight: 700; }
.rv-top figcaption { font-weight: 700; color: var(--w-green); }
.rv-card blockquote { margin: 0 0 .7rem; color: var(--w-ink); line-height: 1.9; font-size: .95rem; }
.rv-stars { color: var(--w-gold); font-size: .85rem; } .rv-stars .off { color: #d9ccb0; }
@media (max-width: 991.98px) { .rv-card { flex-basis: calc((100% - var(--gap)) / 2); } }
@media (max-width: 575.98px) { .rv-card { flex-basis: 86%; } }

.nl { margin-top: clamp(48px, 5vw, 80px); background: radial-gradient(110% 160% at 100% 0%, #173f2c, var(--w-deep) 65%); border-block: 2px solid rgba(201, 164, 92, .45); }
.nl-in { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 2rem; padding-block: 2.6rem; }
.nl h2 { margin: 0 0 .35rem; font-family: var(--font-display); color: var(--w-cream); font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.nl p { margin: 0; color: #d9ccb0; }
.nl-form { display: flex; gap: .6rem; background: rgba(255, 255, 255, .07); border: 1px solid rgba(201, 164, 92, .45); border-radius: 14px; padding: .4rem; }
.nl-form input { flex: 1; min-width: 0; border: 0; background: #fff9ef; border-radius: 10px; padding: 0 1rem; height: 48px; font: 400 .95rem var(--font-ui); }
.nl-form input:focus { outline: 2px solid var(--w-gold); }
.nl-form button { height: 48px; padding: 0 1.4rem; border: 0; border-radius: 10px; background: var(--w-gold); color: var(--w-deep); font: 700 .95rem var(--font-ui); cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; transition: background .25s; }
.nl-form button:hover { background: var(--w-gold-soft); }
@media (max-width: 767.98px) { .nl-in { grid-template-columns: 1fr; text-align: center; } .nl-form { flex-direction: column; } .nl-form button { justify-content: center; } }

/* ---------- optional promo tiles (admin-uploaded images) ---------- */
.promos { margin-top: 2rem; }
.promos-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.promos-1 { grid-template-columns: 1fr; }
.promo-tile { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--w-beige); box-shadow: 0 10px 26px rgba(16, 45, 32, .1); }
/* a tile is only visible once its image has really loaded: no empty box, no flicker */
.promo-tile { opacity: 0; transition: opacity .35s ease; }
.promo-tile.is-loaded { opacity: 1; }
.promo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16 / 7; }
@media (min-width: 992px) { .promos-3 { grid-template-columns: repeat(3, 1fr); } .promos-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- SEO copy (kept for search engines, styled quietly) ---------- */
.seo-content { padding: clamp(44px, 5vw, 72px) 0 0; color: #4a463b; }
.seo-content h2 { font-size: 1.6rem; text-align: center; margin-bottom: 1.2rem; }
.seo-content h3 { font-size: 1.25rem; margin-top: 1.6rem; color: var(--w-green); }
.seo-content h4 { font-size: 1.1rem; color: var(--w-green); }
.seo-content p, .seo-content li { line-height: 2; }
.seo-content .seo-highlight { background: var(--w-ivory); border: 1px solid var(--w-beige); border-inline-start: 4px solid var(--w-gold); border-radius: 12px; padding: 1rem 1.3rem; margin: 1.3rem 0; }

/* ======================================================================
   PHONE + TABLET HERO (dedicated composition: covers on top, copy below)
   ====================================================================== */
@media (max-width: 991.98px) {
    .hz { height: clamp(430px, 62vw, 520px); }
    .hz-bg img, .hz-discover .hz-bg img { object-position: 12% 40%; }
    .hz-shade, .hz-discover .hz-shade { background: linear-gradient(270deg, rgba(9, 35, 24, .92) 0%, rgba(9, 35, 24, .78) 42%, rgba(9, 35, 24, .15) 78%, rgba(9, 35, 24, .05) 100%), linear-gradient(0deg, rgba(9, 35, 24, .65), transparent 30%); }
    .hz-in { flex-direction: row; justify-content: space-between; align-items: center; gap: 10px; padding-block: 18px 78px; }
    .hz-copy { flex: 1 1 58%; max-width: none; }
    .hz-books { flex: 0 0 38%; height: 100%; width: auto; padding: 0 0 4px; transform: none; justify-content: center; align-items: flex-end; perspective: 1000px; }
    .bk-1, .bk-3 { display: none; }
    .bk-2, .hz-discover .bk-2 { position: relative; left: auto; top: auto; --h: clamp(190px, 44vw, 300px); --ry: 16deg; margin: 0 0 6px; }
    .hz-title { font-size: clamp(1.8rem, 6.4vw, 3.2rem); }
    .hz-swash { margin-bottom: .5rem; width: 130px; }
    .hz-text { font-size: clamp(.88rem, 2.3vw, 1.08rem); line-height: 1.8; margin-bottom: 1rem; max-width: none; }
    .hz-cta { flex-wrap: nowrap; gap: .5rem; }
    .hz-cta .btn-gold-line { display: none; }
    .btn-gold-solid, .btn-gold-line { flex: 1 1 0; padding: 0 .8rem; font-size: .95rem; height: 46px; }
    .hz-controls { bottom: 14px; justify-content: space-between; padding-inline: var(--gutter); }
    .hz-arrow { width: 40px; height: 40px; }
}
@media (max-width: 767.98px) {
    .tb-in { grid-template-columns: 1fr; padding-block: .3rem; }
    .tb-item { justify-content: flex-start; padding: .8rem .4rem; }
    .tb-item + .tb-item::before { inset: 0 0 auto 0; width: auto; height: 1px; }
    .tb-item svg { width: 30px; height: 30px; }
}
@media (max-width: 400px) { .hz-title { font-size: 1.75rem; } .bk-2, .hz-discover .bk-2 { --h: 178px; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .js .rv { opacity: 1; transform: none; transition: none; }
    .hz-slide, .hz-bg img, .hz-books { transition: none; transform: none !important; }
    .hz-slide.is-active .hz-bg img, .eb-pulse, .eb-rays, .eb-dust i, .hz.is-ready .hz-slide.is-active .hz-copy > * { animation: none !important; }
    .hbk, .hc, .hc-img, .hbk-cover img { transition: none; }
}
