/* ============================================================
   RJ45 — Component styles
   Navigation, hero, services, projects, testimonials, shop,
   cart, blog, contact, FAQ, footer
   ============================================================ */

/* ============================================================
   Top utility bar
   ============================================================ */
.topbar {
  background: var(--brand-navy);
  color: var(--brand-white);
  padding: 8px 0;
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.topbar a {
  color: var(--brand-white);
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
}
.topbar a:hover { opacity: 1; color: var(--brand-yellow); }
.topbar-pulse {
  display: inline-flex;
  width: 8px; height: 8px;
  background: var(--brand-mint);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(45, 212, 168, 0.7);
  animation: pulse 2s infinite;
  margin-right: 4px;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 168, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(45, 212, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 168, 0); }
}
@media (max-width: 780px) {
  .topbar-right { display: none; }
}

/* ============================================================
   Main navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
[data-theme="dark"] .nav {
  background: rgba(7, 13, 28, 0.85);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: var(--s-6);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
}
.nav-logo svg { height: 36px; width: auto; }
.nav-logo-text {
  font-size: var(--fs-md);
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav-logo-text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  padding: 8px 14px;
  color: var(--text);
  font-weight: 500;
  font-size: var(--fs-sm);
  border-radius: var(--r-pill);
  transition: all var(--dur-1) var(--ease);
  position: relative;
}
.nav-links a:hover {
  color: var(--brand-mint-deep);
  background: var(--surface-2);
}
.nav-links a.active {
  color: var(--brand-navy);
  background: var(--bg-accent);
}
[data-theme="dark"] .nav-links a.active {
  color: var(--brand-yellow);
  background: rgba(245, 197, 66, 0.1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0;
  color: var(--text);
  align-items: center;
  justify-content: center;
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: var(--s-4);
    gap: var(--s-1);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 14px 18px; }
}

/* Theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
.theme-toggle:hover { background: var(--brand-yellow); color: var(--brand-navy); border-color: var(--brand-yellow); }

/* Cart button with badge */
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text);
  cursor: pointer;
}
.cart-btn:hover { background: var(--brand-navy); color: var(--brand-white); border-color: var(--brand-navy); }
.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  background: var(--brand-mint);
  color: var(--brand-navy);
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: var(--brand-navy);
  color: var(--brand-white);
  padding: var(--s-12) 0 var(--s-11);
  overflow: hidden;
  isolation: isolate;
}
[data-theme="dark"] .hero { background: var(--brand-navy-deep); }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(45, 212, 168, 0.25), transparent 60%),
    radial-gradient(800px 500px at 10% 100%, rgba(245, 197, 66, 0.15), transparent 60%);
  z-index: -1;
}
.hero::after {
  /* Subtle grid pattern */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 10%, transparent 70%);
  z-index: -1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s-9);
  align-items: center;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-7); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 14px;
  background: rgba(45, 212, 168, 0.12);
  border: 1px solid rgba(45, 212, 168, 0.35);
  color: var(--brand-mint);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-5);
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--brand-mint);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  color: var(--brand-white);
  font-size: clamp(var(--fs-3xl), 7vw, var(--fs-6xl));
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-6);
}
.hero h1 .hl-yellow { color: var(--brand-white); }
.hero h1 em {
  font-style: normal;
  color: var(--brand-yellow);
  display: inline-block;
  position: relative;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0; right: 0;
  height: 4px;
  background: var(--brand-mint);
  border-radius: 2px;
}

.hero-sub {
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin-bottom: var(--s-7);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-8);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  padding: var(--s-6) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--brand-yellow);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
  .hero-stat-num { font-size: var(--fs-2xl); }
  .hero-stat-label { font-size: 10px; }
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin-left: auto;
}
.hero-visual-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.hero-visual-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 30%, rgba(10, 31, 68, 0.4) 100%);
}

