/* ==========================================================
   OMARATIX — Precision Tech Corporate
   Design system: Deep Navy #0F4C81 + Cyber Cyan accents
   Typography: Manrope (headlines) + Inter (body)
   ========================================================== */

:root {
  /* Color tokens (from Stitch design system) */
  --primary: #00355f;
  --primary-container: #0F4C81;
  --on-primary: #ffffff;
  --on-primary-container: #8ebdf9;
  --primary-fixed: #d2e4ff;
  --primary-fixed-dim: #a0c9ff;

  --secondary: #00696c;
  --on-secondary: #ffffff;
  --secondary-container: #63f4f8;
  --on-secondary-container: #006e70;

  --tertiary: #1d3742;
  --tertiary-container: #344e59;
  --on-tertiary-container: #a3becc;

  --surface: #f8f9fa;
  --surface-bright: #f8f9fa;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f3f4f5;
  --surface-container: #edeeef;
  --surface-container-high: #e7e8e9;
  --surface-container-highest: #e1e3e4;
  --surface-variant: #e1e3e4;

  --on-surface: #191c1d;
  --on-surface-variant: #42474f;
  --outline: #727780;
  --outline-variant: #c2c7d1;
  --background: #f8f9fa;
  --on-background: #191c1d;

  --error: #ba1a1a;
  --on-error: #ffffff;
  --success: #006e70;

  /* Layout */
  --container-max: 1280px;
  --gutter: 24px;
  --section-padding: 80px;
  --stack-sm: 12px;
  --stack-md: 24px;
  --stack-lg: 48px;

  /* Radius */
  --r-sm: 0.125rem;
  --r-md: 0.375rem;
  --r-lg: 0.5rem;
  --r-xl: 0.75rem;
  --r-2xl: 1rem;
  --r-full: 9999px;

  /* Elevation (tonal layers) */
  --elev-1: 0px 4px 20px rgba(15, 76, 129, 0.05);
  --elev-2: 0px 8px 30px rgba(15, 76, 129, 0.10);

  /* Transitions */
  --t: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============= Reset ============= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--on-background);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
ul { list-style: none; }
input, select, textarea { font: inherit; }

