/* ============================================
   Sunspot / Deepak Electrical — factory catalog UI
   Direction: industrial trade catalog (Delhi, 1986)
   Signature: product photography + Newsreader display
   ============================================ */

/* === CSS Variables === */
:root {
  /* Brand enamel red (matches Sunspot wordmark) */
  --color-primary: #C8102E;
  --color-primary-dark: #9B0C24;
  --color-primary-light: #E23A4F;
  --color-secondary: #141414;
  --color-accent: #C8102E;
  /* Workshop paper, not pure grey template */
  --color-bg: #F5F4F0;
  --color-bg-alt: #EDEBE4;
  --color-white: #FFFFFF;
  --color-text: #22221F;
  --color-text-light: #5A5A54;
  --color-text-muted: #8A8A82;
  --color-border: #D4D1C9;
  --color-success: #2F6B3A;
  --color-whatsapp: #25D366;
  --color-hero: #161616;

  --font-primary: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Newsreader', 'Times New Roman', Georgia, serif;

  --shadow-sm: 0 1px 0 rgba(20, 20, 20, 0.06);
  --shadow-md: 0 2px 8px rgba(20, 20, 20, 0.08);
  --shadow-lg: 0 8px 24px rgba(20, 20, 20, 0.1);
  --shadow-xl: 0 12px 32px rgba(20, 20, 20, 0.12);

  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
  --radius-xl: 4px;

  --transition: 0.2s ease;
  --max-width: 1120px;
  --header-height: 68px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); font-weight: 600; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; font-family: var(--font-primary); letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--font-primary); letter-spacing: 0; }

p { margin-bottom: 1em; }

.section-subtitle {
  color: var(--color-text-light);
  font-size: 1rem;
  max-width: 36rem;
  margin: 0.75rem 0 0;
  text-align: left;
  line-height: 1.55;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: none;
  text-decoration: none;
  line-height: 1.4;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

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

.btn-white {
  background: var(--color-white);
  color: var(--color-secondary);
  border: 1.5px solid var(--color-white);
}

.btn-white:hover {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.7);
}

/* === Header === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: none;
  z-index: 1000;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-bottom-color: transparent;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

.logo img,
.logo svg {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
  /* Avoid subpixel gray plate from raster logos */
  image-rendering: auto;
  mix-blend-mode: normal;
}

@media (max-width: 480px) {
  .logo img,
  .logo svg {
    height: 30px;
    max-width: 140px;
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1.2;
}

.logo-text .tagline {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-family: var(--font-primary);
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  min-width: 4.5rem;
}

.lang-toggle:hover,
.lang-toggle[aria-pressed="true"] {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #fff;
}

html[data-lang="hi"] body {
  font-feature-settings: "kern" 1;
}

html[data-lang="hi"] h1,
html[data-lang="hi"] h2 {
  letter-spacing: 0;
  line-height: 1.25;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* === Hero Section === */
.hero {
  margin-top: var(--header-height);
  padding: 72px 0 80px;
  background: var(--color-hero);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--color-primary);
}

.hero::before,
.hero::after {
  display: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  color: #f5f4f0;
  margin-bottom: 0.45em;
  max-width: 14ch;
}

.hero-content h1 .hero-since {
  display: table;
  margin-top: 0.7rem;
  padding: 0.42rem 0.7rem;
  border-left: 3px solid var(--color-primary);
  background: rgba(200, 16, 46, 0.16);
  color: #f5f4f0;
  font-family: var(--font-primary);
  font-size: 0.24em;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(245, 244, 240, 0.28);
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.85);
  margin-bottom: 1.35rem;
}

.hero-content p {
  color: rgba(245, 244, 240, 0.72);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 36rem;
  line-height: 1.55;
}

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

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 2.75rem;
  border-top: 1px solid rgba(245, 244, 240, 0.12);
  padding-top: 1.5rem;
}

.hero-stat {
  text-align: left;
  padding-right: 2rem;
  margin-right: 2rem;
  border-right: 1px solid rgba(245, 244, 240, 0.12);
}

