/* ============================================================
   INSTITUTUL DE ORTOPEDIE — Stylesheet
   Brand: Navy #1B2E5C · Sky #4A6FA5 · Gold #C9A961
   Type: Cormorant Garamond (serif) + Inter (sans)
============================================================ */

/* === RESET === */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-rendering:optimizeLegibility}
body{font-family:'Inter','Helvetica Neue',Helvetica,Arial,sans-serif;line-height:1.6;color:var(--body);background:var(--off-white);overflow-x:hidden;font-feature-settings:"cv02","cv03","cv11"}
img,svg{max-width:100%;display:block}
a{color:inherit;text-decoration:none;transition:color .25s ease}
button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
input,select,textarea{font:inherit;color:inherit}

/* === BRAND TOKENS === */
:root{
  /* Brand colors — exact from brand-palette.png */
  --navy:#1B2E5C;
  --navy-dark:#0F1C3C;
  --navy-soft:#2A3D6E;
  --sky:#4A6FA5;
  --sky-light:#6B8BC0;
  --gold:#C9A961;
  --gold-light:#DDC084;
  --gold-dark:#A88940;
  --off-white:#F4F6FA;
  --white:#FFFFFF;
  --body:#5A6478;
  --body-soft:#8893A4;
  --line:#DDE3EB;
  --line-soft:#E8ECF2;

  /* Type scale */
  --font-serif:'Cormorant Garamond','Times New Roman',Times,Georgia,serif;
  --font-sans:'Inter','Helvetica Neue',Helvetica,Arial,sans-serif;

  /* Layout */
  --wrap:1280px;
  --gutter:clamp(1rem,4vw,2.5rem);
  --radius:4px;
  --radius-lg:8px;

  /* Shadows */
  --shadow-1:0 1px 2px rgba(15,28,60,.05);
  --shadow-2:0 8px 24px rgba(15,28,60,.08);
  --shadow-3:0 20px 50px rgba(15,28,60,.12);
  --shadow-deep:0 30px 80px rgba(15,28,60,.18);
}

/* === TYPOGRAPHY === */
h1,h2,h3,h4,h5{font-family:var(--font-serif);font-weight:500;color:var(--navy);line-height:1.1;letter-spacing:-.005em}
h1{font-size:clamp(2.4rem,6vw,4.8rem);font-weight:500}
h2{font-size:clamp(1.9rem,4vw,3.2rem);font-weight:500}
h3{font-size:clamp(1.3rem,2.4vw,1.8rem);font-weight:500}
h4{font-size:clamp(1.1rem,1.8vw,1.4rem);font-weight:600}
p{color:var(--body);max-width:65ch}

.serif{font-family:var(--font-serif)}
.eyebrow{
  display:inline-flex;align-items:center;gap:.65rem;
  font-family:var(--font-sans);
  font-size:.78rem;font-weight:600;letter-spacing:.22em;text-transform:uppercase;
  color:var(--gold);
}
.eyebrow::before{
  content:"";width:32px;height:1px;background:var(--gold);
}
.eyebrow-light{color:var(--gold-light)}
.eyebrow-light::before{background:var(--gold-light)}

.lead{font-size:1.15rem;line-height:1.65;color:var(--body)}

/* === LAYOUT === */
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter)}
.section{padding:clamp(4rem,8vw,7.5rem) 0}
.section-bg-navy{background:var(--navy);color:var(--white)}
.section-bg-navy h1,.section-bg-navy h2,.section-bg-navy h3,.section-bg-navy h4{color:var(--white)}
.section-bg-navy p{color:rgba(255,255,255,.78)}
.section-bg-off{background:var(--off-white)}