/* ============= Typography ============= */
h1, h2, h3, h4 { font-family: 'Manrope', sans-serif; color: var(--primary-container); }
.t-h1 { font-family: 'Manrope', sans-serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.t-h2 { font-family: 'Manrope', sans-serif; font-size: clamp(1.6rem, 3.4vw, 2.25rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.t-h3 { font-family: 'Manrope', sans-serif; font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
.t-h4 { font-family: 'Manrope', sans-serif; font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.t-body-lg { font-size: 1.125rem; line-height: 1.6; }
.t-body-md { font-size: 1rem; line-height: 1.5; }
.t-body-sm { font-size: 0.875rem; line-height: 1.5; }
.t-label-caps {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============= Layout helpers ============= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section-padding) 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--surface); }

.stack-sm > * + * { margin-top: var(--stack-sm); }
.stack-md > * + * { margin-top: var(--stack-md); }
.stack-lg > * + * { margin-top: var(--stack-lg); }

.text-center { text-align: center; }
.text-muted { color: var(--on-surface-variant); }
.max-w-prose { max-width: 650px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ============= Buttons ============= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  border-radius: var(--r-lg);
  border: 1.5px solid transparent;
  transition: all var(--t);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary-container);
  color: var(--on-primary);
  border-color: var(--primary-container);
}
.btn-primary:hover { background: var(--primary); border-color: var(--primary); color: white; }
.btn-secondary {
  background: transparent;
  color: var(--primary-container);
  border-color: var(--primary-container);
}
.btn-secondary:hover { background: var(--primary-container); color: white; }
.btn-cyan {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  border-color: var(--secondary-container);
}
.btn-cyan:hover { background: #41dade; border-color: #41dade; }
.btn-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-on-primary {
  background: white;
  color: var(--primary-container);
  border-color: white;
}
.btn-on-primary:hover { background: var(--surface-container-low); }
.btn-lg { padding: 1.125rem 2.25rem; font-size: 0.9375rem; }
.btn-sm { padding: 0.625rem 1.125rem; font-size: 0.8125rem; }
.btn-block { width: 100%; }

/* ============= Top Nav ============= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--outline-variant);
}
.nav {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-container);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  text-decoration: none;
}
.logo:hover { color: var(--primary); }
.logo img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
}
.footer-brand .logo img { height: 48px; }
.logo .mark {
  width: 36px;
  height: 36px;
  background: var(--primary-container);
  color: white;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 16px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface-variant);
  letter-spacing: -0.01em;
  transition: color var(--t);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-container); }
.nav-cta { flex-shrink: 0; }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-container);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: white;
    padding: 20px var(--gutter) 24px;
    border-bottom: 1px solid var(--outline-variant);
    box-shadow: var(--elev-1);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--t);
    gap: 18px;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links .btn { align-self: stretch; }
}

/* ============= Hero ============= */
.hero {
  position: relative;
  background: var(--primary-container);
  color: white;
  padding: 96px 0 112px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(99, 244, 248, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(141, 189, 249, 0.08) 0%, transparent 60%);
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 { color: white; margin-bottom: var(--stack-md); }
.hero p { color: rgba(255,255,255,0.85); margin-bottom: var(--stack-lg); max-width: 560px; }
.hero-eyebrow {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(99, 244, 248, 0.15);
  color: var(--secondary-container);
  border-radius: var(--r-full);
  margin-bottom: var(--stack-sm);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--gutter); }
.hero-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hero-tiles .col { display: flex; flex-direction: column; gap: 16px; }
.hero-tiles .col:first-child { padding-top: 32px; }
.hero-tile {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-xl);
  padding: 24px;
}
.hero-tile .icon {
  font-size: 2rem;
  color: var(--secondary-container);
  margin-bottom: 8px;
}
.hero-tile h4 { color: white; font-family: 'Manrope', sans-serif; font-size: 1.0625rem; font-weight: 600; }

@media (max-width: 880px) { .hero-tiles { display: none; } }

/* ============= Bento services ============= */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}
@media (max-width: 880px) { .bento { grid-template-columns: 1fr; } }
.bento-card {
  background: white;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--elev-1);
  transition: box-shadow var(--t), transform var(--t);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.bento-card:hover { box-shadow: var(--elev-2); transform: translateY(-2px); }
.bento-card .icon {
  font-size: 2.25rem;
  color: var(--primary-container);
  margin-bottom: var(--stack-sm);
}
.bento-card.dark { background: var(--primary-container); color: white; border-color: rgba(255,255,255,0.1); }
.bento-card.dark h3 { color: white; }
.bento-card.dark .icon { color: var(--secondary-container); }
.bento-card.dark .text-muted { color: var(--on-primary-container); }
.bento-card.muted { background: var(--surface-container); }
.bento-card .arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary);
  transition: gap var(--t);
}
.bento-card:hover .arrow { gap: 12px; }
.bento-card .arrow::after { content: '→'; font-size: 1.1rem; }

.span-8 { grid-column: span 8; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-12 { grid-column: span 12; }
@media (max-width: 880px) { .span-8, .span-4, .span-6, .span-12 { grid-column: 1 / -1; } }

/* ============= Brand row ============= */
.brand-row {
  background: white;
  border-top: 1px solid var(--outline-variant);
  border-bottom: 1px solid var(--outline-variant);
  padding: 48px 0;
}
.brand-row .label {
  text-align: center;
  color: var(--on-surface-variant);
  margin-bottom: 28px;
}
.brand-row .brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
}
.brand-row .brand {
  font-family: 'Manrope', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-container);
  opacity: 0.55;
  transition: opacity var(--t);
}
.brand-row .brand:hover { opacity: 1; }

/* ============= Section heads ============= */
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--stack-lg); }
.section-head h2 { margin-bottom: var(--stack-sm); }

