/*
Theme Name: SBC Shell Theme v3
Author: Suriname Bitcoin
Author URI: https://surinamebitcoin.finance
Description: The official WordPress shell theme for Suriname Bitcoin (SBC) — the pioneering cryptocurrency built for financial inclusion in Suriname. Provides the branded header, footer, and layout foundation for all Elementor page imports.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sbc-shell-v3
*/

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #050a0e;
  color: #eaf2ff;
  font-family: "DM Sans", Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Container ─────────────────────────────────────────────────────── */
.sbc-wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════════════
   ANNOUNCEMENT BAR
   ══════════════════════════════════════════════════════════════════════ */
.sbc-ann {
  position: sticky;
  top: 0;
  z-index: 10002;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background-color: #12002a;
  background-image: linear-gradient(90deg,
    rgba(235,6,249,.5) 0%,
    rgba(45,156,219,.45) 50%,
    rgba(235,6,249,.5) 100%);
  background-size: 200% 100%;
  animation: sbcShimmer 4s linear infinite;
  border-bottom: 1px solid rgba(235,6,249,.4);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.sbc-ann a {
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sbc-ann a:hover { opacity: .85; }

/* ══════════════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════════════ */
.sbc-hdr {
  position: sticky;
  top: 40px;
  z-index: 10001;
  background: rgba(5,10,14,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow .25s;
}
.sbc-hdr.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,.5); }

.sbc-hdr-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.sbc-logo { display: flex; align-items: center; flex-shrink: 0; }
.sbc-logo img { height: 36px; width: auto; }

/* Desktop nav */
.sbc-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.sbc-nav a,
.sbc-dd > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  color: #7a9bb5;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: color .2s;
  white-space: nowrap;
}
.sbc-nav a:hover, .sbc-dd > a:hover { color: #eaf2ff; }
.sbc-caret { font-size: 9px; opacity: .5; transition: transform .2s; }
.sbc-dd:hover .sbc-caret { transform: rotate(180deg); }

/* Dropdown */
.sbc-dd { position: relative; }
.sbc-dd-list {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: #0a1520;
  border: 1px solid rgba(235,6,249,.25);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 12px 48px rgba(0,0,0,.6);
  z-index: 200;
}
.sbc-dd:hover .sbc-dd-list,
.sbc-dd:focus-within .sbc-dd-list { display: flex; flex-direction: column; gap: 2px; }
.sbc-dd-list a {
  display: block;
  padding: 10px 14px;
  color: #7a9bb5;
  font-size: 13px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.sbc-dd-list a:hover { background: rgba(235,6,249,.1); color: #eaf2ff; }

/* Buy button */
.sbc-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: #eb06f9;
  color: #fff !important;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 22px rgba(235,6,249,.32);
  transition: transform .2s, box-shadow .2s;
}
.sbc-buy-btn:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(235,6,249,.6); color: #fff !important; }

/* Burger — hidden on desktop */
.sbc-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.sbc-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #eaf2ff;
  border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease;
}
.sbc-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sbc-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sbc-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════════════
   CONTRACT BAR
   ══════════════════════════════════════════════════════════════════════ */
.sbc-bar {
  position: sticky;
  top: 108px; /* ann(40) + hdr(68) */
  z-index: 10000;
  height: 38px;
  display: flex;
  align-items: center;
  background: #0a1520;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  color: #7a9bb5;
}
.sbc-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.sbc-bar code  { color: #eb06f9; font-size: 11px; word-break: break-all; }
.sbc-bar strong { color: #eaf2ff; }
.sbc-accent { color: #00ff88; font-weight: 700; }

/* ══════════════════════════════════════════════════════════════════════
   MOBILE NAV OVERLAY — completely separate from header
   position:fixed; top = ann+hdr+bar heights; fills rest of screen
   ══════════════════════════════════════════════════════════════════════ */
.sbc-mob-nav {
  position: fixed;
  top: 146px;   /* 40+68+38 — JS overrides with exact measured value */
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #050a0e;
  border-top: 1px solid rgba(255,255,255,.08);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex-direction: column;
}
/* Hidden by default — JS sets display:flex when open */
.sbc-mob-nav[aria-hidden="true"] { display: none !important; }
.sbc-mob-nav[aria-hidden="false"] { display: flex !important; }

.sbc-mob-nav nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-bottom: 48px;
}

/* Mobile links */
.sbc-mob-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  color: #7a9bb5;
  font-size: 16px;
  font-weight: 500;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.05);
  text-align: left;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.sbc-mob-link:hover, .sbc-mob-link:active { color: #eaf2ff; background: rgba(255,255,255,.02); }

/* Mobile About accordion */
.sbc-mob-group { display: flex; flex-direction: column; }
.sbc-mob-arrow { font-size: 10px; opacity: .5; transition: transform .25s; }
.sbc-mob-toggle[aria-expanded="true"] { color: #eb06f9; }
.sbc-mob-toggle[aria-expanded="true"] .sbc-mob-arrow { transform: rotate(180deg); opacity: 1; }

.sbc-mob-sub {
  display: flex;
  flex-direction: column;
  background: rgba(10,21,32,.9);
  border-left: 3px solid rgba(235,6,249,.3);
  margin-left: 24px;
}
.sbc-mob-sub[hidden] { display: none; }
.sbc-mob-sub a {
  display: block;
  padding: 14px 20px;
  color: #7a9bb5;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: color .15s;
}
.sbc-mob-sub a:last-child { border-bottom: none; }
.sbc-mob-sub a:hover { color: #eaf2ff; }

/* Mobile CTA */
.sbc-mob-cta {
  padding: 24px;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ══════════════════════════════════════════════════════════════════════
   MAIN
   ══════════════════════════════════════════════════════════════════════ */
.sbc-main { min-height: 60vh; background: #050a0e; }

/* ══════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════ */
.sbc-site-footer {
  background: #050a0e;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 72px 0 0;
}
.sbc-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 52px;
}
.sbc-footer-logo { display: inline-flex; margin-bottom: 16px; }
.sbc-footer-logo img { height: 34px; width: auto; }
.sbc-site-footer p { color: #7a9bb5; font-size: 14px; line-height: 1.7; max-width: 280px; margin: 0 0 20px; }
.sbc-site-footer h4 { font-family: Syne,Arial,sans-serif; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .18em; color: #eaf2ff; margin: 0 0 18px; }
.sbc-site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sbc-site-footer ul a, .sbc-site-footer li a { color: #7a9bb5; font-size: 14px; transition: color .2s; }
.sbc-site-footer ul a:hover, .sbc-site-footer li a:hover { color: #eb06f9; }
.sbc-social { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 !important; padding: 0 !important; }
.sbc-social a { display: inline-flex; align-items: center; padding: 7px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; font-size: 13px; color: #7a9bb5; transition: all .2s; }
.sbc-social a:hover { border-color: rgba(235,6,249,.5); color: #eb06f9; background: rgba(235,6,249,.06); }
.sbc-gradient { background: linear-gradient(90deg,#eb06f9,#2d9cdb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sbc-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; color: rgba(122,155,181,.5); font-size: 12px; }
.sbc-footer-bottom a { color: rgba(122,155,181,.5); transition: color .2s; }
.sbc-footer-bottom a:hover { color: #eb06f9; }

/* ══════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════════════════ */
@keyframes sbcShimmer { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE ≤ 1050px — hamburger
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1050px) {
  .sbc-nav      { display: none; }           /* hide desktop nav */
  .sbc-hdr-inner > .sbc-buy-btn { display: none; } /* hide desktop buy */
  .sbc-burger   { display: inline-flex; }    /* show burger */
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE ≤ 860px
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .sbc-ann      { height: 34px; font-size: 12px; }
  .sbc-hdr      { top: 34px; }
  .sbc-hdr-inner { height: 60px; }
  .sbc-bar      { top: 94px; height: 34px; } /* 34+60 */
  .sbc-wrap     { width: calc(100% - 40px); }
  .sbc-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .sbc-footer-grid > div:first-child { grid-column: 1 / 3; }
  .sbc-footer-grid > div:first-child p { max-width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE ≤ 640px
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .sbc-ann      { height: 32px; font-size: 11px; }
  .sbc-hdr      { top: 32px; }
  .sbc-hdr-inner { height: 56px; }
  .sbc-bar      { top: 88px; height: auto; min-height: 34px; padding: 6px 0; } /* 32+56 */
  .sbc-bar-inner { flex-direction: column; gap: 3px; }
  .sbc-bar code { font-size: 10px; }
  .sbc-wrap     { width: calc(100% - 32px); }
  .sbc-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .sbc-footer-grid > div:first-child { grid-column: auto; }
  .sbc-site-footer { padding-top: 48px; }
  .sbc-site-footer p { max-width: 100%; }
  .sbc-footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE ≤ 480px — hide ann bar
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .sbc-ann      { display: none; }
  .sbc-hdr      { top: 0; }
  .sbc-hdr-inner { height: 56px; }
  .sbc-bar      { top: 56px; }
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE ≤ 380px
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 380px) {
  .sbc-hdr-inner { height: 52px; }
  .sbc-logo img { height: 28px; }
  .sbc-burger   { width: 36px; height: 36px; }
  .sbc-bar      { top: 52px; }
  .sbc-wrap     { width: calc(100% - 24px); }
}
