/* ═══════════════════════════════════════════════════════════════
   Bork Services · luxe design layer (loads after style.css)
   Obsidian, molten gold, ember light.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --cave: #0e0906;
  --rock: #170f0a;
  --ledge: #22170f;
  --seam: rgba(255, 196, 110, .13);
  --gold: #f7c654;
  --gold-hi: #ffe7a3;
  --gold-deep: #b9781a;
  --ember: #ff6a1a;
  --parch: #efe2c8;
  --muted: #b09c7e;
  --line-gold: linear-gradient(135deg, rgba(255, 214, 120, .65), rgba(255, 214, 120, .08) 38%, rgba(255, 120, 40, .08) 62%, rgba(255, 170, 70, .45));
  --glass: rgba(23, 15, 10, .72);
  --r-lg: 22px;
  --r-md: 16px;
  --shadow-lg: 0 30px 60px -28px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .4);
}

body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 106, 26, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(247, 198, 84, .05), transparent 60%),
    var(--cave);
  background-attachment: fixed;
}
body::before {      /* fine film grain for a richer, less flat finish */
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .footer { position: relative; z-index: 1; }

/* ─────────── medallion images */
img.medal { image-rendering: auto !important; border-radius: 50%; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .55)); }

/* ─────────── typography */
.section-head h2, .hs-intro h2, .calc-intro h2 {
  font-size: clamp(2rem, 4.2vw, 2.9rem); letter-spacing: .01em;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #c98a1c); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head h2::after, .hs-intro h2::after, .calc-intro h2::after {
  content: ""; display: block; width: 120px; height: 10px; margin-top: .9rem;
  background:
    linear-gradient(90deg, var(--gold), transparent) left center / 52px 1px no-repeat,
    linear-gradient(270deg, var(--gold), transparent) right center / 52px 1px no-repeat,
    radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px) center / 10px 10px no-repeat;
}
.section-head p { font-size: 1.12rem; }

/* ─────────── buttons */
.btn { border-radius: 14px; letter-spacing: .015em; }
.btn-gold {
  background: linear-gradient(180deg, #fff0bf 0%, var(--gold) 38%, #e2a12f 70%, var(--gold-deep) 100%);
  box-shadow: 0 0 0 1px #7a4b09, inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(120, 70, 0, .45), 0 12px 30px -10px rgba(255, 130, 20, .75);
}
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid transparent;
  background: linear-gradient(rgba(23, 15, 10, .75), rgba(23, 15, 10, .75)) padding-box, var(--line-gold) border-box;
}
.btn-ghost:hover { background: linear-gradient(rgba(40, 26, 16, .85), rgba(40, 26, 16, .85)) padding-box, linear-gradient(135deg, var(--gold), var(--ember)) border-box; }

