/* ==========================================================================
   Shri LED Digital Sales Catalogue — Global Styles & Homepage
   Phase 3: Locked Google Stitch Homepage Implementation
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens (:root)
   -------------------------------------------------------------------------- */
:root {
  /* --- Core Palette (Dark Premium Theme) --- */
  --color-bg-darkest: #08090C;         /* Page base / darkest background */
  --color-bg: #0D0F12;                 /* Primary section background */
  --color-card: #13161B;               /* Card background */
  --color-surface: #1A1E26;            /* Elevated surface / pills / tags */
  --color-surface-hover: #222733;      /* Interactive surface hover */

  /* --- Accent Colors (Warm Gold / Amber) --- */
  --color-accent: #F5A623;             /* Primary gold accent */
  --color-accent-light: #FFB830;       /* Lighter gold for highlights / hover */
  --color-accent-dark: #D48812;        /* Darker gold for active states / borders */
  --color-accent-subtle: rgba(245, 166, 35, 0.10); /* Translucent gold surface */

  /* --- Typography Colors --- */
  --color-text-white: #FFFFFF;         /* High-emphasis headings & brand */
  --color-text-primary: #E2E8F0;       /* Primary light reading text */
  --color-text-muted: #94A3B8;         /* Neutral grey secondary / descriptions */
  --color-text-dim: #64748B;           /* Dim text / captions / footer subtext */

  /* --- Borders --- */
  --color-border: rgba(255, 255, 255, 0.08);         /* Subtle translucent border */
  --color-border-subtle: rgba(255, 255, 255, 0.04);  /* Micro divider */
  --color-border-accent: rgba(245, 166, 35, 0.35);   /* Translucent gold border */

  /* --- Typography Stacks --- */
  --font-display: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* --- Type Scale --- */
  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;    /* 18px */
  --font-size-xl: 1.25rem;     /* 20px */
  --font-size-2xl: 1.5rem;     /* 24px */
  --font-size-3xl: 1.875rem;   /* 30px */
  --font-size-4xl: 2.25rem;    /* 36px */
  --font-size-5xl: 3rem;       /* 48px */

  /* --- Font Weights --- */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* --- Line Heights --- */
  --line-height-tight: 1.15;
  --line-height-snug: 1.35;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75;

  /* --- Spacing Scale --- */
  --space-2xs: 0.25rem;  /* 4px */
  --space-xs:  0.5rem;   /* 8px */
  --space-sm:  0.75rem;  /* 12px */
  --space-md:  1rem;     /* 16px */
  --space-lg:  1.5rem;   /* 24px */
  --space-xl:  2rem;     /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 6rem;     /* 96px */

  /* --- Border Radii --- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* --- Shadows & Gold Glow Effects --- */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.45);
  --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.65);
  --glow-gold-sm: 0 0 15px rgba(245, 166, 35, 0.20);
  --glow-gold: 0 0 25px rgba(245, 166, 35, 0.30);
  --glow-gold-lg: 0 0 40px rgba(245, 166, 35, 0.45);

  /* --- Layout & Container --- */
  --container-max-width: 1240px;
  --container-padding: 1.25rem;
  --header-height: 76px;

  /* --- Transitions & Motion --- */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
  }
}

/* --------------------------------------------------------------------------
   2. Global Reset & Normalization
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height, 76px) + env(safe-area-inset-top, 0px));
}

body {
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   3. Base Primitives & Accessibility
   -------------------------------------------------------------------------- */
::selection {
  background-color: var(--color-accent);
  color: var(--color-bg-darkest);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text-white);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

p {
  color: var(--color-text-muted);
  line-height: var(--line-height-normal);
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  user-select: none;
}

.text-accent {
  color: var(--color-accent);
}

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

.section {
  padding: 5rem 0;
}

/* Icons */
.icon-svg {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   4. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(8, 9, 12, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: background-color var(--transition-normal);
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height, 76px);
  gap: 1.5rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  gap: 2px;
  flex-shrink: 0;
  min-width: 0;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--color-text-white);
  line-height: 1.1;
  white-space: nowrap;
}

.logo-accent {
  color: var(--color-accent);
}