.hero-stat:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: #f5f4f0;
  line-height: 1.1;
}

.hero-stat .label {
  font-size: 0.72rem;
  color: rgba(245, 244, 240, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  font-weight: 500;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  background: transparent;
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 0;
  position: relative;
  overflow: visible;
  box-shadow: none;
}

.hero-graphic::before {
  display: none;
}

.hero-graphic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  background: transparent;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.4));
}

.hero-graphic svg {
  display: none;
}

/* === Section Styles === */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: left;
  margin-bottom: 2.25rem;
  max-width: 40rem;
}

.section-header h2 {
  margin-bottom: 0;
}

.section-header .accent-line {
  width: 32px;
  height: 2px;
  background: var(--color-primary);
  margin: 14px 0 0;
  border-radius: 0;
}

.section-header .section-subtitle {
  margin-left: 0;
  margin-right: 0;
}

/* === Product Cards === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: none;
  transition: border-color var(--transition);
  border: 1px solid var(--color-border);
}

.product-card:hover {
  border-color: var(--color-secondary);
}

.product-card-image {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform var(--transition);
  background: #fff;
}

.product-card:hover .product-card-image img {
  transform: none;
}

.product-card-image .product-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 50%;
  color: var(--color-white);
  font-size: 2rem;
}

.product-card-image .isi-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: 0.62rem;
  font-weight: 600;
  font-family: var(--font-primary);
  padding: 4px 8px;
  border-radius: 0;
  letter-spacing: 0.06em;
  z-index: 1;
  box-shadow: none;
}

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

.product-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.product-card-body p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.product-card-body .card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-card-body .card-link:hover {
  gap: 10px;
}

/* === Features / Why Choose Us === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.feature-card {
  text-align: left;
  padding: 28px 24px;
  border-radius: 0;
  background: var(--color-white);
  box-shadow: none;
  transition: none;
}

.feature-card:hover {
  transform: none;
  box-shadow: none;
}

.feature-icon {
  width: auto;
  height: auto;
  margin: 0 0 12px;
  background: none;
  border-radius: 0;
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  font-style: italic;
  color: var(--color-primary);
  letter-spacing: 0;
}

.feature-card h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
  line-height: 1.5;
}

/* === Reviews === */
.reviews-carousel {
  position: relative;
}

.reviews-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-anchor: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 2px 0;
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

.review-card {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  background: var(--color-white);
  padding: 28px;
  border-radius: var(--radius-sm);
  box-shadow: none;
  border: 1px solid var(--color-border);
  border-left: 2px solid var(--color-primary);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-secondary);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: var(--shadow-md);
}

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

.carousel-btn-prev {
  left: -18px;
}

.carousel-btn-next {
  right: -18px;
}

