/* ============================================================
   SM Chemical — Global Stylesheet
   Brand palette derived from the SM Chemical logo
   Teal/Cyan monogram + Gray wordmark on white
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Brand */
  --brand:        #0fb0a3;
  --brand-2:      #19c9b9;
  --brand-3:      #5fe0d4;
  --brand-d:      #0a7d74;
  --brand-dd:     #075a54;

  /* Neutrals */
  --ink:          #10211f;   /* headings */
  --body:         #46555b;   /* paragraph text */
  --muted:        #5e6c73;   /* secondary text — AA on white (5.1:1) & bg-soft (4.8:1) */
  --line:         #e7eef0;   /* borders */
  --bg:           #ffffff;
  --bg-soft:      #f3faf9;   /* light teal tint */
  --bg-soft-2:    #eef6f6;
  --bg-dark:      #0a1a1d;   /* footer / dark sections */
  --bg-dark-2:    #0f262a;

  /* Effects */
  --grad:         linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 55%, var(--brand-3) 100%);
  --grad-soft:    linear-gradient(135deg, #e8fbf8 0%, #f4fbfa 100%);
  --shadow-sm:    0 4px 14px rgba(15, 41, 38, .06);
  --shadow:       0 18px 40px -18px rgba(10, 80, 74, .28);
  --shadow-lg:    0 40px 80px -28px rgba(10, 80, 74, .42);
  --glow:         0 0 0 1px rgba(15,176,163,.18), 0 16px 40px -12px rgba(15,176,163,.45);

  /* Geometry */
  --radius:       20px;
  --radius-sm:    14px;
  --radius-lg:    28px;
  --container:    1200px;
  --nav-h:        76px;

  /* Type */
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --ease: cubic-bezier(.16,.84,.44,1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

/* Inline icon system — every <svg><use/></svg> inherits stroke styling.
   (Presentation attrs on the sprite's wrapping <g> do NOT propagate through
   <use>, so we apply them here on the icon host instead.) The hidden sprite
   carries width="0" and is excluded. */
svg:not([width="0"]) {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.02em;
}

::selection { background: var(--brand-d); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: #bfe3df; border-radius: 10px; border: 3px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ---------- 3. Layout helpers ---------- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
/* Lift all page content above the fixed 3D canvas so molecules sit BEHIND
   content (the canvas is z-index:0; without this, non-positioned sections
   paint below it and the molecules overlay text). */
main { position: relative; z-index: 1; }
/* Opaque sections hide the 3D; the transparent hero reveals it. Sections are
   opaque white by default for guaranteed readability; .section--soft overrides
   (defined later, same specificity, wins by order). */
.section { position: relative; padding: clamp(64px, 9vw, 128px) 0; background: var(--bg); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: clamp(48px, 6vw, 84px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-d);
  background: #e6faf7; border: 1px solid #c8f0eb;
  padding: 7px 16px; border-radius: 100px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(15,176,163,.18); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  margin: 18px 0 16px;
}
.section-head p { font-size: 1.08rem; color: var(--muted); }

.text-grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- 4. Buttons ---------- */
.btn {
  --b: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 15px 30px; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  color: #fff; background: var(--grad);
  box-shadow: 0 14px 30px -10px rgba(15,176,163,.6);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -12px rgba(15,176,163,.7); }

.btn--ghost {
  color: var(--brand-d); background: #fff; border-color: #cdeae6;
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--glow); color: var(--brand-d); }

.btn--light { color: var(--brand-d); background: #fff; }
.btn--light:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(0,0,0,.45); }

.btn--outline-light { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }
.btn--outline-light:hover { transform: translateY(-3px); background: rgba(255,255,255,.16); border-color: #fff; }

/* ---------- 5. 3D background canvas ---------- */
#bg3d {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.2s ease;
}
#bg3d.ready { opacity: 1; }
body.inner-page #bg3d { opacity: 0; }
body.inner-page #bg3d.ready { opacity: .38; }

/* ---------- 6. Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  z-index: 100; display: flex; align-items: center;
  transition: background .4s, box-shadow .4s, height .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 8px 30px -16px rgba(10,80,74,.3);
  border-bottom-color: var(--line);
  height: 66px;
}
.nav__inner { width: min(100% - 40px, var(--container)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.nav__menu { display: flex; align-items: center; gap: 10px; }
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo img { height: 52px; width: auto; transition: height .4s; }
.nav.scrolled .nav__logo img { height: 44px; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative; font-family: var(--font-head); font-weight: 500; font-size: .96rem;
  color: var(--ink); padding: 10px 16px; border-radius: 100px;
  transition: color .25s, background .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px;
  background: var(--grad); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--brand-d); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a.active { color: var(--brand-d); }
.nav__links a.active::after { transform: scaleX(1); }

.nav__cta { margin-left: 8px; }
.nav__cta .btn { padding: 11px 22px; font-size: .92rem; }

/* Hamburger */
.nav__toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); cursor: pointer;
  position: relative; box-shadow: var(--shadow-sm);
}
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: .35s var(--ease); }
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 22px; }
.nav__toggle span:nth-child(3) { top: 28px; }
body.menu-open .nav__toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; z-index: 1;
  min-height: 100svh; display: flex; align-items: center;
  padding-top: var(--nav-h); overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(38% 52% at 22% 42%, rgba(255,255,255,.88), rgba(255,255,255,0) 72%),
    radial-gradient(60% 70% at 80% 16%, rgba(25,201,185,.16), transparent 60%),
    radial-gradient(46% 56% at 10% 92%, rgba(15,176,163,.12), transparent 60%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; width: 100%; }
