/* ============================================
   Jan Kalyan Trust — Design System
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary palette */
  --clr-primary: #2D6A4F;
  --clr-primary-dark: #1B4332;
  --clr-primary-light: #52B788;
  --clr-primary-pale: #D8F3DC;

  /* Accent / warm tones */
  --clr-accent: #C68B59;
  --clr-accent-light: #E8D5B7;
  --clr-accent-dark: #8B5E3C;

  /* Neutrals */
  --clr-white: #FFFFFF;
  --clr-bg: #FAFAF5;
  --clr-bg-alt: #F4F1EB;
  --clr-text: #2B2B2B;
  --clr-text-light: #5A5A5A;
  --clr-text-muted: #8A8A8A;
  --clr-border: #E0DDD5;

  /* Semantic */
  --clr-success: #40916C;
  --clr-danger: #D64045;

  /* Typography */
  --ff-heading: 'Outfit', sans-serif;
  --ff-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);

  /* Transitions */
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Container */
  --container-max: 1200px;
  --container-narrow: 900px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--ff-body);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--clr-primary-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: var(--space-md); color: var(--clr-text-light); }

/* ---------- Utility Classes ---------- */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}


.section {
  padding: var(--space-4xl) 0;
}
.section--alt { background: var(--clr-bg-alt); }
.section--green { background: var(--clr-primary-dark); color: var(--clr-white); }
.section--green h2,
.section--green h3,
.section--green h4 { color: var(--clr-white); }
.section--green p { color: rgba(255,255,255,0.85); }

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.section-header p {
  max-width: 640px;
  margin: var(--space-md) auto 0;
}
.section-label {
  display: inline-block;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--space-sm);
}

.stats-header {
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--clr-accent);
  margin-bottom: var(--space-sm);
}

.text-center { text-align: center; }
.text-white { color: var(--clr-white) !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--clr-primary);
  color: var(--clr-white);
}
.btn--primary:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  border: 2px solid var(--clr-primary);
  color: var(--clr-primary);
  background: transparent;
}
.btn--outline:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-2px);
}
.btn--accent {
  background: var(--clr-accent);
  color: var(--clr-white);
}
.btn--accent:hover {
  background: var(--clr-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--white {
  background: var(--clr-white);
  color: var(--clr-primary-dark);
}
.btn--white:hover {
  background: var(--clr-primary-pale);
  transform: translateY(-2px);
}
.btn--sm { padding: 0.6rem 1.4rem; font-size: 0.875rem; }
.btn--lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.navbar.scrolled {
  border-bottom-color: var(--clr-border);
  box-shadow: var(--shadow-sm);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--clr-primary-dark);
}
.navbar__logo span { color: var(--clr-accent); }
.navbar__logo-img {
  height: 52px;
  width: 52px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 2px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 2px;
}
.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.navbar__links a {
  font-family: var(--ff-heading);
  font-weight: 500;
  font-size: 0.925rem;
  color: var(--clr-text);
  position: relative;
}
.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar__links a:hover,
.navbar__links a.active { color: var(--clr-primary); }
.navbar__links a:hover::after,
.navbar__links a.active::after { width: 100%; }
.navbar__cta { margin-left: var(--space-sm); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1100;
}
.hamburger span {
  display: block;
  height: 3px;
  background: var(--clr-primary-dark);
  border-radius: 3px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: var(--clr-white);
  z-index: 1050;
  padding: 5rem var(--space-xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  transition: var(--transition-slow);
  box-shadow: var(--shadow-xl);
}
.mobile-nav.active { right: 0; }
.mobile-nav a {
  font-family: var(--ff-heading);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--clr-text);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--clr-border);
}
.mobile-nav a:hover { color: var(--clr-primary); }
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 100%);
  overflow: hidden;
  padding-top: 80px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,67,50,0.85), rgba(45,106,79,0.7));
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: var(--clr-white);
  padding: var(--space-3xl) 0;
}
.hero__label {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(4px);
}
.hero__title {
  color: var(--clr-white);
  margin-bottom: var(--space-lg);
  font-weight: 800;
}
.hero__title em {
  font-style: normal;
  color: var(--clr-primary-pale);
}
.hero__desc {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-xl);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.hero__shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero__shapes span {
  position: absolute;
  border-radius: var(--radius-full);
  opacity: 0.08;
  background: var(--clr-white);
}
.hero__shapes span:nth-child(1) { width: 400px; height: 400px; top: -100px; right: -80px; }
.hero__shapes span:nth-child(2) { width: 250px; height: 250px; bottom: -60px; left: -40px; }
.hero__shapes span:nth-child(3) { width: 150px; height: 150px; top: 40%; right: 20%; }

