/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  /* Brand */
  --navy:        #1A2C5E;
  --navy-dark:   #0D1839;
  --navy-mid:    #1F3470;
  --orange:      #E5560B;
  --orange-h:    #CC4D0A;
  --orange-soft: rgba(229,86,11,.12);

  /* Backgrounds */
  --bg:          #FFFFFF;
  --bg-alt:      #F4F6FA;
  --bg-dark:     #0D1839;
  --bg-dark-2:   #111E47;

  /* Text */
  --ink:         #0D1839;
  --ink-body:    #2D3748;
  --ink-mute:    #64748B;
  --on-dark:     #EEF2FF;
  --on-dark-2:   rgba(238,242,255,.65);

  /* Lines */
  --line:        rgba(26,44,94,.1);
  --line-light:  rgba(26,44,94,.06);

  /* Typography */
  --serif:       "Playfair Display", Georgia, serif;
  --sans:        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Easing */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Layout */
  --nav-h:       72px;
  --container:   1200px;
  --gutter:      clamp(1.25rem, 5vw, 2.5rem);
  --section-py:  clamp(4.5rem, 10vw, 8rem);

  /* Radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;

  /* Shadow */
  --shadow-sm:  0 2px 12px rgba(13,24,57,.08);
  --shadow-md:  0 8px 32px rgba(13,24,57,.12);
  --shadow-lg:  0 24px 64px rgba(13,24,57,.18);
}

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.025em; font-family: var(--serif); }

::selection { background: var(--navy); color: var(--on-dark); }

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

/* =============================================================
   3. UTILITIES
   ============================================================= */
.skip-link {
  position: fixed; top: -120px; left: 1rem;
  padding: .6rem 1.2rem;
  background: var(--navy); color: var(--on-dark);
  border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 500;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.section-kicker::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--orange);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  color: var(--ink);
  font-weight: 700;
  margin-bottom: .75rem;
}
.section-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--navy-mid);
}

.section-header {
  max-width: 680px;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}
.section-header .section-sub {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--ink-mute);
  max-width: 56ch;
}
.section-header--light .section-kicker,
.section-header--light .section-kicker::before { color: var(--orange); background-color: var(--orange); }
.section-header--light .section-title { color: var(--on-dark); }
.section-header--light .section-title em { color: rgba(238,242,255,.75); }
.section-header--light .section-sub { color: var(--on-dark-2); }

/* =============================================================
   4. BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .825rem 1.75rem;
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .22s var(--ease-out),
              color .22s var(--ease-out),
              border-color .22s var(--ease-out),
              transform .18s var(--ease-out),
              box-shadow .22s var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--orange);
}
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--orange-h);
    border-color: var(--orange-h);
    box-shadow: 0 6px 24px rgba(229,86,11,.35);
  }
}

.btn-ghost-light {
  background: transparent;
  color: var(--on-dark);
  border: 2px solid rgba(238,242,255,.35);
}
@media (hover: hover) {
  .btn-ghost-light:hover {
    border-color: rgba(238,242,255,.7);
    background: rgba(238,242,255,.08);
  }
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
@media (hover: hover) {
  .btn-outline:hover {
    background: var(--navy);
    color: var(--on-dark);
  }
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
  padding: .7rem 1.4rem;
  font-size: .875rem;
}
@media (hover: hover) {
  .btn-outline-navy:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: none;
  }
}

.btn-hero { padding: .9rem 2.2rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* =============================================================
   5. SCROLL REVEALS
   ============================================================= */
.reveal,
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .7s var(--ease-out),
    transform .7s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible,
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Defensive: split text elements always visible */
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   6. NAV
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background .3s var(--ease-out),
              box-shadow .3s var(--ease-out),
              backdrop-filter .3s;
}

.nav.is-scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
  background: #fff;
  padding: 5px 14px 5px 10px;
  border-radius: 6px;
}
.nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: none;
  align-items: center;
  gap: .25rem;
}

.nav-link {
  padding: .5rem .85rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--on-dark);
  border-radius: var(--r-sm);
  transition: color .2s, background .2s;
}
.nav.is-scrolled .nav-link { color: var(--ink-body); }

@media (hover: hover) {
  .nav-link:hover {
    color: var(--orange);
    background: var(--orange-soft);
  }
  .nav.is-scrolled .nav-link:hover { color: var(--orange); }
}

.nav-cta { display: none; }

