/*
 * RevMake Clean Energy Solutions
 * Design System — Mobile-first, uniform typography
 */

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  --black: #000000;
  --dark-900: #0F2A2E;
  --dark-800: #133338;
  --dark-700: #173C42;

  --grey-300: #d1d5db;
  --grey-200: #e8f0f1;
  --grey-100: #f4f7f8;
  --grey-50:  #f9fafb;
  --white:    #ffffff;

  --accent:       #C7BE3F;
  --accent-hover: #b3ab38;
  --brand-gold:       #c7be3f;
  --brand-gold-muted: rgba(199,190,63,0.10);

  --text-primary:       #0F2A2E;
  --text-secondary:     #5a6d71;
  --text-muted:         #5a6d71;   /* alias — used by footer */
  --text-inverse:       #ffffff;
  --text-inverse-muted: #a4b4b6;

  --border-color:      #e8f0f1;
  --border-color-dark: rgba(255,255,255,0.10);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               Helvetica, Arial, sans-serif;

  --shadow-sm:    0 2px  8px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:    0 12px 30px rgba(0,0,0,0.12);
  --shadow-float: 0 20px 40px rgba(0,0,0,0.15);

  --transition-fast:   0.20s cubic-bezier(0.4,0,0.2,1);
  --transition-normal: 0.40s cubic-bezier(0.25,0.8,0.25,1);
  --transition-slow:   0.80s cubic-bezier(0.22,1,0.36,1);

  --container-width: 1320px;
  --nav-height:      70px;

  /* ── Fluid typography scale (clamp: min | preferred | max) ────── */
  --fs-xs:   0.75rem;                          /*  12px          */
  --fs-sm:   0.875rem;                         /*  14px          */
  --fs-base: 1rem;                             /*  16px          */
  --fs-md:   1.0625rem;                        /*  17px          */
  --fs-lg:   1.125rem;                         /*  18px          */
  --fs-xl:   1.25rem;                          /*  20px          */
  --fs-2xl:  clamp(1.375rem, 3vw, 1.75rem);   /*  22–28px       */
  --fs-3xl:  clamp(1.75rem,  4vw, 2.25rem);   /*  28–36px       */
  --fs-4xl:  clamp(2rem,     5vw, 2.75rem);   /*  32–44px       */
  --fs-hero: clamp(2.25rem,  5.5vw, 3.5rem);  /*  36–56px  hero */
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Uniform heading scale ─────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl);  }
h5 { font-size: var(--fs-lg);  }
h6 { font-size: var(--fs-md);  }

p  { margin-bottom: 1rem; }
a  { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
img, svg { max-width: 100%; height: auto; display: block; }

.dark-mode-section h1,
.dark-mode-section h2,
.dark-mode-section h3,
.dark-mode-section p  { color: var(--text-inverse); }
.dark-mode-section .text-muted { color: var(--text-inverse-muted); }

/* ── Utilities ─────────────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-muted   { color: var(--text-secondary); }

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Container ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 640px)  { .container { padding: 0 28px; } }
@media (min-width: 1024px) { .container { padding: 0 40px; } }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-transform: capitalize;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.btn-sm  { padding: 9px  18px; font-size: var(--fs-sm);  }
.btn-lg  { padding: 15px 32px; font-size: var(--fs-lg);  }

.btn-primary { background-color: var(--accent); color: var(--dark-900); }
.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(199,190,63,0.35);
}

.btn-secondary { background-color: var(--dark-900); color: var(--white); }
.btn-secondary:hover {
  background-color: var(--dark-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.20);
}

.btn-outline {
  background: transparent;
  color: var(--dark-900);
  border: 1.5px solid var(--dark-900);
}
.btn-outline:hover { background: var(--dark-900); color: var(--white); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline-light:hover { background: var(--white); color: var(--dark-900); }

/* ── On dark hero the outline btn needs a white border ─────────── */
.hero--dark .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.hero--dark .btn-outline:hover { background: var(--white); color: var(--dark-900); }

/* ============================================
   Announcement Bar
   ============================================ */
.announcement-bar {
  background-color: var(--dark-900);
  color: var(--white);
  padding: 9px 0;
  text-align: center;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  position: relative;
  z-index: 100;
}
.announcement-bar a { color: var(--accent); font-weight: 600; }

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background-color: var(--dark-700);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background-color var(--transition-normal),
              box-shadow var(--transition-normal),
              transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* Offset body content so it doesn't hide under the fixed header */
body {
  padding-top: var(--nav-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  gap: 16px;
}
@media (min-width: 640px)  { .header-inner { padding: 0 28px; } }
@media (min-width: 1024px) { .header-inner { padding: 0 40px; } }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 36px; width: auto; }
@media (min-width: 640px) { .logo img { height: 40px; } }

/* Desktop nav */
.main-nav { display: none; }
@media (min-width: 992px) { .main-nav { display: block; } }

.nav-list { display: flex; list-style: none; gap: 28px; }
@media (min-width: 1200px) { .nav-list { gap: 36px; } }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--white);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 24px 0;
}
@media (min-width: 1200px) { .nav-link { font-size: 0.9375rem; } }
.nav-link:hover, .nav-link.active { color: var(--accent); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
@media (min-width: 480px) { .header-actions { gap: 14px; } }
@media (min-width: 768px) { .header-actions { gap: 20px; } }

.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: inline-flex; } }

