/* =========================================================
   BHAKTI VISHWAS — Stylesheet
   Faith Beyond Borders

   Contents:
   1. Design tokens (colors, type, spacing)
   2. Reset & base
   3. Layout helpers
   4. Header & navigation
   5. Buttons & form controls
   6. Hero sections
   7. Reusable content blocks (cards, lists, banners)
   8. Footer
   9. Page-specific sections
   10. Responsive breakpoints
   ========================================================= */

/* ---------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------- */
:root {
  /* Brand colors, drawn from the Bhakti Vishwas identity */
  --maroon: #7a1f2b;
  --maroon-dark: #591520;
  --gold: #d9822b;
  --gold-light: #f0a94f;
  --navy: #16233b;
  --navy-soft: #223257;
  --cream: #fdf6ec;
  --cream-alt: #f7ead6;
  --ink: #2c2420;
  --ink-soft: #5b5049;
  --white: #ffffff;
  --line: #e7d9c3;

  /* Type */
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-heading: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  /* Shape */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --shadow-soft: 0 18px 40px -20px rgba(89, 21, 32, 0.35);
  --max-width: 1180px;
}

/* ---------------------------------------------------------
   2. Reset & base
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--maroon-dark);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 var(--space-2); max-width: 62ch; }

a { color: inherit; text-decoration: none; }

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

ul, ol { padding-left: 1.2em; }

button { font-family: inherit; cursor: pointer; }

/* Visible keyboard focus for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.wordmark {
  font-family: var(--font-display);
}

/* ---------------------------------------------------------
   3. Layout helpers
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-6) 0;
}

.section--tight { padding: var(--space-5) 0; }

.section--alt { background: var(--cream-alt); }

.section--navy {
  background: var(--navy);
  color: #dde3ee;
}
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #c3cbdc; }

.section--navy .section-head p { color: #c3cbdc; }

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  margin-bottom: var(--space-1);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-4);
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.divider-lotus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: var(--gold);
  margin: var(--space-2) 0;
}
.divider-lotus::before,
.divider-lotus::after {
  content: "";
  height: 1px;
  width: 60px;
  background: var(--gold);
  opacity: 0.6;
}

.grid {
  display: grid;
  gap: var(--space-3);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}

.two-col.reverse .two-col__media { order: 2; }

.text-center { text-align: center; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--maroon);
  color: var(--white);
  padding: 0.8em 1.2em;
  z-index: 1000;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

/* ---------------------------------------------------------
   4. Header & navigation
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(253, 246, 236, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand img {
  height: 42px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text .brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--maroon);
  font-weight: 600;
}

.brand-text .brand-tag {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--maroon);
  border-color: var(--gold);
}

.nav-cta {
  background: var(--maroon);
  color: var(--white) !important;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--maroon-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--maroon-dark);
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle-bar::before { position: absolute; top: -8px; }
.nav-toggle-bar::after { position: absolute; top: 8px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------------------------------------------------------
   5. Buttons & form controls
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.8em;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  color: var(--maroon-dark);
}
.btn--primary:hover { background: var(--gold); }

.btn--outline {
  border-color: var(--maroon);
  color: var(--maroon);
  background: transparent;
}
.btn--outline:hover { background: var(--maroon); color: var(--white); }

.btn--ghost-light {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.12); }

.btn-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--maroon-dark);
}

input, select, textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}

textarea { resize: vertical; min-height: 130px; }

.field { margin-bottom: var(--space-2); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.form-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.form-status {
  margin-top: var(--space-2);
  padding: 0.9em 1.1em;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.success {
  background: #e6f3e6;
  color: #23532b;
  border: 1px solid #b7dcb9;
}
.form-status.error {
  background: #fbe7e7;
  color: #7a2323;
  border: 1px solid #f0bcbc;
}

/* ---------------------------------------------------------
   6. Hero sections
   --------------------------------------------------------- */
.hero {
  padding: var(--space-5) 0 var(--space-6);
  background: radial-gradient(circle at 85% 10%, rgba(217,130,43,0.14), transparent 55%), var(--cream);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-5);
  align-items: center;
}

.hero-copy .eyebrow { display: block; }

.hero-copy h1 { margin-bottom: var(--space-2); }

.hero-copy .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-media {
  position: relative;
}

.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 55%;
  height: 55%;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: var(--maroon-dark);
}

.trust-strip__item .icon-badge { width: 34px; height: 34px; }

.page-hero {
  padding: var(--space-5) 0 var(--space-4);
  text-align: center;
  background: linear-gradient(180deg, var(--cream-alt), var(--cream));
  border-bottom: 1px solid var(--line);
}

