/* ── COMPONENTS — Navbar, Footer, Cards, Forms, Sliders, Modals ─────────── */

/* ═══════════════════════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════════════════════ */

.navbar-component {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  height: var(--navbar-height);
  background: var(--color-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-navbar);
  transition: background-color var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.navbar-component.scrolled {
  background: var(--color-white);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-navbar);
}

.navbar-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity var(--transition-base);
}

.navbar-logo:hover { opacity: 0.85; }

.navbar-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: none;
  transition: filter var(--transition-base);
}

.navbar-component.scrolled .navbar-logo-img {
  filter: none;
}

/* Nav Links */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 4px 0;
  position: relative;
  transition: color var(--transition-base);
  white-space: nowrap;
}

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

.nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

/* Kept for scroll-shadow parity; link colors now match the default state */
.navbar-component.scrolled .nav-link {
  color: var(--color-text-secondary);
}
.navbar-component.scrolled .nav-link:hover,
.navbar-component.scrolled .nav-link.active {
  color: var(--color-primary);
}

/* Products Dropdown */
.nav-dropdown-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.dropdown-chevron {
  transition: transform var(--transition-fast), color var(--transition-fast);
  color: var(--color-text-muted);
}

.nav-dropdown-wrapper:hover .dropdown-chevron,
.nav-dropdown-wrapper.open .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.navbar-component.scrolled .dropdown-chevron { color: var(--color-text-muted); }
.navbar-component.scrolled .nav-dropdown-wrapper:hover .dropdown-chevron { color: var(--color-primary); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  padding: 8px;
  min-width: 220px;
  border: 1px solid var(--color-border-light);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
  z-index: var(--z-dropdown);
}

/* Invisible bridge fills the gap so hover doesn't break mid-cursor-travel */
.nav-dropdown-wrapper::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -16px;
  right: -16px;
  height: 12px;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent var(--color-white);
}

.nav-dropdown-wrapper:hover .nav-dropdown,
.nav-dropdown-wrapper.open .nav-dropdown,
.nav-dropdown-wrapper:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-dropdown-link:hover {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

/* Right Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-cta-btn {
  height: 40px;
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background-color var(--transition-base), transform var(--transition-base);
}

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

/* Hamburger */
.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: transparent;
  border: none;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 1px;
  transition: transform var(--transition-base), opacity var(--transition-base), background-color var(--transition-base);
  display: block;
}

.navbar-hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.navbar-hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Overlay + Panel */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 22, 53, 0.6);
  z-index: var(--z-mobile-menu);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  background: var(--color-white);
  z-index: calc(var(--z-mobile-menu) + 1);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-menu-panel.open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border-light);
}

.mobile-logo-img {
  height: 48px;
  width: auto;
}

.mobile-menu-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  border: 1.5px solid var(--color-border);
  background: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.mobile-menu-close:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

.mobile-nav-link.sub {
  padding-left: 32px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-secondary);
}

.mobile-nav-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-nav-accordion-header:hover {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

.accordion-chevron {
  font-size: 10px;
  transition: transform var(--transition-fast);
}

.mobile-nav-accordion.open .accordion-chevron {
  transform: rotate(180deg);
}

.mobile-nav-accordion-body {
  display: none;
}

.mobile-nav-accordion.open .mobile-nav-accordion-body {
  display: block;
}

.mobile-nav-cta {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-light);
}

/* ── Navbar hover 3D flip + radial glow (vanilla CSS port of HoverGradientNavBar) ── */

.nav-link-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  perspective: 600px;
}

/* Sub-wrapper used only for the Products dropdown label span */
.nav-label-flip {
  position: relative;
  display: inline-flex;
  align-items: center;
  perspective: 600px;
}

/* Glow element kept in DOM (JS still appends it) but visually disabled */
.nav-link-glow {
  display: none;
}

/* Shared face styles */
.nav-link-face {
  backface-visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  position: relative;
  z-index: 1;
}

/* Front face (visible at rest) */
.nav-link-front {
  transform-origin: center bottom;
  transform: rotateX(0deg);
}

/* Back face (hidden at rest, flips in on hover) */
.nav-link-back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateX(90deg);
  transform-origin: center top;
  text-decoration: none;
}

/* Hover: front flips away, back flips in */
.nav-link-wrapper:hover .nav-link-front {
  transform: rotateX(-90deg);
}

