/* =============================================================
 * COINZO GLOBAL CUSTOM STYLES
 * Loads last — overrides old theme (style.css / responsive.css)
 * ============================================================= */

:root {
  --navy-primary: #0A1930;
  --navy-secondary: #112845;
  --gold-primary: #D4AF37;
  --gold-light: #F9E27D;
  --bg-light: #F8F6F1;
  --text-dark: #334155;
  --text-muted: #64748B;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  background-color: var(--bg-light) !important;
  color: var(--text-dark) !important;
  line-height: 1.7 !important;
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Playfair Display', serif !important;
  line-height: 1.3 !important;
  margin-bottom: 16px !important;
}

p {
  line-height: 1.75 !important;
  margin-bottom: 20px !important;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 35px 0 !important;
  position: relative;
}

/* Hide old template junk / floating widgets */
.fix-icon,
.fix-icon-whataap,
.btn-whatsapp-pulse,
[id*="poptin"], .poptin-overlay, .poptin-popup,
.call-btn, .whatsapp-btn, .back-to-top, .back-top, #back-to-top,
.sticky-contact, .fixed-social,
#callnowbutton,
.rspn-hdr,
.sticky-menu,
.inputs-container.ui-selecting,
.froala-editor-input {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

/* Kill old theme skew / logo.v2 polygon offsets */
.logo.v2,
.logo.v2:before,
.logo.v2:after,
.logo-menu-inner:before,
.logo-menu-inner:after,
.logo-contact-menu-inner:before,
.logo-contact-menu-inner:after {
  content: none !important;
  display: none !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  transform: none !important;
  background: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
}

/* =============================================================
 * HEADER — force visible (theme hides ALL header under 1031px!)
 * responsive.css: header, .sticky-menu { display:none !important }
 * ============================================================= */
/* FIXED sticky header — always pinned to top while scrolling.
   (position:sticky breaks when body/html use overflow-x:hidden + flex main) */
header,
header.style3,
header.style3.w-100,
header.is-fixed-header,
#siteHeader {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10050 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  background: var(--bg-light) !important;
  float: none !important;
  transform: none !important;
  clip: auto !important;
  clip-path: none !important;
  box-shadow: 0 6px 22px rgba(10, 25, 48, 0.12) !important;
}

/* Spacer prevents content sitting under fixed header */
.site-header-spacer,
#siteHeaderSpacer {
  display: block !important;
  width: 100% !important;
  height: var(--site-header-h, 110px) !important;
  min-height: 90px;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  flex: 0 0 auto !important;
}

/* Main should not break layout under fixed header */
main,
#siteMain {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
  flex-wrap: nowrap !important;
}

/* Theme switches to .rspn-hdr — we don't use it; keep dead */
.rspn-hdr {
  display: none !important;
}