/* ─────────── luxe surfaces: gold hairline borders */
.svc-card, .cat-tile, .why-grid li, .calc-card, .act, .basket-item, .pay-list li, .hs-summary, .search, .faq-tab.active, .tool-tab.active, .mega {
  border: 1px solid transparent !important;
  box-shadow: var(--shadow-lg) !important;
}
.svc-card, .cat-tile, .why-grid li, .calc-card, .act, .basket-item {
  background: linear-gradient(165deg, #241810, #150e09 70%) padding-box, var(--line-gold) border-box !important;
}
.pay-list li, .search, .hs-summary { background: linear-gradient(var(--rock), var(--rock)) padding-box, var(--line-gold) border-box !important; }
.faq-tab.active, .tool-tab.active { background: linear-gradient(#24180f, #24180f) padding-box, linear-gradient(135deg, var(--gold), var(--ember)) border-box !important; }

/* ─────────── nav + mega menu */
.nav.scrolled { background: rgba(14, 9, 6, .82); }
.nav ul a .caret { margin-left: .2rem; vertical-align: 1px; transition: transform .2s ease; }
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; translate: -50% 8px; width: 560px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 10px; border-radius: var(--r-lg);
  background: linear-gradient(rgba(20, 13, 9, .97), rgba(20, 13, 9, .97)) padding-box, var(--line-gold) border-box;
  backdrop-filter: blur(16px); opacity: 0; visibility: hidden; transition: opacity .2s ease, translate .2s ease, visibility 0s linear .2s;
}
.mega::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }       /* hover bridge */
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega { opacity: 1; visibility: visible; translate: -50% 0; transition: opacity .2s ease, translate .2s ease; }
.has-mega:hover .caret, .has-mega:focus-within .caret { transform: rotate(180deg); }
.has-mega.closing .mega { opacity: 0 !important; visibility: hidden !important; }
.nav ul .mega a::after { display: none; }
.mega-item { display: flex !important; align-items: center; gap: .8rem; padding: .55rem .7rem !important; border-radius: 14px; transition: background .2s ease; }
.mega-item:hover, .mega-item:focus-visible { background: rgba(255, 200, 80, .08); }
.mega-item img { width: 54px; height: 54px; flex: none; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.mega-item:hover img { transform: scale(1.08) rotate(-6deg); }
.mega-text { display: grid; }
.mega-text strong { color: #fff4dc; font: 700 1.02rem/1.2 var(--display); }
.mega-text span { color: var(--muted); font-size: .85rem; }

.nav-dc { display: none; }

/* ─────────── category tiles: big medallions */
.cat-tiles { gap: 18px; }
.cat-tile {
  grid-template-columns: 1fr !important; grid-template-rows: auto !important; justify-items: center; text-align: center;
  padding: 1.6rem 1.2rem 1.4rem !important; gap: .5rem !important; border-radius: var(--r-lg) !important;
}
.cat-tile::before { inset: -40% -20% auto !important; width: auto !important; height: 260px !important; background: radial-gradient(closest-side, rgba(255, 120, 30, .22), transparent) !important; }
.cat-tile-icon { grid-row: auto !important; width: 132px !important; height: 132px !important; background: none !important; box-shadow: none !important; }
.cat-tile-icon img { width: 132px !important; height: 132px !important; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1) !important; }
.cat-tile:hover .cat-tile-icon img { transform: translateY(-6px) scale(1.06) rotate(-5deg) !important; }
.cat-tile-body strong { font-size: 1.45rem !important; }
.cat-tile-meta {
  grid-column: auto !important; margin-top: .3rem; padding: .3rem .8rem; border-radius: 999px;
  background: rgba(247, 198, 84, .1); box-shadow: inset 0 0 0 1px rgba(247, 198, 84, .3);
}

/* ─────────── why grid */
.why-grid li { text-align: center; padding: 1.8rem 1.4rem !important; border-radius: var(--r-lg) !important; }
.why-grid img { width: 96px !important; height: 96px !important; margin: 0 auto 1rem !important; display: block; }

/* ─────────── page header */
.page-icon { width: 128px !important; height: 128px !important; padding: 0 !important; background: none !important; box-shadow: none !important; border-radius: 50% !important; }
.page-head { padding-bottom: 54px; }
.page-head-inner { gap: 1.8rem; }

/* ─────────── category bar with mini medallions */
.cat-tab img { width: 30px !important; height: 30px !important; filter: saturate(.6) brightness(.85) drop-shadow(0 3px 5px rgba(0, 0, 0, .6)) !important; }
.cat-tab.active img, .cat-tab:hover img { filter: drop-shadow(0 0 10px rgba(255, 150, 40, .55)) !important; }

/* ─────────── service cards */
.svc-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important; gap: 16px !important; }
.svc-card {
  grid-template-columns: 88px 1fr !important; gap: .25rem 1.1rem !important; padding: 1.1rem 1.2rem 1.1rem 1rem !important;
  border-radius: var(--r-lg) !important; min-height: 128px;
}
.svc-card-icon { width: 88px !important; height: 88px !important; background: none !important; box-shadow: none !important; align-self: center; }
.svc-card-icon img { width: 88px !important; height: 88px !important; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1) !important; }
.svc-card:hover .svc-card-icon img { transform: scale(1.07) rotate(-6deg) !important; }
.svc-card-body { align-self: center; }
.svc-card-body strong { font: 700 1.12rem/1.25 var(--display) !important; }
.svc-card-cta {
  margin-top: .3rem; padding: .28rem .75rem; border-radius: 999px; font-size: .78rem !important;
  background: rgba(247, 198, 84, .1); box-shadow: inset 0 0 0 1px rgba(247, 198, 84, .3); transition: background .2s ease;
}
.svc-card:hover .svc-card-cta { background: rgba(247, 198, 84, .2); }
.svc-card.added .svc-card-cta { background: rgba(90, 200, 90, .12); box-shadow: inset 0 0 0 1px rgba(90, 200, 90, .4); }
.svc-group-title { font-size: 1.5rem !important; }