/* === TOP BAR === */
.topbar{
  background:var(--navy-dark);color:rgba(255,255,255,.72);
  font-size:.82rem;padding:.55rem 0;border-bottom:1px solid rgba(255,255,255,.05);
}
.topbar-inner{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.topbar a{color:rgba(255,255,255,.72);transition:color .2s}
.topbar a:hover{color:var(--gold-light)}
.topbar-left,.topbar-right{display:flex;gap:1.5rem;align-items:center;flex-wrap:wrap}
.topbar svg{width:13px;height:13px;display:inline-block;vertical-align:-2px;margin-right:.4rem}

/* === HEADER / NAV === */
.header{
  position:sticky;top:0;z-index:100;background:rgba(255,255,255,.95);
  backdrop-filter:saturate(180%) blur(14px);-webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--line-soft);
  transition:box-shadow .3s ease,background .3s ease;
}
.header.scrolled{box-shadow:var(--shadow-2)}
.nav{display:flex;justify-content:space-between;align-items:center;padding:1.1rem 0;gap:2rem}
.brand{display:flex;align-items:center;gap:.85rem}
.brand-logo{height:46px;width:auto;display:block}
.brand-text{font-family:var(--font-serif);font-size:1.15rem;color:var(--navy);font-weight:600;letter-spacing:.02em;line-height:1.1}
.brand-text small{display:block;font-family:var(--font-sans);font-size:.65rem;text-transform:uppercase;letter-spacing:.18em;color:var(--gold);font-weight:600;margin-top:2px}

.nav-list{display:flex;list-style:none;gap:.4rem;align-items:center}
.nav-list a{
  display:block;padding:.6rem 1rem;font-size:.94rem;font-weight:500;color:var(--navy);
  border-radius:var(--radius);transition:all .2s;position:relative;
}
.nav-list a:hover,.nav-list a.active{color:var(--gold-dark)}
.nav-list a.active::after{
  content:"";position:absolute;bottom:0;left:1rem;right:1rem;height:2px;background:var(--gold);
}
.nav-actions{display:flex;align-items:center;gap:.75rem}

/* Dropdown */
.has-dropdown{position:relative}
.dropdown{
  position:absolute;top:100%;left:0;min-width:280px;
  background:var(--white);border:1px solid var(--line-soft);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-3);padding:.5rem;
  opacity:0;visibility:hidden;transform:translateY(8px);transition:all .25s;
  z-index:101;
}
.has-dropdown:hover>.dropdown,.has-dropdown:focus-within>.dropdown{opacity:1;visibility:visible;transform:translateY(0)}
.dropdown a{
  display:block;padding:.75rem 1rem;border-radius:var(--radius);font-size:.92rem;font-weight:500;
  color:var(--navy);transition:background .15s;
}
.dropdown a:hover{background:var(--off-white);color:var(--gold-dark)}
.dropdown a small{display:block;font-size:.78rem;color:var(--body-soft);font-weight:400;margin-top:2px}

.nav-toggle{display:none;padding:.5rem;color:var(--navy)}
.nav-toggle svg{width:24px;height:24px}

/* === BUTTONS === */
.btn{
  display:inline-flex;align-items:center;gap:.55rem;padding:.85rem 1.6rem;
  font-family:var(--font-sans);font-size:.88rem;font-weight:600;
  letter-spacing:.06em;text-transform:uppercase;
  border-radius:var(--radius);transition:all .25s ease;
  white-space:nowrap;cursor:pointer;
}
.btn-gold{background:var(--gold);color:var(--navy-dark);border:1.5px solid var(--gold)}
.btn-gold:hover{background:var(--gold-dark);border-color:var(--gold-dark);color:var(--white);transform:translateY(-1px)}
.btn-navy{background:var(--navy);color:var(--white);border:1.5px solid var(--navy)}
.btn-navy:hover{background:var(--navy-dark);transform:translateY(-1px)}
.btn-ghost{background:transparent;color:var(--navy);border:1.5px solid var(--navy)}
.btn-ghost:hover{background:var(--navy);color:var(--white)}
.btn-ghost-light{background:transparent;color:var(--white);border:1.5px solid rgba(255,255,255,.4)}
.btn-ghost-light:hover{background:var(--white);color:var(--navy);border-color:var(--white)}
.btn-link{color:var(--navy);font-weight:600;text-transform:none;letter-spacing:0;padding:.5rem 0;border-bottom:1.5px solid var(--gold)}
.btn-link:hover{color:var(--gold-dark)}

