/* ===================================
   BuyBitcoin.nz — Main Stylesheet
   =================================== */

:root {
  --orange:      #F7931A;
  --orange-dark: #e07b10;
  --navy:        #1A3A5C;
  --navy-dark:   #112840;
  --green:       #00843D;
  --green-dark:  #006830;
  --text:        #1a1a2e;
  --text-muted:  #5a6472;
  --bg-light:    #f4f6f9;
  --bg-dark:     #0d1f33;
  --white:       #ffffff;
  --border:      #e2e8f0;
  --shadow:      0 2px 16px rgba(26,58,92,0.10);
  --shadow-lg:   0 8px 32px rgba(26,58,92,0.16);
  --radius:      10px;
  --radius-lg:   18px;
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --max-w:       1140px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4rem; }

/* ====== LAYOUT ====== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-dark { background: var(--bg-dark); color: var(--white); }
.section-light { background: var(--bg-light); }
.section-green { background: var(--green); color: var(--white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 800; color: var(--navy); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-orange { color: var(--orange); }
.text-green  { color: var(--green); }
.text-white  { color: var(--white); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }

/* ====== HEADER / NAV ====== */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.site-logo { display: flex; align-items: center; gap: 8px; }
.site-logo img { height: 44px; width: auto; }
.site-logo:hover { text-decoration: none; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 13px; border-radius: 7px;
  color: var(--navy); font-weight: 600; font-size: 0.9rem;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--bg-light); color: var(--orange); text-decoration: none;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.75rem; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 220px; padding: 8px 0; z-index: 999;
}
.dropdown-menu a {
  display: block; padding: 10px 18px; border-radius: 0;
  font-size: 0.875rem; color: var(--text);
}
.dropdown-menu a:hover { background: var(--bg-light); color: var(--orange); }
.nav-dropdown:hover .dropdown-menu { display: block; }

.header-cta {
  background: var(--orange); color: var(--white) !important;
  border-radius: 8px; padding: 9px 18px !important;
  font-weight: 700 !important; transition: background 0.18s !important;
}
.header-cta:hover { background: var(--orange-dark) !important; color: var(--white) !important; }

/* Hamburger */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: 6px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2.5px;
  background: var(--navy); margin: 5px 0; border-radius: 2px;
  transition: all 0.25s;
}

/* ====== HERO ====== */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #1e4a6e 100%);
  color: var(--white); padding: 90px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(247,147,26,0.18); border: 1px solid rgba(247,147,26,0.4);
  color: var(--orange); padding: 6px 14px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 700; margin-bottom: 20px; letter-spacing: 0.5px;
}
.hero h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 3.2rem); margin-bottom: 1.2rem; }
.hero h1 span { color: var(--orange); }
.hero p { color: rgba(255,255,255,0.82); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px;
}
.hero-stat {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 16px;
}
.hero-stat .stat-num { font-size: 1.6rem; font-weight: 800; color: var(--orange); }
.hero-stat .stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.65); margin-top: 2px; }

.hero-visual {
  display: flex; flex-direction: column; gap: 14px; position: relative;
}
.hero-visual img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  max-height: 340px; object-fit: cover; width: 100%;
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 9px; font-weight: 700;
  font-size: 0.95rem; cursor: pointer; transition: all 0.18s;
  border: 2px solid transparent; line-height: 1;
}
.btn-primary {
  background: var(--orange); color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark); border-color: var(--orange-dark);
  color: var(--white); text-decoration: none; transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(247,147,26,0.4);
}
.btn-secondary {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1); color: var(--white);
  text-decoration: none; border-color: var(--white);
}
.btn-outline {
  background: transparent; color: var(--orange);
  border-color: var(--orange);
}
.btn-outline:hover {
  background: var(--orange); color: var(--white);
  text-decoration: none;
}
.btn-green {
  background: var(--green); color: var(--white);
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-dark); border-color: var(--green-dark);
  color: var(--white); text-decoration: none;
}
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ====== CARDS ====== */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon { width: 52px; height: 52px; margin-bottom: 16px; border-radius: 12px; object-fit: contain; }

