:root {
  /* OLD: Backgrounds - Deep Navy Theme */
  /* --bg-0: #0a1628; */
  /* --bg-1: #0f1d33; */
  /* --bg-2: #152d4a; */
  /* --bg-3: #1c3655; */

  /* NEW: Metallic Black - Cool blue undertones */
  --bg-0: #0a0a0c;
  --bg-1: #12121a;
  --bg-2: #1a1a24;
  --bg-3: #24242f;

  /* Metallic overlays for shine effect */
  --metallic-dark: #18181f;
  --metallic-mid: #2a2a38;
  --metallic-light: #3d3d4f;
  --shimmer-1: rgba(180, 180, 210, 0.08);
  --shimmer-2: rgba(200, 200, 220, 0.12);

  /* Text - better hierarchy */
  --text-0: #ffffff;
  --text-1: #e2e8f0;
  --text-2: #a8b5c7;
  --muted: #8a9ab0;

  /* Gold - Shiny, vibrant, metallic */
  --gold-0: #ffd700;
  --gold-1: #f4c430;
  --gold-2: #ffed4e;
  --gold-dark: #b8940d;

  /* Gold glows - Enhanced for metallic effect */
  --gold-glow: rgba(255, 215, 0, 0.5);
  --gold-glow-soft: rgba(255, 215, 0, 0.2);
  --gold-glow-strong: rgba(255, 215, 0, 0.8);

  /* Borders - Updated for metallic look */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);

  --shadow: rgba(0, 0, 0, 0.5);
  --link: var(--gold-0);
  --link-hover: var(--gold-2);
  --focus-ring: rgba(255, 215, 0, 0.5);
  --success: #2ecc71;
  --warning: #f2c94c;
  --danger: #eb5757;
  --ink: var(--text-0);
  --night: var(--bg-0);
  --slate: var(--bg-1);
  --steel: var(--bg-2);
  --sky: var(--bg-2);
  --mist: var(--bg-0);
  --paper: var(--bg-1);
  --brand: var(--gold-0);
  --brand-dark: var(--gold-1);
  --teal: var(--gold-1);
  --gold: var(--gold-0);
  --coral: var(--gold-1);
  --line: var(--border);
  --shadow-strong: 0 24px 60px var(--shadow);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.3);
  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 10px;
  --transition: 200ms ease;
  --text-primary: var(--text-0);
  --text-muted: var(--text-1);
  --bg-overlay-strong: 0.55;
  --bg-overlay-mid: 0.32;
  --bg-overlay-soft: 0.12;
  --surface: var(--bg-1);
  --surface-border: var(--border);
  --surface-highlight: linear-gradient(140deg, rgba(24, 27, 34, 0.96) 0%, rgba(15, 16, 20, 0.92) 100%);
  --section-overlay: linear-gradient(180deg, rgba(15, 16, 20, 0.6), rgba(15, 16, 20, 0.35));
  --pill-bg: rgba(15, 16, 20, 0.8);
  --pill-border: var(--border);
  --chip-bg: rgba(15, 16, 20, 0.8);
  --chip-border: var(--border);
  --input-bg: rgba(15, 16, 20, 0.9);
  --input-border: var(--border);
  --text-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] {
  /* Metallic Black - Cool blue undertones */
  --bg-0: #0a0a0c;
  --bg-1: #12121a;
  --bg-2: #1a1a24;
  --bg-3: #24242f;

  /* Metallic overlays */
  --metallic-dark: #18181f;
  --metallic-mid: #2a2a38;
  --metallic-light: #3d3d4f;
  --shimmer-1: rgba(180, 180, 210, 0.08);
  --shimmer-2: rgba(200, 200, 220, 0.12);

  --text-0: #ffffff;
  --text-1: #e2e8f0;
  --text-2: #a8b5c7;
  --muted: #8a9ab0;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.5);
  --gold-0: #ffd700;
  --gold-1: #f4c430;
  --gold-2: #ffed4e;
  --gold-glow: rgba(255, 215, 0, 0.5);
  --link: var(--gold-0);
  --link-hover: var(--gold-2);
  --focus-ring: rgba(255, 215, 0, 0.5);
  --success: #2ecc71;
  --warning: #f2c94c;
  --danger: #eb5757;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  color: var(--text-primary);
  --ink: var(--text-primary);
  background:
    /* Animated gold glow spots */
    radial-gradient(ellipse 900px 700px at var(--glow-1-x) var(--glow-1-y),
      rgba(255, 215, 0, 0.08), transparent 70%),
    radial-gradient(ellipse 700px 600px at var(--glow-2-x) var(--glow-2-y),
      rgba(255, 237, 78, 0.06), transparent 65%),
    /* Metallic shimmer spot */
    radial-gradient(ellipse 800px 500px at var(--glow-3-x) var(--glow-3-y),
      rgba(180, 180, 210, 0.05), transparent 60%),
    /* Base gradient */
    linear-gradient(180deg, #0a0a0c 0%, #12121a 40%, #0a0a0c 100%);
  background-attachment: fixed;

  /* Animated glow positions */
  --glow-1-x: 15%;
  --glow-1-y: 10%;
  --glow-2-x: 85%;
  --glow-2-y: 20%;
  --glow-3-x: 50%;
  --glow-3-y: 90%;

  animation: meshGlowAnimation 30s ease-in-out infinite;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

@keyframes meshGlowAnimation {
  0%, 100% {
    --glow-1-x: 15%; --glow-1-y: 10%;
    --glow-2-x: 85%; --glow-2-y: 20%;
    --glow-3-x: 50%; --glow-3-y: 90%;
  }
  33% {
    --glow-1-x: 25%; --glow-1-y: 30%;
    --glow-2-x: 75%; --glow-2-y: 40%;
    --glow-3-x: 60%; --glow-3-y: 70%;
  }
  66% {
    --glow-1-x: 10%; --glow-1-y: 50%;
    --glow-2-x: 90%; --glow-2-y: 30%;
    --glow-3-x: 45%; --glow-3-y: 85%;
  }
}

/* Metallic grid overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0, var(--shimmer-1) 1px,
      transparent 2px, transparent 80px),
    repeating-linear-gradient(0deg, transparent 0, var(--shimmer-1) 1px,
      transparent 2px, transparent 80px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: screen;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, 10px); }
}

/* Mobile optimization - use scroll attachment for better performance */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  body::after {
    opacity: 0.2;
    animation: none;
  }
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}

a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 6px;
}