.nav-link-wrapper:hover .nav-link-back {
  transform: rotateX(0deg);
}

/* Back face should not show the active underline */
.nav-link-back::after { display: none !important; }

/* Scrolled state — back face inherits the dark text color correctly via .nav-link */

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════════════ */

.footer-component {
  background: var(--color-dark);
  padding: 80px 0 0;
}

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

.footer-logo-img {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-about-text {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.footer-social-icons {
  display: flex;
  gap: 12px;
}

.social-icon-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background-color var(--transition-base), color var(--transition-base),
              border-color var(--transition-base), transform var(--transition-base);
}

.social-icon-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.1);
}

.footer-col-heading {
  font-family: var(--font-heading);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  margin-bottom: 24px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-base), padding-left var(--transition-base);
  display: block;
}

.footer-link:hover {
  color: var(--color-white);
  padding-left: 4px;
}

.footer-newsletter-text {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-input-wrapper {
  position: relative;
  display: flex;
  margin-bottom: 8px;
}

.footer-newsletter-input {
  flex: 1;
  height: 48px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 0 52px 0 20px;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-white);
  outline: none;
  transition: border-color var(--transition-base);
}

.footer-newsletter-input::placeholder { color: rgba(255, 255, 255, 0.3); }

.footer-newsletter-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.footer-newsletter-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: background var(--transition-base);
}

.footer-newsletter-btn:hover {
  background: var(--color-primary-dark);
}

.footer-newsletter-disclaimer {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom-link {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-bottom-link:hover {
  color: var(--color-text-muted);
}

.footer-bottom-divider {
  color: rgba(255, 255, 255, 0.15);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT CARD
═══════════════════════════════════════════════════════════════════════════ */

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-card-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-bg-light);
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img {
  transform: scale(1.05);
}

.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.product-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateX(0);
}

.card-action-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  background: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--color-text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
}

.card-action-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.product-card-body {
  padding: 20px;
}

.product-card-category {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.product-card-name {
  font-family: var(--font-heading);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  line-height: 1.4;
  margin-bottom: 6px;
}

.product-card-model {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.product-card-specs {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG CARD
═══════════════════════════════════════════════════════════════════════════ */

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.09);
}

.blog-card-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--color-bg-light);
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img {
  transform: scale(1.05);
}

.blog-card-category {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-date,
.blog-read-time {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-muted);
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.blog-card-excerpt {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-read-more {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}

.blog-read-more:hover {
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIAL CARD
═══════════════════════════════════════════════════════════════════════════ */

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--color-border-light);
}

.testimonial-stars {
  font-size: 20px;
  color: var(--color-star);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  color: var(--color-text-primary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 32px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-circle);
  object-fit: cover;
  background: var(--color-bg-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.testimonial-avatar-initials {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-circle);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

.testimonial-author-name {
  font-family: var(--font-heading);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.testimonial-author-role {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SERVICE / FEATURE CARD
═══════════════════════════════════════════════════════════════════════════ */

.service-card {
  background: var(--color-bg-light);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  transition: background-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover {
  background: var(--color-primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-primary-lg);
}

.service-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-circle);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--color-primary);
  transition: background var(--transition-base), color var(--transition-base);
}

.service-card:hover .service-icon-wrapper {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.service-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.service-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: 12px;
  transition: color var(--transition-base);
}

.service-card:hover .service-title {
  color: var(--color-white);
}

.service-desc {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
  transition: color var(--transition-base);
}

.service-card:hover .service-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT INFO CARD
═══════════════════════════════════════════════════════════════════════════ */

.contact-info-card {
  background: var(--color-bg-light);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.contact-info-card:hover {
  background: var(--color-primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-primary-lg);
}

.contact-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-circle);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--color-primary);
  transition: background var(--transition-base), color var(--transition-base);
}

.contact-info-card:hover .contact-icon-wrapper {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.contact-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.contact-info-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: 8px;
  transition: color var(--transition-base);
}

.contact-info-value {
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: 6px;
  transition: color var(--transition-base);
}

.contact-info-desc {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  transition: color var(--transition-base);
}

.contact-info-card:hover .contact-info-title,
.contact-info-card:hover .contact-info-value,
.contact-info-card:hover .contact-info-desc {
  color: var(--color-white);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SLIDER
═══════════════════════════════════════════════════════════════════════════ */

.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
  padding-top: var(--navbar-height);
}

/* ── Hero geometric background: navy | red slash | white ── */
.hero-geo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Navy — upper-left: covers top full-width, tapers to lower-left at 14° */
.hero-geo-navy {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    158deg,
    #021635 0%,
    #031e4a 50%,
    #04122a 100%
  );
  clip-path: polygon(0% 0%, 100% 0%, 100% 40%, 0% 80%);
}

