/* I Am Alive Foundation — site styles
   Identity: Lahore kashi kari tilework. Cobalt, turquoise, kashi yellow, white.
   Tall condensed headlines, rosette medallions, tile bands. */
:root {
  --cobalt: #1F3FA0;
  --cobalt-deep: #142A6E;
  --cobalt-ink: #0E1F55;
  --turq: #2BA3AE;
  --turq-dark: #1A7F88;
  --yellow: #F2C230;
  --sky: #EEF2FC;
  --white: #FFFFFF;
  --text: #1C2340;
  --soft: #4F5878;
  --rule: rgba(31, 63, 160, .16);
  --head: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", 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: 17px; line-height: 1.65; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 800; line-height: .98; letter-spacing: .005em; }
p, ul, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.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(--cobalt-ink); padding: .75rem 1.2rem; font-weight: 700; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 1rem; }

.box { max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; }
.pad { padding: 4.5rem 0; }
@media (min-width: 820px) { .pad { padding: 6.5rem 0; } }
.bg-sky { background: var(--sky); }
.bg-cobalt { background: var(--cobalt); color: var(--white); }
.bg-yellow { background: var(--yellow); color: var(--cobalt-ink); }
.dim { color: var(--soft); }
.bg-cobalt .dim { color: #C9D3F2; }
.measure { max-width: 64ch; }
.big { font-size: clamp(2.4rem, 6vw, 4.4rem); color: var(--cobalt); text-transform: none; }
.bg-cobalt .big { color: var(--white); }
.bg-yellow .big { color: var(--cobalt-ink); }
.mid { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--cobalt); }
.sp-1 { margin-top: .75rem; } .sp-2 { margin-top: 1.4rem; } .sp-3 { margin-top: 2.25rem; } .sp-4 { margin-top: 3.25rem; }

/* Tile band: border motif from kashi panels */
.band { height: 28px; background: url("../img/tile.svg") repeat-x center / 28px 28px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1.6rem; border-radius: 10px; border: 2px solid transparent; font-family: var(--body); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-yellow { background: var(--yellow); color: var(--cobalt-ink); }
.btn-yellow:hover { background: var(--white); }
.btn-cobalt { background: var(--cobalt); color: var(--white); }
.btn-cobalt:hover { background: var(--turq-dark); }
.btn-turq { background: var(--turq); color: var(--white); }
.btn-turq:hover { background: var(--cobalt-ink); }
.btn-outline-w { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-outline-w:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-outline { border-color: var(--cobalt); color: var(--cobalt); }
.btn-outline:hover { background: var(--cobalt); color: var(--white); }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.ul-link { font-weight: 700; color: var(--cobalt); text-decoration: none; border-bottom: 3px solid var(--turq); padding-bottom: 2px; }
.ul-link:hover { border-bottom-color: var(--yellow); }

/* Header */
.masthead { position: sticky; top: 0; z-index: 40; background: var(--cobalt-ink); color: var(--white); padding-top: env(safe-area-inset-top, 0px); }
.mast-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 42px; height: 42px; }
.brand b { font-family: var(--head); font-weight: 800; font-size: 1.55rem; line-height: 1; letter-spacing: .01em; }
.menu { display: none; }
.menu ul { list-style: none; padding: 0; display: flex; gap: .25rem; }
.menu a { display: block; padding: .5rem .9rem; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; color: #D6DEF5; }
.menu a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.menu a[aria-current="page"] { color: var(--cobalt-ink); background: var(--yellow); }
.mast-call { display: none; font-size: 15px; padding: .6rem 1.1rem; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; border: 2px solid rgba(255,255,255,.35); background: none; color: var(--white); cursor: pointer; }
.panel-menu { background: var(--cobalt-ink); padding: .25rem 1.25rem 1.75rem; border-top: 1px solid rgba(255,255,255,.12); }
.panel-menu[hidden] { display: none; }
.panel-menu ul { list-style: none; padding: 0; }
.panel-menu a.p-link { display: block; padding: .7rem 0; font-family: var(--head); font-weight: 800; font-size: 2rem; text-decoration: none; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.12); }
.panel-menu a.p-link[aria-current="page"] { color: var(--yellow); }
.panel-menu .btn { width: 100%; margin-top: 1.25rem; }
@media (min-width: 900px) { .menu { display: block; } .nav-toggle, .panel-menu { display: none !important; } }
@media (min-width: 1120px) { .mast-call { display: inline-flex; } }

/* Hero */
.hero { background: var(--cobalt); color: var(--white); overflow: hidden; }
.hero-in { display: grid; gap: 2.5rem; align-items: center; padding-top: 3.5rem; padding-bottom: 4rem; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.25fr 1fr; padding-top: 5rem; padding-bottom: 5.5rem; } }
.hero h1 { font-size: clamp(3.4rem, 10vw, 7.6rem); line-height: .9; text-transform: uppercase; letter-spacing: .005em; }
.hero h1 span { display: block; }
.hero p { margin-top: 1.75rem; font-size: 1.15rem; max-width: 40ch; color: #D6DEF5; }
.hero .btns { margin-top: 2.25rem; }
.rosette { width: min(100%, 26rem); margin: 0 auto; }
.rosette .petal { transform-box: view-box; transform-origin: 200px 200px; animation: bloom .7s cubic-bezier(.2,.8,.3,1.15) both; }
@keyframes bloom { from { transform: scale(0) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* "Alive means" ladder */
.ladder { list-style: none; padding: 0; margin-top: 2.5rem; }
.ladder li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; padding: 1.1rem 0; border-top: 2px solid var(--rule); }
.ladder li:last-child { border-bottom: 2px solid var(--rule); }
.ladder strong { font-family: var(--head); font-weight: 800; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; color: var(--cobalt); text-transform: uppercase; }
.ladder li:nth-child(2) strong { color: var(--turq-dark); }
.ladder li:nth-child(4) strong { color: var(--turq-dark); }
.ladder span { color: var(--soft); max-width: 34ch; }

/* Mission / vision */
.mv-pair { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .mv-pair { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.mv-pair h2 { font-size: 1.6rem; text-transform: uppercase; color: var(--cobalt); }
.mv-pair p { margin-top: 1rem; font-size: clamp(1.25rem, 2.1vw, 1.5rem); line-height: 1.45; font-weight: 500; }

/* Help cards */
.cards { display: grid; gap: 1.25rem; margin-top: 3rem; }
@media (min-width: 680px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--white); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; border: 2px solid var(--rule); text-decoration: none; transition: border-color .2s; }
.card:hover { border-color: var(--cobalt); }
.card .cap { height: 14px; }
.card:nth-child(1) .cap { background: var(--cobalt); }
.card:nth-child(2) .cap { background: var(--turq); }
.card:nth-child(3) .cap { background: var(--yellow); }
.card:nth-child(4) .cap { background: var(--cobalt-ink); }
.card .in { padding: 1.6rem; flex: 1; }
.card svg { width: 52px; height: 52px; }
.card h3 { margin-top: 1rem; font-size: 1.9rem; color: var(--cobalt); text-transform: uppercase; }
.card p { margin-top: .6rem; color: var(--soft); }

/* Get involved split */
.duo { display: grid; }
@media (min-width: 820px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo > div { padding: 3.5rem 1.25rem; }
@media (min-width: 820px) { .duo > div { padding: 5rem max(2.5rem, calc((100vw - 76rem) / 2 + 1.25rem)) 5rem 3rem; } .duo > div:first-child { padding-left: max(1.25rem, calc((100vw - 76rem) / 2 + 1.25rem)); padding-right: 3rem; } }
.duo h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); text-transform: uppercase; }
.duo p { margin-top: 1rem; max-width: 42ch; }
.duo .btn { margin-top: 2rem; }
.duo-y { background: var(--yellow); color: var(--cobalt-ink); }
.duo-t { background: var(--turq-dark); color: var(--white); }

/* FAQ */
.faqs { max-width: 50rem; margin: 2.5rem auto 0; }
.faqs details { background: var(--white); border-radius: 12px; margin-bottom: .75rem; border: 2px solid var(--rule); }
.faqs details[open] { border-color: var(--cobalt); }
.faqs summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; font-weight: 700; font-size: 1.08rem; color: var(--cobalt-ink); }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary svg { flex-shrink: 0; transition: transform .2s; color: var(--cobalt); }
.faqs details[open] summary svg { transform: rotate(180deg); }
.faqs details p { padding: 0 1.25rem 1.25rem; color: var(--soft); }
.center { text-align: center; }

/* Reach strip */
.reach { display: grid; gap: 1.5rem; padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 820px) { .reach { grid-template-columns: repeat(3, 1fr); } }
.reach div { background: rgba(255,255,255,.08); border-radius: 14px; padding: 1.5rem; }
.reach h3 { font-family: var(--body); font-size: .95rem; font-weight: 600; color: var(--yellow); letter-spacing: 0; }
.reach a, .reach p { display: block; margin-top: .4rem; font-weight: 700; font-size: 1.15rem; text-decoration: none; word-break: break-word; }
.reach a:hover { color: var(--yellow); }

/* Page intro */
.intro { background: var(--cobalt); color: var(--white); }
.intro .box { display: grid; gap: 2rem; align-items: center; padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 820px) { .intro .box { grid-template-columns: 1fr auto; padding-top: 4.5rem; padding-bottom: 4.5rem; } }
.intro h1 { font-size: clamp(3rem, 8vw, 5.8rem); text-transform: uppercase; line-height: .92; }
.intro p { margin-top: 1.25rem; max-width: 52ch; font-size: 1.12rem; color: #D6DEF5; }
.intro .medal { display: none; width: 180px; height: 180px; }
@media (min-width: 820px) { .intro .medal { display: block; } }

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

/* Values */
.vals { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 760px) { .vals { grid-template-columns: 1fr 1fr; } }
.vals > div { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; background: var(--white); padding: 1.5rem; border-radius: 14px; }
.vals svg { width: 44px; height: 44px; }
.vals dt { font-family: var(--head); font-weight: 800; font-size: 1.7rem; line-height: 1; color: var(--cobalt); text-transform: uppercase; }
.vals dd { margin-top: .5rem; color: var(--soft); }

/* Facts table */
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: .95rem 0; border-bottom: 2px solid var(--rule); }
.facts th { width: 11rem; padding-right: 1.25rem; color: var(--cobalt); font-weight: 700; }
.facts td { word-break: break-word; }

/* How we help detail */
.areas { display: grid; gap: 1.5rem; }
.area { display: grid; gap: 1.25rem; padding: 2rem; border-radius: 16px; background: var(--sky); scroll-margin-top: 6.5rem; }
@media (min-width: 820px) { .area { grid-template-columns: 72px 1fr 1.3fr; gap: 2.25rem; padding: 2.5rem; align-items: start; } }
.area svg { width: 72px; height: 72px; }
.area h2 { font-size: clamp(2rem, 3.6vw, 2.7rem); color: var(--cobalt); text-transform: uppercase; }
.area .for { margin-top: .5rem; font-weight: 700; color: var(--turq-dark); }
.area .txt { color: var(--soft); }
.notice { margin-top: 3rem; padding: 2rem; border-radius: 16px; border: 2px dashed var(--cobalt); }

/* Contact */
.c-list > div { padding: 1.4rem 1.5rem; background: var(--sky); border-radius: 14px; }
.c-list > div + div { margin-top: .9rem; }
.c-list h2 { font-family: var(--body); font-size: .95rem; font-weight: 700; color: var(--turq-dark); letter-spacing: 0; }
.c-list a, .c-list address { display: block; margin-top: .3rem; font-weight: 700; font-size: 1.15rem; font-style: normal; text-decoration: none; color: var(--cobalt-ink); word-break: break-all; }
.c-list address { word-break: normal; }
.c-list a:hover { color: var(--cobalt); text-decoration: underline; }
.formcard { background: var(--white); border: 2px solid var(--rule); border-radius: 16px; padding: 1.5rem; }
@media (min-width: 640px) { .formcard { padding: 2.5rem; } }
.mapbox { border-radius: 16px; overflow: hidden; border: 2px solid var(--rule); }
.mapbox iframe { width: 100%; height: 380px; border: 0; }

/* Donation safety */
.safety { background: var(--white); color: var(--text); border-radius: 16px; padding: 2rem; }
.safety h3 { font-size: 1.9rem; color: var(--cobalt); text-transform: uppercase; }
.safety ul { margin-top: 1rem; padding-left: 1.2rem; }
.safety li + li { margin-top: .6rem; }

/* Forms */
.form { display: grid; gap: 1.15rem; }
.form .two { display: grid; gap: 1.15rem; }
@media (min-width: 620px) { .form .two { grid-template-columns: 1fr 1fr; } }
.form .lab { font-weight: 600; }
.form .optional { 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 1rem; font: inherit; font-size: 1rem; color: var(--text); background: var(--sky); border: 2px solid transparent; border-radius: 10px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cobalt); background: var(--white); }
.form [aria-invalid="true"] { border-color: #C0392B !important; background: #FDF1EF; }
.form .err { margin-top: .3rem; font-size: .92rem; font-weight: 600; color: #B03227; }
.form .tick { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; line-height: 1.5; }
.form .tick input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--cobalt); }
.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: 10px; padding: 1rem; font-size: .95rem; background: #FDF1EF; border: 2px solid #C0392B; }
.alert strong { display: block; color: #B03227; }
.success { border-radius: 14px; padding: 2rem; background: var(--sky); border: 2px solid var(--cobalt); }
.success h3 { font-size: 2rem; color: var(--cobalt); text-transform: uppercase; }
.success button { margin-top: 1.25rem; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--cobalt); text-decoration: underline; cursor: pointer; }

/* Legal */
.legal { max-width: 46rem; margin: 0 auto; padding: 4rem 1.25rem; }
@media (min-width: 820px) { .legal { padding: 5.5rem 1.25rem; } }
.legal h1 { font-size: clamp(2.8rem, 6vw, 4rem); color: var(--cobalt); text-transform: uppercase; }
.legal h2 { font-size: 1.8rem; color: var(--cobalt); margin-top: 2.5rem; text-transform: uppercase; }
.legal p, .legal ul { margin-top: .75rem; }
.legal ul { padding-left: 1.4rem; }
.legal li + li { margin-top: .45rem; }

/* Footer */
.foot { background: var(--cobalt-ink); color: #C9D3F2; }
.foot-in { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3rem; }
@media (min-width: 820px) { .foot-in { grid-template-columns: 1.6fr 1fr 1.4fr; } }
.foot .brand b { color: var(--white); font-size: 1.9rem; }
.foot .brand img { width: 52px; height: 52px; }
.foot h2 { font-family: var(--body); font-size: .95rem; font-weight: 700; color: var(--yellow); letter-spacing: 0; }
.foot ul { list-style: none; padding: 0; margin-top: .9rem; }
.foot li + li { margin-top: .5rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot address { font-style: normal; margin-top: .9rem; }
.foot address p + p { margin-top: .5rem; }
.foot-social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.foot-social a { background: rgba(255,255,255,.08); padding: .35rem .8rem; border-radius: 8px; font-size: .9rem; }
.foot-end { border-top: 1px solid rgba(255,255,255,.12); }
.foot-end p { padding-top: 1.2rem; padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }

/* Back to top */
.lift { position: fixed; right: 1.1rem; bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--cobalt-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(14,31,85,.35); }
.lift[hidden] { display: none; }
.lift:hover { background: var(--turq); color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rosette .petal { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
