/* ===========================================================
   Tamin Pharma — premium glossy design system (RTL + LTR)
   Brand colors come from config/theme.php (injected as :root vars).
   Tints/glows are derived with color-mix() so the whole UI follows --primary.
   =========================================================== */

:root {
  /* fallbacks; overridden by the injected #theme-vars block */
  --primary: #0E8C7A;
  --primary-d: #0A5C54;
  --primary-l: #15B89E;
  --secondary: #1FA2C9;
  --accent: #C9A44C;
  --dark: #0A1512;
  --ink: #10201D;
  --muted: #5C6B68;
  --bg: #fff;
  --bg-alt: #F5F8F7;
  --line: #E7EDEB;
  --light: #fff;

  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --container: 1240px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --font: 'Manrope', system-ui, -apple-system, sans-serif;

  --tint: color-mix(in srgb, var(--primary) 8%, transparent);
  --tint-2: color-mix(in srgb, var(--primary) 14%, transparent);
  --glow: 0 18px 50px color-mix(in srgb, var(--primary) 26%, transparent);
  --shadow-1: 0 4px 6px rgba(10, 21, 18, .05), 0 10px 15px rgba(10, 21, 18, .06);
  --shadow-2: 0 10px 30px rgba(10, 21, 18, .08), 0 24px 60px rgba(10, 21, 18, .12);
  --shadow-3: 0 4px 6px rgba(10, 21, 18, .05), 0 16px 30px rgba(10, 21, 18, .10), 0 30px 60px rgba(10, 21, 18, .14);
}

.lang-fa {
  --font: 'Vazirmatn', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden
}

img {
  max-width: 100%;
  display: block
}

a {
  color: inherit;
  text-decoration: none
}

h1,
h2,
h3,
h4 {
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.02em
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px
}

.section {
  padding: 62px 0
}

.section-alt {
  background: var(--bg-alt)
}

.center {
  text-align: center
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 10px
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 34px;
  gap: 20px
}

.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center
}

.section-head h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.95rem)
}

.section-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--primary);
  margin-top: 12px;
  opacity: .85
}

.section-head.center h2::after {
  margin-inline: auto
}

.link-more {
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
  transition: gap .3s var(--ease)
}

/* inline directional arrow — mirrors automatically in RTL */
.ar {
  font-style: normal;
  display: inline-block
}

[dir=rtl] .ar {
  transform: scaleX(-1)
}

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

.skip-link:focus {
  position: fixed;
  top: 12px;
  inset-inline-start: 12px;
  width: auto;
  height: auto;
  clip: auto;
  background: #fff;
  color: var(--primary-d);
  padding: 10px 18px;
  border-radius: 12px;
  z-index: 200;
  box-shadow: var(--shadow-2)
}

/* glass utility */
.glass {
  background: color-mix(in srgb, var(--light) 70%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent)
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-family: inherit;
  font-size: .98rem;
  cursor: pointer;
  border: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
  position: relative;
  overflow: hidden
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-l), var(--primary-d));
  color: #fff;
  box-shadow: var(--glow)
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px color-mix(in srgb, var(--primary) 36%, transparent)
}

.btn-light {
  background: rgba(255, 255, 255, .95);
  color: var(--primary-d);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18)
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .26)
}

.btn-ghost {
  background: color-mix(in srgb, var(--light) 12%, transparent);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .4);
  backdrop-filter: blur(8px)
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--light) 22%, transparent);
  transform: translateY(-3px)
}

.btn-block {
  width: 100%;
  justify-content: center
}

/* ---------- header (glass) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--light) 72%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
  transition: box-shadow .4s var(--ease), background .4s var(--ease)
}

.site-header.scrolled {
  box-shadow: 0 6px 30px rgba(10, 21, 18, .08);
  background: color-mix(in srgb, var(--light) 86%, transparent)
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 22px
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0
}

.brand img {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain
}

.brand-text {
  font-weight: 800;
  font-size: 1.25rem;
  background: linear-gradient(120deg, var(--primary-d), var(--primary-l));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent
}

/* minimal nav: quiet links, animated underline instead of pill backgrounds */
.main-nav>ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none
}

.main-nav a {
  position: relative;
  padding: 8px 13px;
  font-weight: 500;
  font-size: .95rem;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  transition: color .25s var(--ease)
}

.main-nav>ul>li>a::after {
  content: "";
  position: absolute;
  inset-inline: 13px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s var(--ease)
}

.main-nav a:hover {
  color: var(--primary-d)
}

.main-nav>ul>li>a:hover::after {
  transform: scaleX(1)
}

/* active page indicator — persistent underline + stronger ink */
.main-nav a.active {
  color: var(--primary-d);
  font-weight: 600
}

.main-nav>ul>li>a.active::after {
  transform: scaleX(1)
}

/* ---------- mega menu (products) ---------- */
.caret {
  display: inline-block;
  vertical-align: -1px;
  margin-inline-start: 3px;
  opacity: .55;
  transition: transform .3s var(--ease)
}

