/* Novus Avenir Pharmaceuticals - public website styles.
   ONE stylesheet for every page. Theme: clinical blue (primary) + red accent, both from the company logo,
   on white and light blue-grey surfaces. */
:root {
  --blue-900: #0b2a5b;
  --blue-800: #0a3d8f;
  --blue-700: #0453b9;
  --blue-500: #2f7de1;
  --blue-300: #8fb8f0;
  --blue-100: #dbe8fb;
  --blue-50: #f1f6fd;
  --red-700: #8f1015;
  --red-600: #b8151a;
  --red-500: #d81a1f;
  --red-100: #fde9ea;
  --teal-500: #0fa3a3;
  --ink: #14213d;
  --gray-700: #334155;
  --gray-600: #52607a;
  --gray-400: #9aa6bd;
  --gray-200: #e3e9f2;
  --gray-100: #f4f7fb;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 42, 91, 0.08);
  --shadow-lg: 0 22px 50px rgba(11, 42, 91, 0.16);
  --font-head: 'Montserrat', 'Inter', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--red-600); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--blue-900); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.accent { color: var(--red-500); }
.eyebrow { display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-700); margin-bottom: 0.7rem; }
.eyebrow::before { content: ''; display: inline-block; width: 28px; height: 3px; background: var(--red-500); vertical-align: middle; margin-right: 10px; border-radius: 2px; }
.eyebrow.light { color: #cfe0fb; }
.eyebrow.light::before { background: var(--red-500); }
.empty { color: var(--gray-600); font-style: italic; }
.mt { margin-top: 1rem; }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 1000; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; transition: opacity .5s ease, visibility .5s; }
.preloader img { width: 64px; height: 64px; animation: pulse 1.2s ease-in-out infinite; }
.preloader-bar { width: 120px; height: 4px; border-radius: 2px; background: var(--blue-100); overflow: hidden; position: relative; }
.preloader-bar::after { content: ''; position: absolute; left: -40%; width: 40%; height: 100%; background: linear-gradient(90deg, var(--blue-700), var(--red-500)); animation: slideBar 1s linear infinite; }
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes slideBar { to { left: 100%; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; padding: 0.8rem 1.6rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue-700); color: #fff; box-shadow: 0 8px 20px rgba(4, 83, 185, 0.28); }
.btn-primary:hover { background: var(--blue-800); color: #fff; }
.btn-secondary { background: var(--red-500); color: #fff; box-shadow: 0 8px 20px rgba(216, 26, 31, 0.25); }
.btn-secondary:hover { background: var(--red-600); color: #fff; }
.btn-outline { background: transparent; color: var(--blue-700); border-color: var(--blue-700); }
.btn-outline:hover { background: var(--blue-700); color: #fff; }
.btn-outline-white { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.75); backdrop-filter: blur(4px); }
.btn-outline-white:hover { background: #fff; color: var(--blue-900); }
.btn-white { background: #fff; color: var(--blue-700); }
.btn-white:hover { background: var(--red-500); color: #fff; }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.85rem; }

/* ---------- Top bar + navigation ---------- */
.topbar { background: var(--blue-900); color: #fff; font-size: 0.82rem; font-weight: 500; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 1rem; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--blue-300); }
.topbar-left { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.topbar-tag { font-style: italic; opacity: 0.9; }
.social-fb { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-700); justify-content: center; }
.social-fb:hover { background: var(--red-500); color: #fff !important; }
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--gray-200); box-shadow: 0 4px 20px rgba(11, 42, 91, 0.06); transition: box-shadow .25s; }
.nav.scrolled { box-shadow: 0 8px 28px rgba(11, 42, 91, 0.12); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 1rem; transition: min-height .25s; }
.nav.scrolled .nav-inner { min-height: 68px; }
.brand-logo { height: 60px; width: auto; transition: height .25s; }
.nav.scrolled .brand-logo { height: 50px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { font-weight: 600; font-size: 0.86rem; color: var(--blue-900); text-transform: uppercase; letter-spacing: 0.04em; position: relative; padding: 6px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: var(--red-500); border-radius: 2px; transition: width .2s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--blue-700); }
.nav-links .nav-cta a { text-transform: none; letter-spacing: 0; color: #fff; }
.nav-links .nav-cta a::after { display: none; }
.nav-links .nav-cta a.btn { padding: 0.7rem 1.4rem; font-size: 0.9rem; white-space: nowrap; }
.nav-login { color: var(--gray-600) !important; font-size: 0.8rem !important; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; color: var(--blue-900); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); }
.hero-home { min-height: min(86vh, 740px); display: flex; align-items: center; }
.hero-small { padding: 4.5rem 0 4rem; }
.video-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.video-bg video { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(11, 42, 91, 0.9) 0%, rgba(4, 83, 185, 0.7) 55%, rgba(216, 26, 31, 0.3) 100%); }
.hero-inner { position: relative; z-index: 2; padding: 4rem 0; max-width: 820px; }
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero .lead { font-size: 1.1rem; line-height: 1.75; color: rgba(255,255,255,0.9); max-width: 720px; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.75); margin-bottom: 1rem; }
.breadcrumb a { color: #fff; }
.breadcrumb span { margin: 0 6px; opacity: 0.6; }

/* hero slider */
.hero-slider { display: block; min-height: min(86vh, 740px); }
.hero-slider::before { display: none; }
.hero-slider .slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.hero-slider .slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slider .slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.08); transition: transform 7s linear; }
.hero-slider .slide.active .slide-bg { transform: scale(1); }
.hero-slider .slide-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 42, 91, 0.9) 0%, rgba(4, 83, 185, 0.68) 55%, rgba(216, 26, 31, 0.3) 100%); }
.hero-slider .slide .hero-inner { position: relative; z-index: 2; }
.hero-slider .slide.active .hero-inner > * { animation: heroIn .8s cubic-bezier(.2, .7, .2, 1) both; }
.slider-nav { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 5; display: flex; justify-content: center; align-items: center; gap: 14px; }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.45); cursor: pointer; transition: width .25s, background .25s; padding: 0; }
.slider-dots button.on { width: 28px; border-radius: 6px; background: #fff; }
.slider-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.5); background: rgba(255,255,255,0.1); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.slider-arrow:hover { background: var(--red-500); border-color: var(--red-500); }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section.alt { background: var(--gray-100); }
.section.blue { background: var(--blue-50); }
.section.dark { position: relative; color: #fff; background: var(--blue-900); overflow: hidden; }
.section.dark::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11, 42, 91, 0.9), rgba(11, 42, 91, 0.82)); }
.section.dark > .container { position: relative; z-index: 2; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .eyebrow { color: var(--blue-300); }
.section.dark p { color: rgba(255,255,255,0.88); }
.section-head { max-width: 780px; margin-bottom: 2.8rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 0.9rem; }
.section-head p, .section-intro { color: var(--gray-600); font-size: 1.02rem; }
.section-intro p + p { margin-top: 0.9rem; }
.section-foot { text-align: center; margin-top: 2.5rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border-radius: var(--radius); padding: 2rem 1.7rem; box-shadow: var(--shadow); border-top: 4px solid var(--blue-700); transition: transform .2s, box-shadow .2s; position: relative; }
.card:nth-child(3n+2) { border-top-color: var(--red-500); }
.card:nth-child(3n+3) { border-top-color: var(--blue-500); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-icon { width: 58px; height: 58px; border-radius: 14px; background: var(--blue-100); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; margin-bottom: 1.2rem; flex: none; }
.card:nth-child(3n+2) .card-icon { background: var(--red-100); }
.card:nth-child(3n+3) .card-icon { background: var(--blue-50); }
.card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; letter-spacing: 0.01em; }
.card p { color: var(--gray-600); font-size: 0.95rem; }
.card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 1rem; }
.card-brand { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-600); margin-bottom: 0.4rem; }
.section.dark .card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-top: 4px solid var(--red-500); backdrop-filter: blur(6px); }
.section.dark .card p { color: rgba(255,255,255,0.8); }
.section.dark .card-icon { background: rgba(255,255,255,0.12); }

