/* Mawar Integrated Solutions (MiS) — bold, clean, premium medical-device look */
:root {
  --red: #961b2b;
  --red-dark: #7a1523;
  --red-deep: #5e0f1b;
  --rose: #f2a3ae;
  --charcoal: #1d1a1b;
  --charcoal-2: #272223;
  --black: #131011;
  --off: #f3efec;
  --ink: #231f20;
  --muted: #5c5756;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 72rem;
  --header-h: 4.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + .5rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--charcoal);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: #fff; color: var(--ink); padding: .6rem 1rem; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(29, 26, 27, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: #fff; }
.brand-mark { width: 2.75rem; height: 2.75rem; }
.brand-name { display: flex; flex-wrap: wrap; gap: 0 .3em; font-weight: 700; font-size: .78rem; line-height: 1.15; letter-spacing: .08em; text-transform: uppercase; max-width: 9rem; }
.nav { display: flex; gap: .4rem; }
.nav a {
  position: relative; text-decoration: none; color: rgba(255, 255, 255, .85);
  font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .55rem .9rem; transition: color .2s;
}
.nav a::after {
  content: ''; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 2px;
  background: var(--rose); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover, .nav a:focus-visible { color: #fff; }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  font: inherit; font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; padding: 1rem 1.7rem; border: 2px solid transparent; border-radius: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 .9rem 1.8rem rgba(0, 0, 0, .28); }
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { background: var(--off); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-whatsapp { background: #fff; color: var(--ink); font-size: 1rem; padding: 1.2rem 2rem; }
.btn-whatsapp .icon { width: 1.6rem; height: 1.6rem; color: #128c4b; }
.btn-whatsapp:hover { background: var(--off); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(255, 255, 255, .13), transparent 55%),
    linear-gradient(135deg, #a61f31 0%, var(--red) 45%, var(--red-dark) 100%);
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(4.5rem, 9vw, 8rem);
}
.hero::after { /* fine geometric lines */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 90%);
  mask-image: linear-gradient(100deg, transparent 20%, #000 90%);
}
.hero-inner { position: relative; z-index: 1; max-width: 100%; }
.hero-inner > * { max-width: 40rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-weight: 700; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--rose);
  margin-bottom: 1.25rem;
}
.eyebrow::before { content: ''; width: 2.25rem; height: 3px; background: currentColor; }
.hero .eyebrow { color: #fff; }
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.75rem); font-weight: 800; line-height: 1.04; letter-spacing: -.02em;
}
.hero .lede { margin-top: 1.5rem; font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 500; color: rgba(255, 255, 255, .95); }
.mis-line {
  margin-top: 2.25rem; padding-left: 1.25rem; border-left: 4px solid #fff;
  font-weight: 600; font-size: clamp(.98rem, 1.8vw, 1.15rem); line-height: 1.4; color: rgba(255, 255, 255, .92);
}
.mis-tag { display: block; font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; color: #fff; margin-bottom: .5rem; }
.mis-line span { display: block; }
.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-art {
  position: absolute; z-index: 0; pointer-events: none;
  right: max(2.5rem, calc((100vw - var(--wrap)) / 2 + .5rem)); top: 50%; transform: translateY(-50%);
  width: clamp(15rem, 31vw, 26rem); aspect-ratio: 1;
}
.sq { position: absolute; display: block; }
.sq-solid { inset: 0; background: linear-gradient(145deg, var(--red-dark), var(--red-deep)); box-shadow: 0 2rem 5rem rgba(60, 5, 15, .45); }
.sq-outline { inset: -1.75rem 1.75rem 1.75rem -1.75rem; border: 2px solid rgba(255, 255, 255, .4); }
.mis {
  position: absolute; right: 7%; bottom: 3%;
  font-size: clamp(6rem, 14vw, 11.5rem); font-weight: 800; line-height: .85; letter-spacing: -.05em; color: #fff;
}

/* ---------- Value strip ---------- */
.strip { background: var(--charcoal); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.strip-list { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-list li {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  padding: 1.5rem 1rem; color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; text-align: center;
}
.strip-list li + li { border-left: 1px solid rgba(255, 255, 255, .12); }
.strip-list li::before { content: ''; flex: none; width: .65rem; height: .65rem; background: var(--rose); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-header { margin-bottom: 2.5rem; }
.section-header h2 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.section-intro { margin-top: 1.1rem; max-width: 40rem; font-size: 1.1rem; color: var(--muted); }

.products { background: var(--off); color: var(--ink); position: relative; }
.products .eyebrow { color: var(--red); }
.products-dark { background: var(--charcoal); color: #fff; }
.products-dark .brand-heading { color: #fff; }

/* paediatric highlight */
.paediatric-highlight {
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.25rem;
  background: var(--red); color: #fff; font-weight: 600; font-size: 1.1rem;
  padding: 1.25rem 1.75rem; margin-bottom: clamp(3rem, 6vw, 5rem);
  border-left: 10px solid var(--charcoal);
  box-shadow: 0 1rem 2.5rem rgba(150, 27, 43, .25);
}
.badge {
  display: inline-block; background: #fff; color: var(--red);
  font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .45rem .85rem; white-space: nowrap;
}

/* brand blocks */
.brand-heading {
  display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.25rem;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--ink);
  margin-bottom: 2rem;
}
.brand-heading::after { content: ''; flex: 1 1 6rem; height: 3px; background: var(--red); min-width: 3rem; }
.products-dark .brand-heading::after { background: var(--rose); }
.brand-logo-chip {
  display: grid; place-items: center;
  background: #fff; padding: .55rem .85rem;
  box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .12);
}
.brand-logo-chip img { width: auto; height: 3.35rem; display: block; }
.products .brand-logo-chip img { height: 3.15rem; }
.products-dark .brand-logo-chip { box-shadow: 0 .35rem 1.1rem rgba(0, 0, 0, .35); }
.brand-title { font-size: inherit; font-weight: 800; }
.brand-block { display: grid; gap: clamp(2rem, 4vw, 3rem); }

/* product cards */
.product {
  position: relative; display: grid; grid-template-columns: 1fr 1.08fr; overflow: hidden;
  background: #fff; color: var(--ink);
  box-shadow: 0 .5rem 2rem rgba(35, 20, 22, .08);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--red); z-index: 2; }
.product:hover { transform: translateY(-6px); box-shadow: 0 1.5rem 3.5rem rgba(35, 20, 22, .16); }
.products-dark .product { background: var(--charcoal-2); color: #fff; box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .35); }
.products-dark .product::before { background: var(--rose); }
.products-dark .product:hover { box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, .55); }
.product.flip .product-media { order: 2; }

.product-media {
  position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate;
  min-height: 24rem; padding: 2.5rem;
  background: radial-gradient(circle at 30% 25%, #fbf3f4 0%, #efdadd 55%, #e4c6cb 100%);
}
.products-dark .product-media { background: radial-gradient(circle at 30% 25%, #f7f5f4 0%, #e6e1df 55%, #d3cbc8 100%); }
.product-media picture { width: 100%; }
.product-media img {
  width: 100%; max-height: 22rem; object-fit: contain; margin-inline: auto;
  mix-blend-mode: multiply; transition: transform .6s var(--ease);
}
.product:hover .product-media img { transform: scale(1.04); }

.product-body { padding: clamp(1.75rem, 3.5vw, 3rem); padding-top: clamp(2rem, 3.5vw, 3.25rem); }
.product-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .85rem 1rem; }
.product-series { font-weight: 700; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin-bottom: .2rem; }
.products-dark .product-series { color: var(--rose); }
.product-body h4 { font-size: clamp(1.45rem, 2.8vw, 1.95rem); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.product-header .badge { background: var(--red); color: #fff; font-size: .8rem; padding: .6rem 1rem; box-shadow: 0 .5rem 1.2rem rgba(150, 27, 43, .3); }
.product-intro { margin-top: 1.1rem; color: var(--muted); }
.products-dark .product-intro { color: rgba(255, 255, 255, .78); }
.product-body h5 {
  margin: 1.75rem 0 .75rem; font-size: .75rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--red);
  display: flex; align-items: center; gap: .75rem;
}
.product-body h5::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .25; }
.products-dark .product-body h5 { color: var(--rose); }

.feature-list { display: grid; gap: .55rem; }
.feature-list li { position: relative; padding-left: 1.5rem; font-weight: 500; }
.feature-list li::before { content: ''; position: absolute; left: 0; top: .55em; width: .6rem; height: .6rem; background: var(--red); }
.products-dark .feature-list li::before { background: var(--rose); }

.specs { display: grid; border-top: 2px solid var(--ink); }
.products-dark .specs { border-top-color: rgba(255, 255, 255, .85); }
.specs > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid rgba(35, 31, 32, .14); }
.products-dark .specs > div { border-bottom-color: rgba(255, 255, 255, .15); }
.specs dt { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: .15rem; }
.products-dark .specs dt { color: rgba(255, 255, 255, .6); }
.specs dd { font-weight: 700; }

/* ---------- Contact ---------- */
.contact {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: linear-gradient(135deg, #a61f31 0%, var(--red) 50%, var(--red-dark) 100%);
}
.contact::before {
  content: ''; position: absolute; z-index: -1; right: -8rem; bottom: -10rem; width: 34rem; aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, .2);
}
.contact::after {
  content: ''; position: absolute; z-index: -1; right: -3rem; bottom: -5rem; width: 24rem; aspect-ratio: 1;
  background: rgba(94, 15, 27, .55);
}
.contact .eyebrow { color: #fff; }
.contact .section-intro { color: rgba(255, 255, 255, .92); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.contact-intro .section-header { margin-bottom: 2.25rem; }
.contact-panel { background: var(--charcoal); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: 0 1.5rem 3.5rem rgba(40, 5, 12, .4); border-top: 6px solid var(--rose); }
.contact-list { display: grid; }
.contact-list > div { padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.contact-list > div:first-child { padding-top: 0; }
.contact-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-list dt { font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--rose); margin-bottom: .35rem; }
.placeholder {
  display: inline-block; padding: .25rem .7rem; font-weight: 600; color: #fbd9de;
  background: rgba(255, 255, 255, .06); border: 1px dashed rgba(242, 163, 174, .7);
}
.placeholder-link { text-decoration: none; }
.placeholder-link:hover .placeholder { background: rgba(255, 255, 255, .14); }
.contact-list a {
  color: #fff; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em;
  text-decoration-color: rgba(242, 163, 174, .7);
}
.contact-list a:hover { color: var(--rose); text-decoration-color: var(--rose); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255, 255, 255, .75); padding: 3rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem 2rem; }
.footer-logo { width: 9.5rem; height: auto; background: #fff; padding: .75rem 1rem; }
.footer-text { text-align: right; }
.footer-text p { font-weight: 600; color: #fff; }
.footer-text .copyright { font-size: .85rem; font-weight: 400; color: rgba(255, 255, 255, .6); margin-top: .25rem; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: #128c4b; color: #fff; border: 3px solid #fff;
  box-shadow: 0 .6rem 1.5rem rgba(0, 0, 0, .35);
  transition: transform .25s var(--ease), background .2s;
}
.whatsapp-fab:hover { transform: translateY(-4px) scale(1.05); background: #0e7a40; }
.whatsapp-fab .icon { width: 1.9rem; height: 1.9rem; }

/* ---------- Scroll reveal (only when JS is on and motion is allowed) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .product.reveal.in:hover { transform: translateY(-6px); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 62rem) {
  .product, .contact-grid { grid-template-columns: 1fr; }
  .product.flip .product-media { order: 0; }
  .product-media { min-height: 18rem; }
  .hero-art { right: -3.5rem; top: 2.5rem; transform: none; width: 15rem; opacity: .2; }
}
@media (max-width: 40rem) {
  :root { --header-h: 4rem; }
  .wrap { width: min(100% - 2rem, var(--wrap)); }
  .brand-mark { width: 2.4rem; height: 2.4rem; }
  .brand-name { font-size: .68rem; }
  .nav a { padding: .5rem .55rem; font-size: .75rem; }
  .strip-list { grid-template-columns: 1fr; }
  .strip-list li { justify-content: flex-start; padding: 1rem .25rem; }
  .strip-list li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .hero-actions .btn { flex: 1 1 100%; }
  .product-media { padding: 1.5rem; min-height: 15rem; }
  .specs > div { grid-template-columns: 1fr; gap: .1rem; }
  .brand-logo-chip img { height: 2.65rem; }
  .products .brand-logo-chip img { height: 2.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-text { text-align: left; }
  .btn-whatsapp { width: 100%; padding: 1.1rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