.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
  border-radius: var(--r-sm);
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--on-dark);
  border-radius: 2px;
  transition: transform .25s var(--ease-out), opacity .2s;
}
.nav.is-scrolled .nav-burger span { background: var(--ink); }
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg);
  padding: 1.5rem var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(-110%);
  transition: transform .35s var(--ease-out);
  z-index: 999;
}
.nav-mobile.is-open { transform: translateY(0); }
.nav-mobile-link {
  padding: .9rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-body);
  border-bottom: 1px solid var(--line-light);
}
.nav-mobile-cta { margin-top: 1rem; text-align: center; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .nav-mobile { display: none; }
}

@media (max-width: 959px) {
  .nav:not(.is-scrolled) {
    background: rgba(1, 32, 102, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* =============================================================
   7. HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Background: gradient always visible; photo layers if file exists */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 90% 15%, rgba(229,86,11,.16) 0%, transparent 55%),
    radial-gradient(ellipse 70% 65% at 10% 95%, rgba(13,24,57,.7) 0%, transparent 65%),
    linear-gradient(150deg, #080F28 0%, #0E1840 30%, #111E4A 65%, #0A1530 100%);
  z-index: 0;
}

/* Photo overlay — silent fail if file missing */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/img/hero.jpg');
  background-size: cover;
  background-position: center top;
  mix-blend-mode: luminosity;
  opacity: .28;
}

/* Optional: swap soldador.png as hero photo using class on body */
.hero-bg.has-photo::after {
  opacity: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/img/soldador.png');
  background-size: cover;
  background-position: center;
  opacity: .22;
  mix-blend-mode: luminosity;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(8,15,40,.55) 0%,
      rgba(8,15,40,.35) 40%,
      rgba(8,15,40,.7) 100%);
  z-index: 1;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: .04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-block: clamp(4rem, 10vw, 7rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .75rem;
}
.hero-kicker::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--orange);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6.5vw, 5.25rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 16ch;
}
.hero-title em {
  font-style: italic;
  font-weight: 600;
  color: rgba(255,255,255,.82);
}

.hero-sub {
  font-size: clamp(.9375rem, 1.8vw, 1.125rem);
  color: rgba(238,242,255,.78);
  line-height: 1.7;
  max-width: 48ch;
  margin-bottom: .25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Certification badges */
.hero-certs {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-cert-badge {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.hero-cert-code {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
}
.hero-cert-desc {
  font-size: .6875rem;
  color: rgba(238,242,255,.55);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
}
.hero-cert-sep {
  width: 1px;
  height: 32px;
  background: rgba(238,242,255,.18);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, rgba(238,242,255,.5) 0%, transparent 100%);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: .5; }
  50%       { transform: scaleY(0.5); opacity: 1; }
}

/* =============================================================
   8. STATS STRIP
   ============================================================= */
.stats-strip {
  background: var(--navy);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stat-sep {
  width: 1px;
  height: 48px;
  background: rgba(238,242,255,.15);
  flex-shrink: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  text-align: center;
  min-width: 120px;
}

.stat-top {
  display: flex;
  align-items: baseline;
  gap: .1rem;
}

.stat-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.stat-suffix {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}
.stat-label {
  font-size: .8125rem;
  font-weight: 500;
  color: rgba(238,242,255,.6);
  letter-spacing: .04em;
}

@media (max-width: 719px) {
  .stat-sep { display: none; }
  .stats-grid { gap: 2rem; }
  .stat-item { min-width: calc(50% - 1rem); }
}

/* =============================================================
   9. ABOUT
   ============================================================= */
.about {
  padding-block: var(--section-py);
  background: var(--bg);
}

.about-grid {
  display: grid;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}

@media (min-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr 1.15fr;
  }
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-badge {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
  background: var(--navy);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.about-badge::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(229,86,11,.18) 0%, transparent 70%);
  pointer-events: none;
}

.about-badge-num {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  flex-shrink: 0;
}
.about-badge-num sup {
  font-size: 0.5em;
  color: var(--orange);
  vertical-align: super;
}
.about-badge-text {
  font-size: 1.0625rem;
  font-weight: 500;
  color: rgba(238,242,255,.75);
  line-height: 1.4;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-pillar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
  border-radius: var(--r-md);
  border-left: 3px solid var(--orange);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-body);
  transition: border-color .2s, background .2s;
}
@media (hover: hover) {
  .about-pillar:hover {
    border-color: var(--navy);
    background: var(--bg);
    box-shadow: var(--shadow-sm);
  }
}
.about-pillar-icon {
  width: 20px; height: 20px;
  color: var(--orange);
  flex-shrink: 0;
}
.about-pillar-icon svg { width: 100%; height: 100%; }

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about-title {
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.about-title em {
  font-style: italic;
  color: var(--navy-mid);
}
.about-text p {
  font-size: 1.0625rem;
  color: var(--ink-body);
  line-height: 1.75;
}

/* =============================================================
   10. PRODUCT LINES
   ============================================================= */
.product-lines {
  padding-block: var(--section-py);
  background: var(--bg-alt);
}

.product-block {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
}

@media (min-width: 960px) {
  .product-block {
    grid-template-columns: 1fr 1fr;
  }
  .product-block--reverse .product-block-visual { order: 2; }
  .product-block--reverse .product-block-content { order: 1; }
}

.product-block:first-of-type { border-top: none; }

.product-block-visual {
  position: relative;
}

.product-img-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy-dark);
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-soft);
}

