/* =============================================================
   SEMMS — Glassmorphism Modern (adaptado industrial/corporativo)
   Archetype 04 adaptado: mesh gradient + glass cards + floating
   visual + magnetic CTAs + animated underline nav.
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #eef2f6;
  --bg-2:      #ffffff;
  --bg-soft:   #f5f7fa;
  --ink:       #12181f;
  --ink-soft:  #38424c;
  --ink-mute:  #667080;

  --accent:      #b1010b;
  --accent-dark: #870109;
  --accent-ink:  #ffffff;
  --steel:       #1e7fc6;
  --steel-soft:  #4a9bd6;
  --steel-dark:  #135f97;

  --line:      rgba(18,24,31,0.10);
  --line-soft: rgba(18,24,31,0.06);

  --glass-bg:     rgba(255,255,255,0.58);
  --glass-bg-sm:  rgba(255,255,255,0.7);
  --glass-border: rgba(255,255,255,0.65);
  --glass-shadow: 0 20px 50px rgba(18,45,74,0.10), 0 4px 14px rgba(18,45,74,0.06);

  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 28px;

  --display: "Archivo", "Arial Narrow", sans-serif;
  --sans:    "Inter", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", "Courier New", monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; overflow-x: clip; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  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; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.015em; font-family: var(--display); font-weight: 800; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.mono { font-family: var(--mono); letter-spacing: 0.01em; }

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

.kicker {
  display: flex; align-items: center; gap: .55rem;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--steel-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}
.kicker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(177,1,11,0.14);
  flex: none;
}

.container { max-width: 1280px; margin-inline: auto; padding-inline: 1.6rem; }

/* --- Glass surface (shared) --- */
.glass {
  background: var(--glass-bg-sm);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}
@supports (backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px)) {
  .glass {
    background: var(--glass-bg);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
  }
}

/* =============================================================
   4. Typography
   ============================================================= */
.section-head { max-width: 900px; margin: 0 auto 3rem; padding: 0 1.6rem; text-align: left; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: .5rem; }
.section-lede { color: var(--ink-mute); max-width: 60ch; font-size: 1.05rem; margin-top: .7rem; }
.lede { font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 1rem; }
.block-num { color: var(--accent); font-size: .85rem; margin-bottom: .7rem; letter-spacing: .04em; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.6rem;
  font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(18,24,31,0.08), 0 1px 3px rgba(18,24,31,0.05);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft),
              background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(18,24,31,0.16), 0 8px 18px rgba(30,127,198,0.14); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-small { padding: .58rem 1.1rem; font-size: .85rem; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--steel); color: var(--steel-dark); }
.btn-invert { background: var(--accent); color: #fff; }
.btn-invert:hover { background: var(--accent-dark); }

/* Magnetic wrapper (see 1.2 effect) */
.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform;
  transition: transform .8s var(--ease-soft);
}

/* =============================================================
   6. Sections
   ============================================================= */
section { padding: 5.5rem 0; position: relative; }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(238,242,246,0.72);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .35s var(--ease-out), background-color .35s var(--ease-out);
}
@supports (backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px)) {
  .site-header { backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(18,45,74,0.08); }
.site-header-inner {
  max-width: 1280px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.6rem;
  gap: 1.5rem;
}
.brand-mark { display: flex; align-items: center; }
.brand-mark img { height: 80px; width: auto; max-width: none; }

/* --- Logo badge (reusable brand mark, restyled per section so it reads as
     part of that section rather than one repeated sticker) --- */
.logo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 16px;
  padding: .55rem .8rem;
  box-shadow: 0 14px 30px rgba(18,45,74,0.14), 0 2px 8px rgba(18,45,74,0.06);
  flex: none;
  position: relative;
}
.logo-badge img { display: block; height: 30px; width: auto; }

/* Hero: floating rotated "seal" with a two-tone accent stripe on top */
.logo-badge-seal { padding: .65rem .95rem .55rem; }
.logo-badge-seal img { height: 34px; }
.logo-badge-seal::before {
  content: ""; position: absolute; top: 0; left: 16%; right: 16%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--steel));
  border-radius: 0 0 3px 3px;
}

/* About: static credential plaque, steel accent edge, no rotation */
.logo-badge-plate {
  border-radius: 4px 14px 14px 4px;
  border-left: 4px solid var(--steel);
  box-shadow: 0 10px 26px rgba(18,45,74,0.10);
  padding: .95rem 1.35rem .95rem 1.05rem;
}
.logo-badge-plate img { height: 44px; }