.review-stars {
  color: var(--color-secondary);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.review-text {
  font-style: normal;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.55;
}

.review-author {
  font-weight: 600;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  color: var(--color-secondary);
}

.review-location {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* === CTA Section === */
.cta-section {
  background: var(--color-secondary);
  padding: 64px 0;
  text-align: left;
  border-top: 3px solid var(--color-primary);
}

.cta-section .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.cta-section h2 {
  color: #f5f4f0;
  margin-bottom: 0.35em;
  max-width: 16ch;
}

.cta-section p {
  color: rgba(245, 244, 240, 0.7);
  max-width: 28rem;
  margin: 0 0 0;
}

.cta-copy {
  flex: 1 1 280px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
  flex: 0 0 auto;
  align-self: center;
}

/* === About Page === */
.about-hero {
  margin-top: var(--header-height);
  padding: 56px 0;
  background: var(--color-hero);
  text-align: left;
  border-bottom: 3px solid var(--color-primary);
}

.about-hero h1 {
  color: var(--color-white);
}

.about-hero p {
  color: rgba(255,255,255,0.7);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}

.timeline-content {
  width: 45%;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-sm);
}

.timeline-year {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.value-card {
  text-align: left;
  padding: 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  box-shadow: none;
}

.value-card .value-icon {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}

/* === Products Page === */
.products-hero {
  margin-top: var(--header-height);
  padding: 48px 0;
  background: var(--color-hero);
  text-align: left;
  border-bottom: 3px solid var(--color-primary);
}

.products-hero h1 { color: var(--color-white); }
.products-hero p { color: rgba(255,255,255,0.7); }

.product-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  background: var(--color-white);
  font-size: 0.8rem;
  font-family: var(--font-primary);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  color: var(--color-text);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* === Product Detail === */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.product-detail-image {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.product-detail-image .product-icon-large {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 50%;
  color: var(--color-white);
  font-size: 3rem;
}

.product-detail-info h1 {
  margin-bottom: 0.3em;
}

.product-detail-info .product-category {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.product-detail-info .product-desc {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.product-features {
  margin-bottom: 2rem;
}

.product-features li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--color-text);
  font-size: 0.95rem;
}

.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

/* === Contact Page === */
.contact-hero {
  margin-top: var(--header-height);
  padding: 48px 0;
  background: var(--color-hero);
  text-align: left;
  border-bottom: 3px solid var(--color-primary);
}

.contact-hero h1 { color: var(--color-white); }
.contact-hero p { color: rgba(255,255,255,0.7); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

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

.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
}

.contact-info-card .icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(200,16,46,0.1) 0%, rgba(200,16,46,0.05) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-card h4 {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.contact-info-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.contact-form {
  background: var(--color-white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-primary);
  transition: border-color var(--transition);
  background: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.map-container {
  margin-top: 40px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
}

/* === Footer === */
.footer {
  background: #0f0f0f;
  color: rgba(245, 244, 240, 0.65);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: #f5f4f0;
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  align-items: flex-start;
}

.footer-contact .icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

/* === WhatsApp Float === */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
  z-index: 999;
  transition: all var(--transition);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* === 404 Page === */
.error-page {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-size: 8rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.2em;
}

.error-page h2 {
  margin-bottom: 0.5em;
}

.error-page p {
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

/* === Breadcrumbs === */
.breadcrumbs {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.breadcrumbs a {
  color: var(--color-text-light);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs span {
  margin: 0 8px;
}

/* === Responsive === */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Center the constrained title block (max-width alone left-aligned it) */
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-content h1 {
    max-width: 16ch;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content h1 .hero-since {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content p {
    margin: 0 auto 2rem;
    max-width: 32rem;
  }

  .hero-buttons {
    justify-content: center;
    width: 100%;
  }

  .hero-stats {
    justify-content: center;
    width: 100%;
  }

  .hero-stat {
    text-align: center;
  }

  .hero-visual { display: none; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: row;
    text-align: left;
    padding-left: 50px;
  }
  .timeline-content { width: 100%; }
  .timeline-dot { left: 20px; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  /* Prevent off-canvas menu from creating a white overflow strip */
  html,
  body {
    overflow-x: hidden;
  }

  .header {
    /* Keep header above the drawer; clip any bleed inside the bar */
    z-index: 1000;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 4px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    z-index: 999;
    /* Fully off-screen when closed — not just -120% of self height
       (that left a white strip under the header) */
    transform: translate3d(0, calc(-100% - var(--header-height) - 8px), 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.28s ease,
      opacity 0.2s ease,
      visibility 0.28s;
  }

  .nav-menu.open {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  .nav-menu a::after {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .section {
    padding: 50px 0;
  }

  .hero {
    padding: 50px 0 70px;
  }

  .hero-stats {
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-card {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    flex-basis: 100%;
  }

  .carousel-btn {
    display: none;
  }
}

/* === Utility === */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* === Product filter (no JS race on display:none timeouts) === */
.product-card.is-filtered-out {
  display: none !important;
}

/* === Animations (CSS-first: visible by default; JS only enhances) === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .will-animate {
    opacity: 1;
    transform: none;
  }

  .will-animate.animate-in {
    animation: none;
  }
}

.animate-in {
  opacity: 1;
  transform: none;
}

/* === Print === */
@media print {
  .header, .whatsapp-float, .footer, .mobile-toggle { display: none; }
  .hero { margin-top: 0; }
}
