/* BenTech Medical Limited
   Two voices: Libre Baskerville speaks for the people, Source Sans 3 for the machines. */

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('assets/fonts/source-sans-3-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/libre-baskerville.woff') format('woff');
}

:root {
  --navy: #1b2955;
  --midnight: #10183a;
  --red: #d12030;
  --paper: #ffffff;
  --stone: #ebeae6;
  --stone-soft: #f5f4f1;
  --slate: #515a72;
  --rule: #d9d8d2;
  --rule-cool: #dfe2ea;
  --on-dark: #c9cfe2;

  --serif: 'Libre Baskerville', Baskerville, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(72px, 9vw, 136px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--navy); background: var(--paper); font: 400 19px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
address { font-style: normal; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 50; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 4px; }
.skip:focus { top: 12px; }

/* Type */
h1, h2 { font-family: var(--serif); letter-spacing: -0.022em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.9vw, 4.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.95rem, 3.3vw, 3.1rem); line-height: 1.12; }
h2 .line { display: block; }
.lead { font-size: clamp(1.1rem, 1.35vw, 1.3rem); line-height: 1.55; color: var(--slate); max-width: 34em; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px; border: 1.5px solid transparent; border-radius: 999px; font-size: 1.05rem; font-weight: 600; line-height: 1.2; text-align: center; transition: background-color .18s, color .18s, border-color .18s; }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--midnight); border-color: var(--midnight); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--stone); border-color: var(--stone); }
.btn-compact { min-height: 46px; padding: 0 22px; font-size: 1rem; }
.out-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.05rem; padding: 8px 0; border-bottom: 1.5px solid currentColor; line-height: 1.3; white-space: nowrap; }
.out-link svg { color: var(--red); flex: none; transition: transform .18s; }
.out-link:hover svg { transform: translate(2px, -2px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--rule-cool); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: var(--header-h); }
.logo { display: inline-flex; flex: none; }
.logo img { width: 196px; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); font-size: 1.05rem; }
.site-nav > a:not(.btn) { padding: 10px 0; background: linear-gradient(var(--red), var(--red)) left bottom / 0 2px no-repeat; transition: background-size .2s; }
.site-nav > a:not(.btn):hover { background-size: 100% 2px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.nav-phone svg { color: var(--red); }
.menu-toggle { display: none; }

/* Hero: the showroom */
.hero { background: var(--stone); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: center; padding-top: clamp(36px, 5vw, 76px); }
.hero-copy { padding-bottom: clamp(36px, 5vw, 76px); }
.hero-copy .lead { margin-top: 26px; max-width: 29em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-call { margin-top: 30px; font-size: 1rem; color: var(--slate); }
.hero-call a { color: var(--navy); font-weight: 600; white-space: nowrap; border-bottom: 1.5px solid var(--red); padding-bottom: 1px; }

.stage { min-width: 0; align-self: end; }
.stage-set { position: relative; height: clamp(380px, 58vh, 620px); background: var(--stone); }
.stage-word { position: absolute; left: 50%; top: -0.2em; transform: translateX(-50%); font: 900 clamp(150px, 26vw, 400px)/1 var(--sans); letter-spacing: -0.05em; color: #fff; white-space: nowrap; user-select: none; }
.stage-floor { position: absolute; left: 14%; right: 14%; bottom: 1.5%; height: 9%; background: radial-gradient(closest-side, rgba(16, 24, 58, .28), rgba(16, 24, 58, 0)); }
.stage-chair { position: absolute; left: 0; bottom: 3%; width: 100%; height: 80%; object-fit: contain; object-position: center bottom; mix-blend-mode: multiply; }
.stage-caption { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 22px 0 28px; border-top: 1px solid rgba(27, 41, 85, .22); min-height: 140px; }
.stage-caption h2 { font: 700 1.7rem/1.15 var(--sans); letter-spacing: -0.015em; }
.stage-caption p { margin-top: 6px; color: var(--slate); font-size: 1.05rem; line-height: 1.45; max-width: 26em; }

.stage-word, .stage-chair { transition: opacity .22s ease; }
.stage.is-changing .stage-word, .stage.is-changing .stage-chair { opacity: 0; }
@keyframes word-in { from { opacity: 0; transform: translateX(-50%) translateY(18px); } }
@keyframes chair-in { from { opacity: 0; transform: translateY(26px); } }
.stage-word { animation: word-in .9s cubic-bezier(.2, .7, .2, 1) backwards; }
.stage-chair { animation: chair-in .9s .18s cubic-bezier(.2, .7, .2, 1) backwards; }

/* Line-up */
.lineup { background: var(--paper); border-bottom: 1px solid var(--rule-cool); }
.lineup-track { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); }
.lineup-tab { position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; padding: 20px 4px 18px; background: none; border: 0; color: var(--slate); line-height: 1.25; transition: background-color .18s, color .18s; }
.lineup-tab img { height: 64px; width: auto; margin-bottom: 10px; mix-blend-mode: multiply; }
.lineup-brand { font-size: .84rem; }
.lineup-name { font-size: clamp(.92rem, 1.45vw, 1.1rem); font-weight: 700; color: var(--navy); white-space: nowrap; }
.lineup-tab::before { content: ''; position: absolute; top: 0; left: 50%; width: 10px; height: 10px; margin-left: -5px; background: var(--red); transform: translateY(-50%) scale(0); transition: transform .2s; }
.lineup-tab:hover { background: var(--stone-soft); }
.lineup-tab[aria-selected='true'] { background: var(--stone); }
.lineup-tab[aria-selected='true']::before { transform: translateY(-50%) scale(1); }
.lineup-tab:focus-visible { outline-offset: -4px; }

/* Assurances */
.assurances { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 0; margin-bottom: 0; }
.assurances li { padding: 26px 0; font-weight: 600; font-size: 1.05rem; display: flex; align-items: center; gap: 14px; }
.assurances li::before { content: ''; width: 8px; height: 8px; background: var(--red); flex: none; }
.assurances li + li { padding-left: clamp(16px, 3vw, 48px); border-left: 1px solid var(--rule-cool); }
.assurances { border-bottom: 1px solid var(--rule-cool); }

/* Sections */
.section { padding-block: var(--section); }
.section-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 6vw, 110px); align-items: end; margin-bottom: clamp(44px, 6vw, 84px); }
.section-head h2 { max-width: 15em; }