/* Red slash — thin diagonal strip parallel to the 14° axis */
.hero-geo-red {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 90% at 62% 48%, rgba(235, 80, 70, 0.55) 0%, transparent 62%),
    linear-gradient(150deg, #b02426 0%, #D62D2F 38%, #c02527 68%, #9e1a1c 100%);
  clip-path: polygon(100% 40%, 100% 47%, 0% 87%, 0% 80%);
  opacity: 0; /* animated in by GSAP */
}

/* White — lower-right: covers bottom full-width, starts at the red slash */
.hero-geo-white {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(214, 45, 47, 0.07) 0%,
    #edf0f5 28%,
    #f2f4f8 100%
  );
  clip-path: polygon(100% 47%, 100% 100%, 0% 100%, 0% 87%);
  opacity: 0; /* animated in by GSAP */
}

/* Atmospheric gradient overlays — soft zone blending across clip-path edges */
.hero-geo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* Radial glow from center-right — bleeds warmth across the red zone and beyond */
  background: radial-gradient(
    ellipse 58% 72% at 67% 42%,
    rgba(214, 45, 47, 0.20) 0%,
    rgba(214, 45, 47, 0.07) 38%,
    transparent 68%
  );
}

.hero-geo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* Diagonal gradient that softens both boundary edges */
  background: linear-gradient(
    165deg,
    transparent 32%,
    rgba(0, 0, 0, 0.14) 41%,
    rgba(214, 45, 47, 0.10) 47%,
    rgba(0, 0, 0, 0.08) 53%,
    transparent 60%
  );
}

/* White circle — lives inside .hero-image-wrapper, aligns exactly with the product */
.hero-geo-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  /* centering and slide-in handled by GSAP (xPercent:-50 yPercent:-50 x:40→0) */
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 60px rgba(0,0,0,0.10);
  opacity: 0; /* animated in by GSAP */
  z-index: 0; /* sits behind .hero-img (z-index: 1) */
  pointer-events: none;
}

/* Diagonal bars — parallel to the 14° diagonal background, in the white section */
.hero-geo-bar {
  position: absolute;
  left: 50%;
  right: -6%;
  transform-origin: left center;
  opacity: 0; /* animated in by GSAP */
  z-index: 2;
  pointer-events: none;
}

/* bar-1 sits behind the product (inside .hero-geo, z-index 0 in section) */
.hero-geo-bar-1 {
  height: 20px;
  background: var(--color-primary);
  bottom: 34%;
  transform: rotate(-14deg);
}

/* bar-2 is a direct child of .hero-section (z-index 2 = above slider/product) */
.hero-geo-bar-2 {
  height: 20px;
  background: #010e20;
  bottom: 28%;
  transform: rotate(-14deg);
}

/* Slider sits above all geo layers */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - var(--navbar-height));
  z-index: 1;
}

/* Hide red glow on product — white circle provides framing */
.hero-img-glow {
  display: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 60px var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-subtext {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 8px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: var(--font-weight-bold);
  color: var(--color-dark);
}

.hero-stat-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(11, 21, 38, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: var(--radius-2xl);
  position: relative;
  z-index: 1;
}

.hero-img-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse, rgba(214, 45, 47, 0.25) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* Slider Controls */
.hero-slider-controls {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 2;
}

.slider-arrow {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-circle);
  border: 1.5px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base);
  flex-shrink: 0;
}

.slider-arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(195, 30, 30, 0.25);
  cursor: pointer;
  transition: width var(--transition-base), background-color var(--transition-base);
  border: none;
}

