:root {
  --teal: #00a99d;
  --teal-dark: #007f78;
  --navy: #0b3558;
  --ink: #10283b;
  --muted: #607383;
  --line: #dce8ee;
  --soft: #f3f9f8;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(11, 53, 88, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--white); line-height: 1.6; }
a { color: inherit; text-decoration: none; }

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.topbar { background: var(--navy); color: rgba(255,255,255,0.92); font-size: 14px; }
.topbar__inner { min-height: 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.94); backdrop-filter: blur(16px); box-shadow: 0 1px 0 rgba(11,53,88,0.08); }
.navbar__inner { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 220px; }
.brand__mark { width: 150px; height: 62px; display: grid; place-items: center; border-radius: 8px; background: var(--white); box-shadow: 0 8px 22px rgba(0,169,157,0.14); overflow: hidden; }
.brand__mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand__mark--wide { width: 214px; height: 100px; }
.brand__text { display: none; }
.brand strong, .brand em { display: block; }
.brand strong { color: var(--navy); font-size: 15px; line-height: 1.2; text-transform: uppercase; }
.brand em { color: var(--teal-dark); font-size: 13px; font-style: normal; }

.menu { display: flex; align-items: center; justify-content: flex-end; gap: 18px; color: var(--navy); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.menu a:not(.btn) { position: relative; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.menu a:hover::after, .menu a:focus-visible::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.nav-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--navy); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 1px solid var(--teal); border-radius: 8px; background: var(--teal); color: var(--white); font-weight: 800; line-height: 1; box-shadow: 0 14px 30px rgba(0,169,157,0.22); cursor: pointer; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); background: var(--teal-dark); box-shadow: 0 18px 36px rgba(0,169,157,0.28); }
.btn--small { min-height: 38px; padding-inline: 16px; font-size: 12px; }
.btn--ghost { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.55); color: var(--white); box-shadow: none; }
.btn--light { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.48); color: var(--white); box-shadow: none; }

.hero { position: relative; min-height: 680px; display: grid; align-items: stretch; overflow: hidden; color: var(--white); background: var(--navy); }
.hero__media { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,53,88,0.95), rgba(11,53,88,0.72) 45%, rgba(11,53,88,0.22)), url("assets/pharma-hero.png") center right / cover no-repeat; }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0,670px) minmax(240px,360px); align-items: center; gap: 50px; padding: 96px 0; }

.eyebrow { margin: 0 0 14px; color: var(--teal); font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.hero h1, .section h2 { margin: 0; line-height: 1.08; color: inherit; }
.hero h1 { max-width: 660px; font-size: clamp(46px, 7vw, 86px); }
.hero__lead { max-width: 650px; margin: 22px 0 0; font-size: clamp(20px, 2.2vw, 27px); line-height: 1.35; }
.hero__body { max-width: 650px; margin: 18px 0 0; color: rgba(255,255,255,0.86); font-size: 17px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.hero__panel { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; padding: 18px; border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; background: rgba(255,255,255,0.14); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.hero__panel div { min-height: 116px; display: grid; align-content: center; padding: 18px; border-radius: 8px; background: rgba(255,255,255,0.16); }
.hero__panel strong { font-size: 28px; line-height: 1; }
.hero__panel span { color: rgba(255,255,255,0.78); }

.section { padding: 92px 0; }
.section--soft { background: var(--soft); }
.section h2 { max-width: 760px; color: var(--navy); font-size: clamp(32px, 4.2vw, 52px); }
.section h3 { color: var(--navy); }
.section__head { margin-bottom: 34px; }
.section__copy p { max-width: 680px; color: var(--muted); font-size: 17px; }

.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,440px); gap: 48px; align-items: center; }
.split--reverse { grid-template-columns: minmax(280px,440px) minmax(0,1fr); }
.text-link { display: inline-flex; margin-top: 12px; color: var(--teal-dark); font-weight: 800; }

.about__card, .mini-card, .division-card, .blog-card, .inquiry-form { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.82); box-shadow: 0 18px 54px rgba(11,53,88,0.1); }
.about__card { padding: 38px; background: linear-gradient(135deg, rgba(0,169,157,0.1), rgba(11,53,88,0.03)), var(--white); }
.card-label { color: var(--teal-dark); font-weight: 800; text-transform: uppercase; font-size: 13px; }

