/* EduCARE India — v4, copy of v3 with photo crop/zoom fixes */

:root {
  --page-bg: #e7e3da;
  --bg: #faf8f4;
  --panel: #f1efe8;
  --ink: #17140f;
  --ink-soft: #57534b;
  --line: #ddd8cb;
  --cream: #fffefb;
  --link: #2b5a8f;
  --max: 720px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Lora", Georgia, "Times New Roman", serif;
}

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

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.7;
  font-size: 17px;
}

a { color: inherit; }

.link {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-style: italic;
}

.underline {
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

/* ---------- Page frame (the bordered card the mockup sits in) ---------- */

.page {
  max-width: 1080px;
  margin: 30px auto;
  border: 2.5px solid var(--ink);
  border-radius: 30px;
  overflow: hidden;
  background: var(--bg);
}

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

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 1.25rem;
  /* letter-spacing: 0.01em; */
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand img { width: 32px; color: var(--ink); margin: 0; padding: 0;}
.brand em { font-style: italic; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 1rem;
  margin-right: 1rem;
}

.main-nav a.nav-link {
  font-family: var(--body);
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
}

.main-nav a.nav-link:hover { color: var(--ink); }

.nav-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.92rem;
  padding: 9px 20px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.btn-solid { background: var(--ink); color: var(--cream); }
.btn-solid:hover { background: var(--ink-soft); border-color: var(--ink-soft); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

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

/* One continuous photo again (1.jpg is 3359x2400 — heads start ~30% down
   from the top). background-size is deliberately zoomed past plain
   "cover" so there's real vertical travel to work with: at 780px tall
   split into a 460px dimmed zone + 320px clear zone, "auto 195% / top"
   shows the image's 0%-31% (sky, trees, the building — the overlay) then
   31%-53% (heads down to about hip height — the clear strip) in one
   unbroken crop, instead of fighting background-position on a container
   that barely had any vertical slack to move within. */

.hero-band {
  width: 100%;
  min-height: 720px;
  background-image: url("1.jpg");
  background-size: auto 150%;
  background-position: top center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}

.hero-overlay {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  text-align: center;
  padding: 44px 32px;
  background: linear-gradient(
    to bottom,
    rgba(12, 10, 8, 0.88) 0%,
    rgba(12, 10, 8, 0.88) 82%,
    rgba(12, 10, 8, 0.97) 100%
  );
  border-bottom: 3px solid rgba(8, 7, 5, 0.95);
}

.hero-inner {
  max-width: 620px;
  margin: 0 auto;
}

.hero-mark-ring {
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.9);
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mark-ring img { margin-top: 5%; width: 48px; color: var(--ink); }

.hero-mark {
  width: 46px;
  height: 46px;
  color: var(--cream);
}

.hero-inner h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  font-size: 1.9rem;
  margin: 0 0 4px;
  line-height: 1.25;
  color: var(--cream);
}
.hero-inner h1 strong { font-weight: 700; font-style: normal; }

.hero-inner .subtitle {
  font-family: var(--serif);
  /* font-style: italic; */
  font-size: 1.45rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 22px;
}

.hero-inner p.lede {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  /* max-width: 500px; */
  margin: 0 auto;
}
.hero-inner p.lede strong { color: var(--cream); }

/* .hero-inner .btn-outline {
  border-color: var(--cream);
  color: var(--cream);
}
.hero-inner .btn-outline:hover {
  background: var(--cream);
  color: var(--ink);
} */

/* ---------- Photo bands ---------- */

.photo-band {
  height: 420px;
  width: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: var(--panel);
}
/* was center 45% in v3 — cut the two people off at the top and showed
   mostly bare dirt below them. Pulling up so they're framed properly. */
.photo-band.hands     { background-image: url("2.jpg"); background-position: center 80%; }
.photo-band.planning  { background-image: url("3.jpg"); background-position: center 45%; }
.photo-band.meeting   { background-image: url("4.jpg"); background-size: 105%; background-position: center 20%; }
.photo-band.transport { background-image: url("5.jpg"); background-position: center 70%;}
.photo-band.group     { background-image: url("6.jpg"); background-size: 135%; background-position: center 13%; }
.photo-band.craft     { background-image: url("7.jpg"); background-size: 110%; background-position: center 5%; }

/* ---------- Content sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 32px;
}

.section h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-style: normal;
  font-size: 1.85rem;
  margin: 0 0 18px;
}

.section p { margin: 0 0 16px; color: var(--ink-soft); }
.section p strong { color: var(--ink); font-weight: 600; }
.section p em { color: var(--ink); font-style: italic; }
.section p a em { color: var(--link); font-style: italic; }

.section ul.beliefs { list-style: none; margin: 0; padding: 0; }
.section ul.beliefs li {
  margin-bottom: 16px;
  padding-left: 22px;
  position: relative;
  color: var(--ink-soft);
}
.section ul.beliefs li::before {
  content: "\2022";
  color: var(--ink);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}
.section ul.beliefs li em { color: var(--ink); font-style: italic; }

.center-action .btn { margin-top: 10px; font-size: 1.2rem }

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

/* .site-footer {
  background: var(--bg);
  color: var(--ink);
  text-align: center;
  padding: 50px 32px 56px;
  border-top: 1px solid var(--line);
}
.site-footer h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.75rem;
  margin: 0 0 14px;
  color: var(--ink);
}
.site-footer a.mail {
  font-size: 1.05rem;
} */

/* ---------- Responsive ---------- */

html, body { overflow-x: hidden; }

/* The nav row (logo + 4 links + 2 buttons, all nowrap) needs roughly
   950-1000px of clear width. .page tops out at 1080px, so anywhere
   between a phone and that width the row could overflow past the
   frame's clipped edge. Switching to the hamburger well before that
   point — at 1040px — covers the whole gap instead of leaving a band
   of viewport widths where things overflow. */

@media (max-width: 1080px) {
  .page { margin: 0; border-radius: 0; border-left: none; border-right: none; }
}

@media (max-width: 820px) {
    .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-inner.open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    z-index: 10;
  }
  .header-inner.open .main-nav a.nav-link {
    padding: 12px 32px;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page { margin: 0; border-radius: 0; border-left: none; border-right: none; }
  .nav-actions .btn-outline { display: none; }
  .header-inner { padding: 14px 20px; }
  .hero-band { min-height: 610px; }
  .hero-overlay { min-height: 360px; padding: 36px 20px; }
  .hero-inner h1 { font-size: 1.6rem; }
  .hero-inner .subtitle { font-size: 1.25rem; }
  .hero-inner p.lede { font-size: 1.1rem; }
  .section { padding: 40px 20px }
  .photo-band { height: 200px; }
}
