/* Borne Medical — design system mirrors the reference HubSpot theme
   (Poppins headings, Inter Tight body, brand blue, warm cream, charcoal) */
:root {
  --blue: #006eb2;
  --blue-dark: #00548a;
  --blue-light: #e6f1f8;
  --charcoal: #414042;
  --ink: #1d1d1f;
  --gray: #666666;
  --line: #e4e1dd;
  --cream: rgb(252, 249, 247);
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --max: 1240px;
  --font-head: "Poppins", sans-serif;
  --font-body: "Inter Tight", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section--cream { background: var(--cream); }
.section--blue { background: var(--blue); color: #fff; }
.section--blue h2 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.2rem; max-width: 760px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-block; font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }

/* Buttons (cta-primary / cta-four / cta-five equivalents) */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 15px 30px; border-radius: 50px; border: 2px solid transparent;
  transition: all .25s ease; cursor: pointer;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--light { background: #fff; color: var(--blue); }
.btn--light:hover { background: var(--blue-light); }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* Top bar */
.topbar { background: var(--charcoal); color: #fff; font-size: .85rem; }
.topbar .container { display: flex; justify-content: flex-end; gap: 28px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; opacity: .9; }
.topbar a:hover { opacity: 1; }

/* Header / nav */
.header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.logo svg { width: 38px; height: 38px; }
.logo span { color: var(--blue); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; }
.nav > ul > li { position: relative; }
.nav > ul > li > a { display: block; padding: 30px 16px; font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink); }
.nav > ul > li > a:hover { color: var(--blue); }
.nav > ul > li.has-drop > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff;
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
  list-style: none; margin: 0; padding: 12px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease;
}
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 9px 24px; color: var(--charcoal); font-size: .95rem; }
.dropdown a:hover { background: var(--cream); color: var(--blue); }
.nav .btn { margin-left: 14px; padding: 12px 24px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--ink); border-radius: 2px; }

/* Hero */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fff; overflow: hidden;
  background: #0b2233 url("../images/hero.jpg") center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(0,110,178,.55), transparent 55%), linear-gradient(135deg, #0b2233 0%, #003f66 100%); z-index: 0; }
.hero.has-photo::before { background: none; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.60); z-index: 1; }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 760px; }
.hero p { font-size: 1.25rem; max-width: 620px; opacity: .92; margin-bottom: 36px; }

/* Problem statement */
.problem h2 { max-width: 900px; margin: 0 auto .6em; }

/* Pillar cards (Parts / Service / Equipment) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.card { position: relative; background: #fff; border-radius: var(--radius); padding: 40px 32px; box-shadow: var(--shadow); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.card:hover::after { transform: scaleX(1); }
.icon { width: 64px; height: 64px; border-radius: 16px; background: var(--blue-light); color: var(--blue); display: grid; place-items: center; margin-bottom: 22px; }
.icon svg { width: 32px; height: 32px; }
.card a.more { font-family: var(--font-head); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }

/* Feature rows (alternating) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 60px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.reverse .feature-media { order: 2; }
.feature-media { aspect-ratio: 4 / 3; border-radius: var(--radius); background: linear-gradient(135deg, var(--blue) 0%, #0b2233 100%) center / cover no-repeat; display: grid; place-items: center; color: rgba(255,255,255,.85); box-shadow: var(--shadow); }
.feature-media svg { width: 34%; height: auto; }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: #fff; }
.stat span { opacity: .85; }

/* Partnership / testimonial */
.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #0b2233, var(--blue)); box-shadow: var(--shadow); display: grid; place-items: center; }
.play { width: 84px; height: 84px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--blue); transition: transform .2s; }
.video:hover .play { transform: scale(1.08); }
.quote { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.5; color: var(--ink); margin: 0 0 20px; }
.quote-by { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--blue-light); color: var(--blue); display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; }

/* Testimonial scroller */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(320px, 1fr); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 24px; margin-top: 48px; }
.scroller .card { scroll-snap-align: start; }
.stars { color: #f5a623; letter-spacing: 3px; margin-bottom: 12px; }

/* CTA band */
.cta-band { background: var(--blue); color: #fff; border-radius: 20px; padding: 72px 48px; text-align: center; background-image: radial-gradient(circle at 10% 10%, rgba(255,255,255,.12), transparent 40%); }
.cta-band h2 { color: #fff; max-width: 760px; margin: 0 auto .5em; }
.cta-band p { max-width: 600px; margin: 0 auto 32px; opacity: .9; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form label { font-size: .85rem; font-weight: 600; display: block; margin-bottom: 6px; color: var(--ink); }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 1rem; padding: 13px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.contact-info p { margin-bottom: 6px; }

/* Footer */
.footer { background: var(--charcoal); color: rgba(255,255,255,.8); padding: 80px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.footer h4 { color: #fff; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,.8); }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 18px; }
.social { display: flex; gap: 12px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; }
.social a:hover { background: var(--blue); border-color: var(--blue); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-base { border-top: 1px solid rgba(255,255,255,.15); margin-top: 56px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.footer-base ul { display: flex; gap: 24px; }

/* Accessibility */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--blue); color: #fff; padding: 12px 20px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .section--blue :focus-visible, .cta-band :focus-visible, .footer :focus-visible, .topbar :focus-visible { outline-color: #fff; }
main:focus { outline: none; }
.eyebrow--light { color: #9fd3f5; }

/* Reveal on scroll (only hides content when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 84px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 24px; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; }
  .nav.open { transform: none; }
  .nav > ul { flex-direction: column; }
  .nav > ul > li > a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding: 0 0 8px; }
  .has-drop.open .dropdown { display: block; }
  .dropdown a { padding: 8px 12px; }
  .nav .btn { margin: 20px 0 0; justify-content: center; }
  .pillars, .stats { grid-template-columns: 1fr 1fr; }
  .feature, .story, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature.reverse .feature-media { order: 0; }
  .topbar { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { min-height: 520px; }
  .pillars, .stats, .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 48px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
