/* =====================================================================
   KhushiGambhir.in – public site styles
   Palette: sage green · ivory/cream · white · charcoal · muted teal
   ===================================================================== */

:root {
  --sage-900: #2f4535;
  --sage-700: #4f6f57;   /* primary – AA on white for text and buttons */
  --sage-500: #7d9b84;
  --sage-300: #b7c9b9;
  --sage-100: #e6eee6;
  --sage-50:  #f2f6f1;
  --ivory:    #fbf8f1;
  --cream:    #f3ede1;
  --cream-dark: #e8dfcd;
  --white:    #ffffff;
  --charcoal: #2b2f2e;
  --muted:    #5d6562;
  --teal:     #3e7c7b;
  --teal-100: #dcebea;
  --border:   #e4e1d8;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(47, 69, 53, .06);
  --shadow: 0 14px 40px -18px rgba(47, 69, 53, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--charcoal);
  --bs-link-color: var(--teal);
  --bs-link-hover-color: var(--sage-900);
  --bs-link-color-rgb: 62, 124, 123;
  --bs-link-hover-color-rgb: 47, 69, 53;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  font-size: 1.0125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--sage-900);
  letter-spacing: -.01em;
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
a { text-underline-offset: 3px; }
::selection { background: var(--sage-300); color: var(--sage-900); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2000; background: var(--sage-900); color: #fff; padding: .5rem 1rem; border-radius: 8px; }
.text-sage { color: var(--sage-700) !important; }
.text-teal { color: var(--teal) !important; }
.text-ivory { color: var(--ivory) !important; }
.text-muted-kg { color: var(--muted) !important; }
.bg-ivory { background: var(--ivory) !important; }
.bg-cream { background: var(--cream) !important; }
.bg-sage-50 { background: var(--sage-50) !important; }

/* ------------------------------------------------------------ Buttons */
.btn { border-radius: 999px; font-weight: 500; padding: .7rem 1.5rem; transition: all .25s var(--ease); }
.btn-sm { padding: .45rem 1rem; }
.btn-sage { background: var(--sage-700); border: 1px solid var(--sage-700); color: #fff; }
.btn-sage:hover, .btn-sage:focus { background: var(--sage-900); border-color: var(--sage-900); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline-sage { border: 1px solid var(--sage-700); color: var(--sage-700); background: transparent; }
.btn-outline-sage:hover { background: var(--sage-700); color: #fff; }
.btn-ivory { background: var(--ivory); color: var(--sage-900); border: 1px solid var(--ivory); }
.btn-ivory:hover { background: #fff; color: var(--sage-900); }
.btn-link-arrow { color: var(--teal); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.btn-link-arrow i { transition: transform .25s var(--ease); }
.btn-link-arrow:hover i { transform: translateX(4px); }

/* ------------------------------------------------------------ Header */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header .navbar { padding: .85rem 0; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 50% 50% 50% 12px; background: var(--sage-700); color: var(--ivory); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .02em; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-size: 1.2rem; color: var(--sage-900); font-weight: 500; }
.brand-sub { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.site-footer .brand-sub { color: var(--sage-300); }
.navbar .nav-link { color: var(--charcoal); font-weight: 500; font-size: .95rem; padding: .5rem .8rem !important; border-radius: 999px; }
.navbar .nav-link:hover { color: var(--sage-700); }
.navbar .nav-link.active { color: var(--sage-700); background: var(--sage-50); }
.dropdown-menu { border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: .5rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .85rem; font-size: .95rem; }
.dropdown-item.active, .dropdown-item:active { background: var(--sage-100); color: var(--sage-900); }
.navbar-toggler { border: 0; padding: .5rem; display: flex; flex-direction: column; gap: 5px; }
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar { display: block; width: 24px; height: 2px; background: var(--sage-900); border-radius: 2px; }
@media (min-width: 992px) {
  .navbar .offcanvas { position: static; visibility: visible !important; transform: none; border: 0; background: transparent; flex-grow: 1; }
  .navbar .offcanvas-header { display: none; }
  .navbar .offcanvas-body { display: flex; padding: 0; }
}
@media (max-width: 991.98px) {
  .offcanvas { background: var(--ivory); }
  .navbar .nav-link { font-size: 1.05rem; padding: .7rem 1rem !important; }
  .dropdown-menu { border: 0; box-shadow: none; background: transparent; padding-left: 1rem; }
}

/* ------------------------------------------------------------ Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-sm { padding: 3rem 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead-kg { font-size: 1.15rem; color: var(--muted); }

/* Page hero (inner pages) */
.page-hero { position: relative; background: linear-gradient(180deg, var(--ivory) 0%, var(--white) 100%); padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, var(--sage-100) 0%, transparent 70%); pointer-events: none; }
.page-hero h1 { max-width: 820px; }
.page-hero .lead-kg { max-width: 680px; }
.breadcrumb { font-size: .85rem; margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb-item.active { color: var(--sage-700); }

/* ------------------------------------------------------------ Home hero */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); background: radial-gradient(1200px 500px at 85% 10%, var(--sage-50), transparent 60%), linear-gradient(180deg, var(--ivory), var(--white)); overflow: hidden; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.06; margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--sage-700); }
.hero .intro-name { font-weight: 600; color: var(--sage-900); font-size: 1.05rem; }
.hero .intro-title { color: var(--muted); font-size: .95rem; }
.hero-figure { position: relative; max-width: 440px; margin-left: auto; margin-right: auto; }
.hero-photo { position: relative; aspect-ratio: 4/5; border-radius: 220px 220px var(--radius-lg) var(--radius-lg); overflow: hidden; background: var(--cream); box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--sage-300); border-radius: 220px 220px var(--radius-lg) var(--radius-lg); z-index: -1; }
.hero-badge { position: absolute; left: -24px; bottom: 36px; background: #fff; border-radius: var(--radius); padding: .9rem 1.1rem; box-shadow: var(--shadow); display: flex; gap: .75rem; align-items: center; max-width: 260px; }
.hero-badge .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--sage-100); color: var(--sage-700); display: grid; place-items: center; flex-shrink: 0; }
.hero-badge strong { display: block; font-size: .9rem; color: var(--sage-900); line-height: 1.3; }
.hero-badge span { font-size: .78rem; color: var(--muted); }
.hero-leaf { position: absolute; right: -10px; top: 40px; width: 70px; height: 70px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 1.4rem; box-shadow: var(--shadow); }
@media (max-width: 575.98px) { .hero-leaf { right: 10px; top: 24px; width: 56px; height: 56px; } .hero-badge { left: 8px; bottom: 16px; } .hero-figure::before { inset: 14px -10px -14px 14px; } }

/* Stat strip */
.stat-strip { margin-top: -3rem; position: relative; z-index: 2; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; height: 100%; box-shadow: var(--shadow-sm); display: flex; gap: 1rem; }
.stat-card .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--sage-50); color: var(--sage-700); display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }
.stat-card h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; margin-bottom: .2rem; color: var(--charcoal); }
.stat-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------ Cards */
.kg-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; height: 100%; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; position: relative; }
.kg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sage-300); }
.kg-card .icon { width: 54px; height: 54px; border-radius: 16px; background: var(--sage-50); color: var(--sage-700); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 1.25rem; transition: background .3s, color .3s; }
.kg-card:hover .icon { background: var(--sage-700); color: #fff; }
.kg-card h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.kg-card p { color: var(--muted); font-size: .96rem; }
.kg-card .tag { position: absolute; top: 1.25rem; right: 1.25rem; }
.kg-card-flat { height: auto; }
.kg-card-flat:hover { transform: none; }

.tag, .badge-kg { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; background: var(--sage-50); color: var(--sage-700); border: 1px solid var(--sage-100); }
.tag-teal { background: var(--teal-100); color: #2c5e5d; border-color: transparent; }
.tag-cream { background: var(--cream); color: #6a5a3a; border-color: transparent; }

/* Panels */
.panel-cream { background: var(--cream); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); }
.panel-sage { background: var(--sage-900); color: var(--ivory); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.panel-sage h2, .panel-sage h3 { color: var(--ivory); }
.panel-sage p { color: rgba(251, 248, 241, .82); }
.panel-sage::after { content: ""; position: absolute; width: 320px; height: 320px; right: -80px; bottom: -140px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 40px rgba(255,255,255,.03), 0 0 0 80px rgba(255,255,255,.02); }

.quote-block { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.45; color: var(--sage-900); border-left: 3px solid var(--sage-500); padding-left: 1.5rem; }

/* ------------------------------------------------------------ Timeline */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--sage-300), var(--cream-dark)); }
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -2.5rem; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--sage-700); display: grid; place-items: center; }
.timeline-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage-700); }
.timeline-item.ongoing .timeline-dot { border-color: var(--teal); box-shadow: 0 0 0 6px var(--teal-100); }
.timeline-item.ongoing .timeline-dot::after { background: var(--teal); }
.timeline-date { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: .35rem; }
.timeline-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.75rem; transition: box-shadow .3s, border-color .3s; }
.timeline-card:hover { box-shadow: var(--shadow); border-color: var(--sage-300); }
.timeline-card h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.timeline-card .org { font-weight: 500; color: var(--sage-700); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.75rem; margin-bottom: .5rem; color: var(--charcoal); }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: .1rem; font-size: .8rem; color: var(--sage-700); background: var(--sage-50); width: 1.25rem; height: 1.25rem; border-radius: 50%; display: grid; place-items: center; }