.has-mega {
  position: relative
}

.has-mega:hover .caret,
.has-mega.open .caret,
.has-mega:focus-within .caret {
  transform: rotate(180deg)
}

.mega {
  position: absolute;
  top: calc(100% + 14px);
  inset-inline-start: 50%;
  transform: translateX(var(--mega-x, -50%)) translateY(10px) scale(.98);
  width: min(660px, calc(100vw - 48px));
  background: color-mix(in srgb, var(--light) 92%, transparent);
  backdrop-filter: #fff;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s
}

[dir=rtl] .mega {
  --mega-x: 50%
}

/* hover-intent bridge so the pointer can travel from the link to the panel */
.mega::before {
  content: "";
  position: absolute;
  top: -14px;
  inset-inline: 0;
  height: 14px
}

.has-mega:hover .mega,
.has-mega.open .mega,
.has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(var(--mega-x, -50%));
  transition-delay: 0s
}

.mega-inner {
  display: grid;
  grid-template-columns: 1fr 218px;
  gap: 10px
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  align-content: start;
  padding: 8px
}

.mega-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  transition: background .25s var(--ease)
}

.mega-item:hover {
  background: var(--tint)
}

.mega-tile {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary-d);
  background: linear-gradient(135deg, var(--tint-2), var(--tint));
  border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
  transition: .25s var(--ease)
}

.mega-item:hover .mega-tile {
  background: linear-gradient(135deg, var(--primary-l), var(--primary-d));
  color: #fff
}

.mega-body {
  display: flex;
  flex-direction: column;
  min-width: 0
}

.mega-name {
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.mega-desc {
  font-size: .76rem;
  color: var(--muted)
}

/* uses `translate` (not transform) so the .ar RTL mirror is never overridden */
.mega-go {
  margin-inline-start: auto;
  color: var(--primary);
  opacity: 0;
  translate: -4px 0;
  transition: opacity .25s var(--ease), translate .25s var(--ease)
}

[dir=rtl] .mega-go {
  translate: 4px 0
}

.mega-item:hover .mega-go {
  opacity: 1;
  translate: 0 0
}

/* highlight rail — the panel's promoted column */
.mega-rail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px 18px;
  border-radius: 16px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 10%, transparent), color-mix(in srgb, var(--primary) 3%, transparent));
  border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent)
}

.mega-rail .eyebrow {
  margin-bottom: 0
}

.mega-rail-text {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.mega-rail-btn {
  margin-top: auto;
  padding: 9px 18px;
  font-size: .85rem;
  box-shadow: none
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px
}

/* ghost icon buttons — no boxes, just quiet glyphs */
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  display: grid;
  place-items: center;
  transition: .25s var(--ease)
}

.icon-btn:hover {
  background: var(--tint);
  color: var(--primary-d)
}

.search-toggle svg {
  display: block
}

.lang-switch {
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  padding: 8px 10px;
  border-radius: 10px;
  transition: .25s var(--ease)
}

.lang-switch:hover {
  background: var(--tint);
  color: var(--primary-d)
}

.header-cta {
  padding: 9px 20px;
  font-size: .88rem;
  box-shadow: none;
  margin-inline-start: 6px
}

.header-cta:hover {
  transform: none;
  box-shadow: var(--glow)
}

.menu-toggle {
  flex-direction: column;
  gap: 4px;
  display: none
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px
}

/* search overlay — slides in on top of the whole menu row */
.search-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--light) 94%, transparent);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease)
}

.search-overlay.open {
  opacity: 1;
  transform: none;
  pointer-events: auto
}

.search-overlay .container {
  width: 100%
}

.search-overlay form {
  display: flex;
  align-items: center;
  gap: 10px
}

.search-overlay .so-ico {
  flex: none;
  color: var(--primary);
  opacity: .9
}

.search-overlay input {
  flex: 1;
  min-width: 0;
  padding: 12px 4px;
  border: none;
  border-bottom: 2px solid color-mix(in srgb, var(--primary) 35%, transparent);
  background: transparent;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  outline: none;
  transition: border-color .25s var(--ease)
}

.search-overlay input:focus {
  border-bottom-color: var(--primary)
}

.search-overlay .so-submit {
  padding: 9px 22px;
  font-size: .88rem;
  box-shadow: none
}

.search-overlay .so-close {
  flex: none;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 1.5rem;
  line-height: 1;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .25s var(--ease)
}

.search-overlay .so-close:hover {
  background: var(--tint);
  color: var(--ink)
}

.mobile-drawer {
  position: fixed;
  inset: 68px 0 auto 0;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  background: color-mix(in srgb, var(--light) 92%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  z-index: 99;
  padding: 16px 24px
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.mobile-drawer a {
  padding: 13px 12px;
  border-radius: 12px;
  font-weight: 600
}

.mobile-drawer a:hover {
  background: var(--tint)
}

.mobile-drawer a.active {
  color: var(--primary-d);
  background: var(--tint)
}

/* grouped section (products) inside the drawer */
.drawer-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 12px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: background .25s var(--ease)
}

.drawer-group summary::-webkit-details-marker {
  display: none
}

.drawer-group summary:hover {
  background: var(--tint)
}

.drawer-group summary svg {
  transition: transform .3s var(--ease);
  opacity: .55
}

.drawer-group[open]>summary svg {
  transform: rotate(180deg)
}

.drawer-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0 6px;
  margin-inline-start: 10px;
  border-inline-start: 2px solid var(--line)
}

