/* Firematic custom styles (keep Tailwind via CDN) */
body {
  font-family: 'Montserrat', system-ui, sans-serif;
}
header a {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.05em;
}
:root{ --accent:#c8102e; }
.btn{ display:inline-flex; align-items:center; gap:.5rem; padding:.75rem 1.25rem; border-radius:.75rem; font-weight:700; }
.btn-primary{ background:var(--accent); color:#fff; }


/* Hero mesh background */
.hero-bg{ position:absolute; inset:0; z-index:-1; }
.hero-bg .blob{ position:absolute; filter:blur(40px); border-radius:60%; opacity:.6; }
.hero-bg .b1{ background:#ef4444; inset:-10% 40% auto -10%; width:60vmax; height:60vmax; animation:blob 18s ease-in-out infinite; }
.hero-bg .b2{ background:#f59e0b; inset:auto auto 10% 20%; width:50vmax; height:50vmax; animation:blob 22s ease-in-out infinite reverse; }
.hero-bg .b3{ background:#38bdf8; inset:20% -10% auto auto; width:45vmax; height:45vmax; animation:blob 26s ease-in-out infinite; }
@keyframes blob{ 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(8%,-4%) scale(1.05)} 66%{transform:translate(-6%,6%) scale(.98)} }


/* Dropdown nudge */
.group:hover .group .absolute{ pointer-events:auto }

/* Smooth slide for mobile drawer */
#mobileMenu{
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  overflow: hidden;
  pointer-events: none;
  transition: max-height .30s ease, opacity .20s ease, transform .20s ease;
}

/* When open */
#mobileMenu[data-open="true"]{
  max-height: 480px;    /* adjust if your menu is taller */
  opacity: 1;
  transform: none;
  pointer-events: auto;
}


/* Header base + transitions */
#siteHeader{
  height: 5rem; /* 80px — stays constant to avoid flicker */
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
#siteHeader .header-links a,
#siteHeader .header-actions a{
  transition: color .3s ease;
}

/* Align content vertically and make it scalable */
#siteHeader .header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  line-height: 1;
  transform-origin: center;
  transition: transform .25s ease, opacity .25s ease;
}

/* Scroll state: color only (no height change) */
#siteHeader.is-scrolled{
  background: rgba(200,16,46,.95);
  border-bottom-color: transparent;
  color: #fff;
  box-shadow: none;
}

/* Visual “shrink” via scale (≈20%) */
#siteHeader.is-scrolled .header-inner{
  transform: scale(0.85);
}

/* Center logo properly */
#logoWrap{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: transform .25s ease;
}
#siteHeader #siteLogo{
  display: block;
  height: 3rem; /* 48px default */
  transition: opacity .3s ease, transform .3s ease; /* no height change on scroll */
}

/* Logo hover + spin interaction */
#logoWrap:hover{ transform: rotate(-3deg) scale(1.05); }

/* Spin-twice animation (trigger via JS) */
#siteLogo.spin-twice{
  animation: spinTwice .6s ease-out 1;
}
@keyframes spinTwice{
  from { transform: rotate(0deg); }
  to   { transform: rotate(720deg); } /* 2 rotations */
}

/* Links on red header */
#siteHeader.is-scrolled .header-links a,
#siteHeader.is-scrolled .header-actions a{ color:#fff; }
#siteHeader.is-scrolled .header-links a:hover,
#siteHeader.is-scrolled .header-actions a:hover{ color: rgba(255,255,255,.85); }

/* Keep desktop dropdown links readable against the white submenu panel */
#siteHeader.is-scrolled .header-links .group > div a{
  color:#111;
}
#siteHeader.is-scrolled .header-links .group > div a:hover{
  color: var(--cta, #c8102e);
}

/* Mobile drawer contrast on red header */
#siteHeader.is-scrolled #mobileMenu{
  background: rgba(200,16,46,.97);
  border-top-color: rgba(255,255,255,.15);
}
#siteHeader.is-scrolled #mobileMenu a{ color:#fff; }
#siteHeader.is-scrolled #mobileMenu a:hover{ color: rgba(255,255,255,.85); }