/* Service modal: quiet minimal chip, no shadow, thin hairline border */
.logo-badge-chip {
  box-shadow: none;
  border: 1px solid var(--line-soft);
  padding: .3rem .55rem;
  border-radius: 10px;
}
.logo-badge-chip img { height: 18px; }

/* Assistant widget: small rounded-square avatar with a steel ring */
.logo-badge-avatar {
  padding: .3rem; border-radius: 11px;
  box-shadow: 0 0 0 2px rgba(30,127,198,0.35), 0 6px 14px rgba(18,45,74,0.12);
}
.logo-badge-avatar img { height: 22px; }

.main-nav { display: flex; gap: 1.7rem; margin-inline: auto; }
.main-nav a {
  font-size: .92rem; font-weight: 600; position: relative; padding-bottom: 4px; color: var(--ink-soft);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent); border-radius: 2px; transition: right .3s var(--ease-out);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { right: 0; }
.header-cta { padding: .62rem 1.15rem; font-size: .85rem; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; padding: .4rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-nav { display: none; flex-direction: column; padding: 1rem 1.6rem 1.5rem; border-top: 1px solid var(--line-soft); gap: .9rem; }
.mobile-nav a { font-size: 1rem; font-weight: 600; }
.mobile-nav.is-open { display: flex; }

/* --- Hero --- */
.hero {
  padding-top: 4rem; padding-bottom: 0;
  overflow: clip;
  isolation: isolate;
}
.hero-mesh {
  position: absolute; inset: -10% -10% -10% -10%; z-index: -2;
  background:
    radial-gradient(38% 32% at var(--mx, 22%) var(--my, 28%), rgba(177,1,11,0.16), transparent 62%),
    radial-gradient(42% 38% at calc(100% - var(--mx, 22%)) calc(100% - var(--my, 28%)), rgba(30,127,198,0.20), transparent 65%),
    radial-gradient(60% 50% at 50% 0%, rgba(30,127,198,0.10), transparent 70%);
  filter: blur(60px) saturate(130%);
  animation: meshDrift 26s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.15) rotate(6deg); }
}
.hero-blueprint {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent);
  opacity: .7;
}
.hero-inner {
  max-width: 1280px; margin-inline: auto; padding-inline: 1.6rem;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem;
  align-items: center;
  padding-top: 2.5rem; padding-bottom: 4rem;
}
.hero-title {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.08;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { color: var(--ink-mute); font-size: 1.1rem; max-width: 46ch; margin-top: 1.3rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft);
  font-size: .9rem; color: var(--ink-mute);
}
.hero-trust strong { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.hero-trust-sep { color: var(--accent); }

.hero-visual { position: relative; width: min(420px, 100%); margin-inline: auto; }
.hero-visual-panel {
  position: relative;
  aspect-ratio: 564 / 416;
  border-radius: var(--radius-lg);
  background: #cfe6f8;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
@supports (backdrop-filter: blur(20px)) {
  .hero-visual-panel { backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); }
}
.hero-visual-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero-visual-map {
  position: relative; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero-visual-label {
  position: absolute; bottom: 10%; left: 0; right: 0; text-align: center;
  font-size: .68rem; letter-spacing: .1em; color: var(--steel-dark);
  opacity: .75;
}
.hero-visual-badge {
  position: absolute; display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1.1rem;
  box-shadow: var(--glass-shadow);
  font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  animation: badgeFloat 5s ease-in-out infinite;
  z-index: 2;
}
.hero-visual-badge-1 { left: -8%; bottom: -6%; animation-delay: 0s; }
.hero-visual-badge-2 { right: -6%; top: -6%; animation-delay: 1.2s; }
.hero-visual-seal {
  position: absolute; left: 2%; top: -10%;
  transform: rotate(-7deg);
  z-index: 3;
  animation: sealFloat 6s ease-in-out infinite;
}
@keyframes sealFloat {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50%      { transform: rotate(-7deg) translateY(-7px); }
}
.hero-visual-badge-num { font-size: 1.1rem; font-weight: 700; color: var(--accent); }
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.ticker {
  margin-top: 3.5rem;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  background: var(--bg-2);
}
.ticker-track {
  display: flex; white-space: nowrap; gap: .9rem;
  padding: .85rem 0;
  animation: tickerScroll 32s linear infinite;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--steel-dark);
  letter-spacing: .07em;
}
.ticker-track span { flex: none; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Services --- */
.services { background: var(--bg); }
.services-grid {
  max-width: 1280px; margin: 0 auto; padding: 0 1.6rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem;
}
.service-card {
  padding: 1.9rem; cursor: pointer;
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--glass-shadow); }
.service-card:focus-visible { outline: 2px solid var(--steel); outline-offset: -2px; }
.service-card-icon { color: var(--steel); margin-bottom: 1rem; }
.service-card h3 { font-size: 1.14rem; margin-bottom: .55rem; }
.service-card p { color: var(--ink-mute); font-size: .95rem; }
.service-cta {
  margin-top: 1rem; font-size: .84rem; font-weight: 700;
  color: var(--accent); display: flex; align-items: center; gap: .35rem;
}
.service-card:hover .service-cta svg { transform: translateX(3px); }
.service-cta svg { transition: transform .25s var(--ease-out); }

/* --- Why us --- */
.why { background: var(--bg-soft); }
.why-grid {
  max-width: 1280px; margin: 0 auto; padding: 0 1.6rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
.why-card { padding: 1.9rem; transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft); }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--glass-shadow); }
.why-card-icon {
  color: var(--accent); margin-bottom: 1.1rem;
  padding: .6rem; border-radius: 12px;
  background: rgba(177,1,11,0.08);
}
.why-card h3 { font-size: 1.04rem; margin-bottom: .55rem; }
.why-card p { color: var(--ink-mute); font-size: .92rem; }