/* Page header (inner pages) */
.page-header {
  background: linear-gradient(135deg, var(--clr-primary-dark), var(--clr-primary));
  padding: 8rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header h1 { color: var(--clr-white); margin-bottom: var(--space-sm); }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.page-header .breadcrumb {
  margin-top: var(--space-md);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}
.page-header .breadcrumb a { color: var(--clr-primary-pale); }
.page-header .breadcrumb a:hover { color: var(--clr-white); }

/* ---------- Cards ---------- */
.card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--clr-border);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card__body {
  padding: var(--space-lg) var(--space-xl);
}
.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--clr-primary-pale);
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
}
.card__title {
  margin-bottom: var(--space-sm);
}
.card__text {
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}
.card__link {
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--clr-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}
.card__link:hover { gap: var(--space-sm); color: var(--clr-primary-dark); }

/* Initiative card (icon-based) */
.initiative-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
}
.initiative-card .card__icon {
  margin: 0 auto var(--space-md);
  width: 64px;
  height: 64px;
  font-size: 1.6rem;
}

/* ---------- Grid Layouts ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); }

/* Centered variant — centers incomplete last row */
.grid-3--center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
}
.grid-3--center > * {
  width: calc((100% - 2 * var(--space-xl)) / 3);
  min-width: 280px;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}
.stat {
  text-align: center;
  padding: var(--space-xl);
}
.stat__number {
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--clr-primary-pale);
  line-height: 1;
  margin-bottom: var(--space-sm);
}
.stat__label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--clr-white); margin-bottom: var(--space-md); }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto var(--space-xl); font-size: 1.1rem; }
.cta-banner__actions { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }

/* ---------- Testimonial Cards ---------- */
.testimonial-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
  transition: var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.testimonial-card__quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--clr-text-light);
  margin-bottom: var(--space-lg);
  position: relative;
  padding-left: var(--space-lg);
  border-left: 3px solid var(--clr-primary-light);
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.testimonial-card__avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--clr-primary-pale);
}
.testimonial-card__name {
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 1rem;
}
.testimonial-card__role {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}

/* ---------- Product Card ---------- */
.product-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-card__img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.product-card__body {
  padding: var(--space-lg) var(--space-xl);
}
.product-card__category {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--clr-accent);
  margin-bottom: var(--space-xs);
}
.product-card__title {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}
.product-card__price {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--clr-primary);
  margin-bottom: var(--space-md);
}
.product-card__actions {
  display: flex;
  gap: var(--space-sm);
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: var(--space-lg);
}
.form-group label {
  display: block;
  font-family: var(--ff-heading);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  color: var(--clr-text);
}
.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  background: var(--clr-white);
  font-size: 0.95rem;
  transition: var(--transition);
  color: var(--clr-text);
}
.form-control:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}
.form-control.error { border-color: var(--clr-danger); }
.error-message {
  font-size: 0.82rem;
  color: var(--clr-danger);
  margin-top: var(--space-xs);
  display: none;
}
.form-control.error + .error-message { display: block; }
textarea.form-control { min-height: 140px; resize: vertical; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,67,50,0.7), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__overlay span {
  color: var(--clr-white);
  font-family: var(--ff-heading);
  font-weight: 600;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-md);
}
.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  color: var(--clr-white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.lightbox__close:hover { background: rgba(255,255,255,0.3); }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--clr-primary-pale);
}
.timeline__item {
  position: relative;
  margin-bottom: var(--space-2xl);
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: var(--clr-primary);
  border: 3px solid var(--clr-primary-pale);
}
.timeline__title { margin-bottom: var(--space-sm); }