/* Current page indicator */
.header-links a.active,
.header-actions a.active{
  color: var(--cta, #c8102e);
  position: relative;
}
.header-links a.active::after,
.header-actions a.active::after{
  content:"";
  position:absolute;
  left:0; bottom:-4px;
  width:100%; height:2px;
  background: var(--cta, #c8102e);
  border-radius:2px;
}
/* Maintain contrast when header is red */
#siteHeader.is-scrolled .header-links a.active,
#siteHeader.is-scrolled .header-actions a.active{ color:#fff; }
#siteHeader.is-scrolled .header-links a.active::after,
#siteHeader.is-scrolled .header-actions a.active::after{
  background:#fff; opacity:.9;
}

/* Contact button base */
.header-actions a[href*="contact.html"] {
  background: var(--cta, #c8102e);
  color: #fff;
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.header-actions a[href*="contact.html"]:hover {
  background: #a10c25;
}

/* On scroll: invert for contrast on red header */
#siteHeader.is-scrolled .header-actions a[href*="contact.html"] {
  background: #fff;
  color: #c8102e;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15);
}
#siteHeader.is-scrolled .header-actions a[href*="contact.html"]:hover {
  background: #f3f3f3;
}

/* Contact button default (on white header) */
.btn-contact{
  background: var(--cta, #c8102e);
  color: #fff;
  box-shadow: 0 2px 10px rgba(200,16,46,.25);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.btn-contact:hover{ background:#a10c25; }

/* On red header: invert for contrast */
#siteHeader.is-scrolled .btn-contact{
  background:#fff;
  color:#c8102e;
  box-shadow: 0 0 0 1px rgba(255,255,255,.35);
}
#siteHeader.is-scrolled .btn-contact:hover{
  background:#f3f3f3;
}


/* Dark section background for product cards */
.product-section {
  background: #1e1e1e; /* deep gray */
  padding: 4rem 0;     /* breathing space above & below */
}

/* Optional: lighten cards a bit for contrast */
.product-section .card {
  background: #f9f9f9;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}

/* Adjust the section heading if needed */
.product-section h2,
.product-section p {
  color: #000;
}



/* Hide horizontal scrollbar in the hero viewport */
#heroViewport{ scrollbar-width: none; }
#heroViewport::-webkit-scrollbar{ display:none; }

/* Dots only */
#heroDots button{
  width:10px; height:10px; border-radius:999px;
  background:#bfc5cf; border:0; cursor:pointer;
  transition:transform .2s ease, background .2s ease;
}
#heroDots button[aria-current="true"]{
  transform: scale(1.5);
  background:#c8102e;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  #heroViewport{ scroll-behavior:auto; }
  .hero-arrow, #heroDots button{ transition:none; }
}

/* Clean button (no white box) */
#hamburger{ background:transparent;border:0;color:#111;transition:color .25s ease; }
#siteHeader.is-scrolled #hamburger{ color:#fff; }

/* 3-bar icon */
#hamburger .hb{
  --bar: 2px;   /* bar thickness */
  --gap: 4px;   /* vertical gap between bars */
  display:inline-flex; flex-direction:column; justify-content:center;
  width:24px; height:18px;  /* container size */
  gap: var(--gap);
}
#hamburger .hb > span{
  height: var(--bar);
  width: 100%;
  background: currentColor;
  border-radius: 9999px;                /* smooth ends */
  transition: transform .25s ease, opacity .2s ease, background .2s ease;
  transform-origin: center;
}

/* Morph to X when menu is open */
#hamburger[aria-expanded="true"] .hb > span:nth-child(1){
  transform: translateY(calc(var(--gap) + var(--bar))) rotate(45deg);
}
#hamburger[aria-expanded="true"] .hb > span:nth-child(2){
  opacity: 0;
}
#hamburger[aria-expanded="true"] .hb > span:nth-child(3){
  transform: translateY(calc(-1 * (var(--gap) + var(--bar)))) rotate(-45deg);
}