/* Hamburger */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
@media (min-width: 992px) { .mobile-toggle { display: none; } }

.hamburger { display: block; width: 22px; height: 15px; position: relative; }
.hamburger span {
  display: block; position: absolute;
  height: 2px; width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition-fast);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 7px; }
.hamburger span:nth-child(3) { top: 14px; }

/* ============================================
   Mega Menu
   ============================================ */
.nav-item-has-mega { position: static; }

.mega-menu {
  position: absolute;
  top: 100%; left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  border-top: 1px solid var(--border-color);
  padding: 36px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 100;
}
.nav-item-has-mega:hover .mega-menu {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}

.mega-menu-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  color: var(--text-primary);
}
.mega-menu-col h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mega-menu-col ul { list-style: none; }
.mega-menu-col ul li { margin-bottom: 9px; }
.mega-menu-col ul li a {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
}
.mega-menu-col ul li a:hover { color: var(--accent); }

/* Mobile mega menu */
@media (max-width: 991px) {
  .main-nav.is-open {
    display: block !important;
    position: absolute;
    top: 100%; left: 0;
    width: 100%;
    background-color: var(--dark-700);
    padding: 16px 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }
  .main-nav.is-open .nav-list { flex-direction: column; gap: 0; }
  .main-nav.is-open .nav-link { padding: 13px 0; display: block; border-bottom: 1px solid rgba(255,255,255,0.05); }

  .mega-menu {
    position: static;
    visibility: visible; opacity: 1;
    transform: none; box-shadow: none;
    background: transparent; border: none;
    padding: 8px 0 8px 16px;
    display: none;
  }
  .nav-item-has-mega:hover .mega-menu,
  .nav-item-has-mega:focus-within .mega-menu { display: block; }
  .mega-menu-content { grid-template-columns: 1fr; gap: 16px; }
  .mega-menu-col h4 { color: var(--accent); }
  .mega-menu-col ul li a { color: rgba(255,255,255,0.75); }

  /* Hamburger animation */
  .mobile-toggle.is-active .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-toggle.is-active .hamburger span:nth-child(2) { opacity: 0; }
  .mobile-toggle.is-active .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================
   Section Primitives
   ============================================ */
.section { padding: 72px 0; }
@media (min-width: 768px)  { .section { padding: 96px 0; } }
@media (min-width: 1024px) { .section { padding: 120px 0; } }

.section-tag {
  display: inline-block;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.section-title {
  font-size: var(--fs-3xl);
  margin-bottom: 20px;
  line-height: 1.15;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: var(--fs-md);
  max-width: 580px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.section-header { text-align: center; margin-bottom: 56px; }

/* ============================================
   Hero — Home (two-column split)
   ============================================ */
.hero {
  position: relative;
  min-height: 100svh; /* mobile: fills viewport cleanly */
  display: flex;
  align-items: center;
  background-color: var(--grey-50);
  overflow: hidden;
}
@media (min-width: 768px) { .hero { min-height: 88vh; } }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 75% 50%,
    rgba(199,190,63,0.06) 0%, transparent 65%);
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;          /* mobile: tighter so image isn't isolated */
  align-items: center;
  padding-top: 36px;
  padding-bottom: 40px;
}
@media (min-width: 768px) {
  .hero-container { gap: 40px; padding-top: 56px; padding-bottom: 56px; }
}
@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 52% 48%;
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* ── Text side ──────────────────────────────────────────────────── */
.hero-content { max-width: 100%; }
@media (min-width: 992px) { .hero-content { max-width: 560px; } }

.hero-title {
  font-size: var(--fs-hero);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

/* ── Cycling headline ───────────────────────────────────────────── */
.hero-cycling-title { display: grid; }
.hero-line {
  grid-area: 1 / 1;
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: heroLineCycle 8s ease-in-out infinite;
}
.hero-line-1 { animation-delay: 0s;  }
.hero-line-2 { animation-delay: 4s;  }

@keyframes heroLineCycle {
  0%     { opacity: 0; transform: translateY(14px); }
  6.25%  { opacity: 1; transform: translateY(0);     }
  43.75% { opacity: 1; transform: translateY(0);     }
  50%    { opacity: 0; transform: translateY(-10px); }
  100%   { opacity: 0; transform: translateY(-10px); }
}

/* ── Hero image cycling — synced with title line cycle (8s) ────── */
/*
 * Both images are ALWAYS visible.
 * The ACTIVE image rises to z-index 2 (in front) and full scale/opacity.
 * The INACTIVE image sits behind at z-index 0, slightly scaled down and dimmed.
 *
 * Image 1 (delay 0s): front  0–4s → drops behind for 4–8s
 * Image 2 (delay 4s): behind 0–4s → rises to front for 4–8s
 */
.hero-img-cycle-1,
.hero-img-cycle-2 {
    animation: heroImgCycle 8s ease-in-out infinite;
    /* Start behind — image 1 will immediately be brought forward */
    z-index: 0;
    opacity: 0.55;
}
.hero-img-cycle-1 { animation-delay: 0s; }
.hero-img-cycle-2 { animation-delay: 4s; }

@keyframes heroImgCycle {
    /* Rise to front — full opacity and scale */
    0%   { opacity: 0.55; z-index: 2; transform: var(--img-tilt, rotate(0deg)) scale(1);    }
    6%   { opacity: 1;    z-index: 2; transform: var(--img-tilt, rotate(0deg)) scale(1.04); }
    44%  { opacity: 1;    z-index: 2; transform: var(--img-tilt, rotate(0deg)) scale(1.04); }
    /* Ease back to resting, then drop behind */
    50%  { opacity: 0.55; z-index: 2; transform: var(--img-tilt, rotate(0deg)) scale(1);    }
    51%  { opacity: 0.55; z-index: 0; transform: var(--img-tilt, rotate(0deg)) scale(1);    }
    100% { opacity: 0.55; z-index: 0; transform: var(--img-tilt, rotate(0deg)) scale(1);    }
}

/* Preserve each image's individual tilt while the cycle overrides scale */
.hero-img-1.hero-img-cycle-1, .hero-img-placeholder.hero-img-cycle-1 {
    --img-tilt: rotate(3deg);
}
.hero-img-2.hero-img-cycle-2, .hero-img-placeholder.hero-img-cycle-2 {
    --img-tilt: rotate(-3deg);
}

@media (prefers-reduced-motion: reduce) {
    .hero-img-cycle-1 { animation: none; opacity: 1; z-index: 2; transform: rotate(3deg); }
    .hero-img-cycle-2 { animation: none; opacity: 0.55; z-index: 0; transform: rotate(-3deg); }
}

/* ── Stat metrics ───────────────────────────────────────────────── */
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
}
.hero-metric-value {
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin: 0;
}
.hero-metric-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin: 4px 0 0;
  font-weight: 600;
}
.hero-metric-divider {
  width: 1px; height: 36px;
  background-color: var(--grey-300);
  flex-shrink: 0;
}