/* ---------- Split feature (text + photo) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.split.reverse > .split-media { order: -1; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media.tall img { aspect-ratio: 3 / 4; }
.split-media::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--radius); background: linear-gradient(135deg, var(--blue-100), var(--blue-50)); z-index: -1; }
.split-badge { position: absolute; left: -18px; bottom: 28px; background: var(--blue-700); color: #fff; border-radius: 12px; padding: 1rem 1.3rem; box-shadow: var(--shadow-lg); border-left: 5px solid var(--red-500); }
.split-badge strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1; }
.split-badge span { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.split-text h2 { margin-bottom: 1rem; }
.split-text p { color: var(--gray-600); margin-bottom: 1rem; }
.split-text .btn { margin-top: 0.6rem; }
.split-text ul { margin: 0 0 1rem 1.2rem; color: var(--gray-600); }

/* ---------- Stats (animated counters) ---------- */
.stats-band { background: linear-gradient(180deg, var(--blue-50), #fff); padding: 4rem 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 1.8rem 1rem 1.5rem; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border-bottom: 4px solid var(--blue-700); }
.stat:nth-child(even) { border-bottom-color: var(--red-500); }
.stat-icon { display: block; font-size: 1.8rem; margin-bottom: 0.4rem; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--blue-700); line-height: 1.1; }
.stat:nth-child(even) strong { color: var(--red-500); }
.stat-suffix { font-size: 1.6rem; margin-left: 2px; }
.stat > span:last-child { font-size: 0.82rem; color: var(--gray-600); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; counter-reset: tl; }
.timeline::before { content: ''; position: absolute; left: 10%; right: 10%; top: 44px; height: 3px; background: linear-gradient(90deg, var(--blue-700), var(--red-500)); border-radius: 2px; }
.tl-node { position: relative; text-align: center; }
.tl-dot { width: 90px; height: 90px; margin: 0 auto 1.2rem; border-radius: 50%; background: #fff; border: 4px solid var(--blue-700); box-shadow: 0 0 0 8px var(--blue-50), var(--shadow); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; overflow: hidden; }
.tl-node:nth-child(2) .tl-dot { border-color: var(--red-500); box-shadow: 0 0 0 8px var(--red-100), var(--shadow); }
.tl-dot img { width: 60px; height: 60px; object-fit: contain; }
.tl-card { background: #fff; border-radius: var(--radius); padding: 1.6rem 1.4rem; box-shadow: var(--shadow); }
.tl-year { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--blue-700); line-height: 1; margin-bottom: 0.5rem; }
.tl-node:nth-child(2) .tl-year { color: var(--red-500); }
.tl-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.tl-card p { color: var(--gray-600); font-size: 0.93rem; }

/* ---------- Photo grid / band ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.photo-grid figure { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.photo-grid figure:hover img { transform: scale(1.05); }
.photo-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.8rem 1rem; color: #fff; font-weight: 600; font-size: 0.9rem; background: linear-gradient(180deg, transparent, rgba(11, 42, 91, 0.8)); }
.photo-band { height: 360px; background-size: cover; background-position: center; position: relative; }
.photo-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 83, 185, 0.45), rgba(216, 26, 31, 0.35)); }

/* ---------- Vision / Mission / Values ---------- */
.vmv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.vmv-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius); padding: 2.2rem 1.8rem; backdrop-filter: blur(8px); text-align: center; }
.vmv-card .vmv-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--red-500); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.vmv-card h3 { font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.7rem; }
.vmv-card p { font-size: 0.95rem; }
.vmv-card ul { list-style: none; text-align: left; }
.vmv-card li { padding: 0.65rem 0; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.93rem; color: rgba(255,255,255,0.85); }
.vmv-card li strong { display: block; color: #fff; }
.vmv-card li span { margin-right: 6px; }

/* ---------- Certificates ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.cert-card { position: relative; display: flex; gap: 1rem; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 1.4rem 1.4rem 1.4rem 1.3rem; box-shadow: var(--shadow); border-left: 5px solid var(--blue-700); transition: transform .2s, box-shadow .2s; }
.cert-card:nth-child(even) { border-left-color: var(--red-500); }
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cert-icon { width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--blue-100); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.cert-card:nth-child(even) .cert-icon { background: var(--red-100); }
.cert-img { flex: none; width: 92px; border: 0; padding: 0; background: var(--gray-100); border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.cert-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.cert-body h3 { font-size: 1rem; margin-bottom: 0.2rem; padding-right: 1.6rem; }
.cert-issuer { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red-600); margin-bottom: 0.3rem; }
.cert-body p { color: var(--gray-600); font-size: 0.9rem; }
.cert-check { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal-500); color: #fff; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.section.dark .cert-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); border-left: 5px solid var(--red-500); }
.section.dark .cert-body h3 { color: #fff; }
.section.dark .cert-body p { color: rgba(255,255,255,0.8); }
.section.dark .cert-issuer { color: var(--blue-300); }
.section.dark .cert-icon { background: rgba(255,255,255,0.14); }

/* ---------- Product categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cat-card { background: #fff; border-radius: var(--radius); padding: 1.8rem 1.6rem; box-shadow: var(--shadow); border-top: 4px solid var(--blue-700); display: flex; flex-direction: column; gap: 0.8rem; transition: transform .2s, box-shadow .2s; }
.cat-card:nth-child(3n+2) { border-top-color: var(--red-500); }
.cat-card:nth-child(3n+3) { border-top-color: var(--blue-500); }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-head { display: flex; align-items: center; gap: 0.9rem; }
.cat-head .card-icon { margin: 0; width: 52px; height: 52px; font-size: 1.5rem; }
.cat-card:nth-child(3n+2) .card-icon { background: var(--red-100); }
.cat-head h3 { font-size: 1.05rem; }
.cat-card > p { color: var(--gray-600); font-size: 0.93rem; }
.cat-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.cat-products { list-style: none; border-top: 1px solid var(--gray-200); }
.cat-products li { padding: 0.55rem 0; border-bottom: 1px solid var(--gray-100); font-size: 0.92rem; }
.cat-products strong { color: var(--blue-900); }
.cat-products span { color: var(--red-600); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.cat-products em { display: block; color: var(--gray-600); font-style: normal; font-size: 0.86rem; }
.cat-tag { align-self: flex-start; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-700); background: var(--blue-50); border: 1px dashed var(--blue-300); border-radius: 999px; padding: 4px 12px; }
.cat-card .btn, .cat-link { margin-top: auto; align-self: flex-start; }
.cat-link { font-weight: 600; font-size: 0.9rem; }
.notice-card { background: var(--blue-50); border: 1px solid var(--blue-100); border-left: 5px solid var(--blue-700); border-radius: var(--radius); padding: 1.8rem 2rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.notice-card h3 { margin-bottom: 0.3rem; }
.notice-card p { color: var(--gray-600); font-size: 0.95rem; max-width: 720px; }

/* ---------- Projects / installations ---------- */
.proj-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; align-items: stretch; }
.proj { display: flex; gap: 1.1rem; background: #fff; border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); border-left: 5px solid var(--blue-700); align-items: flex-start; }
.proj:nth-child(even) { border-left-color: var(--red-500); }
.proj-num { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--gray-200); line-height: 1; min-width: 2.2rem; }
.proj h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.proj-loc { color: var(--red-600); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; display: flex; align-items: center; gap: 5px; }
.proj p { color: var(--gray-600); font-size: 0.93rem; margin-top: 0.3rem; }
.proj .btn { margin-top: 0.7rem; }
.proj-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; margin-bottom: 0.8rem; }
.portfolio-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.pgroup { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); border-top: 4px solid var(--blue-700); }
.pgroup + .pgroup { border-top-color: var(--red-500); }
.pgroup h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue-700); margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 2px solid var(--gray-200); display: flex; align-items: center; gap: 10px; }
.pgroup + .pgroup h3 { color: var(--red-600); }
.pgroup ul { list-style: none; counter-reset: pg; }
.pgroup li { padding: 0.75rem 0 0.75rem 2.2rem; border-top: 1px solid var(--gray-100); font-size: 0.93rem; position: relative; counter-increment: pg; }
.pgroup li::before { content: counter(pg, decimal-leading-zero); position: absolute; left: 0; top: 0.8rem; font-family: var(--font-head); font-weight: 800; color: var(--gray-400); font-size: 0.85rem; }
.pgroup li strong { display: block; color: var(--blue-900); }
.pgroup li span { color: var(--red-600); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.pgroup li em { display: block; color: var(--gray-600); font-size: 0.88rem; font-style: normal; margin-top: 2px; }
.inst-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.inst-card { position: relative; display: block; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); border-left: 5px solid var(--red-500); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.6rem 1.7rem; backdrop-filter: blur(6px); }
.inst-card:nth-child(even) { border-left-color: var(--blue-300); }
.inst-num { position: absolute; top: 14px; right: 18px; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: rgba(255,255,255,0.18); line-height: 1; }
.inst-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; padding-right: 3rem; }
.inst-card .proj-loc { color: var(--blue-300); }
.inst-list { list-style: none; margin-top: 0.9rem; }
.inst-list li { position: relative; padding: 0.4rem 0 0.4rem 1.7rem; font-size: 0.92rem; color: rgba(255,255,255,0.88); border-top: 1px solid rgba(255,255,255,0.08); }
.inst-list li::before { content: '\2713'; position: absolute; left: 0; top: 0.45rem; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-500); color: #fff; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; }
.disclaimer { margin-top: 2rem; padding: 1rem 1.3rem; border-radius: 10px; background: rgba(255,255,255,0.08); border-left: 4px solid var(--red-500); font-size: 0.88rem; color: rgba(255,255,255,0.85); }
.embed-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; margin-top: 2rem; }
.embed { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Pills ---------- */
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-bottom: 2.2rem; }
.pills li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--blue-100); color: var(--blue-900); font-weight: 600; font-size: 0.9rem; padding: 0.55rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow); }
.pills li span { font-size: 1.1rem; }