/* --- Catalog --- */
.catalog { background: var(--bg); }
.catalog-grid {
  max-width: 1280px; margin: 0 auto; padding: 0 1.6rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
.product-card { display: flex; flex-direction: column; gap: .9rem; padding: 1.3rem; transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--glass-shadow); }

/* Per-card photo carousel: rotates its own slides only, other cards unaffected */
.product-photo-carousel { position: relative; }
.product-photo-viewport { aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; touch-action: pan-y; }
.product-photo-track { display: flex; height: 100%; transition: transform .5s var(--ease-soft); }
.product-photo-slide {
  flex: 0 0 100%; max-width: 100%; height: 100%; box-sizing: border-box;
  background: linear-gradient(155deg, rgba(30,127,198,0.10), rgba(177,1,11,0.08));
  border: 1px dashed var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  text-align: center;
  color: var(--steel-dark);
  font-size: .78rem;
  padding: 1rem;
}
.product-photo-slide span { color: var(--ink-mute); font-size: .76rem; }
.product-photo-slide.has-photo { border: none; background: none; padding: 0; cursor: zoom-in; position: relative; }
.product-photo-slide.has-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.product-photo-slide.has-photo::after {
  content: "⤢"; position: absolute; top: .5rem; right: .5rem;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(18,24,31,0.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; pointer-events: none;
  opacity: 0; transition: opacity .25s var(--ease-out);
}
.product-photo-carousel:hover .product-photo-slide.has-photo::after { opacity: 1; }

.product-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); cursor: pointer; z-index: 2; padding: 0;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.product-carousel-btn:hover { background: var(--ink); color: #fff; }
.product-carousel-btn.prev { left: .4rem; }
.product-carousel-btn.prev svg { transform: scaleX(-1); }
.product-carousel-btn.next { right: .4rem; }

.product-carousel-dots {
  position: absolute; bottom: .55rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: .35rem; z-index: 2;
}
.product-carousel-dot {
  width: 6px; height: 6px; border-radius: 50%; padding: 0; border: 1px solid rgba(18,24,31,0.2);
  background: rgba(255,255,255,.75); cursor: pointer;
  transition: background-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.product-carousel-dot.is-active { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }

.product-card h3 { font-size: 1.05rem; }
.product-spec { color: var(--ink-mute); font-size: .9rem; }

/* --- Process --- */
.process { background: var(--bg-soft); }
.process-list {
  max-width: 1280px; margin: 0 auto; padding: 0 1.6rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
  counter-reset: none;
}
.process-step { padding: 1.9rem; position: relative; }
.process-step:not(:last-child)::after {
  content: ""; position: absolute; top: 2.6rem; right: -1.4rem; width: 1.2rem; height: 1px;
  background: var(--line); display: none;
}
.process-num { display: block; font-size: 1.5rem; color: var(--steel); font-weight: 600; margin-bottom: .8rem; }
.process-step h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.process-step p { color: var(--ink-mute); font-size: .92rem; }

/* --- Testimonials --- */
.testimonials { background: var(--bg); }
.testimonials-grid {
  max-width: 1280px; margin: 0 auto; padding: 0 1.6rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
.testimonial-card { padding: 1.9rem; display: flex; flex-direction: column; gap: 1.3rem; transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft); }
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--glass-shadow); }
.testimonial-card blockquote { font-size: .98rem; color: var(--ink-soft); line-height: 1.55; }
.testimonial-card figcaption { display: flex; flex-direction: column; gap: .15rem; }
.testimonial-author { font-weight: 700; font-size: .92rem; }
.testimonial-role { font-size: .82rem; color: var(--ink-mute); }
.testimonials-note { text-align: center; color: var(--ink-mute); font-size: .82rem; margin-top: 2rem; }