/* Range */
.brand-block { border-top: 2px solid var(--navy); padding-top: 30px; }
.brand-head { display: grid; grid-template-columns: 210px minmax(0, 30em) 1fr; gap: 20px clamp(20px, 4vw, 56px); align-items: center; margin-bottom: 34px; }
.brand-head h3 { line-height: 0; height: 56px; display: flex; align-items: center; }
.brand-head p { color: var(--slate); }
.brand-head .brand-note { justify-self: end; align-self: center; color: var(--navy); font-size: .95rem; font-weight: 600; padding: 9px 16px; border: 1px solid var(--rule-cool); border-radius: 999px; white-space: nowrap; }
.brand-logo { height: 46px; width: auto; }
.brand-logo-xsto { height: 54px; }
.brand-logo-ergo { height: 54px; }

.models { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(16px, 2vw, 28px); }
.model { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.model-wide { grid-column: span 3; }
.model-stage { position: relative; width: 100%; aspect-ratio: 5 / 4; background: var(--stone); border-radius: 4px; margin-bottom: 22px; overflow: hidden; }
.model-wide .model-stage { aspect-ratio: 16 / 10; }
.model-stage img { position: absolute; left: 8%; top: 9%; width: 84%; height: 86%; object-fit: contain; object-position: center bottom; mix-blend-mode: multiply; }
.model-wide .model-stage img, .brand-solo .model-stage img { top: 7%; height: 88%; }
.model h4 { font: 700 1.75rem/1.15 var(--sans); letter-spacing: -0.015em; }
.model p { margin: 8px 0 16px; color: var(--slate); max-width: 26em; }
.model .out-link { margin-top: auto; }

.brand-block + .brand-block { margin-top: clamp(64px, 7vw, 104px); }
.brand-solo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 80px); align-items: center; }
.brand-solo .model-stage { aspect-ratio: 16 / 10; margin-bottom: 0; }
.brand-solo h3 { line-height: 0; margin-bottom: 26px; }
.brand-solo h4 { font: 700 1.75rem/1.15 var(--sans); letter-spacing: -0.015em; }
.brand-solo p { margin: 8px 0 18px; color: var(--slate); max-width: 26em; }
.range-note { margin-top: clamp(40px, 5vw, 64px); font-size: .95rem; line-height: 1.6; color: var(--slate); max-width: 62em; }