/* ============= Why list ============= */
.why-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--stack-md);
  margin-top: var(--stack-lg);
}
.why-item {
  background: white;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--elev-1);
}
.why-item .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--primary-fixed);
  color: var(--primary-container);
  border-radius: var(--r-md);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--stack-sm);
}
.why-item h4 { margin-bottom: 6px; color: var(--primary-container); }
.why-item p { color: var(--on-surface-variant); }

/* ============= CTA banner ============= */
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, var(--primary-container) 0%, var(--primary) 100%);
  color: white;
  border-radius: var(--r-2xl);
  padding: 80px 48px;
  text-align: center;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(99, 244, 248, 0.18) 0%, transparent 40%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: white; margin-bottom: var(--stack-md); }
.cta-banner p { color: var(--on-primary-container); max-width: 640px; margin: 0 auto var(--stack-lg); }
.cta-banner .btn-row { display: flex; gap: var(--gutter); justify-content: center; flex-wrap: wrap; }

/* ============= Page header (interior) ============= */
.page-header {
  background: linear-gradient(135deg, var(--primary-container) 0%, var(--primary) 100%);
  color: white;
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(99, 244, 248, 0.12) 0%, transparent 50%);
}
.page-header > * { position: relative; z-index: 1; }
.page-header h1 { color: white; margin-bottom: var(--stack-sm); }
.page-header p { color: rgba(255,255,255,0.85); max-width: 640px; }

.crumbs {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: var(--stack-md);
  color: rgba(255,255,255,0.65);
}
.crumbs a { color: rgba(255,255,255,0.85); }
.crumbs a:hover { color: white; }
.crumbs span { color: rgba(255,255,255,0.4); }

/* ============= Catalog ============= */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}
@media (max-width: 880px) { .catalog-layout { grid-template-columns: 1fr; } }

.filters {
  background: white;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--elev-1);
  position: sticky;
  top: 100px;
  height: fit-content;
}
@media (max-width: 880px) { .filters { position: static; } }
.filter-group + .filter-group { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--outline-variant); }
.filter-group .filter-label {
  color: var(--on-surface-variant);
  margin-bottom: 14px;
}
.filter-options { display: flex; flex-direction: column; gap: 8px; }
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  user-select: none;
  font-size: 0.9375rem;
  color: var(--on-surface);
}
.filter-option input {
  width: 18px; height: 18px;
  accent-color: var(--primary-container);
  cursor: pointer;
}
.filter-option .count {
  margin-left: auto;
  background: var(--surface-container);
  color: var(--on-surface-variant);
  padding: 2px 9px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.filter-clear {
  margin-top: 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--secondary);
  padding: 0;
}
.filter-clear:hover { color: var(--primary-container); }

.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: var(--stack-md);
}
.search-input {
  flex: 1;
  min-width: 240px;
  padding: 14px 16px 14px 48px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg);
  background: white url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2342474f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>") no-repeat 16px center / 18px;
  color: var(--on-surface);
  transition: border-color var(--t), box-shadow var(--t);
}
.search-input:focus {
  outline: 0;
  border-color: var(--primary-container);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}
