/* ============================================
   JGVT DHANBAD - Main Stylesheet
   Google Ad Grants Compliant Website
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --green-dark:   #1B4332;
  --green-mid:    #2D6A4F;
  --green-light:  #52B788;
  --green-pale:   #D8F3DC;
  --saffron:      #E8891A;
  --saffron-light:#FFF3E0;
  --charcoal:     #1A1A2E;
  --text-body:    #3D3D3D;
  --text-muted:   #6B7280;
  --bg-light:     #F9FAFB;
  --white:        #FFFFFF;
  --border:       #E5E7EB;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.10);
  --shadow-md:    0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:    0 10px 40px rgba(0,0,0,.15);
  --radius:       8px;
  --radius-lg:    16px;
  --font-display: 'Merriweather', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-dark); }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--green-dark); line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin-bottom: 1rem; }

.section-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: .5rem;
  display: block;
}

.section-title { margin-bottom: 1rem; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 620px; }

/* ---- Layout ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-light); }
.section-dark { background: var(--green-dark); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .section-subtitle { color: rgba(255,255,255,.75); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  font-family: var(--font-body);
  text-align: center;
}
.btn-primary { background: var(--green-mid); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-saffron { background: var(--saffron); color: var(--white); }
.btn-saffron:hover { background: #c97316; color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--green-dark); }
.btn-sm { padding: .5rem 1.25rem; font-size: .875rem; }

/* ---- Top Bar ---- */
.top-bar {
  background: var(--green-dark);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  padding: .45rem 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.top-bar a { color: rgba(255,255,255,.85); }
.top-bar a:hover { color: var(--white); }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 1.25rem; }