.division-grid, .blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.division-card, .blog-card { min-height: 220px; padding: 26px; transition: transform 180ms ease, border-color 180ms ease; }
.division-card:hover, .blog-card:hover { transform: translateY(-4px); border-color: rgba(0,169,157,0.5); }
.division-card span, .blog-card span { color: var(--teal-dark); font-weight: 800; }

/* Clickable division/mini cards */
.division-card--link, .mini-card--link { cursor: pointer; }
.division-card__cta, .mini-card__cta { display: inline-block; margin-top: 10px; color: var(--teal-dark); font-size: 13px; font-weight: 800; }

.portfolio { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 22px; }
.portfolio__main { padding: 34px; border-radius: 8px; background: var(--navy); color: var(--white); }
.portfolio__main h3 { color: var(--white); font-size: 28px; }
.portfolio__intro { max-width: 680px; color: rgba(255,255,255,0.82); }

.category-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 24px; }
.category-grid span, .why-grid span, .market-list span { display: flex; align-items: center; min-height: 52px; padding: 12px 16px; border-radius: 8px; font-weight: 800; }
.category-grid span { background: rgba(255,255,255,0.12); }

.portfolio__side { display: grid; gap: 16px; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }


.mini-card { padding: 22px; }

.global { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.global::before { content: ""; position: absolute; inset: 0; opacity: 0.22; background: radial-gradient(circle at 20% 40%, var(--teal), transparent 22%), linear-gradient(90deg, transparent 10%, rgba(255,255,255,0.24) 10% 10.4%, transparent 10.4% 22%, rgba(255,255,255,0.18) 22% 22.4%, transparent 22.4%), linear-gradient(0deg, transparent 12%, rgba(255,255,255,0.14) 12% 12.4%, transparent 12.4% 30%, rgba(255,255,255,0.12) 30% 30.4%, transparent 30.4%); }
.global__inner { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,480px); gap: 42px; align-items: center; }
.global h2 { color: var(--white); }
.global p { color: rgba(255,255,255,0.82); }

.market-list, .quality__badges, .why-grid { display: grid; gap: 14px; }
.market-list { grid-template-columns: repeat(2,1fr); }
.market-list span { color: var(--white); background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.18); }
.quality__badges { grid-template-columns: repeat(2,1fr); }
.quality-badge { display: flex; align-items: center; justify-content: center; min-height: 172px; padding: 16px; border-radius: 8px; background: var(--soft); border: 1px solid rgba(0,169,157,0.22); }
.quality-badge img { display: block; width: 100%; max-width: 190px; height: 138px; object-fit: contain; mix-blend-mode: multiply; }
.why-grid { grid-template-columns: repeat(3,1fr); }
.why-grid span { color: var(--navy); background: var(--white); border: 1px solid var(--line); }

.blog-card p, .mini-card p, .division-card p, .about__card p { color: var(--muted); }

.inquiry { background: linear-gradient(135deg, rgba(0,169,157,0.08), rgba(11,53,88,0.06)), var(--white); }
.inquiry__inner { display: grid; grid-template-columns: minmax(0,420px) minmax(0,1fr); gap: 42px; align-items: start; }
.inquiry-form { padding: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }

label { display: grid; gap: 7px; color: var(--navy); font-size: 14px; font-weight: 800; }
label.full { grid-column: 1 / -1; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px 13px; font: inherit; color: var(--ink); background: var(--white); }
input:focus, textarea:focus { outline: 3px solid rgba(0,169,157,0.18); border-color: var(--teal); }
.inquiry-form .btn { margin-top: 18px; }
.form-status { min-height: 24px; color: var(--teal-dark); font-weight: 800; }

.footer { padding: 58px 0 24px; background: #071f35; color: rgba(255,255,255,0.82); }
.footer__grid { display: grid; grid-template-columns: minmax(0,1.6fr) 1fr 1fr; gap: 34px; }
.brand--footer strong { color: var(--white); }
.footer h2 { margin: 0 0 14px; color: var(--white); font-size: 18px; }
.footer a { display: block; margin: 8px 0; }
.footer__bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.14); }

