/* =========================================================================
   [     ] Orthopedics & Sports Medicine — Dr. Marco Mendoza (white-label concept)
   CONCEPT MOCKUP. Palette sampled directly from the July 2026 referral card:
     navy   #00497a  (referral box, name heading)
     blue   #005cb9  (mountain mark + wordmark)
     charc  #383d42  (the S-curve wave separator)
   Self-hosted fonts, zero third-party requests. Reuses the surgeon-template
   section flow (real-photo hero, value trio, conditions grid, credential
   badges, testimonials, locations, contact) — neutral white-label identity.
   ========================================================================= */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/archivo-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}

:root {
  --navy:      #00497a;
  --navy-2:    #003a63;
  --blue:      #005cb9;
  --blue-2:    #0a4f97;   /* hover */
  --charcoal:  #383d42;
  --ink:       #1c2733;
  --muted:     #556170;
  --bg:        #ffffff;
  --tint:      #eef4f9;   /* light blue surface */
  --tint-2:    #f6f9fc;
  --line:      #d9e2ea;
  --gold:      #b8892b;   /* subtle warm accent, sparingly */

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1.15rem, 0.6rem + 2.6vw, 3rem);
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(16,42,67,.06), 0 8px 24px rgba(16,42,67,.08);
  --shadow-lg: 0 12px 40px rgba(16,42,67,.14);
  --ease: cubic-bezier(.22,.61,.36,1);

  --step--1: clamp(.82rem, .80rem + .12vw, .90rem);
  --step-0:  clamp(1rem, .96rem + .18vw, 1.08rem);
  --step-1:  clamp(1.15rem, 1.06rem + .40vw, 1.35rem);
  --step-2:  clamp(1.45rem, 1.28rem + .80vw, 1.95rem);
  --step-3:  clamp(1.85rem, 1.52rem + 1.55vw, 2.75rem);
  --step-4:  clamp(2.35rem, 1.85rem + 2.45vw, 3.7rem);
}

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

h1,h2,h3,h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--navy);
  margin: 0 0 .5em;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); color: var(--navy); }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 .6rem;
}
.section { padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0; }
/* The value trio follows the hero wave, which already carries the separation,
   so it starts tighter than a standalone section. */
