/* ===========================================================
   Fundación Casa del Niño de Ibagué — Hoja de estilos
   Paleta cálida · diseño responsive · sin dependencias JS de terceros
   =========================================================== */

/* ---------- Tokens ---------- */
:root {
  --teal-900: #0a3d3a;
  --teal-800: #0c4d4a;
  --teal-700: #0f766e;
  --teal-600: #138a80;
  --teal-50:  #e6f4f2;

  --sun:      #f4a82c;
  --sun-dark: #d98a0e;
  --coral:    #ef7a5e;
  --coral-soft:#fbe3da;

  --cream:    #fdfaf3;
  --cream-2:  #f7f1e6;
  --surface:  #ffffff;

  --ink:      #1d2b29;
  --body:     #41514e;
  --muted:    #6c7c79;
  --line:     #e7e0d2;

  --shadow-sm: 0 2px 8px rgba(16, 50, 47, .06);
  --shadow:    0 14px 40px -16px rgba(16, 50, 47, .25);
  --shadow-lg: 0 30px 70px -28px rgba(16, 50, 47, .40);

  --r-sm: 10px;
  --r:    18px;
  --r-lg: 26px;
  --maxw: 1180px;

  --ff-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --ff-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  color: var(--body);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-700); text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--ff-display); color: var(--ink); line-height: 1.12; font-weight: 600; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--tint { background: var(--cream-2); }