p {
  line-height: 1.75;
}

@keyframes ambientGlow {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 12% 18%;
  }
  100% {
    background-position: 0% 0%;
  }
}

h1, h2, h3, h4 {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  margin: 0 0 0.6rem 0;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

h3 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

small {
  color: var(--text-muted);
}

.hero h1,
.hero p,
.hero .eyebrow,
.section > .container > .stack h2,
.section > .container > .stack p,
.section-tight > .container > .stack h2,
.section-tight > .container > .stack p {
  text-shadow: var(--text-shadow);
}

.container {
  width: min(1160px, 90vw);
  margin: 0 auto;
}


.section {
  padding: 88px 0;
}

.section-tight {
  padding: 64px 0;
}

main {
  position: relative;
  z-index: 1;
}

.section,
.section-tight,
.hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.section::before,
.section-tight::before,
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  width: min(1200px, 92vw);
  height: calc(100% - 24px);
  transform: translateX(-50%);
  background: var(--section-overlay);
  border-radius: var(--radius-lg);
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px circle at 20% 0%, rgba(255, 215, 0, 0.2), transparent 55%),
    radial-gradient(700px circle at 80% 20%, rgba(255, 215, 0, 0.12), transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.section > .container,
.section-tight > .container,
.hero > .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--brand);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold-0);
  color: var(--bg-0);
  box-shadow: 0 16px 32px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--link-hover);
  box-shadow: 0 20px 36px var(--gold-glow);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  border-color: var(--gold-1);
  color: var(--gold-0);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  background: var(--bg-2);
  box-shadow: var(--shadow-soft);
  color: var(--link-hover);
  border-color: var(--link-hover);
  text-decoration: none;
}