/* ---------- Logos (clients) ---------- */
.logo-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
.logo-tile { width: 190px; background: #fff; border: 1px solid var(--gray-200); border-radius: 14px; padding: 1.4rem 1rem 1rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem; min-height: 180px; transition: transform .2s, box-shadow .2s, border-color .2s; color: var(--gray-600); }
.logo-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-500); }
.logo-tile img { max-height: 76px; width: auto; max-width: 150px; object-fit: contain; }
.logo-caption { font-size: 0.76rem; font-weight: 600; text-align: center; color: var(--gray-600); line-height: 1.3; }
.logo-name { font-family: var(--font-head); font-weight: 700; color: var(--blue-900); text-align: center; }
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem 2.4rem; align-items: center; }
.logo-strip img { max-height: 68px; width: auto; max-width: 140px; filter: grayscale(0.15); opacity: 0.92; transition: opacity .2s, filter .2s, transform .2s; }
.logo-strip img:hover { filter: none; opacity: 1; transform: scale(1.06); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(100deg, var(--blue-900), var(--blue-700) 60%, var(--blue-500)); color: #fff; padding: 3.5rem 0; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(216, 26, 31, 0.25); filter: blur(10px); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 640px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact-grid > * { min-width: 0; }
.office-cards { display: grid; gap: 1.2rem; }
.office { background: #fff; border-radius: var(--radius); padding: 1.6rem 1.7rem; box-shadow: var(--shadow); border-left: 5px solid var(--blue-700); display: flex; gap: 1rem; }
.office + .office { border-left-color: var(--red-500); }
.office-icon { font-size: 1.8rem; flex: none; }
.office h3 { margin-bottom: 0.3rem; }
.office p { color: var(--gray-600); font-size: 0.95rem; }
.office strong { display: block; margin-top: 0.5rem; color: var(--blue-900); }
.office a { font-size: 0.92rem; }
.phone-list { margin-top: 1.4rem; background: #fff; border-radius: var(--radius); padding: 1.4rem 1.7rem; box-shadow: var(--shadow); }
.phone-list h3 { margin-bottom: 0.6rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-700); }
.phone-list ul { list-style: none; }
.phone-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.5rem 0; border-top: 1px solid var(--gray-100); font-size: 0.95rem; }
.phone-list li a { font-weight: 600; color: var(--blue-900); }
.phone-list li span { font-size: 0.78rem; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.05em; }
.phone-list .mail { margin-top: 0.8rem; font-weight: 600; }
.form-card { background: #fff; border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-lg); border-top: 5px solid var(--blue-700); }
.form-card h2 { margin-bottom: 0.5rem; }
.form-card > p { color: var(--gray-600); margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.3rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--blue-900); }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; margin-top: 6px; padding: 0.8rem 0.95rem; border: 1px solid var(--gray-200); border-radius: 10px; font: inherit; color: var(--ink); background: var(--gray-100); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-700); background: #fff; box-shadow: 0 0 0 4px rgba(4, 83, 185, 0.14); }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-msg { border-radius: 10px; padding: 0.9rem 1.1rem; margin-bottom: 1.2rem; font-size: 0.93rem; }
.form-msg.ok { background: #e3f6ea; color: #136b3a; border: 1px solid #bfe8cd; }
.form-msg.err { background: var(--red-100); color: var(--red-700); border: 1px solid #f5bfc2; }
.form-msg ul { margin-left: 1.2rem; }
.map-card { display: flex; }
.map-wrap { flex: 1; min-height: 420px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid #fff; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-900); color: rgba(255,255,255,0.82); padding-top: 4rem; border-top: 6px solid var(--red-500); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1.1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer ul { list-style: none; }
.footer li { padding: 0.25rem 0; }
.footer a { color: rgba(255,255,255,0.82); }
.footer a:hover { color: var(--blue-300); }
.footer p { font-size: 0.93rem; }
.footer-logo { background: #fff; padding: 10px 14px; border-radius: 10px; max-width: 260px; margin-bottom: 1.1rem; }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.footer-tag { font-style: italic; color: var(--blue-300); margin-top: 0.6rem; }
.footer-bottom { background: rgba(0,0,0,0.25); font-size: 0.8rem; padding: 1rem 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Back to top ---------- */
.back-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--blue-700); color: #fff; font-size: 1.3rem; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background .2s; }
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--red-500); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards, .cards.four, .vmv, .cat-grid, .cert-grid, .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse > .split-media { order: 0; }
  .split-badge { left: 12px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 1.2rem; }
  .timeline::before { left: 44px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; background: linear-gradient(180deg, var(--blue-700), var(--red-500)); }
  .tl-node { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; text-align: left; align-items: start; }
  .tl-dot { margin: 0; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.78rem; }
}
@media (max-width: 760px) {
  .topbar-mail, .topbar-tag, .topbar-mobile { display: none; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 0.6rem 4%; box-shadow: var(--shadow-lg); border-top: 1px solid var(--gray-200); }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--gray-100); }
  .nav-links a { display: block; padding: 0.9rem 0; font-size: 0.9rem; }
  .nav-links a::after { display: none; }
  .nav-links .nav-cta { padding: 0.8rem 0; border: 0; }
  .nav-links .nav-cta a { display: inline-flex; }
  .brand-logo, .nav.scrolled .brand-logo { height: 44px; }
  .hero-home, .hero-slider { min-height: 0; }
  .hero-slider { min-height: 520px; }
  .hero-inner { padding: 3.5rem 0; }
  .hero .lead { font-size: 1rem; }
  .section { padding: 3.5rem 0; }
  .cards, .cards.four, .vmv, .cat-grid, .cert-grid, .photo-grid, .portfolio-groups, .proj-list, .inst-grid, .pillars, .embed-grid, .form-grid, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .logo-tile { flex: 1 1 140px; width: auto; }
  .photo-band { height: 220px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .tl-node { grid-template-columns: 70px 1fr; }
  .tl-dot { width: 70px; height: 70px; }
  .tl-dot img { width: 44px; height: 44px; }
  .timeline::before { left: 34px; }
  .slider-arrow { display: none; }
  .back-top { right: 14px; bottom: 14px; }
}

/* ---------- project photo galleries ---------- */
.pgal { margin-bottom: 0.9rem; }
.pgal button { display: block; width: 100%; border: 0; padding: 0; background: var(--gray-100); cursor: pointer; border-radius: 10px; overflow: hidden; position: relative; }
.pgal-main img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .25s; }
.pgal-main:hover img { transform: scale(1.03); }
.pgal-count { position: absolute; right: 10px; bottom: 10px; background: rgba(11, 42, 91, 0.82); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.pgal-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.pgal-thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.pgal-thumbs button:hover img { opacity: 0.85; }
.pgal-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(11, 42, 91, 0.6); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(6, 16, 40, 0.94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lb-img { width: min(92vw, 149vh); max-width: 92vw; max-height: 84vh; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); image-rendering: auto; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 2rem; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.lb-close:hover, .lb-nav:hover { background: var(--red-500); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.85); font-size: 0.9rem; }
@media (max-width: 760px) { .lb-nav { width: 40px; height: 40px; font-size: 1.5rem; } .lb-prev { left: 8px; } .lb-next { right: 8px; } }

/* ---------- reveal-on-scroll + hero entrance animations (js/main.js adds .rv / .in) ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.rv.rv-left { transform: translateX(-40px); }
.rv.rv-right { transform: translateX(40px); }
.rv.rv-zoom { transform: scale(.92); }
.rv.in { opacity: 1; transform: none; }
@keyframes heroIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero-inner > * { animation: heroIn .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-inner > :nth-child(1) { animation-delay: .1s; }
.hero-inner > :nth-child(2) { animation-delay: .22s; }
.hero-inner > :nth-child(3) { animation-delay: .36s; }
.hero-inner > :nth-child(4) { animation-delay: .5s; }
.hero-inner > :nth-child(5) { animation-delay: .64s; }
.hero-slider .slide:not(.active) .hero-inner > * { animation: none; opacity: 0; }
html.no-io .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .rv.rv-left, .rv.rv-right, .rv.rv-zoom { opacity: 1; transform: none; transition: none; }
  .hero-inner > *, .preloader img, .preloader-bar::after { animation: none; }
  .hero-slider .slide-bg { transform: none; transition: none; }
  .hero-slider .slide { transition: none; }
  .photo-grid img, .pgal-main img, .logo-strip img { transition: none; }
}

/* ---------- Products: category tabs, card grid, popup gallery, item lists ---------- */
.cat-tabs { position: sticky; top: 68px; z-index: 50; background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); margin: 0 0 2.5rem; }
.cat-tabs-inner { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.7rem 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cat-tabs-inner::-webkit-scrollbar { display: none; }
.cat-tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--gray-200); background: #fff; color: var(--blue-900); font: inherit; font-weight: 600; font-size: 0.86rem; padding: 0.5rem 1rem; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.cat-tabs button:hover { border-color: var(--blue-500); color: var(--blue-700); }
.cat-tabs button.on { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.cat-section { padding: 0 0 3rem; scroll-margin-top: 140px; }
.cat-section.is-hidden { display: none; }
.cat-section + .cat-section { border-top: 1px solid var(--gray-200); padding-top: 3rem; }
.cat-section-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.cat-section-head .card-icon { margin: 0; flex: none; }
.cat-section-head > div { flex: 1 1 320px; }
.cat-section-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 0.2rem; }
.cat-section-head p { color: var(--gray-600); font-size: 0.95rem; max-width: 820px; }
.cat-inquire { flex: none; }
.subcat { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-600); margin: 1.4rem 0 0.9rem; display: flex; align-items: center; gap: 10px; }
.subcat::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.product-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; }
.product-card:hover, .product-card:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue-300); outline: none; }
.product-media { position: relative; background: linear-gradient(180deg, #fff, var(--blue-50)); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.product-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .35s; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-media .card-icon { margin: 0; width: 72px; height: 72px; font-size: 2rem; }
.product-count { position: absolute; right: 10px; bottom: 10px; background: rgba(11, 42, 91, 0.82); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.product-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.product-logo { height: 22px; width: auto; max-width: 110px; object-fit: contain; object-position: left; margin-bottom: 0.2rem; }
.product-body h3 { font-size: 0.98rem; line-height: 1.3; }
.product-meta { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red-600); }
.product-body p { color: var(--gray-600); font-size: 0.88rem; }
.product-body .btn { margin-top: auto; align-self: flex-start; }
.item-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }
.item-group h4 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-700); margin-bottom: 0.5rem; }
.pills.left { justify-content: flex-start; margin-bottom: 0; }
.pills.left li { font-weight: 500; font-size: 0.85rem; padding: 0.4rem 0.9rem; box-shadow: none; }
.items-list { margin-top: 0.5rem; }

