/* ============================================================
   EV-olution - style.css
   Shared, locked baseline. Do not duplicate these rules inline
   on individual pages. Page-specific styles belong in that
   page's own <style> block (hero, video grid, shop grid, etc).
   mobile.css loads AFTER this file and only adds responsive
   overrides - it never redefines colors, spacing, or logic
   that already exists here.
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:    #0d0d0d;
  --dark2:   #161616;
  --dark3:   #1e1e1e;
  --green:   #2d7a27;
  --green2:  #3a9932;
  --white:   #f0f0f0;
  --muted:   #888888;
  --border:  rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.12);
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--dark); color: var(--white); font-family: 'Inter', sans-serif; font-size: 14px; }

/* CANADIAN FLAG ICON */
.ca-flag { display: inline-block; width: 16px; height: 11px; vertical-align: middle; flex-shrink: 0; }

/* ============================================================
   NAV
   ============================================================ */
.nav { background: transparent; backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid transparent; height: 82px; position: sticky; top: 0; z-index: 50; transition: background 0.05s linear, border-color 0.35s ease, box-shadow 0.35s ease, height 0.35s ease; }
.nav.scrolled { background: rgba(48,48,48,0.85); border-bottom-color: rgba(255,255,255,0.14); box-shadow: 0 10px 34px -10px rgba(0,0,0,0.6); height: 64px; }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 28px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img { display: block; height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 14px; border-radius: 6px; font-size: 13px; color: #b8b8b8; border: 0.5px solid rgba(255,255,255,0.12); text-decoration: none; cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
.nav-link.active { color: var(--white); background: rgba(45,122,39,0.35); border-color: rgba(58,153,50,0.7); }
.nav-link:hover { color: var(--white); border-color: rgba(45,122,39,0.18); }
.nav-cart { position: relative; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--white); text-decoration: none; flex-shrink: 0; }
.nav-cart svg { width: 22px; height: 22px; }
.nav-cart:hover { color: var(--green2); }
.nav-cart-badge { position: absolute; top: -2px; right: -2px; background: var(--green); color: #fff; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 3px; line-height: 1; }
.nav-cta { background: var(--green); color: #fff; padding: 9px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; border: none; text-decoration: none; }
.nav-cta:hover { background: var(--green2); }

/* PRODUCTS I USE DROPDOWN */
.dropdown { position: relative; display: inline-block; }
.nav-drop-btn { font-family: inherit; background: none; }
.dropdown-content {
  display: block; position: absolute; top: calc(100% + 8px); left: 0; min-width: 160px;
  background: rgba(30,30,30,0.97); border: 0.5px solid var(--border2); border-radius: 8px;
  padding: 6px; box-shadow: 0 12px 30px rgba(0,0,0,0.5); z-index: 1000;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.dropdown:hover .dropdown-content { opacity: 1; visibility: visible; transform: translateY(0); }
/* Invisible hover bridge - prevents the dropdown from closing in the gap
   between the button and the panel when the mouse crosses it. */
.dropdown::after { content: ""; position: absolute; top: 100%; left: 0; width: 100%; height: 8px; }
.dropdown-content a {
  display: block; padding: 8px 12px; border-radius: 6px; font-size: 13px;
  color: #b8b8b8; text-decoration: none; white-space: nowrap;
}
.dropdown-content a:hover { color: var(--white); background: rgba(45,122,39,0.18); }

/* Active-page nav highlighting - driven by a body class set per page,
   not a hardcoded "active" class in the shared header markup. See
   header-nav-architecture-reference.md Section 5. Product pages also
   highlight Shop, since a product detail page is conceptually still
   part of the shop section (matches the breadcrumb: Home / Shop / Product). */
body.home-page #nav-home,
body.videos-page #nav-videos,
body.shop-page #nav-shop,
body.product-page #nav-shop,
body.products-ev6-page #nav-products,
body.products-niro-page #nav-products,
body.instagram-page #nav-instagram,
body.contact-page #nav-contact {
  color: var(--white) !important;
  background: rgba(45,122,39,0.08) !important;
  border-color: rgba(45,122,39,0.18) !important;
}

/* Dropdown items get the same active highlight as top-level nav links
   when their specific page is active, in addition to the parent
   "Products I Use" trigger above also lighting up. */
body.products-ev6-page #nav-products-ev6,
body.products-niro-page #nav-products-niro {
  color: var(--white) !important;
  background: rgba(45,122,39,0.18) !important;
}

/* ============================================================
   SHARED BUTTONS (used across multiple page types)
   ============================================================ */
.btn-primary { display: flex; align-items: center; gap: 8px; background: var(--green); color: #fff; padding: 12px 22px; border-radius: 8px; font-size: 14px; font-weight: 600; box-shadow: 0 4px 20px rgba(45,122,39,0.3); cursor: pointer; border: none; text-decoration: none; }
.btn-primary:hover { background: var(--green2); }
.btn-primary svg { width: 16px; height: 16px; fill: #fff; flex-shrink: 0; }
.btn-ghost { border: 0.5px solid rgba(255,255,255,0.18); color: var(--white); padding: 12px 22px; border-radius: 8px; font-size: 14px; cursor: pointer; background: transparent; text-decoration: none; }
.btn-ghost:hover { background: rgba(255,255,255,0.05); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark2); border-top: 0.5px solid var(--border); padding: 0 28px 33px; }
.evo-strip-wrap { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; padding: 9px 0; border-bottom: 0.5px solid var(--border); margin-bottom: 30px; }
.evo-image-wrap { position: relative; width: 100%; display: flex; justify-content: center; }
.evo-strip-img { width: 920px; max-width: 100%; height: auto; filter: invert(1); opacity: 0.14; display: block; }
.evo-overlay-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.evo-overlay-label span { font-size: 18px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--green2); font-weight: 600; }
.footer-top { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 2fr; align-items: start; margin-bottom: 28px; gap: 40px; padding-top: 33px; }
.footer-brand { flex-shrink: 0; }
.footer-badge { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; letter-spacing: 0.4px; color: var(--muted); text-align: center; }
.footer-name { margin-bottom: 6px; }
.footer-logo-img { display: block; height: 20px; width: auto; }
.footer-tagline { font-size: 12px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; max-width: 180px; }
.footer-socials { display: flex; gap: 8px; }
.soc { width: 32px; height: 32px; border-radius: 6px; background: rgba(255,255,255,0.05); border: 0.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); cursor: pointer; text-decoration: none; }
.soc:hover { border-color: var(--green2); color: var(--green2); }
.footer-nav { display: flex; gap: 32px; width: 100%; justify-content: flex-end; }
.footer-col { display: flex; flex-direction: column; }
.footer-col-title { font-size: 12px; font-weight: 600; color: var(--white); margin-bottom: 12px; white-space: nowrap; }
.footer-col a, .footer-col span { font-size: 12px; color: var(--muted); margin-bottom: 8px; display: block; white-space: nowrap; text-decoration: none; cursor: pointer; }
.footer-col a:hover { color: var(--white); }
.soon { font-size: 9px; color: var(--green2); background: rgba(45,122,39,0.12); border: 0.5px solid rgba(45,122,39,0.25); border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; font-style: normal; }
.footer-bottom { max-width: 1280px; margin: 0 auto; border-top: 0.5px solid var(--border); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 12px; color: #c5c5c5; display: flex; align-items: center; gap: 8px; }

/* Prevents the sticky nav from covering anchor-scroll targets
   (Videos, Instagram, Contact nav links jump to these). */
#videos-section, #instagram-section, #footer { scroll-margin-top: 90px; }

/* ============================================================
   SHARED LAYOUT UTILITY
   Used by every page-type section wrapper (hero, shop header,
   video gallery, etc.) to keep max-width/padding consistent.
   ============================================================ */
.section { padding: 40px 28px; border-bottom: 0.5px solid var(--border); max-width: 1280px; margin: 0 auto; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-size: 18px; font-weight: 500; }
.section-link { font-size: 13px; color: var(--green2); text-decoration: none; cursor: pointer; }
.section-link:hover { text-decoration: underline; }

/* ============================================================
   SHARED PAGE HEADER
   Used by every page with a heading + intro text at the top
   (Shop, Products I Use - EV6, Products I Use - Niro EV, etc).
   Keep these matched across pages rather than letting each page
   redefine its own version.
   ============================================================ */
.page-header { max-width: 1280px; margin: 0 auto; padding: 20px 28px 10px; border-bottom: 0.5px solid var(--border); }
.page-crumb { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.page-crumb a { color: var(--muted); text-decoration: none; }
.page-crumb a:hover { color: var(--white); }
.page-title { font-family: 'Orbitron', sans-serif; font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.page-sub { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 100%; }
.page-sub strong { color: var(--white); font-weight: 500; }
.page-note { margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 100%; }

/* ============================================================
   COOKIE CONSENT BANNER + INSTAGRAM CONSENT GATE
   ============================================================ */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 500; background: var(--dark2); border-top: 0.5px solid var(--border2); padding: 20px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cookie-banner-text { color: var(--muted); font-size: 14px; margin: 0; }
.cookie-banner-text a { color: var(--green2); text-decoration: none; }
.cookie-banner-text a:hover { text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; margin-top: 14px; }
.cookie-banner-btn { font-size: 13px; padding: 9px 18px; border-radius: 6px; cursor: pointer; border: 0.5px solid var(--border2); background: transparent; color: var(--muted); }
.cookie-banner-btn.accept { background: var(--green); border: none; color: #fff; font-weight: 600; }
.cookie-banner-btn.accept:hover { background: var(--green2); }
.cookie-banner-btn.decline:hover { color: var(--white); border-color: var(--green2); }

.ig-consent-gate { background: var(--dark2); border: 0.5px solid var(--border); border-radius: 8px; padding: 20px; text-align: center; }
.ig-consent-gate p { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.ig-consent-btn { background: transparent; border: 0.5px solid var(--green2); color: var(--green2); font-size: 12px; padding: 8px 14px; border-radius: 6px; cursor: pointer; }
.ig-consent-btn:hover { background: rgba(45,122,39,0.12); }
