/* Rewa Khan Welfare — simplified stylesheet */

:root {
  --gold: #720e9e; 
  --green: #fbb320;
  --green-soft: #5e714559;
  --dark: #444444;
  --text: #333333;
  --muted: #7a7a7a;
  --bg-soft: #f0f0f0;
  --bg-softer: #fafafa;
  --max-width: 1300px;
  --font-head: "Playfair", Georgia, serif;
  --font-body: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  background: #fff;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 50px; width="600"; height="400";
}

h1, h2, h3 {
  font-family: var(--font-head);
  margin: 0 0 16px;
  color: #000;
  font-weight: 600;
}

p { margin: 0 0 16px; }

.kicker {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  border: 1px solid var(--green);
  font-weight: 500;
  font-size: 16px;
  background: var(--green);
  color: #fff;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.btn:hover { background: #fff; color: var(--green); }

.btn-outline {
  background: #fff;
  color: var(--green);
}

.btn-outline:hover { background: var(--green); color: #fff; }

.btn svg { width: 16px; height: 16px; fill: currentColor; }

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo img { height: 140px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-weight: 500;
  font-size: 18px;
  color: #fff;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active { color: var(--gold); }

.main-nav a.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.header-call { color: var(--green); background: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* on inner pages (no photo hero), header sits on the green banner already */

/* ---------- Hero (home) ---------- */

.hero {
  background: linear-gradient(rgba(0,0,0,0.79), rgba(0,0,0,0.59)), url("../images/hero-bg.jpg") center/cover no-repeat;
  padding: 250px 0 120px;
  color: #fff;
  text-align: center;
}

.hero .kicker { color: var(--gold); border-color: var(--gold); }

.hero h1 {
  color: #fff;
  font-size: 60px;
  margin-bottom: 8px;
}

.hero .lede {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  color: #fff;
}

/* Rotating headline — replicates Elementor Pro's Animated Headline
   widget, style "rotate", animation type "wave". */

.rotate-text {
  display: inline-block;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: top;
  text-align: left;
  transition: width 0.5s;
}

.rotate-word {
  display: inline-block;
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  white-space: nowrap;
}

.rotate-word.is-active { position: relative; }

.rotate-letter {
  display: inline-block;
  opacity: 0;
  transform: scale(0);
}

.rotate-letter.letter-in { animation: rkw-wave-up 0.6s forwards; }
.rotate-letter.letter-out { animation: rkw-wave-down 0.6s forwards; }

@keyframes rkw-wave-up {
  0%   { opacity: 0; transform: scale(0); }
  60%  { opacity: 1; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes rkw-wave-down {
  0%   { opacity: 1; transform: scale(1); }
  60%  { opacity: 0; transform: scale(0); }
  100% { opacity: 0; transform: scale(0); }
}

/* ---------- Page banner (inner pages) ---------- */

.page-banner {
  background: var(--green);
  padding: 150px 0 40px;
  text-align: center;
}

.page-banner h1 { color: #fff; font-size: 45px; margin: 0; }

/* ---------- Generic sections ---------- */

.section { padding: 50px 0; }
.section-soft { background: var(--bg-soft); }
.section-softer { background: var(--bg-softer); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.two-col img { border-radius: 4px; }

/* ---------- Founder / Vision-Mission style blocks ---------- */

.founder-photo img { width: 85%; margin: 0 auto; }

/* ---------- Services (What We Do) ---------- */

.services-head { text-align: center; margin-bottom: 30px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-card {
  border: 2px solid var(--green-soft);
  border-radius: 4px;
  padding: 40px 30px;
  text-align: center;
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg { width: 26px; height: 26px; fill: #fff; }

.service-card h3 { font-family: var(--font-body); font-size: 20px; font-weight: 600; }
.service-card p { font-size: 18px; margin: 0; }

/* ---------- Journey / gallery ---------- */

.journey-text { max-width: 80%; margin: 0 auto 30px; text-align: center; font-size: 18px; }

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

.gallery-grid a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.gallery-cta { text-align: right; margin-top: 20px; }

/* ---------- Philosophy ---------- */

.philosophy {
  background: var(--bg-softer);
}

.philosophy .two-col { grid-template-columns: 1.2fr 0.8fr; }

/* ---------- Our Work gallery filters ---------- */

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.gallery-filters button {
  background: none;
  border: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 0;
  cursor: pointer;
  color: #000;
  border-bottom: 2px solid transparent;
}

.gallery-filters button.active,
.gallery-filters button:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.gallery-grid a.hidden { display: none; }

/* ---------- Vision & Mission ---------- */

.vm-block:not(:last-child) { margin-bottom: 20px; }

/* ---------- Core team ---------- */

.team-intro { text-align: center; max-width: 800px; margin: 0 auto; }
.team-intro p { font-size: 18px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  margin-top: 20px;
}

.team-card { text-align: center; }
.team-card img { border-radius: 4px; margin-bottom: 16px; }
.team-card h3 { font-size: 22px; margin-bottom: 4px; }
.team-card p { color: var(--dark); margin: 0; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 30px;
}

.lightbox.open { display: flex; }

.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 4px; }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 32px;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 1;
}

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

.site-footer { background: var(--green); color: #fff; }

.footer-top {
  padding: 20px 10px;
  text-align: center;
  background-color: #ffffff;
}

.footer-logo { width: 100px; height: auto; margin: 0 auto 10px; background: #fff; border-radius: 4px; }

.footer-top p { font-size: 18px; color: var(--dark); }

.footer-contact {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dark);
  font-size: 18px;
}

.footer-contact svg { width: 14px; height: 14px; fill: var(--green); }

.footer-bottom { background: var(--green); border-top: 1px solid rgba(255,255,255,0.15); }

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 10px;
  flex-wrap: wrap;
}

.footer-bottom-inner p { margin: 0; font-size: 18px; text-transform: capitalize; }

.social-icons { display: flex; gap: 8px; }

.social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icons svg { width: 16px; height: 16px; fill: var(--green); }

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

@media (max-width: 900px) {
  .services-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col, .philosophy .two-col { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .hero { padding: 160px 0 50px; }
  .hero h1 { font-size: 34px; }
  .page-banner { padding: 120px 0 30px; }
  .page-banner h1 { font-size: 30px; }
  .main-nav {
    position: absolute;
    top: 100%;
    right: 20px;
    background: var(--green);
    border-radius: 8px;
    padding: 10px 0;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 10px 24px; }
  .nav-toggle { display: flex; }
  .header-call { display: none; }
  .services-grid, .team-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .journey-text { max-width: 100%; }
}
