/* ==========================================================
   Mahrz Medical Ventures - site styles
   Mobile-first. Plain CSS, no build step.
   ========================================================== */

/* Self-hosted Inter (variable weight) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #16345c;
  --navy-700: #0f2644;
  --teal: #14808f;
  --teal-600: #0e6673;
  --teal-100: #d6ecef;
  --teal-50: #eef7f8;
  --grey-50: #f6f8fa;
  --grey-100: #edf1f5;
  --grey-200: #dde4ec;
  --ink: #1b2733;
  --muted: #55657a;
  --white: #fff;
  --danger: #b3261e;
  --success: #1b7a4b;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22, 52, 92, 0.06), 0 2px 8px rgba(22, 52, 92, 0.05);
  --shadow: 0 6px 24px rgba(22, 52, 92, 0.1);
  --shadow-lg: 0 16px 44px rgba(22, 52, 92, 0.16);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--white);
  line-height: 1.6; font-size: 1rem; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-600); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; background: var(--navy); color: #fff; padding: .6rem 1rem;
  border-radius: 8px; z-index: 200; transition: top .2s;
}
.skip-link:focus { top: .75rem; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: .98rem; padding: .8rem 1.4rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-teal { background: var(--teal-600); color: #fff; }
.btn-teal:hover { background: var(--teal); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--teal-50); color: var(--navy); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: .55rem 1rem; font-size: .88rem; }
.btn-danger { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.scrolled { border-color: var(--grey-200); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; transition: min-height .25s; }
.site-header.scrolled .header-inner { min-height: 68px; }

/* Logo: the supplied artwork is a square image with generous white margin,
   so it is cropped by CSS (no image editing needed). */
.brand { display: block; width: 108px; flex: none; transition: width .25s; }
.site-header.scrolled .brand { width: 92px; }
.logo-crop { display: block; position: relative; aspect-ratio: 1000 / 700; overflow: hidden; }
.logo-crop img { position: absolute; width: 125.4%; height: auto; max-width: none; left: -13%; top: -37.86%; }
.footer-brand { width: 150px; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 0 11px;
  background: #fff; border: 1px solid var(--grey-200); border-radius: 12px; cursor: pointer;
}
.nav-toggle span { height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--grey-200); box-shadow: var(--shadow); display: none; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .75rem 1rem 1.25rem; display: grid; gap: .25rem; }
.site-nav a {
  display: block; padding: .75rem 1rem; border-radius: 10px; color: var(--navy); font-weight: 550; text-decoration: none;
}
.site-nav a:hover { background: var(--teal-50); }
.site-nav a[aria-current="page"] { background: var(--teal-50); color: var(--teal-600); }

@media (min-width: 60em) {   /* em, not px: the bar switches to the hamburger earlier when the user enlarges text */
  .nav-toggle { display: none; }
  .site-nav { position: static; display: block; border: 0; box-shadow: none; background: transparent; }
  .site-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; padding: 0; gap: .15rem; align-items: center; }
  .site-nav a { padding: .55rem .85rem; font-size: .95rem; position: relative; }
  .site-nav a[aria-current="page"] { background: transparent; }
  .site-nav a::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 2px; height: 2px; background: var(--teal);
    transform: scaleX(0); transform-origin: left; transition: transform .25s;
  }
  .site-nav a:hover { background: transparent; }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section-soft { background: var(--grey-50); }