.label-heading { font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .88rem; color: var(--muted); }
.meta-row i { color: var(--sage-500); margin-right: .35rem; }

/* Notice / verification banners */
.notice { display: flex; gap: 1rem; background: var(--ivory); border: 1px solid var(--cream-dark); border-radius: var(--radius); padding: 1.25rem 1.5rem; font-size: .93rem; color: var(--charcoal); }
.notice i { color: var(--teal); font-size: 1.2rem; margin-top: .15rem; }

.empty-state { text-align: center; padding: 3rem 1.5rem; border: 1px dashed var(--sage-300); border-radius: var(--radius); background: var(--sage-50); color: var(--muted); }
.empty-state i { font-size: 2rem; color: var(--sage-500); margin-bottom: .75rem; }

/* ------------------------------------------------------------ Blog */
.post-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--sage-100), var(--cream)); overflow: hidden; display: grid; place-items: center; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .thumb .ph { font-size: 2.2rem; color: var(--sage-500); }
.post-card .body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.post-card h3 { font-size: 1.25rem; margin: .75rem 0 .5rem; }
.post-card h3 a { color: var(--sage-900); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card p { color: var(--muted); font-size: .94rem; flex-grow: 1; }
.post-card .meta-row { font-size: .8rem; }

.category-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.category-pills a { text-decoration: none; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--border); color: var(--charcoal); font-size: .9rem; background: #fff; transition: all .2s; }
.category-pills a:hover { border-color: var(--sage-500); color: var(--sage-700); }
.category-pills a.active { background: var(--sage-700); color: #fff; border-color: var(--sage-700); }
.category-pills .count { opacity: .65; font-size: .8rem; margin-left: .25rem; }

.search-box { position: relative; }
.search-box input { border-radius: 999px; padding: .75rem 1.25rem .75rem 2.75rem; border: 1px solid var(--border); }
.search-box i { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }

.article-header { padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; background: var(--ivory); }
.article-header h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 860px; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin-top: -1px; box-shadow: var(--shadow); }
.article-cover img { width: 100%; height: auto; display: block; }
.article-body { font-size: 1.08rem; line-height: 1.85; max-width: 720px; }
.article-body h2 { font-size: 1.7rem; margin: 2.5rem 0 1rem; }
.article-body h3 { font-size: 1.35rem; margin: 2rem 0 .75rem; }
.article-body blockquote { border-left: 3px solid var(--sage-500); padding: .25rem 0 .25rem 1.25rem; font-family: var(--font-display); font-size: 1.25rem; color: var(--sage-900); margin: 2rem 0; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.article-body a { color: var(--teal); }
.share-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--sage-700); background: #fff; text-decoration: none; transition: all .2s; }
.share-btn:hover { background: var(--sage-700); color: #fff; border-color: var(--sage-700); }

/* ------------------------------------------------------------ Resources */
.resource-item { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.resource-item:last-child { border-bottom: 0; }
.resource-item .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--cream); color: #7a6640; display: grid; place-items: center; flex-shrink: 0; }
.resource-item h3 { font-size: 1.1rem; margin-bottom: .15rem; }
.resource-item p { color: var(--muted); font-size: .93rem; margin: 0; }
.glossary dt { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--sage-900); }
.glossary dd { color: var(--muted); margin-bottom: 1.25rem; }
.nav-pills-kg .nav-link { border-radius: 999px; color: var(--charcoal); border: 1px solid var(--border); margin: 0 .35rem .5rem 0; background: #fff; }
.nav-pills-kg .nav-link.active { background: var(--sage-700); border-color: var(--sage-700); color: #fff; }

/* ------------------------------------------------------------ Forms */
.form-control, .form-select { border-radius: var(--radius-sm); border-color: var(--border); padding: .75rem 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--sage-500); box-shadow: 0 0 0 .25rem rgba(125, 155, 132, .2); }
.form-label { font-weight: 500; font-size: .92rem; }
.form-check-input:checked { background-color: var(--sage-700); border-color: var(--sage-700); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-card:last-child { border-bottom: 0; }
.contact-card .icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.1); color: var(--ivory); display: grid; place-items: center; flex-shrink: 0; }
.contact-card a { color: var(--ivory); }

/* ------------------------------------------------------------ CTA */
.cta { background: linear-gradient(120deg, var(--sage-700), var(--teal)); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4rem); position: relative; overflow: hidden; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.88); }
.cta::before { content: ""; position: absolute; width: 420px; height: 420px; left: -160px; top: -220px; border-radius: 50%; background: rgba(255,255,255,.07); }