.page-hero .eyebrow { display: block; }
.page-hero h1 { margin: 0 auto var(--space-2); }
.page-hero .lede {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* ---------------------------------------------------------
   7. Reusable content blocks
   --------------------------------------------------------- */

/* Icon badges used throughout for feature lists */
.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cream-alt);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  flex-shrink: 0;
}
.icon-badge svg { width: 26px; height: 26px; }

/* Feature card: icon + title + description */
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

.feature-card .icon-badge { margin-bottom: var(--space-2); }

.feature-card h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }

.feature-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* Checklist rows, e.g. "what's included" lists */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
  padding: 0.7em 0;
  border-bottom: 1px dashed var(--line);
  font-family: var(--font-heading);
  font-weight: 500;
}
.check-list li:last-child { border-bottom: none; }
.check-list .tick {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-top: 0.15em;
}

/* Challenge / problem rows */
.row-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.row-list li {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--line);
}
.row-list li:last-child { border-bottom: none; }

/* Stat blocks */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  text-align: center;
}
.stat-strip .stat-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--maroon);
  display: block;
}
.stat-strip .stat-label {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Callout banner */
.callout {
  background: var(--cream-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--maroon-dark);
}
.callout .icon-badge { background: var(--white); }

/* Occasion / life-event cards with photo */
.occasion-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.occasion-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.occasion-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.occasion-card__body { padding: var(--space-2) var(--space-2) var(--space-3); }
.occasion-card h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.occasion-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* Country / market pills */
.market-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}
.market-pill {
  display: flex;
  align-items: center;
  gap: 0.6em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55em 1.2em;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.92rem;
  /* Explicit color so this is always readable, whether the pill sits on a
     cream section or a dark navy section (it never inherits section color). */
  color: var(--maroon-dark);
}
.market-pill .flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

/* Team cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-align: left;
}
.team-card .avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--maroon));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.team-card h3 { margin-bottom: 0.1rem; }
.team-card .role {
  color: var(--gold);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-2);
}
.team-card p { font-size: 0.93rem; color: var(--ink-soft); }

/* Values grid */
.value-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
  text-align: center;
}
.value-grid .icon-badge { margin: 0 auto var(--space-1); }
.value-grid .value-label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.92rem;
}

/* Quote / mission statement block */
.mission-block {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
}
.mission-block p {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.4;
  max-width: 46ch;
  margin: 0 auto;
  color: var(--white);
}
.mission-block .accent { color: var(--gold-light); }

/* Future services (coming soon) */
.future-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.future-card {
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.future-card h3 { font-size: 1rem; color: var(--maroon-dark); }
.future-card p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }
.future-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  background: var(--gold-light);
  color: var(--maroon-dark);
  padding: 0.2em 0.7em;
  border-radius: 999px;
  margin-bottom: var(--space-2);
  font-weight: 600;
}

/* Contact info list */
.contact-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.contact-info-list li {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}
.contact-info-list h3 { font-size: 1.02rem; margin-bottom: 0.15rem; }
.contact-info-list p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.contact-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-4);
  align-items: start;
}

/* ---------------------------------------------------------
   8. Footer
   --------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: #b9c2d6;
  padding: var(--space-5) 0 var(--space-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand .brand-name { color: var(--white); }
.footer-brand p { color: #a9b3c9; font-size: 0.92rem; max-width: 32ch; }

.footer-heading {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a { color: #b9c2d6; font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-3);
  font-size: 0.85rem;
  color: #8b96ae;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-tagline {
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 1.05rem;
}

/* ---------------------------------------------------------
   9. Page-specific: Home
   --------------------------------------------------------- */
.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.solution-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.solution-steps li {
  counter-increment: step;
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--line);
}
.solution-steps li:last-child { border-bottom: none; }
.solution-steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
}

.cta-band {
  background: linear-gradient(120deg, var(--maroon-dark), var(--maroon));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #f0d9c8; margin: 0 auto var(--space-3); max-width: 50ch; }

/* ---------------------------------------------------------
   10. Responsive breakpoints
   --------------------------------------------------------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse .two-col__media { order: 0; }
  .problem-layout { grid-template-columns: 1fr; }
  .grid--4, .occasion-grid, .future-grid { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-2) var(--space-3) var(--space-3);
    gap: var(--space-2);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { margin-top: 0.4rem; }

  .grid--2, .grid--3, .grid--4,
  .occasion-grid, .future-grid, .team-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: var(--space-5) 0; }
  .mission-block p { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-2); }
  .brand-text .brand-name { font-size: 1.2rem; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { flex-direction: column; }
}
