/* ============================================================
   PIN1 SEMICONDUCTOR LLC — pin1semi.com

   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --c-red: #c8102e;
  --c-red-dark: #9e0c24;
  --c-red-soft: #fdecef;

  /* Secondary accent (tech blue) */
  --c-blue: #0b5fff;
  --c-blue-dark: #0947cc;
  --c-blue-soft: #eaf1ff;

  /* Neutrals */
  --c-white: #ffffff;
  --c-bg: #ffffff;
  --c-bg-alt: #f7f9fc;
  --c-bg-section: #f0f4fa;
  --c-bg-dark: #0a1628;
  --c-bg-dark-alt: #0f1f38;

  /* Text */
  --c-text: #0a1628;
  --c-text-muted: #4a5872;
  --c-text-subtle: #8a94a8;
  --c-text-inverse: #ffffff;

  /* Borders */
  --c-border: #e5e9f0;
  --c-border-subtle: #eef1f7;
  --c-border-strong: #c9d2e0;

  /* Typography */
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* Layout */
  --container: 1280px;
  --container-narrow: 960px;
  --nav-h: 84px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(10, 22, 40, 0.06);
  --sh-md: 0 4px 16px rgba(10, 22, 40, 0.08);
  --sh-lg: 0 12px 40px rgba(10, 22, 40, 0.12);
  --sh-hover: 0 20px 50px rgba(10, 22, 40, 0.15);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 0.2s var(--ease);
  --t-base: 0.3s var(--ease);
  --t-slow: 0.5s var(--ease);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--c-red); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-red-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.625rem); }
h4 { font-size: 1.125rem; }

p { color: var(--c-text-muted); }

ul, ol { padding-left: 1.25rem; }
li { color: var(--c-text-muted); margin-bottom: 0.35rem; }

::selection { background: var(--c-red); color: #fff; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: var(--s-9) 0; }
.section--sm { padding: var(--s-8) 0; }
.section--alt { background: var(--c-bg-alt); }
.section--section { background: var(--c-bg-section); }
.section--dark { background: var(--c-bg-dark); color: var(--c-text-inverse); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,0.75); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: var(--s-3);
}

.section-head { max-width: 720px; margin-bottom: var(--s-7); }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { margin-top: var(--s-4); font-size: 1.0625rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--c-red); color: #fff; border-color: var(--c-red); }
.btn--primary:hover { background: var(--c-red-dark); border-color: var(--c-red-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(200,16,46,0.28); }
.btn--dark { background: var(--c-text); color: #fff; border-color: var(--c-text); }
.btn--dark:hover { background: #000; color: #fff; transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn--outline { background: transparent; color: var(--c-text); border-color: var(--c-border-strong); }
.btn--outline:hover { background: var(--c-text); color: #fff; border-color: var(--c-text); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn--ghost-light:hover { background: #fff; color: var(--c-text); border-color: #fff; }
.btn--sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn--lg { padding: 1.125rem 2.25rem; font-size: 1rem; }

/* ---------- Navigation ---------- */
.nav-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border-subtle);
  transition: box-shadow var(--t-base);
}
.nav-wrapper.scrolled { box-shadow: var(--sh-md); }

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--c-text);
  flex-shrink: 0;
}
.nav__logo:hover { color: var(--c-text); }

/* Brand mark — minimal IC "pin 1 corner notch" icon.
   The span is a flex container; the inline SVG scales to fill it. */
.nav__logo-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 10px rgba(10,22,40,0.18));
  transition: transform var(--t-base);
}
.nav__logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.nav__logo:hover .nav__logo-mark { transform: translateY(-1px); }

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav__logo-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
.nav__logo-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--c-text-subtle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-text);
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.nav__link:hover,
.nav__link--active { color: var(--c-red); background: var(--c-red-soft); }

.nav__link .arrow {
  font-size: 0.7rem;
  transition: transform var(--t-fast);
  opacity: 0.7;
}
.nav__item:hover .nav__link .arrow,
.nav__item.mobile-open .nav__link .arrow { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: var(--s-3);
  opacity: 0;
  pointer-events: none;
  transition: all var(--t-base);
  z-index: 120;
}
/* Decorative triangle pointing at the parent nav link */
.nav__dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #fff;
  border-top: 1px solid var(--c-border);
  border-left: 1px solid var(--c-border);
  z-index: 1;
}
/* Invisible hover bridge — keeps the dropdown open when the cursor
   crosses the gap between the nav link and the dropdown card. Spans
   the full dropdown width AND extends slightly into the nav link, so
   the user never loses :hover while moving diagonally. */