.section--teal { background: var(--teal-800); color: #d7ece9; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-body); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-700);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--sun); border-radius: 2px; }
.section--teal .eyebrow { color: var(--sun); }

.section-title { font-size: clamp(1.9rem, 4.2vw, 3rem); margin: 14px 0 0; letter-spacing: -.01em; }
.section-lead { max-width: 62ch; margin-top: 16px; color: var(--muted); font-size: 1.06rem; }
.center .section-lead { margin-inline: auto; }
.section--teal .section-title { color: #fff; }
.section--teal .section-lead { color: #b9d6d2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .98rem;
  padding: 13px 24px; border-radius: 999px;
  border: 2px solid transparent; transition: .22s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--sun); color: #432d05; box-shadow: 0 10px 24px -10px rgba(217,138,14,.8); }
.btn-primary:hover { background: var(--sun-dark); color: #2c1d02; transform: translateY(-2px); }
.btn-teal { background: var(--teal-700); color: #fff; }
.btn-teal:hover { background: var(--teal-800); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--teal-700); color: var(--teal-800); }
.btn-ghost:hover { background: var(--teal-700); color: #fff; }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn-light:hover { background: #fff; color: var(--teal-800); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--teal-900); color: #bfe0dc;
  font-size: .85rem;
}
.topbar .container { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; padding-block: 8px; }
.topbar a { color: #d6efec; }
.topbar a:hover { color: #fff; }
.topbar-info { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.topbar-info span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-info svg { width: 15px; height: 15px; opacity: .85; }
.topbar-nit { font-weight: 700; color: #fff; letter-spacing: .02em; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253,250,243,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(253,250,243,.96); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand-text strong { display: block; font-family: var(--ff-display); font-weight: 600; color: var(--ink); font-size: 1.06rem; line-height: 1.05; }
.brand-text span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--ink); font-weight: 600; font-size: .96rem;
  padding: 9px 14px; border-radius: 10px; transition: .18s;
}
.nav-links a:hover { background: var(--teal-50); color: var(--teal-800); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; background: var(--teal-700); border: none; color: #fff;
  width: 46px; height: 44px; border-radius: 12px; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/galeria-apoyo-escolar.jpg") center 30% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(110deg, rgba(10,61,58,.92) 0%, rgba(12,77,74,.82) 42%, rgba(10,61,58,.45) 100%);
}
.hero-inner { padding: clamp(70px, 12vw, 150px) 0 clamp(80px, 12vw, 140px); max-width: 760px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(244,168,44,.18); border: 1px solid rgba(244,168,44,.55);
  color: #ffd98c; font-weight: 700; font-size: .82rem; letter-spacing: .06em;
  padding: 7px 16px; border-radius: 999px; text-transform: uppercase;
}
.hero h1 {
  color: #fff; font-size: clamp(2.5rem, 6vw, 4.3rem);
  margin: 22px 0 0; letter-spacing: -.015em; font-weight: 600;
}
.hero h1 em { color: var(--sun); font-style: normal; }
.hero p { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #e7f3f1; max-width: 56ch; margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero-scroll svg { width: 22px; height: 22px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(7px);} }

/* ---------- Stats ---------- */
.stats {
  margin-top: -52px; position: relative; z-index: 5;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow);
}
.stat { background: var(--surface); padding: 30px 22px; text-align: center; }
.stat b { display: block; font-family: var(--ff-display); font-size: clamp(2rem, 4vw, 2.9rem); color: var(--teal-700); font-weight: 600; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: .92rem; color: var(--muted); font-weight: 600; }

/* ---------- About / historia ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(34px, 5vw, 70px); align-items: center; }
.about-text p { margin-top: 18px; }
.about-text p:first-of-type { margin-top: 22px; }
.about-quote {
  margin-top: 26px; padding: 22px 26px; border-left: 4px solid var(--sun);
  background: var(--cream-2); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-family: var(--ff-display); font-style: italic; color: var(--teal-800); font-size: 1.12rem;
}
.about-media { position: relative; }
.about-media img { border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-media .float-card {
  position: absolute; left: -22px; bottom: -22px;
  background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 18px 22px; display: flex; align-items: center; gap: 14px; max-width: 280px;
}
.about-media .float-card .ring { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral); flex: none; }
.about-media .float-card .ring svg { width: 26px; height: 26px; }
.about-media .float-card b { color: var(--ink); font-family: var(--ff-display); font-size: 1.5rem; display: block; line-height: 1; }
.about-media .float-card span { font-size: .85rem; color: var(--muted); }

/* ---------- Cards genéricas (misión/visión/valores) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.icard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px 30px; box-shadow: var(--shadow-sm); transition: .25s ease;
}
.icard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.icard .ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; }
.icard .ic svg { width: 30px; height: 30px; }
.ic-teal { background: var(--teal-50); color: var(--teal-700); }
.ic-sun  { background: #fdeccb; color: var(--sun-dark); }
.ic-coral{ background: var(--coral-soft); color: var(--coral); }
.icard h3 { font-size: 1.4rem; margin-bottom: 10px; }
.icard p { font-size: .98rem; color: var(--body); }

/* ---------- Programas ---------- */
.prog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 20px; margin-top: 50px; }
.prog {
  background: var(--surface); border-radius: var(--r); padding: 28px 26px;
  border: 1px solid var(--line); position: relative; overflow: hidden; transition: .25s;
}
.prog::after { content: ""; position: absolute; left: 0; top: 0; width: 5px; height: 0; background: var(--sun); transition: height .3s ease; }
.prog:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.prog:hover::after { height: 100%; }
.prog .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-700); margin-bottom: 16px; }
.prog .ic svg { width: 26px; height: 26px; }
.prog h3 { font-size: 1.2rem; margin-bottom: 8px; }
.prog p { font-size: .94rem; color: var(--muted); }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 880px; margin: 56px auto 0; padding-left: 4px; }
.timeline::before { content: ""; position: absolute; left: 20px; top: 6px; bottom: 6px; width: 3px; background: linear-gradient(var(--sun), var(--teal-600)); border-radius: 3px; }
.tl-item { position: relative; padding: 0 0 38px 64px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 9px; top: 2px; width: 25px; height: 25px; border-radius: 50%; background: var(--surface); border: 4px solid var(--teal-600); box-shadow: 0 0 0 5px var(--cream); }
.tl-item:nth-child(odd) .tl-dot { border-color: var(--sun); }
.tl-year { font-family: var(--ff-display); font-weight: 600; color: var(--teal-700); font-size: 1.35rem; }
.tl-item:nth-child(odd) .tl-year { color: var(--sun-dark); }
.tl-item h3 { font-size: 1.12rem; margin: 2px 0 6px; }
.tl-item p { font-size: .97rem; color: var(--body); max-width: 64ch; }
.section--tint .tl-dot { box-shadow: 0 0 0 5px var(--cream-2); }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; margin-top: 50px; }
.gitem {
  position: relative; overflow: hidden; border-radius: var(--r); cursor: pointer;
  background: var(--cream-2); box-shadow: var(--shadow-sm);
}
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.3,1); }
.gitem::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 45%, rgba(10,61,58,.78));
  opacity: 0; transition: opacity .3s;
}
.gitem figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2;
  color: #fff; font-weight: 600; font-size: .95rem;
  transform: translateY(8px); opacity: 0; transition: .3s;
}
.gitem .zoom { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--teal-800); display: grid; place-items: center; opacity: 0; transform: scale(.7); transition: .3s; }
.gitem .zoom svg { width: 19px; height: 19px; }
.gitem:hover img { transform: scale(1.08); }
.gitem:hover::after,
.gitem:hover figcaption,
.gitem:hover .zoom { opacity: 1; }
.gitem:hover figcaption { transform: translateY(0); }
.gitem:hover .zoom { transform: scale(1); }
.gitem.tall { grid-row: span 2; }
.gitem.wide { grid-column: span 2; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(8,30,28,.94); align-items: center; justify-content: center;
  padding: 30px; backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; animation: fade .25s ease; }