.logo-subtitle {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  white-space: nowrap;
  line-height: 1.2;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

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

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

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

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-whatsapp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.125rem;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-whatsapp-pill .icon-wa {
  color: #22c55e;
}

.btn-whatsapp-pill:hover {
  border-color: var(--color-accent);
  color: var(--color-text-white);
  box-shadow: var(--glow-gold-sm);
  transform: translateY(-1px);
}

/* Hamburger toggle for mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-text-white);
  border-radius: 1px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 4.5rem 0 5.5rem;
  background: radial-gradient(circle at 10% 20%, rgba(245, 166, 35, 0.04) 0%, transparent 40%),
              radial-gradient(circle at 90% 40%, rgba(245, 166, 35, 0.03) 0%, transparent 35%);
  border-bottom: 1px solid var(--color-border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.22fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-kicker {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 0.875rem;
}

.hero-title {
  font-size: clamp(2.35rem, 4.4vw, 3.65rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--color-text-white);
  margin-bottom: 1.35rem;
}

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--color-text-muted);
  margin-bottom: 2.25rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
  color: var(--color-bg-darkest);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.9375rem 1.875rem;
  border-radius: var(--radius-full);
  box-shadow: 0 0 24px var(--color-accent-glow);
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(245, 166, 35, 0.50);
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.hero-location .icon-location {
  color: var(--color-accent);
}

/* Hero Showcase Visual */
.hero-visual {
  position: relative;
  width: 100%;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card), 0 0 50px rgba(0, 0, 0, 0.6);
  background-color: var(--color-card);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.hero-card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-2px);
}

.hero-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   6. Section Header Pattern
   -------------------------------------------------------------------------- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}

.section-title-group {
  display: flex;
  flex-direction: column;
}

.section-kicker {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 1.125rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-white);
  line-height: 1.18;
}

.accent-line {
  display: inline-block;
  width: 46px;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: 420px;
}

/* --------------------------------------------------------------------------
   7. Product Categories Grid
   -------------------------------------------------------------------------- */
.products-section {
  background-color: var(--color-bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
  cursor: default;
}

.products-grid .product-card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover), var(--glow-gold-sm);
}

.product-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 2.75;
  overflow: hidden;
  background-color: #0c0e13;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.product-card-body {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text-white);
  margin-bottom: 0.35rem;
}

.product-card-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.product-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 0.25rem;
}

.card-arrow {
  font-size: 1.125rem;
  color: var(--color-text-dim);
  transition: all var(--transition-fast);
}

.product-card:hover .card-arrow {
  color: var(--color-accent);
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   8. Why Choose Us Section
   -------------------------------------------------------------------------- */
.why-choose-section {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-darkest) 100%);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.25rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-surface);
  border: 1px solid rgba(245, 166, 35, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-white);
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   9. Featured Projects / Recent Work Section
   -------------------------------------------------------------------------- */
.recent-work-section {
  background-color: var(--color-bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

.project-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.projects-grid .project-card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.project-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #0b0d11;
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.project-card:hover .project-card-media img {
  transform: scale(1.03);
}

.project-card-body {
  padding: 1.15rem 1.25rem 1.25rem;
}

.project-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}

.project-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text-white);
}

.project-card:hover .card-arrow {
  color: var(--color-accent);
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   9b. Project Image Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.lightbox.is-open {
  display: flex;
  opacity: 1;
}

.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
}

.lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: 1101;
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--color-text-white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  font-size: 1.75rem;
  font-weight: var(--font-weight-regular);
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.lightbox-close:hover {
  background-color: rgba(0, 0, 0, 0.85);
}

/* --------------------------------------------------------------------------
   10. WhatsApp CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
  padding: 2rem 0 6rem;
  background-color: var(--color-bg);
}

.cta-banner {
  background: radial-gradient(ellipse at 15% 20%, #202633 0%, #11141b 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 3rem 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  opacity: 0.6;
}

.cta-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.cta-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--color-surface);
  border: 1px solid rgba(245, 166, 35, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.cta-title {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--color-text-white);
  margin-bottom: 0.35rem;
}

.cta-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  max-width: 520px;
}

.cta-action {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.btn-cta {
  padding: 0.9375rem 2rem;
  font-size: 0.9375rem;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-bg-darkest);
  border-top: 1px solid var(--color-border-subtle);
  padding: 4.5rem 0 2.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.25rem;
  margin-bottom: 2.75rem;
}

.footer-logo {
  flex-shrink: 0;
}

.footer-contact-items {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-contact-item:hover {
  color: var(--color-accent);
}

.footer-contact-item .icon-svg {
  color: var(--color-accent);
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--glow-gold-sm);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.75rem;
  font-size: 0.8125rem;
  color: var(--color-text-dim);
}

/* --------------------------------------------------------------------------
   12. Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Tablet (Large) */
