/* ==========================================================================
   Dos. Dr. Mirxalıq Cavadov — ümumi cərrah
   One stylesheet, no framework, no build step.
   Palette: petrol ink + surgical teal + a restrained brass for academic notes.
   ========================================================================== */

:root {
  --ink:        #0E1F2A;
  --ink-2:      #16303F;
  --ink-soft:   #33505F;
  --muted:      #5F7885;
  --line:       #E2E0DA;
  --line-soft:  #EDEBE5;
  --paper:      #FBFAF8;
  --paper-2:    #F4F2EC;
  --white:      #FFFFFF;

  --teal:       #17786F;
  --teal-dark:  #0F5C55;
  --teal-tint:  #E8F2F0;
  --brass:      #A67C3D;
  --brass-tint: #F6EFE2;
  --wa:         #25D366;
  --danger:     #A4362C;
  --danger-tint:#FBEEEC;

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;

  --shadow:    0 1px 2px rgba(14,31,42,.05), 0 8px 24px -12px rgba(14,31,42,.18);
  --shadow-lg: 0 2px 4px rgba(14,31,42,.04), 0 24px 48px -20px rgba(14,31,42,.24);

  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1140px;
  --gut:  20px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.8vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.3rem); }
h3 { font-size: clamp(1.18rem, 1.05rem + .55vw, 1.45rem); }
h4 { font-size: 1.03rem; font-family: var(--sans); font-weight: 600; letter-spacing: .01em; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }

:focus-visible {
  outline: 2.5px solid var(--teal);
  outline-offset: 2px;
  border-radius: 3px;
}

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------------ icons */

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-lg { width: 22px; height: 22px; }
.icon--fill { fill: currentColor; stroke: none; }

/* ----------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,248,.88);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex; align-items: center; gap: 16px;
  min-height: 70px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.03rem; line-height: 1.2; letter-spacing: -.01em; }
.brand-sub  { display: block; font-size: .74rem; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }

.main-nav { display: none; }

/* top-level items: plain links and disclosure buttons share one look */
.main-nav > a,
.main-nav .nav-top {
  text-decoration: none; color: var(--ink-soft);
  font-family: var(--sans); font-size: .93rem; font-weight: 500;
  padding: 8px 2px; position: relative; white-space: nowrap;
  background: none; border: 0; cursor: pointer; line-height: inherit;
  display: inline-flex; align-items: center; gap: 4px;
}
.main-nav > a:hover,
.main-nav .nav-top:hover { color: var(--ink); }