.results-count { color: var(--on-surface-variant); font-size: 0.875rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gutter);
}
.product-card {
  background: white;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--elev-1);
  transition: box-shadow var(--t), transform var(--t);
}
.product-card:hover { box-shadow: var(--elev-2); transform: translateY(-3px); }
.product-image {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, var(--surface-container-low) 0%, var(--surface-container) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--outline);
  border-bottom: 1px solid var(--outline-variant);
  overflow: hidden;
}
.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 12px;
}
.product-image.is-logo {
  background: white;
  padding: 28px;
}
.product-image.is-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--surface-container-low), var(--surface-container));
  z-index: 0;
}
.product-image.is-logo img {
  position: relative;
  z-index: 1;
  max-width: 70%;
  max-height: 70%;
  padding: 0;
  filter: grayscale(0%) opacity(0.85);
}
.product-region {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 9px;
  background: var(--primary-container);
  color: white;
  border-radius: var(--r-full);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.product-image svg { width: 84px; height: 84px; opacity: 0.5; }
.product-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.product-brand {
  color: var(--secondary);
  margin-bottom: 6px;
}
.product-name {
  font-family: 'Manrope', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--primary-container);
  margin-bottom: 10px;
  line-height: 1.3;
}
.product-partnumber {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--on-surface-variant);
  letter-spacing: 0.02em;
  margin: -4px 0 6px;
  font-family: 'Inter', monospace, sans-serif;
}
.product-partnumber strong {
  color: var(--primary-container);
  font-weight: 700;
}
.product-compat {
  font-size: 0.78rem;
  color: var(--on-surface-variant);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-desc {
  font-size: 0.8125rem;
  color: var(--on-surface);
  line-height: 1.5;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-image.is-parts {
  background: linear-gradient(135deg, var(--surface-container) 0%, var(--surface-container-low) 100%);
  color: var(--primary-container);
}
.product-image.is-parts svg { width: 72px; height: 72px; opacity: 0.55; }
.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.spec-tag {
  background: var(--surface-container);
  color: var(--on-surface-variant);
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 500;
}
.product-price {
  margin-bottom: 14px;
  padding: 10px 12px;
  background: var(--primary-fixed);
  border-radius: var(--r-md);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.product-price .price-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-container);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-price .price-value {
  font-family: 'Manrope', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary-container);
}
.product-card .btn { margin-top: auto; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--on-surface-variant);
}
.empty-state h3 { color: var(--primary-container); margin-bottom: 8px; }

/* ============= Forms ============= */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  color: var(--on-surface-variant);
}
.form-group label .req { color: var(--error); margin-left: 4px; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-md);
  color: var(--on-surface);
  transition: all var(--t);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--secondary-container);
  background: white;
  box-shadow: 0 0 0 3px rgba(99, 244, 248, 0.25);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ============= Contact info ============= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-info-card {
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-xl);
  padding: 40px;
}
.contact-info-card h3 { margin-bottom: var(--stack-md); }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--outline-variant);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row .ico {
  width: 40px; height: 40px;
  background: var(--primary-fixed);
  color: var(--primary-container);
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}
.contact-row .label { color: var(--on-surface-variant); margin-bottom: 2px; }
.contact-row .value { font-family: 'Manrope', sans-serif; font-weight: 600; color: var(--primary-container); }
.contact-row a:hover { color: var(--secondary); }

/* ============= Modal ============= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 76, 129, 0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  animation: fadeIn 200ms;
}
.modal-overlay.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: white;
  border-radius: var(--r-xl);
  max-width: 560px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 40px 36px 32px;
  position: relative;
  box-shadow: 0 32px 64px rgba(0,0,0,0.18);
  animation: slideUp 240ms cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: var(--surface-container);
  color: var(--on-surface-variant);
  border-radius: var(--r-full);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--surface-container-high); color: var(--on-surface); }
.modal h3 { margin-bottom: 6px; }
.modal-product {
  background: var(--primary-fixed);
  color: var(--primary-container);
  padding: 14px 16px;
  border-radius: var(--r-md);
  margin: 16px 0 24px;
  font-size: 0.9375rem;
}
.modal-product strong { font-family: 'Manrope', sans-serif; }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--secondary);
  color: white;
  padding: 14px 22px;
  border-radius: var(--r-lg);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 16px 48px rgba(0,110,112,0.3);
  transform: translateY(120px);
  opacity: 0;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ============= Footer ============= */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.875rem; max-width: 320px; line-height: 1.6; }
.footer-col h4 { color: white; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; font-family: 'Inter', sans-serif; font-weight: 700; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.875rem; }
.footer-col a:hover { color: var(--secondary-container); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
}

