/* ==========================================================================
   Bethel Mission Chennai — shared stylesheet
   Palette: warm cream ground, deep teal, warm amber
   ========================================================================== */

:root {
  --cream:        #FBF7F0;
  --cream-deep:   #F4EDE1;
  --ink:          #1F2A2E;
  --ink-soft:     #4E5F63;
  --ink-faint:    #7C8A8D;
  --teal:         #10585C;
  --teal-dark:    #0A3F42;
  --teal-tint:    #E4EFEE;
  --amber:        #C8871F;
  --amber-tint:   #FBF0DC;
  --line:         #E6DDCD;
  --white:        #FFFFFF;

  --radius:       14px;
  --radius-lg:    20px;
  --shadow:       0 1px 2px rgba(31,42,46,.05), 0 8px 24px rgba(31,42,46,.06);
  --shadow-lift:  0 2px 4px rgba(31,42,46,.06), 0 18px 40px rgba(31,42,46,.10);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --gap:  clamp(1.25rem, 3vw, 2rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

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

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.25rem);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--teal); color: #fff; padding: .75rem 1.25rem; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Header / navigation ------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,247,240,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 76px;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 56px; width: auto; border-radius: 6px; }
.brand__name {
  font-family: var(--serif); font-size: 1.16rem; font-weight: 600;
  color: var(--ink); line-height: 1.15; letter-spacing: -.01em;
}
.brand__sub {
  display: block; font-family: var(--sans); font-size: .68rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
  margin-top: 2px;
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: .5rem .7rem; cursor: pointer; color: var(--ink);
  font: inherit; font-size: .9rem;
}

.nav { display: flex; align-items: center; gap: .35rem; }

.nav a {
  display: inline-block; padding: .5rem .9rem; border-radius: 999px;
  font-size: .95rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--teal-tint); color: var(--teal-dark); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--teal); color: #fff; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: .6rem clamp(1.15rem, 4vw, 2.25rem) 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { border-radius: 10px; padding: .7rem .9rem; }
}

/* ---------- Hero ---------------------------------------------------------- */

.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }

.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 880px) { .hero__grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--amber);
  margin-bottom: 1rem;
}

.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.18rem); color: var(--ink-soft); max-width: 34em; }

.verse {
  margin: 1.75rem 0 0; padding: .9rem 0 .9rem 1.25rem;
  border-left: 3px solid var(--amber);
  font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--teal-dark);
}

.hero__figure { position: relative; }
.hero__figure img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
}
.hero__figure figcaption {
  margin-top: .85rem; font-size: .9rem; color: var(--ink-faint); line-height: 1.55;
}

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.btn {
  display: inline-block; padding: .8rem 1.6rem; border-radius: 999px;
  font-size: .95rem; font-weight: 600; text-decoration: none;
  border: 1.5px solid transparent; transition: all .15s ease;
}
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); color: #fff; text-decoration: none; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-dark); text-decoration: none; }

/* ---------- Page banner (inner pages) ------------------------------------ */

.page-head {
  background: var(--cream-deep);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}
.page-head p { max-width: 44em; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Sections ------------------------------------------------------ */

.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--tint { background: var(--cream-deep); border-block: 1px solid var(--line); }
.section--white { background: var(--white); border-block: 1px solid var(--line); }

.section__head { max-width: 46em; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { color: var(--ink-soft); margin-bottom: 0; }

.rule { width: 54px; height: 3px; background: var(--amber); border: 0; margin: 0 0 1.5rem; border-radius: 2px; }

/* ---------- Photo cards: image on top, description below ------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: var(--gap);
}
.cards--two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--cream-deep);
}
.card--tall > img { aspect-ratio: 3 / 4; }

.card figcaption { padding: 1.35rem 1.4rem 1.5rem; }
.card figcaption h3 { margin-bottom: .45rem; }
.card figcaption p {
  font-size: .95rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 0;
}
.card__tag {
  display: inline-block; font-size: .68rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-tint);
  padding: .28rem .6rem; border-radius: 999px; margin-bottom: .7rem;
}

/* ---------- Project block ------------------------------------------------- */

.project { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.project + .project { margin-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }

.project__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem 1rem;
  margin-bottom: 1.75rem;
}
.project__head h2 { margin-bottom: 0; }
.project__place {
  font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber); background: var(--amber-tint);
  padding: .35rem .75rem; border-radius: 999px;
}
.project__intro { max-width: 46em; color: var(--ink-soft); margin-bottom: 2rem; }

/* ---------- Documents ----------------------------------------------------- */

.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gap); }

.doc {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.6rem 1.7rem;
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.doc:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lift);
  border-color: var(--teal); text-decoration: none; color: inherit;
}
.doc__icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--teal-tint); color: var(--teal);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.doc__icon svg { width: 22px; height: 22px; }
.doc h3 { margin-bottom: .4rem; }
.doc p { font-size: .94rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.doc__cta {
  margin-top: auto; font-size: .9rem; font-weight: 600; color: var(--teal);
  display: inline-flex; align-items: center; gap: .4rem;
}
.doc:hover .doc__cta { color: var(--teal-dark); }

.note {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  background: var(--amber-tint); border: 1px solid #EDD9B4;
  border-radius: var(--radius); padding: 1.35rem 1.5rem;
  font-size: .94rem; color: var(--ink-soft);
}
.note strong { color: var(--ink); }

/* ---------- Call to action ------------------------------------------------ */

.cta { background: var(--teal-dark); color: #EAF2F1; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta h2 { color: #fff; }
.cta p { color: #C4D8D7; max-width: 40em; margin-inline: auto; }
.cta__inner { text-align: center; }
.cta .btn--primary { background: var(--amber); color: #22180A; }
.cta .btn--primary:hover { background: #B0741A; color: #22180A; }
.cta .btn--ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.cta .btn--ghost:hover { border-color: #fff; color: #fff; }
.cta .btn-row { justify-content: center; }

/* ---------- Footer -------------------------------------------------------- */

.site-footer {
  background: var(--ink); color: #9FB0B3;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem; font-size: .93rem;
}
.site-footer a { color: #CFE0E0; }
.site-footer a:hover { color: #fff; }

.site-footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 720px) { .site-footer__grid { grid-template-columns: 1fr; gap: 1.75rem; } }

.site-footer h4 {
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #fff;
  margin: 0 0 .9rem;
}
.site-footer__name { font-family: var(--serif); font-size: 1.2rem; color: #fff; margin-bottom: .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer__bottom {
  padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  justify-content: space-between; font-size: .86rem; color: #7B8C8F;
}
