/* ============================================================
   Karmayogi Parishad Trust - single stylesheet
   Everything visual is controlled from here.
   To change the look of the whole site, edit the variables
   in the :root block below. Nothing else needs to change.
   ============================================================ */

:root {
  /* Brand colours */
  --saffron: #ff7a00;
  --saffron-dark: #d96500;
  --gold: #d4af37;
  --ink: #201a16;
  --muted: #6b5f57;
  --cream: #fffbf4;
  --line: #ecdfd0;
  --white: #ffffff;
  --whatsapp: #25d366;

  /* Layout */
  --page: 1060px;
  --radius: 14px;
  --gap: 20px;

  /* Type */
  --font: "Poppins", system-ui, -apple-system, sans-serif;
  --font-hi: "Noto Sans Devanagari", "Poppins", system-ui, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

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

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

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

a { color: var(--saffron-dark); }

h1, h2, h3 { line-height: 1.3; margin: 0 0 12px; font-weight: 700; }
h1 { font-size: clamp(28px, 5.5vw, 44px); }
h2 { font-size: clamp(23px, 4vw, 31px); }
h3 { font-size: 19px; }
p  { margin: 0 0 14px; }

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

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 18px; }
.section { padding: 52px 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.center { text-align: center; }
.lead { font-size: 19px; color: var(--muted); max-width: 66ch; }
.center .lead { margin-inline: auto; }
.eyebrow {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--saffron-dark); font-weight: 600; margin-bottom: 8px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.header-inner {
  display: flex; align-items: center; gap: 14px;
  padding-block: 10px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 42px; height: 42px; }
.brand b { display: block; font-size: 17px; line-height: 1.2; }
.brand span { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .06em; }

.nav { display: flex; gap: 4px; margin-inline-start: auto; flex-wrap: wrap; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink); font-size: 15px;
  padding: 7px 11px; border-radius: 8px;
}
.nav a:hover { background: #fff3e5; }
.nav a[aria-current="page"] { color: var(--saffron-dark); font-weight: 600; }

/* On phones the menu becomes a full-width scrollable row */
@media (max-width: 720px) {
  .header-inner { padding-block: 8px; }
  .nav {
    order: 3; width: 100%; margin-inline-start: 0;
    overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px;
  }
  .nav a { white-space: nowrap; padding: 6px 9px; font-size: 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 16px; border: 2px solid transparent;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--saffron); color: #fff; }
.btn-primary:hover { background: var(--saffron-dark); }
.btn-gold { background: var(--gold); color: #241c00; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-sm { padding: 8px 15px; font-size: 14.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #fff5e8 0%, var(--cream) 100%); padding: 56px 0 48px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { margin-bottom: 14px; }
.hero .sanskrit { font-size: 15px; color: var(--muted); margin-top: 18px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.card img { border-radius: 10px; margin-bottom: 14px; }
.card-icon { width: 44px; height: 44px; margin-bottom: 12px; }

/* ---------- Lists ---------- */
.list { padding-inline-start: 22px; margin: 0 0 14px; }
.list li { margin-bottom: 8px; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-plain li:last-child { border-bottom: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 15.5px; }
th, td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #fff6ea; font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; position: relative;
  padding: 16px 18px 16px 62px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  position: absolute; inset-inline-start: 18px; top: 15px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--saffron); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}

/* ---------- Quote band ---------- */
.band {
  background: var(--ink); color: #fff5e8; text-align: center;
  padding: 44px 0;
}
.band p { font-size: 20px; margin-bottom: 8px; }
.band small { color: #c9b8a8; }

/* ---------- Call to action strip ---------- */
.cta-strip {
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  color: #fff; text-align: center; padding: 40px 0;
}
.cta-strip h2 { color: #fff; }
.cta-strip .btn-ghost { background: #fff; border-color: #fff; }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: #fff5e8; border-bottom: 1px solid var(--line); padding: 40px 0 34px; }
.page-head p { margin-bottom: 0; color: var(--muted); }

/* ---------- Notice box ---------- */
.notice {
  background: #fff8e6; border: 1px dashed var(--gold);
  border-radius: var(--radius); padding: 16px 18px; font-size: 15.5px;
}
.notice p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
details.faq {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px;
}
details.faq summary { font-weight: 600; cursor: pointer; }
details.faq p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Contact rows ---------- */
.contact-list { display: grid; gap: 12px; }
.contact-list a { text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #e8ded4;
  padding: 40px 0 28px; margin-top: 10px; font-size: 15px;
}
.site-footer a { color: #ffd9ad; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 26px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { margin: 0 0 10px; font-size: 15px; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-bottom {
  margin-top: 28px; padding-top: 18px;
  border-top: 1px solid #3a2f27; color: #b3a498; font-size: 13.5px;
}

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 50;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--whatsapp); display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Legal pages ---------- */
.prose p,
.prose li { max-width: 72ch; }
.prose h2 { margin-top: 32px; font-size: 22px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