.drawer-sub a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-weight: 500;
  font-size: .93rem
}

.drawer-sub a small {
  color: var(--muted);
  font-size: .75rem
}

.drawer-sub .drawer-all {
  color: var(--primary);
  font-weight: 700
}

/* ---------- hero (cinematic, 100vh) ---------- */
.hero {
  position: relative;
  height: 92vh;
  min-height: 92vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--dark)
}

.hero-bgs {
  position: absolute;
  inset: 0;
  z-index: 0
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  background-size: cover;
  background-position: center
}

.hero-slide.active {
  opacity: 1
}

.hero::before {
  /* darkening wash over the banner photo — keeps text legible, photo visible */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, color-mix(in srgb, var(--dark) 82%, transparent), color-mix(in srgb, var(--dark) 40%, transparent) 55%, color-mix(in srgb, var(--dark) 66%, transparent));
  background-size: 200% 200%;
  animation: gradShift 20s ease-in-out infinite
}

.hero::after {
  /* fine grain */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .5
}

@keyframes gradShift {

  0%,
  100% {
    background-position: 0% 50%
  }

  50% {
    background-position: 100% 50%
  }
}

.hero-blob {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .22;
  will-change: transform
}

.hero-blob.b1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary-l) 50%, transparent), transparent 70%);
  top: -120px;
  inset-inline-end: -80px;
  animation: float1 20s ease-in-out infinite
}

.hero-blob.b2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 40%, transparent), transparent 70%);
  bottom: -140px;
  inset-inline-start: -60px;
  animation: float2 24s ease-in-out infinite
}

@keyframes float1 {

  0%,
  100% {
    transform: translate(0, 0)
  }

  50% {
    transform: translate(-30px, 40px)
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translate(0, 0)
  }

  50% {
    transform: translate(40px, -30px)
  }
}

/* slides crossfade only — no zoom/ken-burns animation */

/* cinematic vignette — depth without hiding the photo */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--dark) 72%, transparent) 0%, transparent 40%),
    linear-gradient(90deg, color-mix(in srgb, var(--dark) 46%, transparent) 0%, transparent 45%),
    radial-gradient(120% 90% at 80% 8%, transparent 50%, color-mix(in srgb, var(--dark) 30%, transparent) 100%)
}

.hero .hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-bottom: 92px
}

/* box-less caption — gold hairline replaces the glass card */
.hero-caption {
  max-width: 640px;
  color: #fff
}

.hero-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-size: .72rem;
  margin-bottom: 18px
}

.hero-content h1 {
  font-size: clamp(2rem, 4.4vw, 2.4rem);
  margin: 0;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.12;
  font-weight: 800;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
  transition: opacity .26s var(--ease), transform .26s var(--ease)
}

.hero-content h1.swap {
  opacity: 0;
  transform: translateY(10px)
}

.hero-rule {
  display: block;
  width: 64px;
  height: 2px;
  margin: 26px 0;
  background: linear-gradient(90deg, var(--accent), transparent)
}

.hero-cta {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap
}

.hero-link {
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .3s var(--ease), gap .3s var(--ease)
}

.hero-link i {
  font-style: normal;
  color: var(--accent);
  transition: transform .3s var(--ease)
}

.hero-link:hover {
  border-color: var(--accent)
}

.hero-link:hover i {
  transform: translateX(4px)
}

[dir=rtl] .hero-link i {
  transform: scaleX(-1)
}

[dir=rtl] .hero-link:hover i {
  transform: scaleX(-1) translateX(4px)
}

/* glass arrow controls */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  background: color-mix(in srgb, #fff 10%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  opacity: .85
}

.hero-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
  opacity: 1
}

.hero-prev {
  inset-inline-start: 26px
}

.hero-next {
  inset-inline-end: 26px
}

/* RTL: keep the raw chevron glyphs — flipping them pointed the arrows the wrong way */

/* bottom UI rail: progress dots + slide counter */
.hero-ui {
  position: absolute;
  z-index: 4;
  inset-block-end: 34px;
  inset-inline-start: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 0 48px
}

.hero-dots {
  display: flex;
  gap: 12px;
  align-items: center
}

.hero-dots button {
  width: 38px;
  height: 4px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, .3);
  cursor: pointer;
  overflow: hidden;
  transition: background .3s var(--ease)
}

.hero-dots button span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent)
}

.hero-dots button.active span {
  width: 100%;
  transition: width 5.4s linear
}