/* ── Hero visual (image stack) ──────────────────────────────────── */
.hero-visual-wrapper {
  position: relative;
  width: 100%;
  /* Mobile: fixed height so absolutely-positioned children have room */
  min-height: 320px;
  height: 340px;
  margin-top: 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Clip overhang from tilted/offset images */
  overflow: hidden;
  border-radius: 20px;
}
@media (min-width: 480px) {
  .hero-visual-wrapper { height: auto; min-height: 0; aspect-ratio: 16/10; overflow: visible; border-radius: 0; }
}
@media (min-width: 992px) {
  .hero-visual-wrapper { aspect-ratio: 4 / 3; }
}

.hero-img-1,
.hero-img-2 {
  position: absolute;
  border-radius: 16px;
  box-shadow: var(--shadow-float);
  border: 3px solid rgba(255,255,255,0.85);
  object-fit: cover;
  transition: transform 0.4s ease, z-index 0s, box-shadow 0.4s ease;
  /* Mobile: smaller so both cards fit without heavy overlap */
  width: 72%;
  max-width: 260px;
  height: auto;
}
@media (min-width: 480px) {
  .hero-img-1, .hero-img-2 { width: 62%; max-width: none; border-radius: 20px; border-width: 4px; }
}
@media (min-width: 992px) {
  .hero-img-1, .hero-img-2 { width: 58%; border-radius: 20px; }
}