.nav__dropdown::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -16px;
  right: -16px;
  height: 22px;
  background: transparent;
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text);
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.nav__dropdown a:hover {
  background: var(--c-red-soft);
  color: var(--c-red);
  padding-left: 1.25rem;
}
.nav__dropdown a small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--c-text-subtle);
  margin-top: 2px;
}

.nav__cta { display: flex; align-items: center; gap: var(--s-4); flex-shrink: 0; }
.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-text);
}
.nav__phone:hover { color: var(--c-red); }
.nav__phone-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-red-soft);
  color: var(--c-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all var(--t-base);
}
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--s-9) 0 var(--s-8);
  background:
    radial-gradient(ellipse 1000px 600px at 80% 0%, rgba(11,95,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 900px 500px at 10% 100%, rgba(200,16,46,0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--c-bg-alt) 0%, #ffffff 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10,22,40,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,22,40,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-8);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero__title {
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  line-height: 1.05;
  margin-bottom: var(--s-5);
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--c-red) 0%, var(--c-red-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  font-size: 1.1875rem;
  color: var(--c-text-muted);
  max-width: 560px;
  margin-bottom: var(--s-6);
  line-height: 1.6;
}
.hero__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-border);
  flex-wrap: wrap;
}
.hero__trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__trust-num {
  font-family: var(--font-head);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1;
}
.hero__trust-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--c-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  background: linear-gradient(135deg, #0a1628 0%, #162240 100%);
}
.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__visual-badge {
  position: absolute;
  bottom: var(--s-5);
  left: var(--s-5);
  right: var(--s-5);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  box-shadow: var(--sh-md);
}
.hero__visual-badge-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-red);
  line-height: 1;
}
.hero__visual-badge-txt {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  line-height: 1.4;
}
.hero__visual-badge-txt strong { color: var(--c-text); display: block; font-weight: 600; }

/* ---------- Page Header (sub-pages) ---------- */
.page-header {
  padding: var(--s-8) 0 var(--s-7);
  background:
    radial-gradient(ellipse 800px 400px at 70% 0%, rgba(11,95,255,0.07) 0%, transparent 60%),
    linear-gradient(180deg, var(--c-bg-alt) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--c-border-subtle);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,22,40,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,22,40,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 30%, transparent 100%);
  pointer-events: none;
}
.page-header__content { position: relative; z-index: 2; max-width: 820px; }
.page-header h1 { margin-bottom: var(--s-4); }
.page-header p { font-size: 1.125rem; max-width: 680px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--c-text-subtle);
  margin-bottom: var(--s-5);
}
.breadcrumb a { color: var(--c-text-muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--c-red); }
.breadcrumb span.sep { color: var(--c-border-strong); }
.breadcrumb .current { color: var(--c-text); font-weight: 500; }

/* ---------- Stats band ---------- */
.stats {
  padding: var(--s-7) 0;
  background: var(--c-bg-dark);
  color: #fff;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: var(--s-2);
  background: linear-gradient(90deg, #fff 0%, #9cb5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ---------- Split section (image + content) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: var(--sh-lg);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(11,95,255,0.1) 100%);
  pointer-events: none;
}
.split__content p { margin-bottom: var(--s-4); font-size: 1.0625rem; }
.split__list {
  list-style: none;
  padding: 0;
  margin: var(--s-5) 0;
}
.split__list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--s-3);
  color: var(--c-text-muted);
  font-size: 0.9875rem;
}
.split__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.45rem;
  width: 18px; height: 18px;
  background: var(--c-red);
  border-radius: 50%;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2l-3.5-3.5-1.4 1.4L9 19 20 8l-1.4-1.4z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2l-3.5-3.5-1.4 1.4L9 19 20 8l-1.4-1.4z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
}