.section-teal { background: var(--teal-50); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: .75rem;
}
.lead { font-size: 1.1rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
  background: radial-gradient(900px 420px at 85% 0%, var(--teal-100), transparent 70%), linear-gradient(180deg, var(--teal-50), #fff);
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 span { color: var(--teal-600); }
.hero .lead { max-width: 560px; margin-bottom: 1.75rem; }
.hero-visual { position: relative; aspect-ratio: 5 / 4; max-width: 520px; width: 100%; margin-inline: auto; }
.hero-visual svg { width: 100%; height: 100%; filter: drop-shadow(0 20px 40px rgba(22, 52, 92, .18)); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }

.page-hero { padding: clamp(2.25rem, 6vw, 4rem) 0; background: linear-gradient(180deg, var(--teal-50), #fff); border-bottom: 1px solid var(--grey-100); }
.page-hero p { max-width: 640px; color: var(--muted); font-size: 1.08rem; margin: 0; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: .75rem; }
.breadcrumb a { color: var(--muted); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--grey-100); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
a.card { display: block; text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-100); }
.card p { color: var(--muted); }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--navy), var(--teal)); color: #fff;
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.soft { background: var(--teal-50); color: var(--teal-600); }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 650; color: var(--teal-600); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .link-arrow svg { transform: translateX(4px); }

.why { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .why { grid-template-columns: repeat(4, 1fr); } }
.why-item { display: flex; gap: 1rem; align-items: flex-start; }
.why-item h3 { margin-bottom: .25rem; font-size: 1.02rem; }
.why-item p { margin: 0; color: var(--muted); font-size: .94rem; }

.cta-banner {
  background: linear-gradient(120deg, var(--navy) 0%, #1c4a73 55%, var(--teal) 100%); color: #fff; border-radius: 24px;
  padding: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1.5rem; align-items: center; position: relative; overflow: hidden;
}
.cta-banner::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.cta-banner h2 { color: #fff; margin-bottom: .4rem; }
.cta-banner p { margin: 0; color: rgba(255, 255, 255, .88); max-width: 560px; }
.cta-banner .btn-row { position: relative; z-index: 1; }
@media (min-width: 800px) { .cta-banner { grid-template-columns: 1fr auto; } }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; position: relative; }
.step { display: flex; gap: 1.1rem; align-items: flex-start; position: relative; }
.step-num {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--teal)); box-shadow: 0 0 0 6px var(--teal-50); position: relative; z-index: 1;
}
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 23px; top: 48px; bottom: -1.25rem; width: 2px; background: var(--teal-100);
}
.step-body { padding-top: .2rem; }
.step-body h3 { margin-bottom: .2rem; }
.step-body p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (min-width: 900px) {
  .steps.steps-h { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1rem; }
  .step-body h3, .step-body p { overflow-wrap: anywhere; }
  .steps-h .step { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .steps-h .step:not(:last-child)::before { left: 56px; right: -1rem; top: 23px; bottom: auto; width: auto; height: 2px; }
}

/* ---------- Placeholder images ---------- */
.ph {
  aspect-ratio: 16 / 10; border-radius: 12px; display: grid; place-items: center; color: rgba(255, 255, 255, .92); position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--teal));
}
.ph svg { width: 44px; height: 44px; opacity: .9; }
.ph.v2 { background: linear-gradient(135deg, #1d5a7e, #3aa0ac); }
.ph.v3 { background: linear-gradient(135deg, #0f2644, #14808f); }
.ph.v4 { background: linear-gradient(135deg, #2b4f7c, #5bb5bf); }
.ph::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; right: -30px; bottom: -50px; background: rgba(255, 255, 255, .1); }
.proj-card h3 { margin-top: 1rem; }
.proj-card p { margin: 0 0 .75rem; font-size: .94rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: .35rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--grey-200); border-radius: var(--radius-sm);
  padding: .7rem .9rem; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20, 128, 143, .18); }
input[type="file"] { padding: .55rem; }
.hint { font-size: .84rem; color: var(--muted); margin-top: .35rem; }
.form-success {
  display: none; background: #e8f6ee; color: #14573a; border: 1px solid #b7e0c8; padding: 1rem 1.1rem; border-radius: var(--radius-sm); font-weight: 550;
}
.form-success.show { display: block; animation: pop .35s ease; }
.notice { font-size: .86rem; color: var(--muted); margin-top: .25rem; }
.panel { background: #fff; border: 1px solid var(--grey-100); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Equipment ---------- */
.toolbar { display: grid; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 800px) { .toolbar { grid-template-columns: 1fr 320px; align-items: center; } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font: inherit; font-size: .88rem; font-weight: 600; padding: .5rem 1rem; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--navy); border: 1.5px solid var(--grey-200); transition: all .18s;
}
.chip:hover { border-color: var(--teal); color: var(--teal-600); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 2.6rem; border-radius: 999px; }
.product-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.product {
  background: #fff; border: 1px solid var(--grey-100); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-media { aspect-ratio: 4 / 3; background: var(--grey-100); display: grid; place-items: center; color: #fff; position: relative; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media svg { width: 52px; height: 52px; opacity: .92; }
.product-media .cat-pill { position: absolute; left: 12px; top: 12px; }
.pill {
  display: inline-block; font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--navy);
}
.product-body { padding: 1.1rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-body h3 { font-size: 1.05rem; margin: 0; }
.product-body p { margin: 0; font-size: .9rem; color: var(--muted); flex: 1; }
.product-price { font-weight: 650; color: var(--navy); font-size: .95rem; }
.product-body .btn { margin-top: .6rem; align-self: stretch; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); background: var(--grey-50); border-radius: var(--radius); display: none; }
.empty.show { display: block; }
.results-note { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }

/* ---------- Modal (native dialog) ---------- */
dialog.modal {
  border: 0; padding: 0; border-radius: 20px; width: min(520px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  box-shadow: var(--shadow-lg); color: var(--ink);
}
dialog.modal::backdrop { background: rgba(15, 38, 68, .55); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: pop .25s ease; }
.modal-head { display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.5rem .5rem; align-items: flex-start; }
.modal-head h2 { font-size: 1.3rem; margin: 0; }
.modal-head p { margin: .25rem 0 0; font-size: .9rem; color: var(--muted); }
.modal-close {
  flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--grey-200); background: #fff; cursor: pointer; font-size: 1.3rem; line-height: 1; color: var(--navy);
}
.modal-close:hover { background: var(--grey-100); }
.modal-body { padding: .75rem 1.5rem 1.5rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--grey-200); border-radius: 14px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: var(--teal-100); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.05rem 1.25rem; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(45deg); transition: transform .25s; margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .answer { padding: 0 1.25rem 1.15rem; color: var(--muted); }
.faq .answer p { margin: 0; }

.two-col { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } .two-col.wide-right { grid-template-columns: .8fr 1.2fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .icon-badge { width: 44px; height: 44px; margin: 0; flex: none; }
.contact-list .icon-badge svg { width: 20px; height: 20px; }
.contact-list strong { display: block; color: var(--navy); }
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .6rem; color: var(--muted); }
.checklist svg { width: 20px; height: 20px; flex: none; color: var(--teal); margin-top: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-50); border-top: 1px solid var(--teal-100); padding: 3.5rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.site-footer h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--teal-600); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--navy); text-decoration: none; }
.site-footer a:hover { color: var(--teal-600); text-decoration: underline; }
.site-footer p { color: var(--muted); font-size: .94rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--teal-100); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .86rem; color: var(--muted); }
.footer-bottom p { margin: 0; }

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Admin ---------- */
.login-wrap { min-height: 70vh; display: grid; place-items: center; padding: 2rem 0; background: linear-gradient(180deg, var(--teal-50), #fff); }
.login-card { width: min(430px, 100% - 2rem); background: #fff; border-radius: 20px; padding: 2rem; box-shadow: var(--shadow-lg); border: 1px solid var(--grey-100); }
.login-card .brand { margin: 0 auto 1rem; width: 150px; }
.login-card h1 { font-size: 1.5rem; text-align: center; }
.admin-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--grey-200); margin-bottom: 1.5rem; overflow-x: auto; }
.tab {
  font: inherit; font-weight: 600; padding: .75rem 1.1rem; background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; color: var(--muted); white-space: nowrap;
}
.tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--teal); }
.table-wrap { overflow-x: auto; border: 1px solid var(--grey-200); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--grey-100); vertical-align: middle; }
th { background: var(--grey-50); color: var(--navy); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }
tr:last-child td { border-bottom: 0; }
.thumb { width: 52px; height: 40px; border-radius: 8px; object-fit: cover; background: linear-gradient(135deg, var(--navy), var(--teal)); display: block; }
.row-actions { display: flex; gap: .4rem; }
.admin-toast {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: .75rem 1.25rem; border-radius: 999px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 300; font-weight: 550;
}
.admin-toast.show { opacity: 1; transform: translate(-50%, 0); }
.img-preview { margin-top: .6rem; max-height: 120px; border-radius: 10px; display: none; }
.img-preview.show { display: block; }
.info-box { background: var(--teal-50); border: 1px solid var(--teal-100); color: var(--navy); border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: .92rem; margin-bottom: 1.25rem; }
.hidden { display: none !important; }

