/* ============================================================
   Restore Medical Solutions — rebuilt site
   Palette from the company's own logo: green #78a518,
   teal #0f6b6b, blue #0078c0, on white with warm grey.
   Headings in Barlow; body in Inter.
   ============================================================ */

@font-face { font-family: 'Barlow'; src: url('../font/Barlow-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../font/Barlow-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../font/Barlow-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../font/Inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --green: #6d9715;
  --green-2: #78a518;
  --green-pale: #f1f6e6;
  --teal: #0f6b6b;
  --teal-2: #14807d;
  --blue: #0a6aa8;
  --blue-2: #0078c0;
  --ink: #1a1f24;
  --text: #4a525a;
  --soft: #6f7780;
  --line: #e2e6e3;
  --line-2: #cdd4cf;
  --paper: #ffffff;
  --paper-2: #f5f7f5;
  --paper-3: #eef2ee;
  --wrap: 1120px;
  --r: 8px;
  --r-lg: 14px;
  --head: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; height: auto; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); margin: 0 0 .55rem; line-height: 1.1; font-weight: 600; letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.25rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: var(--teal); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 800px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.lead { font-size: 1.07rem; max-width: 64ch; }
.small { font-size: .9rem; }
.muted { color: var(--soft); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.8rem; } .mt-4 { margin-top: 2.6rem; }
.mb-0 { margin-bottom: 0; }

.eyebrow { display: inline-block; font-family: var(--head); font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); margin: 0 0 .7rem; }
.rule { display: block; width: 44px; height: 3px; background: var(--green-2); margin-bottom: 1rem; }
.center .rule { margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--teal); color: #fff; padding: .8rem 1.1rem; }
.skip:focus { left: 0; }

