/* Puremeditech — brand colours taken from the logo: cyan #40c8f4, green #8cc63f */
:root {
  --navy: #0b2e4f;
  --ink: #1c2b3a;
  --muted: #5a6b7c;
  --primary: #0a7fb5;
  --primary-dark: #086792;
  --cyan: #40c8f4;
  --green: #8cc63f;
  --green-dark: #5e8f22;
  --wa: #168a4a;
  --wa-dark: #11703b;
  --bg: #ffffff;
  --bg-alt: #f2f8fc;
  --line: #dde7ef;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 46, 79, .08);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.strong { font-weight: 600; color: var(--ink); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico-lg { width: 40px; height: 40px; color: var(--primary); }

/* ---------------- Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .7em 1.2em; border-radius: 999px;
  font-weight: 700; font-size: .98rem; border: 2px solid transparent; cursor: pointer; transition: background .15s, transform .15s;
  text-decoration: none !important; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .9em 1.5em; font-size: 1.02rem; }
.btn-sm { padding: .5em .95em; font-size: .9rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--bg-alt); color: var(--primary-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; color: var(--primary); }

/* ---------------- Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 2px 14px rgba(11,46,79,.06); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand img { width: 210px; height: auto; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { color: var(--ink); font-weight: 600; padding: .5em .85em; border-radius: 8px; }
.main-nav a:hover { background: var(--bg-alt); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--primary); background: var(--bg-alt); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: .45em .8em; border: 1.5px solid var(--line);
  border-radius: 999px; color: var(--muted); font-weight: 700; font-size: .88rem;
}
.lang-toggle:hover { border-color: var(--primary); text-decoration: none; }
.lang-opt.on { color: var(--primary); }
.lang-sep { color: var(--line); }
.nav-btn { display: none; background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer; }
.nav-btn .ico { width: 28px; height: 28px; }

/* ---------------- Hero */
.hero { background: linear-gradient(180deg, #eaf6fd 0%, #fff 100%); padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-dark); margin-bottom: .8em; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat strong { display: block; font-size: 1.45rem; color: var(--navy); font-weight: 800; }
.stat span { color: var(--muted); font-size: .92rem; }

/* ---------------- Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--navy); color: #d6e4f0; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .eyebrow { color: var(--green); }
.section.dark .ico-lg { color: var(--cyan); }
.section-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.section-head p { color: var(--muted); }
.section-head.mt { margin-top: 64px; }
.small-h { font-size: 1.25rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 1.5em 0; }
.mv > div { background: var(--bg-alt); border-radius: var(--radius); padding: 20px; }
.mv img { width: 48px; height: 48px; margin-bottom: 10px; }
.mv p { font-size: .95rem; margin: 0; }
.mv-lg { margin: 0; }
.mv-lg > div { background: #fff; padding: 32px; box-shadow: var(--shadow); }
.mv-lg img { width: 56px; height: 56px; }
.mv-lg p { font-size: 1.05rem; }

/* ---------------- Grids & cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-cats { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: inherit; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-3px); border-color: #c5dbea; color: inherit; }
.card-media { background: #f7fafc; aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 16px; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { color: var(--muted); font-size: .93rem; margin: 0; }
.card-body .link-arrow { margin-top: auto; padding-top: 8px; font-size: .92rem; }
.meta { font-size: .85rem; color: var(--muted); font-weight: 600; }
.tag { align-self: flex-start; display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--green-dark); background: #eef7e2; padding: .25em .7em; border-radius: 999px; }

.svc { text-align: center; padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.svc img { width: 64px; height: 64px; margin: 0 auto 14px; }
.svc p { color: var(--muted); font-size: .95rem; margin: 0; }
.svcs + .center { margin-top: 32px; }
.why, .value { padding: 6px 4px; }
.why h3, .value h3 { margin-top: 12px; }
.why p { font-size: .95rem; margin: 0; }
.value { text-align: center; }
.value .ico-lg { margin: 0 auto; }
.value p { color: var(--muted); font-size: .93rem; }

.logo-wall { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.logo-wall li { background: #fff; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; padding: 6px; }
.logo-wall img { width: 100%; max-width: 175px; height: auto; }

.cta-band { background: linear-gradient(120deg, var(--primary) 0%, #0b5f8f 100%); color: #e8f5fc; padding: 48px 0; }
.cta-band h2 { color: #fff; font-size: 1.6rem; margin-bottom: .3em; }
.cta-band p { margin: 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }

/* ---------------- Inner pages */
.page-hero { background: linear-gradient(180deg, #eaf6fd 0%, #f7fbfe 100%); padding: 40px 0 44px; border-bottom: 1px solid var(--line); }
.page-hero.slim { padding: 18px 0 14px; }
.page-hero h1 { margin-bottom: .3em; }
.page-hero .lead { max-width: 760px; margin: 0; }
.breadcrumb { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #9fb2c2; }
.breadcrumb a { color: var(--muted); }

.people { align-items: start; }
.person { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 16px 16px 22px; text-align: center; }
.person-photo { aspect-ratio: 3 / 4; background: #f3f6f9; border-radius: 10px; overflow: hidden; margin-bottom: 14px; display: grid; place-items: end center; }
.person-photo img { width: 100%; height: 100%; object-fit: contain; object-position: bottom center; }
.person h3 { margin: 0 0 2px; }
.role { display: block; color: var(--primary); font-weight: 700; font-size: .92rem; margin-bottom: 10px; }
.person p { text-align: left; color: var(--muted); font-size: .92rem; margin: 0; }
.people-sm { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; }

.certs { align-items: start; }
.cert { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.cert img { width: 100%; border-radius: 6px; }
.cert figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; text-align: center; }

.svc-list { display: grid; gap: 22px; max-width: 920px; }
.svc-row { display: grid; grid-template-columns: 96px 1fr; gap: 26px; align-items: start; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 100px; }
.svc-row img { width: 96px; height: 96px; }
.svc-row h2 { font-size: 1.35rem; }
.svc-row p:last-child { margin: 0; color: var(--muted); }

.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.cat-tabs a { padding: .5em 1em; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; font-size: .92rem; }
.cat-tabs a:hover { border-color: var(--primary); text-decoration: none; }
.cat-tabs a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.cat-block + .cat-block { margin-top: 56px; }
.cat-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--line); padding-bottom: 10px; margin-bottom: 22px; }
.cat-block-head h2 { font-size: 1.35rem; margin: 0; }
.cat-block-head h2 a { color: var(--navy); }

.product-top { padding-top: 40px; }
.product-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.gallery { background: #f7fafc; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; position: sticky; top: 100px; }
.gallery img { width: 100%; max-height: 520px; object-fit: contain; }
.gallery.multi { grid-template-columns: 1.4fr 1fr; align-items: center; }
.product-info h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: .35em 0 .25em; }
.product-info .lead { margin-bottom: 1.1em; }
.feats { align-items: start; }
.feat { background: var(--bg-alt); border-radius: var(--radius); padding: 22px 24px; }
.feat ul { margin: 0; padding: 0; list-style: none; }
.feat li { position: relative; padding-left: 26px; margin-bottom: .55em; font-size: .96rem; }
.feat li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--green-dark); border-bottom: 2.5px solid var(--green-dark); transform: rotate(-45deg); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 28px; }
table.spec { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec th, .spec td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec tbody tr:last-child th, .spec tbody tr:last-child td { border-bottom: 0; }
.spec tbody th { width: 30%; color: var(--navy); font-weight: 700; background: #fafcfe; }
.spec thead th { background: var(--navy); color: #fff; white-space: nowrap; }
.spec-multi td { white-space: nowrap; }
.spec-multi td[colspan] { white-space: normal; }
.spec-multi tbody th { width: auto; min-width: 160px; }
.alt h3 { margin-top: 8px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: stretch; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.35rem; }
.contact-card small { color: var(--muted); font-weight: 600; font-size: .8em; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .ico { margin-top: .25em; color: var(--primary); }
.contact-list.lg li { gap: 14px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.rep { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.rep h3 { margin: 12px 0 2px; }
.rep .contact-list { margin: 14px 0 18px; }
.link-list { font-size: 1.1rem; }

/* ---------------- Footer */
.site-footer { background: #08213a; color: #b9cbdc; padding: 56px 0 0; font-size: .94rem; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #d9e7f3; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.1fr 1.3fr; gap: 36px; }
.footer-logo { width: 200px; background: #fff; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }
.site-footer .contact-list .ico { color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding: 18px 20px; font-size: .85rem; color: #8ea6bc; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-link { display: inline-flex; align-items: center; gap: 6px; color: #8ea6bc !important; font-size: .82rem; }
.admin-link:hover { color: #fff !important; }

/* ---------------- News */
.news-media { aspect-ratio: 16 / 10; padding: 0; background: #e9f1f7; position: relative; overflow: hidden; }
.news-media img { position: absolute; inset: 0; object-fit: cover; }
.news-card .meta, .news-post .meta { display: inline-flex; align-items: center; gap: 6px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.mt-sm { margin-top: 28px; }
.narrow { max-width: 820px; }
.news-post h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-top: .4em; }
.news-cover { width: 100%; border-radius: var(--radius); margin: 8px 0 28px; }
.prose { font-size: 1.05rem; }
.prose h2 { font-size: 1.45rem; margin-top: 1.4em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.2em; }
.prose img { border-radius: 10px; margin: 8px 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.news-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 24px 0 32px; }
.news-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.22); z-index: 60; transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float .ico { width: 32px; height: 32px; }

/* ---------------- Responsive */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav a { padding: .5em .6em; }
}
@media (max-width: 920px) {
  .nav-btn { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgba(11,46,79,.08); padding: 8px 16px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .85em .6em; border-bottom: 1px solid var(--line); border-radius: 0; }
  .header-actions { margin-left: auto; }
  .hero-grid, .split, .product-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { order: -1; }
  .gallery { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 52px 0; }
  .hide-sm { display: none !important; }
  .brand img { width: 160px; }
  .header-inner { min-height: 64px; gap: 10px; }
  .grid-2, .grid-3, .grid-4, .grid-5, .mv, .people-sm { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid-4 .card-body { padding: 12px; }
  .grid-4 .card-body p { display: none; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; padding: 22px; }
  .svc-row img { width: 72px; height: 72px; }
  .gallery.multi { grid-template-columns: 1fr; }
  .spec tbody th { width: 40%; }
  .btn-row .btn { flex: 1 1 100%; justify-content: center; }
}