/* Match theme breakpoint exactly (1031px) */
@media (max-width: 1031px) {
  header,
  header.style3,
  header.style3.w-100,
  header.is-fixed-header,
  #siteHeader {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10050 !important;
  }
  .rspn-hdr,
  .sticky-menu {
    display: none !important;
  }

  /* Hamburger mode from 1031 down (theme's mobile cut) */
  header.style3 nav,
  header.style3 nav.cz-desktop-nav,
  header.style3 .header-right {
    display: none !important;
  }

  /* Show Sell Coin + menu on phone/tablet */
  .header-mobile-actions {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .header-mobile-actions .mobile-menu-toggle {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .btn-sell-mobile {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .site-header-spacer,
  #siteHeaderSpacer {
    min-height: 100px;
  }

  .header-logo-img {
    max-height: 40px !important;
    max-width: 110px !important;
  }
  .cz-header-bar {
    gap: 8px;
    min-height: 48px;
  }
  header.style3 .logo-menu-wrap {
    padding: 8px 0 !important;
  }
}

/* Kill theme padding-left: 13–16rem on style3 (pushes content off-screen) */
header.style3 .topbar-inner,
header.style3 .logo-menu-inner,
header.style3 .logo-menu-wrap,
header.style3 .logo-contact-menu-inner {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

header.style3 .logo.v2 {
  margin-left: 0 !important;
  position: static !important;
}

/* Topbar */
.topbar.bg-navy,
header.style3 .topbar {
  display: block !important;
  background-color: var(--navy-primary) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding: 8px 0 !important;
  font-size: 13px;
  width: 100% !important;
}

.topbar a {
  color: #F8FAFC !important;
  transition: color 0.2s ease;
  text-decoration: none !important;
}
.topbar a:hover {
  color: var(--gold-primary) !important;
}
.topbar .gold-badge {
  color: var(--gold-primary) !important;
  font-weight: 700;
}

header.style3 .topbar-inner {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100% !important;
  padding: 0 !important;
}

header.style3 .header-contact {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-left: 0 !important;
  font-size: 13px !important;
  position: static !important;
  text-align: center;
}

/* Main logo bar */
header.style3 .logo-menu-wrap {
  display: block !important;
  background-color: var(--bg-light) !important;
  border-bottom: 1px solid rgba(10, 25, 48, 0.1);
  box-shadow: 0 4px 15px rgba(10, 25, 48, 0.06);
  padding: 10px 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  width: 100% !important;
  position: relative !important;
  z-index: 1001 !important;
}

.cz-header-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 10px;
  min-height: 52px;
}

.header-logo-container {
  display: flex !important;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  visibility: visible !important;
}

.header-logo-img {
  max-height: 48px !important;
  width: auto !important;
  max-width: 140px !important;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: var(--navy-primary);
  padding: 3px 8px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Desktop nav */
header.style3 nav.cz-desktop-nav,
header.style3 nav {
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  flex: 1 1 auto;
  visibility: visible !important;
}

header.style3 nav div.header-left ul {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

header.style3 nav div.header-left ul li {
  margin-left: 10px !important;
  margin-right: 10px !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  list-style: none !important;
}

header.style3 nav div.header-left ul li:before,
header.style3 nav div.header-left ul li:after {
  display: none !important;
  content: none !important;
}

header.style3 nav div.header-left ul li a {
  color: var(--navy-primary) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 6px 0 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  position: relative;
}

header.style3 nav div.header-left ul li a:after {
  display: none !important;
}

header.style3 nav div.header-left ul li a:hover,
header.style3 nav div.header-left ul li.active a {
  color: var(--gold-primary) !important;
}

.header-right {
  display: flex !important;
  align-items: center;
  flex-shrink: 0;
}

/* Mobile-only Sell Coin + hamburger group (hidden on desktop) */
.header-mobile-actions {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.btn-sell-mobile {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%) !important;
  color: #0A1930 !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  white-space: nowrap;
  border: none;
  border-radius: 22px !important;
  padding: 0 12px !important;
  height: 38px !important;
  min-height: 38px !important;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
  cursor: pointer;
  line-height: 1 !important;
}
.btn-sell-mobile:hover,
.btn-sell-mobile:focus {
  color: #0A1930 !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

/* Gold button */
.btn-gold-action {
  background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%) !important;
  color: var(--navy-primary) !important;
  font-weight: 800;
  padding: 10px 20px !important;
  border-radius: 30px;
  font-size: 13px !important;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
  transition: all 0.3s ease;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
  margin: 0 !important;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-gold-action:hover {
  transform: translateY(-1px);
  color: var(--navy-primary) !important;
  text-decoration: none !important;
}

/* Mobile hamburger — hidden on desktop (shown inside .header-mobile-actions) */
.mobile-menu-toggle {
  display: none !important;
  align-items: center;
  justify-content: center;
  background: var(--navy-primary) !important;
  color: var(--gold-primary) !important;
  border: 2px solid var(--gold-primary) !important;
  border-radius: 10px !important;
  padding: 0 !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  font-size: 20px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1002 !important;
  position: relative !important;
}

/* Mobile drawer */
.mobile-drawer-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 25, 48, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99998;
}
.mobile-drawer-overlay.open {
  display: block !important;
}

.mobile-drawer {
  position: fixed !important;
  top: 0 !important;
  right: -100% !important;
  width: min(300px, 88vw) !important;
  height: 100% !important;
  max-height: 100vh !important;
  background: var(--navy-primary) !important;
  z-index: 99999 !important;
  padding: 22px 18px !important;
  transition: right 0.3s ease !important;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.45);
  overflow-y: auto !important;
  display: block !important;
  visibility: visible !important;
}
.mobile-drawer.open {
  right: 0 !important;
}

.mobile-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 14px;
}
.mobile-drawer-head img {
  max-height: 42px;
  border-radius: 6px;
  background: #0A1930;
}
.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-drawer-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
}
.mobile-drawer-nav li {
  margin-bottom: 4px;
}
.mobile-drawer-nav a {
  display: block;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none !important;
  padding: 12px 10px;
  border-radius: 10px;
  letter-spacing: 0.03em;
}
.mobile-drawer-nav a:hover {
  background: rgba(212, 175, 55, 0.15);
  color: #D4AF37 !important;
}
.mobile-drawer .btn-gold-action {
  width: 100% !important;
  justify-content: center !important;
  min-height: 48px;
}