/* ---------- Production additions ---------- */
[hidden] { display: none !important; }
.footer-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--teal-600); margin: 0 0 .5em; font-weight: 650; }
.site-footer .social { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: .65rem; align-items: flex-start; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--navy); }
.check label { font-weight: 400; font-size: .88rem; color: var(--muted); margin: 0; }
.form-error { display: none; background: #fdecea; color: #8a1c14; border: 1px solid #f3b7b2; padding: 1rem 1.1rem; border-radius: var(--radius-sm); font-weight: 550; }
.form-error.show { display: block; animation: pop .35s ease; }
.notice-box { background: var(--grey-50); border: 1px solid var(--grey-200); color: var(--muted); border-radius: var(--radius); padding: 1.5rem; text-align: center; grid-column: 1 / -1; }
.notice-box.error { background: #fdecea; border-color: #f3b7b2; color: #8a1c14; }
.notice-box.warn { background: #fff8e6; border-color: #f0dca0; color: #5c4400; text-align: left; padding: .9rem 1.1rem; font-size: .93rem; }
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--grey-100) 25%, var(--grey-50) 40%, var(--grey-100) 60%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; }
.sk-card { height: 190px; }
.sk-product { height: 330px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.art svg { width: 100%; height: auto; border-radius: 24px; box-shadow: var(--shadow); }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose { max-width: 780px; overflow-wrap: anywhere; }   /* long email addresses / URLs must wrap on small screens */
.prose ul { padding-left: 1.2rem; color: var(--ink); }
.prose li { margin-bottom: .4rem; }
.notfound { text-align: center; padding: 5rem 0; }
.notfound .code { font-size: clamp(4rem, 15vw, 8rem); font-weight: 700; color: var(--teal-100); line-height: 1; }

/* ---------- Premium touches ---------- */
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: transform .2s, box-shadow .2s; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); color: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.wa-float svg { width: 28px; height: 28px; }
dialog.modal-wide { width: min(640px, calc(100% - 2rem)); }
.pm-media { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; display: grid; place-items: center; color: #fff; margin-bottom: 1rem; }
.pm-media img { width: 100%; height: 100%; object-fit: cover; }
.pm-media svg { width: 64px; height: 64px; opacity: .92; }
.pill-dark { background: var(--teal-50); color: var(--teal-600); border: 1px solid var(--teal-100); }
.product-media, .product-body h3 { cursor: pointer; }
.product-media:hover img { transform: scale(1.05); }
.product-media img { transition: transform .4s ease; }
.product-more { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--teal-600); cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--teal-100); }