/* ---------- Capability / Card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-5);
}
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--t-base);
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--c-border-strong);
  box-shadow: var(--sh-hover);
}
.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-bg-alt);
  position: relative;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.card:hover .card__media img { transform: scale(1.05); }
.card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,22,40,0.15) 100%);
}
.card__body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card__title {
  font-size: 1.1875rem;
  margin-bottom: var(--s-3);
  letter-spacing: -0.015em;
}
.card__desc {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  flex: 1;
  margin-bottom: var(--s-4);
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-red);
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-border-subtle);
  margin-top: auto;
}
.card__link::after {
  content: '→';
  transition: transform var(--t-fast);
}
.card__link:hover::after { transform: translateX(4px); }

/* ---------- Feature tiles (icon + title) ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5);
}
.tile {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: all var(--t-base);
}
.tile:hover {
  border-color: var(--c-red);
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}
.tile__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--c-red-soft);
  color: var(--c-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-5);
  font-size: 1.5rem;
}
.tile__icon svg { width: 28px; height: 28px; stroke: var(--c-red); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tile__title { font-size: 1.1875rem; margin-bottom: var(--s-3); }
.tile__desc { font-size: 0.9375rem; color: var(--c-text-muted); }

/* ---------- Process steps ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-4);
  position: relative;
}
.process::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--c-red) 0%, var(--c-red-dark) 100%);
  opacity: 0.2;
  z-index: 0;
}
.process__step { text-align: center; position: relative; z-index: 1; }
.process__num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--c-red);
  color: var(--c-red);
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s-4);
  box-shadow: 0 6px 20px rgba(200,16,46,0.15);
  transition: all var(--t-base);
}
.process__step:hover .process__num {
  background: var(--c-red);
  color: #fff;
  transform: scale(1.08);
}
.process__title { font-size: 1rem; font-weight: 600; margin-bottom: var(--s-2); }
.process__desc { font-size: 0.8125rem; color: var(--c-text-muted); }

/* ---------- Service / Product list items ---------- */
.list-block {
  display: grid;
  gap: var(--s-4);
}
.list-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: var(--s-5);
  align-items: center;
  transition: all var(--t-base);
}
.list-item:hover {
  border-color: var(--c-border-strong);
  box-shadow: var(--sh-md);
  transform: translateX(4px);
}
.list-item__media {
  width: 110px;
  height: 90px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-bg-alt);
}
.list-item__media img { width: 100%; height: 100%; object-fit: cover; }
.list-item__title { font-size: 1.125rem; margin-bottom: var(--s-2); }
.list-item__desc { font-size: 0.9375rem; color: var(--c-text-muted); margin: 0; }