.btn-ghost {
  border-color: var(--gold-1);
  color: var(--gold-0);
  background: transparent;
}

.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: var(--link-hover);
  color: var(--link-hover);
  background: var(--bg-2);
  text-decoration: none;
}

.tag {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--gold-glow);
  border: 1px solid var(--gold-1);
  color: var(--text-primary);
}

.top-bar {
  position: relative;
  z-index: 2;
  background: rgba(255, 215, 0, 0.08);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding: 6px 0;
}

.header {
  position: sticky;
  top: 0;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  z-index: 99;
  border-bottom: 1px solid var(--border);
}

/* Gold accent line under header */
.header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, 90vw);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-0) 50%, transparent 100%);
  opacity: 0.6;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.35rem;
}

.logo img {
  height: clamp(40px, 4vw, 56px);
  width: auto;
  max-width: min(200px, 45vw);
  display: block;
  mix-blend-mode: normal;
  filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.35)) brightness(1.1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a {
  position: relative;
  padding-bottom: 6px;
}

.nav-links a:hover {
  text-decoration: none;
  color: var(--link-hover);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-0), var(--gold-1));
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.hero {
  position: relative;
  padding: 110px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  align-items: center;
}

.hero-copy p {
  max-width: 520px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.hero-center .hero-grid {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

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

.hero-center .hero-copy p {
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}

.hero-center .hero-actions {
  justify-content: center;
}

.hero-center .badge-strip {
  justify-content: center;
}

.hero-visual {
  position: relative;
  height: min(520px, 70vh);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--bg-0) 10%, var(--bg-1) 55%, var(--bg-2) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 215, 0, 0.12), transparent 60%),
    repeating-linear-gradient(
      -20deg,
      rgba(255, 215, 0, 0.08) 0,
      rgba(255, 215, 0, 0.08) 2px,
      transparent 2px,
      transparent 12px
    );
  opacity: 0.55;
}

.hero-city {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55%;
  background:
    linear-gradient(180deg, rgba(255, 215, 0, 0.08) 0%, rgba(10, 22, 40, 0.92) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 215, 0, 0.08) 0,
      rgba(255, 215, 0, 0.08) 12px,
      transparent 12px,
      transparent 30px
    );
  transform: skewY(-6deg);
  box-shadow: inset 0 30px 60px rgba(0, 0, 0, 0.35);
}

.hero-lights {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 210, 120, 0.55), transparent 42%),
    radial-gradient(circle at 80% 30%, rgba(255, 215, 0, 0.45), transparent 42%),
    radial-gradient(circle at 60% 70%, rgba(166, 122, 46, 0.45), transparent 40%);
  mix-blend-mode: screen;
  opacity: 0.75;
}

.hero-particles {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 215, 0, 0.45) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.18;
  animation: float 12s linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-40px);
  }
}

.badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  font-size: 0.85rem;
}

.badge-strip span {
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  padding: 8px 12px;
  border-radius: 999px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}

.card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

/* Animated metallic shine on hover */
.card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 60%);
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.card:hover::before {
  transform: rotate(45deg) translateX(100%);
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.22), rgba(15, 29, 51, 0.9));
}

.card.highlight {
  background: var(--surface-highlight);
}