/* ---------- Motion (all disabled automatically for prefers-reduced-motion) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes slide { from { transform: translateY(16px); } to { transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(14px, -10px); } }
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes glow { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .9; transform: scale(1.12); } }
@keyframes shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }

/* Hero: staggered entrance, floating illustration, drawing heartbeat line, soft glowing background */
.hero > .container > div:first-child > * { animation: slide .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero .eyebrow { animation-delay: .05s; } .hero h1 { animation-delay: .15s; } .hero .lead { animation-delay: .3s; } .hero .btn-row { animation-delay: .45s; }
.hero-visual { animation: rise 1s .25s cubic-bezier(.2, .7, .2, 1) both; }
.hero-visual svg { animation: floaty 7s ease-in-out 1.2s infinite; }
.hero-visual .float-a { animation: drift 9s ease-in-out infinite; }
.hero-visual .float-b { animation: drift 11s ease-in-out -4s infinite; }
.hero-visual .ecg { stroke-dasharray: 100; animation: draw 2.2s ease-out .8s both; }
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(20, 128, 143, .22), transparent 70%); animation: glow 8s ease-in-out infinite; pointer-events: none; }
.page-hero .container > * { animation: slide .7s cubic-bezier(.2, .7, .2, 1) both; }
.page-hero h1 { animation-delay: .08s; } .page-hero p { animation-delay: .18s; }

