:root {
  --ink: #242126;
  --muted: #6e666a;
  --paper: #fffefe;
  --ivory: #f8f5f6;
  --mint: #f3dfe3;
  --aqua: #c82143;
  --teal: #b31130;
  --deep: #171719;
  --line: #e2d4d7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
button, a, input, textarea { font: inherit; }
button { cursor: pointer; }

.demo-bar { padding: 8px 20px; background: #f0e4e7; color: #75565e; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.header { height: 82px; max-width: 1240px; margin: auto; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; background: var(--ivory); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-logo-frame { width: 46px; height: 46px; overflow: hidden; display: grid; place-items: center; border: 1px solid #eadcdf; border-radius: 13px; background: white; box-shadow: 0 8px 20px rgba(179,17,48,.11); }
.brand-logo { width: 100%; height: 100%; object-fit: cover; }
.brand strong, .brand small { display: block; }
.brand strong { font: 500 18px Georgia, serif; letter-spacing: .08em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }
nav { display: flex; gap: 29px; }
nav a { color: var(--muted); text-decoration: none; font-size: 12px; }
.header-action, .outline { padding: 12px 19px; border: 1px solid #a9c5c0; border-radius: 999px; background: transparent; color: var(--deep); }

.hero { position: relative; min-height: 690px; overflow: hidden; display: flex; align-items: center; background: #ddd3d5; }
.hero-media { position: absolute; inset: 0; background-image: url("marbus-hero-dr-marcos.jpg"); background-size: cover; background-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 41%, rgba(255,255,255,.35) 67%, rgba(255,255,255,0) 100%); }
.hero-content { position: relative; z-index: 2; width: min(650px, 55%); margin-left: max(34px, calc((100vw - 1180px)/2)); padding: 80px 0 110px; color: var(--ink); }
.eyebrow { color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow.dark { color: var(--teal); }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.035em; }
h1 { max-width: 650px; margin: 18px 0 24px; font-size: clamp(48px, 5.5vw, 76px); line-height: 1.01; color: var(--ink); }
h1 em { color: var(--teal); font-weight: 400; }
.hero-lead { max-width: 585px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 31px; }
.primary { border: 0; border-radius: 999px; background: var(--aqua); color: white; padding: 16px 22px; font-weight: 700; box-shadow: 0 12px 30px rgba(93,10,27,.18); }
.primary span { margin-left: 12px; }
.ghost { border: 1px solid #cdb7bb; border-radius: 999px; color: var(--ink); padding: 15px 20px; text-decoration: none; font-size: 13px; }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 32px; color: var(--muted); font-size: 11px; }
.hero-card { position: absolute; z-index: 2; right: max(34px, calc((100vw - 1180px)/2)); bottom: 45px; width: 290px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); color: var(--ink); box-shadow: 0 18px 45px rgba(179,17,48,.08); }
.hero-card > span { color: var(--teal); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.hero-card strong { display: block; margin: 9px 0 15px; font: 400 19px/1.25 Georgia, serif; }
.hero-card div { display: flex; gap: 5px; }
.hero-card i { width: 28%; height: 3px; border-radius: 10px; background: var(--aqua); }
.hero-card i:nth-child(2) { width: 38%; opacity: .72; }
.hero-card i:nth-child(3) { width: 24%; opacity: .42; }
.hero-card small { display: block; margin-top: 12px; color: var(--muted); font-size: 9px; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 24px; transform: translateX(-50%); color: var(--muted); text-decoration: none; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }

.intro-strip { padding: 26px 30px; display: flex; justify-content: center; gap: 16px; background: var(--deep); color: white; font: 17px Georgia, serif; }
.intro-strip p { margin: 0; color: #d6c8cc; }
.section { max-width: 1160px; margin: auto; padding: 105px 30px; }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 80px; }
h2 { margin: 13px 0 0; font-size: clamp(38px, 4.5vw, 58px); line-height: 1.06; }
.section-head > p, .team-copy > p, .faq > div > p { color: var(--muted); line-height: 1.7; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 55px; }
.service-grid article { position: relative; min-height: 330px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); transition: transform .2s, box-shadow .2s; }
.service-grid article:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(30,72,73,.08); }
.service-number { color: #8bbab1; font: 13px Georgia, serif; }
.service-grid article > i { display: grid; place-items: center; width: 45px; height: 45px; margin-top: 35px; border-radius: 14px; background: var(--mint); color: var(--teal); font-style: normal; font-size: 20px; }
.service-grid h3 { margin: 21px 0 10px; font: 400 24px Georgia, serif; }
.service-grid p { min-height: 75px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.service-grid button { padding: 0; border: 0; background: transparent; color: var(--teal); font-size: 11px; font-weight: 700; }

.clinical-band { padding: 90px max(30px, calc((100vw - 1100px)/2)); display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; background: #211d20; color: white; }
.clinical-band h2 { max-width: 480px; }
.clinical-list { display: grid; grid-template-columns: 1fr 1fr; align-content: center; }
.clinical-list span { padding: 24px 18px; border-bottom: 1px solid rgba(255,255,255,.18); color: #e4dadd; font-size: 18px; line-height: 1.5; }
.clinical-list b { margin-right: 12px; color: #e16f86; font: 400 18px Georgia, serif; }
.team { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 90px; }
.team-visual { position: relative; min-height: 500px; overflow: hidden; display: grid; place-items: center; border-radius: 24px 130px 24px 24px; background: radial-gradient(circle at 50% 35%, #fff8f9, #efd7dc 55%, #d9adb7); }
.team-visual::after { content: ""; position: absolute; inset: 25px; border: 1px solid rgba(255,255,255,.65); border-radius: inherit; }
.team-monogram { color: rgba(255,255,255,.85); font: 90px Georgia, serif; }
.team-badge { position: absolute; z-index: 2; left: 20px; bottom: 20px; padding: 15px 18px; border-radius: 12px; background: rgba(255,255,255,.87); color: var(--muted); font-size: 10px; }
.team-badge span, .team-badge strong { display: block; }
.team-badge strong { margin-top: 4px; color: var(--ink); }
.team-copy ul { padding: 0; margin: 25px 0; list-style: none; }
.team-copy li { padding: 13px 0; border-top: 1px solid var(--line); color: var(--muted); }
.team-copy li::before { content: "✓"; margin-right: 10px; color: var(--teal); }

.location { padding: 90px max(30px, calc((100vw - 1100px)/2)); display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; background: #f0e3e6; }
.location > div > p:not(.eyebrow) { color: var(--muted); line-height: 1.75; }
.link-button { display: inline-block; margin-top: 10px; text-decoration: none; }
.location small { display: block; max-width: 420px; margin-top: 18px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.map-art { position: relative; min-height: 360px; overflow: hidden; border-radius: 26px; background: #faf6f7; box-shadow: inset 0 0 70px rgba(179,17,48,.08); }
.road { position: absolute; display: block; height: 22px; background: white; box-shadow: 0 0 0 1px #d8e6e3; transform: rotate(-12deg); }
.road-a { width: 140%; left: -20%; top: 42%; }
.road-b { width: 100%; left: 15%; top: 18%; transform: rotate(65deg); }
.road-c { width: 90%; left: -5%; top: 73%; transform: rotate(25deg); }
.pin { position: absolute; z-index: 2; left: 55%; top: 44%; width: 54px; height: 54px; display: grid; place-items: center; border: 6px solid white; border-radius: 50% 50% 50% 5px; transform: rotate(45deg); background: var(--deep); color: white; box-shadow: 0 14px 30px rgba(23,79,82,.25); }
.pin b { transform: rotate(-45deg); font: 18px Georgia, serif; }
.map-art p { position: absolute; z-index: 2; left: 30px; bottom: 25px; margin: 0; color: var(--muted); font-size: 12px; }
.map-art strong { color: var(--ink); font: 400 18px Georgia, serif; }

.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 85px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { width: 100%; padding: 22px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.faq-item > span { display: flex; justify-content: space-between; gap: 20px; }
.faq-item strong { font-weight: 500; }
.faq-item i { color: var(--teal); font-size: 20px; font-style: normal; }
.faq-item p { padding-right: 35px; color: var(--muted); line-height: 1.65; }
.final { padding: 95px 25px; background: var(--deep); color: white; text-align: center; }
.final h2 { max-width: 760px; margin: 13px auto; }
.final > p:not(.eyebrow) { margin-bottom: 28px; color: #c7dbd7; }
footer { max-width: 1160px; margin: auto; padding: 42px 30px 110px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; color: var(--muted); font-size: 10px; }
footer p { max-width: 420px; margin: 0; text-align: center; }
footer a { color: var(--teal); font-size: 12px; font-weight: 700; }

.chat-launcher, .share-launcher { position: fixed; z-index: 20; bottom: 22px; display: flex; align-items: center; border: 0; border-radius: 999px; color: white; padding: 13px 17px; box-shadow: 0 14px 35px rgba(22,54,57,.25); }
.chat-launcher { right: 22px; background: var(--deep); }
.share-launcher { left: 22px; background: var(--teal); }
.chat-launcher svg, .share-launcher svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.chat-launcher svg.paw-icon, .chat-avatar svg.paw-icon { fill: currentColor; stroke: none; }
.chat-launcher > span, .share-launcher > span { margin-left: 7px; font-size: 11px; }
.chat-launcher > b { width: 22px; font-size: 22px; font-weight: 400; line-height: 1; }
.chat-panel { position: fixed; z-index: 19; right: 22px; bottom: 80px; width: min(400px, calc(100vw - 28px)); overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 28px 75px rgba(22,54,57,.23); display: none; }
.chat-panel.open { display: block; }
.chat-head { padding: 15px; display: flex; align-items: center; gap: 10px; background: #f0e1e4; }
.chat-avatar { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; background: var(--deep); color: white; }
.chat-avatar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.chat-head strong, .chat-head small { display: block; }
.chat-head small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.chat-head > button { margin-left: auto; border: 0; background: transparent; color: var(--muted); font-size: 22px; }
.chat-body { min-height: 320px; max-height: 460px; overflow-y: auto; padding: 18px; background: #fbf7f8; }
.bot, .user { max-width: 89%; margin-bottom: 10px; padding: 12px 14px; border-radius: 14px; font-size: 12px; line-height: 1.5; }
.bot { border: 1px solid var(--line); background: white; }
.user { margin-left: auto; background: var(--deep); color: white; }
.options { display: grid; gap: 8px; margin: 13px 0; }
.options button, .chat-action, .call-action { padding: 11px; border: 1px solid #afcac5; border-radius: 10px; background: white; color: var(--ink); text-align: left; font-size: 11px; }
.chat-action { width: 100%; margin-top: 6px; background: var(--deep); color: white; text-align: center; }
.chat-action:disabled { cursor: not-allowed; opacity: .4; }
.call-action { display: block; margin-top: 8px; color: var(--deep); text-align: center; text-decoration: none; }
.chat-body input, .chat-body textarea { width: 100%; margin: 4px 0; padding: 12px; border: 1px solid #c8dad6; border-radius: 10px; background: white; color: var(--ink); font: inherit; font-size: 11px; }
.chat-body textarea { min-height: 82px; resize: vertical; }
.bot pre { white-space: pre-wrap; color: var(--muted); font: 10px/1.55 Arial, sans-serif; }
.chat-disclaimer { color: var(--muted); font-size: 9px; line-height: 1.5; }
.free-question { padding-top: 13px; border-top: 1px solid var(--line); }
.free-question label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; }
.free-question div { display: flex; gap: 5px; }
.free-question div input { margin: 0; }
.free-question button { border: 0; border-radius: 9px; background: var(--deep); color: white; padding: 0 12px; font-size: 10px; }
.reply { margin-top: 10px; }
.chat-note { margin: 0; padding: 9px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 8px; }
.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: none; place-items: center; padding: 20px; background: rgba(14,45,47,.52); backdrop-filter: blur(6px); }
.modal-backdrop.open { display: grid; }
.share-modal { position: relative; width: min(390px, 100%); padding: 30px; border-radius: 24px; background: var(--paper); text-align: center; }
.share-modal h3 { margin: 8px 0 18px; font: 400 29px Georgia, serif; }
.share-modal img { width: min(250px, 100%); margin: 0 auto 18px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.modal-close { position: absolute; right: 14px; top: 12px; border: 0; background: transparent; color: var(--muted); font-size: 22px; }
.hidden { display: none !important; }

@media (max-width: 860px) {
  nav { display: none; }
  .header { padding: 0 18px; }
  .header-action { padding: 10px 13px; font-size: 10px; }
  .hero { min-height: 720px; align-items: flex-end; }
  .hero-media { background-position: 64% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 55%, rgba(255,255,255,.3) 100%); }
  .hero-content { width: auto; margin: 0; padding: 250px 20px 105px; }
  .hero-card { display: none; }
  .section, .clinical-band, .location { padding: 75px 20px; }
  .section-head, .team, .faq, .clinical-band, .location { grid-template-columns: 1fr; gap: 35px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid article { min-height: auto; }
  .clinical-list { grid-template-columns: 1fr; }
  .team-visual { min-height: 390px; }
  footer { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
  .brand strong { font-size: 15px; }
  .brand small { font-size: 7px; }
  .brand-logo-frame { width: 39px; height: 39px; border-radius: 11px; }
  h1 { font-size: 43px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .trust { gap: 10px; }
  .intro-strip { display: block; text-align: center; line-height: 1.6; }
  .chat-panel { right: 14px; bottom: 76px; }
  .chat-launcher { right: 14px; bottom: 15px; }
  .share-launcher { left: 14px; bottom: 15px; }
  .chat-launcher > span#chatToggleLabel, .share-launcher > span { display: none; }
}