/* ─────────── sheet + basket medallions */
.sheet { background: linear-gradient(170deg, #22170f, #130c08) !important; }
.sheet-icon { width: 96px !important; height: 96px !important; background: none !important; box-shadow: none !important; }
.sheet-icon img { width: 96px !important; height: 96px !important; }
.basket-icon { width: 56px !important; height: 56px !important; background: none !important; box-shadow: none !important; }
.basket-icon img { width: 56px !important; height: 56px !important; }
.basket-item { grid-template-columns: 56px 1fr auto !important; align-items: center !important; }
.drawer { background: linear-gradient(180deg, #1c130d, #120b07) !important; }

/* ─────────── phone tab bar */
.tabbar { display: none; }
@media (max-width: 860px) {
  .nav-toggle, .basket-btn, #nav-links { display: none !important; }
  .nav-dc {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #c7cdfa;
    background: rgba(88, 101, 242, .16); box-shadow: inset 0 0 0 1px rgba(88, 101, 242, .45);
  }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(23, 15, 10, .9), rgba(14, 9, 6, .98));
    backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-top: 1px solid rgba(247, 198, 84, .18); box-shadow: 0 -12px 30px -12px rgba(0, 0, 0, .8);
  }
  .tabbar a, .tabbar button {
    display: grid; justify-items: center; gap: 3px; padding: 6px 2px; border: 0; background: none; cursor: pointer;
    color: var(--muted); text-decoration: none; font: 700 .7rem/1 var(--body); letter-spacing: .02em;
    -webkit-tap-highlight-color: transparent; transition: color .2s ease;
  }
  .tabbar svg { width: 24px; height: 24px; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
  .tabbar .active { color: var(--gold); }
  .tabbar .active svg { transform: translateY(-2px); filter: drop-shadow(0 0 8px rgba(247, 198, 84, .6)); }
  .tab-basket-ring {
    position: relative; display: grid; place-items: center; width: 54px; height: 54px; margin-top: -26px; border-radius: 50%; color: #2a1700;
    background: linear-gradient(180deg, #fff0bf, var(--gold) 45%, var(--gold-deep));
    box-shadow: 0 0 0 4px var(--cave), 0 10px 24px -6px rgba(255, 130, 20, .8);
  }
  .tab-basket-ring svg { width: 26px; height: 26px; }
  .tab-basket .basket-count { position: absolute; top: -4px; right: -6px; }
  .tab-basket.bump .tab-basket-ring { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .chat-launch { bottom: calc(86px + env(safe-area-inset-bottom)) !important; }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)) !important; }
  .footer { padding-bottom: 40px; }
  body.drawer-open .tabbar { z-index: 66; }
  .drawer { bottom: calc(66px + env(safe-area-inset-bottom)); border-radius: 0 0 0 0; }
}

/* ─────────── mobile layout polish */
@media (max-width: 600px) {
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .cat-tile { padding: 1.1rem .7rem 1rem !important; }
  .cat-tile-icon, .cat-tile-icon img { width: 96px !important; height: 96px !important; }
  .cat-tile-body strong { font-size: 1.12rem !important; }
  .cat-tile-body span { display: none; }
  .cat-tile-meta { font-size: .72rem !important; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .why-grid li { padding: 1.2rem .8rem !important; }
  .why-grid img { width: 72px !important; height: 72px !important; }
  .why-grid h3 { font-size: 1rem; }
  .why-grid p { font-size: .88rem; }
  .svc-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .svc-card { grid-template-columns: 74px 1fr !important; min-height: 0; padding: .9rem !important; }
  .svc-card-icon, .svc-card-icon img { width: 74px !important; height: 74px !important; }
  .page-icon { width: 92px !important; height: 92px !important; }
  .page-head-inner { gap: 1rem; }
  .sheet-icon, .sheet-icon img { width: 76px !important; height: 76px !important; }
  .section-head h2, .hs-intro h2, .calc-intro h2 { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mega, .tabbar svg, .cat-tile-icon img, .svc-card-icon img { transition: none !important; }
}