/* Cards, icons, buttons */
.card:hover .icon-badge { transform: translateY(-3px) rotate(-4deg) scale(1.06); box-shadow: 0 10px 20px rgba(20, 128, 143, .3); }
.icon-badge { transition: transform .3s ease, box-shadow .3s ease; }
.why-item:hover .icon-badge { transform: scale(1.1); }
.btn { position: relative; overflow: hidden; }
.btn-primary::after, .btn-light::after { content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%; background: rgba(255, 255, 255, .28); transform: translateX(-120%) skewX(-20deg); pointer-events: none; }
.btn-primary:hover::after, .btn-light:hover::after { animation: shine .7s ease; }
.product { animation: rise .6s cubic-bezier(.2, .7, .2, 1) backwards; }
.product:nth-child(2) { animation-delay: .06s; } .product:nth-child(3) { animation-delay: .12s; } .product:nth-child(4) { animation-delay: .18s; }
.product:nth-child(n+5) { animation-delay: .24s; }
.step-num { transition: transform .3s ease, box-shadow .3s ease; }
.step:hover .step-num { transform: scale(1.1); box-shadow: 0 0 0 9px var(--teal-100); }
.cta-banner::after { animation: drift 12s ease-in-out infinite; }
.eyebrow { position: relative; }
.section-head .eyebrow::after { content: ""; display: block; height: 2px; width: 0; margin-top: .35rem; background: var(--teal); transition: width .8s .3s ease; }
.section-head.center .eyebrow::after { margin-inline: auto; }
.section-head.in .eyebrow::after { width: 36px; }
.wa-float:not([hidden]) { animation: rise .6s 1s backwards; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #1fa855; z-index: -1; animation: ripple 2.6s ease-out infinite; }
@keyframes ripple { from { transform: scale(1); opacity: .5; } to { transform: scale(1.7); opacity: 0; } }

/* Scroll progress bar + back-to-top */
.progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: linear-gradient(90deg, var(--navy), var(--teal)); transform: scaleX(0); transform-origin: left; }
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 89; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s, background .2s; }
.to-top.show { opacity: 1; transform: none; }
.to-top:hover { background: var(--teal-600); transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }
.wa-float:not([hidden]) ~ .to-top { bottom: 5.4rem; }
.wa-float { z-index: 90; }

/* Comfortable tap targets for touch screens */
.site-footer ul a, .site-footer li > a { display: inline-block; padding: .4rem 0; }
.site-footer ul { gap: .1rem; }
.breadcrumb a { display: inline-block; padding: .55rem .15rem; margin: -.55rem 0; }

/* Avoid layout jumps while the catalogue loads / when it is empty */
#product-grid[aria-busy="true"] { min-height: 420px; }
#load-state .notice-box { min-height: 45vh; display: grid; place-items: center; }
@media (max-width: 639px) { .sk-product:nth-child(n+2) { display: none; } }
#product-grid[aria-busy="true"] { min-height: 330px; }