/* Mobile: stack cards with clear offset so both are visible */
.hero-img-1 { right: 4%; top: 6%;     --img-tilt: rotate(3deg);  }
.hero-img-2 { left:  4%; bottom: 6%;  --img-tilt: rotate(-3deg); }

@media (min-width: 480px) {
  .hero-img-1 { right: 2%; top: 4%; }
  .hero-img-2 { left:  2%; bottom: 4%; }
}
@media (min-width: 768px) {
  .hero-img-1 { right: 4%; top: 6%; }
  .hero-img-2 { left:  4%; bottom: 4%; }
}

.hero-img-1:hover, .hero-img-2:hover {
  z-index: 3 !important;
  transform: rotate(0deg) scale(1.06) !important;
  box-shadow: var(--shadow-float), 0 0 0 3px var(--accent);
  opacity: 1 !important;
}

/* Placeholder shown when no real image is set */
.hero-img-placeholder {
  position: absolute;
  border-radius: 16px;
  border: 2px dashed var(--border-color);
  background: var(--grey-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
  padding: 24px;
  width: 72%;
  max-width: 260px;
}
.hero-img-placeholder svg { opacity: 0.35; }
.hero-img-placeholder:nth-of-type(1) { right: 4%; top: 6%;    z-index: 1; --img-tilt: rotate(3deg);  }
.hero-img-placeholder:nth-of-type(2) { left:  4%; bottom: 6%; z-index: 2; --img-tilt: rotate(-3deg); }
@media (min-width: 480px) {
  .hero-img-placeholder { width: 62%; max-width: none; }
  .hero-img-placeholder:nth-of-type(1) { right: 2%; top: 4%; }
  .hero-img-placeholder:nth-of-type(2) { left:  2%; bottom: 4%; }
}

/* ============================================
   Inner-page hero (About / Shop / Tutorials)
   ============================================ */
.hero--inner {
  min-height: 52vh;
  background-color: var(--dark-900);
}
.hero--inner .hero-bg {
  background: radial-gradient(ellipse 60% 70% at 50% 50%,
    rgba(199,190,63,0.07) 0%, transparent 70%);
}
.hero--inner .hero-container {
  display: flex;
  justify-content: center;
  text-align: center;
}
.hero--inner .hero-content {
  max-width: 760px;
  text-align: center;
}
.hero--inner .hero-title { color: var(--white); }
.hero--inner .hero-subtitle { color: var(--text-inverse-muted); margin-left: auto; margin-right: auto; }
.hero--inner .section-tag  { color: var(--accent); }

/* ============================================
   Bento Grid
   ============================================ */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 260px;
  }
  .bento-item:nth-child(1) { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
  }
  .bento-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .bento-item:nth-child(2) { grid-column: 3; grid-row: 1; }
  .bento-item:nth-child(3) { grid-column: 3; grid-row: 2; }
}