.hero-count {
  position: absolute;
  inset-inline-end: 48px;
  color: rgba(255, 255, 255, .8);
  font-size: .85rem;
  letter-spacing: .1em;
  font-weight: 600
}

.hero-count b {
  color: #fff;
  font-size: 1.05rem
}

.hero-count i {
  font-style: normal;
  color: var(--accent);
  margin: 0 4px
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  inset-inline-start: 48px;
  z-index: 4;
  color: rgba(255, 255, 255, .65);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: flex;
  align-items: center
}

.hero-scroll span {
  writing-mode: vertical-lr;
  position: relative;
  padding-bottom: 44px
}

.hero-scroll span::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 50%;
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollCue 1.8s ease-in-out infinite
}

@keyframes scrollCue {

  0%,
  100% {
    transform: scaleY(.4);
    opacity: .4
  }

  50% {
    transform: scaleY(1);
    opacity: 1
  }
}

@media(max-width:700px) {
  .hero-arrow {
    display: none
  }

  .hero-scroll {
    display: none
  }

  .hero-count {
    inset-inline-end: 24px
  }

  .hero-ui {
    padding: 0 24px
  }
}

/* ---------- intro ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 88px;
  align-items: center
}

.intro-text h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin-bottom: 14px
}

.rich {
  color: var(--muted);
  line-height: 2;
  text-align: justify;
}

.rich h3,
.rich h4,
.rich h5 {
  color: var(--ink);
  margin: 14px 0 6px
}

.rich ul {
  padding-inline-start: 20px;
  margin: 8px 0
}

.rich p {
  margin: 8px 0
}

.intro-text .btn {
  margin-top: 20px
}

/* gold hairline — the recurring brand signature */
.gold-rule {
  display: block;
  width: 56px;
  height: 2px;
  margin: 16px 0 22px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 10%, transparent))
}

/* soft decorative shape behind the about section */
.intro {
  position: relative;
  overflow: hidden
}

.intro-deco {
  position: absolute;
  z-index: 0;
  inset-block-start: -120px;
  inset-inline-end: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tint) 0%, transparent 70%);
  pointer-events: none
}

.intro-grid {
  position: relative;
  z-index: 1
}

/* layered image frame with halo, gold corner + floating glass card */
.intro-visual {
  position: relative;
  padding-bottom: 30px;
  padding-inline-start: 30px
}

.intro-visual .iv-halo {
  position: absolute;
  z-index: 0;
  inset-block-start: -28px;
  inset-inline-end: -28px;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 24%, transparent), transparent 70%);
  filter: blur(20px);
  pointer-events: none
}

.iv-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  aspect-ratio: 3/3;
  /* background: linear-gradient(135deg, var(--primary-d), var(--secondary)) */
}

.iv-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.iv-corner {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-start: 16px;
  width: 44px;
  height: 44px;
  border-top: 2px solid var(--accent);
  border-inline-start: 2px solid var(--accent);
  border-start-start-radius: 12px;
  z-index: 2;
  pointer-events: none
}

/* floating glass card overlapping the frame's lower-start corner */
.iv-card {
  position: absolute;
  z-index: 2;
  inset-block-end: 0;
  inset-inline-start: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--light) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  box-shadow: var(--shadow-2);
  max-width: 78%
}

.iv-card-k {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent)
}

.iv-card-v {
  font-weight: 800;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.3
}

/* dotted decoration behind the frame (lower-end corner) */
.iv-dots {
  position: absolute;
  z-index: 0;
  inset-block-end: 6px;
  inset-inline-end: -6px;
  width: 120px;
  height: 100px;
  background-image: radial-gradient(color-mix(in srgb, var(--primary) 40%, transparent) 1.6px, transparent 1.6px);
  background-size: 16px 16px;
  opacity: .5;
  pointer-events: none
}

/* lead paragraph + icon pillars — replaces the plain text wall */
.intro-lead {
  color: var(--muted);
  line-height: 1.95;
  margin-bottom: 26px
}

.intro-pillars {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 30px;
  padding: 0
}

.intro-pillars li {
  display: flex;
  align-items: flex-start;
  gap: 16px
}

.ip-ic {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--primary-d);
  background: var(--tint);
  border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--line));
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease)
}

.ip-ic svg {
  width: 23px;
  height: 23px
}

.intro-pillars li:hover .ip-ic {
  background: linear-gradient(135deg, var(--primary), var(--primary-l));
  color: #fff;
  transform: translateY(-3px)
}

.ip-body {
  display: flex;
  flex-direction: column;
  gap: 3px
}

.ip-body b {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4
}

.ip-body span {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6
}

/* ---------- premium image section ---------- */
.premium-image-section {
  position: relative;
  height: clamp(360px, 52vh, 560px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin: 0 auto;
  max-width: calc(var(--container) + 40px)
}

.premium-image-section img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.premium-image-section .pis-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, var(--dark), color-mix(in srgb, var(--primary-d) 42%, var(--dark)))
}

.premium-image-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, color-mix(in srgb, var(--dark) 70%, transparent), transparent 65%)
}