/* Login link at the end of the main menu */
.site-nav a.nav-login { margin-top: .35rem; text-align: center; border: 1.5px solid var(--navy); border-radius: 999px; }
.site-nav a.nav-login:hover { background: var(--navy); color: #fff; }
@media (min-width: 60em) {
  .site-nav a.nav-login { margin: 0 0 0 .6rem; padding: .4rem 1.05rem; font-size: .9rem; }
  .site-nav a.nav-login::after { display: none; }
}

/* Projects */
.project-img { aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; margin-bottom: 1rem; background: var(--grey-100); }
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-loc { font-size: .85rem; font-weight: 600; color: var(--teal-600); margin: 0 0 .4rem; }

/* Illustrative photos + credits */
.illus { position: absolute; right: 10px; bottom: 10px; font-size: .68rem; font-weight: 600; letter-spacing: .02em; color: #fff; background: rgba(15, 38, 68, .72); padding: .15rem .55rem; border-radius: 999px; }
.pm-media { position: relative; }
.credits { margin-top: 2.5rem; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--grey-100); padding-top: 1rem; }
.credits summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.credits ul { padding-left: 1.1rem; margin: .75rem 0 0; display: grid; gap: .4rem; }
.credits p { margin: .75rem 0 0; }

/* Reserve space while the catalogue loads so nothing jumps (layout shift) */
#product-grid[aria-busy="true"] { min-height: 100vh; }
.chips:empty { min-height: 100px; }
@media (max-width: 639px) { .chips:empty { min-height: 190px; } }
.product-media img, .pm-media img { object-position: 50% 30%; }

/* ================= Livelier home (brand navy + teal) ================= */
.hero h1 { font-weight: 800; letter-spacing: -.03em; }

/* Hero photo with floating mini product list */
.hero-photo { position: relative; aspect-ratio: auto; max-width: 540px; width: 100%; margin-inline: auto; padding-bottom: 2.4rem; }
.hp-main { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--navy); box-shadow: var(--shadow-lg); }
.hp-main img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hp-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(22, 52, 92, 0) 45%, rgba(22, 52, 92, .55)); pointer-events: none; }
.hp-pin { position: absolute; left: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; background: #fff; color: var(--navy); font-size: .8rem; font-weight: 650; padding: .35rem .8rem .35rem .6rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.hp-pin svg { width: 16px; height: 16px; color: var(--teal); }
.hp-list { position: absolute; right: -6px; bottom: 0; z-index: 2; width: min(250px, 80%); background: #fff; border-radius: 20px; padding: .45rem; display: grid; gap: .15rem; box-shadow: var(--shadow-lg); animation: floaty 7s ease-in-out 1.2s infinite; }
.hp-list a { display: flex; align-items: center; gap: .65rem; padding: .4rem .5rem; border-radius: 14px; text-decoration: none; color: var(--navy); transition: background .2s; }
.hp-list a:hover { background: var(--teal-50); }
.hp-list img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; background: var(--grey-100); }
.hp-list b { display: block; font-size: .88rem; line-height: 1.2; }
.hp-list small { color: var(--muted); font-size: .75rem; }
@media (max-width: 899px) { .hp-list { right: 6px; } }

/* Stats strip overlapping the hero */
.stats-wrap { position: relative; z-index: 3; margin-top: -2.6rem; }
.stats { list-style: none; margin: 0; padding: 1.25rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 1rem; background: #fff; border: 1px solid var(--grey-100); border-radius: 24px; box-shadow: var(--shadow-lg); }
.stats li { display: grid; gap: .2rem; align-content: start; }
.stat-num { font-size: clamp(1.9rem, 4.5vw, 2.7rem); font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-text { font-size: 1.02rem; font-weight: 750; color: var(--teal-600); line-height: 1.25; min-height: 2.7rem; display: flex; align-items: center; }
.stat-label { font-size: .85rem; color: var(--muted); }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, 1fr); padding: 1.7rem 2rem; gap: 0; }
  .stats li { padding: 0 1.5rem; }
  .stats li + li { border-left: 1px solid var(--grey-100); }
  .stats li:first-child { padding-left: 0; }
}