.slider-dot.active {
  width: 24px;
  background: var(--color-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIAL SLIDER
═══════════════════════════════════════════════════════════════════════════ */

.testimonial-slider {
  overflow: hidden;
  position: relative;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  flex: 0 0 100%;
  max-width: 100%;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT FORM
═══════════════════════════════════════════════════════════════════════════ */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}

.form-input,
.form-textarea,
.form-select {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  background: var(--color-bg-light);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 20px;
  height: 52px;
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  width: 100%;
}

.form-textarea {
  height: auto;
  padding: 16px 20px;
  resize: vertical;
  min-height: 140px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--color-error);
}

.form-error-msg {
  font-size: 12px;
  color: var(--color-error);
  display: none;
}

.form-error-msg.visible {
  display: block;
}

.form-success {
  display: none;
  padding: 20px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid #10b981;
  border-radius: var(--radius-md);
  color: #065f46;
  font-size: var(--font-size-base);
  text-align: center;
}

.form-success.visible {
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ ACCORDION
═══════════════════════════════════════════════════════════════════════════ */

.faq-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.faq-tab-btn {
  height: 40px;
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  background: var(--color-bg-light);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base);
}

.faq-tab-btn:hover {
  color: var(--color-primary);
}

.faq-tab-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
}

.faq-tab-content {
  display: none;
}

.faq-tab-content.active {
  display: block;
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.accordion-item.open {
  border-color: var(--color-primary);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  gap: 16px;
}

.accordion-question {
  font-family: var(--font-heading);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  line-height: 1.4;
  flex: 1;
}

.accordion-item.open .accordion-question {
  color: var(--color-primary);
}

.accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-circle);
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-text-secondary);
  transition: background-color var(--transition-base), color var(--transition-base), transform var(--transition-base);
  font-size: 18px;
  line-height: 1;
}

.accordion-icon::before {
  content: '+';
}

.accordion-header {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}

.accordion-item.open .accordion-icon {
  background: var(--color-primary);
  color: var(--color-white);
  transform: rotate(45deg);
}

.accordion-body {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-item.open .accordion-body {
  max-height: 500px;
  padding-bottom: 24px;
}

.accordion-answer {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WARRANTY CTA SECTION
═══════════════════════════════════════════════════════════════════════════ */

.warranty-cta-section {
  background: var(--color-dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.warranty-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(214, 45, 47, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.warranty-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}

.warranty-cta-heading {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.warranty-cta-desc {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
}

.warranty-cta-buttons {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT CATEGORY BAR — 3×2 grid, GadgetZ sizing
═══════════════════════════════════════════════════════════════════════════ */

.category-bar {
  background: #f5f5f5;
  padding: 20px 24px;
  position: relative;
  z-index: 5;
}

.category-bar-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  padding: 0 16px;
  text-decoration: none;
  color: #888;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  z-index: 1;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.category-tile span {
  position: relative;
  z-index: 2;
}

.category-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #021635;
  clip-path: inset(0 100% 0 0);
  z-index: 0;
  transition: clip-path 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-tile:hover {
  color: #fff;
  border-color: transparent;
}

.category-tile:hover::before {
  clip-path: inset(0 0% 0 0);
}

@media (max-width: 768px) {
  .category-bar-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .category-tile { height: 120px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .category-bar { padding: 12px; }
  .category-tile { height: 90px; font-size: 0.75rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   21st.dev TEMPLATE ADAPTATIONS
═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero Announcement Chip ── */
.hero-announce-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  padding: 5px 14px 5px 10px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--transition-base), border-color var(--transition-base);
  width: fit-content;
  margin-bottom: 16px;
}
.hero-announce-chip:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.38);
  color: rgba(255, 255, 255, 0.98);
}
.announce-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 0 rgba(214, 45, 47, 0.6);
  animation: announcePulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes announcePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(214, 45, 47, 0.6); }
  50%       { box-shadow: 0 0 0 5px rgba(214, 45, 47, 0); }
}

/* ── Hero Image Glow Enhancement ── */
.hero-img-glow {
  background: radial-gradient(
    ellipse at 50% 55%,
    rgba(214, 45, 47, 0.40) 0%,
    rgba(214, 45, 47, 0.16) 42%,
    transparent 68%
  ) !important;
  filter: blur(28px);
}

/* ── Service Card Gradient Frame ── */
.service-card-frame {
  border-radius: calc(var(--radius-xl) + 2px);
  padding: 2px;
  background: linear-gradient(
    145deg,
    rgba(214, 45, 47, 0.55),
    rgba(214, 45, 47, 0.08) 55%,
    rgba(214, 45, 47, 0.38)
  );
  transition: background var(--transition-base);
}
.service-card-frame:hover {
  background: linear-gradient(
    145deg,
    var(--color-primary),
    rgba(160, 20, 20, 0.7) 50%,
    var(--color-primary)
  );
}
.service-card-frame .service-card {
  border-radius: var(--radius-xl);
  height: 100%;
  margin: 0;
}

/* ── Product Image Gallery ── */
.product-gallery { position: relative; }

.gallery-main {
  position: relative;
  background: var(--color-bg-light);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main::after {
  content: '';
  position: absolute;
  inset: 15% 8%;
  background: radial-gradient(ellipse at 50% 58%, rgba(214, 45, 47, 0.1) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.gallery-img-track {
  display: flex;
  width: 100%;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-height: 480px;
  position: relative;
  z-index: 1;
}
.gallery-slide img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: var(--radius-xl);
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-base), box-shadow var(--transition-base), color var(--transition-base), border-color var(--transition-base);
  z-index: 2;
  color: var(--color-text-primary);
}
.gallery-nav:hover {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-primary);
  border-color: transparent;
}
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-nav.hidden { opacity: 0; pointer-events: none; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border-light);
  border: none;
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base);
  padding: 0;
}
.gallery-dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}

