@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700&family=Spectral:ital,wght@0,400;0,500;1,400&display=swap');

/* ---------------------------------------------------------------
   OrthoBCN — Catalan ceramic palette: deep marine brand, ochre as
   the single loud note, pale green-grey clinical ground.
   Lead-generation layout: tight sections, form high, CTAs repeated.
   --------------------------------------------------------------- */

:root {
  --ink:        #0E2B27;
  --ink-soft:   #44605B;
  --marine:     #16564C;
  --marine-dp:  #0B3A33;
  --marine-lt:  #E4EDEA;
  --ochre:      #C0801F;
  --ochre-lt:   #F7EEDC;
  --sand:       #EFE7DA;
  --surface:    #F4F6F4;
  --white:      #FFFFFF;
  --line:       #D3DDD9;

  --shell: 1140px;
  --gut: clamp(18px, 4vw, 44px);

  --f-display: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
  --f-body: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
  --f-quote: 'Spectral', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--f-body); font-size: 16.5px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--f-display); font-weight: 600; line-height: 1.14;
  letter-spacing: -0.028em; margin: 0; text-wrap: balance;
}
h2 { font-size: clamp(24px, 2.9vw, 33px); }
h3 { font-size: clamp(17.5px, 1.8vw, 20px); letter-spacing: -.02em; }

p { margin: 0 0 .9em; max-width: 68ch; }
a { color: var(--marine); }
img { display: block; max-width: 100%; }

.shell { max-width: var(--shell); margin: 0 auto; padding-inline: var(--gut); }
section { padding-block: clamp(38px, 5vw, 62px); }

.lede { font-size: 17.5px; color: var(--ink-soft); max-width: 62ch; }
.head { margin-bottom: 28px; max-width: 64ch; }
.head p { margin-top: 10px; margin-bottom: 0; }
.center { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; }

/* --- buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--f-body); font-size: 16px; font-weight: 600;
  padding: 13px 24px; border-radius: 3px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--ochre); color: #2A1B04; border-color: var(--ochre); }
.btn-primary:hover { background: #A76C13; border-color: #A76C13; color: #fff; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-dark { background: var(--marine); color: #fff; border-color: var(--marine); }
.btn-dark:hover { background: var(--marine-dp); border-color: var(--marine-dp); }
.btn-wa { background: #fff; color: var(--marine); border-color: var(--line); }
.btn-wa:hover { border-color: var(--marine); }
.btn svg { flex: none; }

/* --- masthead ----------------------------------------------------- */
.masthead { position: sticky; top: 0; z-index: 60; background: rgba(244,246,244,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.masthead .shell { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.wordmark { font-family: var(--f-display); font-size: 23px; font-weight: 700; letter-spacing: -.035em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--marine); }
.wordmark small { display: block; font-size: 11px; letter-spacing: .01em; color: var(--ink-soft); font-weight: 400; margin-top: -2px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); text-decoration: none; padding: 5px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--marine); border-bottom-color: var(--ochre); }
.mast-cta { display: flex; gap: 9px; }
.masthead .btn { padding: 9px 15px; font-size: 14.5px; }
.nav-toggle { display: none; }