.icon-pill {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(130deg, var(--gold-0) 0%, var(--gold-1) 100%);
  margin-bottom: 16px;
  box-shadow: 0 12px 24px var(--gold-glow);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.industry-card {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  text-align: center;
  font-weight: 600;
  transition: transform var(--transition);
}

.industry-card:hover {
  transform: translateY(-4px);
}

.carousel {
  position: relative;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 18px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.carousel-card {
  background: var(--surface);
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-soft);
}

.carousel-card .img-placeholder {
  height: 140px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.carousel-controls button {
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat {
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
}

.stat h3 {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.smart-panel {
  background: var(--bg-1);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--text-0);
  position: relative;
  overflow: hidden;
}

.smart-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.2), transparent 45%);
  opacity: 0.8;
}

.smart-panel-content {
  position: relative;
  z-index: 1;
}

.smart-panel-content .tag {
  margin-bottom: 16px;
  display: inline-block;
}

.smart-panel-content h3 {
  margin-top: 8px;
}

.smart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.smart-item {
  background: var(--bg-2);
  border-radius: 12px;
  padding: 14px;
  font-size: 0.85rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item .img-placeholder {
  height: 180px;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.1), rgba(10, 22, 40, 0.85));
  color: var(--text-0);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  font-size: 0.85rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.testimonials {
  background: linear-gradient(130deg, var(--bg-1) 0%, var(--bg-2) 100%);
  color: var(--text-0);
  border-radius: var(--radius-lg);
  padding: 40px;
}

/* Convert carousel to static 3-column grid */
.testimonials .carousel-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  overflow: visible;
}

.testimonials .carousel-controls {
  display: none;
}

.testimonial-card {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-1) 100%);
  padding: 28px;
  border-radius: 20px;
  min-height: 180px;
  border: 1px solid var(--border);
  position: relative;
}

/* Gold quote mark */
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 4rem;
  color: var(--gold-0);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card p {
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.prefooter {
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 60%, var(--bg-1) 100%);
  color: var(--text-0);
  border-radius: var(--radius-lg);
  padding: 50px;
  position: relative;
  overflow: hidden;
}

.prefooter::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.2), transparent 45%);
}

.prefooter-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer {
  background: linear-gradient(135deg, var(--bg-0) 0%, var(--bg-1) 60%, var(--bg-0) 100%);
  color: var(--text-1);
  padding: 70px 0 30px;
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-bottom: 36px;
}

.footer h4 {
  color: var(--text-0);
}

.footer a {
  color: var(--link);
  font-size: 0.9rem;
}

.footer small {
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  font-family: inherit;
  background: var(--input-bg);
  color: var(--text-primary);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold-0);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

textarea {
  min-height: 120px;
}

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

.form-card {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-soft);
}

.info-card {
  background: var(--surface-highlight);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--surface-border);
}

.details-list {
  display: grid;
  gap: 16px;
}

.details-list span {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.map-placeholder {
  height: 280px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px dashed var(--surface-border);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--text-muted);
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion details {
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  padding: 16px;
}

.accordion summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  float: right;
  color: var(--brand);
}

.accordion details[open] summary::after {
  content: "-";
}

.product-categories details {
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  padding: 18px;
}

.product-categories summary {
  cursor: pointer;
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  padding: 18px;
}

.product-card .img-placeholder {
  height: 140px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.catalog-section {
  padding-top: 40px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.catalog-sidebar {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 96px;
  height: fit-content;
}

.catalog-sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 16px;
}

.catalog-sidebar-header small {
  color: var(--text-1);
}

.catalog-tree {
  display: grid;
  gap: 14px;
}

.catalog-tree-group {
  display: grid;
  gap: 8px;
}

.catalog-tree-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 6px 0;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-1);
}

.catalog-tree-heading.active {
  color: var(--gold-0);
}

.catalog-tree-sublist {
  display: grid;
  gap: 6px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.catalog-tree-item {
  background: transparent;
  border: none;
  color: var(--text-1);
  text-align: left;
  padding: 6px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.95rem;
}

.catalog-tree-item.active {
  color: var(--gold-0);
}

.catalog-tree-item:hover {
  color: var(--link-hover);
}

.catalog-tree-item:focus-visible,
.catalog-tree-heading:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 8px;
}