/* ============= Service detail (services page) ============= */
.service-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.service-detail.reverse > :first-child { order: 2; }
@media (max-width: 880px) {
  .service-detail, .service-detail.reverse { grid-template-columns: 1fr; gap: 32px; }
  .service-detail.reverse > :first-child { order: 0; }
}
.service-detail .icon-block {
  background: var(--surface-container);
  border-radius: var(--r-xl);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.service-detail .icon-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(99, 244, 248, 0.18), transparent 60%);
}
.service-detail .icon-block svg { width: 60%; height: auto; position: relative; }
.service-detail .icon-block.icon-block-photo {
  padding: 0;
}
.service-detail .icon-block.icon-block-photo::before { display: none; }
.service-detail .icon-block.icon-block-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
}
.service-detail .icon-block.icon-block-photo.icon-contain {
  background: linear-gradient(135deg, var(--surface-container) 0%, var(--surface-container-low) 100%);
  padding: 32px;
}
.service-detail .icon-block.icon-block-photo.icon-contain img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.service-detail h3 { margin-bottom: var(--stack-sm); }
.service-detail .feature-list {
  margin-top: var(--stack-md);
  display: grid;
  gap: 12px;
}
.service-detail .feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--on-surface);
}
.service-detail .feature-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============= About ============= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gutter);
  margin-top: var(--stack-lg);
}
.value-card {
  background: white;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--elev-1);
}
.value-card .icon-circle {
  width: 56px; height: 56px;
  background: var(--primary-fixed);
  color: var(--primary-container);
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.value-card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.value-card p { color: var(--on-surface-variant); font-size: 0.9375rem; }

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--gutter);
  background: white;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--elev-1);
}
.metric .num {
  font-family: 'Manrope', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-container);
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 4px;
}
.metric .label { color: var(--on-surface-variant); font-size: 0.875rem; }

.i {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hidden { display: none; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.mt-md { margin-top: var(--stack-md); }
.mt-lg { margin-top: var(--stack-lg); }
.mb-md { margin-bottom: var(--stack-md); }
.mb-lg { margin-bottom: var(--stack-lg); }

/* ============= Rental plans ============= */
.plan {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}
.plan .t-label-caps:first-child { letter-spacing: 0.08em; }
.plan h3 {
  margin-top: 12px;
  margin-bottom: 12px;
  min-height: 2.6rem;
}
.plan > p {
  color: var(--on-surface-variant);
  font-size: 0.9375rem;
  line-height: 1.55;
  min-height: 4.5rem;
  margin: 0;
}
.plan-featured {
  border: 2px solid var(--primary-container);
  box-shadow: var(--elev-2);
  background: linear-gradient(180deg, white 0%, var(--surface-container-lowest) 100%);
  z-index: 1;
}
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-container);
  color: white;
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--elev-1);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 22px 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--outline-variant);
  border-bottom: 1px solid var(--outline-variant);
  flex-wrap: wrap;
}
.plan-from {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.plan-amount {
  font-family: 'Manrope', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-container);
  letter-spacing: -0.02em;
  line-height: 1;
}
.plan-period {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 12px;
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--on-surface);
  line-height: 1.45;
}
.plan-features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: var(--secondary-container);
  border-radius: var(--r-full);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23006e70' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m4 8 3 3 5-6'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
}
.plan .btn {
  margin-top: auto;
  width: 100%;
}

/* Make the plan-grid stretch all three cards to equal height */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 0;
}
@media (max-width: 920px) {
  .plan-grid { grid-template-columns: 1fr; gap: 24px; }
  .plan-featured { margin: 8px 0; }
}