/* ---------- Two-Col Layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
.two-col--reverse .two-col__content { order: -1; }
.two-col__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.two-col__img img { width: 100%; height: 100%; object-fit: cover; }
.two-col__content h2 { margin-bottom: var(--space-md); }

/* ---------- Feature List ---------- */
.feature-list { display: flex; flex-direction: column; gap: var(--space-md); }
.feature-list__item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}
.feature-list__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  background: var(--clr-primary-pale);
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.feature-list__text h4 { margin-bottom: var(--space-xs); }
.feature-list__text p { font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Map ---------- */
.map-placeholder {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--clr-border);
}
.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--clr-primary-dark);
  color: rgba(255,255,255,0.8);
  padding: var(--space-4xl) 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
}
.footer__brand {
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--clr-white);
  margin-bottom: var(--space-md);
}
.footer__brand span { color: var(--clr-accent-light); }
.footer__desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-lg);
}
.footer__social {
  display: flex;
  gap: var(--space-sm);
}
.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  color: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.footer__social a:hover {
  background: var(--clr-primary-light);
  transform: translateY(-2px);
}
.footer h4 { color: var(--clr-white); font-size: 1rem; margin-bottom: var(--space-lg); }
.footer__links { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}
.footer__links a:hover { color: var(--clr-white); }
.footer__contact-item {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}
.footer__contact-item i { color: var(--clr-primary-light); min-width: 20px; margin-top: 3px; }
.footer__bottom {
  margin-top: var(--space-3xl);
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--clr-primary);
  color: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
  cursor: pointer;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--clr-primary-dark); transform: translateY(-3px); }

/* ---------- Story Specific Custom Styles ---------- */
.story-media-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.story-media-group__main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/10;
}
.story-media-group__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.story-media-group__main:hover img {
  transform: scale(1.03);
}
.story-media-group__thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.story-media-group__thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
}
.story-media-group__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.story-media-group__thumb:hover img {
  transform: scale(1.05);
}
.story-media-group__caption {
  font-size: 0.825rem;
  color: var(--clr-text-muted);
  margin-top: var(--space-xs);
  text-align: center;
  font-style: italic;
  font-weight: 500;
}
.story-blockquote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--clr-primary-dark);
  border-left: 4px solid var(--clr-accent);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  font-family: var(--ff-heading);
  font-weight: 500;
  line-height: 1.6;
}
.contact-card {
    padding: var(--space-2xl);
}

.contact-card__header {
    margin-bottom: 2rem;
}

.contact-card__header h2 {
    margin-bottom: .75rem;
}

.contact-card__header p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group label span {
    color: #dc2626;
}

.form-control {
    width: 100%;
}

.contact-btn {
    width: 100%;
    justify-content: center;
}

#form-status {
    margin-top: .5rem;
}

.success-message{
    background:#dcfce7;
    color:#166534;
    padding:12px;
    border-radius:8px;
    margin-bottom:15px;
}

.error-message-box{
    background:#fee2e2;
    color:#991b1b;
    padding:12px;
    border-radius:8px;
    margin-bottom:15px;
}
@media (min-width: 769px) {
  .two-col--image-left .two-col__img { order: -1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1300px) {
  .navbar__logo {
    font-size: 1.2rem;
    gap: var(--space-xs);
  }
  .navbar__logo-img {
    height: 44px;
    width: 44px;
  }
  .navbar__links {
    gap: 1rem;
  }
  .navbar__links a {
    font-size: 0.85rem;
  }
  .navbar__cta {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    margin-left: 0.5rem;
  }
}

@media (max-width: 1200px) {
  .navbar__links, .navbar__cta { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .two-col { gap: var(--space-xl); }
}

@media (max-width: 768px) {
  .section { padding: var(--space-3xl) 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-3--center > * { width: 100%; min-width: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .two-col--reverse .two-col__content { order: 0; }
  .two-col__img { max-height: 350px; }
  .two-col__img.story-media-group { max-height: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__content { padding: var(--space-xl) 0; }
  .page-header { padding: 6.5rem 0 2.5rem; }
}

@media (max-width: 480px) {
  .container { width: 92%; }
  .section { padding: var(--space-2xl) 0; }
  .hero { min-height: auto; padding: 6rem 0 3rem; }
  .hero__actions { flex-direction: column; }
  .stats { grid-template-columns: 1fr; }
  .btn { padding: 0.75rem 1.6rem; font-size: 0.9rem; }
}