/* --- hero + lead form ---------------------------------------------- */
.hero { position: relative; background: var(--marine-dp); overflow: hidden; padding: 0; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .40; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, var(--marine-dp) 6%, rgba(11,58,51,.90) 46%, rgba(11,58,51,.55) 100%); }
.hero .shell { position: relative; z-index: 2; padding-block: clamp(36px, 4.5vw, 58px); display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 4vw, 54px); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(31px, 4vw, 47px); font-weight: 600; letter-spacing: -.036em; line-height: 1.08; }
.hero p.sub { color: #CBDBD6; font-size: 17.5px; margin-top: 14px; max-width: 46ch; }
.hero p.sub b { color: #F3DEB6; font-weight: 600; }

.rating { display: flex; align-items: center; gap: 11px; margin-top: 20px; flex-wrap: wrap; }
.rating .stars { color: #F0B429; font-size: 15px; letter-spacing: 2px; }
.rating span { color: #B7CBC6; font-size: 14px; }
.rating b { color: #fff; font-weight: 600; }

.quote-form { background: var(--white); border-radius: 4px; padding: 22px 22px 20px; box-shadow: 0 18px 40px rgba(4,26,23,.28); }
.quote-form h2 { font-size: 20px; margin-bottom: 4px; }
.quote-form .fine { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 15px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quote-form label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 4px; }
.quote-form input, .quote-form select { width: 100%; font-family: var(--f-body); font-size: 15.5px; color: var(--ink); padding: 10px 11px; border: 1.5px solid var(--line); border-radius: 3px; background: #FBFCFB; }
.quote-form input:focus, .quote-form select:focus { border-color: var(--marine); outline: none; background: #fff; }
.f-full { grid-column: 1 / -1; }
.quote-form .btn { width: 100%; margin-top: 13px; }
.form-alt { font-size: 13.5px; color: var(--ink-soft); text-align: center; margin: 11px 0 0; }
.form-alt a { font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { font-size: 14px; color: #A3301F; margin-top: 10px; text-align: center; }
.form-error:empty { display: none; }
.form-done { display: none; padding: 26px 4px; text-align: center; }
.form-done p { font-size: 17px; color: var(--ink); margin: 0 auto; max-width: 34ch; }
.quote-form.sent .fgrid, .quote-form.sent .btn, .quote-form.sent .form-alt, .quote-form.sent .fine, .quote-form.sent h2, .quote-form.sent .hp, .quote-form.sent .form-error { display: none; }
.quote-form.sent .form-done { display: block; }

/* --- promise pillars ------------------------------------------------- */
.promises { background: var(--white); border-bottom: 1px solid var(--line); }
.promises .shell { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.promise { display: grid; grid-template-columns: 30px 1fr; gap: 11px; align-items: start; }
.promise svg { color: var(--ochre); margin-top: 2px; }
.promise b { display: block; font-size: 15.5px; font-weight: 600; margin-bottom: 2px; }
.promise span { font-size: 14.5px; color: var(--ink-soft); line-height: 1.45; }

/* --- CTA band --------------------------------------------------------- */
.band { background: var(--marine); color: #D5E5E1; }
.band .shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { color: #fff; }
.band p { color: #AFCAC4; margin: 7px 0 0; font-size: 16px; }
.band .btn { flex: none; }

/* --- reviews ------------------------------------------------------------ */
.reviews { background: var(--marine-lt); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 22px; display: flex; flex-direction: column; }
.review .stars { color: var(--ochre); font-size: 14px; letter-spacing: 2px; margin-bottom: 11px; }
.review blockquote { margin: 0 0 16px; font-family: var(--f-quote); font-size: 17px; line-height: 1.5; color: var(--ink); }
.review blockquote p { max-width: none; margin: 0; font-size: inherit; }
.review cite { margin-top: auto; font-style: normal; font-size: 13.5px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 13px; display: block; }
.review cite b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }

/* --- price + wait table ---------------------------------------------------- */
.prices { background: var(--sand); }
.ptable { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.ptable caption { text-align: left; font-size: 13.5px; color: var(--ink-soft); padding-bottom: 10px; caption-side: top; }
.ptable th, .ptable td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--line); }
.ptable thead th { font-size: 13px; font-weight: 600; color: var(--ink-soft); background: #FBFCFB; line-height: 1.3; }
.ptable thead th.us { background: var(--ochre-lt); color: #6E4A0C; }
.ptable tbody th { font-weight: 600; font-size: 15.5px; letter-spacing: -.012em; }
.ptable tbody th small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-soft); }
.ptable td { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptable td.was { color: var(--ink-soft); font-family: var(--f-quote); font-size: 17px; }
.ptable td.wait { color: var(--ink-soft); }
.ptable td.us { background: #FEFAF2; font-family: var(--f-quote); font-size: 19px; color: var(--ink); }
.ptable td.usw { background: #FEFAF2; color: #6E4A0C; font-weight: 600; }
.ptable tbody tr:last-child th, .ptable tbody tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.table-foot { font-size: 13.5px; color: var(--ink-soft); margin: 12px 0 0; }

.included { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 26px 0 0; padding: 0; }
.included li { background: var(--white); padding: 16px 18px; list-style: none; font-size: 14.5px; color: var(--ink-soft); }
.included li b { display: block; font-family: var(--f-display); font-size: 15.5px; font-weight: 600; color: var(--ink); margin-bottom: 3px; letter-spacing: -.018em; }

/* --- process ------------------------------------------------------------------ */
.pathway { background: var(--white); }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.step { counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--marine); color: #F3DEB6; font-family: var(--f-quote); font-size: 15px;
  position: absolute; top: 8px; left: 8px; border: 2px solid #fff;
}
.step { position: relative; }
.step img { width: 100%; height: 124px; object-fit: cover; border-radius: 3px; margin-bottom: 12px; }
.step h3 { margin-bottom: 5px; }
.step p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* --- differentiators ------------------------------------------------------------ */
.diffs { background: var(--surface); }
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.diff { background: var(--white); padding: 20px; }
.diff b { display: block; font-family: var(--f-quote); font-size: 25px; color: var(--marine); line-height: 1; margin-bottom: 7px; }
.diff h3 { font-size: 16px; margin-bottom: 4px; }
.diff p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* --- surgeons -------------------------------------------------------------------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.surgeon { background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 22px; display: flex; flex-direction: column; }
.monogram { width: 56px; height: 56px; border-radius: 50%; background: var(--marine); color: #F3DEB6; display: grid; place-items: center; font-family: var(--f-quote); font-size: 21px; margin-bottom: 14px; }
.surgeon h3 { font-size: 18px; }
.surgeon .role { color: var(--ochre); font-size: 14px; font-weight: 600; margin: 5px 0 10px; }
.surgeon > p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 12px; }
.surgeon ul { margin: auto 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 13px; color: var(--ink-soft); }
.surgeon ul li { padding-left: 14px; position: relative; margin-bottom: 4px; }
.surgeon ul li::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; background: var(--ochre); }

/* --- hospital ----------------------------------------------------------------------- */
.hospital { background: var(--marine-dp); color: #D5E2DE; }
.hospital h2 { color: #fff; }
.hospital p { color: #BCD0CB; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 50px); align-items: center; }
.split-imgs { display: grid; gap: 10px; }
.split-imgs img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.split-imgs img:first-child { height: 230px; }
.split-imgs img:last-child { height: 152px; object-position: center 72%; }
.figs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 22px; border-top: 1px solid rgba(255,255,255,.16); padding-top: 20px; }
.figs div b { display: block; font-family: var(--f-quote); font-size: 28px; color: var(--ochre); font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.figs div span { font-size: 13.5px; color: #A9C0BB; display: block; margin-top: 5px; }

/* --- accreditation ------------------------------------------------------------------- */
.accred { background: var(--white); }
.accred-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.accred-row div { border: 1px solid var(--line); border-radius: 3px; padding: 18px; }
.accred-row b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.accred-row span { font-size: 14px; color: var(--ink-soft); }

/* --- stay ------------------------------------------------------------------------------ */
.stay { background: var(--white); }
.stay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 50px); align-items: center; }
.stay-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stay-imgs img { width: 100%; height: 132px; object-fit: cover; border-radius: 3px; }
.stay-imgs img:first-child { grid-column: 1 / -1; height: 172px; }

/* --- faq ---------------------------------------------------------------------------------- */
.faq { background: var(--sand); }
.faq-list { max-width: 820px; border-top: 1px solid #D9CDB9; }
.faq details { border-bottom: 1px solid #D9CDB9; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 38px 16px 0; font-family: var(--f-display); font-size: 16.5px; font-weight: 600; letter-spacing: -.018em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 5px; top: 13px; font-size: 23px; color: var(--ochre); font-weight: 400; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding-bottom: 17px; margin: 0; color: var(--ink-soft); font-size: 15px; }

/* --- contact / front desk -------------------------------------------------------------------- */
.contact { background: var(--ink); color: #CFDEDA; }
.contact h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact p { color: #AFC5C0; }
.contact-lines { list-style: none; padding: 0; margin: 22px 0 0; }
.contact-lines li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 15px; }
.contact-lines svg { color: var(--ochre); flex: none; margin-top: 2px; }
.contact-lines b { display: block; color: #fff; font-weight: 600; }
.contact-lines span { color: #9FB6B1; font-size: 13.5px; }

.frontdesk { background: var(--white); border-radius: 4px; overflow: hidden; }
.fd-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--marine); color: #fff; }
.fd-top img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.fd-top b { display: block; font-size: 15px; }
.fd-top span { font-size: 12.5px; color: #B9D2CC; display: flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #7BD8A8; display: inline-block; }
.fd-body { padding: 18px; display: grid; gap: 11px; background: #F7F9F8; }
.bubble { padding: 11px 14px; border-radius: 13px; font-size: 14.5px; line-height: 1.45; max-width: 88%; }
.bubble.them { background: var(--marine-lt); color: var(--ink); border-bottom-left-radius: 4px; }
.bubble.me { background: var(--marine); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.fd-foot { padding: 13px 18px 18px; background: #F7F9F8; }
.fd-foot .btn { width: 100%; }
.fd-note { font-size: 12.5px; color: var(--ink-soft); text-align: center; margin: 10px 0 0; max-width: none; }

/* --- footer ------------------------------------------------------------------------------------- */
.foot { background: #071F1B; color: #8FA8A3; font-size: 14px; padding-block: 40px 30px; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 32px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot h4 { font-family: var(--f-body); font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 11px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.foot a { color: #8FA8A3; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .wordmark { color: #fff; }
.foot .wordmark span { color: var(--ochre); }
.foot .wordmark small { color: #7E9792; }
.foot-grid p { font-size: 13.5px; color: #7E9792; max-width: 50ch; margin-top: 12px; }
.legal { padding-top: 20px; font-size: 12.5px; color: #6F8783; }
.legal p { max-width: none; font-size: inherit; color: inherit; margin: 0; }
.legal strong { color: #C7A36A; }

/* --- a11y + motion --------------------------------------------------------------------------------- */
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

/* --- responsive -------------------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .promises .shell { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .diff-grid, .team, .review-grid, .included, .accred-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero .shell, .split, .stay-grid, .contact-grid { grid-template-columns: 1fr; }
  .split img { min-height: 210px; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--line); padding: 8px 12px; border-radius: 3px; cursor: pointer; color: var(--ink); font-size: 14.5px; }
  .masthead.open .nav { display: grid; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 10px var(--gut) 16px; gap: 0; margin: 0; }
  .masthead.open .nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .promises .shell, .steps, .diff-grid, .team, .review-grid, .included, .accred-row, .foot-grid { grid-template-columns: 1fr; }
  .mast-cta .btn-wa { display: none; }
  .figs { grid-template-columns: 1fr 1fr; }
  .stay-imgs img { height: 118px; }
  .stay-imgs img:first-child { height: 140px; }
  .step img { height: 150px; }
  .band .shell { display: block; }
  .band .btn { margin-top: 16px; }
}

/* --- floating WhatsApp --------------------------------------------------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #06301B;
  font-family: var(--f-body); font-size: 15px; font-weight: 600;
  padding: 13px 18px 13px 15px; border-radius: 40px;
  text-decoration: none; box-shadow: 0 8px 22px rgba(4,26,23,.28);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.wa-float:hover { background: #1FB855; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(4,26,23,.34); }
.wa-float svg { flex: none; }
.wa-float .wa-ping {
  position: absolute; top: 9px; right: 11px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ochre); border: 2px solid #fff;
}
@media (max-width: 620px) {
  .wa-float { right: 14px; bottom: 14px; padding: 14px; gap: 0; }
  .wa-float .wa-label { display: none; }
}
@media print { .wa-float { display: none; } }
