/* Iremia TNT — Hopf sphere homepage. Loaded after styles.css; scoped to body.hopf.
   Palette from styles.css: gold #d7c58c, gold-strong #b7923d, gold-soft #f5e6b8,
   charcoal #2d2925, charcoal-deep #171411, panel #fffdf9, text #1e1b18. */
body.hopf {
    background: #0e0c0a;
    color: var(--gold-soft);
    overflow-x: hidden;
}
body.hopf::before { display: none; }

.hh-skip {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    background: var(--gold); color: #1c1814; padding: 8px 14px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.hh-skip:focus { top: 12px; }

/* ---------- Header (logo + legal name + always-visible Book a call) ---------- */
.hh-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 60;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px clamp(14px, 3vw, 40px);
    background: linear-gradient(180deg, rgba(14, 12, 10, 0.92) 0%, rgba(14, 12, 10, 0.55) 70%, rgba(14, 12, 10, 0) 100%);
}
.hh-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gold-soft); min-width: 0; }
.hh-logo-mark {
    width: 44px; height: 44px; border-radius: 50%; flex: 0 0 44px;
    border: 1px solid rgba(215, 197, 140, 0.35); box-shadow: 0 0 18px rgba(215, 197, 140, 0.18);
}
.hh-wordmark { display: flex; flex-direction: column; line-height: 1.15; }
.hh-logo-text { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; letter-spacing: 0.18em; color: var(--gold-soft); }
.hh-logo-sub { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.28em; color: rgba(215, 197, 140, 0.72); }
.hh-legal { font-size: 0.75rem; letter-spacing: 0.03em; color: rgba(245, 230, 184, 0.85); margin-top: 3px; white-space: nowrap; }