.catalog-tree-count {
  font-size: 0.8rem;
  color: var(--muted);
}

.catalog-main {
  display: grid;
  gap: 20px;
}

.catalog-topbar {
  display: grid;
  gap: 14px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-1);
}

.breadcrumbs a {
  color: var(--text-1);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.catalog-controls {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.catalog-search input {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--text-0);
}

.catalog-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  border: 1px solid var(--border);
  background: var(--bg-1);
  color: var(--text-1);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.filter-pill.active {
  border-color: var(--gold-0);
  color: var(--gold-0);
  background: rgba(255, 215, 0, 0.08);
}

.catalog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.catalog-count {
  color: var(--text-1);
  font-size: 0.85rem;
}

.catalog-browse {
  display: none;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.catalog-card {
  background: var(--bg-1);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  display: grid;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  color: var(--text-0);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.catalog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45);
}

.catalog-card:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.catalog-card-media {
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
}

.catalog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-card-body {
  display: grid;
  gap: 10px;
}

.catalog-card-body h4 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.catalog-card-body p {
  margin: 0;
  color: var(--text-1);
  font-size: 0.92rem;
}

.catalog-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 0;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.catalog-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.catalog-card-meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.5);
}

.catalog-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.catalog-tag {
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: var(--gold-1);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
}

.catalog-empty {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-1);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.catalog-empty p {
  color: var(--text-1);
}

.catalog-drawer {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.7);
  display: none;
  z-index: 190;
}

.catalog-drawer.open {
  display: flex;
}

.catalog-drawer-panel {
  margin-left: auto;
  width: min(320px, 90vw);
  height: 100%;
  background: var(--bg-1);
  border-left: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.catalog-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.catalog-modal {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(10, 22, 40, 0.72);
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}

.catalog-modal.open {
  display: flex;
}

.catalog-modal-panel {
  width: min(980px, 94vw);
  max-height: 92vh;
  overflow: auto;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.catalog-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.catalog-modal-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-0);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.catalog-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
}

.catalog-modal-media img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  display: block;
}

.catalog-modal-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.catalog-thumb {
  border: 1px solid var(--border);
  background: var(--bg-2);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
}

.catalog-thumb img {
  width: 68px;
  height: 52px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.catalog-modal-info p {
  color: var(--text-1);
}

.catalog-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.catalog-spec-table th,
.catalog-spec-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  text-align: left;
}

.catalog-spec-table th {
  color: var(--text-1);
  font-weight: 600;
}

.catalog-modal-variant-block {
  margin-top: 18px;
}

.variant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.variant-chip {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-1);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.variant-chip.active {
  border-color: var(--gold-0);
  color: var(--gold-0);
  box-shadow: 0 0 0 2px var(--gold-glow);
}

.variant-details {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.catalog-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.catalog-card.skeleton {
  position: relative;
  overflow: hidden;
}

.catalog-card.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.6s ease-in-out infinite;
}

.catalog-card.skeleton .catalog-card-media,
.catalog-card.skeleton .skeleton-line,
.catalog-card.skeleton .skeleton-chip {
  background: var(--bg-2);
  border-radius: 10px;
}

.catalog-card.skeleton .catalog-card-media {
  height: 150px;
  border: none;
}

.catalog-card.skeleton .skeleton-line {
  height: 12px;
  width: 100%;
  margin-top: 12px;
}

.catalog-card.skeleton .skeleton-line.short {
  width: 70%;
}

.catalog-card.skeleton .skeleton-chip {
  height: 20px;
  width: 90px;
  margin-top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

/* Gallery filter bar - standalone visible container */
.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  padding: 16px 24px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filter-chip {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-1);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--gold-1);
  color: var(--gold-1);
}

.filter-chip.active {
  background: var(--gold-0);
  color: var(--bg-0);
  border-color: var(--gold-0);
}