.main-nav > a[aria-current="page"],
.main-nav .nav-top[data-current="true"] { color: var(--teal-dark); }
.main-nav > a[aria-current="page"]::after,
.main-nav .nav-top[data-current="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--teal); border-radius: 2px;
}
.main-nav > a.btn { color: #fff; padding: 10px 16px; }
.main-nav > a.btn::after { display: none; }

.icon--chev { width: 14px; height: 14px; stroke-width: 2; transition: transform .18s; }
.nav-top[aria-expanded="true"] .icon--chev { transform: rotate(180deg); }

/* ---- disclosure menus ---- */
.nav-group { position: relative; }
.nav-menu { display: none; }

.nav-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r-sm);
  text-decoration: none; color: var(--ink-soft); font-size: .92rem; font-weight: 500;
}
.nav-menu a:hover { background: var(--teal-tint); color: var(--teal-dark); }
.nav-menu a .icon { width: 17px; height: 17px; color: var(--teal); flex: none; }
.nav-menu-all {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 14px; margin-top: 4px;
  border-top: 1px solid var(--line-soft);
  font-size: .88rem; font-weight: 600; color: var(--teal-dark); text-decoration: none;
}
.nav-menu-all .icon { width: 15px; height: 15px; }
.nav-menu-all:hover { color: var(--teal); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); color: var(--ink); cursor: pointer; order: 3;
}
.header-cta { display: flex; align-items: center; gap: 8px; }
.header-cta .btn--sm { display: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  text-decoration: none;
}
.icon-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.icon-btn--wa { color: #128C4B; }
.icon-btn--wa:hover { border-color: var(--wa); color: #128C4B; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--r-sm); border: 1px solid transparent;
  font: inherit; font-size: .95rem; font-weight: 500; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal-dark); color: #fff; }
.btn--primary:hover { background: var(--teal); color: #fff; }
.btn--ghost { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn--wa { background: var(--wa); color: #06331A; }
.btn--wa:hover { background: #1FBE5B; color: #06331A; }
.btn--sm { padding: 10px 16px; font-size: .88rem; }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--onDark { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--onDark:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ------------------------------------------------------------- structure */

section { padding-block: clamp(48px, 7vw, 88px); }
.section-head { max-width: 68ch; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--ink-soft); font-size: 1.03rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--teal-dark);
  margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--brass); }

.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--ink-soft); line-height: 1.6; }

.band--tint { background: var(--paper-2); }
.band--ink  { background: var(--ink); color: #E7EEF1; }
.band--ink h2, .band--ink h3 { color: #fff; }
.band--ink p { color: #B9CBD4; }
.band--ink .eyebrow { color: #7FCFC4; }
.band--ink .eyebrow::before { background: var(--brass); }

/* ------------------------------------------------------------------- hero */

.hero { padding-block: clamp(40px, 6vw, 76px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 48px); align-items: center; }
.hero h1 { margin-bottom: .38em; }
.hero .lede { max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.portrait-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg);
  overflow: hidden; background: var(--ink); box-shadow: var(--shadow-lg);
  max-width: 420px; margin-inline: auto; width: 100%;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(155deg, #142936 0%, #0E1F2A 58%, #123A38 100%);
}
.portrait-fallback span {
  font-family: var(--serif); font-size: 4.6rem; font-weight: 400; color: #fff;
  letter-spacing: .06em; opacity: .92;
}
.portrait-fallback small {
  position: absolute; bottom: 26px; left: 0; right: 0; text-align: center;
  font-size: .72rem; letter-spacing: .17em; text-transform: uppercase; color: #7FCFC4;
}

/* credential strip */
.creds {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none;
}
.creds li {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px 7px 11px;
  font-size: .84rem; color: var(--ink-soft); font-weight: 500;
}
.creds .icon { width: 15px; height: 15px; color: var(--brass); stroke-width: 1.7; }

/* ------------------------------------------------------------------ cards */

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card h3 { font-size: 1.14rem; margin-bottom: .4em; }
.card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1em; }
.card > :last-child { margin-top: auto; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }

.card-ico {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--teal-tint); color: var(--teal-dark);
}
.card-ico .icon { width: 22px; height: 22px; }
.card-ico--brass { background: var(--brass-tint); color: var(--brass); }

.card-more {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .88rem; font-weight: 500; color: var(--teal-dark);
}
.card-more .icon { width: 16px; height: 16px; transition: transform .2s; }
a.card:hover .card-more .icon { transform: translateX(3px); }

/* -------------------------------------------------------------- figures */

.figure { margin: 30px 0; }
.figure img {
  width: 100%; display: block; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--paper-2);
}
.figure figcaption {
  font-size: .85rem; color: var(--muted); margin-top: 10px; line-height: 1.5;
}
.figure--wide img { aspect-ratio: 16 / 10; object-fit: cover; }
.figure--tall img { aspect-ratio: 4 / 5; object-fit: cover; }

/* side-by-side media, e.g. a podium shot next to an award note */
.media-grid { display: grid; gap: 18px; margin: 30px 0; }
.media-grid .figure { margin: 0; }

/* document scans: contained, never cropped */
.doc-grid { display: grid; gap: 16px; margin: 26px 0; }
.doc-grid figure { margin: 0; }
.doc-grid img {
  width: 100%; display: block; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--white);
}
.doc-grid figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }

/* a photo used as a full-bleed band behind nothing else */
.photo-band { position: relative; overflow: hidden; }
.photo-band img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  aspect-ratio: 21 / 9;
}

/* --------------------------------------------------------------- prose */

.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.35em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--teal); }
.prose strong { font-weight: 600; color: var(--ink); }

.layout { display: grid; gap: 40px; }