.pis-content {
  position: absolute;
  z-index: 2;
  inset-block-end: 0;
  inset-inline-start: 0;
  padding: 44px;
  max-width: 450px
}

.pis-glass {
  padding: 30px 34px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, #fff 10%, transparent);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3)
}

.pis-glass span {
  color: rgba(255, 255, 255, .72);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .74rem
}

.pis-glass h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 8px 0 10px
}

.pis-glass p {
  color: rgba(255, 255, 255, .9)
}

/* ---------- product cards (Apple-style glass: transparent card, theme-tinted text panel) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px
}

/* featured product slider */
.product-slider {
  position: relative
}

.ps-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 6px 2px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.ps-track.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none
}

.ps-track.dragging>.product-card {
  pointer-events: none
}

.ps-track::-webkit-scrollbar {
  display: none
}

.ps-track>.product-card {
  flex: 0 0 clamp(240px, 24%, 290px);
  scroll-snap-align: start
}

/* no hover lift/zoom for slider cards (keeps sliding clean) */
.ps-track>.product-card:hover {
  transform: none;
  box-shadow: var(--shadow-1);
  border-color: var(--line)
}

.ps-track>.product-card:hover .product-thumb img {
  transform: none
}

.ps-track>.product-card:hover .product-body {
  background: color-mix(in srgb, var(--primary) 4%, var(--light))
}

.ps-track>.product-card:hover .product-go {
  gap: 6px
}

.ps-nav {
  position: absolute;
  top: 38%;
  z-index: 6;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--primary-d);
  box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease)
}

.ps-nav:hover {
  background: #fff;
  box-shadow: var(--shadow-2);
  transform: scale(1.08)
}

.ps-prev {
  inset-inline-start: -12px
}

.ps-next {
  inset-inline-end: -12px
}

/* mirror the chevron glyphs in RTL so they point the right way */
[dir=rtl] .ps-nav {
  transform: scaleX(-1)
}

[dir=rtl] .ps-nav:hover {
  transform: scaleX(-1) scale(1.08)
}

.ps-nav.disabled {
  opacity: .35;
  pointer-events: none
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: color-mix(in srgb, var(--light) 58%, transparent);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  box-shadow: var(--shadow-1);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease)
}

.product-card:hover {
  transform: translateY(-8px) scale(1.012);
  box-shadow: var(--shadow-3), var(--glow);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--line))
}

/* image area — clean neutral, product fully contained (no shadow bleed onto text) */
.product-thumb {
  position: relative;
  aspect-ratio: 4.5/4;
  display: grid;
  place-items: center;
  padding: 32px;
  overflow: hidden;
  background: #fff;
}

.product-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .55s var(--ease)
}

.product-card:hover .product-thumb img {
  transform: scale(1.05)
}

.thumb-fallback {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: repeating-linear-gradient(45deg, #f1f2f4, #f1f2f4 12px, #e9eaec 12px, #e9eaec 24px)
}

.thumb-fallback.big {
  aspect-ratio: auto;
  height: 360px
}

/* text area — minimal frosted panel, just a whisper of theme tint */
.product-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 22px 4px;
  /* background: color-mix(in srgb, var(--primary) 4%, var(--light)); */
  border-top: 1px solid var(--line);
  transition: background .45s var(--ease)
}

/* .product-card:hover .product-body {
  background: color-mix(in srgb, var(--primary) 8%, var(--light))
} */

.product-cat {
  color: var(--primary-d);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .05em
}

.product-name {
  font-size: 1.08rem;
  margin: 6px 0;
  line-height: 1.4;
  color: var(--ink)
}

.product-en {
  color: var(--muted);
  font-size: .84rem;
  direction: ltr;
  display: block
}

.product-go {
  margin-top: auto;
  padding: 14px 22px 22px;
  color: var(--primary-d);
  font-weight: 700;
  font-size: .88rem;
  display: inline-flex;
  gap: 6px;
  transition: gap .3s var(--ease)
}

.product-card:hover .product-go {
  gap: 12px
}

/* ---------- advantages ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px
}

.adv-card {
  position: relative;
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-1);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease)
}

.adv-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-3)
}

.adv-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--tint-2);
  position: relative
}

.adv-icon::after {
  content: "✚";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 1.3rem
}

.adv-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px
}

.adv-card p {
  color: var(--muted);
  font-size: .93rem
}

/* ---------- brands + certs ---------- */
.brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 30px
}

.brand-chip {
  width: 148px;
  height: 148px;
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  padding: 16px;
  box-shadow: var(--shadow-1);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease)
}

.brand-chip:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2)
}

.brand-chip img {
  /* max-height: 58px; */
  object-fit: contain;
  filter: grayscale(.25);
  transition: filter .4s var(--ease)
}

.brand-chip:hover img {
  filter: none
}

.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center
}

.cert-title {
  font-weight: 700;
  color: var(--muted)
}

.cert-badge {
  background: var(--bg-alt);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: .82rem
}

