/* Surgical Equipment Rental — site styles
   Palette: Cream + Crimson + light grey */

:root {
  --cream:      #FBF7F0;
  --cream-alt:  #F4EEE3;
  --white:      #FFFFFF;
  --ink:        #1E2128;
  --muted:      #5F6570;
  --line:       #E6DFD2;
  --crimson:    #B01E28;
  --crimson-d:  #8C1820;
  --charcoal:   #1C1F26;
  --radius:     10px;
  --shadow:     0 1px 2px rgba(30,33,40,.04), 0 10px 30px rgba(30,33,40,.07);
  --maxw:       1140px;
  --font:       'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--crimson); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.015em; font-optical-sizing: auto; }
h3, h4 { font-family: var(--font); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--muted); }
::selection { background: var(--crimson); color: #fff; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--cream-alt { background: var(--cream-alt); }
.section--white { background: var(--white); }
.center { text-align: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 700; color: var(--crimson); margin: 0 0 .6rem;
}
.muted { color: var(--muted); }
.maxprose { max-width: 760px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-block; font-weight: 600; font-size: .98rem;
  padding: 13px 22px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid transparent; transition: .15s ease; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--crimson); color: #fff; }
.btn-primary:hover { background: var(--crimson-d); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { border-color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,240,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.02rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a {
  display: block; padding: 10px 12px; color: var(--ink); font-weight: 500; font-size: .92rem; white-space: nowrap; border-radius: 8px;
}
.nav-links > li > a:hover { background: var(--cream-alt); text-decoration: none; }
.nav-links a.active { color: var(--crimson); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: .15s ease; list-style: none; margin: 0;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: .94rem; }
.dropdown a:hover { background: var(--cream-alt); text-decoration: none; }
.dropdown a small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.dropdown-label { padding: 10px 12px 4px; font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--crimson); }
.dropdown-label + li a { padding-top: 6px; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* Hero */
.hero { background: var(--cream); border-bottom: 1px solid var(--line); }
.hero .container { padding-top: 80px; padding-bottom: 80px; }
.hero h1 { max-width: 18ch; }
.hero .lead { max-width: 52ch; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 32px;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); font-weight: 600;
}
.hero-meta span { position: relative; padding-left: 18px; }
.hero-meta span::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--crimson); border-radius: 50%; }
/* Two-column hero with image panel */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
/* Sub-page hero: left crimson rule, tighter */
.hero--sub { background: var(--cream-alt); }
.hero--sub .container { padding-top: 60px; padding-bottom: 52px; }
.hero--sub .inner { border-left: 3px solid var(--crimson); padding-left: 24px; }
.hero--sub h1 { max-width: 22ch; }

/* Grid helpers */
.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); }

/* Cards */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); height: 100%;
}
.card h3 { margin-top: 6px; }
.card .brands { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.icon {
  width: 44px; height: 44px; color: var(--crimson); margin-bottom: 14px;
}
.icon svg { width: 100%; height: 100%; }
.feature { border-top: 2px solid var(--ink); padding-top: 16px; }
.feature .icon { width: 32px; height: 32px; margin-bottom: 12px; }
.feature p { margin: 0; color: var(--muted); }
.feature h3 { margin: 0 0 5px; font-size: 1.04rem; }
.features-box .feature { border-top-color: rgba(255,255,255,.28); }

/* Photo slots — real image goes here; styled empty state until then */
.imgframe {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--cream-alt); border: 1px solid var(--line); aspect-ratio: 4 / 3;
  background-image: repeating-linear-gradient(45deg, rgba(176,30,40,.035) 0 12px, transparent 12px 24px);
}
.imgframe img { width: 100%; height: 100%; object-fit: cover; display: block; }
.imgframe--tall { aspect-ratio: 4 / 5; }
.imgframe--wide { aspect-ratio: 16 / 9; }
.imgframe--square { aspect-ratio: 1 / 1; }
.card > .imgframe:first-child { border-radius: 0; border-top: 0; border-left: 0; border-right: 0; }
.imgframe-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 22px; color: var(--muted);
}
.imgframe-ph .ico { width: 40px; height: 40px; color: var(--crimson); opacity: .85; }
.imgframe-ph .lbl { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--ink); }
.imgframe-ph .hint { font-size: .8rem; max-width: 30ch; line-height: 1.4; }