/* table of contents */
.toc {
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--teal); border-radius: 0 var(--r) var(--r) 0;
  padding: 20px 22px; margin-bottom: 34px;
}
.toc h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.15em; font-size: .93rem; }
.toc li { margin-bottom: .3em; }

/* ------------------------------------------------------------- callouts */

.callout {
  background: var(--teal-tint); border-radius: var(--r);
  padding: 22px 24px; margin: 30px 0;
  display: flex; gap: 15px; align-items: flex-start;
}
.callout .icon { color: var(--teal-dark); margin-top: 3px; }
.callout h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: .35em; }
.callout p { font-size: .95rem; color: var(--ink-soft); }
.callout--warn { background: var(--danger-tint); }
.callout--warn .icon { color: var(--danger); }
.callout--warn h3 { color: var(--danger); }
.callout--brass { background: var(--brass-tint); }
.callout--brass .icon { color: var(--brass); }

.emergency {
  border: 1px solid #E7C9C4; background: var(--danger-tint);
  border-radius: var(--r); padding: 24px; margin: 34px 0;
}
.emergency h3 { color: var(--danger); font-family: var(--sans); font-size: 1.03rem; display: flex; align-items: center; gap: 9px; }
.emergency ul { margin: 12px 0 14px; padding-left: 1.3em; font-size: .95rem; }
.emergency li::marker { color: var(--danger); }
.emergency p { font-size: .95rem; margin: 0; }
.emergency strong { color: var(--danger); }

/* ---------------------------------------------------------------- steps */

.steps { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative; padding: 0 0 26px 54px;
  border-left: 1px solid var(--line); margin-left: 17px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: -17px; top: -2px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--teal); color: var(--teal-dark);
  display: grid; place-items: center; font-size: .85rem; font-weight: 600; font-family: var(--sans);
}
.steps h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; margin-bottom: .3em; }
.steps p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* -------------------------------------------------------------- timeline */

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 1fr; gap: 2px;
  padding: 18px 0; border-bottom: 1px solid var(--line-soft);
}
.timeline li:last-child { border-bottom: 0; }
.timeline .yr {
  font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  color: var(--brass); font-variant-numeric: tabular-nums;
}
.timeline .role { font-weight: 600; font-size: 1rem; }
.timeline .org { color: var(--ink-soft); font-size: .95rem; }

/* ------------------------------------------------------- publication list */

.pubs { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.pubs li {
  counter-increment: p; position: relative;
  padding: 16px 0 16px 38px; border-bottom: 1px solid var(--line-soft);
  font-size: .95rem; line-height: 1.55;
}
.pubs li:last-child { border-bottom: 0; }
.pubs li::before {
  content: counter(p); position: absolute; left: 0; top: 18px;
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.pubs .t { display: block; color: var(--ink); font-weight: 500; }
.pubs .j { color: var(--muted); font-size: .88rem; }
.pubs .j em { font-style: normal; color: var(--ink-soft); }

/* ----------------------------------------------------- external resources */

.resources {
  margin: 34px 0 0; padding: 24px 26px;
  background: var(--paper-2); border-radius: var(--r);
  border-left: 3px solid var(--brass);
}
.resources h2 {
  font-family: var(--sans); font-size: 1.02rem; font-weight: 600;
  margin: 0 0 6px; display: flex; align-items: center; gap: 9px;
}
.resources h2 .icon { width: 18px; height: 18px; color: var(--brass); }
.resources > p { font-size: .93rem; color: var(--ink-soft); margin-bottom: 14px; }
.resources ul { list-style: none; margin: 0; padding: 0; }
.resources li { margin-bottom: 9px; }
.resources li a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .95rem; font-weight: 500; text-decoration: none;
}
.resources li a:hover { text-decoration: underline; }
.resources-note {
  font-size: .82rem; color: var(--muted); margin: 14px 0 0; font-style: italic;
}

/* ------------------------------------------------------------------- faq */

.faq { margin: 30px 0 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 19px 44px 19px 0; position: relative;
  font-weight: 500; font-size: 1.02rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px;
  border-right: 1.8px solid var(--teal); border-bottom: 1.8px solid var(--teal);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--teal-dark); }