/* --- About --- */
.about { background: var(--bg-soft); }

.founders-grid {
  max-width: 1280px; margin: 0 auto 3.4rem; padding: 0 1.6rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem;
}
.founder-card { padding: 1.4rem; }
.founder-photo { aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow: hidden; margin: 0 auto 1.1rem; max-width: 260px; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-years { color: var(--accent); font-size: .8rem; letter-spacing: .04em; margin-bottom: .4rem; }
.founder-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.founder-card p:not(.founder-years) { color: var(--ink-mute); font-size: .92rem; }

.brand-highlight { color: var(--accent); font-weight: 700; }

.about-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.6rem;
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start;
}
.about-stats { display: flex; flex-direction: column; gap: 2rem; position: sticky; top: 6rem; }
.about-seal { align-self: flex-start; margin-bottom: .4rem; }
.stat-number { display: block; font-family: var(--display); font-weight: 800; font-size: 3.2rem; color: var(--accent); line-height: 1; }
.stat-label { display: block; color: var(--ink-mute); font-size: .9rem; margin-top: .5rem; max-width: 18ch; }
.about-text .lede { max-width: 62ch; }
.about-text p:not(.lede) { color: var(--ink-soft); max-width: 62ch; margin-bottom: 1.6rem; }
.pillars { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pillar { padding: 1.5rem; }
.pillar h3 { font-size: 1.0rem; margin-bottom: .5rem; }
.pillar p { color: var(--ink-mute); font-size: .9rem; }

/* --- FAQ --- */
.faq { background: var(--bg); }
.faq-list { max-width: 860px; margin: 0 auto; padding: 0 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.5rem; font-weight: 700; font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-chevron { color: var(--steel); flex: none; transition: transform .3s var(--ease-out); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { padding: 0 1.5rem 1.4rem; color: var(--ink-mute); font-size: .95rem; max-width: 68ch; }

/* --- Contact --- */
.contact { background: var(--bg-soft); }
.contact-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.6rem;
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: start;
}
.contact-list { margin: 1.6rem 0; display: flex; flex-direction: column; gap: .8rem; font-size: .95rem; }
.contact-list li { display: flex; gap: .8rem; align-items: center; }
.contact-list li svg { color: var(--steel); flex: none; }
.contact-list a:hover { color: var(--accent); }

.contact-form-wrap { padding: 2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: flex; flex-direction: column; gap: .4rem; }
.form-row label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.form-row input, .form-row select, .form-row textarea {
  font: inherit; padding: .78rem .95rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.7); color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--steel); outline: none;
}
.contact-form .btn { align-self: flex-start; }
.form-note { font-size: .88rem; color: var(--steel-dark); min-height: 1.2em; }
.form-note.is-error { color: var(--accent); }

/* --- Quote drawer --- */
.quote-drawer { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 200; font-family: var(--sans); }
.quote-drawer-toggle {
  color: var(--ink);
  padding: .85rem 1.4rem; font-weight: 700;
  display: flex; gap: .6rem; align-items: center;
  box-shadow: var(--glass-shadow);
}
.quote-drawer-toggle:hover { color: var(--accent); }
.quote-count { background: var(--accent); color: #fff; border-radius: 50%; width: 1.6em; height: 1.6em; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.quote-panel {
  position: absolute; right: 0; bottom: calc(100% + .8rem);
  width: min(320px, 90vw);
  padding: 1.3rem; box-shadow: var(--glass-shadow);
}
.quote-panel[hidden] { display: none; }
.quote-panel h3 { font-size: 1.05rem; margin-bottom: .8rem; }
.quote-items { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; max-height: 220px; overflow-y: auto; }
.quote-items li { display: flex; justify-content: space-between; gap: .6rem; font-size: .88rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line-soft); }
.quote-items button { color: var(--accent); font-size: .8rem; text-decoration: underline; }
.quote-actions { display: flex; flex-direction: column; gap: .6rem; }
.quote-empty { color: var(--ink-mute); font-size: .88rem; }