.lightbox img { max-width: min(94vw, 1100px); max-height: 84vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lb-cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: #e7f3f1; font-weight: 600; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  transition: .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-btn svg { width: 26px; height: 26px; }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Banner transparencia / CTA ---------- */
.cta-banner { position: relative; overflow: hidden; }
.cta-banner .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center; }
.cta-banner .blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .35; }
.cta-banner .blob.b1 { width: 340px; height: 340px; background: var(--teal-600); top: -120px; right: -60px; }
.cta-banner .blob.b2 { width: 240px; height: 240px; background: var(--sun); bottom: -120px; left: 8%; }
.cta-banner h2 { color: #fff; font-size: clamp(1.7rem,3.6vw,2.5rem); }
.cta-banner p { color: #c6e1dd; margin-top: 12px; max-width: 60ch; }
.cta-banner .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 50px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.contact-list { margin-top: 8px; }
.contact-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: none; }
.contact-list .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; }
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list b { color: var(--ink); display: block; font-family: var(--ff-display); font-size: 1.05rem; }
.contact-list span, .contact-list a { color: var(--body); font-size: .96rem; }
.map-card { padding: 0; overflow: hidden; min-height: 380px; }
.map-card iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: #a7cbc7; padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 56px; background: #fff; border-radius: 12px; padding: 6px; }
.footer-brand strong { color: #fff; font-family: var(--ff-display); font-size: 1.2rem; display: block; }
.footer-brand span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sun); }
.site-footer p { margin-top: 16px; font-size: .95rem; max-width: 42ch; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.footer-col a { display: block; color: #a7cbc7; padding: 6px 0; font-size: .95rem; }
.footer-col a:hover { color: var(--sun); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .85rem; color: #84b1ac; }

/* ===========================================================
   Página de TRANSPARENCIA
   =========================================================== */
.page-hero { position: relative; color: #fff; isolation: isolate; padding: clamp(60px,9vw,120px) 0 clamp(56px,8vw,90px); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(125deg, var(--teal-800), var(--teal-700) 60%, var(--teal-600)); }
.page-hero .crumbs { font-size: .9rem; color: #bfe0dc; margin-bottom: 16px; }
.page-hero .crumbs a { color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem,5vw,3.4rem); }
.page-hero p { color: #d3eae7; max-width: 70ch; margin-top: 16px; font-size: 1.08rem; }
.page-hero .legal-note {
  margin-top: 26px; display: inline-flex; gap: 12px; align-items: flex-start;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  padding: 14px 20px; border-radius: var(--r); max-width: 720px; font-size: .92rem; color: #e7f3f1;
}
.page-hero .legal-note svg { width: 22px; height: 22px; flex: none; color: var(--sun); margin-top: 2px; }

/* Tabs por vigencia */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 44px; }
.tab {
  background: var(--surface); border: 1px solid var(--line); color: var(--teal-800);
  font-weight: 700; padding: 11px 22px; border-radius: 999px; transition: .2s; font-size: .95rem;
}
.tab:hover { border-color: var(--teal-600); }
.tab.active { background: var(--teal-700); color: #fff; border-color: var(--teal-700); box-shadow: var(--shadow-sm); }

.year-panel { display: none; margin-top: 38px; }
.year-panel.active { display: block; animation: fade .3s ease; }
.year-head { text-align: center; margin-bottom: 8px; }
.year-head h2 { font-size: 1.6rem; }
.year-head p { color: var(--muted); margin-top: 6px; }

.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr)); gap: 20px; margin-top: 30px; }
.doc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; display: flex; flex-direction: column; transition: .25s; box-shadow: var(--shadow-sm);
}
.doc:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.doc-top { display: flex; align-items: center; gap: 14px; }
.doc-ico { flex: none; width: 50px; height: 58px; border-radius: 9px; background: linear-gradient(160deg,#fff,#f4eee0); border: 1px solid var(--line); position: relative; display: grid; place-items: end center; padding-bottom: 7px; box-shadow: var(--shadow-sm); }
.doc-ico::before { content: ""; position: absolute; top: 0; right: 0; border-width: 0 14px 14px 0; border-style: solid; border-color: var(--cream-2) #fff #fff var(--cream-2); border-radius: 0 0 0 4px; }
.doc-ico span { font-size: .6rem; font-weight: 800; letter-spacing: .05em; color: #c0392b; background: #fdeceb; padding: 2px 5px; border-radius: 4px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.b-fin { background: #e6f4f2; color: var(--teal-700); }
.b-acta { background: #fdeccb; color: var(--sun-dark); }
.b-informe { background: var(--coral-soft); color: #c1492f; }
.b-cert { background: #eae4f6; color: #6b46c1; }
.b-dian { background: #dceefb; color: #1d6fb8; }
.doc h3 { font-size: 1.12rem; margin: 16px 0 6px; line-height: 1.25; }
.doc p { font-size: .9rem; color: var(--muted); flex-grow: 1; }
.doc-meta { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); margin: 14px 0 16px; }
.doc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.doc-meta svg { width: 14px; height: 14px; }
.doc-actions { display: flex; gap: 10px; }
.doc-actions .btn { flex: 1; justify-content: center; }

/* Visor PDF (modal) */
.pdf-modal { position: fixed; inset: 0; z-index: 210; display: none; background: rgba(8,30,28,.9); padding: 24px; backdrop-filter: blur(4px); }
.pdf-modal.open { display: flex; align-items: center; justify-content: center; animation: fade .25s ease; }
.pdf-shell { background: var(--surface); border-radius: var(--r); width: min(1000px, 96vw); height: min(90vh, 1000px); display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg); }
.pdf-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--cream); }
.pdf-bar .doc-ico { width: 34px; height: 40px; }
.pdf-bar .doc-ico span { font-size: .5rem; }
.pdf-bar h4 { font-size: 1rem; flex-grow: 1; line-height: 1.2; }
.pdf-bar .acts { display: flex; gap: 8px; }
.pdf-bar .icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--teal-800); display: grid; place-items: center; transition: .2s; }
.pdf-bar .icon-btn:hover { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.pdf-bar .icon-btn svg { width: 20px; height: 20px; }
.pdf-frame { flex-grow: 1; border: 0; width: 100%; background: #525659; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-scroll svg { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; margin: 0 auto; }
  .cards-3 { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
  .cta-banner .container { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gitem.wide { grid-column: span 2; }
  .gitem.tall { grid-row: span 1; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .site-header.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); padding: 14px; gap: 4px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-header.menu-open .nav-links a { padding: 13px 16px; }
  .topbar-info .hide-sm { display: none; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gitem.wide { grid-column: span 1; }
  .doc-actions { flex-direction: column; }
  .about-media .float-card { position: static; margin-top: 16px; max-width: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
}