.bento-item {
  position: relative;
  border-radius: 20px;
  background-color: var(--grey-100);
  overflow: hidden;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  transition: transform var(--transition-normal);
  /* Mobile: tall enough that content never squashes */
  min-height: 220px;
}
/* On mobile, let cards grow to fit content naturally */
@media (max-width: 639px) {
  .bento-item {
    min-height: 0;
    height: auto;
    padding: 28px 24px 32px;
    justify-content: flex-start;
  }
  /* Add breathing room between text and the decorative SVG */
  .bento-item-content { padding-right: 80px; }
  /* Push the decorative SVG fully into the corner — never on text */
  .bento-item > svg[aria-hidden] {
    width: 40% !important;
    right: -10px !important;
    bottom: -10px !important;
    opacity: 0.45 !important;
  }
}
@media (min-width: 640px) { .bento-item { padding: 32px; } }
.bento-item:hover { transform: translateY(-4px); }

.bento-item-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.7) 100%);
  opacity: 1;
  transition: opacity var(--transition-normal);
}
.bento-item:hover .bento-item-bg { opacity: 1; background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.8) 100%); }
.bento-item-content { position: relative; z-index: 1; }
.bento-item h3 { font-size: var(--fs-2xl); margin-bottom: 8px; }
.bento-item p  { color: var(--text-secondary); margin-bottom: 0; font-size: var(--fs-sm); }
.bento-item:hover h3, .bento-item:hover p { color: var(--white); }

/* ============================================
   Product Grid
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 480px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Product Card ─────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.product-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.product-card:hover .product-image-wrapper img {
  transform: scale(1.05);
}

/* Image area */
.product-image-wrapper {
  background-color: var(--grey-50);
  border-radius: 0;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

/* Quick-view overlay that appears on hover */
.product-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,42,46,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.product-card:hover .product-image-overlay {
  opacity: 1;
}
.product-image-overlay span {
  background: var(--white);
  color: var(--dark-900);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 40px;
}

/* Gallery image count pill */
.product-image-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15,42,46,0.72);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* Badges */
.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--dark-900); color: var(--white);
  font-size: var(--fs-xs); font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  text-transform: uppercase; z-index: 2;
}
.sale-badge   { background: #ef4444; }
.featured-badge { background: var(--accent); color: var(--dark-900); left: auto; right: 12px; }

/* Info block */
.product-info {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-category {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 5px;
  font-weight: 600;
}
.product-name {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 7px;
  line-height: 1.35;
}
.product-name a { color: inherit; text-decoration: none; }
.product-name a:hover { color: var(--dark-700); }

.product-short-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stock indicator dot */
.product-stock-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.product-stock-dot::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}
.product-stock-dot.out::before { background: #ef4444; }

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  margin-bottom: 14px;
}
.product-price {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--dark-900);
}
.product-price.sale { color: #ef4444; }
.product-price.original {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: line-through;
}

.product-btn {
  width: 100%;
  text-align: center;
  border-radius: 10px;
  padding: 10px 0;
  font-weight: 700;
}

/* ── Product Gallery (single product page) ─ */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-gallery-main {
  background: var(--grey-50);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: zoom-in;
}
.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease;
  padding: 16px;
}
.product-gallery-main .sale-badge {
  position: absolute; top: 14px; left: 14px;
  background: #ef4444; color: var(--white);
  font-size: var(--fs-xs); font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
  text-transform: uppercase; z-index: 3;
}

/* Thumbnail strip */
.product-gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
.product-gallery-thumbs::-webkit-scrollbar { height: 4px; }
.product-gallery-thumbs::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

.gallery-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  background: var(--grey-50);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumb:hover  { border-color: var(--dark-700); transform: translateY(-2px); }
.gallery-thumb.active { border-color: var(--dark-900); box-shadow: 0 0 0 2px var(--dark-900); }

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10,10,10,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}
.gallery-lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.gallery-lightbox img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transition: opacity 0.2s ease;
}
.gallery-lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-fast);
}
.gallery-lightbox-close:hover { background: rgba(255,255,255,0.22); }
.gallery-lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-fast);
}
.gallery-lightbox-nav:hover  { background: rgba(255,255,255,0.22); }
.gallery-lightbox-nav.prev   { left: 20px; }
.gallery-lightbox-nav.next   { right: 20px; }
.gallery-lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-sm);
  font-weight: 600;
  background: rgba(0,0,0,0.4);
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ============================================
   Tech / Why-us Grid
   ============================================ */
