/* Phulashree Foundation — site stylesheet */

:root {
  --navy: #1b2a52;
  --navy-dark: #121d3a;
  --orange: #f5a623;
  --green: #7cb342;
  --blue: #29abe2;
  --red: #e5393f;
  --cream: #fbf8f2;
  --paper: #ffffff;
  --ink: #26314f;
  --ink-soft: #5a6480;
  --line: #e7e2d6;
  --shadow: 0 10px 30px rgba(27, 42, 82, 0.08);
  --radius: 14px;
  --maxw: 1120px;
  font-size: 17px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 1.3em; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--navy); color: #fff; padding: 10px 16px;
  z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; top: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: Georgia, serif; color: var(--navy); font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-text span { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; }

nav.main-nav ul {
  list-style: none; display: flex; gap: 4px; margin: 0; padding: 0;
}
nav.main-nav a {
  color: var(--navy); font-weight: 600; font-size: 0.95rem;
  padding: 10px 14px; border-radius: 8px; display: block;
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] {
  background: var(--navy); color: #fff; text-decoration: none;
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0;
}

@media (max-width: 860px) {
  nav.main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; padding: 10px 24px 18px; gap: 2px; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(245,166,35,0.14), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(41,171,226,0.14), transparent 55%),
    linear-gradient(180deg, #fff, var(--cream));
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); background: #fff; border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); display: inline-block; }
.hero p.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 54ch; }
.hero-art {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; text-align: center;
}
.hero-art img { max-width: 300px; margin: 0 auto; }
.hero-art .est { margin-top: 14px; font-size: 0.85rem; color: var(--ink-soft); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none; border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(27,42,82,0.25); }
.btn-primary:hover { background: var(--navy-dark); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
}

/* ---------- Sections ---------- */
section { padding: 62px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 70ch; margin-bottom: 36px; }
.section-head .kicker {
  color: var(--red); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase;
  display: block; margin-bottom: 8px;
}

/* Pillars grid */
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 14px; color: #fff;
}
.card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.96rem; }

.ic-orange { background: var(--orange); }
.ic-green  { background: var(--green); }
.ic-blue   { background: var(--blue); }
.ic-red    { background: var(--red); }
.ic-navy   { background: var(--navy); }
.ic-teal   { background: #2fa89a; }

/* Teaser cards linking out */
.teaser-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .teaser-grid { grid-template-columns: 1fr; } }
.teaser {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%;
}
.teaser .tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy); background: #eef1f8; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.teaser p { color: var(--ink-soft); flex-grow: 1; }
.teaser .more { font-weight: 700; }

/* Gallery preview strip */
.thumb-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 760px) { .thumb-strip { grid-template-columns: repeat(2, 1fr); } }
.thumb-strip a { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.thumb-strip img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform 0.3s ease; }
.thumb-strip a:hover img { transform: scale(1.06); }

/* Gallery page grid */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); background: #fff;
}
.gallery-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery-item figcaption { padding: 12px 14px; font-size: 0.88rem; color: var(--ink-soft); }
figure { margin: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff; border-radius: var(--radius); padding: 40px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfd6ea; max-width: 60ch; margin: 0 auto 22px; }
.cta-band .btn-ghost { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; }
.cta-band .btn-primary { background: #fff; color: var(--navy); }
.cta-band .btn-primary:hover { background: #f0f0f0; }

/* ---------- Page header (interior pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, #fff, var(--cream));
  border-bottom: 1px solid var(--line);
  padding: 46px 0 40px;
}
.page-hero .kicker {
  color: var(--red); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase;
  display: block; margin-bottom: 10px;
}
.page-hero p.lead { color: var(--ink-soft); max-width: 68ch; font-size: 1.05rem; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-soft); }

/* ---------- Prose / content blocks ---------- */
.prose { max-width: 78ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; box-shadow: var(--shadow); margin: 26px 0;
}
.info-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.info-card dt { font-weight: 700; color: var(--navy); }
.info-card dd { margin: 0; color: var(--ink-soft); }

.trustee-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.trustee-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.trustee-list .role { color: var(--ink-soft); font-size: 0.88rem; }
.trustee-list li.current { border-color: var(--orange); background: #fff8ec; }

/* Objectives accordion */
.obj-group {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 16px; box-shadow: var(--shadow); overflow: hidden;
}
.obj-group summary {
  cursor: pointer; padding: 18px 24px; font-family: Georgia, serif; font-weight: 700;
  color: var(--navy); font-size: 1.08rem; display: flex; align-items: center; justify-content: space-between;
  list-style: none;
}
.obj-group summary::-webkit-details-marker { display: none; }
.obj-group summary .count {
  font-family: -apple-system, sans-serif; font-weight: 700; font-size: 0.78rem;
  background: #eef1f8; color: var(--ink-soft); padding: 3px 10px; border-radius: 999px; margin-left: 12px;
}
.obj-group summary::after {
  content: "+"; font-size: 1.4rem; color: var(--ink-soft); margin-left: 12px; flex-shrink: 0;
}
.obj-group[open] summary::after { content: "\2212"; }
.obj-group .obj-body { padding: 0 24px 22px; }
.obj-group ol { margin: 0; padding-left: 1.2em; color: var(--ink); }
.obj-group li { margin-bottom: 10px; }

/* Awards */
.award-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px; margin-bottom: 24px;
}
.award-card .medal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; background: var(--orange); color: #fff;
  font-size: 1.4rem; margin-bottom: 14px;
}
.award-card h3 { margin-bottom: 4px; }
.award-card .inst { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 16px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.contact-card ul { list-style: none; padding: 0; margin: 0; }
.contact-card li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-card li:last-child { border-bottom: none; }
.contact-card .ic {
  width: 38px; height: 38px; border-radius: 10px; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem;
}
.contact-card .placeholder { color: var(--red); font-style: italic; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--navy); font-size: 0.92rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 0.95rem; background: #fcfcfa;
}
.form-group input:focus, .form-group textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }

.notice {
  background: #fff8ec; border: 1px solid #f0d9a6; color: #7a5b12;
  border-radius: 10px; padding: 14px 18px; font-size: 0.92rem; margin-bottom: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark); color: #cfd6ea; padding: 46px 0 26px; margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: -apple-system, sans-serif; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.05em; }
.site-footer a { color: #cfd6ea; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand img { height: 38px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px;
  font-size: 0.85rem; color: #93a0c2; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.small { font-size: 0.88rem; color: var(--ink-soft); }