/* product popup */
.product-modal { position: fixed; inset: 0; z-index: 400; background: rgba(6, 16, 40, 0.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.product-modal[hidden] { display: none; }
.pm-card { position: relative; width: min(1120px, 100%); max-height: calc(100vh - 4rem); overflow: auto; background: #fff; border-radius: var(--radius); box-shadow: 0 40px 90px rgba(0,0,0,0.45); display: grid; grid-template-columns: 1fr 1.1fr; animation: pmIn .3s cubic-bezier(.2, .7, .2, 1); }
@keyframes pmIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.pm-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--gray-100); color: var(--blue-900); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.pm-close:hover { background: var(--red-500); color: #fff; }
.pm-gallery { background: linear-gradient(180deg, #fff, var(--blue-50)); padding: 2rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.8rem; border-right: 1px solid var(--gray-200); }
.pm-main { border: 0; background: transparent; padding: 0; cursor: zoom-in; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.pm-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pm-thumbs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pm-thumbs button { width: 64px; height: 64px; border: 2px solid var(--gray-200); border-radius: 10px; background: #fff; padding: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color .15s; }
.pm-thumbs button.on, .pm-thumbs button:hover { border-color: var(--blue-700); }
.pm-thumbs img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pm-info { padding: 2.2rem 2.2rem 2rem; }
.pm-brand img { height: 28px; width: auto; max-width: 140px; object-fit: contain; object-position: left; margin-bottom: 0.6rem; }
.pm-brand span { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-600); margin-bottom: 0.4rem; }
.pm-info h2 { font-size: 1.35rem; margin-bottom: 0.4rem; padding-right: 2rem; }
.pm-meta { font-size: 0.8rem; font-weight: 600; color: var(--gray-600); margin-bottom: 0.6rem; }
.pm-meta b { color: var(--blue-700); font-weight: 700; }
.pm-tagline { color: var(--blue-900); font-weight: 600; margin-bottom: 0.8rem; }
.pm-body { color: var(--gray-600); font-size: 0.93rem; }
.pm-body p + p { margin-top: 0.7rem; }
.pm-features { margin-top: 0.9rem; }
.pm-features li { color: var(--gray-700); border-top-color: var(--gray-100); }
.pm-features li::before { background: var(--blue-700); }
.pm-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.4rem; }
body.pm-open { overflow: hidden; }
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .pm-card { grid-template-columns: 1fr; }
  .pm-gallery { border-right: 0; border-bottom: 1px solid var(--gray-200); }
  .pm-main { aspect-ratio: 4 / 3; }
  .item-groups { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cat-tabs { top: 60px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .product-body { padding: 0.8rem; }
  .product-body h3 { font-size: 0.9rem; }
  .product-modal { padding: 0; }
  .pm-card { max-height: 100vh; height: 100vh; border-radius: 0; }
  .pm-info { padding: 1.4rem 1.2rem 2rem; }
  .cat-section-head .cat-inquire { order: 3; }
}
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pm-card { animation: none; } .product-card:hover .product-media img { transform: none; } }

/* ==========================================================================
   Theme revision: blue medical look (ring-framed circular photos, pill section labels, navy icon cards,
   curved blue shapes, decorative bars, wave + cross patterns). Red stays as a small accent.
   These rules come after the base styles on purpose and override them.
   ========================================================================== */
:root {
  --blue-600: #1f63cf;
  --blue-400: #4f9ae8;
  --blue-300: #8fc1f5;
  --blue-200: #c7dcf7;
  --wave: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='400' viewBox='0 0 1200 400' fill='none' stroke='%239ec2ef' stroke-width='1' opacity='.55'><path d='M0 200c150-120 300-120 450 0s300 120 450 0 300-120 450 0'/><path d='M0 230c150-120 300-120 450 0s300 120 450 0 300-120 450 0'/><path d='M0 260c150-120 300-120 450 0s300 120 450 0 300-120 450 0'/><path d='M0 170c150-120 300-120 450 0s300 120 450 0 300-120 450 0'/><path d='M0 140c150-120 300-120 450 0s300 120 450 0 300-120 450 0'/></svg>");
  --cross: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='%23b9d4f5' stroke-width='2'><path d='M20 12h10v8h8v10h-8v8H20v-8h-8V20h8z'/><path d='M80 62h8v6h6v8h-6v6h-8v-6h-6v-8h6z'/><path d='M100 18h6v5h5v6h-5v5h-6v-5h-5v-6h5z'/></svg>");
}
h1, h2, h3, h4 { letter-spacing: -0.015em; }
h2 { font-weight: 800; }

/* ---------- pill section labels (reference: OUR SERVICE / CONTACT US) ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(90deg, var(--blue-900), var(--blue-600)); color: #fff; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; padding: 0.5rem 1.25rem; border-radius: 999px; border: 2px solid #fff; box-shadow: 0 8px 18px rgba(4, 83, 185, 0.22); margin-bottom: 1rem; }
.eyebrow::before { display: none; }
.eyebrow::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red-500); flex: none; }
.eyebrow.light { color: #fff; background: linear-gradient(90deg, var(--blue-900), var(--blue-600)); }
.section.dark .eyebrow { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.55); color: #fff; box-shadow: none; }

/* ---------- decorative bar under headings (reference: two-tone pill) ---------- */
.section-head::after { content: ''; display: block; width: 150px; height: 10px; border-radius: 999px; margin-top: 1.2rem; background: linear-gradient(90deg, var(--blue-900) 0 36%, var(--blue-400) 36%); }
.section-head.center::after { margin-left: auto; margin-right: auto; }
.section-head p { margin-top: 0; }
.deco-bar { display: block; width: 150px; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--blue-900) 0 36%, var(--blue-400) 36%); }
.deco-dots { display: inline-flex; gap: 8px; }
.deco-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--blue-700); display: block; }
.deco-dots i:nth-child(2) { background: var(--blue-400); }
.deco-dots i:nth-child(3) { background: var(--red-500); }

/* ---------- buttons ---------- */
.btn-primary { background: linear-gradient(90deg, var(--blue-900), var(--blue-600)); box-shadow: 0 10px 22px rgba(4, 83, 185, 0.3); }
.btn-primary:hover { background: linear-gradient(90deg, var(--blue-800), var(--blue-500)); }
.btn-outline { border-color: var(--blue-700); color: var(--blue-700); background: #fff; }
.nav-links .nav-cta a.btn { background: linear-gradient(90deg, var(--blue-900), var(--blue-600)); }
.nav-links .nav-cta a.btn:hover { background: var(--red-500); }

/* ---------- home hero: text left, ring-framed photo right, blue swoosh behind ---------- */
.hero-slider { background: linear-gradient(135deg, #fff 0%, var(--blue-50) 55%, #e4eefb 100%); color: var(--ink); min-height: min(82vh, 720px); isolation: isolate; }
.hero-slider::before { display: none; }
.hero-deco { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-deco::before { content: ''; position: absolute; right: -22vw; top: -40%; width: 70vw; height: 180%; border-radius: 50%; background: linear-gradient(200deg, var(--blue-900) 0%, var(--blue-700) 45%, var(--blue-400) 100%); }
.hero-deco::after { content: ''; position: absolute; right: -8vw; top: -30%; width: 42vw; height: 160%; border-radius: 50%; background: linear-gradient(200deg, var(--blue-400), var(--blue-300)); opacity: 0.55; }
.hero-deco .deco-bar { position: absolute; left: 4%; top: 28px; }
.hero-deco .deco-dots { position: absolute; left: 4%; bottom: 28px; }
.hero-slider .slide { position: absolute; inset: 0; display: flex; align-items: center; }
.hero-slider .slide-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: center; position: relative; z-index: 2; }
.hero-slider .hero-inner { padding: 3rem 0; max-width: none; }
.hero-slider h1 { color: var(--blue-900); font-size: clamp(2.3rem, 4.6vw, 3.9rem); text-transform: uppercase; line-height: 1.05; }
.hero-slider .lead { color: var(--gray-700); }
.slide-art { position: relative; display: flex; justify-content: center; align-items: center; }
.slide-ring { width: min(100%, 440px); aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; border: 12px solid var(--blue-900); box-shadow: 0 0 0 14px var(--blue-400), 0 0 0 16px rgba(255,255,255,0.9), 0 30px 60px rgba(11, 42, 91, 0.35); background: #fff; }
.slide-ring img { width: 100%; height: 100%; object-fit: cover; }
.slide-cross { position: absolute; left: 6%; bottom: 8%; width: 34px; height: 34px; background: linear-gradient(90deg, var(--red-500), #ff6a6f); clip-path: polygon(33% 0, 67% 0, 67% 33%, 100% 33%, 100% 67%, 67% 67%, 67% 100%, 33% 100%, 33% 67%, 0 67%, 0 33%, 33% 33%); animation: floatY 4s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-slider .slide.active .slide-art { animation: heroIn .9s cubic-bezier(.2, .7, .2, 1) both .25s; }
.hero-slider .slide:not(.active) .slide-art { opacity: 0; }
.slider-nav { bottom: 26px; }
.slider-dots button { background: var(--blue-200); }
.slider-dots button.on { background: var(--blue-700); }
.slider-arrow { border-color: var(--blue-200); background: #fff; color: var(--blue-700); }

/* ---------- inner page banner: curved bottom + bar ---------- */
.hero-small { border-bottom-left-radius: 120px; padding-bottom: 4.5rem; }
.hero-small .hero-inner::after { content: ''; display: block; width: 150px; height: 10px; border-radius: 999px; margin-top: 1.6rem; background: linear-gradient(90deg, var(--red-500) 0 36%, var(--blue-400) 36%); }

/* ---------- section backgrounds: wave lines + medical crosses ---------- */
.section.alt { background: var(--gray-100) var(--wave) center / 1200px 400px repeat; }
.section.blue { background: var(--blue-50) var(--cross) 0 0 / 120px 120px repeat; position: relative; }

/* ---------- ring-framed circular photos in split layouts ---------- */
.split-media { display: flex; justify-content: center; }
.split-media::before { display: none; }
.split-media img, .split-media.tall img { width: min(100%, 440px); aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; border: 12px solid var(--blue-900); box-shadow: 0 0 0 12px var(--blue-400), var(--shadow-lg); background: #fff; }
.split-badge { left: 4%; bottom: 6%; border-radius: 999px; padding: 0.9rem 1.4rem; border-left: 0; background: linear-gradient(90deg, var(--blue-900), var(--blue-600)); border: 3px solid #fff; }
.split-badge strong { font-size: 1.7rem; }
.split-badge span { display: block; }
.split-badge::after { content: ''; position: absolute; right: -6px; top: -6px; width: 16px; height: 16px; border-radius: 50%; background: var(--red-500); border: 2px solid #fff; }

/* ---------- navy icon cards (reference: Medical Technology / Research cards) ---------- */
.cards { row-gap: 3rem; margin-top: 1.5rem; }
.card { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); color: #fff; border-top: 0; border-radius: 20px; padding: 2.6rem 1.6rem 1.8rem; box-shadow: 0 16px 36px rgba(11, 42, 91, 0.22); }
.card:nth-child(3n+2) { background: linear-gradient(135deg, var(--blue-800), var(--blue-600)); }
.card:nth-child(3n+3) { background: linear-gradient(135deg, var(--blue-900), var(--blue-800)); }
.card > .card-icon { position: absolute; top: -30px; left: 22px; width: 62px; height: 62px; border-radius: 50%; background: var(--blue-500); border: 4px solid #fff; box-shadow: 0 0 0 3px var(--blue-400), 0 8px 18px rgba(11, 42, 91, 0.3); margin: 0; font-size: 1.6rem; }
.card:nth-child(3n+2) > .card-icon { background: var(--red-500); box-shadow: 0 0 0 3px var(--red-100), 0 8px 18px rgba(11, 42, 91, 0.3); }
.card h3, .card p { color: #fff; }
.card p { color: rgba(255,255,255,0.85); }
.card-brand { color: var(--blue-300); }
.card .btn-outline { border-color: rgba(255,255,255,0.7); color: #fff; background: transparent; }
.section.dark .card { background: rgba(255,255,255,0.08); border-top: 0; }

/* ---------- certificates: ring icons ---------- */
.cert-card { border-left: 0; border-top: 4px solid var(--blue-700); border-radius: 18px; }
.cert-card:nth-child(even) { border-top-color: var(--red-500); }
.cert-icon { border-radius: 50%; background: linear-gradient(135deg, var(--blue-900), var(--blue-600)); color: #fff; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--blue-400); }
.cert-card:nth-child(even) .cert-icon { background: linear-gradient(135deg, var(--red-600), var(--red-500)); box-shadow: 0 0 0 3px var(--red-100); }
.cert-check { background: var(--blue-700); }

/* ---------- category + timeline + stats accents ---------- */
.cat-card { border-top: 0; border-radius: 20px; }
.cat-head .card-icon { border-radius: 50%; background: linear-gradient(135deg, var(--blue-900), var(--blue-600)); color: #fff; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--blue-400); }
.cat-card:nth-child(3n+2) .card-icon { background: linear-gradient(135deg, var(--red-600), var(--red-500)); box-shadow: 0 0 0 3px var(--red-100); }
.cat-section-head .card-icon { border-radius: 50%; background: linear-gradient(135deg, var(--blue-900), var(--blue-600)); color: #fff; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--blue-400); }
.stat { border-bottom: 0; border-radius: 20px; border: 1px solid var(--blue-100); }
.stat-icon { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 0.8rem; background: linear-gradient(135deg, var(--blue-900), var(--blue-600)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--blue-400); }
.stat:nth-child(even) .stat-icon { background: linear-gradient(135deg, var(--red-600), var(--red-500)); box-shadow: 0 0 0 3px var(--red-100); }
.tl-dot { border-width: 10px; box-shadow: 0 0 0 10px var(--blue-400), var(--shadow); }
.tl-node:nth-child(2) .tl-dot { box-shadow: 0 0 0 10px var(--red-100), var(--shadow); }
.pills li { border-radius: 999px; background: linear-gradient(90deg, var(--blue-900), var(--blue-600)); color: #fff; border: 2px solid #fff; }
.pills.left li { background: #fff; color: var(--blue-900); border: 1px solid var(--blue-100); }
.logo-tile { border-radius: 24px; }
.logo-tile:hover { border-color: var(--blue-400); }
.office { border-left: 0; border-top: 4px solid var(--blue-700); border-radius: 18px; }
.office + .office { border-top-color: var(--red-500); }
.office-icon { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-900), var(--blue-600)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--blue-400); }
.form-card { border-top: 0; border-radius: 22px; }
.notice-card { border-radius: 20px; }

/* ---------- CTA band + footer curves ---------- */
.cta-band { border-radius: 60px 0 60px 0; margin: 0 1.5rem; }
.cta-band::after { background: rgba(216, 26, 31, 0.3); }
.footer { border-top: 0; border-radius: 70px 70px 0 0; background: linear-gradient(180deg, var(--blue-900), #071c3f); margin-top: 1.5rem; padding-top: 4.5rem; }
.footer-bottom { border-top: 3px solid var(--red-500); background: rgba(0,0,0,0.28); }

/* ---------- Products page fixes: tabs wrap (nothing hidden), smaller uniform thumbnails ---------- */
.cat-tabs { position: static; margin-bottom: 2rem; border: 0; background: transparent; backdrop-filter: none; }
.cat-tabs-inner { flex-wrap: wrap; justify-content: center; overflow: visible; padding: 0.4rem 0; gap: 0.6rem; }
.cat-tabs button.on { background: linear-gradient(90deg, var(--blue-900), var(--blue-600)); }
.product-media { aspect-ratio: auto; height: 150px; padding: 0.8rem; }
.product-media img { max-height: 120px; max-width: 86%; }
.product-card { border-radius: 18px; }
.product-body { padding: 0.9rem 1rem 1rem; gap: 0.3rem; }
.product-body h3 { font-size: 0.92rem; }
.product-body p { font-size: 0.84rem; }
.product-logo { height: 18px; }

@media (max-width: 1000px) {
  .hero-slider .slide-grid { grid-template-columns: 1fr; gap: 1rem; text-align: center; }
  .hero-slider .hero-inner { padding: 2.5rem 0 0.5rem; order: 2; }
  .hero-slider .hero-cta { justify-content: center; }
  .slide-art { order: 1; padding-top: 2.5rem; }
  .slide-ring { width: min(60vw, 300px); border-width: 8px; box-shadow: 0 0 0 10px var(--blue-400), 0 20px 40px rgba(11, 42, 91, 0.3); }
  .hero-deco::before { right: -40vw; top: -10%; width: 120vw; height: 60%; }
  .hero-deco::after { display: none; }
  .hero-deco .deco-bar, .hero-deco .deco-dots { display: none; }
  .hero-slider { min-height: 0; }
  .hero-slider .slide { position: relative; display: none; }
  .hero-slider .slide.active { display: block; }
  .split-media img, .split-media.tall img { width: min(100%, 340px); }
  .hero-small { border-bottom-left-radius: 60px; }
  .cta-band { margin: 0; border-radius: 0; }
  .footer { border-radius: 36px 36px 0 0; }
}
@media (max-width: 760px) {
  .cat-tabs-inner { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; }
  .product-media { height: 130px; }
  .product-media img { max-height: 100px; }
  .cards { row-gap: 2.6rem; }
  .slide-ring { width: min(64vw, 260px); }
}
@media (prefers-reduced-motion: reduce) { .slide-cross { animation: none; } .hero-slider .slide.active .slide-art { animation: none; } }

/* ---------- revision 3: plain CTA variant, no purple blob, map beside the office cards ---------- */
.cta-band::after { display: none; }
.cta-band.plain { background: #fff; color: var(--ink); margin: 0; border-radius: 0; padding: 4rem 0; border-top: 1px solid var(--gray-200); }
.cta-band.plain h2 { color: var(--blue-900); }
.cta-band.plain p { color: var(--gray-600); }
.cta-band.plain .btn-white { background: linear-gradient(90deg, var(--blue-900), var(--blue-600)); color: #fff; box-shadow: 0 10px 22px rgba(4, 83, 185, 0.3); }
.cta-band.plain .btn-white:hover { background: var(--red-500); }
.contact-grid { align-items: stretch; }
.map-side { flex-direction: column; gap: 1rem; }
.map-title { font-size: 1.3rem; }
.map-side .map-wrap { flex: 1; min-height: 520px; border-radius: 22px; border: 0; box-shadow: var(--shadow-lg); outline: 4px solid #fff; }
.map-side .map-wrap iframe { min-height: 520px; height: 100%; }
@media (max-width: 1000px) { .map-side .map-wrap, .map-side .map-wrap iframe { min-height: 380px; } }

/* ---------- revision 4: every pre-footer call-to-action is the plain white version (no blue box) ---------- */
.cta-band { background: #fff; color: var(--ink); margin: 0; border-radius: 0; padding: 4rem 0; border-top: 1px solid var(--gray-200); }
.cta-band h2 { color: var(--blue-900); }
.cta-band p { color: var(--gray-600); }
.cta-band .btn-white { background: linear-gradient(90deg, var(--blue-900), var(--blue-600)); color: #fff; box-shadow: 0 10px 22px rgba(4, 83, 185, 0.3); }
.cta-band .btn-white:hover { background: var(--red-500); color: #fff; }
.cta-inner { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