/* Asymmetric media split */
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.media-split--wideL { grid-template-columns: 1.25fr .75fr; }
.media-split--wideR { grid-template-columns: .75fr 1.25fr; }

/* Oversized stat / pull treatment to break the grid */
.bigstat { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; color: var(--crimson); letter-spacing: -.02em; }
.pull { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3; letter-spacing: -.01em; }

/* Numbered steps */
.steps { counter-reset: step; }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--crimson);
  color: #fff; font-weight: 800; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; }

/* Audience tiles */
.tile {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: .15s ease; color: var(--ink); height: 100%;
}
.tile:hover { transform: translateY(-2px); border-color: var(--crimson); text-decoration: none; }
.tile h3 { margin: 10px 0 4px; }
.tile .arrow { color: var(--crimson); font-weight: 700; margin-top: 12px; display: inline-block; }

/* Comparison table */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background:#fff; }
.compare .col { padding: 28px; }
.compare .col + .col { border-left: 1px solid var(--line); }
.compare .col.win { background: #fff; }
.compare .col.lose { background: var(--cream-alt); }
.compare h3 { display:flex; align-items:center; gap:8px; }
.compare ul { list-style: none; margin: 0; padding: 0; }
.compare li { padding: 9px 0 9px 26px; position: relative; border-top: 1px solid var(--line); color: var(--ink); }
.compare li:first-child { border-top: 0; }
.compare .lose li::before { content: "✕"; position: absolute; left: 0; color: #9a9a9a; font-weight: 700; }
.compare .win li::before { content: "✓"; position: absolute; left: 0; color: var(--crimson); font-weight: 800; }

/* Split (we handle / you handle) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.split .card h3 { color: var(--crimson); }

/* Standard features box */
.features-box { background: var(--charcoal); color: #fff; border-radius: var(--radius); padding: 32px; }
.features-box h2 { color: #fff; }
.features-box .grid h3 { color: #fff; }
.features-box .grid p { color: rgba(255,255,255,.78); }
.features-box .icon { color: #fff; }

/* Trust bar */
.trustbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; }
.trustbar .stat { font-weight: 600; color: var(--ink); }
.trustbar .stat span { color: var(--crimson); }

/* CTA banner */
.cta-banner { background: var(--crimson); color: #fff; }
.cta-banner .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 40px; flex-wrap: wrap; }
.cta-banner h2 { color: #fff; margin: 0; font-size: 1.6rem; }
.cta-banner .btn-primary { background: #fff; color: var(--crimson); }
.cta-banner .btn-primary:hover { background: var(--cream-alt); }

/* Footer */
.footer { background: var(--charcoal); color: rgba(255,255,255,.72); padding: 56px 0 28px; }
.footer a { color: rgba(255,255,255,.72); }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer .brand { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* Forms */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field .req { color: var(--crimson); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--cream); transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--crimson); background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }

/* Use-case list */
.usecase { border-left: 3px solid var(--crimson); padding: 4px 0 4px 18px; margin-bottom: 22px; }
.usecase h3 { margin: 0 0 4px; font-size: 1.05rem; }
.usecase p { margin: 0; }

/* Footnote */
sup { font-size: .62em; font-weight: 700; color: var(--crimson); }
.footnote { font-size: .82rem; color: var(--muted); margin-top: 24px; max-width: 80ch; }
.footnote sup { margin-right: 2px; }
.features-box .footnote { color: rgba(255,255,255,.62); }
.features-box .footnote sup, .features-box h3 sup { color: #fff; }

/* Prominent catch-all band */
.catchall { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 40px; }
.catchall h2 { color: #fff; }
.catchall p { color: rgba(255,255,255,.82); }
.catchall .pull { color: #fff; }

/* Spacing utils */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 14px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 2px; display: none;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 4px 0 4px 14px; padding: 0; display: none;
  }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown > a::after { content: " ▾"; color: var(--muted); }
}
@media (max-width: 860px) {
  .hero-grid, .media-split, .media-split--wideL, .media-split--wideR { grid-template-columns: 1fr; gap: 32px; }
  .hero-grid .imgframe { order: -1; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4, .compare, .split, .footer-grid { grid-template-columns: 1fr; }
  .compare .col + .col { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 52px 0; }
  .hero .container { padding-top: 52px; padding-bottom: 52px; }
}