/* ---------- Spec table ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.spec-table th, .spec-table td {
  padding: var(--s-4) var(--s-5);
  text-align: left;
  border-bottom: 1px solid var(--c-border-subtle);
}
.spec-table thead th {
  background: var(--c-bg-alt);
  font-weight: 600;
  color: var(--c-text);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table td:first-child { font-weight: 600; color: var(--c-text); width: 38%; }
.spec-table tbody tr:hover { background: var(--c-bg-alt); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--c-bg-dark);
  color: #fff;
  padding: var(--s-8) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 85% 50%, rgba(200,16,46,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 500px 300px at 15% 100%, rgba(11,95,255,0.18) 0%, transparent 60%);
}
.cta-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--s-6);
}
.cta-band h2 { color: #fff; margin-bottom: var(--s-3); font-size: clamp(1.75rem, 3vw, 2.25rem); }
.cta-band p { color: rgba(255,255,255,0.8); font-size: 1.0625rem; max-width: 620px; }

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--s-8);
}
.form {
  display: grid;
  gap: var(--s-4);
  background: #fff;
  border: 1px solid var(--c-border);
  padding: var(--s-7);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form__group { display: flex; flex-direction: column; gap: 0.4rem; }
.form__group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: 0.01em;
}
.form__group label .req { color: var(--c-red); }
.form__group input,
.form__group select,
.form__group textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.875rem 1rem;
  background: var(--c-bg-alt);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text);
  transition: all var(--t-fast);
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--c-red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200,16,46,0.12);
}
.form__group textarea { resize: vertical; min-height: 140px; }
.form__hint { font-size: 0.75rem; color: var(--c-text-subtle); }
.form__submit { margin-top: var(--s-2); justify-self: start; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.contact-info__card {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  padding: var(--s-5);
  border-radius: var(--r-lg);
}
.contact-info__card h3 { font-size: 1rem; margin-bottom: var(--s-3); }
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: 0.4rem 0;
  font-size: 0.9375rem;
  color: var(--c-text-muted);
}
.contact-info__item .icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--c-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--c-border);
}
.contact-info__item a { color: var(--c-text); font-weight: 500; }
.contact-info__item a:hover { color: var(--c-red); }

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-bg-alt);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer {
  background: var(--c-bg-dark);
  color: rgba(255,255,255,0.75);
  padding: var(--s-9) 0 var(--s-5);
  margin-top: 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}
.footer__brand .nav__logo-name { color: #fff; }
.footer__brand .nav__logo-tag { color: rgba(255,255,255,0.55); }
.footer__about {
  margin-top: var(--s-4);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 340px;
}
.footer__social {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all var(--t-fast);
}
.footer__social a:hover { background: var(--c-red); color: #fff; transform: translateY(-2px); }
.footer__social svg { width: 16px; height: 16px; fill: currentColor; }
.footer__heading {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--s-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
}
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: var(--s-3); }
.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--t-fast);
}
.footer__links a:hover { color: #fff; }
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}
.footer__contact-item .icon { color: var(--c-red); flex-shrink: 0; }
.footer__contact-item a { color: rgba(255,255,255,0.85); }
.footer__contact-item a:hover { color: #fff; }
.footer__bottom {
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}
.footer__bottom nav a {
  color: rgba(255,255,255,0.7);
  margin-left: var(--s-4);
}
.footer__bottom nav a:hover { color: #fff; }

/* ---------- Fade-in animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.visible { opacity: 1; transform: none; }

.stagger-children > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.stagger-children.visible > * { opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.40s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.47s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .split { grid-template-columns: 1fr; gap: var(--s-6); }
  .split--reverse .split__media { order: 0; }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(5, 1fr); gap: var(--s-3); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .cta-band__inner { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 768px) {
  :root { --nav-h: 72px; }

  .nav-wrapper {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }

  .nav { padding: 0 var(--s-4); }
  .nav__logo-text { display: none; }
  .nav__cta .nav__phone { display: none; }
  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: var(--s-5);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--t-base);
    border-top: 1px solid var(--c-border-subtle);
  }
  .nav__menu.active { transform: none; }
  .nav__item { width: 100%; border-bottom: 1px solid var(--c-border-subtle); }
  .nav__link { padding: var(--s-4); border-radius: 0; font-size: 1rem; width: 100%; justify-content: space-between; }
  .nav__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: none;
    display: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 var(--s-3) var(--s-4);
    min-width: 0;
  }
  .nav__dropdown::before { display: none; }
  .nav__item.mobile-open .nav__dropdown {
    display: block;
    pointer-events: auto;
    transform: none;
  }
  .nav__item:hover .nav__dropdown { display: none; pointer-events: none; }
  .nav__item.mobile-open:hover .nav__dropdown { display: block; pointer-events: auto; }

  .hero { padding: var(--s-7) 0 var(--s-7); }
  .hero__title { font-size: 2.25rem; }
  .hero__subtitle { font-size: 1.0625rem; }
  .hero__trust { gap: var(--s-4); }
  .hero__trust-num { font-size: 1.35rem; }
  .hero__visual { aspect-ratio: 4 / 3; }

  .section { padding: var(--s-8) 0; }

  .card-grid--3, .card-grid--2 { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }

  .process { grid-template-columns: 1fr; gap: var(--s-4); }
  .process::before { display: none; }

  .list-item { grid-template-columns: 1fr; }
  .list-item__media { width: 100%; height: 180px; }

  .footer__grid { grid-template-columns: 1fr; gap: var(--s-6); }

  .form__row { grid-template-columns: 1fr; }
  .form { padding: var(--s-5); }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__trust { gap: var(--s-3); }
}

/* ---------- Accessibility & reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in, .stagger-children > * { opacity: 1; transform: none; }
}

:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Print ---------- */
@media print {
  .nav-wrapper, .footer, .cta-band, .nav__toggle { display: none; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}


/* ── WordPress theme extras ─────────────────────────────────────────── */

/* Form notices (contact page) */
.form-notice {
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  margin-bottom: var(--s-6);
  font-size: 0.95rem;
  line-height: 1.5;
}
.form-notice--success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}
.form-notice--error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* Prose (rich-text content from the editor) */
.prose h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 1.5em 0 0.5em; }
.prose h3 { font-size: clamp(1.1rem, 2vw, 1.3rem);  margin: 1.25em 0 0.4em; }
.prose p  { margin-bottom: 1em; line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.5em; margin-bottom: 1em; }
.prose li { margin-bottom: .35em; line-height: 1.6; }
.prose a  { color: var(--c-red); text-decoration: underline; }
.prose a:hover { color: var(--c-red-dark); }

/* Prose page (no sidebar, centred) */
.prose-page { max-width: 780px; margin: 0 auto; }

/* WordPress post-thumbnail inside split layout */
.split__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }
