/* Khaksar Welfare Association — site styles
   Identity: humble earth and new growth. Khaki, olive, soil brown, leaf green.
   Gelasio headings, Public Sans body, soft organic (pebble) shapes. */
:root {
  --blue: #4E5233;
  --blue-deep: #3B3E26;
  --navy: #26281A;
  --yellow: #DCE58E;
  --yellow-dark: #6E7A1E;
  --salt: #C3B091;
  --salt-deep: #8A7354;
  --mist: #F3EFE4;
  --mist-2: #E8DFC7;
  --white: #FFFFFF;
  --text: #26281A;
  --soft: #5C5A4A;
  --line: rgba(78, 82, 51, .18);
  --round: "Gelasio", Georgia, "Times New Roman", serif;
  --body: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--body); font-size: 17.5px; line-height: 1.65; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--round); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; }
p, ul, ol, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--yellow); color: var(--navy); padding: .7rem 1.2rem; border-radius: 3px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }

.k { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.band { padding: 4.5rem 0; }
@media (min-width: 820px) { .band { padding: 6.5rem 0; } }
.b-mist { background: var(--mist); }
.b-blue { background: var(--blue); color: var(--white); }
.soft { color: var(--soft); }
.b-blue .soft { color: #E8DFC7; }
.read { max-width: 64ch; }
.t-xl { font-size: clamp(2.2rem, 5vw, 3.5rem); color: var(--blue); }
.b-blue .t-xl { color: var(--white); }
.t-md { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--blue); }
.u1 { margin-top: .75rem; } .u2 { margin-top: 1.4rem; } .u3 { margin-top: 2.25rem; } .u4 { margin-top: 3.25rem; }

/* Speech bubble: the recurring shape */
.bubble { position: relative; background: var(--white); padding: 2rem; border-radius: 32px 14px 32px 14px; }

/* Fill-in boxes */
.fill { position: relative; border: 2px dashed var(--blue); background: var(--mist); border-radius: 4px; padding: 1.2rem 1.35rem 1.2rem 3.1rem; color: var(--navy); }
.fill::before { content: "✎"; position: absolute; left: 1.05rem; top: 1.1rem; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--blue); color: var(--white); font-size: .8rem; line-height: 1.45rem; text-align: center; }
.fill .lbl { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.fill p { margin-top: .4rem; color: var(--soft); }
.fill .ex { margin-top: .7rem; padding-top: .7rem; border-top: 1px dashed var(--line); font-style: italic; color: var(--navy); }
.fill .ex span { font-style: normal; font-weight: 700; color: var(--blue); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1.7rem; border-radius: 999px; border: 2px solid transparent; font-family: var(--body); font-weight: 600; font-size: 1rem; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-y { background: var(--yellow); color: var(--navy); }
.btn-y:hover { background: var(--white); }
.btn-b { background: var(--blue); color: var(--white); }
.btn-b:hover { background: var(--blue-deep); }
.btn-o { border-color: var(--blue); color: var(--blue); }
.btn-o:hover { background: var(--blue); color: var(--white); }
.btn-ow { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ow:hover { border-color: var(--yellow); color: var(--yellow); }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.al { font-weight: 700; color: var(--blue); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.al:hover { color: var(--blue-deep); }

/* Header */
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.hdr-r { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; height: 74px; }
.lg-mark { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.lg-mark img { width: 44px; height: 44px; }
.lg-mark span { font-family: var(--round); font-weight: 700; font-size: 1.35rem; color: var(--navy); line-height: 1; }
.lg-mark small { display: block; font-family: var(--body); font-weight: 600; font-size: .78rem; color: var(--yellow-dark); margin-top: .2rem; }
.nav { display: none; }
.nav ul { list-style: none; padding: 0; display: flex; gap: .3rem; }
.nav a { display: block; padding: .45rem .9rem; font-family: var(--body); font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--soft); border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--yellow-dark); }
.hdr-cta { display: none; padding: .65rem 1.2rem; }
.tog { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--blue); color: var(--yellow); cursor: pointer; }
.dr { background: var(--white); border-top: 1px solid var(--line); padding: .75rem 1.25rem 1.75rem; }
.dr[hidden] { display: none; }
.dr ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.dr a.dl { display: block; padding: .8rem 1.2rem; font-family: var(--round); font-weight: 600; font-size: 1.4rem; text-decoration: none; background: var(--mist); border-radius: 4px; }
.dr a.dl[aria-current="page"] { background: var(--blue); color: var(--white); }
.dr .btn { width: 100%; margin-top: 1rem; }
@media (min-width: 940px) { .nav { display: block; } .tog, .dr { display: none !important; } }
@media (min-width: 1160px) { .hdr-cta { display: inline-flex; } }

/* Hero */
.hero { background: var(--blue); color: var(--white); overflow: hidden; }
.hero-g { display: grid; gap: 2.5rem; align-items: center; padding-top: 4rem; padding-bottom: 5rem; }
@media (min-width: 900px) { .hero-g { grid-template-columns: 1.1fr 1fr; gap: 3rem; padding-top: 5.5rem; padding-bottom: 6.5rem; } }
.hero h1 { font-size: clamp(3rem, 7.4vw, 5.8rem); }
.hero .eyebrow { font-family: var(--body); font-weight: 600; font-size: .9rem; color: var(--yellow); margin-bottom: 1rem; }
.hero p.sub { margin-top: 1.4rem; font-size: 1.18rem; max-width: 40ch; color: #E8DFC7; }
.hero .btns { margin-top: 2.25rem; }
.growth { width: min(100%, 32rem); justify-self: center; }
.growth .stem { fill: none; stroke: #E8DFC7; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: rise 1.4s ease-out .3s both; }
.growth .leaf { transform-box: fill-box; animation: unfurl .9s cubic-bezier(.3,1.3,.5,1) both; }
.growth .leaf.l { transform-origin: 100% 100%; animation-delay: 1.2s; }
.growth .leaf.r { transform-origin: 0 100%; animation-delay: 1.5s; }
.growth .leaf.t { transform-origin: 50% 100%; animation-delay: 1.8s; }
@keyframes rise { to { stroke-dashoffset: 0; } }
@keyframes unfurl { from { transform: scale(0); } to { transform: none; } }

/* Mission / vision */
.mv { display: grid; gap: 2.25rem; }
@media (min-width: 820px) { .mv { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.mv .bubble { background: var(--white); }
.mv .bubble.y { background: var(--blue); }
.mv .bubble.y h2 { color: var(--yellow) !important; } .mv .bubble.y p { color: var(--white) !important; }
.mv h2 { font-size: 1.15rem; color: var(--blue); }
.mv .bubble.y h2 { color: var(--navy); }
.mv p { margin-top: .9rem; font-family: var(--round); font-weight: 500; font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.35; color: var(--navy); }
.lead { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.6; }

/* Programme cards */
.cards { display: grid; gap: 1.25rem; margin-top: 3rem; }
@media (min-width: 820px) { .cards { grid-template-columns: repeat(3, 1fr); } }
/* card */ .card { background: var(--white); padding: 1.75rem; border: 1px solid var(--line); border-radius: 32px 14px 32px 14px; }
.card .num { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: var(--yellow); font-family: var(--round); font-weight: 600; color: var(--navy); }
.card h3 { margin-top: .9rem; font-size: 1.4rem; color: var(--blue); }
.card .fill { margin-top: 1rem; }

/* Help */
.help { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 820px) { .help { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.help .bubble { background: var(--blue-deep); color: var(--white); display: flex; flex-direction: column; }
.help h3 { font-size: 1.7rem; color: var(--yellow); }
.help p { margin-top: .6rem; flex: 1; color: #E8DFC7; }
.help .btn { margin-top: 1.75rem; align-self: flex-start; }

/* FAQ as a conversation */
.fqg { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .fqg { grid-template-columns: 1fr 1.8fr; gap: 4rem; } }
.fqs details { margin-bottom: .6rem; }
.fqs summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 1.35rem; border-radius: 4px; background: var(--mist); font-family: var(--round); font-weight: 600; font-size: 1.12rem; color: var(--navy); }
.fqs summary::-webkit-details-marker { display: none; }
.fqs .ch { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--blue); transition: transform .2s; }
.fqs details[open] summary { background: var(--blue); color: var(--yellow); }
.fqs details[open] .ch { transform: rotate(180deg); }
.fqs details p { margin: 0; padding: 1rem 1.35rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-top: 0; color: var(--soft); }

/* Contact strip */
.cst { display: grid; gap: 1.25rem; padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 820px) { .cst { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.cst h3 { font-family: var(--body); font-size: .9rem; font-weight: 700; color: var(--blue); }
.cst a, .cst p { display: block; margin-top: .3rem; font-family: var(--round); font-weight: 600; font-size: 1.2rem; text-decoration: none; word-break: break-word; color: var(--navy); }
.cst a:hover { color: var(--blue); }

/* Page head */
.phd { background: var(--blue); color: var(--white); overflow: hidden; }
.phd .k { display: grid; gap: 1.5rem; align-items: center; padding-top: 3.75rem; padding-bottom: 4rem; }
@media (min-width: 820px) { .phd .k { grid-template-columns: 1fr auto; padding-top: 5rem; padding-bottom: 5.5rem; } }
.phd h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); }
.phd p { margin-top: 1.1rem; max-width: 50ch; font-size: 1.12rem; color: #E8DFC7; }
.phd .mini { display: none; width: 190px; }
@media (min-width: 820px) { .phd .mini { display: block; } }

/* Layout */
.two { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .two { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.tw { display: grid; gap: 2.5rem; }
@media (min-width: 880px) { .tw { grid-template-columns: 1fr 1.45fr; gap: 4rem; } }

/* Table */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.tbl th { width: 11rem; padding-right: 1.25rem; font-weight: 700; color: var(--blue); }
.tbl td { word-break: break-word; }

/* Contact */
.cli > div { padding: 1.3rem 1.4rem; background: var(--mist); border-radius: 4px; }
.cli > div + div { margin-top: .9rem; }
.cli h2 { font-family: var(--body); font-size: .9rem; font-weight: 700; color: var(--blue); }
.cli a, .cli address { display: block; margin-top: .3rem; font-family: var(--round); font-weight: 600; font-size: 1.2rem; font-style: normal; text-decoration: none; word-break: break-all; color: var(--navy); }
.cli address { word-break: normal; line-height: 1.45; }
.cli a:hover { color: var(--blue); }
.fbx { background: var(--mist); padding: 1.5rem; border-radius: 32px 14px 32px 14px; }
@media (min-width: 640px) { .fbx { padding: 2.5rem; } }
.mapf { overflow: hidden; border: 1px solid var(--line); border-radius: 32px 14px 32px 14px; }
.mapf iframe { width: 100%; height: 380px; border: 0; }
@media (min-width: 820px) { .mapf iframe { height: 450px; } }
.safe { border-radius: 32px 14px 32px 14px; background: var(--blue-deep); padding: 2rem; }
.safe h3 { font-size: 1.6rem; color: var(--yellow); }
.safe ul { margin-top: 1rem; padding-left: 1.2rem; color: #E8DFC7; }
.safe li + li { margin-top: .6rem; }

/* Forms */
.form { display: grid; gap: 1.15rem; }
.form .rw { display: grid; gap: 1.15rem; }
@media (min-width: 620px) { .form .rw { grid-template-columns: 1fr 1fr; } }
.form .fl { font-weight: 700; }
.form .op { font-weight: 400; color: var(--soft); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea { display: block; width: 100%; margin-top: .45rem; padding: .85rem 1.1rem; font: inherit; font-size: 1rem; color: var(--text); background: var(--mist); border: 2px solid transparent; border-radius: 3px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: var(--white); }
.form [aria-invalid="true"] { border-color: #C62F3B !important; background: #FFF1F2; }
.form .err { margin-top: .3rem; font-size: .92rem; font-weight: 700; color: #B02531; }
.form .ag { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; line-height: 1.5; }
.form .ag input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--blue); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.alert { border-radius: 3px; padding: 1rem; font-size: .95rem; background: #FFF1F2; border: 2px solid #C62F3B; }
.alert strong { display: block; color: #B02531; }
/*s*/ .success { border-radius: 32px 14px 32px 14px; padding: 2rem; background: var(--yellow); }
.success h3 { font-size: 1.8rem; color: var(--navy); }
.success button { margin-top: 1.25rem; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--navy); text-decoration: underline; cursor: pointer; }

/* Legal */
.law { max-width: 46rem; margin: 0 auto; padding: 4rem 1.25rem; }
@media (min-width: 820px) { .law { padding: 5.5rem 1.25rem; } }
.law h1 { font-size: clamp(2.4rem, 5.5vw, 3.5rem); color: var(--blue); }
.law h2 { font-size: 1.5rem; color: var(--blue); margin-top: 2.5rem; }
.law h2[id] { scroll-margin-top: 6rem; }
.law p, .law ul { margin-top: .75rem; }
.law ul { padding-left: 1.4rem; }
.law li + li { margin-top: .45rem; }
.psum { margin-top: 2rem; background: var(--mist); border-radius: 26px 10px 26px 10px; border-left: 5px solid var(--yellow-dark); padding: 1.4rem 1.6rem; }
.psum h2 { margin-top: 0 !important; font-size: 1.3rem; color: var(--navy) !important; }
.psum ul { margin-top: .6rem; }
.ptoc { margin-top: 2rem; padding: 1.3rem 1.6rem; background: var(--mist); border-radius: 4px; }
.ptoc h2 { margin-top: 0 !important; font-size: 1.15rem; }
.ptoc ol { margin: .6rem 0 0; padding-left: 1.4rem; columns: 2 14rem; }
.ptoc li { margin-bottom: .3rem; }
.ptoc a { color: var(--blue); font-weight: 700; text-decoration: none; }
.ptoc a:hover { text-decoration: underline; }
.paddr { margin-top: .75rem; font-style: normal; line-height: 1.7; }

/* Footer */
.fo { background: var(--navy); color: #D3CCB6; }
.fo-g { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 2.5rem; }
@media (min-width: 820px) { .fo-g { grid-template-columns: 1.6fr 1fr 1.4fr; } }
.fo .lg-mark span { color: var(--white); font-size: 1.6rem; }
.fo .lg-mark small { color: var(--yellow); }
.fo h2 { font-family: var(--body); font-size: .92rem; font-weight: 700; color: var(--yellow); }
.fo ul { list-style: none; padding: 0; margin-top: .9rem; }
.fo li + li { margin-top: .5rem; }
.fo a { text-decoration: none; }
.fo a:hover { color: var(--white); text-decoration: underline; }
.fo address { font-style: normal; margin-top: .9rem; }
.fo address p + p { margin-top: .5rem; }
.fo-soc { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.fo-soc a { background: rgba(255,255,255,.08); border-radius: 3px; padding: .3rem .8rem; font-size: .9rem; }
.fo-e { border-top: 1px solid rgba(255,255,255,.12); }
.fo-e p { padding-top: 1.2rem; padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }

/* Back to top */
.btt { position: fixed; right: 1.1rem; bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 54px; height: 54px; border: 0; border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; background: var(--yellow); color: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(22,26,51,.25); }
.btt[hidden] { display: none; }
.btt:hover { background: var(--blue); color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .growth .stem, .growth .leaf { animation: none; stroke-dashoffset: 0; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Programmes */
.pcard { display: block; text-decoration: none; transition: box-shadow .2s, background-color .2s; }
.pcard:hover { border-color: var(--blue); background: var(--mist); }
.pcard p { margin-top: .5rem; }
.pic { display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; background: var(--blue); color: var(--yellow); margin-bottom: 1rem; border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; }
.prog { scroll-margin-top: 6rem; padding: 2rem; display: flex; flex-direction: column; }
.prog h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); color: var(--blue); }
.prog .lead2 { margin-top: .75rem; font-weight: 700; color: var(--navy); }
.prog .u2 { margin-top: auto; padding-top: 1.4rem; }

/* Soil band */
.lattice { height: 34px; background: linear-gradient(#C3B091 0 30%, #A89070 30% 55%, #8A7354 55% 80%, #6B5A41 80%); clip-path: polygon(0 18%, 8% 8%, 17% 16%, 27% 4%, 38% 14%, 49% 6%, 60% 16%, 71% 5%, 82% 15%, 92% 7%, 100% 14%, 100% 100%, 0 100%); margin-top: -18px; position: relative; }