/* ── Download Link (product detail Downloads list) ── */
.download-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}
.download-link:hover {
  border-color: var(--color-primary);
  background: var(--color-white);
}
.download-link .dl-icon {
  color: var(--color-primary);
  flex-shrink: 0;
  display: inline-flex;
}
.download-link .dl-label { flex: 1; }
.download-link .dl-arrow {
  color: var(--color-text-muted);
  flex-shrink: 0;
  display: inline-flex;
}

/* ── Cert Pill ── */
.cert-pill {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  white-space: nowrap;
}

/* ── Product Card Spec List ── */
.product-card-spec-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-card-spec-list li {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.4;
}
.product-card-spec-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

/* ── Card Wishlist Button ── */
.card-wishlist-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color var(--transition-base), background var(--transition-base), transform 0.15s ease, border-color var(--transition-base);
}
.card-wishlist-btn:hover {
  color: var(--color-primary);
  background: var(--color-white);
  transform: scale(1.12);
}
.card-wishlist-btn.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-color: rgba(214, 45, 47, 0.25);
}

/* ── Product Share / Action Bar ── */
.product-action-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.product-action-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: background var(--transition-base), color var(--transition-base), transform 0.15s ease, border-color var(--transition-base);
}
.product-action-icon-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: transparent;
  transform: scale(1.08);
}
.product-share-copied {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.product-share-copied.show { opacity: 1; }

/* ── Hero layout fix: slide-inner has grid-template-columns:1fr 1fr but
   only 1 child (.container) — this was compressing the container to half
   width, making images tiny. Override to block so hero-content-grid
   handles the two-column split correctly. ── */
.hero-slide-inner {
  display: block;
  padding: 0;
}

/* ── Hero image wrapper — fill column height and center image ── */
.hero-image-wrapper {
  min-height: 460px;
  align-self: center;
}

/* ── Hero image — larger, no card radius on product renders ── */
.hero-img {
  width: 100%;
  max-height: 580px;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.5));
  animation: heroImgFloat 6s ease-in-out infinite;
}

@keyframes heroImgFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ── Hero glow — proper positioning reset ── */
.hero-img-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(
    ellipse at 50% 60%,
    rgba(214, 45, 47, 0.38) 0%,
    rgba(214, 45, 47, 0.14) 45%,
    transparent 70%
  ) !important;
  filter: blur(40px);
  z-index: 0;
}

/* ── Page reveal overlay — animated by GSAP (js/hero-gsap.js) ── */
#page-reveal {
  position: fixed;
  inset: 0;
  background: var(--color-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  pointer-events: none;
}

.page-reveal-logo {
  height: 54px;
  opacity: 0;
  transform: translateY(14px);
}

.page-reveal-tagline {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  opacity: 0;
  transform: translateY(14px);
}

