/* BridgeMed Supply. Warm, photo-led B2B layout (reference: talinco.com.au) */
:root {
  --paper: #f3eeea;      /* warm greige bands */
  --white: #ffffff;
  --oxblood: #7f2f2b;    /* primary: headings, buttons */
  --oxblood-deep: #5e211e;
  --ink: #2a2321;        /* body text */
  --stone: #675a55;      /* secondary text, 5.4:1 on paper */
  --line: #ddd3cd;

  --font-head: "Fira Sans Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: 16px;
  --space-section: clamp(64px, 9vw, 112px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--oxblood); }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--oxblood);
  line-height: 1.1;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.4rem; font-weight: 500; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--stone); }
.small { font-size: .95rem; }
.band { background: var(--paper); }
section { padding: var(--space-section) 0; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--oxblood); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--oxblood); outline-offset: 3px; }

/* Buttons: solid oxblood blocks, square-ish */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 28px;
  background: var(--oxblood); color: #fff; text-decoration: none;
  font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; letter-spacing: .01em;
  border: 2px solid var(--oxblood); border-radius: var(--radius);
  cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--oxblood-deep); border-color: var(--oxblood-deep); }
.btn-light { background: rgba(255,255,255,.92); color: var(--oxblood); border-color: rgba(255,255,255,.92); }
.btn-light:hover { background: #fff; color: var(--oxblood-deep); border-color: #fff; }
.btn-outline { background: transparent; color: var(--oxblood); }
.btn-outline:hover { background: var(--oxblood); color: #fff; }
.btn-small { min-height: 40px; padding: 6px 18px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 3px solid var(--oxblood); color: var(--oxblood);
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em;
}
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.6rem; color: var(--oxblood); line-height: 1; }
.brand-name small { display: block; font-weight: 500; font-size: .8rem; color: var(--stone); letter-spacing: .32em; margin-top: 4px; text-align: center; border-top: 1px solid var(--line); padding-top: 3px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 500; font-size: 1.08rem; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { color: var(--oxblood); border-bottom-color: var(--oxblood); }
.menu-toggle { display: none; background: none; border: 0; color: var(--oxblood); width: 48px; height: 48px; cursor: pointer; place-items: center; }

@media (max-width: 899px) {
  .menu-toggle { display: grid; }
  .site-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; min-height: 48px; }
}

/* Hero */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: flex-end; padding: 0; overflow: hidden; background: var(--paper); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 30%, rgba(255,255,255,.25) 62%, rgba(255,255,255,0) 80%);
}
@media (min-width: 900px) {
  .hero { align-items: center; }
  .hero-img { object-position: 85% 30%; left: 22%; width: 78%; }
  .hero::after { background: linear-gradient(to right, #fff 0%, #fff 24%, rgba(255,255,255,.85) 34%, rgba(255,255,255,0) 58%); }
  .hero-content { padding-top: 64px; }
}
.hero-content { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(40px, 7vw, 80px); }
.hero h1 { max-width: 15ch; margin-bottom: .3em; }
.hero-sub { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink); max-width: 44ch; margin-bottom: 1.6em; }
.hero-actions { display: grid; gap: 12px; max-width: 560px; }
.hero-actions .btn-light { background: transparent; color: var(--oxblood); border-color: var(--oxblood); }
.hero-actions .btn-light:hover { background: var(--oxblood); color: #fff; }
@media (min-width: 640px) { .hero-actions { grid-template-columns: 1fr 1fr; } }

/* Welcome */
.welcome { text-align: center; }
.welcome p { font-size: 1.15rem; }

/* Split */
.split-inner { display: grid; gap: 40px; align-items: center; }
.split-media { margin: 0; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-text .btn { margin-top: 12px; }
@media (min-width: 900px) { .split-inner { grid-template-columns: 1.1fr 1fr; gap: 72px; } }

.ticks { list-style: none; padding: 0; margin: 0 0 1.5em; }
.ticks li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 17px; width: 16px; height: 9px;
  border-left: 3px solid var(--oxblood); border-bottom: 3px solid var(--oxblood); transform: rotate(-45deg);
}

/* Section heads */
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--stone); font-size: 1.1rem; }

/* Products: photo tiles, caption centred below */
.product-grid { display: grid; gap: 40px; margin-bottom: 48px; }
@media (min-width: 760px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.product { text-align: center; }
.product img { width: 100%; aspect-ratio: 9 / 7; object-fit: cover; background: var(--paper); margin-bottom: 20px; }
.product h3 { margin-bottom: .35em; }
.product p { color: var(--stone); max-width: 34ch; margin: 0 auto; }

/* Documents */
.docs-inner { display: grid; gap: 40px; }
@media (min-width: 900px) { .docs-inner { grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: start; } .docs-intro { position: sticky; top: 110px; } }
.doc-list { margin: 0; background: var(--white); border-top: 4px solid var(--oxblood); }
.doc-list > div { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.doc-list dt { font-family: var(--font-head); font-weight: 500; font-size: 1.2rem; color: var(--ink); }
.doc-list dd { margin: 2px 0 0; color: var(--stone); }

/* Steps: a genuine sequence */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 32px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 20px; }
.steps li::before {
  content: counter(step); display: block;
  font-family: var(--font-head); font-weight: 600; font-size: 3.2rem; line-height: 1; color: var(--oxblood); margin-bottom: 14px;
}
.steps h3 { color: var(--ink); }
.steps p { color: var(--stone); margin: 0; }

/* Quote */
.quote-inner { display: grid; gap: 40px; }
@media (min-width: 900px) { .quote-inner { grid-template-columns: 1fr 1.3fr; gap: 72px; } }
.contact { margin: 28px 0 0; }
.contact > div { display: grid; grid-template-columns: 96px 1fr; padding: 10px 0; border-top: 1px solid var(--line); }
.contact dt { font-weight: 600; }
.contact dd { margin: 0; }

.quote-form { background: var(--white); padding: clamp(24px, 4vw, 40px); display: grid; gap: 20px; border-top: 4px solid var(--oxblood); }
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 20px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; font-size: 1rem; }
.optional { font-weight: 400; color: var(--stone); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  min-height: 48px; padding: 10px 12px; border: 1px solid #b9aca5; border-radius: var(--radius); width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--oxblood); outline-offset: 0; border-color: var(--oxblood); }
.hint { font-size: .92rem; color: var(--stone); margin: 0; }
.hp { position: absolute; left: -9999px; }
.btn:disabled { opacity: .6; cursor: progress; }
.form-status { margin: 0; min-height: 1.5em; }
.form-status.is-error { color: #9b1c1c; font-weight: 600; }
.form-done { background: var(--white); padding: clamp(24px, 4vw, 40px); border-top: 4px solid var(--oxblood); }
.form-done:focus { outline: none; }

/* Footer */
.site-footer { background: var(--oxblood); color: #f6e9e6; padding: 56px 0 40px; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; gap: 28px; }
.footer-brand { font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; color: #fff; margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer nav a { text-decoration: none; font-family: var(--font-head); font-size: 1.05rem; }
.site-footer nav a:hover { text-decoration: underline; }
.footer-note { font-size: .92rem; color: #e6cfca; border-top: 1px solid rgba(255,255,255,.2); padding-top: 20px; margin: 0; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } .footer-note { grid-column: 1 / -1; } }