/* ============= Plans showcase wrapper (rental page) ============= */
.plans-showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 28px;
  align-items: stretch;
  margin-top: var(--stack-lg);
}
.plans-showcase {
  position: relative;
  border: 2px solid #b9aee0;
  border-radius: var(--r-xl);
  padding: 40px 24px 24px;
  background-color: #ffffff;
  background-image: radial-gradient(circle, rgba(120, 100, 180, 0.18) 1px, transparent 1.3px);
  background-size: 12px 12px;
  background-position: 0 0;
}
.plans-showcase-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  padding: 8px 22px;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 53, 95, 0.25);
  z-index: 2;
}
.plans-showcase .plan {
  background: #ffffff;
  padding: 22px;
}
.plans-showcase .plan h3 { font-size: 1.35rem; min-height: 0; margin-top: 8px; margin-bottom: 8px; }
.plans-showcase .plan > p { font-size: 0.875rem; min-height: 3.6rem; }
.plans-showcase .plan-amount { font-size: 1.75rem; }
.plans-showcase .plan-features { margin: 18px 0; gap: 10px; }
.plans-showcase .plan-features li { font-size: 0.875rem; }
.plans-showcase .plan-price { padding: 16px 0; margin-top: 18px; }
.plans-illustration {
  background: var(--surface-container-low);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 400px;
  border: 1px solid var(--outline-variant);
}
.plans-illustration svg { width: 100%; height: 100%; display: block; }
@media (max-width: 1100px) {
  .plans-showcase-layout { grid-template-columns: 1fr; }
  .plans-illustration { min-height: 280px; max-height: 360px; }
}
@media (max-width: 760px) {
  .plans-showcase { padding: 36px 14px 16px; }
  .plans-illustration { display: none; }
}

/* ============= Step cards (process) ============= */
.step-card {
  background: white;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--elev-1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.step-num {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-fixed-dim);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1;
}
.step-card h4 { margin-bottom: 8px; }

/* ============= FAQ ============= */
.faq-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
  padding: 16px;
  background: white;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg);
  position: sticky;
  top: 80px;
  z-index: 5;
  box-shadow: var(--elev-1);
}
.faq-toc a {
  padding: 8px 14px;
  background: var(--surface-container-low);
  border-radius: var(--r-full);
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-container);
  border: 1px solid transparent;
  transition: all var(--t);
}
.faq-toc a:hover {
  background: var(--primary-fixed);
  border-color: var(--primary-container);
}

.faq-section {
  margin-bottom: 64px;
  scroll-margin-top: 160px;
}
.faq-section h2 {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--outline-variant);
}

.faq-item {
  background: white;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg);
  margin-bottom: 12px;
  box-shadow: var(--elev-1);
  overflow: hidden;
  transition: box-shadow var(--t);
}
.faq-item[open] {
  box-shadow: var(--elev-2);
  border-color: var(--primary-container);
}
.faq-item summary {
  padding: 20px 56px 20px 24px;
  font-family: 'Manrope', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--primary-container);
  cursor: pointer;
  position: relative;
  list-style: none;
  user-select: none;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--primary-container);
  border-bottom: 2px solid var(--primary-container);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--t);
}
.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq-item summary:hover {
  background: var(--surface-container-low);
}
.faq-answer {
  padding: 0 24px 24px;
  color: var(--on-surface-variant);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.faq-answer p { margin-bottom: 12px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul {
  margin: 12px 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.faq-answer ul li {
  padding-left: 20px;
  position: relative;
}
.faq-answer ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background: var(--secondary-container);
  border-radius: var(--r-full);
}
.faq-answer strong { color: var(--on-surface); }
.faq-answer a { color: var(--primary-container); text-decoration: underline; }
.faq-answer a:hover { color: var(--secondary); }

@media (max-width: 880px) {
  .faq-toc { position: static; }
}

/* ============= Floating WhatsApp CTA ============= */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 90;
  text-decoration: none;
  transform: translateY(80px) scale(0.6);
  opacity: 0;
  transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 250ms ease, box-shadow 200ms ease;
}
.wa-float.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.wa-float:hover {
  background: #1ebe5a;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45), 0 6px 16px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px) scale(1.05);
  color: white;
}
.wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.5;
  animation: waPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.5; }
  70%  { transform: scale(1.4); opacity: 0;   }
  100% { transform: scale(1.4); opacity: 0;   }
}
.wa-float svg {
  width: 30px;
  height: 30px;
  position: relative;
}

