/* ============================================================
   CVL Seva Trust — static rebuild
   Palette from the original Elementor kit:
   --brand   #015675  (deep petrol blue)
   --green   #81BD40
   --orange  #DB5625
   ============================================================ */

:root {
  --brand: #015675;
  --brand-dark: #013D54;
  --green: #81BD40;
  --orange: #DB5625;
  --ink: #22313A;
  --muted: #5C6B75;
  --bg: #FCFBF8;
  --card: #FFFFFF;
  --line: #E7E3DA;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(1, 86, 117, 0.08);
  --font-body: "DM Sans", "Segoe UI", Roboto, sans-serif;
  --font-display: "Roboto Slab", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

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

a { color: var(--brand); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img { width: 56px; height: 56px; border-radius: 10px; }

.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--brand);
}

.main-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover { background: rgba(1, 86, 117, 0.08); color: var(--brand); }

.main-nav a.nav-cta {
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  margin-left: 8px;
}

.main-nav a.nav-cta:hover { background: #C24A1D; color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--brand);
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--brand-dark); line-height: 1.25; }

h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 18px; }

.section-head { max-width: 720px; margin-bottom: 40px; }

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.lead { color: var(--muted); font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #EAF3F6 0%, var(--bg) 100%);
  padding: 64px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-banner { max-width: min(440px, 100%); margin-bottom: 24px; }

.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.hero h1 strong { color: var(--orange); font-weight: 700; }

.hero p { color: var(--muted); margin-bottom: 14px; max-width: 54ch; }

.hero-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-outline { border: 2px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* ---------- Mission / Vision ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.mv-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
}

.mv-card:nth-child(2) { border-top-color: var(--orange); }

.mv-card h2 { font-size: 1.4rem; }

.mv-card p { color: var(--muted); }

/* ---------- About ---------- */
.about { background: #fff; border-block: 1px solid var(--line); }

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}

.about-text p { margin-bottom: 16px; }

.about-text blockquote {
  border-left: 4px solid var(--green);
  padding: 4px 0 4px 20px;
  color: var(--muted);
  font-style: italic;
}

.about-text blockquote p { margin-bottom: 12px; }

.about-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Trustees ---------- */
.trustee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }

.trustee-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}

.trustee-card h3 { font-size: 1.15rem; margin-bottom: 10px; }

.trustee-card::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
  margin-bottom: 16px;
}

.trustee-card p { color: var(--muted); font-size: 0.96rem; }

.trustee-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Counter ---------- */
.counter-band {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}

.counter-band .label-top {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #A8D8EA;
}

.counter-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.1;
}

.counter-band .label-bottom { font-size: 1.1rem; color: #E3F1F6; }

/* ---------- Focus areas ---------- */
.focus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.focus-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.focus-card:hover { transform: translateY(-4px); }

.focus-card img { width: 64px; height: 64px; margin: 0 auto 18px; }

.focus-card h3 { font-size: 1.1rem; margin-bottom: 10px; }

.focus-card p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Scholarships ---------- */
.grants { background: #fff; border-block: 1px solid var(--line); }

.grant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.grant-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  padding: 20px 22px;
  background: var(--bg);
}

.grant-card h3 { font-size: 1.02rem; margin-bottom: 6px; }

.grant-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Difference ---------- */
.difference-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.difference-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-grid a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
}

.gallery-grid img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
  transition: transform 0.3s;
}

.gallery-grid a:hover img { transform: scale(1.04); }

dialog.lightbox {
  border: none;
  background: transparent;
  max-width: 92vw;
  max-height: 92vh;
  padding: 0;
}

dialog.lightbox::backdrop { background: rgba(0, 20, 30, 0.85); }

dialog.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; border-radius: 8px; margin: 0 auto; }

dialog.lightbox .close-hint { color: #cfe6ee; text-align: center; font-size: 0.85rem; margin-top: 8px; }

/* ---------- Video ---------- */
.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Sponsorship CTA ---------- */
.sponsor-cta {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  text-align: center;
}

.sponsor-cta h2 { color: #fff; }

.sponsor-cta p { color: #D4E9F1; margin-bottom: 8px; }

.sponsor-cta a.contact-line { color: var(--green); font-weight: 600; text-decoration: none; }

.sponsor-cta .btn-primary { background: var(--orange); margin: 22px 0 26px; }
.sponsor-cta .btn-primary:hover { background: #C24A1D; }

/* ---------- Sponsorship page ---------- */
.page-title {
  background: linear-gradient(180deg, #EAF3F6 0%, var(--bg) 100%);
  padding: 56px 0 40px;
}

.page-title h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }

.sponsor-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.sponsor-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}

.sponsor-form label { display: block; font-weight: 600; font-size: 0.92rem; margin: 16px 0 6px; }

.sponsor-form input,
.sponsor-form textarea,
.sponsor-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.98rem;
  background: var(--bg);
}

.sponsor-form input:focus,
.sponsor-form textarea:focus,
.sponsor-form select:focus { outline: 2px solid var(--brand); border-color: var(--brand); }

.sponsor-form button {
  margin-top: 22px;
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.contact-block { padding-top: 8px; }

.contact-block h2 { font-size: 1.4rem; }

.contact-block ul { list-style: none; margin: 18px 0; }

.contact-block li { margin-bottom: 12px; color: var(--muted); }

.contact-block li strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-dark);
  color: #B9D6E2;
  text-align: center;
  padding: 26px 0;
  font-size: 0.92rem;
}

.site-footer a { color: var(--green); text-decoration: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding: 56px 0; }
  .hero-grid, .about-grid, .difference-grid, .sponsor-layout { grid-template-columns: 1fr; gap: 32px; }
  .trustee-grid { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .grant-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .mv-grid, .focus-grid, .grant-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .main-nav.open { display: block; }

  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 16px 16px; align-items: stretch; }

  .main-nav a { padding: 12px 14px; }

  .main-nav a.nav-cta { margin-left: 0; margin-top: 6px; text-align: center; }
}