.hero__copy { max-width: 620px; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin: 22px 0 22px; letter-spacing: -.03em;
}
.hero h1 .line { display: block; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--body); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__trust { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.hero__trust .t { display: flex; flex-direction: column; }
.hero__trust .t b { font-family: var(--font-head); font-size: 1.7rem; color: var(--ink); line-height: 1; }
.hero__trust .t span { font-size: .86rem; color: var(--muted); margin-top: 6px; }

/* Hero visual (glass molecule card) */
.hero__visual { position: relative; height: 520px; }
.hero__orb {
  position: absolute; inset: 0; margin: auto; width: 86%; aspect-ratio: 1; border-radius: 50%;
  background: var(--grad); filter: blur(8px); opacity: .14;
  animation: float 9s ease-in-out infinite;
}
.float-card {
  position: absolute; background: rgba(255,255,255,.72); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.8); border-radius: 18px; padding: 16px 18px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 13px;
  animation: float 6s ease-in-out infinite;
}
.float-card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: 0 0 auto; }
.float-card .ic svg { width: 22px; height: 22px; }
.float-card b { font-family: var(--font-head); color: var(--ink); font-size: .98rem; display: block; }
.float-card span { font-size: .8rem; color: var(--muted); }
.float-card.fc1 { top: 4%; left: -1%; animation-delay: -1s; }
.float-card.fc2 { top: 38%; right: 0; animation-delay: -3s; }
.float-card.fc3 { bottom: 4%; left: 12%; animation-delay: -2s; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* Hero 3D coverflow slider */
.hero3d { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero3d__stage { position: relative; width: 100%; flex: 1 1 auto; min-height: 0; perspective: 1500px; perspective-origin: 50% 48%; }
.hero3d__track { position: absolute; inset: 0; transform-style: preserve-3d; }
.hero3d__slide {
  position: absolute; top: 50%; left: 50%; margin: 0;
  height: min(86%, 396px); width: auto; aspect-ratio: 3 / 3.7;
  border-radius: 22px; overflow: hidden; background: #fff;
  box-shadow: var(--shadow-lg); cursor: pointer;
  transform: translate(-50%, -50%); opacity: 0;
  transition: transform .7s var(--ease), opacity .7s var(--ease), box-shadow .5s;
  will-change: transform, opacity; backface-visibility: hidden;
}
.hero3d__slide img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.hero3d__slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 18px 18px; text-align: left;
  background: linear-gradient(transparent, rgba(7,90,84,.94)); color: #fff;
  opacity: 0; transition: opacity .5s .15s;
}
.hero3d__slide figcaption b { font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; display: block; }
.hero3d__slide figcaption span { font-size: .82rem; opacity: .9; }
.hero3d__slide.is-active { box-shadow: var(--glow), var(--shadow-lg); }
.hero3d__slide.is-active figcaption { opacity: 1; }

.hero3d__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 30;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--brand-d); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.hero3d__nav:hover { background: var(--grad); color: #fff; transform: translateY(-50%) scale(1.08); }
.hero3d__nav--prev { left: 2px; }
.hero3d__nav--next { right: 2px; }
.hero3d__nav svg { width: 22px; height: 22px; }
.hero3d__dots { display: flex; gap: 9px; margin-top: 16px; z-index: 30; }
.hero3d__dot { width: 9px; height: 9px; border-radius: 50%; background: #c4e3de; border: none; padding: 0; cursor: pointer; transition: width .35s var(--ease), background .35s; }
.hero3d__dot.is-active { width: 26px; border-radius: 6px; background: var(--grad); }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue .mouse { width: 24px; height: 38px; border: 2px solid #bcd; border-radius: 14px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; background: var(--brand); border-radius: 4px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%,0);} 30%{opacity:1;} 100%{opacity:0; transform: translate(-50%,12px);} }

/* Inner page hero */
.page-hero {
  position: relative; z-index: 1; padding: calc(var(--nav-h) + 70px) 0 70px; overflow: hidden;
  /* semi-transparent so the subtle inner-page 3D shows through behind the heading */
  background:
    radial-gradient(50% 80% at 85% 10%, rgba(25,201,185,.14), transparent 60%),
    linear-gradient(180deg, rgba(246,252,251,.82) 0%, rgba(255,255,255,.92) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero__inner { max-width: 760px; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 18px 0 16px; }
.page-hero p { font-size: 1.12rem; color: var(--muted); max-width: 620px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: var(--muted); margin-top: 22px; }
.breadcrumb a:hover { color: var(--brand-d); }
.breadcrumb span { color: var(--brand-d); font-weight: 600; }

/* ---------- 8. Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* tilt wrapper */
.tilt { transform-style: preserve-3d; transition: transform .4s var(--ease); will-change: transform; }

/* Category card */
.cat-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  overflow: hidden;
}
.cat-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s;
}
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.cat-card:hover::before { opacity: 1; }
.cat-card__ic {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--brand-d); margin-bottom: 20px;
  transition: transform .4s var(--ease), background .4s, color .4s; transform: translateZ(30px);
}
.cat-card__ic svg { width: 28px; height: 28px; }
.cat-card:hover .cat-card__ic { background: var(--grad); color: #fff; transform: translateZ(40px) scale(1.05); }
.cat-card h3 { font-size: 1.22rem; margin-bottom: 10px; transform: translateZ(20px); }
.cat-card p { font-size: .96rem; color: var(--muted); transform: translateZ(12px); }
.cat-card__more { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--brand-d); font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
.cat-card__more svg { width: 16px; height: 16px; transition: transform .3s; }
.cat-card:hover .cat-card__more svg { transform: translateX(4px); }

/* Feature (why choose) */
.feature {
  display: flex; gap: 16px; padding: 24px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cdeae6; }
.feature__ic { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.feature__ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.04rem; margin-bottom: 4px; }
.feature p { font-size: .9rem; color: var(--muted); }

/* Product card (with image) */
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
  display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: transparent; }
.prod-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.prod-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.prod-card:hover .prod-card__media img { transform: scale(1.08); }
.prod-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7,90,84,.55)); opacity: .25; transition: opacity .4s; }
.prod-card:hover .prod-card__media::after { opacity: .5; }
.prod-card__tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-d); background: rgba(255,255,255,.92); padding: 6px 13px; border-radius: 100px;
  box-shadow: var(--shadow-sm);
}
.prod-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.prod-card__body h3 { font-size: 1.24rem; margin-bottom: 10px; }
.prod-card__body p { font-size: .95rem; color: var(--muted); flex: 1; }
.prod-card__foot { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; }
.prod-card__link { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-d); font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
.prod-card__link svg { width: 16px; height: 16px; transition: transform .3s; }
.prod-card:hover .prod-card__link svg { transform: translateX(4px); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--font-head); font-weight: 500; font-size: .86rem; color: var(--brand-d); background: #eafaf8; border: 1px solid #cdeee9; padding: 8px 16px; border-radius: 100px; }

