/* BTF Divyang Centre — "Classroom Wall" design system */
:root {
  --paper: #FFFDF6;
  --ink: #2E2A24;
  --red: #E4573D;
  --blue: #2B7BBF;
  --green: #58A054;
  --yellow: #F2C230;
  --purple: #7B5EA7;
  --rule: #BFD5E4;
  --ruled-bg: #F4F9FC;
  /* darker variants for body-size text: the display shades fail WCAG AA
     at small sizes; bands/decoration keep the brighter originals */
  --blue-text: #1F669E;
  --green-btn: #3E7E3E;
  --hairline: #E8E2D4;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  font-family: 'Nunito Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}
h1, h2, h3, h4 { font-family: 'Fraunces', serif; font-weight: 650; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
.hand { font-family: 'Kalam', 'Segoe Print', 'Bradley Hand', cursive; }
img { max-width: 100%; }
a { color: var(--blue-text); }
:focus-visible { outline: 3px solid var(--blue-text); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--ink);
  padding: 10px 16px; font-weight: 800; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
/* fixed (not sticky): contraction can't change page height, so the
   scroll trigger can be immediate with no feedback shake */
body { padding-top: 93px; }
html { scroll-padding-top: 100px; }
header.site {
  padding: 16px 0;
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  border-bottom: 3px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
}
header.site.scrolled { padding: 12px 0; }
/* og-site behaviour: content row expands edge-to-edge when stuck, contracts back at top */
header.site .wrap {
  max-width: none;
  padding-inline: max(28px, calc(50% - 532px));
  transition: padding 0.3s ease;
}
header.site.scrolled .wrap { padding-inline: 28px; }
/* og-site behaviour: the header button changes colour when the bar sticks */
nav.main .btn { transition: background-color 0.3s ease, color 0.3s ease, padding 0.3s ease, font-size 0.3s ease; }
nav.main .btn:hover { background: #458239; color: #fff; }
header.site.scrolled nav.main .btn { background: var(--green-btn); color: #fff; padding: 9px 20px; font-size: 0.95rem; }
header.site.scrolled {
  background: rgba(255, 253, 246, 0.65);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}
header.site::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green) 55%, var(--yellow));
  opacity: 0; transition: opacity 0.25s ease;
}
header.site.scrolled::after { opacity: 1; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* logo: ink silhouette at rest -> full colour on scroll (the old site's trick);
   wordmark also grows: "Foundation" at rest, "Divyang Centre" when scrolled */
header.site .logo { position: relative; display: block; width: 296px; height: 58px; text-decoration: none; }
header.site .logo .mark {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 54px; width: auto;
  transition: height 0.25s ease;
}
header.site.scrolled .logo .mark { height: 51px; }
header.site.scrolled .logo { height: 55px; }
header.site .lockup {
  position: absolute; left: 66px; top: 50%; transform: translateY(-50%);
  text-align: center;
  transition: opacity 0.3s ease;
}
header.site .lockup .l1, header.site .lockup .l2 { display: block; white-space: nowrap; font-family: 'Nunito Sans', sans-serif; line-height: 1.3; transition: color 0.3s ease; }
header.site .lockup .l1 { font-weight: 600; font-size: 1rem; color: #1B5FAA; }
header.site .lockup .l2 { font-weight: 800; font-size: 1.15rem; color: #4A8F3C; }
header.site .lk-dc { opacity: 0; }
header.site.scrolled .lk-org { opacity: 0; }
header.site.scrolled .lk-dc { opacity: 1; }
@media (max-width: 386px) {
  header.site .logo .mark { height: 40px !important; }
  header.site .lockup { left: 48px; }
  header.site .lockup .l1 { font-size: 0.7rem !important; }
  header.site .lockup .l2 { font-size: 0.9rem !important; }
}
@media (max-width: 480px) {
  body { padding-top: 83px; }
  header.site .logo { width: 230px; height: 48px; }
  header.site .logo .mark { height: 44px; }
  header.site .lockup { left: 54px; }
  header.site .lockup .l1 { font-size: 0.8rem; }
  header.site .lockup .l2 { font-size: 1rem; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
nav.main { display: flex; gap: 24px; align-items: center; font-weight: 600; }
nav.main a { color: var(--ink); text-decoration: none; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--blue-text); }
nav.main a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
/* dropdowns: hover + keyboard (focus-within); panel styled as a sticker card */
.navgrp { position: relative; }
.navtop::after { content: "▾"; font-size: 0.7em; margin-left: 5px; vertical-align: 1px; }
.navgrp .sub {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 8px);
  min-width: 240px; background: #fff; border: 2px solid var(--ink); border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink); padding: 8px 0; z-index: 70;
  opacity: 0; visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.navgrp .sub::before { /* invisible bridge so the pointer can travel from link to panel */
  content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}
.navgrp:hover .sub, .navgrp:focus-within .sub {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.navgrp .sub a { display: block; padding: 9px 18px; font-weight: 600; white-space: nowrap; }
.navgrp .sub a:hover { background: var(--ruled-bg); }
.navgrp .suball { border-top: 1px solid var(--hairline); margin-top: 6px; padding-top: 10px; font-family: 'Kalam', 'Segoe Print', 'Bradley Hand', cursive; color: var(--blue-text); }
/* 386-900px: boxed "Menu" text button; under 386px: bare hamburger bars */
.menu-btn {
  display: none; background: none; border: 2px solid var(--ink); border-radius: 8px;
  padding: 6px 12px; font: inherit; font-weight: 800; color: var(--ink); cursor: pointer;
}
.menu-btn .bar { display: none; }
@media (max-width: 400px) {
  .menu-btn {
    border: 0; padding: 0; width: 44px; height: 44px;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  }
  .menu-btn .menu-label { display: none; }
  .menu-btn .bar {
    display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--ink);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .menu-btn[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
  .menu-btn[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7.5px) rotate(-45deg); }
}

.btn {
  display: inline-block; background: var(--yellow); color: var(--ink);
  font-family: 'Nunito Sans', sans-serif; font-weight: 800; font-size: 1rem;
  padding: 12px 24px; border-radius: 10px; text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.btn:hover { transform: translate(1px,1px); box-shadow: 2px 2px 0 var(--ink); }
.btn.plain { background: #fff; }
.btn.green { background: var(--green-btn); color: #fff; }

/* ---------- home hero ---------- */
.hero { padding: 48px 0 84px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
.u {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 40 4, 80 12, 120 7 S 190 9, 197 6' fill='none' stroke='%23F2C230' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat bottom / 100% 0.32em;
  padding-bottom: 0.28em;
}
.hero .sub { font-size: 1.15rem; margin: 22px 0 30px; max-width: 32em; }
.hero .actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.hero .phone { font-weight: 800; }
.hero .phone a { color: var(--ink); text-decoration: none; }
.hero .phone span { display: block; font-weight: 400; font-size: 0.9rem; }

.collage { position: relative; min-height: 470px; }
.snap { position: absolute; background: #fff; padding: 10px 10px 14px; box-shadow: 0 8px 22px rgba(46,42,36,0.18); }
.snap img { display: block; width: 100%; height: auto; }
.snap .cap { font-family: 'Kalam', cursive; font-size: 1rem; text-align: center; padding-top: 8px; }
.snap::before {
  content: ""; position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 92px; height: 26px; background: rgba(242,194,48,0.5);
  border-left: 1px dashed rgba(46,42,36,0.15); border-right: 1px dashed rgba(46,42,36,0.15);
}
.snap.one { width: 62%; top: 0; left: 0; transform: rotate(-2.5deg); z-index: 2; }
.snap.two { width: 52%; top: 130px; right: 0; transform: rotate(2deg); z-index: 3; }
.snap.three { width: 46%; bottom: 0; left: 10%; transform: rotate(-1deg); z-index: 1; }

/* ---------- sections ---------- */
section.block { padding: 64px 0; }
section.block > .wrap > h2, h2.title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 6px; }
.lead { max-width: 42em; margin-bottom: 36px; }

/* initiative tabs */
.tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; align-items: stretch; }
.tabs.compact { grid-template-columns: repeat(3, 1fr); }
.tabs.two-up { grid-template-columns: repeat(2, 1fr); }
.tabs.two-up .tab:last-child:nth-child(odd) { grid-column: span 2; }
.serve.two-up { grid-template-columns: repeat(2, 1fr); }
.serve.two-up > :last-child:nth-child(odd) { grid-column: span 2; }
@media (max-width: 640px) {
  .serve.two-up { grid-template-columns: 1fr; }
  .serve.two-up > :last-child:nth-child(odd) { grid-column: auto; }
  .tabs, .tabs.compact, .tabs.two-up { grid-template-columns: 1fr; }
  .tabs .tab:last-child:nth-child(odd), .tabs.two-up .tab:last-child:nth-child(odd) { grid-column: auto; }
}
.tab {
  text-decoration: none; color: var(--ink); background: #fff;
  border: 2px solid var(--ink); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
}
.tab .band { height: 12px; display: block; }
.tab.c-red .band { background: var(--red); }
.tab.c-blue .band { background: var(--blue); }
.tab.c-green .band { background: var(--green); }
.tab.c-purple .band { background: var(--purple); }
.tab.c-yellow .band { background: var(--yellow); }
.tab .body { padding: 18px 16px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tab h3 { font-size: 1.1rem; line-height: 1.25; }
.tab p { font-size: 0.9rem; line-height: 1.5; }
.tab .hand { margin-top: auto; font-size: 0.95rem; color: var(--blue-text); }
.tab { transition: transform .15s ease, box-shadow .15s ease; }
.tab:hover { transform: translateY(-4px); box-shadow: 4px 6px 0 rgba(46,42,36,0.9); }

/* ruled notebook band — text baselines sit on the rules:
   pitch = one ruled line; handwriting line-height = 1 pitch; section
   padding = whole pitches; background shifted to the baseline (~39px). */
.ruled {
  --pitch: 52px;
  background-color: var(--ruled-bg);
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--pitch) - 1px), var(--rule) calc(var(--pitch) - 1px) var(--pitch));
  background-position: 0 39px;
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  padding: 52px 0; position: relative;
}
.ruled::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: max(28px, calc(50% - 560px + 28px)); width: 1px; background: rgba(228,87,61,0.55);
}
.ruled .wrap { padding-left: 64px; }
.hand-big {
  font-family: 'Kalam', cursive; font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: var(--pitch, 52px); max-width: 26em;
}
.hand-big .red { color: var(--red); }
.hand-big .blue { color: var(--blue); }
.ruled p.note {
  margin-top: 26px; line-height: 1.6; max-width: 46em; width: fit-content;
  background: #fff; border: 2px solid var(--ink); border-radius: 10px;
  padding: 12px 18px; box-shadow: 3px 3px 0 rgba(46,42,36,0.15);
}

/* whom we serve */
.serve { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.serve > div { background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 20px 20px 18px; }
.serve h3 { font-size: 1.1rem; margin-bottom: 8px; }
.serve p { font-size: 0.9rem; }

/* voices */
.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.voices blockquote { font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 500; line-height: 1.4; }
.voices blockquote::before { content: "\201C"; display: block; font-size: 3rem; line-height: 0.6; color: var(--yellow); margin-bottom: 14px; }
.voices figcaption { margin-top: 14px; font-family: 'Kalam', cursive; font-size: 1.05rem; }

/* CTA card */
.cta-card {
  background: #fff; border: 2px solid var(--ink); border-radius: 16px;
  box-shadow: 6px 6px 0 var(--yellow);
  padding: 40px 44px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 17em; }
.cta-card .hand { color: var(--blue-text); font-size: 1.05rem; margin-top: 6px; }

/* ---------- inner pages ---------- */
.page-hero { padding-block: 40px 8px; }
.page-hero .hand { color: var(--blue-text); font-size: 1.1rem; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); margin-top: 4px; max-width: 18em; }
.page-hero .lead { font-size: 1.12rem; margin: 16px 0 0; }
main > :last-child { margin-bottom: 0; }

.prose { max-width: 46em; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; }
.prose li { margin-bottom: 6px; }
.prose img { border: 2px solid var(--ink); border-radius: 12px; }

/* photo row on initiative pages */
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 36px 0; }
.photos figure { background: #fff; padding: 8px 8px 10px; box-shadow: 0 6px 16px rgba(46,42,36,0.15); }
.photos figure:nth-child(odd) { transform: rotate(-1.2deg); }
.photos figure:nth-child(even) { transform: rotate(1deg); }
.photos img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* checklists on initiative pages */
.check { list-style: none; padding: 0; max-width: 46em; }
.check li { padding: 8px 0 8px 38px; position: relative; }
.check li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13 C 7 17, 9 19, 10 19 C 12 15, 17 8, 21 5' fill='none' stroke='%2358A054' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* people */
.people { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.people.four-up { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .people, .people.four-up { grid-template-columns: repeat(2, 1fr); } }
.person { background: #fff; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; }
.person img, .person .noimg { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; display: block; }
.person .noimg {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 3rem; color: #fff;
}
.person:nth-child(5n+1) .noimg { background: var(--blue); }
.person:nth-child(5n+2) .noimg { background: var(--green); }
.person:nth-child(5n+3) .noimg { background: var(--purple); }
.person:nth-child(5n+4) .noimg { background: var(--red); }
.person:nth-child(5n) .noimg { background: var(--yellow); color: var(--ink); }
.person .body { padding: 14px 16px 16px; }
.person h3 { font-size: 1.1rem; }
.person .role { font-size: 0.9rem; color: var(--blue-text); font-weight: 700; }
.person .bio { font-size: 0.9rem; margin-top: 8px; }

/* oils shop */
.oilgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.oil { background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; }
.oil img { height: 200px; object-fit: contain; margin-bottom: 12px; }
.oil h3 { font-size: 1.2rem; }
.oil .note { font-size: 0.9rem; margin: 4px 0 12px; }
.oil .prices { font-weight: 800; margin-bottom: 14px; }
.oil .prices span { display: inline-block; background: var(--ruled-bg); border: 1px solid var(--rule); border-radius: 8px; padding: 4px 10px; margin-right: 8px; }
.oil .btn { margin-top: auto; text-align: center; }

/* blog */
.postlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.postcard { background: #fff; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.postcard img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; border-bottom: 2px solid var(--ink); }
.postcard .body { padding: 16px 18px 18px; }
.postcard h3 { font-size: 1.1rem; line-height: 1.3; }
.postcard p { font-size: 0.9rem; margin-top: 8px; }
.postcard .hand { color: var(--blue-text); font-size: 0.95rem; margin-top: 10px; display: block; }
.postcard { transition: transform .15s ease, box-shadow .15s ease; }
.postcard:hover { transform: translateY(-4px); box-shadow: 4px 6px 0 rgba(46,42,36,0.9); }
.post-meta { font-family: 'Kalam', cursive; color: var(--blue-text); margin-bottom: 24px; }

.form input:user-invalid, .form textarea:user-invalid { border-color: var(--red); }

/* spacing utilities (replace inline styles) */
.mt32{margin-top:32px}.mt48{margin-top:48px}.mt64{margin-top:64px}
.mb64{margin-bottom:64px}
.title-sm{font-size:1.5rem}
.ruled-inset{margin:24px -28px 48px;padding:52px 28px}

/* blog post identity */
.post-hero h1::after {
  content: ""; display: block; width: 150px; height: 10px; margin-top: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 40 4, 80 12, 120 7 S 190 9, 197 6' fill='none' stroke='%23F2C230' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.prose h2::after {
  content: ""; display: block; width: 64px; height: 7px; margin-top: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 40 4, 80 12, 120 7 S 190 9, 197 6' fill='none' stroke='%23BFD5E4' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.postsnap {
  background: #fff; padding: 10px; box-shadow: 0 8px 22px rgba(46,42,36,0.15);
  transform: rotate(-0.6deg); max-width: 46em; margin: 0 0 32px;
}
.postsnap img { display: block; width: 100%; border: 0; border-radius: 0; }

/* faq */
.faq { max-width: 46em; display: grid; gap: 14px; }
.faq details { background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 0; overflow: hidden; }
.faq summary {
  cursor: pointer; font-weight: 800; padding: 16px 20px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+" / ""; font-family: 'Kalam', cursive; font-size: 1.4rem; color: var(--blue-text); flex-shrink: 0; }
.faq details[open] summary::after { content: "–" / ""; }
.faq details[open] summary { border-bottom: 1px solid var(--hairline); }
.faq details p { padding: 14px 20px 18px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.snapg { background: #fff; padding: 10px 10px 6px; box-shadow: 0 8px 22px rgba(46,42,36,0.15); }
.snapg:nth-child(odd) { transform: rotate(-1deg); }
.snapg:nth-child(even) { transform: rotate(0.8deg); }
.snapg img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.snapg figcaption { text-align: center; padding: 8px 0 6px; font-size: 1rem; }

/* forms */
.form { max-width: 34em; display: grid; gap: 14px; }
.form label { font-weight: 800; font-size: 0.95rem; }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; padding: 11px 14px; margin-top: 6px;
  border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink);
}
.amounts { display: flex; gap: 10px; flex-wrap: wrap; }
.amounts .amt {
  border: 2px solid var(--ink); border-radius: 10px; background: #fff;
  padding: 10px 18px; font: inherit; font-weight: 800; cursor: pointer;
}
.amounts .amt[aria-pressed="true"] { background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); }

/* contact split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.infocard { background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 24px 26px; }
.infocard h3 { margin-bottom: 6px; }
.infocard p { margin-bottom: 16px; }
.infocard a { font-weight: 700; }
.map { border: 2px solid var(--ink); border-radius: 12px; width: 100%; height: 300px; margin-top: 20px; }

/* footer — the blackboard: ink surface, chalk handwriting, ghosted mark,
   five-crayon band along the top edge */
footer.site {
  position: relative; overflow: hidden;
  /* pre-dawn sky: deep brand navy with a warm glow rising where the sun mark sits */
  background:
    radial-gradient(560px 440px at 88% 108%, rgba(242, 194, 48, 0.16), transparent 62%),
    linear-gradient(180deg, #1B3D61 0%, #122A44 100%);
  color: var(--paper);
  padding: 116px 0 32px; margin-top: 84px;
  border-top: 0;
}
footer.site::before {
  /* layered dusk waves: the paper settles into the night sky with depth */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 64px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%23FFFDF6' d='M0,0 H1440 V12 C1180,44 760,-4 400,26 C240,38 100,32 0,18 Z'/%3E%3C/svg%3E") top / 100% 100% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%234A6B94' fill-opacity='0.5' d='M0,0 H1440 V30 C1100,66 700,10 320,44 C200,54 90,50 0,38 Z'/%3E%3C/svg%3E") top / 100% 100% no-repeat;
}
.foot-mark {
  position: absolute; right: -90px; bottom: -110px;
  width: 460px; height: auto; opacity: 0.13; pointer-events: none;
}
.foot-tag {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; color: var(--paper);
  max-width: 22em; margin-bottom: 48px;
  transform: rotate(-0.8deg); transform-origin: left bottom;
}
.foot-tag span { color: var(--yellow); }
footer.site .wrap { position: relative; }
footer.site .cols { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 40px; }
footer.site h4 { font-size: 1.25rem; margin-bottom: 16px; color: #fff; letter-spacing: 0.01em; }
footer.site h4::after {
  /* straight crayon dash in the column's colour */
  content: ""; display: block; width: 54px; height: 5px; margin-top: 9px;
  border-radius: 3px; background: #6FB1E8;
}
footer.site .cols > div:nth-child(2) h4::after { background: #82C475; }
footer.site .cols > div:nth-child(3) h4::after { background: var(--yellow); }
footer.site ul { list-style: none; padding: 0; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: var(--paper); text-decoration: none; }
footer.site a:hover { color: var(--yellow); text-decoration: underline; text-underline-offset: 4px; }
footer.site .foot-addr { margin-top: 14px; font-size: 0.9rem; opacity: 0.85; max-width: 24em; }
footer.site .socials { display: flex; gap: 14px; margin-top: 16px; }
footer.site .socials a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 2px solid rgba(255,253,246,0.4); border-radius: 50%;
  color: var(--paper); transition: border-color 0.2s ease, color 0.2s ease;
}
footer.site .socials a:hover { border-color: var(--yellow); color: var(--yellow); text-decoration: none; }
footer.site .socials svg { width: 18px; height: 18px; }
footer.site .fine {
  margin-top: 48px; padding-top: 18px;
  border-top: 1px solid rgba(255,253,246,0.18);
  font-size: 0.9rem; opacity: 0.85;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
footer.site .fine a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .foot-mark { width: 320px; right: -80px; bottom: -80px; opacity: 0.11; }
}
@media (max-width: 560px) {
  footer.site .cols { grid-template-columns: 1fr; gap: 28px; }
}

/* floating whatsapp */
.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  background: #128C4B; border: 2px solid var(--ink); border-radius: 50%;
  transition: transform .15s ease;
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  box-shadow: 3px 3px 0 var(--ink);
}
.wa svg { width: 30px; height: 30px; fill: #fff; }

@media (max-width: 900px) {
  nav.main {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
    background: #fff; border-bottom: 2px solid var(--ink);
    box-shadow: 0 14px 28px rgba(46,42,36,0.18);
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 0 28px; max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, visibility 0.3s;
  }
  nav.main.open { max-height: calc(100vh - 90px); overflow-y: auto; padding: 14px 28px 24px; visibility: visible; }
  nav.main a { padding: 8px 0; }
  .navgrp { width: 100%; }
  .navtop { font-weight: 800; display: block; width: 100%; }
  .navtop::after { content: "▾"; font-size: 0.75em; margin-left: 8px; }
  .navgrp.expanded .navtop::after { content: "▴"; }
  /* collapsed accordions; neutralise every desktop state rule (the
     :hover/:focus translate was sliding tapped panels off-screen) */
  .navgrp .sub,
  .navgrp:hover .sub,
  .navgrp:focus-within .sub {
    display: none;
    position: static; transform: none; opacity: 1; visibility: visible;
    background: none; border: 0; box-shadow: none; border-radius: 0; min-width: 0;
    padding: 0 0 6px 16px; transition: none;
  }
  .navgrp.expanded .sub,
  .navgrp.expanded:hover .sub,
  .navgrp.expanded:focus-within .sub { display: block; }
  .navgrp .sub::before { display: none; }
  .navgrp .sub a { padding: 6px 0; font-size: 0.98rem; white-space: normal; }
  .navgrp .sub a:hover { background: none; }
  .navgrp .suball { border-top: 0; margin-top: 0; padding-top: 6px; }
  nav.main .btn { align-self: stretch; text-align: center; margin-top: 10px; padding: 13px 24px; }
  .menu-btn { display: flex; }
  .hero .wrap, .voices, .split { grid-template-columns: 1fr; }
  .voices { gap: 36px; }
  .collage { min-height: 420px; }
  .tabs, .tabs.compact { grid-template-columns: 1fr 1fr; }
  .tabs .tab:last-child:nth-child(odd) { grid-column: span 2; }
  .ruled .wrap { padding-left: 48px; }
  footer.site .cols { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tab:hover, .postcard:hover, .btn:hover { transform: none; transition: none; }
  header.site, .amounts .amt { transition: none; }
}

.wa:hover { transform: scale(1.07); }
.amounts .amt:hover { background: var(--ruled-bg); }
.btn:active { transform: translate(3px,3px); box-shadow: 0 0 0 var(--ink); }
.fineprint { font-size: 0.9rem; }
.postsnap img { aspect-ratio: 1200 / 942; object-fit: cover; }

/* 387-480px: mark (44px) sits close to the wordmark; give it air */
@media (min-width: 387px) and (max-width: 480px) {
  header.site .lockup { left: 66px; }
}