/* Tooltip on desktop hover */
.wa-float::after {
  content: 'Chat with us';
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-container);
  color: white;
  padding: 8px 14px;
  border-radius: var(--r-md);
  font-family: 'Manrope', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--elev-1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}
.wa-float:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 600px) {
  .wa-float {
    width: 56px;
    height: 56px;
    bottom: 18px;
    right: 18px;
  }
  .wa-float svg { width: 28px; height: 28px; }
  .wa-float::after { display: none; }
}

/* ============= CCTV page (Stitch-style bento) ============= */
.cctv-hero {
  position: relative;
  color: white;
  padding: 96px 0 112px;
  overflow: hidden;
  isolation: isolate;
}
.cctv-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cctv-hero-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}
.cctv-hero-inner {
  position: relative;
  max-width: 760px;
}
.cctv-eyebrow {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(99, 244, 248, 0.12);
  color: var(--secondary-container);
  border-radius: var(--r-full);
  margin-bottom: var(--stack-md);
  border: 1px solid rgba(99, 244, 248, 0.25);
}
.cctv-headline {
  color: white;
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  margin-bottom: var(--stack-md);
}
.cctv-subheadline {
  color: rgba(255,255,255,0.78);
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: var(--stack-lg);
}
.cctv-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Bento grid */
.cctv-bento {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
@media (max-width: 880px) {
  .cctv-bento { grid-template-columns: 1fr; }
}

.cctv-card {
  background: white;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--elev-1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--t), transform var(--t);
}
.cctv-card:hover {
  box-shadow: var(--elev-2);
  transform: translateY(-2px);
}

.cctv-card-feature {
  grid-column: 1;
  grid-row: 1 / span 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 880px) {
  .cctv-card-feature { grid-template-columns: 1fr; }
}

.cctv-card-side {
  grid-column: 2;
  grid-row: 1;
}

.cctv-card-mid {
  grid-column: 1;
  grid-row: 2;
}

.cctv-card-dark {
  grid-column: 2;
  grid-row: 2;
  background: linear-gradient(160deg, var(--primary-container) 0%, var(--primary) 100%);
  color: white;
  border-color: rgba(255,255,255,0.08);
}
.cctv-card-dark h3 { color: white; }
.cctv-card-dark p { color: rgba(255,255,255,0.85); }

@media (max-width: 880px) {
  .cctv-card-side, .cctv-card-mid, .cctv-card-dark {
    grid-column: 1;
    grid-row: auto;
  }
}

.cctv-card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--primary-fixed);
  color: var(--primary-container);
  border-radius: var(--r-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  width: fit-content;
}

.cctv-card-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-fixed);
  color: var(--primary-container);
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.cctv-card-icon .i {
  width: 22px;
  height: 22px;
}
.cctv-card-dark .cctv-card-icon {
  background: rgba(99, 244, 248, 0.15);
  color: var(--secondary-container);
}

.cctv-card h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}

.cctv-feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
  display: grid;
  gap: 10px;
}
.cctv-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--on-surface);
  line-height: 1.5;
}
.cctv-feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: var(--secondary-container);
  border-radius: var(--r-full);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23006e70' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m4 8 3 3 5-6'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
}
.cctv-feature-list-dark li {
  color: rgba(255,255,255,0.95);
}
.cctv-feature-list-dark li::before {
  background-color: var(--secondary-container);
}

.cctv-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--primary-container);
  transition: gap var(--t);
}
.cctv-card-link:hover {
  gap: 14px;
  color: var(--secondary);
}

.cctv-card-visual {
  background: linear-gradient(135deg, var(--surface-container-low), var(--surface-container));
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.2 / 1;
  border: 1px solid var(--outline-variant);
}
.cctv-card-visual svg {
  width: 100%;
  height: auto;
  max-height: 260px;
}

