/* ANTMEDICAL — white theme. Accent colours come from the A&T Medicals logo. */
:root {
  --bg: #ffffff;
  --soft: #f5f8fb;
  --ink: #1d2730;
  --muted: #5a6672;
  --line: #e2e8ef;
  --blue: #2a86c8;
  --blue-dark: #1f6ea6;
  --blue-tint: #eaf4fb;
  --green: #4fa72f;
  --green-tint: #edf7e8;
  --orange: #e9801a;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.12rem; color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid var(--blue);
  background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer;
  font-size: 1rem; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-outline { background: #fff; color: var(--blue-dark); }
.btn-outline:hover { background: var(--blue-tint); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--soft); border-color: var(--line); }
.btn-green { background: var(--green); border-color: var(--green); }
.btn-green:hover { background: #3f8d23; border-color: #3f8d23; }
.btn-sm { padding: 8px 14px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand img { width: 200px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--blue-dark); background: var(--blue-tint); }
.site-nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav .btn { margin: 8px 0 0; }
  .brand img { width: 170px; }
}

/* sections */
.section { padding: 72px 0; }
.section-tight { padding: 40px 0 56px; }
.section-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }

/* hero */
.hero { padding: 64px 0 56px; background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-art { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero-art .ecg-line { position: absolute; left: 24px; right: 24px; bottom: 18px; height: 40px; color: var(--green); opacity: .8; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); background: #fff; border-radius: 99px; font-size: .88rem; color: var(--muted); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat strong { display: block; font-size: 1.6rem; color: var(--blue-dark); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* cards & grids */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: inherit; text-decoration: none; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); border-color: #cfdbe6; box-shadow: 0 2px 4px rgba(16, 24, 40, .06), 0 10px 28px rgba(16, 24, 40, .10); }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-top: 10px; }
.cat-card { padding: 24px; border-top: 4px solid var(--blue); }
.cat-card:nth-child(2) { border-top-color: var(--green); }
.cat-card:nth-child(3) { border-top-color: var(--orange); }
.product-thumb { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.product-thumb img { max-height: 100%; width: auto; object-fit: contain; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--blue-dark); background: var(--blue-tint); padding: 3px 10px; border-radius: 99px; margin-right: 6px; }
.tag-new { color: #2f7a16; background: var(--green-tint); }
.link-arrow { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--blue-dark); }
.link-arrow::after { content: " →"; }
.cat-section { margin-bottom: 56px; scroll-margin-top: 100px; }

/* feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 16px 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%234fa72f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* product page */
.breadcrumb { color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; } }
.gallery-main { aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; padding: 24px; background: #fff; }
.gallery-main img { max-height: 100%; width: auto; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb { width: 80px; height: 64px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.is-active { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-tint); }
.note { background: #fff8ef; border: 1px solid #f6dcbc; color: #7a4a10; padding: 12px 14px; border-radius: 10px; font-size: .95rem; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table caption { text-align: left; font-weight: 700; padding: 0 0 8px; color: var(--ink); }
.spec-table th, .spec-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 38%; font-weight: 600; color: var(--muted); background: #fbfcfe; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .92rem; margin: 14px 0 6px; }
input, select, textarea { width: 100%; padding: 11px 13px; font: inherit; color: var(--ink); background: #fff; border: 1px solid #cfd8e2; border-radius: 9px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue-tint); border-color: var(--blue); }
textarea { min-height: 130px; resize: vertical; }
.is-invalid { border-color: #d04545; }
.hp { position: absolute; left: -9999px; }
.form-note { margin-top: 14px; min-height: 1.4em; }
.form-note.ok { color: #2f7a16; }
.form-note.err { color: #b42318; }
.office { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; background: #fff; }
.office h3 { margin-bottom: 6px; }
.office p { margin: 0 0 6px; color: var(--muted); }

/* prose (policies, about) */
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.prose p, .prose li { color: #33404c; }
.prose ul { padding-left: 1.2em; }

/* CTA band */
.cta-band { background: var(--blue-tint); border: 1px solid #d3e7f6; border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin: 0; color: var(--muted); }

/* footer */
.site-footer { margin-top: 0; background: #fff; border-top: 1px solid var(--line); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr; gap: 32px; }
.footer-grid h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0 0 20px; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--blue-dark); text-decoration: underline; }
.footer-logo { margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* floating WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.wa-float:hover { background: #1fb457; }

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

/* layout safety: let grid/flex children shrink on narrow screens */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags .tag { margin-right: 0; }
.grid > *, .hero-grid > *, .split > *, .product-layout > *, .contact-grid > *, .footer-grid > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