/* ---------- news ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.news-card {
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease)
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-3)
}

.news-img {
  height: 188px;
  overflow: hidden
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease)
}

.news-card:hover .news-img img {
  transform: scale(1.06)
}

.news-body {
  padding: 22px
}

.news-body time {
  color: var(--primary);
  font-weight: 700;
  font-size: .8rem
}

.news-body h3 {
  font-size: 1.08rem;
  margin: 8px 0
}

.news-body p {
  color: var(--muted);
  font-size: .9rem
}

/* ---------- page hero / breadcrumb ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, var(--dark), var(--primary-d));
  color: #fff;
  padding: 64px 0 52px
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 320px at 85% -30%, color-mix(in srgb, var(--primary-l) 20%, transparent), transparent 60%)
}

.page-hero.slim {
  padding: 28px 0
}

.page-hero>.container {
  position: relative;
  z-index: 1
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-top: 8px
}

.breadcrumb {
  font-size: .9rem;
  color: rgba(255, 255, 255, .85)
}

.breadcrumb a:hover {
  color: var(--accent)
}

/* ---------- archive ---------- */
.archive-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: start
}

.filters {
  position: sticky;
  top: 96px;
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-1)
}

/* search input + button on one row */
.filter-search {
  display: flex;
  gap: 8px;
  margin-bottom: 16px
}

.filter-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-family: inherit;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease)
}

.filter-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--tint)
}

.filter-search-btn {
  flex: none;
  width: 46px;
  border: none;
  border-radius: 13px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-l), var(--primary-d));
  box-shadow: var(--glow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease)
}

.filter-search-btn svg {
  width: 19px;
  height: 19px
}

.filter-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--primary) 34%, transparent)
}

.filter-cats {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.archive-more {
  display: flex;
  justify-content: center;
  margin-top: 36px
}

.filter-cat {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 11px;
  cursor: pointer;
  font-size: .94rem;
  transition: background .3s var(--ease)
}

.filter-cat:hover,
.filter-cat.active {
  background: var(--tint);
  color: var(--primary-d);
  font-weight: 600
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 38px
}

.pagination a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-weight: 700;
  transition: .3s var(--ease)
}

.pagination a.active,
.pagination a:hover {
  background: var(--primary-d);
  color: #fff;
  border-color: var(--primary-d)
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 0
}

.archive-main {
  transition: opacity .2s var(--ease)
}

.archive-main.loading {
  opacity: .45;
  pointer-events: none
}

/* ---------- single product ---------- */
.product-single {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  align-items: start;
  margin-bottom: 36px
}

.ps-gallery {
  position: relative;
  background: linear-gradient(180deg, #fbfdfc, var(--bg-alt));
  border-radius: var(--radius-xl);
  padding: 40px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-2);
  min-height: 380px;
  overflow: hidden
}

.ps-gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 50% 0, var(--tint-2), transparent 70%)
}

.ps-gallery img {
  position: relative;
  max-height: 420px;
  object-fit: contain
}

.ps-cat {
  color: var(--primary);
  font-weight: 700
}

.ps-info h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 8px 0
}

.ps-en {
  color: var(--muted);
  direction: ltr
}

.ps-slogan {
  color: var(--muted);
  margin: 16px 0;
  font-size: 1.05rem
}

.ps-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap
}

.ps-tabs {
  margin-top: 18px;
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  margin: 24px 0;
}

.tab-heads {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt)
}

.tab-head {
  border: none;
  background: transparent;
  font-family: inherit;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  transition: .3s var(--ease)
}

.tab-head.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  color: #fff;
  box-shadow: var(--glow)
}

.tab-pane {
  display: none;
  padding: 30px
}

.tab-pane.active {
  display: block
}

.downloads {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.dl-item {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-weight: 600;
  display: inline-block;
  transition: .3s var(--ease)
}

.dl-item:hover {
  background: var(--tint);
  border-color: var(--primary)
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 66px;
  align-items: center
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px
}

.mv-card {
  position: relative;
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow-1);
  overflow: hidden
}

.mv-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 24px;
  bottom: 24px;
  width: 5px;
  border-radius: 5px;
  background: linear-gradient(var(--primary), var(--primary-l))
}

.mv-card h3 {
  font-size: 1.35rem;
  color: var(--primary-d);
  margin-bottom: 12px
}

.mv-card p {
  color: var(--muted)
}

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-inline-start: 30px
}

.timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(var(--primary), var(--primary-l))
}

.tl-item {
  position: relative;
  padding: 0 0 26px 10px
}

.tl-item::before {
  content: "";
  position: absolute;
  inset-inline-start: -29px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--tint)
}

.tl-year {
  font-weight: 800;
  color: var(--primary-d);
  font-size: 1.1rem
}

.tl-item p {
  color: var(--muted)
}

.manager-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow-2);
  align-items: start
}

.manager-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  object-fit: cover
}

.manager-info h3 {
  font-size: 1.5rem
}

.manager-role {
  display: inline-block;
  color: var(--primary-d);
  background: var(--tint);
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 700;
  margin: 8px 0 14px;
  font-size: .86rem
}