.faq-body { padding: 0 40px 22px 0; }
.faq-body p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* -------------------------------------------------------------- cta band */

.cta-band { background: var(--ink); color: #fff; }
.cta-inner { display: grid; gap: 26px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { color: #B9CBD4; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------- contact */

.nap { list-style: none; margin: 0; padding: 0; }
.nap li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.nap li:last-child { border-bottom: 0; }
.nap .icon { color: var(--teal-dark); margin-top: 3px; }
.nap dt, .nap .k { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 2px; }
.nap .v { font-weight: 500; }
.nap a { color: var(--ink); text-decoration: none; }
.nap a:hover { color: var(--teal-dark); text-decoration: underline; }

.map-embed {
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--line);
  background: var(--paper-2); aspect-ratio: 16 / 10;
  display: grid; place-items: center; text-align: center; padding: 26px;
}
.map-embed .icon { width: 32px; height: 32px; color: var(--teal-dark); margin-bottom: 10px; }

/* ------------------------------------------------------------------ form */

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 34px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 6px; }
.field .hint { font-size: .82rem; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .97rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); background: var(--white); }
.field .err-msg { display: none; font-size: .84rem; color: var(--danger); margin-top: 5px; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.field.is-invalid .err-msg { display: block; }

.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot {
  padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); font: inherit; font-size: .89rem; cursor: pointer; color: var(--ink-soft);
}
.slot[aria-pressed="true"] { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }

.preview {
  background: var(--paper-2); border: 1px dashed var(--line); border-radius: var(--r-sm);
  padding: 15px 17px; font-size: .89rem; white-space: pre-wrap; color: var(--ink-soft);
  font-family: var(--sans); margin: 0;
}
.booking-done {
  display: none; margin-top: 18px; padding: 16px 18px;
  background: var(--teal-tint); border-radius: var(--r-sm); font-size: .93rem;
}
.booking-done.is-on { display: block; }

/* ------------------------------------------------------------ breadcrumbs */

.crumbs { padding: 16px 0 0; font-size: .84rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 6px; color: var(--line); }
.crumbs li:last-child::after { display: none; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal-dark); }

/* freshness stamp */
.updated {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .8rem; color: var(--muted); margin-top: 34px;
  padding-top: 16px; border-top: 1px solid var(--line-soft); width: 100%;
}
.updated .icon { width: 14px; height: 14px; }

/* tag list */
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.tags li {
  font-size: .82rem; padding: 5px 12px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-soft); border: 1px solid var(--line-soft);
}

