/* ─────────────────────────────────────────
   Woosh Bikes — Global Styles & Design System
   css/global.css
   ───────────────────────────────────────── */

@import url('variables.css');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── BASE & RESET ────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ── TYPOGRAPHY ──────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 em, h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

/* ── LAYOUT CONTAINERS ───────────────────── */
.section {
  padding: 80px 60px;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  background-color: var(--primary-pale);
  color: var(--primary);
  border: 1px solid var(--primary-mid);
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-header {
  margin-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 580px;
  line-height: 1.6;
}

/* ── TOP BAR ────────────────────────────── */
.top-bar {
  background-color: var(--primary);
  padding: 10px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  z-index: 201;
  position: relative;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-left a {
  color: #fff;
  font-weight: 600;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── NAV & STICKY HEADER ─────────────────── */
nav {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-logo span {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease-out;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-nav {
  background-color: var(--primary);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s, transform 0.15s;
}

.btn-nav:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-nav:active {
  transform: translateY(0);
}

.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-primary);
}

/* Nav Icons (Cart, Search) */
.nav-icon-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.nav-icon-btn:hover {
  background-color: var(--primary-pale);
  border-color: var(--primary-mid);
  color: var(--primary);
}

.nav-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2px;
}

.nav-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #ef4444;
  color: #fff;
  border-radius: 9999px;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 0 2px #fff;
}

.nav-cart-badge.visible {
  display: flex;
}

/* ── SHARED COMPONENT CARDS ──────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.interactive-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.interactive-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-hover);
}

.card-img-wrap {
  background-color: var(--bg-secondary);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  height: 200px;
}

.card-img-wrap img {
  max-height: 160px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.interactive-card:hover .card-img-wrap img {
  transform: scale(1.05) translateY(-2px);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
  background-color: var(--accent-pale);
  border-radius: 12px;
  padding: 4px 12px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.card-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.card-price span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.card-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-pale);
  border: 1px solid var(--primary-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  transition: all 0.2s ease;
}

.interactive-card:hover .card-arrow {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: #fff;
  color: var(--primary);
  border: 2px solid var(--primary-mid);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background-color: var(--primary-pale);
}

.btn-ghost {
  background: none;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

/* ── CALL PANEL STRIP ────────────────────── */
.call-panel {
  background-color: var(--primary);
  color: #fff;
  padding: 40px 60px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 48px;
  box-shadow: var(--shadow-lg);
  flex-wrap: wrap;
}

.call-panel-text {
  flex: 1;
}

.call-panel-text h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 6px;
}

.call-panel-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.btn-call-outline {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-call-outline:hover {
  background-color: #fff;
  color: var(--primary);
  border-color: #fff;
}

/* ── FOOTER ──────────────────────────────── */
footer {
  background-color: #0c1814; /* Extremely deep dark green/black */
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 60px 40px;
  border-top: 1px solid #142821;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.footer-logo span {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-phone-box a {
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
}

.footer-phone-box span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}

.footer-col h4 {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ── MOBILE BOTTOM NAV ───────────────────── */
.bottom-nav-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-color);
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.bottom-nav-mobile a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  gap: 4px;
}

.bottom-nav-mobile a.active,
.bottom-nav-mobile a:hover {
  color: var(--primary);
}

.bottom-nav-mobile svg {
  width: 20px;
  height: 20px;
}

/* ── TABLET RESPONSIVENESS (<= 1100px) ───── */
@media (max-width: 1100px) {
  .top-bar, nav, .section {
    padding-left: 32px;
    padding-right: 32px;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* ── MOBILE RESPONSIVENESS (<= 768px) ────── */
@media (max-width: 768px) {
  body {
    padding-bottom: 60px; /* Space for bottom nav */
  }

  .top-bar-right {
    display: none;
  }

  .top-bar {
    padding: 10px 16px;
    font-size: 13px;
  }

  nav {
    padding: 0 16px;
    height: 64px;
  }

  .nav-links, .nav-phone, .btn-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .section {
    padding: 48px 16px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 32px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  footer {
    padding: 48px 16px 88px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .bottom-nav-mobile {
    display: flex;
  }
}