@media (hover: hover) {
  .product-block:hover .product-img-wrap img {
    transform: scale(1.04);
  }
}

.product-certs {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.product-cert {
  display: inline-block;
  padding: .3rem .75rem;
  background: rgba(13,24,57,.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.12);
}

.product-block-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-num {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 800;
  color: var(--line);
  line-height: 1;
  display: block;
}

.product-block-content h3 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.product-block-content h3 em {
  font-style: italic;
  color: var(--navy-mid);
}

.product-block-content p {
  font-size: 1.0625rem;
  color: var(--ink-body);
  line-height: 1.75;
  max-width: 50ch;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.product-tags li {
  padding: .35rem .8rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ink-mute);
  transition: border-color .2s, color .2s;
}
@media (hover: hover) {
  .product-tags li:hover {
    border-color: var(--orange);
    color: var(--orange);
  }
}

/* =============================================================
   11. WHY ARVEX
   ============================================================= */
.why-arvex {
  padding-block: var(--section-py);
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.why-arvex::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(229,86,11,.06) 0%, transparent 65%);
  pointer-events: none;
}

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

@media (max-width: 719px) {
  .why-grid { grid-template-columns: 1fr; }
}

.why-card {
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(238,242,255,.08);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: background .3s, border-color .3s, transform .3s var(--ease-out);
}
@media (hover: hover) {
  .why-card:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(229,86,11,.25);
    transform: translateY(-3px);
  }
}

.why-icon {
  width: 48px; height: 48px;
  color: var(--orange);
  flex-shrink: 0;
}
.why-icon svg { width: 100%; height: 100%; }

.why-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 700;
  color: var(--on-dark);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.why-card p {
  font-size: .9375rem;
  color: var(--on-dark-2);
  line-height: 1.7;
}

/* =============================================================
   12. PARTNERS
   ============================================================= */
.partners {
  padding-block: var(--section-py);
  background: var(--bg);
}

.partners-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.partners-header .section-kicker {
  justify-content: center;
}
.partners-header .section-kicker::before { display: none; }

.partners-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  margin-top: .5rem;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--line-light);
  border-radius: var(--r-md);
  min-width: 140px;
  height: 80px;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease-out);
}
@media (hover: hover) {
  .partner-logo:hover {
    border-color: var(--orange);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
  }
}

.partner-logo img {
  max-height: 42px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%) opacity(.6);
  transition: filter .3s;
}
@media (hover: hover) {
  .partner-logo:hover img {
    filter: grayscale(0%) opacity(1);
  }
}

/* =============================================================
   13. CONTACT
   ============================================================= */
.contact {
  padding-block: var(--section-py);
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.08;
}
.contact-title em {
  font-style: italic;
  color: var(--navy-mid);
}

.contact-lead {
  font-size: 1.0625rem;
  color: var(--ink-body);
  line-height: 1.7;
  max-width: 46ch;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.contact-email {
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color .2s, text-decoration-color .2s;
}
@media (hover: hover) {
  .contact-email:hover {
    color: var(--orange);
    text-decoration-color: var(--orange);
  }
}

.contact-loc {
  font-size: .9rem;
  color: var(--ink-mute);
}

.contact-certs-note {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.contact-cert-tag {
  padding: .35rem .9rem;
  background: rgba(26,44,94,.08);
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .03em;
}

/* Form */
.contact-form {
  position: relative;
  background: var(--bg);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 540px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.form-group label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
}
.form-group label span { color: var(--orange); }

.form-group input,
.form-group textarea {
  font-family: var(--sans);
  font-size: .9375rem;
  color: var(--ink);
  padding: .75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ink-mute);
  opacity: .6;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,44,94,.1);
}
.form-group input.is-error,
.form-group textarea.is-error {
  border-color: #E53E3E;
  box-shadow: 0 0 0 3px rgba(229,62,62,.1);
}