.manager-edu {
  color: var(--muted);
  margin-bottom: 10px
}

.manager-mail {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 700
}

/* ---------- CEO / management ---------- */
/* CEO — compact portrait with soft halo, gold hairline, clean card */
.ceo-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease)
}

.ceo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-3)
}

/* profile column — photo with identity + contact stacked beneath it */
.ceo-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 44px 32px;
  background: linear-gradient(180deg, var(--bg-alt), var(--light));
  border-inline-end: 1px solid var(--line)
}

.ceo-photo {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
  background: linear-gradient(160deg, var(--primary-d), var(--dark));
  /* box-shadow: 0 18px 40px color-mix(in srgb, var(--primary) 24%, transparent); */
  border: 4px solid var(--light)
}

.ceo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center
}

.ceo-initial {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 3.4rem;
  font-weight: 800
}

/* soft glow ring sitting behind the portrait */
.ceo-halo {
  position: absolute;
  z-index: -1;
  inset: -22px;
  border-radius: 50%;
  /* background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--primary) 18%, transparent) 55%, transparent 72%); */
  filter: blur(10px)
}

.ceo-name {
  font-size: 1.32rem;
  color: var(--ink);
  margin: 24px 0 6px;
  font-weight: 800
}

.ceo-role {
  display: block;
  color: var(--primary);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.5
}

.ceo-aside .gold-rule {
  margin: 18px auto 22px
}

/* contact list under the photo */
.ceo-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: start
}

.ceo-meta li {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center
}

.cm-ic {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--primary-d);
  background: var(--tint)
}

.cm-ic svg {
  width: 17px;
  height: 17px
}

.ceo-meta .cm-k {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  align-self: end
}

.ceo-meta b,
.ceo-meta a {
  color: var(--ink);
  font-weight: 600;
  font-size: .92rem;
  align-self: start;
  word-break: break-word
}

.ceo-meta a:hover {
  color: var(--primary)
}

/* biography column */
.ceo-main {
  position: relative;
  padding: 48px 46px;
  display: flex;
  align-items: center
}

.ceo-quote {
  position: absolute;
  inset-block-start: 18px;
  inset-inline-start: 34px;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 34%, transparent);
  pointer-events: none
}

.ceo-bio {
  color: var(--muted);
  line-height: 2.1;
  font-size: .98rem;
  position: relative
}

/* .ceo-bio p {
  margin: 0 0 12px
} */

@media(max-width:760px) {
  .ceo-card {
    grid-template-columns: 1fr
  }

  .ceo-aside {
    border-inline-end: none;
    border-block-end: 1px solid var(--line);
    padding: 34px 24px
  }

  .ceo-meta {
    max-width: 320px;
    margin-inline: auto
  }

  .ceo-main {
    padding: 32px 24px
  }

  .ceo-quote {
    display: none
  }
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  align-items: start
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 40px 0;

}
.map-section {
    margin-top: 50px;
}

.contact-list.big li {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted)
}

/* leading icon chip */
.contact-list.big>li>span:first-child {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--tint);
  color: var(--primary-d);
  font-size: 1.1rem
}

.contact-list.big li>div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0
}

.contact-list.big li>div b {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent)
}

.contact-list.big li>div a,
.contact-list.big li>div span {
  color: var(--ink);
  font-weight: 600;
  word-break: break-word
}

.contact-list.big li>div a:hover {
  color: var(--primary)
}

.contact-empty {
  color: var(--muted)
}

/* social row */
.contact-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px
}

.cs-label {
  font-weight: 700;
  color: var(--ink);
  margin-inline-end: 4px
}

.cs-link {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--primary-d);
  background: var(--tint);
  transition: background .3s var(--ease), color .3s var(--ease)
}

.cs-link:hover {
  background: linear-gradient(135deg, var(--primary-l), var(--primary-d));
  color: #fff
}

.dept-title {
  margin: 26px 0 14px
}

.dept-list {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.dept {
  background: var(--bg-alt);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px
}

.dept strong {
  color: var(--primary-d)
}

.dept span {
  color: var(--muted);
  font-size: .9rem
}

.contact-form-wrap {
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow-2)
}

.field {
  margin-bottom: 16px
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: .92rem
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: .3s var(--ease)
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--tint)
}

.alert {
  padding: 14px 18px;
  border-radius: 13px;
  margin-bottom: 18px;
  font-weight: 600
}

.alert.success {
  background: var(--tint);
  color: var(--primary-d)
}

.alert.error {
  background: #fdecec;
  color: #b3261e
}

.map-placeholder {
  margin-top: 46px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 380px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1)
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0
}

.map-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 1.4rem
}