/* ------------------------------------------------------------ Footer */
.site-footer { background: var(--sage-900); color: rgba(251, 248, 241, .78); padding: 4.5rem 0 2rem; margin-top: 0; }
.site-footer a { color: rgba(251, 248, 241, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-heading { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-300); margin-bottom: 1.1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-lead { max-width: 420px; }
.social-row { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; transition: all .2s; }
.social-btn:hover { background: var(--ivory); color: var(--sage-900) !important; }
.footer-note { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.5rem; font-size: .88rem; }
.visitor-counter { display: inline-flex; align-items: center; gap: .5rem; margin: 1.25rem 0 0; padding: .4rem .9rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: .88rem; color: var(--ivory); font-variant-numeric: tabular-nums; }
.visitor-counter strong { color: #fff; font-weight: 600; }

.back-to-top { position: fixed; left: 1.25rem; bottom: 1.25rem; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--border); color: var(--sage-700); display: grid; place-items: center; box-shadow: var(--shadow-sm); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 1040; }
.back-to-top.show { opacity: 1; pointer-events: auto; }

.cookie-notice { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 760px; margin: 0 auto; background: var(--sage-900); color: var(--ivory); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; box-shadow: var(--shadow); z-index: 1060; font-size: .9rem; }
.cookie-notice a { color: #fff; }
@media (min-width: 768px) { .cookie-notice { flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; } }

/* ------------------------------------------------------------ Chat */
.chat-launcher-wrap { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1050; }
.chat-launcher { display: flex; align-items: center; gap: .6rem; border: 0; border-radius: 999px; padding: .85rem 1.25rem; background: var(--sage-700); color: #fff; font-weight: 500; box-shadow: 0 12px 30px -10px rgba(47, 69, 53, .55); transition: transform .25s var(--ease), background .25s; }
.chat-launcher:hover { background: var(--sage-900); transform: translateY(-2px); }
.chat-launcher i { font-size: 1.2rem; }
@media (max-width: 575.98px) { .chat-launcher-label { display: none; } .chat-launcher { width: 56px; height: 56px; justify-content: center; padding: 0; } }

.chat-panel { position: fixed; right: 1.25rem; bottom: 5.5rem; width: min(400px, calc(100vw - 2rem)); height: min(620px, calc(100vh - 7.5rem)); background: #fff; border-radius: var(--radius-lg); box-shadow: 0 30px 70px -20px rgba(30, 45, 35, .45); display: flex; flex-direction: column; overflow: hidden; z-index: 1055; border: 1px solid var(--border); animation: chatIn .3s var(--ease); }
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 575.98px) { .chat-panel { right: .5rem; left: .5rem; bottom: .5rem; width: auto; height: calc(100vh - 1rem); height: calc(100dvh - 1rem); } }
.chat-head { background: var(--sage-900); color: var(--ivory); padding: 1rem 1.1rem; display: flex; justify-content: space-between; align-items: center; }
.chat-title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: 0; color: var(--ivory); }
.chat-status { font-size: .75rem; color: var(--sage-300); }
.chat-status .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #9fd3a9; margin-right: .25rem; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; color: #cfe3d2; }
.chat-icon-btn { background: transparent; border: 0; color: var(--ivory); width: 34px; height: 34px; border-radius: 50%; }
.chat-icon-btn:hover { background: rgba(255,255,255,.12); }
.chat-body { flex-grow: 1; overflow-y: auto; padding: 1.1rem; background: var(--ivory); display: flex; flex-direction: column; gap: .75rem; }
.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg .bubble { max-width: 86%; padding: .7rem 1rem; border-radius: 16px; font-size: .93rem; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; }
.chat-msg.bot .bubble { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-msg.user .bubble { background: var(--sage-700); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.error .bubble { background: #fff4f2; border: 1px solid #f0cfc8; color: #7a2e21; }
.chat-msg .bubble a { color: var(--teal); }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { border: 1px solid var(--sage-300); background: #fff; color: var(--sage-900); border-radius: 999px; padding: .35rem .8rem; font-size: .8rem; text-align: left; transition: all .2s; }
.chip:hover { background: var(--sage-700); color: #fff; border-color: var(--sage-700); }
.typing { display: inline-flex; gap: 4px; padding: .9rem 1rem; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--sage-500); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--border); background: #fff; }
.chat-form textarea { flex-grow: 1; resize: none; border: 1px solid var(--border); border-radius: 14px; padding: .6rem .9rem; font-size: .93rem; max-height: 120px; }
.chat-form textarea:focus { outline: none; border-color: var(--sage-500); box-shadow: 0 0 0 3px rgba(125,155,132,.2); }
.chat-send { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sage-700); color: #fff; flex-shrink: 0; align-self: flex-end; }
.chat-send:disabled { opacity: .5; }
.chat-disclaimer { font-size: .72rem; color: var(--muted); padding: 0 1rem .75rem; margin: 0; background: #fff; line-height: 1.4; }

/* ------------------------------------------------------------ Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Legal / prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 2.25rem; }

/* ---------- Large / external monitors ----------
   Bootstrap's .container stops at 1320px, leaving wide empty margins on 1920px+ screens.
   Let the layout grow and scale type (rem-based) so it fills the screen proportionally. */
@media (min-width: 1600px) {
  html { font-size: 17px; }
  .container { max-width: 1480px; }
  .hero-figure { max-width: 500px; }
}
@media (min-width: 1900px) {
  html { font-size: 18px; }
  .container { max-width: 1700px; }
  .hero-figure { max-width: 560px; }
}
@media (min-width: 2400px) {
  html { font-size: 20px; }
  .container { max-width: 2100px; }
  .hero-figure { max-width: 640px; }
}