/* Category tiles */
.cat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.cat-tile { position: relative; display: block; aspect-ratio: 4 / 3.4; border-radius: 20px; overflow: hidden; color: #fff; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; background: #fff; transition: transform .6s ease; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 38, 68, 0) 38%, rgba(15, 38, 68, .85)); }
.cat-tile:hover img { transform: scale(1.07); }
.cat-icon { position: absolute; inset: 0; display: grid; place-items: center; }
.cat-icon svg { width: 52px; height: 52px; opacity: .9; margin-bottom: 1.2rem; }
.cat-label { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: grid; gap: .05rem; }
.cat-label b { font-size: 1rem; line-height: 1.2; }
.cat-label small { opacity: .88; font-size: .8rem; }
/* keep the hover lift after the scroll-in animation finishes */
.js .card.reveal.in:hover, .js .cat-tile.reveal.in:hover { transform: translateY(-5px); transition: transform .3s ease, box-shadow .3s ease; }

/* Dark photo banner */
.banner-photo { position: relative; border-radius: 28px; overflow: hidden; min-height: 340px; display: grid; align-items: center; color: #fff; background: var(--navy); }
.banner-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.banner-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(15, 38, 68, .96) 0%, rgba(22, 52, 92, .86) 46%, rgba(20, 128, 143, .4) 100%); }
.bp-copy { position: relative; z-index: 2; padding: clamp(1.75rem, 5vw, 3.5rem); max-width: 640px; }
.bp-copy h2 { color: #fff; font-weight: 800; }
.bp-copy .eyebrow { color: #8fd6df; }
.bp-copy p { color: rgba(255, 255, 255, .9); font-size: 1.05rem; }

/* Subtle texture on soft sections */
.section-soft { background-image: radial-gradient(rgba(22, 52, 92, .06) 1px, transparent 1px); background-size: 22px 22px; }
.hp-pin { line-height: 1; } .hp-pin svg { flex: none; }
.product-more { min-height: 40px; display: inline-flex; align-items: center; padding: .3rem 0; }
.header-inner { flex-wrap: wrap; }   /* if large text makes the bar too wide, wrap instead of scrolling sideways */

/* ---------- Final polish: filters, related items, smooth navigation ---------- */
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.results-bar .results-note { margin: 0; }
.results-tools { display: flex; align-items: center; gap: .9rem; }
.results-tools select { width: auto; padding: .45rem 2rem .45rem .9rem; border-radius: 999px; font-size: .9rem; }
.chip-n { display: inline-block; min-width: 1.35rem; padding: 0 .35rem; margin-left: .2rem; border-radius: 999px; background: var(--grey-100); color: var(--muted); font-size: .72rem; font-weight: 700; text-align: center; }
.chip[aria-pressed="true"] .chip-n { background: rgba(255, 255, 255, .22); color: #fff; }
@media (max-width: 639px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; margin-inline: -1rem; padding: .15rem 1rem .6rem; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: center; }
}
.related { margin: 1.25rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--grey-100); }
.related h3 { font-size: .95rem; margin: 0 0 .6rem; }
.rel-list { display: grid; gap: .5rem; }
.rel-item { display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left; font: inherit; font-weight: 600; color: var(--navy); background: var(--grey-50); border: 1px solid var(--grey-100); border-radius: 14px; padding: .4rem .6rem .4rem .4rem; cursor: pointer; transition: background .2s, border-color .2s; }
.rel-item:hover { background: var(--teal-50); border-color: var(--teal-100); }
.rel-thumb { position: relative; width: 56px; height: 44px; flex: none; border-radius: 10px; overflow: hidden; display: grid; place-items: center; color: #fff; }
.rel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-thumb svg { width: 22px; height: 22px; }
.rel-thumb .illus { display: none; }
/* Smooth page-to-page navigation where the browser supports it (Chrome/Edge); ignored elsewhere */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