.dark-mode-section { background-color: var(--dark-900); color: var(--white); }

.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  justify-items: stretch;
}
@media (min-width: 640px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  /* auto-fit: fills columns based on how many cards exist.
     3 cards → 3 equal columns centred in the container.
     4 cards → 4 columns. Never leaves a ghost empty column. */
  .tech-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

/* Force exactly 3 cols when there are 3 items (most common case) */
.tech-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1023px) { .tech-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .tech-grid--3 { grid-template-columns: 1fr; } }

.tech-feature { padding: 24px; border-top: none; border-radius: 16px; text-align: left; }
.tech-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand-gold-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--accent);
    flex-shrink: 0;
}
.dark-mode-section .tech-icon {
    background: rgba(199,190,63,0.12);
}
.tech-feature h3 { font-size: var(--fs-lg); margin-bottom: 10px; }

/* When tech-grid is inside a light-bg section, give cards proper card styling */
.section:not(.dark-mode-section) .tech-feature {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
/* Inside dark section keep the top-border strip style */
.dark-mode-section .tech-feature {
    background: transparent;
    border-top: 1px solid var(--border-color-dark);
    border-radius: 0;
    padding: 28px 0;
}

/* ============================================
   CTA Banner
   ============================================ */
.image-cta {
  position: relative;
  padding: 96px 0;
  background-color: var(--dark-800);
  overflow: hidden;
  text-align: center;
}
@media (min-width: 768px) { .image-cta { padding: 120px 0; } }

.image-cta-bg {
  position: absolute; inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255,255,255,0.2) 1px, transparent 1px);
  background-size: 20px 20px;
}
.image-cta-content { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; padding: 0 20px; }
.image-cta-content h2 {
  font-size: var(--fs-4xl);
  color: var(--white);
  margin-bottom: 18px;
}
.image-cta-content p { color: rgba(255,255,255,0.68); font-size: var(--fs-lg); margin-bottom: 36px; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background-color: var(--grey-50);
  padding: 64px 0 36px;
  border-top: 1px solid var(--border-color);
}

/* Newsletter block */
.footer-newsletter {
  background-color: var(--dark-900);
  color: var(--white);
  border-radius: 20px;
  padding: 40px 24px;
  margin-bottom: 64px;
  text-align: center;
}
@media (min-width: 640px) { .footer-newsletter { padding: 52px 48px; } }
.footer-newsletter h3 { font-size: var(--fs-3xl); margin-bottom: 12px; color: var(--white); }
.footer-newsletter p  { color: var(--text-inverse-muted); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; font-size: var(--fs-md); }

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
@media (min-width: 480px) { .newsletter-form { flex-direction: row; } }
.newsletter-form input {
  flex: 1;
  padding: 13px 18px;
  border-radius: 50px;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  min-width: 0;
}

/* Footer grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.footer-grid .footer-col:first-child { grid-column: span 2; }
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
  .footer-grid .footer-col:first-child { grid-column: auto; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
}

.footer-heading { font-size: var(--fs-sm); margin-bottom: 20px; font-weight: 700; letter-spacing: 0.03em; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a  { color: var(--text-secondary); font-size: var(--fs-sm); }
.footer-links a:hover { color: var(--accent); }

/* Social icons — 44px touch targets */
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.footer-social a:hover { background: var(--grey-200); color: var(--dark-900); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ============================================
   Forms, Alerts, Contact, Story grids
   ============================================ */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 7px; font-weight: 600; font-size: var(--fs-sm); }

.form-control {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--grey-50);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  transition: all var(--transition-fast);
}
.form-control:focus { outline: none; border-color: var(--dark-700); box-shadow: 0 0 0 3px rgba(23,60,66,0.1); }