/* Floating accent cards on hero */
.hero-float {
  position: absolute;
  padding: var(--s-4) var(--s-5);
  background: var(--brand-white);
  color: var(--brand-navy);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.hero-float-1 { top: 10%; left: -40px; animation: float 6s ease-in-out infinite; }
.hero-float-2 { bottom: 12%; right: -30px; animation: float 6s ease-in-out infinite 3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-float-icon {
  width: 40px; height: 40px;
  background: var(--bg-accent);
  color: var(--brand-navy);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
}
.hero-float-icon.mint { background: var(--bg-mint); color: var(--brand-mint-deep); }
.hero-float-title { font-weight: 700; font-size: var(--fs-sm); margin: 0; }
.hero-float-sub { font-size: var(--fs-xs); color: var(--text-muted); margin: 0; }
@media (max-width: 960px) {
  .hero-float-1 { left: 0; }
  .hero-float-2 { right: 0; }
}

/* ============================================================
   Section header
   ============================================================ */
.section-head {
  max-width: 760px;
  margin-bottom: var(--s-8);
}
.section-head.center {
  margin-left: auto; margin-right: auto;
  text-align: center;
}
.section-head.center .eyebrow { justify-content: center; }

/* ============================================================
   Services grid
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  padding: var(--s-7);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--dur-3) var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-height: 320px;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-mint);
  box-shadow: var(--shadow-lg);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-yellow), var(--brand-mint));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-3) var(--ease);
}
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.service-image {
  width: 100%;
  height: 160px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-accent);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-image .svg-placeholder {
  width: 80px;
  height: 80px;
  color: var(--brand-navy);
  opacity: 0.85;
}
[data-theme="dark"] .service-image { background: var(--brand-navy-soft); }
[data-theme="dark"] .service-image .svg-placeholder { color: var(--brand-yellow); }

.service-card h3 { font-size: var(--fs-lg); margin: 0; color: var(--text); }
.service-card p { font-size: var(--fs-sm); color: var(--text-muted); line-height: var(--lh-snug); margin: 0; flex: 1; }
.service-card .arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--brand-mint-deep);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-top: auto;
}
[data-theme="dark"] .service-card .arrow { color: var(--brand-mint); }
.service-card:hover .arrow { gap: var(--s-3); }

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  background: var(--brand-navy);
  color: var(--brand-white);
  padding: var(--s-5) 0;
  overflow: hidden;
  border-top: 3px solid var(--brand-yellow);
  border-bottom: 3px solid var(--brand-mint);
}
.marquee-inner {
  display: flex;
  gap: var(--s-10);
  animation: scroll-marquee 30s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  white-space: nowrap;
}
.marquee-item svg { color: var(--brand-yellow); width: 24px; height: 24px; flex-shrink: 0; }
@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Process (4-step)
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  counter-reset: step;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .process-grid { grid-template-columns: 1fr; } }

.process-step {
  position: relative;
  padding: var(--s-6);
  padding-top: var(--s-8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  counter-increment: step;
}
.process-step::before {
  content: "0" counter(step);
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 800;
  color: var(--brand-yellow);
  line-height: 1;
  opacity: 0.8;
}
.process-step h4 { margin-bottom: var(--s-2); }
.process-step p { font-size: var(--fs-sm); margin: 0; color: var(--text-muted); }

/* ============================================================
   Projects (asymmetric)
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-5);
}
.project-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--dur-3) var(--ease);
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-mint); }
.project-card:nth-child(1) { grid-column: span 8; }
.project-card:nth-child(2) { grid-column: span 4; }
.project-card:nth-child(3) { grid-column: span 5; }
.project-card:nth-child(4) { grid-column: span 7; }

@media (max-width: 900px) {
  .project-card,
  .project-card:nth-child(n) { grid-column: span 12; }
}

.project-image {
  aspect-ratio: 16 / 9;
  background: var(--brand-navy);
  position: relative;
  overflow: hidden;
}
.project-image img { width: 100%; height: 100%; object-fit: cover; }
.project-image .svg-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-mint);
}
.project-tag {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  background: var(--brand-white);
  color: var(--brand-navy);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.project-body {
  padding: var(--s-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-body h3 { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.project-body p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }
.project-meta {
  display: flex;
  gap: var(--s-4);
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ============================================================
   Stats strip
   ============================================================ */
.stats-strip {
  background: var(--brand-navy);
  color: var(--brand-white);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  position: relative;
  overflow: hidden;
}
.stats-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 20% 0%, rgba(45, 212, 168, 0.15), transparent 60%);
  pointer-events: none;
}
@media (max-width: 780px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); padding: var(--s-6); }
}
.stat-item-lg { position: relative; z-index: 1; }
.stat-item-lg .num {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl));
  font-weight: 800;
  color: var(--brand-yellow);
  line-height: 1;
}
.stat-item-lg .label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--s-2);
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial {
  background: var(--bg-mint);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  position: relative;
}
[data-theme="dark"] .testimonial { background: var(--surface-2); }
.testimonial::before {
  content: '"';
  position: absolute;
  top: var(--s-3); right: var(--s-5);
  font-family: Georgia, serif;
  font-size: 80px;
  line-height: 1;
  color: var(--brand-mint);
  opacity: 0.4;
}
.testimonial-quote {
  font-size: var(--fs-md);
  line-height: var(--lh-snug);
  color: var(--text);
  margin-bottom: var(--s-5);
  position: relative;
  z-index: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.testimonial-avatar {
  width: 44px; height: 44px;
  background: var(--brand-navy);
  color: var(--brand-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  overflow: hidden;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-weight: 700; font-size: var(--fs-sm); margin: 0; color: var(--text); }
.testimonial-role { font-size: var(--fs-xs); color: var(--text-muted); margin: 0; }

/* ============================================================
   Team
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  text-align: center;
}
.team-photo {
  aspect-ratio: 1 / 1;
  background: var(--bg-accent);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--s-4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 800;
  color: var(--brand-navy);
  transition: all var(--dur-3) var(--ease);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
[data-theme="dark"] .team-photo { background: var(--brand-navy-soft); color: var(--brand-yellow); }
.team-card:hover .team-photo { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-name { font-weight: 700; font-size: var(--fs-md); margin: 0; color: var(--text); }
.team-role { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--brand-mint-deep); text-transform: uppercase; letter-spacing: 0.06em; margin: 4px 0 0; }
[data-theme="dark"] .team-role { color: var(--brand-mint); }

/* ============================================================
   CTA block
   ============================================================ */
.cta-block {
  background: var(--brand-navy);
  color: var(--brand-white);
  border-radius: var(--r-xl);
  padding: var(--s-10) var(--s-8);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 300px at 20% 0%, rgba(45, 212, 168, 0.2), transparent 60%),
    radial-gradient(500px 300px at 80% 100%, rgba(245, 197, 66, 0.15), transparent 60%);
}
.cta-block > * { position: relative; z-index: 1; }
.cta-block h2 { color: var(--brand-white); font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl)); margin-bottom: var(--s-4); }
.cta-block p { color: rgba(255,255,255,0.8); font-size: var(--fs-md); max-width: 580px; margin: 0 auto var(--s-7); }