/* definition rows */
.facts { display: grid; gap: 0; margin: 0; }
.facts > div { padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.facts dd { margin: 0; font-size: .98rem; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: #A9BEC8; padding-block: clamp(40px, 5vw, 56px) 0; }

/* row 1 — identity and the two actions that matter */
.foot-top {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
  justify-content: space-between;
  padding-bottom: 30px; margin-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand .brand-mark { width: 44px; height: 44px; flex: none; }
.foot-name { font-family: var(--serif); font-size: 1.2rem; color: #fff; margin: 0 0 1px; line-height: 1.2; }
.foot-sub { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #7FCFC4; margin: 0; }
.foot-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* row 2 — four balanced columns */
.foot-grid { display: grid; gap: 30px; padding-bottom: 34px; }
.site-footer h4 { color: #fff; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: #A9BEC8; text-decoration: none; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.site-footer li a:hover { color: #fff; }
.icon--ext { width: 12px; height: 12px; opacity: .5; }
.site-footer li a:hover .icon--ext { opacity: .9; }

.foot-nap { font-style: normal; font-size: .91rem; line-height: 1.7; margin: 0 0 16px; }
.foot-nap a { color: #CBDBE3; text-decoration: none; }
.foot-nap a:hover { color: #fff; text-decoration: underline; }

.foot-social { display: flex; gap: 9px; }
.foot-social a {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; color: #A9BEC8;
}
.foot-social a:hover { border-color: #7FCFC4; color: #fff; }

/* row 3 — one short legal strip */
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0 100px; }
.foot-note { font-size: .84rem; color: #8FA7B3; max-width: 82ch; margin: 0 0 16px; }
.foot-note strong { color: #E88A7D; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.foot-bottom p { font-size: .81rem; color: #7B94A1; margin: 0; }
.credit a { color: #A9BEC8; text-decoration: none; }
.credit a:hover { color: #fff; }

/* ------------------------------------------------------------ mobile bar */

.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251,250,248,.94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.mbar .btn { padding: 12px 8px; font-size: .87rem; }

/* --------------------------------------------------------------- motion */

.js-loaded .reveal { opacity: 0; transform: translateY(14px); animation: rise .6s cubic-bezier(.22,.7,.3,1) forwards; }
.js-loaded .reveal-2 { animation-delay: .09s; }
.js-loaded .reveal-3 { animation-delay: .18s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js-loaded .reveal { opacity: 1; transform: none; animation: none; }
}

/* ------------------------------------------------------------ responsive */

@media (min-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .timeline li { grid-template-columns: 120px 1fr; gap: 4px 20px; }
  .timeline .yr { grid-row: span 2; padding-top: 3px; }
  .facts { grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 30px; }
}

@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .cta-inner { grid-template-columns: 1.6fr 1fr; }
  .layout--sidebar { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
  .layout--split { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  .doc-grid { grid-template-columns: repeat(4, 1fr); }
  .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
}

/* Desktop nav. Six items plus the brand and the header CTAs need ~1090px of
   usable width, so the horizontal bar only switches on at 1160 — below that the
   hamburger is genuinely the better layout, not a fallback. */
@media (min-width: 1160px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex; align-items: center; gap: 18px; }
  .main-nav a { font-size: .9rem; }
  .main-nav .btn { display: none; }
  .header-cta .btn--sm { display: inline-flex; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .mbar { display: none; }
  .disclaimer { padding-bottom: 30px; }
  body { font-size: 17.5px; }
}

/* Between 1160 and 1300 the bar is tight: drop the call icon (the number is in
   the footer, the mobile bar and on /elaqe/) and keep WhatsApp + the CTA. */
@media (min-width: 1160px) and (max-width: 1299px) {
  .header-cta .icon-btn:not(.icon-btn--wa) { display: none; }
}

@media (min-width: 1340px) {
  .main-nav { gap: 22px; }
  .main-nav a { font-size: .93rem; }
}

/* desktop: menus float below the bar */
@media (min-width: 1160px) {
  .nav-menu {
    display: block; position: absolute; top: calc(100% + 14px); left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 268px; padding: 8px;
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--r); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .16s, transform .16s, visibility .16s;
    z-index: 60;
  }
  /* bridge the gap so the pointer can travel from button to menu */
  .nav-group::after {
    content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 16px;
  }
  .nav-group:hover .nav-menu,
  .nav-group:focus-within .nav-menu,
  .nav-menu.is-open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

/* mobile nav panel: the same menus become inline accordions */
@media (max-width: 1159px) {
  .main-nav {
    position: fixed; inset: 70px 0 auto; display: block;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 14px var(--gut) 24px; box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s, transform .18s; max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .main-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }

  .main-nav > a,
  .main-nav .nav-top {
    display: flex; width: 100%; justify-content: space-between;
    padding: 15px 0; border-bottom: 1px solid var(--line-soft);
    font-size: 1rem; color: var(--ink); text-align: left;
  }
  .main-nav > a[aria-current="page"]::after,
  .main-nav .nav-top[data-current="true"]::after { display: none; }
  .main-nav > a.btn { margin-top: 16px; border-bottom: 0; text-align: center; justify-content: center; }

  .nav-menu { padding: 4px 0 10px 6px; border-bottom: 1px solid var(--line-soft); }
  .nav-menu.is-open { display: block; }
  .nav-menu a { padding: 12px 10px; font-size: .95rem; }
  .nav-menu-all { padding: 12px 10px; }

  .header-cta .icon-btn:not(.icon-btn--wa) { display: none; }
}

@media print {
  .site-header, .mbar, .site-footer, .hero-actions, .cta-band { display: none; }
  body { background: #fff; font-size: 11pt; }
}