/* ============= IT page additions: dark card stats + UPS section ============= */
.dark-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: var(--stack-md);
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.dark-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dark-stat-num {
  font-family: 'Manrope', sans-serif;
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--secondary-container);
  letter-spacing: -0.02em;
  line-height: 1;
}
.dark-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* UPS section */
.ups-features {
  display: grid;
  gap: 20px;
}
.ups-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ups-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--primary-fixed);
  color: var(--primary-container);
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ups-feature-icon .i { width: 22px; height: 22px; }
.ups-feature h4 { margin-bottom: 4px; }
.ups-visual {
  background: linear-gradient(135deg, var(--surface-container-low), var(--surface-container));
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--outline-variant);
  aspect-ratio: 4/3;
  box-shadow: var(--elev-1);
}
.ups-visual svg { width: 100%; height: auto; max-height: 320px; }

/* ============= IT page: real photo containers ============= */

/* Photo replaces SVG visual in feature cards */
.cctv-card-visual.cctv-card-photo {
  padding: 0;
  border: none;
  overflow: hidden;
  background: #0a0d14;
  aspect-ratio: 1.2 / 1;
}
.cctv-card-visual.cctv-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Split layout for IP Telephony (photo left, content right) */
.cctv-card-split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
  padding: 0;
  overflow: hidden;
}
.cctv-card-split > div:last-child {
  padding: 32px 32px 32px 0;
}
.cctv-card-photo-side {
  height: 100%;
  background: #0a0d14;
  overflow: hidden;
}
.cctv-card-photo-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 220px;
}
@media (max-width: 720px) {
  .cctv-card-split {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cctv-card-split > div:last-child {
    padding: 28px 32px 32px;
  }
  .cctv-card-photo-side {
    height: 200px;
  }
}

/* UPS visual photo replacement */
.ups-visual.ups-visual-photo {
  padding: 0;
  overflow: hidden;
  background: #0a0d14;
}
.ups-visual.ups-visual-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 320px;
}

/* ============= Home page hero with cover photo ============= */
.hero.hero-cover {
  position: relative;
  background:
    linear-gradient(135deg, rgba(10, 26, 47, 0.78) 0%, rgba(15, 76, 129, 0.72) 100%),
    url("../img/cover.png") center / cover no-repeat;
  background-blend-mode: normal;
  overflow: hidden;
}
.hero.hero-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(99, 244, 248, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(141, 189, 249, 0.08) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.hero.hero-cover > * {
  position: relative;
  z-index: 1;
}

/* Photo-based hero bg for pillar pages (IT + CCTV) */
.cctv-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cctv-hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 26, 47, 0.78) 0%, rgba(15, 76, 129, 0.72) 100%),
    radial-gradient(circle at 80% 20%, rgba(99, 244, 248, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(141, 189, 249, 0.08) 0%, transparent 60%);
}

/* ============= Services hero with copier photo ============= */
.services-hero {
  padding: 64px 0 56px;
}
.services-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 880px) {
  .services-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.services-hero-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-xl);
  padding: 24px;
  backdrop-filter: blur(4px);
  aspect-ratio: 1 / 1;
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
}
.services-hero-photo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.4));
}

/* ============= Card with photo thumbnail (Core Networking with firewall) ============= */
.cctv-card-with-photo {
  padding-top: 0;
  overflow: hidden;
}
.cctv-card-thumb {
  margin: -32px -32px 20px;
  height: 180px;
  background: linear-gradient(135deg, var(--surface-container-low), var(--surface-container));
  border-bottom: 1px solid var(--outline-variant);
  overflow: hidden;
}
.cctv-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* UPS visual: also handle JPG with max-height to prevent stretching */
.ups-visual.ups-visual-photo img[src*="ups.jpg"] {
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* ============= WhatsApp brand-green button ============= */
.btn-whatsapp {
  background: #25D366;
  color: white;
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background: #1ebe5a;
  border-color: #1ebe5a;
  color: white;
}
.btn-whatsapp svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Hide the in-nav 'Request a quote' button on desktop (the standalone .nav-cta is shown instead) */
@media (min-width: 881px) {
  .nav-links .btn-primary {
    display: none;
  }
}