.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-sm);
}
.alert-success {
  background: rgba(16,185,129,0.08);
  color: #059669;
  border: 1px solid rgba(16,185,129,0.2);
}
.error-text { color: #ef4444; font-size: var(--fs-xs); margin-top: 5px; display: block; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 992px) { .contact-grid { grid-template-columns: 1fr 1.5fr; } }

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 992px) { .story-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================
   Products page
   ============================================ */
.products-main { padding-top: 60px; }
@media (min-width: 768px) { .products-main { padding-top: 80px; } }

.products-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  padding: 16px;
  background: var(--grey-50);
  border-radius: 14px;
  border: 1px solid var(--border-color);
}
@media (min-width: 768px) {
  .products-toolbar { flex-direction: row; justify-content: space-between; align-items: center; padding: 18px 24px; }
}

.filter-categories { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  padding: 7px 14px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--dark-900);
  color: var(--white);
  border-color: var(--dark-900);
}
.filter-count {
  background: var(--grey-200);
  color: var(--dark-900);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.7rem;
}
.filter-btn.active .filter-count { background: rgba(255,255,255,0.2); color: var(--white); }

.sort-select select {
  padding: 9px 18px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--dark-900);
  cursor: pointer;
}

.products-results-count { margin-bottom: 24px; font-size: var(--fs-sm); color: var(--text-secondary); }

.products-page-grid {
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 480px)  { .products-page-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-page-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .products-page-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================
   Product Detail
   ============================================ */
.breadcrumb-nav {
  padding: 16px 0;
  background-color: var(--grey-50);
  border-bottom: 1px solid var(--border-color);
}
.breadcrumb {
  display: flex; list-style: none; gap: 8px;
  font-size: var(--fs-xs); color: var(--text-secondary);
  flex-wrap: wrap;
}
.breadcrumb li::after { content: '/'; margin-left: 8px; opacity: 0.45; }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--text-secondary); font-weight: 500; }
.breadcrumb a:hover { color: var(--dark-900); }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 64px;
}
@media (min-width: 992px) {
  .product-detail-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 48px; }
}

.product-detail-main-image {
  background: var(--grey-50);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--border-color);
  position: relative;
}
.product-detail-category {
  font-size: var(--fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-secondary); display: block; margin-bottom: 7px;
}
.product-detail-name { font-size: var(--fs-2xl); margin-bottom: 14px; line-height: 1.25; }
.product-detail-pricing {
  margin-bottom: 14px;
  display: flex; align-items: baseline;
  gap: 10px; flex-wrap: wrap;
}
.detail-price { font-size: var(--fs-2xl); font-weight: 800; color: var(--dark-900); }
.detail-price.sale { color: #ef4444; }
.detail-price.original { font-size: var(--fs-md); color: var(--text-secondary); text-decoration: line-through; font-weight: 500; }
.detail-savings { font-size: var(--fs-xs); color: var(--text-secondary); font-weight: 600; }
.product-detail-description { font-size: var(--fs-sm); color: var(--text-secondary); margin-bottom: 20px; line-height: 1.7; }
.product-detail-actions { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.product-detail-actions .btn-lg { padding: 11px 22px; font-size: var(--fs-sm); }

.features-list { list-style: none; }
.features-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--text-secondary); font-size: var(--fs-sm); font-weight: 500; }
.product-detail-features h3 { font-size: var(--fs-md); font-weight: 700; margin-bottom: 12px; color: var(--dark-900); }

/* Tabs */
.tabs-nav {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  overflow-x: auto;
  /* Hide the scrollbar — it only appeared when the nav fit fine anyway */
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE / Edge */
}
.tabs-nav::-webkit-scrollbar { display: none; } /* Chrome / Safari */
.tab-btn {
  background: none; border: none;
  padding: 14px 0;
  font-family: var(--font-sans);
  font-weight: 700; font-size: var(--fs-md);
  color: var(--text-secondary);
  cursor: pointer; position: relative; white-space: nowrap;
}
.tab-btn.active { color: var(--dark-900); }
.tab-btn::after {
  content: '';
  position: absolute; bottom: -1px; left: 0;
  width: 0; height: 3px;
  background: var(--dark-900);
  transition: width var(--transition-fast);
}
.tab-btn.active::after { width: 100%; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.3s ease-out; }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-color); text-align: left; font-size: var(--fs-sm); }
.specs-table th { font-weight: 600; color: var(--dark-900); width: 35%; background: var(--grey-50); }
.specs-table td { color: var(--text-secondary); }

