/* =========================================================
   Saahns / International Asthma Services — design system
   ========================================================= */

:root{
  --ink:        #17312B;
  --ink-soft:   #3A4F4A;
  --paper:      #F6F8F6;
  --paper-deep: #ECEFEA;
  --marigold:   #E08A1E;
  --marigold-deep: #B76A10;
  --sky:        #A9C9D1;
  --sky-tint:   #E7F0F2;
  --sky-deep:   #3E6E82;
  --line:       #D8DDD8;
  --white:      #FFFFFF;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 68ch;
  --radius: 2px;
  --shadow: 0 1px 2px rgba(23,49,43,0.06);
}

*, *::before, *::after{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }

a{ color: var(--sky-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover{ color: var(--marigold-deep); }

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 0.5em;
}
h1{ font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem); font-weight: 500; }
h2{ font-size: clamp(1.6rem, 2vw + 1rem, 2.3rem); }
h3{ font-size: 1.35rem; }
p{ margin: 0 0 1.1em; max-width: var(--measure); }
/* .lede{ font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; } */

.container{
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow{ max-width: 780px; }

section{ padding-block: clamp(48px, 7vw, 96px); }
.section-tight{ padding-block: clamp(32px, 4vw, 56px); }
.bg-deep{ background: var(--paper-deep); }
.bg-ink{ background: var(--ink); color: var(--paper); }
.bg-ink h2, .bg-ink h3{ color: var(--paper); }
.bg-ink a{ color: var(--sky); }
.bg-sky{ background: var(--sky-tint); }

/* Skip link */
.skip-link{
  position:absolute; left:-999px; top:auto;
  background:var(--ink); color:var(--paper); padding:12px 18px;
  z-index:100; border-radius: var(--radius);
}
.skip-link:focus{ left:16px; top:16px; }

:focus-visible{ outline: 3px solid var(--marigold); outline-offset: 2px; }

/* ---------- Header / nav ---------- */
.site-header{
  position: sticky; top:0; z-index:50;
  background: rgba(246,248,246,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-row{
  display:flex; align-items:center; justify-content:space-between;
  padding-block: 14px;
}
.logo{
  display:flex; align-items:center;
  text-decoration:none; flex-shrink:0; line-height:0;
}
.logo img{
  display:block;
  width: 200px;
  height: 100px;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
}
.logo:hover{ opacity: 0.88; }

nav.primary-nav ul{
  list-style:none; display:flex; gap: 22px; margin:0; padding:0;
  flex-wrap: wrap;
}
nav.primary-nav a{
  color: var(--ink-soft); text-decoration:none; font-size:0.96rem; font-weight:500;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
nav.primary-nav a:hover, nav.primary-nav a[aria-current="page"]{
  color: var(--ink); border-bottom-color: var(--marigold);
}
.nav-cta{
  background: var(--marigold); color: var(--white) !important; padding: 9px 18px !important;
  border-radius: var(--radius); border-bottom: none !important;
}
.nav-cta:hover{ background: var(--marigold-deep); color:var(--white) !important; }

.nav-toggle{
  display:none; background:none; border:1px solid var(--line); border-radius:var(--radius);
  padding:8px 10px; cursor:pointer;
}
.nav-toggle svg{ display:block; }

@media (max-width: 860px){
  .nav-toggle{ display:block; }
  .logo img{ width: 140px; height: 70px; }
  nav.primary-nav{
    display:none; position:absolute; left:0; right:0; top:100%;
    background: var(--paper); border-bottom:1px solid var(--line);
  }
  nav.primary-nav.open{ display:block; }
  nav.primary-nav ul{ flex-direction:column; gap:0; padding: 8px 24px 18px; }
  nav.primary-nav a{ display:block; padding: 12px 0; border-bottom:1px solid var(--line); }
  .nav-cta{ display:inline-block; margin-top:10px; }
}

/* ---------- Breath curve divider ---------- */
.breath-rule{
  width:100%; height:22px; display:block; overflow:visible; margin: 0 auto;
}
.breath-rule path{
  fill:none; stroke: var(--sky-deep); stroke-width:1.4; opacity:0.55;
  stroke-linecap: round;
}
.bg-ink .breath-rule path{ stroke: var(--sky); opacity:0.6; }

/* ---------- Hero ---------- */
.hero{
  padding-block: clamp(56px, 9vw, 120px) clamp(40px,6vw,72px);
  position:relative;
}
.hero-split{
  display:grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 380px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-eyebrow{
  font-family: var(--font-body); color: var(--sky-deep); font-weight:600;
  font-size: 0.95rem; margin-bottom: 14px;
}
.hero h1{ max-width: 16ch; }
.hero .lede{ margin-top: 18px; }
.hero-cta-row{ display:flex; gap:14px; flex-wrap:wrap; margin-top: 30px; }

.hero-rotator{ width:100%; }
.hero-rotator-frame{
  position: relative;
  width:100%;
  max-width: 380px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-rotator-frame img{
  position: absolute;
  top: 36px;
  left: 36px;
  width: calc(100% - 72px);
  height: calc(100% - 72px);
  max-width: none;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.hero-rotator-frame img.is-active{ opacity: 1; }

@media (max-width: 800px){
  .hero-split{ grid-template-columns: 1fr; }
  .hero-rotator-frame{ max-width: 300px; }
}

.stat-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr));
  gap: 28px; margin-top: 56px; border-top:1px solid var(--line); padding-top: 36px;
}
.stat-grid dt{
  font-family: var(--font-display); font-size: clamp(2rem,3vw,2.6rem);
  color: var(--marigold-deep); font-weight:600;
}
.stat-grid dd{ margin:4px 0 0; color: var(--ink-soft); font-size:0.95rem; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-block; padding: 13px 26px; border-radius: var(--radius);
  font-weight:600; text-decoration:none; font-size:0.98rem;
  border:1px solid transparent; cursor:pointer;
}
.btn-primary{ background: var(--marigold); color:var(--white); }
.btn-primary:hover{ background: var(--marigold-deep); color:var(--white); }
.btn-outline{ background:transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover{ background: var(--ink); color: var(--paper); }
.bg-ink .btn-outline{ border-color: var(--sky); color: var(--paper); }
.bg-ink .btn-outline:hover{ background: var(--sky); color: var(--ink); }

/* ---------- Cards / grids ---------- */
.grid{ display:grid; gap: 28px; }
.grid-2{ grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); }
.grid-3{ grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }

.card{
  background: var(--white); border:1px solid var(--line); padding: 28px;
  border-radius: var(--radius);
}
.card h3{ margin-bottom:0.4em; }
.card p:last-child{ margin-bottom:0; }
.card-link{ font-weight:600; display:inline-block; margin-top:10px; }

.work-grid{
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 720px){
  .work-grid{ grid-template-columns: minmax(0, 1fr); }
}
.card-work{
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  height: 100%;
  min-width: 0;
}
.card-media{
  aspect-ratio: 4 / 3;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-media--logo{ background: var(--sky-tint); }
.card-media--photo{ background: var(--paper-deep); }
.card-media img{
  display: block;
  min-width: 0;
}
.card-media--logo img{
  width: auto;
  height: 72%;
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
}
.card-media--photo img{
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.card-body{
  padding: 22px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.card-body .tag{ align-self: flex-start; }
.card-body p{ margin-bottom: 0.9em; }
.card-body .card-link{ margin-top: auto; }

.tag{
  display:inline-block; font-size:0.78rem; font-weight:600; color: var(--sky-deep);
  background: var(--sky-tint); padding: 4px 10px; border-radius: 999px; margin-bottom:10px;
  width: fit-content;
}

/* ---------- Image placeholder frames (for client photos) ---------- */
.photo-frame{
  background: linear-gradient(135deg, var(--sky-tint), var(--paper-deep));
  border:1px dashed var(--sky-deep);
  border-radius: var(--radius);
  display:flex; align-items:center; justify-content:center;
  min-height: 220px; color: var(--sky-deep); font-size:0.85rem; text-align:center;
  padding: 18px;
}
.photo-frame.small{ min-height: 140px; }
.photo-frame.portrait{ min-height: 320px; aspect-ratio: 3/4; }

.photo-rotator{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-deep);
  box-shadow: var(--shadow);
}
.photo-rotator img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.photo-rotator img.is-active{ opacity: 1; }

/* ---------- Timeline ---------- */
.timeline{ border-left: 2px solid var(--line); margin-left: 6px; padding-left: 28px; }
.timeline-item{ position:relative; padding-bottom: 32px; }
.timeline-item::before{
  content:""; position:absolute; left:-34px; top:6px; width:10px; height:10px;
  background: var(--marigold); border-radius:50%;
}
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item h3{ margin-bottom:2px; font-size:1.1rem; }
.timeline-date{ color: var(--sky-deep); font-weight:600; font-size:0.9rem; display:block; margin-bottom:6px; }
.timeline-photo{
  margin-top: 12px;
  max-width: 560px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-deep);
}
.timeline-photo img{
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.logo-frame{
  aspect-ratio: 1;
  width: 100%;
  max-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
}
.logo-frame img{
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: contain;
}

.timeline-photos,
.report-photos,
.section-photos{
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.section-photos{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.timeline-photos{
  max-width: 720px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.report-photos{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.timeline-photos img,
.report-photos img,
.section-photos img{
  display: block;
  min-width: 0;
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  background: var(--paper-deep);
  cursor: zoom-in;
}
.section-photos img.contain{
  object-fit: contain;
  background: var(--paper-deep);
}
.card .report-photos{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 860px){
  .report-photos{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px){
  .section-photos,
  .timeline-photos{
    grid-template-columns: minmax(0, 1fr);
  }
  .report-photos,
  .card .report-photos{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Quote / pull ---------- */
.pull{
  border-left: 3px solid var(--marigold); padding-left: 22px; font-family: var(--font-display);
  font-size: 1.3rem; color: var(--ink); max-width: 52ch;
}

/* ---------- Person card ---------- */
.person{ display:flex; gap:20px; align-items:flex-start; }
.person .photo-frame{ width: 110px; height: 110px; min-height:0; flex-shrink:0; border-radius:50%; font-size:0.65rem;}
.person-photo{
  width:150px; height:150px; object-fit:cover; object-position:center top;
  border-radius:50%; flex-shrink:0; background: var(--paper-deep);
}
@media (max-width: 720px){
  .person{ flex-direction:column; }
}
.person-body h3{ margin-bottom:2px; }
.person-role{ color: var(--sky-deep); font-weight:600; font-size:0.9rem; display:block; margin-bottom:8px; }

.profile-split{
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.profile-photo{
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-deep);
  box-shadow: var(--shadow);
}
.profile-photo img{
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}
.profile-copy .lede{ margin-top: 0.4em; }
@media (max-width: 720px){
  .profile-split{ grid-template-columns: 1fr; }
  .profile-photo{ max-width: 260px; margin-inline: auto; }
}

/* ---------- Table ---------- */
table{ width:100%; border-collapse: collapse; margin: 1em 0 1.6em; }
th, td{ text-align:left; padding: 10px 14px; border-bottom:1px solid var(--line); font-size:0.95rem; }
th{ font-family: var(--font-body); color: var(--ink-soft); font-weight:600; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--ink); color: var(--paper); padding-block: 56px 28px;
}
.site-footer h3{ color: var(--paper); font-size:1.1rem; }
.site-footer a{ color: var(--sky); }
.footer-logo{
  display: inline-block;
  margin-bottom: 14px;
  line-height: 0;
}
.footer-logo img{
  display: block;
  width: 180px;
  height: auto;
  background: var(--white);
  padding: 10px 14px;
  border-radius: 6px;
}
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 720px){ .footer-grid{ grid-template-columns: 1fr; gap:28px; } }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.15); margin-top: 40px; padding-top: 22px;
  display:flex; flex-wrap:wrap; gap:10px 22px; justify-content:space-between; align-items:flex-start;
  font-size:0.85rem; color: var(--sky);
}
.footer-legal{
  display:flex; flex-direction:column; gap:6px;
}
.footer-credit{
  margin:0; max-width:none; font-size:0.85rem; color: var(--sky);
}
.footer-links{ display:flex; gap:16px; flex-wrap:wrap; list-style:none; padding:0; margin:0; }

/* ---------- Donate specific ---------- */
.donate-hero{ background: linear-gradient(160deg, var(--ink), #234B43); color: var(--paper); }
.donate-hero h1{ color: var(--paper); }
.donate-way{
  background: var(--white); border:1px solid var(--line); border-radius: var(--radius);
  padding: 26px; height:100%;
}
.ein-box{
  background: var(--sky-tint); border-radius: var(--radius); padding: 20px 24px; margin-top: 18px;
  font-size:0.95rem;
}

/* ---------- Camp report list ---------- */
.report{
  border-bottom:1px solid var(--line); padding-block: 22px;
}
.report:first-child{ padding-top:0; }
.report h3{ font-size:1.05rem; margin-bottom:4px; }
.report-meta{ color: var(--sky-deep); font-weight:600; font-size:0.85rem; }

/* ---------- Gallery ---------- */
.gallery-jump{
  display:flex; flex-wrap:wrap; gap:8px; margin: 8px 0 8px;
}
.gallery-jump a{
  font-size:0.78rem; font-weight:600; color: var(--sky-deep);
  background: var(--sky-tint); padding: 6px 12px; border-radius: 999px;
  text-decoration:none;
}
.gallery-jump a:hover{ background: var(--marigold); color: var(--white); }
.gallery-album{
  padding-block: 36px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 88px;
}
#ee-prakrutiya{ scroll-margin-top: 72px; }
.gallery-album:first-child{ padding-top:0; }
.gallery-album:last-child{ border-bottom:0; padding-bottom:0; }
.gallery-album h2{ font-size: clamp(1.35rem, 1.5vw + 1rem, 1.85rem); max-width: 28ch; }
.gallery-date{
  color: var(--sky-deep); font-weight:600; font-size:0.92rem; margin: 0 0 10px;
}
.gallery-photos{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.gallery-photos.few{
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 720px;
}
.gallery-shot{
  display:block; overflow:hidden; border-radius: var(--radius);
  background: var(--paper-deep); aspect-ratio: 4 / 3;
  text-decoration:none;
  cursor: zoom-in;
}
.gallery-photos.few .gallery-shot{ aspect-ratio: 3 / 2; }
.gallery-shot img{
  width:100%; height:100%; object-fit:cover;
  transition: transform 0.35s ease;
}
.gallery-shot:hover img{ transform: scale(1.03); }
.gallery-song{
  display:grid; grid-template-columns: 1.3fr 0.9fr; gap: 36px; align-items:center;
}
.gallery-song-art{ aspect-ratio: 1; max-width: 420px; }
@media (max-width: 720px){
  .gallery-song{ grid-template-columns: 1fr; }
  .gallery-photos{ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
.lightbox{
  position:fixed; inset:0; z-index:80;
  background: rgba(255, 252, 247, 0.58);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  display:flex; align-items:center; justify-content:center;
  padding: 56px 24px 24px;
}
.lightbox[hidden]{ display:none; }
.lightbox img{
  max-width: min(1200px, 94vw);
  max-height: calc(100vh - 96px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(23, 49, 43, 0.22);
  background: #fff;
}
.lightbox-close{
  position:absolute; top:16px; right:16px;
  background: rgba(255,255,255,0.92); border:1px solid var(--line); color: var(--ink);
  font: inherit; font-weight:600; padding: 8px 14px; cursor:pointer;
  border-radius: var(--radius);
  white-space: nowrap;
}
.lightbox-close:hover{ background: var(--marigold); border-color: var(--marigold); color: var(--white); }
.card-media img,
.timeline-photo img,
.logo-frame img,
.photo-rotator img,
.profile-photo img,
.person-photo{
  cursor: zoom-in;
}

/* Utility */
.mt-0{margin-top:0} .mb-0{margin-bottom:0}
.text-center{text-align:center}
.small{ font-size:0.88rem; color: var(--ink-soft); }
.visually-hidden{
  position:absolute !important; width:1px;height:1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap;
}