/* ---- Header / Navbar ---- */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; gap: 2rem; }
.logo { display: flex; align-items: center; gap: .85rem; text-decoration: none; }
.logo-icon {
  width: 52px; height: 52px;
  background: var(--green-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 30px; height: 30px; fill: var(--white); }
.logo-text-wrap { line-height: 1.2; }
.logo-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--green-dark); display: block; }
.logo-tagline { font-size: .7rem; color: var(--text-muted); display: block; letter-spacing: .03em; }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a {
  color: var(--charcoal);
  font-weight: 500;
  font-size: .9rem;
  padding: .5rem .8rem;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active { background: var(--green-pale); color: var(--green-dark); }
.nav-donate { margin-left: .5rem; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: .25rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--charcoal); margin: 5px 0; border-radius: 2px; transition: all .3s; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 60%, #40916C 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  padding: .35rem 1rem;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .05em;
  margin-bottom: 1.5rem;
  color: var(--green-pale);
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.85); margin-bottom: 2rem; max-width: 480px; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stat { border-left: 3px solid var(--green-light); padding-left: 1rem; }
.hero-stat strong { display: block; font-size: 1.8rem; font-weight: 700; color: var(--white); font-family: var(--font-display); }
.hero-stat span { font-size: .8rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .05em; }
.hero-visual {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.hero-visual-icon { font-size: 5rem; margin-bottom: 1rem; }
.hero-visual h3 { color: var(--white); margin-bottom: .5rem; }
.hero-visual p { color: rgba(255,255,255,.8); font-size: .9rem; margin: 0; }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: var(--white);
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 600px; margin: 0 auto 1.5rem; }
.breadcrumb { display: flex; justify-content: center; align-items: center; gap: .5rem; font-size: .85rem; color: rgba(255,255,255,.7); }
.breadcrumb a { color: var(--green-pale); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { opacity: .5; }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-body { padding: 1.5rem; }
.card-icon { width: 56px; height: 56px; border-radius: var(--radius); background: var(--green-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.6rem; }
.card-icon-saffron { background: var(--saffron-light); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* ---- Impact Counter ---- */
.impact-bar { background: var(--green-dark); padding: 3.5rem 0; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.impact-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; color: var(--green-light); display: block; }
.impact-label { font-size: .85rem; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .07em; }

/* ---- Mission Strip ---- */
.mission-strip { background: var(--saffron); color: var(--white); padding: 2.5rem 0; text-align: center; }
.mission-strip h2 { color: var(--white); margin-bottom: .5rem; }
.mission-strip p { color: rgba(255,255,255,.9); max-width: 650px; margin: 0 auto 1.5rem; }

/* ---- Team Cards ---- */
.team-card { text-align: center; }
.team-avatar {
  width: 100px; height: 100px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-light));
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
}
.team-card .card-body { padding: 1.25rem 1.25rem 1.5rem; }
.team-card h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.team-role { font-size: .8rem; color: var(--saffron); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: .75rem; }
.team-card p { font-size: .875rem; color: var(--text-muted); margin: 0; }

/* ---- News Cards ---- */
.news-card { display: flex; flex-direction: column; }
.news-card-img { height: 200px; background: linear-gradient(135deg, var(--green-pale), var(--green-light)); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.news-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: .78rem; color: var(--text-muted); margin-bottom: .5rem; }
.news-card h3 { margin-bottom: .75rem; font-size: 1.05rem; }
.news-card p { color: var(--text-muted); font-size: .9rem; flex: 1; margin-bottom: 1rem; }
.news-tag { display: inline-block; background: var(--green-pale); color: var(--green-dark); font-size: .72rem; font-weight: 600; padding: .2rem .65rem; border-radius: 100px; margin-bottom: .75rem; }

/* ---- Gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--green-pale);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: .5rem;
  font-size: 2.5rem;
  transition: transform .25s;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item-label { font-size: .8rem; font-weight: 600; color: var(--green-dark); font-family: var(--font-body); }
.gallery-item:nth-child(4n+1) { background: var(--green-pale); }
.gallery-item:nth-child(4n+2) { background: var(--saffron-light); }
.gallery-item:nth-child(4n+3) { background: #E8F4FD; }
.gallery-item:nth-child(4n+4) { background: #FDE8E8; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-info-icon { width: 44px; height: 44px; background: var(--green-pale); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-form { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: .4rem; color: var(--charcoal); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body); font-size: .95rem; color: var(--charcoal);
  transition: border-color .2s;
  background: var(--bg-light);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--green-mid); background: var(--white);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---- Donation Banner ---- */
.donate-banner { background: linear-gradient(135deg, var(--saffron) 0%, #c97316 100%); color: var(--white); padding: 4rem 0; text-align: center; }
.donate-banner h2 { color: var(--white); margin-bottom: 1rem; }
.donate-banner p { color: rgba(255,255,255,.9); max-width: 550px; margin: 0 auto 2rem; }
.donate-amounts { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.donate-amt {
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.4);
  color: var(--white);
  padding: .5rem 1.25rem;
  border-radius: 100px;
  font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: background .2s;
}
.donate-amt:hover { background: rgba(255,255,255,.35); }

/* ---- Footer ---- */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.8); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: .9rem; margin-top: 1rem; color: rgba(255,255,255,.65); line-height: 1.7; }
.footer-logo { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-logo-icon { width: 44px; height: 44px; background: var(--green-mid); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-logo-icon svg { width: 24px; height: 24px; fill: var(--white); }
.footer-logo-name { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--white); }
.footer-col h4 { color: var(--white); margin-bottom: 1rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: .9rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--green-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ---- Accessibility ---- */
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
.skip-link { position: absolute; top: -100px; left: 1rem; background: var(--saffron); color: var(--white); padding: .5rem 1rem; border-radius: var(--radius); font-weight: 600; z-index: 200; }
.skip-link:focus { top: 1rem; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ---- Mobile Nav ---- */
.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  background: var(--white);
  z-index: 200;
  padding: 1.5rem;
  flex-direction: column;
  gap: .5rem;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.mobile-nav a { display: block; padding: .85rem 1rem; font-weight: 500; color: var(--charcoal); border-radius: var(--radius); font-size: 1.05rem; }
.mobile-nav a:hover { background: var(--green-pale); color: var(--green-dark); }
.close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--charcoal); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid-2, .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4, .impact-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 4rem 0 3rem; }
  .hero-visual { display: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links, .nav-donate { display: none; }
  .hamburger { display: block; }
  .grid-3, .grid-4, .impact-grid, .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .hero-stats { gap: 1.25rem; }
  .donate-amounts { gap: .6rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .top-bar .container { justify-content: center; }
}

/* ---- Print ---- */
@media print {
  .site-header, .site-footer, .donate-banner, .mission-strip { display: none; }
}