/* ---------- 9. Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 70px); align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.split__media .badge {
  position: absolute; bottom: -22px; left: -22px; background: #fff; border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; border: 1px solid var(--line);
}
.split__media .badge .n { font-family: var(--font-head); font-size: 2rem; font-weight: 700; }
.split__media .badge small { color: var(--muted); font-size: .82rem; }
.split__copy h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin: 16px 0 18px; }
.split__copy p { margin-bottom: 16px; }
.lead-p { font-size: 1.12rem; color: var(--body); }

/* Mission / Vision */
.mv-card {
  position: relative; padding: 38px 34px; border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.mv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.mv-card--dark { background: linear-gradient(150deg, var(--bg-dark-2), var(--bg-dark)); border-color: transparent; color: #cfe6e3; }
.mv-card--dark h3, .mv-card--dark .mv-card__ic { color: #fff; }
.mv-card__ic { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 22px; }
.mv-card__ic svg { width: 28px; height: 28px; }
.mv-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.mv-card p { font-size: 1.02rem; }
.mv-card--dark p { color: #b7d4d0; }
.mv-card .ghost-no { position: absolute; right: 24px; bottom: -10px; font-family: var(--font-head); font-weight: 800; font-size: 7rem; line-height: 1; color: rgba(15,176,163,.06); }
.mv-card--dark .ghost-no { color: rgba(255,255,255,.05); }

/* Values */
.value {
  text-align: center; padding: 30px 22px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s, background .4s, border-color .4s;
}
.value:hover { transform: translateY(-8px); box-shadow: var(--shadow); background: var(--bg-dark); border-color: transparent; }
.value__ic { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand-d); transition: background .4s, color .4s; }
.value__ic svg { width: 26px; height: 26px; }
.value:hover .value__ic { background: var(--grad); color: #fff; }
.value h3 { font-size: 1.12rem; transition: color .4s; }
.value:hover h3 { color: #fff; }
.value p { font-size: .88rem; color: var(--muted); margin-top: 6px; transition: color .4s; }
.value:hover p { color: #9fc4bf; }

/* ---------- 10. Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { text-align: center; padding: 28px 18px; }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem,4vw,3.4rem); line-height: 1; }
.stat .lbl { margin-top: 10px; color: var(--muted); font-size: .94rem; }
.stat + .stat { border-left: 1px solid var(--line); }

/* ---------- 11. CTA band ---------- */
.cta {
  position: relative; z-index: 1; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--brand-d), var(--brand) 60%, var(--brand-2));
  padding: clamp(46px, 6vw, 76px); color: #fff; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); }
.cta::before { width: 320px; height: 320px; top: -120px; right: -80px; }
.cta::after { width: 240px; height: 240px; bottom: -120px; left: -60px; }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 16px; position: relative; }
.cta p { color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto 30px; position: relative; font-size: 1.08rem; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- 12. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 4vw, 56px); align-items: start; }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm); margin-bottom: 18px; display: flex; gap: 16px; align-items: flex-start;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cdeae6; }
.info-card__ic { width: 50px; height: 50px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.info-card__ic svg { width: 24px; height: 24px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.info-card p, .info-card a { font-size: .96rem; color: var(--muted); }
.info-card a:hover { color: var(--brand-d); }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--ink); margin-bottom: 8px; }
.field label .req { color: var(--brand-d); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg-soft); transition: border-color .25s, background .25s, box-shadow .25s; font-size: .98rem;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(15,176,163,.12);
}
.field.invalid input, .field.invalid textarea { border-color: #c4362e; background: #fff5f4; }
.field .err { display: none; color: #c4362e; font-size: .82rem; margin-top: 6px; }
.field.invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.form-success {
  display: none; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px;
  background: #e6faf7; border: 1px solid #bdeee8; color: var(--brand-dd); font-weight: 500; margin-bottom: 20px;
}
.form-success.show { display: flex; }
.form-success svg { width: 22px; height: 22px; color: var(--brand); flex: 0 0 auto; }

.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); height: 260px; background: var(--grad-soft); }
.map-fallback { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 20px; color: var(--brand-d); }
.map-fallback b { font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); }
.map-fallback small { color: var(--muted); font-size: .82rem; }
.map-wrap iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; filter: grayscale(.2) contrast(1.05); }