@media (max-width: 1080px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

/* Tablet (Medium) */
@media (max-width: 860px) {
  :root {
    --header-height: 70px;
  }

  .header-inner {
    min-height: 70px;
    height: auto;
    padding-block: 0.35rem;
    gap: 0.75rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-desc {
    max-width: 100%;
  }

  /* Mobile Navigation Drawer */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(13, 15, 18, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    padding: 1.75rem 2rem;
    display: none;
  }

  .nav-menu.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .nav-link {
    font-size: 1.0625rem;
    padding: 0.35rem 0;
  }

  .nav-toggle.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Mobile (Normal & Small) */
@media (max-width: 640px) {
  :root {
    --container-padding: 1rem;
  }

  .header-inner {
    gap: 0.75rem;
  }

  .header-actions {
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .btn-whatsapp-pill {
    padding: 0.42rem 0.75rem;
    font-size: 0.8125rem;
    gap: 0.35rem;
  }

  .nav-toggle {
    width: 36px;
    height: 36px;
    padding: 7px;
  }

  .logo-title {
    font-size: clamp(1.125rem, 4.4vw, 1.375rem);
  }

  .logo-subtitle {
    font-size: clamp(0.42rem, 1.6vw, 0.5625rem);
    letter-spacing: clamp(0.06em, 0.35vw, 0.18em);
  }

  .section {
    padding: 3.75rem 0;
  }

  .hero-section {
    padding: 3rem 0 4rem;
  }

  .cta-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 2.25rem 1.75rem;
    gap: 1.75rem;
  }

  .cta-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

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

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }

  .footer-contact-items {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Smartphone Very Narrow */
@media (max-width: 380px) {
  .header-inner {
    gap: 0.5rem;
  }

  .header-actions {
    gap: 0.375rem;
  }

  .btn-whatsapp-pill {
    padding: 0.38rem 0.625rem;
    font-size: 0.75rem;
  }

  .logo-title {
    font-size: 1.125rem;
  }

  .logo-subtitle {
    font-size: 0.42rem;
    letter-spacing: 0.06em;
  }
}

/* Smartphone Narrow */
@media (max-width: 540px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

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

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

  .section-title-wrap {
    flex-wrap: wrap;
  }
}

/* --------------------------------------------------------------------------
   13. Interaction Polish — scroll reveal, scroll state & touch feedback
   -------------------------------------------------------------------------- */

/* Scroll reveal — lightweight, fast, respects prefers-reduced-motion */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms cubic-bezier(0.2, 0, 0.2, 1),
              transform 600ms cubic-bezier(0.2, 0, 0.2, 1);
}
.reveal-ready .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal.stagger-1 { transition-delay: 60ms; }
.reveal.stagger-2 { transition-delay: 120ms; }
.reveal.stagger-3 { transition-delay: 180ms; }
.reveal.stagger-4 { transition-delay: 240ms; }
.reveal.stagger-5 { transition-delay: 300ms; }
.reveal.stagger-6 { transition-delay: 360ms; }
.reveal.stagger-7 { transition-delay: 420ms; }
.reveal.stagger-8 { transition-delay: 480ms; }
.reveal.stagger-9 { transition-delay: 540ms; }

/* Header subtle elevation on scroll */
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* Mobile / touch active feedback for clickable cards & buttons */
.products-grid .product-card:active,
.projects-grid .project-card:active {
  transform: translateY(-2px);
}
.btn-primary:active,
.btn-cta:active,
.btn-whatsapp-pill:active,
.nav-link:active,
.social-link:active,
.footer-contact-item:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   14. Reduced Motion Accessibility
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-ready .reveal,
  .reveal-ready .reveal.revealed {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* Legal/footer hardening */
.footer-legal { margin-left: .65rem; white-space: normal; }
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover, .footer-legal a:focus-visible { color: var(--color-accent); }
.legal-page { max-width: 860px; margin: 0 auto; padding: 7rem 1.25rem 4rem; }
.legal-page h1 { color: var(--color-text-white); margin-bottom: .5rem; }
.legal-page h2 { color: var(--color-text-white); margin: 2rem 0 .6rem; font-size: 1.25rem; }
.legal-page p, .legal-page li { color: var(--color-text-muted); line-height: 1.75; }
.legal-page a { color: var(--color-accent); }
.legal-meta { color: var(--color-text-dim); font-size: .9rem; margin-bottom: 2rem; }
.legal-back { display: inline-block; margin-bottom: 1.5rem; }