/* header */
.topbar { background: var(--teal); color: rgba(255,255,255,.78); font-size: .77rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: space-between; align-items: center; min-height: 34px; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--green-pale); }
.site-header { position: sticky; top: 0; z-index: 90; background: #fff; border-bottom: 1px solid var(--line); }
.site-header.is-stuck { box-shadow: 0 6px 20px rgba(15,60,40,.09); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 78px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.nav > li { list-style: none; }
.nav a { display: inline-block; padding: .5rem .72rem; font-family: var(--head); font-size: .88rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.nav a:hover { color: var(--teal); }
.nav a[aria-current="page"] { color: var(--teal); box-shadow: inset 0 -3px 0 var(--green-2); }
.nav-cta { margin-left: .5rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font-family: var(--head); font-size: .88rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: .8rem 1.35rem; border: 2px solid transparent; border-radius: 4px; cursor: pointer; text-align: center; transition: background-color .16s ease, color .16s ease, border-color .16s ease; }
.btn--green { background: var(--green-2); color: #14200a; }
.btn--green:hover { background: var(--teal); color: #fff; }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--green-2); color: #14200a; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--on-dark { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--on-dark:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn--white { background: #fff; color: var(--teal); }
.btn--white:hover { background: var(--green-pale); color: var(--ink); }
.btn--sm { padding: .48rem .9rem; font-size: .78rem; }

.nav-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: auto; padding: 0; background: #fff; border: 1px solid var(--line-2); border-radius: 6px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.drawer { position: fixed; inset: 0 0 0 auto; z-index: 120; width: min(330px, 88vw); background: #fff; box-shadow: -12px 0 36px rgba(0,0,0,.16); transform: translateX(102%); transition: transform .26s ease; display: flex; flex-direction: column; padding: 1.1rem 1.3rem 1.6rem; overflow-y: auto; }
.drawer[data-open="true"], .drawer.is-open { transform: translateX(0); }
body.no-scroll { overflow: hidden; }
.drawer-close { align-self: flex-end; background: none; border: 0; font-size: 1.7rem; line-height: 1; color: var(--ink); cursor: pointer; padding: .2rem .5rem; }
.drawer ul { list-style: none; margin: 1rem 0 1.4rem; padding: 0; }
.drawer a { display: block; padding: .75rem .2rem; font-family: var(--head); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--line); }
.drawer a[aria-current="page"] { color: var(--teal); }
.drawer .btn { width: 100%; }
.scrim { position: fixed; inset: 0; z-index: 110; background: rgba(0,30,25,.5); opacity: 0; pointer-events: none; transition: opacity .26s ease; }
.scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

/* hero */
.hero { position: relative; isolation: isolate; color: #fff; padding: clamp(70px, 10.5vw, 128px) 0 clamp(58px, 8.6vw, 100px); overflow: hidden; background: #0d2a2a; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(9,42,42,.9) 0%, rgba(12,60,58,.78) 46%, rgba(16,84,92,.42) 100%); }
.hero h1 { color: #fff; max-width: 22ch; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: #b9d97a; }
.hero p { color: rgba(255,255,255,.9); max-width: 52ch; font-size: clamp(1rem, 1.5vw, 1.13rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.7rem 0 0; padding: 0; list-style: none; }
.hero-meta li { font-family: var(--head); font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.3); border-radius: 3px; padding: .3rem .75rem; }

/* sections */
.section { padding: clamp(46px, 6.2vw, 86px) 0; }
.section--paper { background: var(--paper); }
.section--soft { background: var(--paper-2); }
.section--grey { background: var(--paper-3); }
.section--teal { background: var(--teal); color: rgba(255,255,255,.82); }
.section--teal h2, .section--teal h3 { color: #fff; }
.section--teal .lead { color: rgba(255,255,255,.86); }
.section--teal .eyebrow { color: #b9d97a; }
.section--teal .checks li::before { border-color: #b9d97a; }
.section-head { max-width: 720px; margin-bottom: clamp(24px, 3.2vw, 40px); }
.section-head.center { margin-inline: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 54px); align-items: center; }
.split--wide { grid-template-columns: 1.06fr .94fr; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.2vw, 26px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 24px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 22px); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 2.2vw, 26px); }
.card p { font-size: .94rem; margin-bottom: 0; }
.card h3 { margin-bottom: .3rem; }
.card--lift { transition: transform .2s ease, box-shadow .2s ease; }
.card--lift:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15,60,40,.09); }
.section--teal .card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }

.feature { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 26px); }
.feature article { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature .body { padding: 1.1rem 1.2rem 1.3rem; }
.feature .big { font-family: var(--head); font-size: 2.2rem; font-weight: 700; color: var(--teal); line-height: 1; }
.feature p { font-size: .93rem; margin-top: .5rem; }

.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--r-lg); }
.figure figcaption { font-size: .8rem; color: var(--soft); margin-top: .6rem; }

.quote { margin: 0; padding: clamp(22px, 3vw, 34px); background: var(--green-pale); border-left: 4px solid var(--green-2); }
.quote blockquote { margin: 0; font-family: var(--head); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.35; color: var(--ink); font-weight: 500; }
.quote figcaption { margin-top: .8rem; font-size: .82rem; color: var(--soft); }

.callout { border: 1px solid var(--line); background: var(--paper-2); border-left: 4px solid var(--teal); padding: clamp(16px, 2.2vw, 24px); }
.callout h3, .callout h4 { margin-bottom: .3rem; }
.callout p { font-size: .94rem; }
.notice { border: 1px solid var(--line); background: #fff; border-radius: var(--r); padding: 1.05rem 1.2rem; font-size: .93rem; }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 1.55rem; margin-bottom: .55rem; font-size: .96rem; }
.checks li::before { content: ''; position: absolute; left: 0; top: .55em; width: 9px; height: 5px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.specs { list-style: none; margin: 0; padding: 0; }
.specs li { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.specs li:first-child { border-top: 1px solid var(--line); }
.specs .k { font-family: var(--head); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); padding-top: .2rem; }

.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .65rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--head); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); border-bottom: 2px solid var(--line-2); }
.table td:first-child { font-family: var(--head); font-weight: 600; color: var(--teal); white-space: nowrap; }