.page-reveal-bar {
  width: 160px;
  max-width: 70vw;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIALS v2 — 3-COLUMN INFINITE SCROLL
═══════════════════════════════════════════════════════════════════════════ */

.testi-scroll-section {
  background: var(--color-bg-light);
  overflow: hidden;
}

.testi-columns {
  display: flex;
  gap: 20px;
  justify-content: center;
  max-height: 720px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  margin-top: 60px;
}

.testi-col {
  flex: 0 0 340px;
  overflow: hidden;
}

/* Only show 1 column on mobile, 2 on tablet, 3 on desktop */
.testi-col:nth-child(2),
.testi-col:nth-child(3) {
  display: none;
}

/* ── Scroll tracks with different speeds ── */
.testi-track {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 20px;
  will-change: transform;
}

.testi-track-1 { animation: testiScroll 16s linear infinite; }
.testi-track-2 { animation: testiScroll 21s linear infinite; }
.testi-track-3 { animation: testiScroll 18s linear infinite; }

/* Pause on hover over the whole column */
.testi-col:hover .testi-track {
  animation-play-state: paused;
}

@keyframes testiScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* ── Testimonial card ── */
.testi-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-2xl);
  padding: 28px 28px 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
  cursor: default;
  width: 340px;
}

.testi-card:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.10), 0 6px 16px rgba(0, 0, 0, 0.06);
  border-color: rgba(214, 45, 47, 0.2);
}

/* ── Stars ── */
.testi-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
}

.testi-star {
  color: var(--color-primary);
  font-size: 14px;
  line-height: 1;
}

/* ── Quote text ── */
.testi-quote {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin: 0 0 20px;
}

/* ── Author row ── */
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border-light);
}

.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(214, 45, 47, 0.15);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.testi-card:hover .testi-avatar {
  border-color: rgba(214, 45, 47, 0.4);
  transform: scale(1.06);
}

.testi-name {
  font-family: var(--font-heading);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  line-height: 1.2;
}

.testi-role {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* ── Responsive ── */
/* Very narrow screens: let the single column shrink instead of clipping */
@media (max-width: 400px) {
  .testi-col { flex: 0 1 100%; }
  .testi-card { width: 100%; }
}

@media (min-width: 768px) {
  .testi-col:nth-child(2) { display: block; }
  .testi-columns { gap: 20px; }
}

@media (min-width: 1100px) {
  .testi-col:nth-child(3) { display: block; }
}

@media (min-width: 1280px) {
  .testi-col { flex: 0 0 360px; }
  .testi-card { width: 360px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .testi-track { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADING WORD-SPLIT REVEAL
═══════════════════════════════════════════════════════════════════════════ */

.text-reveal-heading .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
}

.text-reveal-heading .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}

.text-reveal-heading.in-view .word > span {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .text-reveal-heading .word > span {
    transform: none !important;
    transition: none !important;
  }
}

/* ── About section: interactive image accordion ─────────────────────────── */
.about-img-accordion {
  display: flex;
  flex-direction: row;
  gap: 10px;
  height: 440px;
  align-items: stretch;
}

.accordion-panel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  flex: 1;
  min-width: 52px;
  transition: flex 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-panel.active {
  flex: 4;
}

.accordion-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.accordion-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  transition: background 500ms ease;
}

.accordion-panel.active .accordion-overlay {
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.28) 55%,
    rgba(0, 0, 0, 0.10) 100%);
}

.accordion-label {
  position: absolute;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
  transform-origin: center center;
  transition: transform 400ms ease, bottom 400ms ease, font-size 300ms ease;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.accordion-panel.active .accordion-label {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  font-size: 14px;
}

@media (max-width: 640px) {
  .about-img-accordion {
    flex-direction: column;
    height: auto;
  }
  .accordion-panel {
    min-width: unset;
    min-height: 52px;
  }
  .accordion-panel.active {
    flex: 4;
    min-height: 240px;
  }
  .accordion-label {
    bottom: auto;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
  }
  .accordion-panel.active .accordion-label {
    top: auto;
    bottom: 16px;
    transform: translateX(-50%) rotate(0deg);
  }
}


/* ══════════════════════════════════════════════════════════════════════════
   PRODUCTS MEGA NAV — two-level category → items flyout
   Additive only: every selector below is a new class. No existing rule is
   modified, so the rest of the navbar behaves exactly as before.
══════════════════════════════════════════════════════════════════════════ */

/* The flyout is wider than the old flat list and left-aligned to the toggle
   rather than centred, so the second-level panel has room to open rightwards. */
.nav-dropdown.nav-mega {
  left: 0;
  transform: translateX(0) translateY(-8px);
  min-width: 248px;
  padding: 8px;
  overflow: visible;   /* the sub-panel escapes this box */
}

.nav-dropdown-wrapper:hover .nav-dropdown.nav-mega,
.nav-dropdown-wrapper.open .nav-dropdown.nav-mega {
  transform: translateX(0) translateY(0);
}

.nav-cat-list,
.nav-sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-cat {
  position: relative;
}

/* ── Level 1: category row ── */
.nav-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md, 8px);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-text-dark, #021635);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-cat-arrow {
  flex: none;
  opacity: 0.45;
  transition: opacity 160ms ease, transform 160ms ease;
}