.timeline {
  display: grid;
  gap: 16px;
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--surface-border);
}

.timeline-item {
  position: relative;
  padding-left: 20px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--brand);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  width: min(80vw, 900px);
  height: min(70vh, 600px);
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
  border-radius: var(--radius-lg);
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(15, 29, 51, 0.9);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.img-placeholder {
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(10, 22, 40, 0.9));
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}

.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-placeholder span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 12px;
  text-align: center;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.05), rgba(10, 22, 40, 0.65));
  color: var(--text-0);
  text-shadow: var(--text-shadow);
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.notice {
  background: var(--surface);
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
}

.center {
  text-align: center;
}

.stack {
  display: grid;
  gap: 16px;
}

.hidden {
  display: none;
}

.list-tight {
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body {
    animation: none;
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 5vw;
    background: var(--surface);
    border-radius: 16px;
    padding: 20px;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-strong);
    border: 1px solid var(--surface-border);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .section::before,
  .hero::before {
    width: 94vw;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 72px 0;
  }

  .section-tight {
    padding: 56px 0;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero-visual {
    height: 360px;
  }

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

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

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

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

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

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    display: none;
    position: static;
  }

  .catalog-controls {
    grid-template-columns: 1fr;
  }

  .catalog-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .catalog-browse {
    display: inline-flex;
  }

  .catalog-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .catalog-filter-row::-webkit-scrollbar {
    display: none;
  }

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

/* ========================================
   MOBILE RESPONSIVE STYLES (768px and below)
   ======================================== */

@media (max-width: 768px) {
  /* Hide top bar on mobile - save space */
  .top-bar {
    display: none;
  }

  .nav {
    padding: 12px 0;
  }

  /* Bigger logo on mobile */
  .logo img {
    height: 48px;
  }

  /* Premium slide-in mobile menu */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    padding: 80px 24px;
    z-index: 1000;

    /* Glassmorphism background */
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);

    /* Metallic border on left edge */
    border-left: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);

    /* Slide animation - starting state */
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s;
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
  }

  /* Gold glow accent */
  .nav-links::before {
    content: "";
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    height: 120px;
    background: radial-gradient(ellipse at center,
      rgba(255, 215, 0, 0.12), transparent 70%);
    pointer-events: none;
  }

  .nav-links a {
    width: 100%;
    padding: 16px 20px;
    text-align: left;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(26, 26, 36, 0.4);
    color: var(--text-0);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
  }

  .nav-links a::after {
    display: none !important;
  }

  /* Staggered slide-in animation */
  .nav-links:not(.open) a {
    transform: translateX(30px);
    opacity: 0;
  }

  .nav-links.open a {
    transform: translateX(0);
    opacity: 1;
  }

  .nav-links.open a:nth-child(1) { transition-delay: 0.05s; }
  .nav-links.open a:nth-child(2) { transition-delay: 0.1s; }
  .nav-links.open a:nth-child(3) { transition-delay: 0.15s; }
  .nav-links.open a:nth-child(4) { transition-delay: 0.2s; }
  .nav-links.open a:nth-child(5) { transition-delay: 0.25s; }
  .nav-links.open a:nth-child(6) { transition-delay: 0.3s; }

  /* Hover/Active states */
  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(26, 26, 36, 0.8);
    border-color: var(--gold-0);
    color: var(--gold-0);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
  }

  /* Accessibility - remove animations for reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .nav-links,
    .nav-links a,
    .menu-toggle-line {
      transition: none !important;
    }

    .nav-links.open a {
      transform: none;
      opacity: 1;
      transition-delay: 0s;
    }
  }

  /* Ripple animation for touch feedback */
  @keyframes ripple-animation {
    to {
      transform: scale(2.5);
      opacity: 0;
    }
  }

  /* Menu backdrop overlay */
  .nav-links::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 280px;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    z-index: -1;
  }

  .nav-links.open::after {
    opacity: 1;
    visibility: visible;
  }

  /* Hamburger menu button */
  .menu-toggle {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.3s ease, border-color 0.3s ease;
  }

  .menu-toggle:hover {
    background: var(--bg-2);
    border-color: var(--gold-0);
  }

  .menu-toggle-line {
    width: 24px;
    height: 2px;
    background: var(--text-0);
    border-radius: 2px;
    position: absolute;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                background 0.3s ease;
  }

  .menu-toggle-line:nth-child(1) {
    transform: translateY(-8px);
  }

  .menu-toggle-line:nth-child(2) {
    transform: translateY(0);
  }

  .menu-toggle-line:nth-child(3) {
    transform: translateY(8px);
  }

  /* Animate to X when menu is open */
  .menu-toggle.active .menu-toggle-line {
    background: var(--gold-0);
  }

  .menu-toggle.active .menu-toggle-line:nth-child(1) {
    transform: translateY(0) rotate(45deg);
  }

  .menu-toggle.active .menu-toggle-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }

  .menu-toggle.active .menu-toggle-line:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* Hero section mobile */
  .hero {
    padding: 60px 0 50px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy {
    padding: 0 16px;
  }

  .hero-visual {
    height: 220px;
    order: -1;
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.15;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    padding: 16px 20px;
  }

  .badge-strip {
    justify-content: center;
    font-size: 0.75rem;
  }

  .badge-strip span {
    padding: 6px 10px;
  }

  /* Cards & grids mobile */
  .card-grid,
  .product-grid,
  .utility-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0;
  }

  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .industry-card {
    padding: 16px;
    font-size: 0.85rem;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat h3 {
    font-size: 1.8rem;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .split > div:not(.card):not(.smart-panel) {
    padding: 0 4px;
  }

  .card {
    padding: 20px;
  }

  /* Testimonials mobile - horizontal scroll */
  .testimonials {
    padding: 32px 20px;
    border-radius: var(--radius);
  }

  .testimonials .carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 8px 4px 16px;
    margin: 0 -12px;
  }

  .testimonials .carousel-track::-webkit-scrollbar {
    height: 6px;
  }

  .testimonials .carousel-track::-webkit-scrollbar-track {
    background: var(--bg-2);
    border-radius: 3px;
  }

  .testimonials .carousel-track::-webkit-scrollbar-thumb {
    background: var(--gold-1);
    border-radius: 3px;
  }

  .testimonial-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    padding: 24px 20px;
    min-height: auto;
    border: 1px solid var(--gold-glow);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  .testimonial-card:first-child {
    margin-left: 12px;
  }

  .testimonial-card:last-child {
    margin-right: 12px;
  }

  .testimonial-card::before {
    font-size: 3rem;
    top: 12px;
    left: 16px;
  }

  .testimonial-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .testimonial-card small {
    display: block;
    margin-top: 16px;
    color: var(--gold-0);
    font-weight: 600;
  }

  /* Gallery mobile */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 12px;
    padding: 0;
  }

  .gallery-item.featured,
  .gallery-item.tall,
  .gallery-item.wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-filter-bar {
    padding: 16px 20px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4vw 24px;
    border-radius: 0;
  }

  .filter-chip {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  /* Products catalog mobile */
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    display: none;
  }

  .catalog-browse {
    display: inline-flex;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .catalog-card {
    padding: 12px;
  }

  .catalog-card-media {
    height: 120px;
  }

  .catalog-modal-panel {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .catalog-modal-grid {
    grid-template-columns: 1fr;
  }

  /* Contact form mobile */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-card,
  .info-card {
    padding: 20px;
  }

  input, select, textarea {
    padding: 14px 12px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  .map-placeholder {
    height: 200px;
  }

  /* Footer mobile */
  .footer {
    padding: 40px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer .stack {
    align-items: center;
  }

  /* Section spacing mobile */
  .section {
    padding: 48px 0;
  }

  .section-tight {
    padding: 36px 0;
  }

  .section::before,
  .section-tight::before {
    border-radius: var(--radius);
  }

  .container {
    width: 92vw;
  }

  /* Add proper padding to sections with backgrounds */
  .smart-panel {
    padding: 28px 20px;
  }

  .smart-panel-content {
    padding: 0;
  }

  .smart-panel-content .stack {
    padding: 0;
  }

  .section .container > .stack,
  .section-tight .container > .stack {
    padding: 0;
  }

  .prefooter {
    padding: 32px 24px;
    border-radius: 16px;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  /* Touch-friendly improvements */
  .btn {
    min-height: 48px;
    padding: 14px 24px;
  }

  .nav-links a {
    padding: 12px 16px;
  }

  .filter-chip,
  .variant-chip {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  button, .btn {
    -webkit-user-select: none;
    user-select: none;
  }

  html {
    -webkit-overflow-scrolling: touch;
  }
}

/* Contact page map overlay - mobile positioning */
@media (max-width: 768px) {
  #map > div > div > div {
    position: static !important;
    max-width: 100%;
    margin-top: 16px;
  }

  #map > div > div {
    height: auto !important;
  }

  #map iframe {
    height: 320px !important;
  }
}

/* Small mobile (420px and below) */
@media (max-width: 420px) {
  .hero h1 {
    font-size: 1.5rem;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

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

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

/* Legal Pages Content */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--gold-0);
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--text-1);
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--text-2);
}

