/* ═══════════════════════════════════════════
   ZIRVE TRADING — Main Stylesheet
   Colors matched to logo: Deep Blue + Silver
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Primary — from logo */
  --blue: #0B3D91;
  --blue-dark: #072B6B;
  --blue-deep: #061F4A;
  --blue-light: #1A5BC4;
  /* Silver/Gray — from logo */
  --silver: #A8B4C0;
  --silver-light: #C8D0DA;
  --gray-dark: #3A3F4B;
  --gray: #5A5E6B;
  --gray-light: #8A8FA3;
  /* Accent */
  --accent: #0FA573;
  /* Backgrounds */
  --bg: #FFFFFF;
  --bg-alt: #F5F7FA;
  --bg-card: #FAFBFC;
  --border: #E2E6ED;
  --text: #1A1A2E;
  --text-soft: #5A5E6B;
  /* Dark mode overrides */
  --header-h: 68px;
}

[data-theme="dark"] {
  --bg: #0D1117;
  --bg-alt: #161B22;
  --bg-card: #161B22;
  --border: #2D333B;
  --text: #E6EDF3;
  --text-soft: #8B949E;
  --silver: #6E7A88;
  --silver-light: #3D4450;
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background .3s, color .3s;
  overflow-x: hidden;
}
::selection { background: var(--blue); color: #fff; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ─── UTILITIES ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.h2 {
  font-size: clamp(26px, 3.5vw, 38px); font-weight: 700;
  color: var(--blue); line-height: 1.15; margin-bottom: 14px;
  letter-spacing: -.02em;
}
.body-text {
  font-size: 15px; line-height: 1.7;
  color: var(--text-soft); max-width: 580px;
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; font-size: 13px; font-weight: 600;
  border: none; cursor: pointer; transition: all .3s;
  letter-spacing: .02em; white-space: nowrap;
}
.btn-primary {
  background: var(--blue); color: #fff;
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(11,61,145,.25);
}
.btn-outline {
  background: transparent; border: 1.5px solid var(--blue); color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: #f0f2f5; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #0d8f63; }

/* ─── CARDS ─── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all .3s; overflow: hidden;
}
.card:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 24px rgba(11,61,145,.08);
  transform: translateY(-2px);
}
.card-body { padding: 20px 24px 24px; }

/* ─── FORMS ─── */
.input {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border);
  background: var(--bg); font-size: 14px;
  outline: none; color: var(--text); transition: border .2s;
}
.input:focus { border-color: var(--blue); }
.input::placeholder { color: var(--text-soft); }

/* ─── TAGS ─── */
.tag {
  display: inline-block; padding: 4px 12px;
  font-size: 11px; font-weight: 600;
  background: var(--bg-alt); color: var(--blue);
  letter-spacing: .03em;
}

/* ─── STOCK BADGE ─── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; font-size: 10px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
}
.badge-stock { background: rgba(15,165,115,.1); color: #0d8f63; }
.badge-order { background: rgba(200,150,0,.1); color: #b8860b; }
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.badge-stock .badge-dot { background: var(--accent); }
.badge-order .badge-dot { background: #DAA520; }

/* ─── HEADER ─── */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h); padding: 0 20px;
  transition: all .35s; border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
[data-theme="dark"] .header.scrolled {
  background: rgba(13,17,23,.95);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  height: 100%; gap: 8px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  margin-right: auto; flex-shrink: 0;
}
.logo img { height: 42px; width: auto; }
.logo-text {
  display: flex; flex-direction: column; line-height: 1;
}
.logo-text span:first-child {
  font-size: 18px; font-weight: 800;
  letter-spacing: .06em; color: var(--blue);
}
.logo-text span:last-child {
  font-size: 9px; font-weight: 500;
  letter-spacing: .22em; color: var(--silver);
  text-transform: uppercase; margin-top: 2px;
}
[data-theme="dark"] .logo-text span:first-child { color: #fff; }

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 12px; font-size: 12px; font-weight: 500;
  color: var(--text-soft); background: none; border: none;
  letter-spacing: .02em; transition: color .2s; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--blue); font-weight: 600; }