.contact-map { padding: 84px 0; background: var(--soft); }
.contact-map__inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 42px; align-items: center; }
.contact-map h2 { margin: 0; color: var(--navy); font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; }
.contact-map__copy p:last-child { color: var(--muted); font-size: 17px; line-height: 1.65; }
.contact-map iframe { display: block; width: 100%; min-height: 360px; border-radius: 8px; box-shadow: var(--shadow); }

.whatsapp-button { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 999px; background: #25d366; color: #073b22; font-size: 13px; font-weight: 800; box-shadow: 0 14px 30px rgba(0,0,0,0.22); }
.whatsapp-button:hover, .whatsapp-button:focus-visible { background: #1fbd5a; transform: translateY(-2px); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Modals ─────────────────────────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(11,53,88,0.62); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.is-open { display: flex; }
.modal { width: min(900px, 100%); max-height: 88vh; display: flex; flex-direction: column; border-radius: 12px; background: var(--white); box-shadow: 0 40px 100px rgba(11,53,88,0.28); overflow: hidden; }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 28px 32px 22px; border-bottom: 1px solid var(--line); flex-shrink: 0; background: var(--soft); }
.modal__head h2 { margin: 0; font-size: 26px; color: var(--navy); }
.modal__close { flex-shrink: 0; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--muted); font-size: 16px; cursor: pointer; transition: background 180ms ease; }
.modal__close:hover { background: var(--line); color: var(--navy); }
.modal__body { overflow-y: auto; padding: 24px 32px 32px; }

.product-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.product-table th { position: sticky; top: 0; padding: 12px 14px; background: var(--navy); color: var(--white); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: 0.04em; text-align: left; }
.product-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.product-table tr:last-child td { border-bottom: 0; }
.product-table tr:hover td { background: var(--soft); }
.product-table td:first-child { color: var(--teal-dark); font-weight: 600; }
.product-table td:nth-child(2) { color: var(--muted); font-size: 13px; }

.btn-inquiry { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 14px; border-radius: 6px; background: var(--teal); color: var(--white); font-size: 12px; font-weight: 800; text-decoration: none; cursor: pointer; transition: background 180ms ease; border: none; }
.btn-inquiry:hover { background: var(--teal-dark); }

.table-search-wrap { padding: 0 0 18px; }
.table-search { width: 100%; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--ink); background: var(--white); outline: none; transition: border-color 200ms ease; }
.table-search:focus { border-color: var(--teal); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .menu { position: absolute; left: 20px; right: 20px; top: 148px; display: none; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .menu.is-open { display: flex; }
  .hero__inner, .split, .split--reverse, .portfolio, .global__inner, .inquiry__inner, .contact-map__inner { grid-template-columns: 1fr; }
  .hero__inner { padding: 78px 0; }
  .division-grid, .blog-grid, .why-grid { grid-template-columns: repeat(2,1fr); }
  .portfolio__side { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1160px); }
  .topbar__inner { gap: 10px 18px; padding: 8px 0; }
  .brand { min-width: 0; gap: 8px; }
  .brand__mark, .brand__mark--wide { width: 138px; height: 66px; }
  .brand strong { font-size: 12px; }
  .brand em { font-size: 11px; }
  .hero { min-height: auto; }
  .hero__media { background: linear-gradient(180deg, rgba(11,53,88,0.96), rgba(11,53,88,0.76)), url("assets/pharma-hero.png") center / cover no-repeat; }
  .hero h1 { font-size: 44px; }
  .hero__panel, .category-grid, .division-grid, .blog-grid, .market-list, .quality__badges, .why-grid, .form-grid, .portfolio__side, .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .footer__bottom { flex-direction: column; }
  .contact-map { padding: 68px 0; }
  .contact-map iframe { min-height: 300px; }
  .whatsapp-button { right: 14px; bottom: 14px; }
  .modal__head, .modal__body { padding-inline: 18px; }
  .product-table th, .product-table td { padding: 10px 10px; }
}