/* Exchange cards */
.exchange-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow); transition: all 0.2s;
}
.exchange-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.exchange-card.featured {
  border: 2px solid var(--orange);
  position: relative;
}
.exchange-card.featured::before {
  content: '⭐ Top Pick'; position: absolute; top: -12px; left: 20px;
  background: var(--orange); color: var(--white);
  padding: 3px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
}
.exchange-header { display: flex; align-items: center; gap: 14px; }
.exchange-logo { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; border: 1px solid var(--border); padding: 4px; }
.exchange-name { font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.exchange-tagline { font-size: 0.82rem; color: var(--text-muted); }
.exchange-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}
.badge-green  { background: #e6f4ec; color: var(--green); }
.badge-orange { background: #fff3e0; color: var(--orange-dark); }
.badge-blue   { background: #e8eef6; color: var(--navy); }
.badge-gray   { background: #f1f3f5; color: #555; }
.exchange-fees { font-size: 0.85rem; color: var(--text-muted); }
.exchange-fees strong { color: var(--text); }
.exchange-actions { display: flex; gap: 10px; margin-top: 4px; }

/* ====== COMPARISON TABLE ====== */
.comparison-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.comparison-table th {
  background: var(--navy); color: var(--white);
  padding: 14px 16px; text-align: left; font-weight: 700; white-space: nowrap;
}
.comparison-table th:first-child { border-radius: 10px 0 0 0; }
.comparison-table th:last-child  { border-radius: 0 10px 0 0; }
.comparison-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--bg-light); }
.comparison-table tr:hover td { background: #fef9f2; }
.comparison-table .top-pick td { background: #fff8ef; }
.comparison-table .top-pick td:first-child { border-left: 3px solid var(--orange); }
.check { color: var(--green); font-weight: 700; }
.cross { color: #dc3545; }

/* ====== STEPS ====== */
.steps { display: flex; flex-direction: column; gap: 20px; }
.step {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.step-num {
  background: var(--orange); color: var(--white);
  min-width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; flex-shrink: 0;
}
.step-content h4 { color: var(--navy); margin-bottom: 6px; }

/* ====== FAQ ====== */
.faq { display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--white);
}
.faq-q {
  padding: 18px 22px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; color: var(--navy); user-select: none;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--bg-light); }
.faq-q .faq-icon { font-size: 1.2rem; color: var(--orange); transition: transform 0.2s; flex-shrink: 0; }
.faq-a { display: none; padding: 0 22px 18px; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q { background: #fef9f2; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ====== CITY GRID ====== */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.city-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 16px;
  text-align: center; transition: all 0.2s;
  color: var(--navy); font-weight: 700; font-size: 0.95rem;
}
.city-card:hover {
  border-color: var(--orange); background: #fff8ef;
  color: var(--orange); text-decoration: none; transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.city-card .city-icon { font-size: 1.8rem; margin-bottom: 8px; }

/* ====== PAYMENT METHODS GRID ====== */
.payment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.payment-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  transition: all 0.2s;
}
.payment-card:hover {
  border-color: var(--orange); box-shadow: var(--shadow);
  transform: translateY(-2px); text-decoration: none;
}
.payment-card .pm-icon { font-size: 2rem; margin-bottom: 10px; }
.payment-card h4 { color: var(--navy); margin-bottom: 6px; }
.payment-card p { font-size: 0.83rem; color: var(--text-muted); margin: 0; }

/* ====== ATM BOX ====== */
.atm-box {
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.atm-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.atm-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; background: var(--white);
  border-radius: 8px; border: 1px solid var(--border);
  font-size: 0.9rem;
}
.atm-list li .atm-pin { font-size: 1.3rem; flex-shrink: 0; }

/* ====== TRUST SECTION ====== */
.trust-bar {
  display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
  justify-content: center; padding: 24px 0;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
}
.trust-item .t-icon { font-size: 1.2rem; }

/* ====== INFO BOXES ====== */
.info-box {
  background: #e8f4fd; border-left: 4px solid #2196F3;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px; margin: 20px 0;
}
.info-box.warning { background: #fff8e1; border-color: #FFC107; }
.info-box.success { background: #e8f5e9; border-color: var(--green); }
.info-box.danger  { background: #fdecea; border-color: #dc3545; }
.info-box p { margin: 0; font-size: 0.9rem; }

/* ====== BREADCRUMBS ====== */
.breadcrumbs {
  padding: 14px 0 0;
  font-size: 0.83rem; color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs span { margin: 0 6px; }

/* ====== SECTION HEADINGS ====== */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .section-tag {
  display: inline-block; background: #fff3e0; color: var(--orange);
  padding: 4px 14px; border-radius: 20px; font-size: 0.8rem;
  font-weight: 700; margin-bottom: 12px; letter-spacing: 0.5px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p { color: var(--text-muted); max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

/* ====== STATS ROW ====== */
.stats-row { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.stat-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 32px; text-align: center;
  flex: 1; min-width: 160px;
}
.stat-box .stat-num { font-size: 2.2rem; font-weight: 800; color: var(--orange); line-height: 1; }
.stat-box .stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }

/* ====== HIGHLIGHT BOX ====== */
.highlight-box {
  background: linear-gradient(135deg, var(--navy) 0%, #1e4a6e 100%);
  color: var(--white); border-radius: var(--radius-lg); padding: 40px;
  display: flex; gap: 32px; align-items: center;
}
.highlight-box .hb-icon { font-size: 3rem; flex-shrink: 0; }
.highlight-box h3 { color: var(--white); margin-bottom: 8px; }
.highlight-box p { color: rgba(255,255,255,0.8); margin-bottom: 18px; }

/* ====== CTA SECTION ====== */
.cta-section {
  background: linear-gradient(135deg, #F7931A 0%, #e07b10 100%);
  color: var(--white); text-align: center; padding: 80px 20px;
}
.cta-section h2 { color: var(--white); margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.88); max-width: 560px; margin: 0 auto 32px; font-size: 1.1rem; }

/* ====== FOOTER ====== */
#site-footer {
  background: var(--navy-dark); color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { font-size: 0.9rem; margin-top: 14px; color: rgba(255,255,255,0.65); line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--orange); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0; display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 14px;
  font-size: 0.8rem; color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--orange); }
.disclaimer {
  font-size: 0.78rem; color: rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.15); padding: 16px 0; line-height: 1.6;
  text-align: center;
}

/* ====== PROS/CONS ====== */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pros, .cons { border-radius: var(--radius); padding: 20px; }
.pros { background: #e8f5e9; }
.cons { background: #fdecea; }
.pros h4 { color: var(--green-dark); }
.cons h4 { color: #c0392b; }
.pros ul li::marker { color: var(--green); }
.cons ul li::marker { color: #dc3545; }

/* ====== LEGAL BADGES ====== */
.legal-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.legal-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 16px; font-size: 0.82rem; font-weight: 600;
}
.legal-badge .lb-icon { font-size: 1.3rem; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --max-w: 100%; }
  .section { padding: 52px 0; }

  /* Nav mobile */
  .nav-toggle { display: flex; flex-direction: column; }
  .main-nav {
    display: none; position: fixed; top: 68px; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: 8px; }
  .nav-dropdown .dropdown-menu {
    position: static; box-shadow: none; border: none;
    background: var(--bg-light); border-radius: 8px;
    display: block; padding: 0;
  }
  .nav-dropdown > a::after { content: ''; }

  /* Hero */
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Grids */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  /* Tables */
  .comparison-table th, .comparison-table td { padding: 10px 12px; font-size: 0.82rem; }

  /* Highlight box */
  .highlight-box { flex-direction: column; text-align: center; padding: 28px 22px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }

  /* Pros/cons */
  .pros-cons { grid-template-columns: 1fr; }

  /* Steps */
  .step { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .city-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 12px; }
  .stat-box { padding: 18px 20px; min-width: 130px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { justify-content: center; }
  .exchange-actions { flex-direction: column; }
}

/* ====== UTILITIES ====== */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.hidden-mobile { }
@media (max-width: 768px) { .hidden-mobile { display: none; } }

.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.page-wrapper main { flex: 1; }