/* === BRAND ORNAMENT (signature circles) === */
.ornament{position:absolute;border-radius:50%;pointer-events:none;z-index:0}
.ornament-sky{background:var(--sky);opacity:.85}
.ornament-gold{background:var(--gold)}
.ornament-navy-soft{background:var(--navy-soft);opacity:.6}

/* === FOOTER === */
.footer{background:var(--navy-dark);color:rgba(255,255,255,.72);padding:5rem 0 2rem}
.footer h5{color:var(--white);font-family:var(--font-sans);font-size:.78rem;font-weight:700;letter-spacing:.2em;text-transform:uppercase;margin-bottom:1.4rem}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:3rem;margin-bottom:3.5rem}
.footer-col p{color:rgba(255,255,255,.6);font-size:.92rem;margin-top:1rem;max-width:280px}
.footer-col ul{list-style:none}
.footer-col li{margin-bottom:.7rem;font-size:.92rem}
.footer-col a:hover{color:var(--gold-light)}
.footer-brand{display:flex;align-items:center;gap:.85rem;margin-bottom:.5rem}
.footer-brand img{height:48px}
.footer-brand-text{font-family:var(--font-serif);font-size:1.2rem;color:var(--white)}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);padding-top:2rem;
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;
  font-size:.82rem;color:rgba(255,255,255,.5);
}
.footer-bottom-links{display:flex;gap:1.5rem}
.social-row{display:flex;gap:.8rem;margin-top:1.5rem}
.social-row a{
  width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.18);
  display:grid;place-items:center;color:rgba(255,255,255,.7);transition:all .25s;
}
.social-row a:hover{background:var(--gold);color:var(--navy);border-color:var(--gold)}
.social-row svg{width:16px;height:16px}

/* === FAB (WhatsApp + Call) === */
.fab{position:fixed;bottom:1.5rem;right:1.5rem;z-index:90;display:flex;flex-direction:column;gap:.8rem}
.fab a{
  width:54px;height:54px;border-radius:50%;display:grid;place-items:center;
  box-shadow:var(--shadow-3);transition:all .25s;color:var(--white);
}
.fab a svg{width:24px;height:24px}
.fab-wa{background:#25D366}
.fab-wa:hover{transform:scale(1.08)}
.fab-call{background:var(--navy)}
.fab-call:hover{background:var(--gold);color:var(--navy);transform:scale(1.08)}

/* === BREADCRUMBS (shared) === */
.doctor-breadcrumbs{
  display:flex;gap:.6rem;align-items:center;font-size:.85rem;color:rgba(255,255,255,.65);
  margin-bottom:2.5rem;flex-wrap:wrap;
}
.doctor-breadcrumbs a{color:rgba(255,255,255,.7)}
.doctor-breadcrumbs a:hover{color:var(--gold-light)}
.doctor-breadcrumbs svg{width:12px;height:12px;flex-shrink:0;color:rgba(255,255,255,.4)}

/* === UTILITY === */
.reveal{opacity:0;transform:translateY(20px);transition:opacity .8s ease,transform .8s ease}
.reveal.visible{opacity:1;transform:none}
.text-center{text-align:center}
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2.5rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2.5rem}

/* === RESPONSIVE === */
@media (max-width:1024px){
  .nav-list{display:none;position:absolute;top:100%;left:0;right:0;background:var(--white);flex-direction:column;border-top:1px solid var(--line-soft);box-shadow:var(--shadow-3);padding:.5rem;gap:0}
  .nav-list.open{display:flex}
  .nav-list>li{width:100%}
  .nav-list a{padding:1rem;border-radius:var(--radius)}
  .nav-list a.active::after{display:none}
  .nav-list a.active{background:var(--off-white)}
  .dropdown{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;padding:0 0 0 1rem;background:transparent}
  .has-dropdown:hover>.dropdown{padding:0 0 .5rem 1rem}
  .nav-toggle{display:grid;place-items:center}
  .nav-actions .btn-gold{display:none}
  .footer-grid{grid-template-columns:1fr 1fr;gap:2rem}
}
@media (max-width:640px){
  .topbar-left{display:none}
  .footer-grid{grid-template-columns:1fr;gap:2.5rem}
  .footer-bottom{flex-direction:column;align-items:flex-start}
  .brand-text small{display:none}
}