/* video */
.video-facade { position: relative; display: block; width: 100%; padding: 0; border: 1px solid rgba(255,255,255,.24); cursor: pointer; background: #0b2b2b; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 2 / 1; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; }
.video-facade::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.34)); }
.video-facade .video-play { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%; background: #fff; color: var(--teal); display: flex; align-items: center; justify-content: center; z-index: 2; box-shadow: 0 10px 26px rgba(0,0,0,.28); }
.video-facade .video-play svg { width: 20px; height: 20px; margin-left: 3px; }
.video-facade .label { position: absolute; left: 14px; bottom: 12px; z-index: 2; font-family: var(--head); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.video-embed { position: relative; aspect-ratio: 2 / 1; border-radius: var(--r-lg); overflow: hidden; background: #000; }
.video-embed video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.figure-note { font-size: .8rem; color: rgba(255,255,255,.64); margin-top: .7rem; text-align: center; }

/* form */
.form { display: grid; gap: .95rem; }
.field { display: grid; gap: .3rem; }
.field label { font-family: var(--head); font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.field input, .field textarea { font-family: inherit; font-size: .98rem; color: var(--ink); padding: .7rem .85rem; border: 1.5px solid var(--line-2); border-radius: 5px; background: #fff; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,107,107,.14); }
.field textarea { min-height: 120px; resize: vertical; }
.field .err { font-size: .78rem; color: #a3231b; min-height: 1em; }
.field.has-error input, .field.has-error textarea { border-color: #d0918a; background: #fffafa; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .95rem; }
.form-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.form-check input { margin-top: .3rem; }
.form-status { font-size: .92rem; padding: .85rem 1rem; border-radius: 5px; background: var(--green-pale); color: var(--ink); }
.form-status.bad { background: #fdecea; color: #8b231c; }
.form-status.ok { background: #eaf5ea; color: #1f5a22; }

.cta-band { background: var(--teal); color: rgba(255,255,255,.86); padding: clamp(42px, 5.6vw, 74px) 0; }
.cta-band h2 { color: #fff; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }

.site-footer { background: #0d2a2a; color: rgba(255,255,255,.62); padding: clamp(36px, 5vw, 56px) 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: clamp(20px, 3vw, 38px); padding-bottom: 1.8rem; }
.site-footer h4 { color: #fff; font-family: var(--head); font-size: .73rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.site-footer li + li { margin-top: .4rem; }
.site-footer a { color: rgba(255,255,255,.68); }
.site-footer a:hover { color: #c9e08f; }
.footer-brand img { height: 40px; width: auto; background: #fff; padding: 7px 9px; border-radius: 4px; margin-bottom: .8rem; }
.footer-brand p { font-size: .86rem; max-width: 40ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; justify-content: space-between; font-size: .78rem; color: rgba(255,255,255,.46); }
.footer-bottom .disc { max-width: 64ch; }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--teal); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 12px rgba(15,60,40,.14); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.to-top[data-show="true"] { opacity: 1; pointer-events: auto; }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .split, .split--wide { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .feature { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .specs li { grid-template-columns: 130px 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .grid-2, .grid-3, .grid-4, .feature { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .specs li { grid-template-columns: 1fr; gap: .2rem; }
  .hero { padding-top: 52px; }
  .hero-actions .btn { width: 100%; }
  .table { font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .topbar, .drawer, .scrim, .to-top { display: none !important; }
  body { color: #000; background: #fff; }
  .hero, .section--teal, .cta-band, .site-footer { background: #fff !important; color: #000 !important; }
  h1, h2, h3, h4 { color: #000 !important; }
  a { color: #000; text-decoration: underline; }
}