/* ---------- cta + footer (dark glossy) ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, var(--dark), color-mix(in srgb, var(--primary-d) 30%, var(--dark)));
  color: #fff;
  padding: 46px 0
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 260px at 85% -40%, color-mix(in srgb, var(--primary-l) 16%, transparent), transparent 60%)
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap
}

.cta-inner h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem)
}

.cta-inner p {
  opacity: .92
}

.site-footer {
  position: relative;
  background: var(--dark);
  color: rgba(255, 255, 255, .74);
  padding-top: 60px;
  overflow: hidden
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -160px;
  inset-inline-end: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 40%, transparent), transparent 70%);
  filter: blur(40px)
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.4fr;
  gap: 38px;
  padding-bottom: 38px
}

.footer-brand .brand-text {
  color: #fff;
  font-size: 1.3rem;
  -webkit-text-fill-color: #fff
}

.footer-brand p {
  margin: 14px 0;
  font-size: .92rem;
  line-height: 1.85
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.02rem
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.footer-col a {
  transition: color .3s var(--ease)
}

.footer-col a:hover {
  color: var(--accent)
}

.contact-list li {
  font-size: .92rem
}

.socials {
  display: flex;
  gap: 10px
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: color-mix(in srgb, #fff 8%, transparent);
  border: 1px solid rgba(255, 255, 255, .12);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .76rem;
  color: #fff;
  transition: .3s var(--ease)
}

.socials a:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-3px)
}

.newsletter {
  display: flex;
  gap: 8px
}

.newsletter input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: color-mix(in srgb, #fff 6%, transparent);
  color: #fff;
  border-radius: 13px;
  font-family: inherit
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, .5)
}

.newsletter-note {
  color: var(--primary-l);
  margin-top: 8px
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 0;
  font-size: .88rem;
  text-align: center
}

.to-top {
  position: fixed;
  inset-block-end: 26px;
  inset-inline-end: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: .4s var(--ease);
  z-index: 90;
  box-shadow: var(--glow)
}

.to-top.show {
  opacity: 1;
  pointer-events: auto
}

.error-page {
  text-align: center;
  padding: 90px 0
}

.error-page h1 {
  font-size: 5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent
}

/* ---------- scroll reveal ---------- */
.reveal {
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease)
}

.js .reveal {
  opacity: 0;
  transform: translateY(34px)
}

.js .reveal[data-anim="left"] {
  transform: translateX(-44px)
}

.js .reveal[data-anim="scale"] {
  transform: scale(.93)
}

.js .reveal[data-anim="blur"] {
  filter: blur(14px);
  transform: translateY(20px)
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: none
}

/* ---------- responsive ---------- */
@media(max-width:992px) {

  /* the full nav gets cramped below ~1000px — switch to the drawer early */
  .main-nav,
  .header-cta {
    display: none
  }

  .menu-toggle {
    display: flex
  }

  .intro-grid,
  .about-grid,
  .contact-grid,
  .product-single {
    grid-template-columns: 1fr
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .adv-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }

  .archive-layout {
    grid-template-columns: 1fr
  }

  .filters {
    position: static
  }

  .manager-card {
    grid-template-columns: 1fr
  }

  .manager-photo img {
    max-width: 210px
  }

  .hero-glass {
    padding: 36px 32px
  }
}

@media(max-width:760px) {

  .section {
    padding: 46px 0
  }

  .news-grid,
  .adv-grid,
  .mv-grid,
  .footer-grid {
    grid-template-columns: 1fr
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start
  }

  .mega {
    min-width: auto
  }

  .hero {
    height: 92vh;
    min-height: 92vh
  }

  .pis-content {
    padding: 22px
  }
}

/* small phones */
@media(max-width:520px) {
  .container {
    padding: 0 16px
  }

  .header-inner {
    height: 60px;
    gap: 10px
  }

  .brand img {
    height: 40px;
    max-width: 150px
  }

  .mobile-drawer {
    inset: 60px 0 auto 0;
    max-height: calc(100vh - 60px)
  }

  .product-grid {
    grid-template-columns: 1fr
  }

  .hero {
    height: 86vh;
    min-height: 86vh
  }

  .hero-arrow {
    display: none
  }

  .hero-cta {
    gap: 14px
  }

  .search-overlay .so-submit {
    display: none
  }

  .section-head h2 {
    font-size: 1.35rem
  }

  .footer-grid {
    gap: 26px
  }

  .btn {
    padding: 12px 22px;
    font-size: .92rem
  }
}

/* ---------- reduced motion ---------- */
@media(prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition: none !important
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none
  }
}
/* ---------- news/blog cards-as-links + post detail ---------- */
a.news-card { color: inherit; cursor: pointer }
.news-card .link-more { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px }
.post-single { max-width: 860px }
.post-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; color: var(--muted); font-size: .9rem }
.post-cat { color: var(--primary-d); background: var(--tint); padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .8rem }
.post-title { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 22px; line-height: 1.3 }
.post-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 26px; box-shadow: var(--shadow-2) }
.post-cover img { width: 100%; height: auto; display: block }
.post-content { font-size: 1.02rem }
.post-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 14px 0 }
.post-content h2, .post-content h3 { color: var(--ink); margin: 20px 0 8px }
.post-back { margin-top: 34px }