/* ============================================
   Currency Switcher
   ============================================ */
.currency-switcher { position: relative; z-index: 200; }

.currency-toggle {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 11px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 7px;
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.currency-toggle:hover { background: rgba(255,255,255,0.15); }
.currency-toggle .currency-arrow { font-size: 0.55rem; opacity: 0.7; transition: transform var(--transition-fast); }
.currency-switcher.is-open .currency-arrow { transform: rotate(180deg); }

.currency-dropdown {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  min-width: 90px;
  background: rgba(15,42,46,0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 5px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transition: all 0.22s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.currency-switcher.is-open .currency-dropdown {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
}
.currency-option {
  display: block;
  width: 100%;
  padding: 9px 14px;
  border-radius: 7px;
  color: rgba(255,255,255,0.8);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
}
.currency-option:hover { background: rgba(255,255,255,0.10); color: var(--white); }
.currency-option.active { background: rgba(199,190,63,0.15); color: var(--accent); }

@media (max-width: 991px) {
  .currency-switcher { order: -1; }
  .currency-dropdown { right: auto; left: 0; }
}

/* ============================================
   Animations / scroll reveal
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

@keyframes float {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-16px); }
}
.hero-product-img { animation: float 6s ease-in-out infinite; }

/* ============================================
   Small-screen utility overrides (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
  .btn-lg { padding: 13px 22px; font-size: var(--fs-base); }
  .section-header { margin-bottom: 36px; }
  .image-cta { padding: 72px 0; }
  .image-cta-content h2 { font-size: var(--fs-3xl); }
  .hero-metrics { gap: 16px; }
  .hero-metric-value { font-size: var(--fs-2xl); }
}

/* ============================================
   Team Grid — Homepage & About
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (min-width: 640px)  { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }

/* Desktop grid: hidden on small screens, carousel takes over */
.team-grid--desktop { display: none; }
@media (min-width: 640px) { .team-grid--desktop { display: grid; } }

.team-card {
    background: transparent;
    border-radius: 0;
    border: none;
    overflow: visible;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
}
.team-card:hover {
    transform: translateY(-4px);
}

.team-card-photo {
    width: 100%;
    /* let the image dictate its own height so curved/cutout PNGs aren't cropped */
    aspect-ratio: auto;
    overflow: visible;
    background: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.team-card-photo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom;
    display: block;
    transition: transform 0.5s ease;
}
.team-card:hover .team-card-photo img { transform: scale(1.04); }

.team-card-initials {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-700);
    opacity: 0.25;
    line-height: 1;
}

.team-card-body {
    padding: 12px 4px 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}
.team-card-name {
    font-size: var(--fs-md);
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark-900);
}
.team-card-role {
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin: 0;
}

/* ============================================
   Team Carousel — Mobile only (< 640 px)
   ============================================ */
.team-carousel { display: block; overflow: hidden; }
@media (min-width: 640px) { .team-carousel { display: none; } }

.team-carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.team-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
}

.team-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.team-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--grey-300, #d1d5db);
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.team-carousel-dot.active {
    background: var(--accent);
    transform: scale(1.35);
}

/* ============================================
   Reviews / Testimonials Grid — Homepage
   ============================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 640px)  { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

.review-card {
    background: var(--white);
    border-radius: 18px;
    border: 1px solid var(--grey-200, #e5e7eb);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.09);
}

.review-stars {
    display: flex;
    gap: 3px;
}

.review-content {
    font-size: var(--fs-sm, 0.9rem);
    color: var(--text-secondary, #4b5563);
    line-height: 1.7;
    flex: 1;
    quotes: none;
}

.review-author {
    font-size: var(--fs-sm, 0.85rem);
    font-weight: 600;
    color: var(--dark-900, #0f2a2e);
    margin-top: auto;
}