.legal-content a {
  color: var(--gold-0);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--gold-2);
}

/* Modal/Popup Styles */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  max-width: 540px;
  width: 100%;
  position: relative;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(255, 215, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: all var(--transition);
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  background: var(--gold);
  color: var(--bg-0);
  border-color: var(--gold);
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 24px;
}

.modal-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-0);
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, var(--gold-0), var(--gold-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-header p {
  color: var(--text-2);
  margin: 0;
  font-size: 0.95rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-group label {
  color: var(--text-1);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group label .required {
  color: var(--gold);
  font-size: 0.75rem;
}

.form-group input,
.form-group textarea {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-0);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--focus-ring);
  background: var(--bg-2);
}

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

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

.form-validation-note {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-top: -8px;
  font-style: italic;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.form-actions .btn {
  flex: 1;
}

.btn-submit {
  background: linear-gradient(135deg, var(--gold-0), var(--gold-1));
  color: var(--bg-0);
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.25);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-cancel {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-cancel:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}

/* Form submission states */
.form-success,
.form-error {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  font-size: 0.9rem;
  text-align: center;
}

.form-success {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: var(--success);
}

.form-error {
  background: rgba(235, 87, 87, 0.1);
  border: 1px solid rgba(235, 87, 87, 0.3);
  color: var(--danger);
}

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(145deg, #25d366, #1fa855);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  z-index: 160;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.wa-float:hover {
  transform: scale(1.06);
  filter: brightness(1.06);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.42);
}

.wa-float:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.wa-float svg {
  width: 27px;
  height: 27px;
}

.wa-float::after {
  content: "Chat with us";
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  background: rgba(11, 12, 15, 0.92);
  color: var(--text-0);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.wa-float:hover::after,
.wa-float:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Mobile responsiveness for modals */
@media (max-width: 768px) {
  .modal-content {
    padding: 32px 24px 24px;
    max-width: 100%;
    margin: 0 16px;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .wa-float {
    width: 54px;
    height: 54px;
    right: 14px;
    bottom: 14px;
  }

  .wa-float svg {
    width: 24px;
    height: 24px;
  }

  .wa-float::after {
    display: none;
  }
}

@media (max-width: 420px) {
  .modal-content {
    padding: 28px 20px 20px;
    border-radius: var(--radius);
  }

  .modal-header h2 {
    font-size: 1.35rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}