/* About */
.about { background: var(--stone-soft); }
.about .section-head { align-items: start; }
.about .section-head p + p { margin-top: 18px; color: var(--slate); max-width: 34em; }
.route { list-style: none; margin: 0 0 clamp(40px, 5vw, 60px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); border-top: 2px solid var(--navy); }
.route li { position: relative; padding-top: 34px; }
.route li::before { content: ''; position: absolute; left: 0; top: -7px; width: 12px; height: 12px; background: var(--red); }
.route h3 { font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; letter-spacing: -0.01em; }
.route p { margin-top: 12px; color: var(--slate); max-width: 24em; }

/* Retailers */
.retailers { background: var(--navy); color: #fff; padding-block: clamp(60px, 7vw, 100px); }
.retailers-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.retailers-for { color: var(--on-dark); font-weight: 600; margin-bottom: 14px; }
.retailers h2 { max-width: 16em; }
.retailers :focus-visible, .contact-copy :focus-visible { outline-color: #fff; }

/* FAQ */
.faq-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.faq-list { border-bottom: 1px solid var(--rule-cool); }
details { border-top: 1px solid var(--rule-cool); }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; flex: none; width: 16px; height: 16px; background: linear-gradient(var(--navy), var(--navy)) center / 100% 2px no-repeat, linear-gradient(var(--navy), var(--navy)) center / 2px 100% no-repeat; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
summary:hover { color: var(--midnight); }
details p { padding: 0 40px 28px 0; color: var(--slate); max-width: 38em; }

/* Contact */
.contact { background: var(--midnight); color: #fff; }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 120px); align-items: start; }
.contact .lead { color: var(--on-dark); margin-top: 24px; max-width: 24em; }
.contact-details { margin: clamp(36px, 5vw, 60px) 0 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.contact-details > div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.contact-details dt { color: var(--on-dark); font-size: 1rem; }
.contact-details dd { margin: 0; font-size: 1.15rem; line-height: 1.5; }
.contact-details a { border-bottom: 1.5px solid rgba(255, 255, 255, .45); padding-bottom: 1px; overflow-wrap: anywhere; }
.contact-details a:hover { border-bottom-color: #fff; }
.contact-details .contact-phone { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -0.01em; border-bottom: 0; white-space: nowrap; }

.enquiry { background: var(--paper); color: var(--navy); padding: clamp(26px, 3.4vw, 46px); border-radius: 6px; }
.enquiry h3 { font-family: var(--serif); font-size: 1.7rem; line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 8px; }
label { display: block; margin-top: 20px; font-size: 1rem; font-weight: 600; }
input, textarea, select { display: block; width: 100%; margin-top: 8px; padding: 14px 16px; background: #fff; border: 1.5px solid #9aa2b8; border-radius: 4px; font-size: 1.1rem; font-weight: 400; line-height: 1.4; }
select { appearance: none; -webkit-appearance: none; padding-right: 46px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231b2955' stroke-width='2'/%3E%3C/svg%3E") right 18px center no-repeat; }
input:hover, textarea:hover, select:hover { border-color: var(--navy); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
input::placeholder, textarea::placeholder { color: #68718a; opacity: 1; }
textarea { resize: vertical; min-height: 130px; }
.form-note, .form-status { margin-top: 18px; font-size: .95rem; line-height: 1.55; color: var(--slate); }
.form-status { padding: 14px 16px; background: var(--stone-soft); border-left: 3px solid var(--red); color: var(--navy); }
.form-status:empty { display: none; }
.enquiry .btn { margin-top: 22px; width: 100%; }

/* Footer */
.site-footer { padding-block: clamp(48px, 6vw, 80px) 40px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: center; }
.site-footer .logo img { width: 210px; }
.footer-line { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -0.015em; text-align: right; }
.footer-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 34px; padding-top: 28px; border-top: 1px solid var(--rule-cool); font-size: 1.05rem; }
.footer-nav a, .link-button { padding: 8px 0; }
.footer-nav a:hover, .link-button:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.link-button { background: none; border: 0; }
.footer-legal { grid-column: 1 / -1; font-size: .9rem; line-height: 1.6; color: var(--slate); max-width: 64em; }
.footer-legal p + p { margin-top: 4px; }

/* Privacy dialog */
dialog { width: min(100% - 32px, 600px); padding: clamp(28px, 5vw, 48px); border: 0; border-radius: 6px; color: var(--navy); box-shadow: 0 30px 80px rgba(16, 24, 58, .35); }
dialog::backdrop { background: rgba(16, 24, 58, .62); }
dialog h2 { font-size: 1.8rem; margin-bottom: 18px; padding-right: 40px; }
dialog p { color: var(--slate); }
dialog p + p { margin-top: 14px; }
dialog a { color: var(--navy); border-bottom: 1.5px solid var(--red); }
.dialog-close { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--stone-soft); font-size: 26px; line-height: 1; }
.dialog-close:hover { background: var(--stone); }

/* Tablet */
@media (max-width: 1120px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 16px; background: none; border: 1.5px solid var(--navy); border-radius: 999px; font-weight: 600; font-size: 1rem; }
  .menu-toggle-bars { width: 18px; height: 10px; border-block: 2px solid var(--navy); transition: height .18s; }
  .menu-toggle[aria-expanded='true'] .menu-toggle-bars { height: 0; border-bottom-width: 0; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 28px; background: #fff; border-bottom: 1px solid var(--rule-cool); box-shadow: 0 24px 40px rgba(16, 24, 58, .12); }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn):not(.nav-phone), .site-nav .nav-phone { display: flex; padding: 16px 0; font-size: 1.2rem; border-bottom: 1px solid var(--rule-cool); background: none; }
  .site-nav .btn { margin-top: 22px; min-height: 54px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lineup .wrap { width: 100%; }
  .lineup-track { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 112px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-inline: calc(var(--gutter) - 8px); }
  .lineup-track::-webkit-scrollbar { display: none; }
  .lineup-tab { scroll-snap-align: center; }
  .lineup-name { font-size: 1.05rem; }
  .lineup-tab::before { transform: scale(0); }
  .lineup-tab[aria-selected='true']::before { transform: scale(1); }
  .brand-head { grid-template-columns: 170px 1fr; }
  .brand-head .brand-note { grid-column: 2; justify-self: start; }
}

/* Mobile */
@media (max-width: 800px) {
  :root { --header-h: 68px; }
  body { font-size: 18px; }
  .logo img { width: 158px; }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; padding-top: 40px; }
  .hero-copy { padding-bottom: 0; }
  .actions { margin-top: 28px; }
  .actions .btn { flex: 1 1 220px; }
  .stage { margin-top: 28px; }
  .stage-set { height: clamp(300px, 86vw, 440px); }
  .stage-caption { flex-direction: column; align-items: flex-start; gap: 12px; min-height: 0; padding: 18px 0 26px; }

  .assurances { grid-template-columns: 1fr; padding-block: 10px; }
  .assurances li { padding: 12px 0; }
  .assurances li + li { padding-left: 0; border-left: 0; }

  .section-head, .faq-inner, .contact-inner { grid-template-columns: 1fr; }
  .section-head { gap: 22px; align-items: start; }
  .brand-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 28px; }
  .brand-head .brand-note { grid-column: 1; white-space: normal; }
  .brand-logo { height: 40px; }
  .brand-logo-xsto, .brand-logo-ergo { height: 46px; }
  .models { grid-template-columns: 1fr; gap: 44px; }
  .model, .model-wide { grid-column: auto; }
  .model-stage, .model-wide .model-stage, .brand-solo .model-stage { aspect-ratio: 5 / 4; }
  .model-wide .model-stage img, .brand-solo .model-stage img { top: 9%; height: 86%; }
  .brand-solo { grid-template-columns: 1fr; gap: 24px; }
  .brand-solo .model-stage { margin-bottom: 0; }

  .route { grid-template-columns: 1fr; gap: 0; border-top: 0; border-left: 2px solid var(--navy); margin-left: 5px; }
  .route li { padding: 0 0 34px 28px; }
  .route li:last-child { padding-bottom: 4px; }
  .route li::before { left: -7px; top: 8px; }

  .retailers-inner { flex-direction: column; align-items: flex-start; }
  .contact-details > div { grid-template-columns: 70px 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-line { text-align: left; }
  details p { padding-right: 0; }
}

@media (max-width: 420px) {
  .actions .btn { flex-basis: 100%; }
  .out-link { white-space: normal; }
}

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