/* === GLOBAL RESET === */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background: white;
  color: #111;
  overflow-x: hidden;
}

/* === HEADINGS === */
h1, h2, h3 { color: #004f88; }

/* === NAVIGATION (DESKTOP UNCHANGED) === */
nav.container-fluid {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  padding-top: 0rem;
  padding-bottom: 0rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  border: 0;
  outline: 0;
}

.nav-inner {
  width: 100%;
  padding: 0 224px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  transition: color 0.3s ease;
  color: inherit;
  font-size: 0.7rem;
  line-height: 1.2;
}

.logo { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: normal; }
.logo img { height: 32px; width: auto; }

/* Hide mobile-only elements on desktop */
.hamburger, .submenu-toggle, .drawer-header { display: none; }

/* Theme states (unchanged) */
nav.container-fluid.dark-nav a,
nav.container-fluid.dark-nav strong,
nav.container-fluid.dark-nav .icon { color: white !important; }
nav.container-fluid.light-nav { background: white; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
nav.container-fluid.light-nav a,
nav.container-fluid.light-nav strong,
nav.container-fluid.light-nav .icon { color: #333 !important; }

/* === DROPDOWN MENU (DESKTOP) === */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  background: #fff;
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  border-radius: 4px;
  min-width: 180px;
  z-index: 999;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 0.25rem 0.5rem;
  color: #333 !important; text-decoration: none; font-weight: 500; white-space: nowrap;
}
.dropdown-menu a:hover { background: #f0f0f0; color: #000 !important; }
nav.container-fluid.dark-nav .dropdown-menu { background: #fff !important; }
nav.container-fluid.dark-nav .dropdown-menu a { color: #333 !important; }
nav.container-fluid.dark-nav .dropdown-menu a:hover { background: #f0f0f0; color: #000 !important; }

/* === HERO SECTION === */
.hero {
  position: relative; width: 100vw; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; margin: 0; padding: 0;
}
.hero-video { position: absolute; top: 0; left: 0; object-fit: cover; width: 100%; height: 100%; z-index: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 2; }
.hero-content { position: relative; z-index: 3; margin-top: 500px; color: white; }
.hero h1 { font-size: 1rem; font-weight: 200; margin-bottom: 1rem; color: #ffffff !important; }
.hero h2, .hero h3 { color: white; }
.hero h2 { font-size: 3rem; font-weight: 600; margin-bottom: 1rem; }
.hero h3 { font-size: 1.75rem; font-weight: 300; }

/* === MAIN CONTENT === */
main.container { padding: 0 2rem; background: white; }
.image-grid { background: white; padding: 2rem 0; width: 100%; }
.image-grid .grid.two-column { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.full-width-image { margin-top: 2rem; }
figure { position: relative; overflow: hidden; border-radius: 14px; margin: 0; padding: 0; }
figure img { width: 100%; height: auto; object-fit: cover; transition: transform 0.4s ease; border-radius: 14px; }
figure img:hover { transform: scale(1.03); }
figcaption {
  position: absolute; bottom: 0; left: 0; width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  color: white; font-size: 1.2rem; font-weight: 600; text-align: center;
  border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; z-index: 2;
}

/* === FOOTER === */
footer.container { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid #ccc; text-align: center; font-size: 0.8rem; background: white; color: #111; }
.professional-footer { background: white; padding: 3rem 2rem 2rem; color: #111; border-top: 1px solid #ccc; font-size: 0.8rem; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-logo-group { display: flex; align-items: center; gap: 0.8rem; }
.footer-logo-group img { height: 40px; }
.footer-logo-group h4 { margin: 0; font-size: 1.25rem; color: #004f88; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { text-decoration: none; color: #004f88; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { text-align: center; margin-top: 2rem; font-size: 0.85rem; color: #666; }

/* === COOKIE BANNER === */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; width: 100%;
  z-index: 9999; background: #f9f9f9; color: #111;
  padding: 1rem 2rem; box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  display: none; font-size: 0.9rem; border-top: 1px solid #ccc;
}
#cookie-banner .container { display: flex; flex-direction: column; gap: 0.75rem; max-width: 960px; margin: 0 auto; }
#cookie-banner p { margin: 0; line-height: 1.4; }
#cookie-banner a { color: #004f88; text-decoration: underline; }
#cookie-banner a:hover { text-decoration: none; }
#cookie-banner button {
  font-family: "Poppins", sans-serif;
  padding: 0.5rem 1rem; border-radius: 4px; border: none; cursor: pointer;
  font-weight: 500; transition: background-color 0.2s ease;
}
#cookie-banner button.contrast { background-color: #004f88; color: white; }
#cookie-banner button.contrast:hover { background-color: #003a66; }
#cookie-banner button.secondary { background-color: #e0e0e0; color: #333; }
#cookie-banner button.secondary:hover { background-color: #d0d0d0; }

@media (max-width: 768px) {
  #cookie-banner .container { flex-direction: column; align-items: flex-start; }
  #cookie-banner button { width: 100%; }
}

/* =========================================================
   MOBILE-ONLY HAMBURGER & OFF-CANVAS DRAWER
   ========================================================= */
@media (max-width: 768px) {
  .nav-inner { padding: 0 1rem; }

  /* Transparent hamburger; bars stay visible */
  .hamburger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 36px; height: 36px;
    border: none;
    background: transparent;
    margin-right: 8px;
    color: #333;
    cursor: pointer;
  }
  nav.container-fluid.dark-nav .hamburger { color: #fff; }

  .hamburger span {
    display: block !important;
    width: 20px; height: 2px;
    margin: 0;
    background: currentColor !important;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* Off-canvas drawer */
  #primary-nav {
    position: fixed;
    top: 0; left: 0;
    height: 100vh; width: 280px;
    padding: 0;                         /* header has padding */
    background: #ffffff;
    box-shadow: 8px 0 24px rgba(0,0,0,0.15);
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    text-align: left;
  }
  #primary-nav.open { transform: translateX(0); }

  /* Drawer header with brand + X */
  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px;
    border-bottom: 1px solid #eee;
  }
  .drawer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
  }
  .drawer-brand img { height: 28px; width: auto; }
  .drawer-close {
    background: transparent;
    border: none;
    color: #333;
    font-size: 28px;
    line-height: 1;
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center; justify-content: center;
    cursor: pointer;
  }

  /* Left-align items and make full width */
  #primary-nav > li { width: 100%; display: flex; align-items: center; }
  #primary-nav > li > a,
  #primary-nav > li > .has-submenu {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start !important;
    width: 100%;
    padding: 12px 14px;
    color: #333 !important;
    font-size: 0.95rem;
    text-align: left !important;
  }
  #primary-nav > .drawer-header + li > a,
  #primary-nav > .drawer-header + li > .has-submenu { padding-top: 12px; }

  #primary-nav > li > a:hover,
  #primary-nav > li > .has-submenu:hover { background: #f5f7fa; }

  /* Submenu appears directly under Explore (no absolute positioning) */
  #primary-nav > li.dropdown { display: block; width: 100%; }
  #primary-nav .dropdown { position: static !important; }

  .submenu-toggle {
    display: inline-flex;
    margin-left: auto;
    background: none; border: none; padding: 6px;
    align-items: center; justify-content: center;
    color: #666; cursor: pointer; border-radius: 8px;
    transition: transform 0.2s ease, background 0.2s ease;
  }
  .submenu-toggle[aria-expanded="true"] { transform: rotate(180deg); }
  .submenu-toggle:hover { background: #f3f4f6; }

  #primary-nav .dropdown-menu {
    position: static !important;   /* override desktop absolute */
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    margin: 0;
    padding: 0 0 8px 0;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0;
    display: none;                 /* collapsed by default */
  }
  #primary-nav .dropdown.open > .dropdown-menu { display: block !important; }

  .dropdown-menu a {
    display: block;
    padding: 10px 14px 10px 22px;  /* indent sub items */
    border-radius: 8px;
    color: #333 !important;
    text-align: left !important;
  }
  .dropdown-menu a:hover { background: #f5f7fa; }

  /* Backdrop */
  #backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 999;
  }
  #backdrop.show { opacity: 1; pointer-events: auto; }

  /* Stack grid etc. */
  .grid.two-column { grid-template-columns: 1fr !important; }
  .footer-content { flex-direction: column; align-items: center; text-align: center; }
  .hero-content { margin-top: 200px; }
}

/* Shared dropdown list styling for News and Products */

/* Apply styles only when the dropdown is visible */
.dropdown.open > .dropdown-menu,
.dropdown:hover > .dropdown-menu {
  display: block; /* Let your existing script/CSS control visibility */
}

#news-submenu,
#products-submenu {
  padding: 0;
  margin: 0;
  list-style: none;
}

#news-submenu li,
#products-submenu li {
  display: block;       /* Stack vertically */
  width: 100%;          /* Fill dropdown width */
}

#news-submenu li a,
#products-submenu li a {
  display: block;       /* Full clickable row */
  padding: 0.5rem 1rem; /* Spacing */
  text-decoration: none;
  color: inherit;       /* Match nav text color */
}

#news-submenu li a:hover,
#products-submenu li a:hover {
  background-color: rgba(0, 0, 0, 0.05); /* Hover effect */
}

/* === NEWS PAGE OVERRIDES === */
body.news-page .story-content,
body.news-page .story-content * {
  color: white !important;
}
/* 5) Give the dots a little room without forcing overflow */
html body .viewport .dots { bottom: 1rem !important; }

body .image-grid figcaption {
  color: white !important;
}



/* Floating "Shop All" Button - Mobile Only (Centered) */

.shop-all-btn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  
  /* Almost full width but keep some margin on sides */
  width: 90%; 
  max-width: 500px; /* Stops it from being too huge on larger mobiles/tablets */
  padding: 0.35rem 0; /* Slim vertical height */
  
  background-color: #007fe6; /* Brighter base blue */
  color: white;
  font-weight: 600;
  font-size: 1rem;
  
  border-radius: 999px; /* Pill shape */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: block;
  
  z-index: 2000;
  transition: background-color 0.35s ease-in-out, 
              transform 0.25s ease-out, 
              box-shadow 0.25s ease;
}

.shop-all-btn:hover,
.shop-all-btn:focus {
  background-color: #00a2ff; /* Hover shade */
  transform: translate(-50%, -4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}


.amazon-button {
  display: inline-block;
  background: linear-gradient(135deg, #FFB84D, #FF9900);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
  text-align: center;
}

.amazon-button:hover {
  background: linear-gradient(135deg, #E68A00, #CC7A00);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.amazon-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* 📱 Full-width on mobile */
@media (max-width: 600px) {
  .amazon-button {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 16px;
  }
} /* close the 600px media query */

/* Accessible, always-on visual hiding for SEO + screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

  
/* === Fix Lighthouse contrast in cookie banner (safe to remove) === */

/* Make sure the banner has an opaque light bg so contrast is computed correctly */
#cookie-banner{
  background:#f6f6f6 !important;  /* opaque, not translucent */
  color:#111 !important;
}

/* Link inside the banner: darker green/teal that passes 4.5:1 */
#cookie-banner p a,
#cookie-banner p a:visited{
  color:#065 !important;           /* #006655 ≈ 6.41:1 on #f6f6f6 */
  text-decoration: underline;      /* also helps visibility */
  font-weight: 600;                 /* optional: crisper */
}
#cookie-banner p a:hover,
#cookie-banner p a:focus{
  color:#044 !important;            /* slightly darker on hover/focus */
  outline: 2px solid currentColor;  /* visible keyboard focus */
  outline-offset: 2px;
}

/* Buttons (kept from previous suggestion; ensure they’re high-contrast) */
#cookie-banner button.contrast{
  background:#111 !important;
  color:#fff !important;
  border:2px solid #FFD400;
}
#cookie-banner button.secondary{
  background:#fff !important;
  color:#111 !important;
  border:1px solid #111 !important;
}



/* === Force AA contrast for the floating "Shop all" link === */
html body a.shop-all-btn,
html body .shop-all-btn {
  position: fixed; bottom: 1rem; right: 1rem;
  display: inline-block;
  padding: .65rem .95rem;
  border-radius: 9999px;
  font: 600 16px/1.1 Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-decoration: none;

  background-color: #111 !important;   /* OPAQUE dark background */
  color: #fff !important;               /* White text */
  border: 2px solid #FFD400 !important; /* Keep your brand accent */
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  z-index: 10;                          /* stay above video/overlay */
}

html body a.shop-all-btn:hover,
html body a.shop-all-btn:focus {
  background-color: #000 !important;
  outline: 2px solid #fff !important;
  outline-offset: 2px;
}

/* Guardrails in case a previous rule added translucency */
.shop-all-btn { 
  opacity: 1 !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
}