/* Hovering a category highlights it and reveals its panel. Focus-within keeps
   the whole thing usable from the keyboard without any JS. */
.nav-cat:hover > .nav-cat-link,
.nav-cat:focus-within > .nav-cat-link {
  background: var(--color-secondary, #021635);
  color: #fff;
}

.nav-cat:hover > .nav-cat-link .nav-cat-arrow,
.nav-cat:focus-within > .nav-cat-link .nav-cat-arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* ── Level 2: items panel ── */
.nav-sub-panel {
  position: absolute;
  top: -8px;               /* aligns with the parent panel's padding */
  left: 100%;
  margin-left: 0;
  padding-left: 14px;      /* extends the hoverable box leftward over what
                               used to be a dead gap, so moving the mouse
                               diagonally from category → item no longer
                               exits the hover area and closes the panel */
  min-width: 268px;
  padding-top: 8px;
  padding-right: 8px;
  padding-bottom: 8px;
  background: var(--color-white, #fff);
  border: 1px solid var(--color-border-light, rgba(0,0,0,.08));
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-6px);
  transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
  z-index: 2;
}

.nav-cat:hover > .nav-sub-panel,
.nav-cat:focus-within > .nav-sub-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.nav-sub-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  border-radius: var(--radius-md, 8px);
  text-decoration: none;
  transition: background-color 160ms ease;
}

.nav-sub-link:hover {
  background: var(--color-bg-light, #f4f6f9);
}

.nav-sub-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-dark, #021635);
}

.nav-sub-model {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--color-text-muted, #6b7280);
}

.nav-sub-link:hover .nav-sub-name {
  color: var(--color-primary, #D62D2F);
}

/* ── Footer link ── */
.nav-mega-all {
  display: block;
  margin-top: 4px;
  padding: 12px 14px 4px;
  border-top: 1px solid var(--color-border-light, rgba(0,0,0,.08));
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary, #D62D2F);
  text-decoration: none;
}

/* Flip the second level to the left if the flyout is near the viewport edge.
   Applied by js/navigation.js when it would otherwise overflow. */
.nav-cat.flip > .nav-sub-panel {
  left: auto;
  right: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 8px;
  padding-right: 14px;    /* mirrors the left-edge bridge above so the
                              flipped panel has no dead gap either */
}

/* ── Mobile: nested accordion ─────────────────────────────────────────────
   A distinct class from .mobile-nav-accordion on purpose — the existing
   handler in js/navigation.js closes every .mobile-nav-accordion when one
   opens, which would collapse the parent the moment a category was tapped. */
.mobile-nav-subaccordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 0 12px 14px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-dark, #021635);
  text-align: left;
  cursor: pointer;
}

.mobile-nav-subaccordion-header .accordion-chevron {
  transition: transform 200ms ease;
  font-size: 0.7em;
  opacity: 0.5;
}

.mobile-nav-subaccordion.open .mobile-nav-subaccordion-header .accordion-chevron {
  transform: rotate(180deg);
}

/* Matches the show/hide technique the existing .mobile-nav-accordion-body
   already uses. (A grid-template-rows 0fr→1fr collapse was tried first, but
   that only sizes the FIRST row — these bodies hold several links, so the
   rest stayed visible.) */
.mobile-nav-subaccordion-body {
  display: none;
}

.mobile-nav-subaccordion.open .mobile-nav-subaccordion-body {
  display: block;
}

.mobile-nav-link.sub2 {
  padding-left: 28px;
  font-size: 0.9rem;
}