body.drawer-open {
  overflow: hidden !important;
}

/* Floating contact */
.floating-contact-bar {
  position: fixed !important;
  bottom: 20px !important;
  right: 16px !important;
  z-index: 99990 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Keep page content clear of floating buttons on mobile */
@media (max-width: 991px) {
  body {
    padding-bottom: 88px !important;
  }
}
.floating-btn-call,
.floating-btn-wa {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35) !important;
  transition: transform 0.2s ease !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.floating-btn-call {
  background: #0A1930 !important;
  color: #D4AF37 !important;
  border: 2px solid #D4AF37 !important;
}
.floating-btn-wa {
  background: #25D366 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}
.floating-btn-call .floating-btn-icon,
.floating-btn-wa .floating-btn-icon,
.floating-btn-call i,
.floating-btn-wa i {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  color: inherit !important;
  fill: currentColor !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 24px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}
.floating-btn-call .floating-btn-icon path,
.floating-btn-wa .floating-btn-icon path {
  fill: currentColor !important;
}
.floating-btn-call:hover,
.floating-btn-wa:hover {
  transform: scale(1.08) !important;
  color: inherit !important;
}
/* Never hide floating contact bar via old theme rules */
.floating-contact-bar {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  overflow: visible !important;
  width: auto !important;
  height: auto !important;
}
.floating-contact-bar .floating-btn-call,
.floating-contact-bar .floating-btn-wa {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  width: 52px !important;
  height: 52px !important;
  overflow: visible !important;
}
.floating-contact-bar .floating-btn-icon {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  flex-shrink: 0 !important;
}
.floating-btn-wa .floating-btn-icon {
  color: #ffffff !important;
}
.floating-btn-call .floating-btn-icon {
  color: #D4AF37 !important;
}

/* Footer */
.site-footer {
  text-align: left;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--gold-primary) !important;
}
.site-footer .footer-logo {
  display: inline-block;
}
.site-footer .footer-links li a {
  transition: color 0.2s ease;
}

/* =============================================================
 * MOBILE / TABLET (≤991px)
 * Header visible + hamburger + center-aligned content
 * ============================================================= */
@media (max-width: 991px) {
  /* CRITICAL: theme sets header { display:none !important } under 1031px */
  header,
  header.style3,
  header.style3.w-100,
  header.is-fixed-header,
  #siteHeader {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10050 !important;
  }

  .rspn-hdr,
  .sticky-menu {
    display: none !important;
  }

  /* Hide desktop nav + CTA; show mobile Sell Coin + hamburger */
  header.style3 nav,
  header.style3 nav.cz-desktop-nav,
  header.style3 .header-right {
    display: none !important;
  }

  .header-mobile-actions {
    display: flex !important;
  }
  .header-mobile-actions .mobile-menu-toggle {
    display: inline-flex !important;
  }

  .cz-header-bar {
    justify-content: space-between !important;
  }

  .header-logo-img {
    max-height: 42px !important;
    max-width: 120px !important;
  }

  /* Topbar compact + centered */
  header.style3 .topbar-inner {
    justify-content: center !important;
    text-align: center !important;
  }
  header.style3 .header-contact {
    width: 100%;
    justify-content: center !important;
    font-size: 12px !important;
  }
  header.style3 .header-contact a {
    font-size: 12px !important;
  }

  section {
    padding: 32px 0 !important;
  }

  .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* ---- CENTER ALIGN ALL CONTENT ON PHONE ---- */
  main section,
  main .container,
  main .row > [class*="col-"],
  .page-title-banner,
  .page-title-banner .container,
  footer .container,
  footer .row > [class*="col-"] {
    text-align: center !important;
  }

  main h1,
  main h2,
  main h3,
  main h4,
  main h5,
  main h6,
  main p,
  main .lead,
  main .badge,
  .page-title-banner h1,
  .page-title-banner p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  main img:not(.header-logo-img):not(.mobile-drawer img) {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Buttons / CTAs centered */
  main .btn-gold-action,
  main .btn,
  main .hp-btn-wa,
  main .hp-btn-call,
  main .hp-btn-outline,
  main a.thm-btn,
  main button[type="submit"],
  footer .btn-gold-action {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  main .hp-hero-cta,
  main .hp-quick-cta-btns,
  main .hp-final-cta-btns,
  main .d-flex.flex-wrap,
  main form {
    justify-content: center !important;
    align-items: center !important;
  }

  main .hp-hero-cta,
  main .hp-final-cta-btns {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100%;
  }

  main .hp-hero-cta .btn-gold-action,
  main .hp-hero-cta .hp-btn-wa,
  main .hp-final-cta-btns .btn-gold-action,
  main .hp-final-cta-btns .hp-btn-wa,
  main .hp-btn-wa.large,
  main .hp-btn-call.large {
    width: 100% !important;
    max-width: 340px !important;
  }

  /* Lists / highlights centered */
  main .hp-hero-points {
    justify-content: center !important;
  }

  main .hp-about-stats,
  main .hp-trust-grid {
    justify-items: center;
  }

  main ul.list-unstyled,
  footer ul.list-unstyled {
    padding-left: 0 !important;
  }

  .site-footer,
  .site-footer .footer-col {
    text-align: center !important;
  }
  .site-footer .footer-col {
    margin-bottom: 1.5rem !important;
  }
  .site-footer .footer-logo {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }
  .site-footer .footer-links {
    padding: 0 !important;
  }

  .floating-contact-bar {
    bottom: 16px !important;
    right: 12px !important;
    gap: 10px !important;
  }
  .floating-btn-call,
  .floating-btn-wa {
    width: 46px !important;
    height: 46px !important;
  }

  /* Forms full width, labels center */
  main .form-control,
  main input[type="text"],
  main input[type="tel"],
  main input[type="email"],
  main input[type="file"],
  main select,
  main textarea {
    max-width: 100% !important;
    width: 100% !important;
  }

  main label {
    text-align: center !important;
    display: block !important;
    width: 100%;
  }

  /* Cards grid stay readable */
  .hp-cat-card {
    align-items: center !important;
    text-align: center !important;
  }
  .hp-cat-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .hp-step {
    text-align: center !important;
  }

  .hp-review {
    text-align: center !important;
  }
  .hp-review-top {
    justify-content: center !important;
    flex-direction: column !important;
  }

  /* Bootstrap text utilities still center on mobile */
  .text-left,
  .text-md-left,
  .text-lg-left {
    text-align: center !important;
  }
}

/* Extra-small phones */
@media (max-width: 575px) {
  .header-logo-img {
    max-height: 38px !important;
    max-width: 110px !important;
  }
  .mobile-menu-toggle {
    width: 42px !important;
    height: 42px !important;
    font-size: 20px !important;
  }
  section {
    padding: 28px 0 !important;
  }
}

/* Desktop: restore normal left/row layout */
@media (min-width: 1032px) {
  .header-mobile-actions,
  .mobile-menu-toggle,
  .btn-sell-mobile {
    display: none !important;
  }
  header.style3 nav.cz-desktop-nav,
  header.style3 nav {
    display: flex !important;
  }
  header.style3 .header-right {
    display: flex !important;
  }
  header.style3 .topbar-inner {
    justify-content: space-between !important;
  }
  header.style3 .header-contact {
    justify-content: flex-start !important;
  }
}

/* Very small phones: slightly tighter Sell Coin */
@media (max-width: 360px) {
  .btn-sell-mobile {
    font-size: 11px !important;
    padding: 0 9px !important;
    height: 34px !important;
    min-height: 34px !important;
  }
  .header-mobile-actions .mobile-menu-toggle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    font-size: 18px !important;
  }
  .header-logo-img {
    max-width: 96px !important;
    max-height: 36px !important;
  }
}