.hero + .section { padding-top: clamp(2.5rem, 1.9rem + 2vw, 3.75rem); }
.section--tint { background: var(--tint-2); }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1;
  padding: .95rem 1.5rem;
  min-height: 52px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-2); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.btn--onnavy { background: #fff; color: var(--navy); }
.btn--onnavy:hover { background: var(--tint); text-decoration: none; transform: translateY(-1px); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { border-color:#fff; background: rgba(255,255,255,.08); text-decoration:none; }

/* ---- skip link + focus ---- */
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color:#fff; padding:.7rem 1rem; z-index:200; }
.skip:focus { left: .5rem; top: .5rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 3px; }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.25rem; padding: .6rem var(--gutter); }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand:hover { text-decoration: none; }
.brand__mark { flex: none; width: 46px; height: 46px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; color: var(--blue); letter-spacing: -.01em; }
.brand__sub { font-size: .68rem; color: var(--muted); font-weight: 600; letter-spacing: .01em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.site-nav a.navlink { font-weight: 600; color: var(--ink); font-size: .95rem; }
.site-nav a.navlink:hover { color: var(--blue); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: .8rem; }
.header-phone { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: .98rem; }
.header-phone:hover { color: var(--blue); text-decoration: none; }
.header-phone svg { width: 18px; height: 18px; }
.nav-toggle { display: none; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem,1rem+3vw,4rem); align-items: center; padding: clamp(2.25rem,1.4rem+3vw,3.75rem) 0 clamp(1.75rem,1.1rem+2vw,2.75rem); }
.hero__partner { display: inline-flex; align-items: center; gap:.5rem; font-family:var(--font-display); font-weight:700; font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color: var(--blue); background: #fff; border:1px solid var(--line); padding:.4rem .8rem; border-radius:999px; margin-bottom:1.2rem; }
.hero h1 { font-size: var(--step-4); color: var(--navy); margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero__sub { font-size: var(--step-1); color: var(--muted); max-width: 46ch; margin-bottom: 1.7rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__trust { margin-top: 1.6rem; display: flex; align-items: center; gap: .9rem; font-size: .92rem; color: var(--muted); }
.hero__trust .stars { color: var(--gold); letter-spacing: .06em; font-size: 1.05rem; }
.hero__photo { position: relative; justify-self: center; }
.hero__photo img { width: min(420px, 100%); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 6px solid #fff; }
.hero__badge {
  position: absolute; left: -14px; bottom: 26px;
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: .75rem 1rem; box-shadow: var(--shadow-lg); max-width: 200px;
}
.hero__badge strong { font-family: var(--font-display); display:block; font-size: 1.5rem; line-height:1; }
.hero__badge span { font-size: .78rem; opacity: .85; }

/* wave divider */
.wave { display: block; width: 100%; height: auto; line-height: 0; }
.wave svg { display:block; width:100%; height: clamp(40px, 6vw, 90px); }

/* =========================================================================
   VALUE TRIO
   ========================================================================= */
.trio { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.vcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem 1.6rem; box-shadow: var(--shadow); }
.vcard__icon { width: 46px; height: 46px; color: var(--blue); margin-bottom: 1rem; }
.vcard h3 { margin-bottom: .35rem; }
.vcard p { margin: 0; color: var(--muted); font-size: .98rem; }

/* =========================================================================
   CONDITIONS GRID
   ========================================================================= */
.section-head { max-width: 62ch; margin: 0 auto clamp(2rem,1.5rem+2vw,3rem); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.cond-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.1rem; }
.cond {
  display: flex; flex-direction: column; gap: .55rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.2rem; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.cond:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #bcd2e4; }
.cond__icon { width: 34px; height: 34px; color: var(--blue); }
.cond h4 { font-size: 1.02rem; margin: 0; color: var(--navy); }
.cond p { margin: 0; font-size: .9rem; color: var(--muted); }
.cond-note { margin-top: 1.6rem; font-size: .92rem; color: var(--muted); text-align:center; }

/* =========================================================================
   ABOUT / CREDENTIALS
   ========================================================================= */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem,1rem+3vw,3.5rem); align-items: center; }
.about__photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 6px solid #fff; width: 100%; }
.about h2 { margin-bottom: .2em; }
.about .role { font-family: var(--font-display); font-weight: 700; color: var(--blue); font-size: var(--step-1); margin-bottom: 1rem; }
.badges { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.3rem 0; padding: 0; list-style: none; }
.badges li { display:inline-flex; align-items:center; gap:.45rem; font-size: .86rem; font-weight: 600; color: var(--navy); background: var(--tint); border: 1px solid #cfe0ee; border-radius: 999px; padding: .45rem .9rem; }
.badges svg { width: 15px; height: 15px; color: var(--blue); flex:none; }
.stats { display: flex; gap: 2.2rem; margin-top: 1.6rem; flex-wrap: wrap; }
.stat { min-width: 0; }
.stat b { font-family: var(--font-display); font-size: var(--step-2); color: var(--blue); display: block; line-height: 1; }
.stat span { font-size: .84rem; color: var(--muted); }

/* =========================================================================
   REVIEWS
   ========================================================================= */
.reviews { background: var(--navy); color: #fff; }
.reviews h2 { color: #fff; }
.reviews .eyebrow { color: #9ec6ea; }
.reviews .rating-line { display:flex; align-items:center; justify-content:center; gap:.9rem; flex-wrap:wrap; color:#dbe8f4; font-size:.95rem; margin-bottom: 2.4rem; }
.reviews .rating-line .stars { color: #ffc447; font-size: 1.2rem; letter-spacing:.08em; }
.reviews .rating-line b { color:#fff; font-family:var(--font-display); }
.rev-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.rev {
  background: #0a5589; border: 1px solid #1d6aa3; border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.3rem; display: flex; flex-direction: column;
}
.rev .stars { color: #ffc447; letter-spacing: .06em; margin-bottom: .7rem; font-size: 1rem; }
.rev p { font-size: 1.02rem; line-height: 1.5; color: #f2f7fb; margin: 0 0 1.1rem; }
.rev__meta { margin-top: auto; font-size: .82rem; color: #b7d3e8; }
.rev__meta b { color: #fff; font-weight: 600; }
.rev__meta .src { display:block; margin-top:.15rem; color:#8fb6d4; }
.reviews__note { margin-top: 2rem; font-size: .82rem; color: #9dc0dc; text-align: center; max-width: 70ch; margin-left:auto; margin-right:auto; }

/* =========================================================================
   LOCATIONS
   ========================================================================= */
.loc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.loc { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow); }
.loc__banner { height: 120px; display:flex; align-items:flex-end; padding: .9rem 1.1rem; color:#fff; font-family:var(--font-display); font-weight:800; font-size:1.15rem; position:relative; }
.loc__banner svg { position:absolute; inset:0; width:100%; height:100%; z-index:0; }
.loc__banner span { position:relative; z-index:1; text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.loc__body { padding: 1.1rem 1.2rem 1.4rem; }
.loc__body p { margin: 0 0 .5rem; color: var(--muted); font-size: .94rem; }
.loc__body .region { font-weight:600; color: var(--navy); }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,1rem+3vw,3.5rem); align-items: start; }
.contact__info .infoline { display:flex; align-items:flex-start; gap:.8rem; margin-bottom: 1.1rem; }
.contact__info .infoline svg { width: 22px; height:22px; color: var(--blue); flex:none; margin-top:2px; }
.contact__info .infoline b { font-family:var(--font-display); color: var(--navy); display:block; }
.contact__info .infoline a { font-size: 1.05rem; }
.form { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem,1rem+1.5vw,2rem); box-shadow: var(--shadow); }
.form .field { margin-bottom: 1rem; }
.form label { display:block; font-weight:600; font-size:.9rem; color: var(--navy); margin-bottom:.35rem; }
.form input, .form textarea, .form select {
  width:100%; padding:.8rem .9rem; font: inherit; color: var(--ink);
  border:1.5px solid var(--line); border-radius: var(--radius); background:#fff;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--blue); outline:none; box-shadow: 0 0 0 3px rgba(0,92,185,.15); }
.form textarea { min-height: 110px; resize: vertical; }
.form .btn { width: 100%; }
.form__note { font-size: .78rem; color: var(--muted); margin-top: .9rem; margin-bottom: 0; }
.form__ok { display:none; background: #e8f5ec; border:1px solid #a9d8ba; color:#1b6b39; padding:1rem; border-radius: var(--radius); font-weight:600; }
.form__ok.show { display:block; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--charcoal); color: #cdd3d9; padding: clamp(2.5rem,2rem+2vw,3.5rem) 0 2rem; }
.footer-top { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand .brand__name { color:#fff; }
.footer-brand .brand__sub { color:#9aa4ae; }
.footer-brand p { color:#9aa4ae; font-size:.9rem; margin-top: 1rem; max-width: 38ch; }
.footer-col h4 { color:#fff; font-size:.95rem; margin-bottom:.8rem; }
.footer-col a, .footer-col p { color:#c2c9d0; font-size:.9rem; display:block; margin-bottom:.5rem; }
.footer-col a:hover { color:#fff; }
.disclaimer { border-top:1px solid #4a5157; padding-top: 1.4rem; font-size:.8rem; color:#9aa4ae; display:flex; flex-wrap:wrap; gap:.6rem 1.4rem; align-items:center; justify-content:space-between; }
.disclaimer .mock-flag { display:inline-flex; align-items:center; gap:.5rem; background:#4a5157; color:#fff; padding:.35rem .75rem; border-radius:999px; font-weight:600; }

/* =========================================================================
   MOTION
   Resting state is ALWAYS fully visible. The scroll reveal is pure polish:
   a self-terminating fade-up that only ever ENDS at opacity:1. If JS never
   runs, the browser lacks IntersectionObserver, or an element sits off-screen
   and is never fired, it simply stays visible. Content is never gated on
   motion, scroll position, or script.
   ========================================================================= */
.reveal { opacity: 1; transform: none; }
.reveal.in { animation: reveal-in .6s var(--ease) both; }
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { animation: none !important; opacity: 1 !important; transform: none !important; }
  * { animation: none !important; transition: none !important; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1000px) {
  .cond-grid { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .site-nav .navlink { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__photo { order: -1; }
  .hero__photo img { width: min(320px, 80%); }
  .trio { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 340px; }
  .rev-grid { grid-template-columns: 1fr; }
  .loc-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cond-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .stats { gap: 1.4rem; }
  .header-phone span.lbl { display:none; }
  .brand__sub { display:none; }
}