.hh-header .hh-nav { display: flex; align-items: center; gap: 18px; position: static; background: none; box-shadow: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hh-nav a { color: var(--gold-soft); text-decoration: none; font-weight: 700; font-size: 0.92rem; letter-spacing: 0.03em; }
.hh-nav a:hover { color: #fff; }
.hh-nav a.hh-book {
    display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border-radius: 999px;
    background: linear-gradient(135deg, var(--gold) 0%, #eddb9d 100%); color: #1c1814;
    box-shadow: 0 0 0 1px rgba(245, 230, 184, 0.4), 0 0 16px rgba(215, 197, 140, 0.2);
}
.hh-nav a.hh-book:hover, .hh-nav a.hh-book:focus-visible { color: #1c1814; background: linear-gradient(135deg, #e2d39f 0%, #f3e5b2 100%); }

/* ---------- Stage ---------- */
.hh-stage {
    position: relative; height: 100vh; height: 100svh; min-height: 620px; padding: 0;
    overflow: hidden; border: 0; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
    background: radial-gradient(ellipse at 50% 56%, #1f1b17 0%, #120f0d 55%, #0b0908 100%);
}
.hh-stage.is-dragging { cursor: grabbing; }
.hh-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hh-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(circle at 50% var(--cy, 56%), rgba(215, 197, 140, 0.10) 0%, rgba(215, 197, 140, 0) 38%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.72) 100%);
}
.no-gl .hh-glow { background: radial-gradient(circle at 50% 56%, rgba(215, 197, 140, 0.35) 0%, rgba(183, 146, 61, 0.12) 22%, transparent 45%), radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(0,0,0,.72) 100%); }

.hh-intro {
    position: absolute; left: 50%; top: 96px; transform: translateX(-50%);
    width: min(820px, 92vw); text-align: center; pointer-events: none; z-index: 3;
}
.hh-intro h1 {
    font-size: clamp(1.35rem, 2.3vw, 2.2rem); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 8px;
    color: #fbf3d8; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8);
}
.hh-lede { font-size: clamp(0.95rem, 1.1vw, 1.05rem); line-height: 1.55; color: rgba(245, 230, 184, 0.88); margin: 0 auto; max-width: 640px; text-shadow: 0 1px 12px rgba(0,0,0,.9); }

/* ---------- Tabs around the sphere ---------- */
.hh-tabs { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
/* Each tab is a satellite: JS sets its transform every frame from the sphere's rotation. */
.hh-tab {
    position: absolute; left: 0; top: 0; will-change: transform;
    pointer-events: none; touch-action: none;
    padding: 0; border: 0; background: none; cursor: pointer; font: inherit;
    border-radius: 999px;
}
.hh-tab > span { opacity: 0; filter: blur(6px); scale: 0.6; }
.hh-tab > span {
    position: relative; display: inline-block; overflow: hidden;
    padding: 11px 22px; border-radius: 999px;
    font-weight: 700; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
    color: var(--gold-soft);
    background: rgba(23, 20, 17, 0.62);
    border: 1px solid rgba(215, 197, 140, 0.45);
    box-shadow: 0 0 0 0 rgba(215, 197, 140, 0), inset 0 0 18px rgba(215, 197, 140, 0.08);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: background .25s ease, color .25s ease, box-shadow .3s ease, border-color .25s ease, opacity .45s ease, filter .45s ease, scale .55s cubic-bezier(.2, 1.4, .4, 1);
}
/* glow sweep that runs across each tab as it appears */
.hh-tab > span::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%;
    background: linear-gradient(100deg, transparent 0%, rgba(245, 230, 184, 0.85) 50%, transparent 100%);
    transform: skewX(-18deg); opacity: 0; pointer-events: none;
}
.hh-tab.is-on { pointer-events: auto; }
.hh-tab.is-on > span { opacity: var(--depth, 1); filter: none; scale: 1; transition-delay: 0s; animation: hh-pop-glow 1.1s ease-out both; }
.hh-tab.is-on > span::after { animation: hh-sweep 0.9s ease-out 0.1s both; }
.hh-tab:hover > span, .hh-tab:focus-visible > span, .hh-tab[aria-selected="true"] > span {
    background: linear-gradient(135deg, var(--gold) 0%, #eddb9d 100%); color: #1c1814; border-color: #f5e6b8;
    box-shadow: 0 0 28px rgba(215, 197, 140, 0.55);
}
.hh-tab:focus-visible { outline: 3px solid rgba(245, 230, 184, 0.8); outline-offset: 4px; }
@keyframes hh-sweep { 0% { left: -60%; opacity: 1; } 100% { left: 120%; opacity: 0; } }
@keyframes hh-pop-glow {
    0% { box-shadow: 0 0 0 0 rgba(215, 197, 140, 0.9), inset 0 0 18px rgba(215, 197, 140, 0.4); }
    40% { box-shadow: 0 0 34px 6px rgba(215, 197, 140, 0.55), inset 0 0 18px rgba(215, 197, 140, 0.3); }
    100% { box-shadow: 0 0 14px 0 rgba(215, 197, 140, 0.18), inset 0 0 18px rgba(215, 197, 140, 0.08); }
}

.hh-hint {
    position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%);
    z-index: 3; pointer-events: none; margin: 0;
    padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; letter-spacing: 0.06em;
    color: rgba(245, 230, 184, 0.9); background: rgba(14, 12, 10, 0.45); border: 1px solid rgba(215, 197, 140, 0.25);
    white-space: nowrap; transition: opacity .6s ease; animation: hh-breathe 2.6s ease-in-out infinite;
}
.hh-hint.is-gone, .all-on .hh-hint { opacity: 0; animation: none; }
.hh-hint-icon { display: inline-block; margin-right: 6px; }
@keyframes hh-breathe { 50% { opacity: 0.55; } }

.hh-cta {
    position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 5;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hh-cta-btn {
    display: inline-flex; align-items: center; min-height: 48px; padding: 12px 28px; border-radius: 999px;
    background: linear-gradient(135deg, var(--gold) 0%, #eddb9d 100%); color: #1c1814; font-weight: 800;
    letter-spacing: 0.04em; text-decoration: none; white-space: nowrap;
    box-shadow: 0 0 0 1px rgba(245, 230, 184, 0.4), 0 0 22px rgba(215, 197, 140, 0.22);
}
.hh-cta-btn:hover { background: linear-gradient(135deg, #e2d39f 0%, #f3e5b2 100%); color: #1c1814; }
.hh-cta-alt { color: rgba(245, 230, 184, 0.9); font-size: 0.92rem; }
.hh-cta-alt:hover, .hh-cta-alt:focus-visible { color: #fff; }
.hh-cta-btn:focus-visible, .hh-nav a:focus-visible, .hh-btn:focus-visible, .hh-close:focus-visible, .hh-panel a:focus-visible { outline: 3px solid #b7923d; outline-offset: 3px; }

/* ---------- Panels ---------- */
.js .hh-panels { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.js .hh-panels.is-open { pointer-events: auto; }
.js .hh-scrim { position: absolute; inset: 0; background: rgba(8, 7, 6, 0.55); opacity: 0; transition: opacity .3s ease; }
.js .hh-panels.is-open .hh-scrim { opacity: 1; }
.hh-panel {
    position: relative; padding: 48px clamp(20px, 4vw, 48px) 40px;
    background: var(--panel); color: var(--text);
}
.js .hh-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(940px, 94vw);
    overflow-y: auto; overscroll-behavior: contain;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.25);
    border-left: 2px solid var(--gold);
    visibility: hidden; transform: translateX(104%); transition: transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .45s;
}
.js .hh-panel.is-open { visibility: visible; transform: none; transition: transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.hh-panel:focus { outline: none; }
.hh-panel + .hh-panel { border-top: 1px solid var(--border); }
html:not(.js) .hh-close { display: none; }
.hh-close {
    position: sticky; top: 0; float: right; margin: -28px -16px 0 0; z-index: 2;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(183, 146, 61, 0.45);
    background: #fffdf9; color: var(--charcoal); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.hh-close:hover { background: var(--gold-soft); }
.hh-tag {
    display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 800;
    letter-spacing: 0.16em; text-transform: uppercase; background: #f5e6b8; color: #6d5420;
}
.hh-panel h2 {
    text-align: left; margin: 12px 0 20px; font-size: clamp(1.6rem, 2.4vw, 2.3rem); color: var(--charcoal-deep);
}
.hh-panel h2::after { margin: 12px 0 0; background: linear-gradient(90deg, var(--gold-strong) 0%, transparent 100%); }
.hh-panel h3 { font-size: 1.1rem; margin: 0 0 8px; color: var(--charcoal-deep); }
.hh-panel h4 { font-size: 1.05rem; margin: 0 0 4px; color: var(--charcoal-deep); }
.hh-panel p { color: #4a443e; line-height: 1.6; margin: 0 0 10px; }
.hh-panel a { color: #7d5f20; }
.hh-sub { margin: 26px 0 12px !important; }
.hh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.hh-card {
    background: #fff; border: 1px solid rgba(183, 146, 61, 0.22); border-radius: 16px; padding: 18px;
    box-shadow: 0 2px 8px rgba(23, 20, 17, 0.05); overflow-wrap: anywhere;
}
.hh-popular { border-color: var(--gold-strong); box-shadow: 0 0 0 1px var(--gold-strong), 0 2px 8px rgba(183, 146, 61, 0.12); }
.hh-price { font-size: 1.35rem; font-weight: 800; color: var(--charcoal-deep) !important; margin-bottom: 6px !important; }
.hh-price span { font-size: 0.85rem; font-weight: 600; color: #4a443e; }
.hh-project img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.hh-btn {
    display: inline-flex; margin-top: 6px; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
    text-decoration: none; color: #f5e6b8 !important; background: var(--charcoal);
}
.hh-btn:hover { background: var(--charcoal-deep); }
.hh-btn-gold { background: linear-gradient(135deg, var(--gold) 0%, #eddb9d 100%); color: #1c1814 !important; }
.hh-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hh-links a, .hh-more a { font-weight: 700; }
.hh-more { margin-top: 22px !important; }
.hh-note { margin-top: 16px !important; font-size: 0.92rem; }
.hh-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.hh-steps li { background: #fff; border: 1px solid rgba(183, 146, 61, 0.22); border-radius: 16px; padding: 18px; }
.hh-num {
    display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; margin-bottom: 10px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-strong) 100%); color: #1c1814; font-weight: 800;
}
.hh-faq h3 { margin-top: 18px; }
.hh-faq h3:first-child { margin-top: 0; }

/* ---------- Footer ---------- */
.hh-footer {
    position: relative; z-index: 2; padding: 34px clamp(16px, 4vw, 48px) 110px; text-align: center;
    background: #0b0908; color: rgba(245, 230, 184, 0.75); border-top: 1px solid rgba(215, 197, 140, 0.18);
}
.hh-footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hh-footer-brand img { border-radius: 50%; }
.hh-footer-brand p, .hh-footer-area { margin: 0; font-size: 0.88rem; }
.hh-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 16px 0; }
.hh-footer-links a { color: var(--gold-soft); text-decoration: none; font-size: 0.88rem; }
.hh-footer-links a:hover { color: #fff; text-decoration: underline; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
    .hh-header { padding: 10px 12px; gap: 10px; }
    .hh-logo { gap: 8px; }
    .hh-logo-mark { width: 36px; height: 36px; flex-basis: 36px; }
    .hh-logo-text { font-size: 1rem; }
    .hh-logo-sub { font-size: 0.56rem; }
    .hh-legal { font-size: 0.6rem; }
    .hh-nav a:not(.hh-book) { display: none; }
    .hh-nav a.hh-book { min-height: 38px; padding: 7px 14px; font-size: 0.85rem; }
    .hh-stage { min-height: 640px; }
    .hh-intro { top: 70px; }
    .hh-intro h1 { font-size: 1.2rem; }
    .hh-lede { font-size: 0.9rem; }
    .hh-tab > span { padding: 8px 13px; font-size: 0.72rem; letter-spacing: 0.06em; }
    /* the header Book a call pill stays visible; the floating WhatsApp/review buttons need the bottom corner */
    .hh-cta { display: none; }
    .js .hh-panel { top: auto; left: 0; width: 100%; max-height: 88vh; max-height: 88svh; border-left: 0; border-top: 2px solid var(--gold);
        border-radius: 16px 16px 0 0; transform: translateY(104%); padding-top: 40px; }
    .hh-close { margin: -22px -8px 0 0; }
}

/* No JS: panels are just stacked sections below the sphere, so everything is readable and crawlable */
html:not(.js) .hh-tab { pointer-events: auto; }
html:not(.js) .hh-tab > span { opacity: 1; filter: none; scale: 1; }
html:not(.js) .hh-zone, html:not(.js) .hh-down { display: none; }
html:not(.js) .hh-hint { display: none; }
html:not(.js) .hh-panels { max-width: 1100px; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
    .hh-tab > span, .js .hh-panel, .js .hh-scrim { transition: none !important; }
    .hh-tab.is-on > span, .hh-tab.is-on > span::after, .hh-hint { animation: none !important; }
}
/* keep the floating WhatsApp/review buttons under open panels */
.hh-panel-open .whatsapp-chat { z-index: 50; }
html:not(.js) .hh-tabs { inset: auto 0 120px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; pointer-events: auto; }
html:not(.js) .hh-tab { position: static; transform: none; }

/* Touch: a swipe over the sphere zone rotates the sphere and its tabs; the bands above and below still scroll the page */
.hh-zone { position: absolute; left: 0; right: 0; top: 120px; bottom: 120px; z-index: 2; touch-action: none; }
.hh-down {
    position: absolute; left: clamp(14px, 3vw, 40px); bottom: 28px; z-index: 5;
    display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px;
    border: 1px solid rgba(215, 197, 140, 0.55); background: rgba(23, 20, 17, 0.7); color: var(--gold-soft);
    font-weight: 700; font-size: 0.9rem; text-decoration: none;
}
.hh-down:focus-visible { background: var(--gold); color: #1c1814; outline: 3px solid rgba(245, 230, 184, 0.8); outline-offset: 3px; }
@media (hover: hover) { .hh-down:hover { background: var(--gold); color: #1c1814; } }
@media (max-width: 720px) { .hh-down { left: 16px; bottom: 22px; } }