/* ---------- 13. Footer ---------- */
.footer { position: relative; z-index: 1; background: var(--bg-dark); color: #9fb6b3; padding: 72px 0 30px; overflow: hidden; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(25,201,185,.6), transparent); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer__brand img { height: 58px; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: .95; }
.footer__brand p { font-size: .94rem; max-width: 320px; color: #8aa6a2; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #cfe6e3; transition: background .3s, transform .3s, color .3s; }
.footer__social a:hover { background: var(--grad); color: #fff; transform: translateY(-3px); }
.footer__social svg { width: 19px; height: 19px; }
.footer h3 { color: #fff; font-family: var(--font-head); font-size: 1rem; font-weight: 600; margin-bottom: 18px; }
.footer__links li { margin-bottom: 11px; }
.footer__links a { font-size: .94rem; color: #9fb6b3; transition: color .25s, padding .25s; }
.footer__links a:hover { color: var(--brand-2); padding-left: 5px; }
.footer__contact li { display: flex; gap: 11px; margin-bottom: 14px; font-size: .94rem; color: #9fb6b3; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--brand-2); flex: 0 0 auto; margin-top: 3px; }
.footer__bottom { margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: #7e9794; }
.footer__bottom a:hover { color: var(--brand-2); }
.footer__credit a { color: var(--brand-2); font-weight: 500; }
.footer__credit a:hover { color: #fff; text-decoration: underline; }

/* ---------- 14. Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .40s; }
[data-reveal-delay="6"] { transition-delay: .48s; }

/* ---------- 15. Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: grid; place-items: center; transition: opacity .6s ease, visibility .6s; }
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__ring { width: 64px; height: 64px; position: relative; }
.preloader__ring svg { width: 100%; height: 100%; animation: spin 1.1s linear infinite; }
.preloader__ring circle { fill: none; stroke: var(--brand); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 130; stroke-dashoffset: 90; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 16. Back to top ---------- */
.to-top {
  position: fixed; bottom: 94px; right: 29px; z-index: 90; width: 50px; height: 50px; border-radius: 14px;
  background: var(--grad); color: #fff; border: none; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(15,176,163,.6); opacity: 0; transform: translateY(20px) scale(.9);
  transition: opacity .35s, transform .35s; pointer-events: none;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 91;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.6);
  animation: waPulse 2.4s ease-out infinite;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 20px 40px -10px rgba(37,211,102,.7); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before {
  content: "Chat on WhatsApp"; position: absolute; right: calc(100% + 14px); top: 50%;
  transform: translateY(-50%) scale(.9); transform-origin: right center;
  background: var(--bg-dark); color: #fff; padding: 8px 13px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 500; font-size: .82rem; white-space: nowrap;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.wa-float::after {
  content: ""; position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%);
  border: 6px solid transparent; border-left-color: var(--bg-dark); opacity: 0; transition: opacity .25s;
}
.wa-float:hover::before { opacity: 1; transform: translateY(-50%) scale(1); }
.wa-float:hover::after { opacity: 1; }
@keyframes waPulse {
  0%   { box-shadow: 0 14px 30px -8px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,.45); }
  70%  { box-shadow: 0 14px 30px -8px rgba(37,211,102,.6), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 14px 30px -8px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 560px) {
  .wa-float { width: 52px; height: 52px; bottom: 20px; right: 20px; }
  .wa-float svg { width: 28px; height: 28px; }
  .wa-float::before, .wa-float::after { display: none; }
  .to-top { bottom: 82px; right: 20px; }   /* stacked above WhatsApp */
}

/* ---------- 17. Responsive ---------- */

/* ===== Tablet landscape & below (<=1024) ===== */
@media (max-width: 1024px) {
  /* Section grids */
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }

  /* Hero — stack, slider on top, content centered */
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 28px); padding-bottom: 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__copy { max-width: 620px; margin-inline: auto; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__trust { justify-content: center; }
  .hero__visual { height: 420px; order: -1; width: 100%; max-width: 560px; margin-inline: auto; }
  .hero__bg {
    background:
      linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.86) 52%, rgba(255,255,255,.96) 100%),
      radial-gradient(60% 46% at 80% 10%, rgba(25,201,185,.14), transparent 60%);
  }
  .scroll-cue { display: none; }

  /* Split (intro / about) — media first, centered.
     width:100% is required: margin-inline:auto on a grid item disables stretch,
     so without an explicit width the image collapses to 0. */
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; width: 100%; max-width: 560px; margin-inline: auto; }

  /* Contact — stack info above form */
  .contact-grid { grid-template-columns: 1fr; }
}

/* ===== Tablet portrait / large phone (<=860) ===== */
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 0 0 0 auto; width: min(86%, 360px); height: 100svh;
    background: #fff; box-shadow: -20px 0 60px -20px rgba(10,80,74,.3);
    transform: translateX(100%); transition: transform .45s var(--ease);
    display: flex; flex-direction: column; padding: calc(var(--nav-h) + 20px) 28px 28px; gap: 6px; z-index: 99;
    overflow-y: auto;
  }
  body.menu-open .nav__menu { transform: none; }
  body.menu-open { overflow: hidden; }   /* lock background scroll while drawer is open */
  .nav__menu .nav__links { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__menu .nav__links a { padding: 14px 16px; border-radius: 12px; font-size: 1.05rem; }
  .nav__menu .nav__links a::after { display: none; }
  .nav__menu .nav__links a.active, .nav__menu .nav__links a:hover { background: var(--bg-soft); }
  .nav__menu .nav__cta { display: block; margin: 14px 0 0; }
  .nav__menu .nav__cta .btn { width: 100%; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(10,26,29,.4); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: .4s; z-index: 98; }
  body.menu-open .nav-backdrop { opacity: 1; visibility: visible; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ===== Large phone (<=640) ===== */
@media (max-width: 640px) {
  .grid--2 { grid-template-columns: 1fr; }            /* mission / vision stack */
  .split__media .badge { left: 0; }                  /* keep badge inside the viewport */
  .mv-card { padding: 32px 26px; }
  .mv-card .ghost-no { font-size: 5.2rem; }
  .page-hero { padding: calc(var(--nav-h) + 48px) 0 52px; }
}

/* ===== Phone (<=560) ===== */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat + .stat { border-left: none; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .form-row { grid-template-columns: 1fr; }

  .hero__visual { height: 360px; max-width: 440px; }
  .hero__trust { gap: 16px 24px; }
  .hero3d__nav { width: 42px; height: 42px; }

  .split__media .badge { bottom: -16px; padding: 16px 18px; }
  .split__media .badge .n { font-size: 1.7rem; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__social { justify-content: flex-start; }
  .footer__bottom { flex-direction: column; gap: 6px; }
  .cta { padding: 44px 22px; }
  .cta::before, .cta::after { display: none; }
}

/* ===== Small phone (<=430): full-width actions, tighter gutters ===== */
@media (max-width: 430px) {
  .container, .nav__inner { width: min(100% - 32px, var(--container)); }
  .hero h1 { font-size: clamp(2.05rem, 9.5vw, 2.7rem); }
  .hero__visual { height: 320px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { width: 100%; }
  .cta__actions { width: 100%; flex-direction: column; }
  .cta__actions .btn { width: 100%; }
  .section-head h2 { font-size: clamp(1.7rem, 7.6vw, 2.2rem); }
  .nav__logo img { height: 44px; }
  .nav.scrolled .nav__logo img { height: 40px; }
  .form-card { padding: 24px 18px; }
  .info-card { padding: 22px 20px; }
}

/* ---------- 18. Accessibility ---------- */
:focus-visible { outline: 3px solid var(--brand-d); outline-offset: 2px; border-radius: 6px; box-shadow: 0 0 0 5px rgba(255,255,255,.85); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 8px; z-index: 9999; }
.skip-link:focus { left: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