/* Controls */
.header-controls {
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0; margin-left: 8px;
}
.lang-switcher {
  display: flex; border: 1px solid var(--border); overflow: hidden;
}
.lang-btn {
  padding: 6px 8px; font-size: 10px; font-weight: 500;
  color: var(--blue); background: transparent;
  border: none; text-transform: uppercase;
  letter-spacing: .05em; transition: all .2s;
}
.lang-btn.active {
  background: var(--blue); color: #fff; font-weight: 700;
}
.theme-toggle {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  background: var(--bg-alt); display: flex;
  align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}

/* Mobile menu */
.burger {
  display: none; background: none; border: none;
  padding: 6px; flex-direction: column; gap: 5px;
}
.burger span {
  width: 20px; height: 2px;
  background: var(--text); transition: all .3s;
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  display: none; position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 99; padding: 24px;
  flex-direction: column; gap: 2px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 16px 0; font-size: 17px; font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a.active { color: var(--blue); }

@media(max-width: 900px) {
  .nav, .header .btn-primary { display: none !important; }
  .burger { display: flex; }
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero-circles {
  position: absolute; inset: 0; opacity: .05;
}
.hero-circle {
  position: absolute; border: 1px solid #fff; border-radius: 50%;
  top: 50%; transform: translateY(-50%);
}
.hero-content {
  position: relative; max-width: 1200px;
  margin: 0 auto; padding: 90px 24px 80px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -.03em; max-width: 680; margin-bottom: 18px;
}
.hero p { font-size: 16px; line-height: 1.7; opacity: .8; max-width: 540; margin-bottom: 32px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px; background: rgba(255,255,255,.08); margin-top: 36px;
}
.hero-stat {
  padding: 24px 20px; background: rgba(0,0,0,.12);
}
.hero-stat strong {
  font-size: 28px; font-weight: 800; display: block;
}
.hero-stat small {
  font-size: 11px; opacity: .55; margin-top: 3px;
  letter-spacing: .04em; text-transform: uppercase; display: block;
}

/* ─── ORDER CTA BAR ─── */
.order-bar {
  background: linear-gradient(90deg, var(--accent), var(--blue));
  padding: 0 24px;
}
.order-bar-inner {
  max-width: 1200px; margin: 0 auto; padding: 36px 0;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.order-bar h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.order-bar p { font-size: 13px; color: rgba(255,255,255,.85); }
.order-steps { display: flex; gap: 20px; }
.order-step {
  display: flex; align-items: center; gap: 8px; color: #fff;
}
.order-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.2); display: flex;
  align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.order-step span { font-size: 13px; font-weight: 500; }

/* ─── PRODUCT CARD ─── */
.product-image {
  width: 100%; height: 140px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-image .watermark {
  position: absolute; bottom: 10px; left: 14px;
  color: #fff; font-size: 22px; font-weight: 800;
  opacity: .2; letter-spacing: -.02em;
}
.product-image svg { opacity: .12; }
.card-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 6px;
}
.card-header h3 { font-size: 15px; font-weight: 700; color: var(--text); }
.card-specs {
  font-size: 11px; color: var(--text-soft); margin-bottom: 8px;
}
.card-specs b { color: var(--text); }
.card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.card-footer {
  display: flex; justify-content: space-between; align-items: center;
}
.card-link { font-size: 12px; font-weight: 600; color: var(--blue); }

/* ─── PAGE HEADER ─── */
.page-header {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff; padding: 72px 24px;
}
.page-header h1 {
  font-size: clamp(30px, 5vw, 48px); font-weight: 800;
  line-height: 1.08; letter-spacing: -.03em; max-width: 650;
}
.page-header p {
  font-size: 16px; opacity: .75; max-width: 520; margin-top: 14px;
}

/* ─── CATEGORY TABS ─── */
.tabs {
  border-bottom: 1px solid var(--border);
  padding: 0 24px; overflow-x: auto;
}
.tabs-inner {
  max-width: 1200px; margin: 0 auto; display: flex; gap: 0;
}
.tab-btn {
  padding: 14px 16px; font-size: 12px; font-weight: 600;
  border: none; background: none; color: var(--text-soft);
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color .2s;
}
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ─── PRODUCT DETAIL ─── */
.spec-table { display: flex; flex-direction: column; }
.spec-row {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.spec-row .label { color: var(--text-soft); }
.spec-row .value { font-weight: 600; color: var(--text); }

.mini-order {
  padding: 24px;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  color: #fff; margin-top: 28px;
}
.mini-order h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.mini-order p { font-size: 12px; opacity: .8; margin-bottom: 14px; }

/* ─── LIBRARY TABLE ─── */
.doc-row {
  display: flex; justify-content: space-between;
  align-items: center; padding: 14px 0;
  border-bottom: 1px solid var(--border); font-size: 13px;
}

/* ─── ORDER MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.55);
  display: none; align-items: center;
  justify-content: center; padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg); max-width: 560px; width: 100%;
  max-height: 92vh; overflow: auto;
  border: 1px solid var(--border);
  animation: fadeUp .4s ease;
}
.modal-header {
  background: linear-gradient(135deg, var(--blue), var(--accent));
  padding: 28px 32px; color: #fff;
}
.modal-header h2 { font-size: 22px; font-weight: 700; }
.modal-header p { font-size: 13px; opacity: .85; margin-top: 6px; }
.modal-close {
  background: rgba(255,255,255,.2); border: none;
  width: 32px; height: 32px; color: #fff;
  font-size: 18px; display: flex;
  align-items: center; justify-content: center;
}
.modal-body { padding: 24px 32px 32px; }
.modal-body .input { margin-bottom: 12px; }
.modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-guarantee {
  font-size: 11px; color: var(--text-soft);
  line-height: 1.5; text-align: center; margin-top: 12px;
}

/* ─── WHATSAPP ─── */
.wa-widget {
  position: fixed; bottom: 20px; right: 20px; z-index: 150;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.wa-popup {
  background: var(--bg); border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  width: 280px; overflow: hidden;
  animation: fadeUp .4s ease;
}
.wa-popup-header {
  background: #25D366; padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.wa-popup-header span { color: #fff; font-weight: 700; font-size: 14px; }
.wa-popup-close {
  background: none; border: none;
  color: #fff; font-size: 18px;
}
.wa-popup-body { padding: 16px; }
.wa-bubble {
  background: var(--bg-alt); padding: 10px 14px;
  border-radius: 0 10px 10px 10px;
  font-size: 13px; line-height: 1.5; margin-bottom: 14px;
}

/* WhatsApp pulse animation */
.wa-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  position: relative; transition: transform .2s;
}
.wa-btn:hover { transform: scale(1.1); }

.wa-btn::before, .wa-btn::after {
  content: ''; position: absolute;
  width: 100%; height: 100%; border-radius: 50%;
  background: #25D366; z-index: -1;
}
.wa-btn::before {
  animation: waPulse 2s ease-out infinite;
}
.wa-btn::after {
  animation: waPulse 2s ease-out infinite .6s;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ─── FOOTER ─── */
.footer {
  background: #0A0E1A; color: #fff; padding: 56px 24px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px; margin-bottom: 40px;
}
.footer-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 14px; opacity: .4;
}
.footer-link {
  display: block; font-size: 13px;
  padding: 5px 0; opacity: .6; cursor: pointer;
}
.footer-link:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px; display: flex;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  font-size: 11px; opacity: .35;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp .5s ease; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .order-steps { display: none; }
  .hero-content { padding: 60px 24px 50px; }
  .modal-body { padding: 20px; }
  .modal-header { padding: 20px; }
  .modal-row { grid-template-columns: 1fr; }
}