/* --- Footer --- */
.site-footer { background: var(--ink); color: #f0f1f2; padding: 3.5rem 0 1.6rem; }
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.6rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.footer-brand-col { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-logo { height: 108px; width: auto; margin-bottom: 1rem; }
.footer-brand-col p { color: #a9b0b8; font-size: .92rem; }
.footer-contact { text-align: right; font-size: .88rem; color: #b9bfc7; display: flex; flex-direction: column; gap: .4rem; }
.footer-bottom { max-width: 1280px; margin: 2rem auto 0; padding: 1.3rem 1.6rem 0; border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom p { font-size: .78rem; color: #8a929b; text-align: center; }

/* --- Service modal --- */
.service-modal {
  position: fixed; inset: 0; margin: auto;
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 0;
  width: min(680px, 92vw); max-height: 88vh;
  background: rgba(255,255,255,0.92); color: var(--ink);
  box-shadow: 0 30px 70px rgba(18,24,31,0.32);
  overflow: hidden;
}
@supports (backdrop-filter: blur(24px)) {
  .service-modal { backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); }
}
.service-modal::backdrop { background: rgba(14,20,26,0.55); }
.service-modal-inner { padding: 2.2rem; overflow-y: auto; max-height: 88vh; position: relative; }
.service-modal-close {
  position: absolute; top: 1.3rem; right: 1.3rem;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-2);
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.service-modal-close:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.modal-seal { margin-bottom: 1rem; }
.service-modal h2 { font-size: 1.75rem; margin: .3rem 0 .8rem; padding-right: 2.5rem; }
.service-modal-desc { color: var(--ink-mute); font-size: 1rem; max-width: 60ch; margin-bottom: 1.8rem; }

.service-modal-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem;
  margin-bottom: 1.9rem;
}
.service-modal-gallery .gallery-ph {
  aspect-ratio: 4/3; border-radius: var(--radius-sm);
  background: linear-gradient(155deg, rgba(30,127,198,0.10), rgba(177,1,11,0.08));
  border: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--ink-mute); font-size: .72rem; padding: .6rem;
}
.service-modal-gallery .gallery-photo {
  aspect-ratio: 4/3; border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--line);
  cursor: zoom-in; position: relative;
}
.service-modal-gallery .gallery-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s var(--ease-soft);
}
.service-modal-gallery .gallery-photo:hover img { transform: scale(1.06); }
.service-modal-gallery .gallery-photo::after {
  content: "⤢"; position: absolute; top: .5rem; right: .5rem;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(18,24,31,0.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; pointer-events: none;
  opacity: 0; transition: opacity .25s var(--ease-out);
}
.service-modal-gallery .gallery-photo:hover::after { opacity: 1; }

/* --- Image lightbox --- */
.img-lightbox {
  position: fixed; inset: 0; margin: auto;
  border: none; border-radius: var(--radius-lg); padding: 0;
  background: transparent; max-width: 92vw; max-height: 90vh;
  width: fit-content; height: fit-content;
  overflow: visible;
}
.img-lightbox::backdrop { background: rgba(10,14,18,0.82); }
.img-lightbox img {
  display: block; max-width: 92vw; max-height: 90vh;
  width: auto; height: auto; border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.img-lightbox-close {
  position: absolute; top: -14px; right: -14px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--glass-border); background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.img-lightbox-close:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.service-modal-products { margin-bottom: 1.8rem; }
.service-modal-products h3 { font-size: .95rem; margin-bottom: .8rem; }
.service-modal-product-list { display: flex; flex-direction: column; gap: .6rem; }
.service-modal-product-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.5);
}
.service-modal-product-item .p-name { font-weight: 700; font-size: .92rem; }
.service-modal-product-item .p-spec { color: var(--ink-mute); font-size: .82rem; }

.service-modal-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 719px) {
  .service-modal-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* --- AI Assistant widget --- */
.ai-assistant { position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 210; font-family: var(--sans); }
.assistant-toggle {
  display: flex; align-items: center; gap: .6rem;
  color: var(--ink);
  padding: .85rem 1.4rem; font-weight: 700;
  box-shadow: var(--glass-shadow);
  transition: color .2s var(--ease-out);
}
.assistant-toggle:hover { color: var(--steel-dark); }

.assistant-panel {
  position: absolute; left: 0; bottom: calc(100% + .8rem);
  width: min(360px, 92vw);
  max-height: min(560px, 75vh);
  display: flex; flex-direction: column;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}
.assistant-panel[hidden] { display: none; }
.assistant-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem;
  padding: 1.1rem 1.2rem; background: var(--ink); color: #fff;
}
.assistant-header-brand { display: flex; align-items: center; gap: .7rem; }
.assistant-title { font-weight: 700; font-size: 1rem; }
.assistant-sub { font-size: .78rem; color: #b9bfc7; margin-top: .15rem; }
.assistant-close { color: #fff; font-size: 1rem; line-height: 1; padding: .2rem; }
.assistant-close:hover { color: var(--steel-soft); }

.assistant-messages {
  flex: 1; overflow-y: auto; padding: 1rem 1rem .4rem;
  display: flex; flex-direction: column; gap: .7rem;
  min-height: 180px;
}
.assistant-msg { display: flex; }
.assistant-msg-bubble {
  max-width: 84%; padding: .65rem .9rem; font-size: .88rem; line-height: 1.45;
  border-radius: 14px; border: 1px solid var(--line-soft);
}
.assistant-msg-bubble a { color: var(--steel-dark); text-decoration: underline; }
.assistant-msg.is-bot { justify-content: flex-start; }
.assistant-msg.is-bot .assistant-msg-bubble { background: rgba(255,255,255,0.75); border-color: var(--line-soft); color: var(--ink); }
.assistant-msg.is-user { justify-content: flex-end; }
.assistant-msg.is-user .assistant-msg-bubble { background: var(--ink); border-color: var(--ink); color: #fff; }
.assistant-typing .assistant-msg-bubble { color: var(--ink-mute); font-style: italic; }

.assistant-quick {
  display: flex; flex-wrap: wrap; gap: .5rem;
  padding: .3rem 1rem .9rem;
  border-top: 1px solid var(--line-soft);
}
.assistant-quick button {
  font-size: .78rem; padding: .45rem .8rem;
  border: 1px solid var(--line); border-radius: 20px;
  color: var(--ink-soft); background: rgba(255,255,255,0.5);
}
.assistant-quick button:hover { border-color: var(--steel); color: var(--steel-dark); }

.assistant-input-row { display: flex; gap: .5rem; padding: .9rem 1rem; border-top: 1px solid var(--line-soft); }
.assistant-input-row input {
  flex: 1; font: inherit; font-size: .88rem;
  padding: .65rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.75); color: var(--ink);
}
.assistant-input-row input:focus { border-color: var(--steel); outline: none; }
.assistant-disclaimer { font-size: .72rem; color: var(--ink-mute); text-align: center; padding: 0 1rem .9rem; }

@media (max-width: 719px) {
  .ai-assistant { left: .8rem; bottom: .8rem; }
  .quote-drawer { right: .8rem; bottom: .8rem; }
}

/* =============================================================
   7. Effects (reveal on scroll — functional, not gated)
   ============================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive (mobile-first)
   ============================================================= */
@media (max-width: 1023px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(1, 1fr); }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .about-stats { position: static; flex-direction: row; gap: 2.5rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-title { max-width: none; }
}

@media (max-width: 719px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .brand-mark img { height: 56px; }
  .hero-visual-seal { top: -7%; padding: .4rem .6rem; }
  .hero-visual-seal img { height: 22px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .product-carousel-btn { display: none; }
  .process-list { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .founders-grid { grid-template-columns: 1fr; }
  .founder-photo { max-width: none; }
  .about-stats { flex-direction: column; gap: 1.5rem; }
  .footer-contact { text-align: left; }
  .footer-inner { flex-direction: column; }
  section { padding: 3.6rem 0; }
  .hero-visual-badge { font-size: .78rem; padding: .7rem .9rem; }
}

/* =============================================================
   9. Reduced-motion — only the intrusive continuous marquee
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  [data-reveal] { transition-duration: .01s; }
}