/* ============================================================
   Shop
   ============================================================ */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--s-7);
}
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
}

.shop-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + var(--s-4));
  align-self: start;
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.shop-sidebar h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--s-3);
  font-weight: 500;
}
.shop-filters {
  list-style: none;
  margin: 0 0 var(--s-5);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.shop-filters li {
  padding: 10px 12px;
  cursor: pointer;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--dur-1) var(--ease);
}
.shop-filters li:hover { background: var(--surface-2); }
.shop-filters li.active { background: var(--brand-navy); color: var(--brand-white); font-weight: 600; }
.shop-filters .count { font-family: var(--font-mono); font-size: var(--fs-xs); opacity: 0.7; }

.shop-search {
  margin-bottom: var(--s-5);
}

.shop-main {
  min-width: 0;
}
.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-5);
  gap: var(--s-4);
  flex-wrap: wrap;
}
.shop-count { color: var(--text-muted); font-size: var(--fs-sm); font-family: var(--font-mono); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--dur-2) var(--ease);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-mint);
}
.product-image {
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-image svg.placeholder {
  width: 72px; height: 72px;
  color: var(--brand-navy);
  opacity: 0.6;
}
[data-theme="dark"] .product-image { background: var(--bg-elevated); }
[data-theme="dark"] .product-image svg.placeholder { color: var(--brand-mint); }

.product-cat {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  color: var(--brand-navy);
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.product-sku {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.product-name { font-weight: 700; font-size: var(--fs-sm); margin: 0; color: var(--text); line-height: var(--lh-snug); }
.product-short { font-size: var(--fs-xs); color: var(--text-muted); margin: 0; line-height: var(--lh-snug); flex: 1; }

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
[data-theme="dark"] .product-footer { background: rgba(0,0,0,0.2); }
.product-price {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text);
}
.product-price small { font-size: 11px; color: var(--text-muted); font-weight: 400; margin-right: 2px; }
.product-add {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 8px 14px;
  background: var(--brand-navy);
  color: var(--brand-white);
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease);
}
.product-add:hover { background: var(--brand-mint); color: var(--brand-navy); }

/* ============================================================
   Cart drawer
   ============================================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 31, 68, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease);
  z-index: 200;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  width: 440px;
  max-width: 100%;
  height: 100vh;
  background: var(--bg);
  z-index: 201;
  transform: translateX(100%);
  transition: transform var(--dur-3) var(--ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,0.2);
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  padding: var(--s-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-head h3 { margin: 0; font-size: var(--fs-lg); }
.drawer-close {
  width: 40px; height: 40px;
  background: var(--surface-2);
  border: 0;
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-4) var(--s-6);
}
.drawer-empty {
  text-align: center;
  padding: var(--s-10) var(--s-4);
  color: var(--text-muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--s-3);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--divider);
  align-items: center;
}
.cart-item-img {
  width: 64px; height: 64px;
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-weight: 600; font-size: var(--fs-sm); margin: 0 0 4px; color: var(--text); }
.cart-item-price { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-top: 6px;
}
.qty button {
  width: 28px; height: 28px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 1;
}
.qty button:hover { background: var(--surface-2); }
.qty span { padding: 0 12px; font-family: var(--font-mono); font-size: var(--fs-xs); min-width: 36px; text-align: center; }

.cart-item-total {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--text);
  text-align: right;
}
.cart-item-remove {
  background: transparent;
  border: 0;
  color: var(--danger);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
  margin-top: 2px;
  text-align: right;
  display: block;
  width: 100%;
}

.drawer-foot {
  padding: var(--s-6);
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.cart-total-row.total {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text);
  padding-top: var(--s-3);
  margin-top: var(--s-3);
  border-top: 1px dashed var(--border);
}

/* ============================================================
   Modal (product detail, quote form)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 31, 68, 0.6);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.modal-head {
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-head h3 { margin: 0; font-size: var(--fs-lg); }
.modal-body { flex: 1; overflow-y: auto; padding: var(--s-6); }
.modal-foot { padding: var(--s-5) var(--s-6); border-top: 1px solid var(--border); display: flex; gap: var(--s-3); justify-content: flex-end; }

/* Product modal detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}
@media (max-width: 600px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail-img {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.product-detail h4 { margin: var(--s-2) 0; font-size: var(--fs-xl); }
.product-detail-specs {
  list-style: none;
  padding: 0;
  margin: var(--s-4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.product-detail-specs li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: var(--fs-sm);
}
.product-detail-specs li span:first-child { color: var(--text-muted); font-family: var(--font-mono); font-size: var(--fs-xs); }
.product-detail-specs li span:last-child { color: var(--text); font-weight: 500; }

/* ============================================================
   FAQ — improved transition (expand below, no overlap)
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.faq-item.open {
  border-color: var(--brand-mint);
  box-shadow: var(--shadow-sm);
}
.faq-q {
  width: 100%;
  padding: var(--s-5) var(--s-6);
  background: transparent;
  border: 0;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.faq-q:hover { background: var(--surface-2); }
.faq-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-accent);
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-2) var(--ease);
  font-size: var(--fs-lg);
  line-height: 1;
}
[data-theme="dark"] .faq-icon { background: var(--brand-navy-soft); color: var(--brand-yellow); }
.faq-item.open .faq-icon {
  background: var(--brand-mint);
  color: var(--brand-navy);
  transform: rotate(45deg);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-3) var(--ease-out);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner {
  overflow: hidden;
}
.faq-a-content {
  padding: 0 var(--s-6) var(--s-6);
  color: var(--text-soft);
  line-height: var(--lh-normal);
  border-top: 1px dashed var(--border);
  padding-top: var(--s-4);
  margin-top: 0;
}

/* ============================================================
   Blog
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--dur-2) var(--ease);
  cursor: pointer;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-mint); }
.blog-img {
  aspect-ratio: 16 / 9;
  background: var(--bg-accent);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.blog-img img { width: 100%; height: 100%; object-fit: cover; }
[data-theme="dark"] .blog-img { background: var(--brand-navy-soft); }
.blog-body { padding: var(--s-5); flex: 1; display: flex; flex-direction: column; }
.blog-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: var(--s-2);
  display: flex;
  gap: var(--s-4);
}
.blog-title { font-size: var(--fs-md); margin: 0 0 var(--s-2); line-height: var(--lh-snug); }
.blog-excerpt { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; flex: 1; }

/* ============================================================
   Contact
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}
.contact-card {
  background: var(--brand-navy);
  color: var(--brand-white);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 100% 0%, rgba(245, 197, 66, 0.15), transparent 60%);
}
.contact-card > * { position: relative; z-index: 1; }
.contact-card h3 { color: var(--brand-white); margin-bottom: var(--s-4); }
.contact-list { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: flex; flex-direction: column; gap: var(--s-5); }
.contact-list li { display: flex; align-items: flex-start; gap: var(--s-3); }
.contact-list .icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-yellow);
}
.contact-list h5 { margin: 0 0 2px; color: var(--brand-white); font-size: var(--fs-sm); font-weight: 600; }
.contact-list p { margin: 0; color: rgba(255,255,255,0.8); font-size: var(--fs-sm); }
.contact-list a { color: rgba(255,255,255,0.8); }
.contact-list a:hover { color: var(--brand-yellow); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-7);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--brand-navy-deep);
  color: rgba(255,255,255,0.8);
  padding: var(--s-10) 0 var(--s-6);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .footer { background: #03080f; }
.footer::before {
  content: 'RJ45';
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(120px, 20vw, 280px);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.02);
  letter-spacing: -0.02em;
  line-height: 1;
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-7);
  position: relative;
  z-index: 1;
  padding-bottom: var(--s-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand h4 { color: var(--brand-white); margin-bottom: var(--s-3); }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: var(--fs-sm); }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-yellow);
  margin: 0 0 var(--s-4);
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.footer-col a { color: rgba(255,255,255,0.7); font-size: var(--fs-sm); }
.footer-col a:hover { color: var(--brand-yellow); }
.footer-bottom {
  padding-top: var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  position: relative;
  z-index: 1;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.footer-social { display: flex; gap: var(--s-2); }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
}
.footer-social a:hover { background: var(--brand-yellow); color: var(--brand-navy); }

/* ============================================================
   Toast
   ============================================================ */
.toast-wrap {
  position: fixed;
  bottom: var(--s-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  pointer-events: none;
}
.toast {
  background: var(--brand-navy);
  color: var(--brand-white);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--s-2);
  animation: toastIn var(--dur-3) var(--ease-spring);
  pointer-events: auto;
}
.toast.success { background: var(--brand-mint); color: var(--brand-navy); }
.toast.error { background: var(--danger); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   Page header (for sub-pages)
   ============================================================ */
.page-hero {
  background: var(--brand-navy);
  color: var(--brand-white);
  padding: var(--s-10) 0 var(--s-9);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 80% 50%, rgba(45, 212, 168, 0.15), transparent 60%);
  z-index: -1;
}
.page-hero h1 { color: var(--brand-white); margin-bottom: var(--s-3); }
.page-hero p { color: rgba(255,255,255,0.8); font-size: var(--fs-lg); max-width: 680px; }
.breadcrumb {
  display: flex;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--s-4);
  letter-spacing: 0.05em;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--brand-yellow); }