.mobile-nav-cat-all {
  color: var(--color-primary, #D62D2F);
  font-weight: 600;
}


/* ══════════════════════════════════════════════════════════════════════════
   BLUE ACCENT PASS
   Shifts selected accents from brand red to brand blue so the site reads more
   blue than red, without a wholesale swap.

   Additive: these rules are appended so they win on source order alone — no
   existing declaration is edited, and reverting means deleting this block.

   RULE OBSERVED THROUGHOUT: anything sitting on a dark or coloured background
   keeps its original colour. Red text on a dark hero stays red; only accents
   on white/light surfaces turn blue.
══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Nav: active tab, hover state, and the Products dropdown ──
   Every red state in the top navigation becomes blue — the active tab, the
   hover colour on About / Blog / Warranty / Contact, and the Products toggle
   with its chevron while open. */
.nav-link.active,
.navbar-component.scrolled .nav-link.active,
.nav-link:hover,
.navbar-component.scrolled .nav-link:hover {
  color: var(--color-blue);
}

/* Products toggle: label + chevron while hovered or open. */
.nav-dropdown-wrapper:hover .nav-link,
.nav-dropdown-wrapper.open .nav-link,
.nav-dropdown-wrapper:hover .dropdown-chevron,
.nav-dropdown-wrapper.open .dropdown-chevron,
.navbar-component.scrolled .nav-dropdown-wrapper:hover .dropdown-chevron {
  color: var(--color-blue);
}

/* Flyout footer link, and its mobile equivalents. */
.nav-mega-all,
.mobile-nav-cat-all {
  color: var(--color-blue);
}

.nav-mega-all:hover,
.mobile-nav-cat-all:hover {
  color: var(--color-blue-dark);
}

.nav-link.active::after {
  background: var(--color-blue);
}

/* The homepage carries .hero-test-page, and css/hero-test.css paints this
   underline with a red gradient at (0,3,1) — higher than the rule above, and
   it loads later. Adding the body element takes this to (0,3,2) so the blue
   wins without needing !important. */
body.hero-test-page .nav-link.active::after {
  background: linear-gradient(90deg, var(--color-blue), #2C57C4);
}

/* ── 2. "Read More" on blog cards ──
   The category badges (PRODUCT NEWS / INSTALLATION TIPS / DEALERS) deliberately
   stay red — only the link turns blue. */
.blog-read-more,
.blog-card-read-more {
  color: var(--color-blue);
}

.blog-read-more:hover,
.blog-card-read-more:hover {
  color: var(--color-blue-dark);
}

/* ── 3. Section eyebrow labels ──
   OUR PRODUCTS / WHY DEPLUS / NEWS & RESOURCES / TESTIMONIALS etc. */
.section-badge {
  color: var(--color-blue);
  background-color: var(--color-blue-light);
}

.section-badge::before {
  background-color: var(--color-blue);
}

/* …except inside the hero, where the eyebrow sits on the dark cloud
   background and must stay red per the brief. */
.test-hero .section-badge,
.test-hero .test-eyebrow.section-badge {
  color: var(--color-primary);
  background-color: transparent;
}

.test-hero .section-badge::before,
.test-hero .test-eyebrow.section-badge::before {
  background-color: var(--color-primary);
}

/* ── 4a. Solid CTA buttons ──
   Every solid .btn-primary across the site: Learn More, Learn About DEPLUS,
   Read Our Story, Get a Quote, Get in Touch, Read Article, Send Message,
   Send Us a Message, Contact Us, Subscribe, View Product.

   The hero's buttons are deliberately NOT affected — they use .test-btn-primary
   (5 instances, styled in css/hero-test.css) and stay red per the brief. */
.btn.btn-primary {
  background-color: var(--color-blue);
  border-color: var(--color-blue);
  box-shadow: 0 4px 14px var(--color-blue-shadow);
}

.btn.btn-primary:hover {
  background-color: var(--color-blue-dark);
  border-color: var(--color-blue-dark);
}

/* ── 4b. Blue solid button ──
   Opt-in modifier, applied only to "Read Our Story". Every other .btn-primary
   (View Product, Contact Sales, Subscribe, Register Warranty…) stays red. */
.btn.btn-blue {
  background-color: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-white);
  box-shadow: 0 4px 14px var(--color-blue-shadow);
}

.btn.btn-blue:hover {
  background-color: var(--color-blue-dark);
  border-color: var(--color-blue-dark);
}