.form-legal {
  font-size: .75rem;
  color: var(--ink-mute);
  text-align: center;
}

/* Submit button spinner */
.btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn[data-sending] .btn-text { display: none; }
.btn[data-sending] .btn-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Form success state */
.form-success {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
  background: var(--bg);
  border-radius: var(--r-lg);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}
.form-success[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}
.form-success-icon {
  width: 64px; height: 64px;
  color: #38A169;
}
.form-success-icon svg { width: 100%; height: 100%; }
.form-success h3 {
  font-size: 1.5rem;
  color: var(--ink);
}
.form-success p {
  color: var(--ink-mute);
  font-size: 1rem;
}

/* =============================================================
   14. FOOTER
   ============================================================= */
.footer {
  background: var(--bg-dark);
  padding-top: clamp(4rem, 8vw, 6rem);
}

.footer-inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 4rem);
  border-bottom: 1px solid rgba(238,242,255,.08);
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.footer-logo {
  height: 38px;
  width: auto;
  background: #fff;
  padding: 6px 14px;
  border-radius: 5px;
}

.footer-tagline {
  font-size: .9rem;
  color: var(--on-dark-2);
  line-height: 1.5;
  max-width: 28ch;
}
.footer-address {
  font-size: .8125rem;
  color: rgba(238,242,255,.4);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.footer-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(238,242,255,.6);
  transition: color .2s;
}
@media (hover: hover) {
  .footer-nav a:hover { color: var(--orange); }
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-contact a,
.footer-contact span {
  font-size: .9rem;
  color: rgba(238,242,255,.6);
}
.footer-contact a:hover { color: var(--orange); }

.footer-bottom {
  padding-block: 1.5rem;
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: .75rem;
  color: rgba(238,242,255,.35);
}
.footer-sector {
  text-align: right;
}

/* =============================================================
   15. ANIMATIONS / KEYFRAMES
   ============================================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero content auto-reveal (no JS dependency) */
.hero-content > * {
  animation: fadeInUp .8s var(--ease-out) both;
  animation-delay: var(--delay, 0s);
}
.hero-certs {
  animation: fadeInUp .8s var(--ease-out) both;
  animation-delay: .5s;
}

/* =============================================================
   16. RESPONSIVE
   ============================================================= */

/* ── ≥ 540px ─────────────────────────────────────────────────── */
@media (min-width: 540px) {
  .hero-certs { flex-direction: row; }
}

/* ── ≤ 959px  tablet / mobile ───────────────────────────────── */
@media (max-width: 959px) {
  .about-badge { flex-direction: column; align-items: flex-start; }
  .product-block-content p { max-width: 100%; }
  .section-header { max-width: 100%; }
}

/* ── ≤ 719px  mobile ────────────────────────────────────────── */
@media (max-width: 719px) {
  .stat-sep { display: none; }
  .stats-grid { gap: 2rem; }
  .stat-item { min-width: calc(50% - 1rem); }
  .why-grid { grid-template-columns: 1fr; }
  .partner-logo { min-width: 110px; height: 70px; padding: 1rem 1.25rem; }
  .partner-logo img { max-height: 36px; max-width: 96px; }
}

/* ── ≤ 539px  small mobile ──────────────────────────────────── */
@media (max-width: 539px) {
  /* Nav */
  .nav-logo { padding: 4px 10px 4px 8px; }
  .nav-logo img { height: 36px; }

  /* Hero */
  .hero-title { font-size: 2.125rem; }
  .hero-sub { font-size: .9375rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-certs { flex-direction: column; gap: .75rem; }
  .hero-cert-sep { display: none; }

  /* About */
  .about-badge { padding: 1.5rem; }
  .about-badge-num { font-size: 3rem; }

  /* Products */
  .product-num { font-size: 2.5rem; }
  .product-block-content h3 { font-size: 1.875rem; }
  .product-tags li { font-size: .75rem; }

  /* Why */
  .why-card { padding: 1.5rem; gap: 1rem; }
  .why-icon { width: 40px; height: 40px; }

  /* Partners */
  .partners-grid { gap: .625rem; }
  .partner-logo { min-width: 100px; height: 64px; padding: .875rem 1rem; }
  .partner-logo img { max-height: 30px; max-width: 80px; }

  /* Contact */
  .contact-title { font-size: 1.875rem; }
  .contact-form { padding: 1.5rem; }

  /* Footer */
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .footer-sector { text-align: left; }
}

/* =============================================================
   17. REDUCED MOTION — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line { animation: none; }
  .btn-spinner { animation: none; }
  /* DO NOT disable: reveals, hovers, transitions, scrolls */
}
