/* ==========================================================================
   Green Rudraksha Charitable Trust (GRC Trust) - Core Stylesheet
   Designed with pure semantic CSS3, high performance, and zero bloat.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

:root {
  /* Brand Palette */
  --primary-color: #DD183B;
  --primary-hover: #CC1939;
  --primary-rgb: 221, 24, 59;
  --primary-light: #FFF0F2;
  
  /* Neutral Palette */
  --heading-color: #0F172A;
  --text-color: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  /* Surfaces & Backgrounds */
  --bg-color: #FFFFFF;
  --bg-light: #FFEDE6;
  --bg-subtle: #F8FAFC;
  --bg-card: #FFFFFF;
  --card-border: #E2E8F0;
  --card-border-accent: #FFD1BF;
  --footer-bg: #140609;
  --footer-text: #E2E8F0;
  --dark-surface: #1E293B;

  /* Accent & Action */
  --whatsapp-color: #25D366;
  --whatsapp-hover: #1EBE5B;
  --youtube-color: #FF0000;
  --success-color: #16A34A;
  --warning-color: #F59E0B;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Montserrat', var(--font-main);
  --font-devanagari: 'Noto Sans Devanagari', var(--font-main);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-primary: 0 8px 24px rgba(221, 24, 59, 0.25);

  /* Transitions & Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Container width */
  --container-max: 1200px;
}

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

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

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

input, button, textarea, select {
  font: inherit;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

ul, ol {
  list-style: none;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }
h6 { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 860px;
}

/* ==========================================================================
   Top Notification / Announcement Bar
   ========================================================================== */
.top-bar {
  background-color: var(--heading-color);
  color: #CBD5E1;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-bar-contact a {
  color: #E2E8F0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.top-bar-contact a:hover {
  color: var(--primary-light);
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-bar-social a {
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.top-bar-social a:hover {
  background: var(--primary-color);
  color: #FFFFFF;
}

/* ==========================================================================
   Header & Main Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #FFFFFF;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
}

.navbar,
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: height var(--transition-normal);
}

.site-header.scrolled .navbar,
.site-header.scrolled .header-container {
  height: 64px;
}

.brand-logo,
.site-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1;
  text-decoration: none;
}

.brand-logo img,
.site-brand-logo img {
  height: 44px !important;
  max-height: 44px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain;
  display: block;
  transition: height var(--transition-normal), max-height var(--transition-normal);
}

.site-header.scrolled .brand-logo img,
.site-header.scrolled .site-brand-logo img {
  height: 38px !important;
  max-height: 38px !important;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.nav-link,
.site-nav-link {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--heading-color);
  position: relative;
  padding: 0.5rem 0.15rem;
  white-space: nowrap !important;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
  text-decoration: none;
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active,
.site-nav-link:hover, .site-nav-link.active {
  color: var(--primary-color);
}

.nav-link::after,
.site-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after,
.site-nav-link:hover::after, .site-nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--heading-color);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* ==========================================================================
   Standard Buttons (Unified 2-Type Button Architecture: Royal Navy #1E40AF)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1.2;
}

/* TYPE 1: FILLED COLOR BUTTON (SOLID ROYAL NAVY) */
.btn-primary,
.btn-filled {
  background-color: #1E40AF !important;
  color: #FFFFFF !important;
  border: 2px solid #1E40AF !important;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.3) !important;
}

.btn-primary:hover,
.btn-filled:hover {
  background-color: #1E3A8A !important;
  border-color: #1E3A8A !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.45) !important;
  transform: translateY(-2px);
}

/* TYPE 2: BORDER BUTTON (ROYAL NAVY OUTLINE ON LIGHT SURFACES) */
.btn-outline-primary,
.btn-border {
  background-color: transparent !important;
  color: #1E40AF !important;
  border: 2px solid #1E40AF !important;
}

.btn-outline-primary:hover,
.btn-border:hover {
  background-color: #1E40AF !important;
  color: #FFFFFF !important;
  border-color: #1E40AF !important;
  transform: translateY(-2px);
}

/* TYPE 2: BORDER BUTTON ON DARK / HERO BANNERS */
.btn-outline {
  background-color: transparent !important;
  color: #FFFFFF !important;
  border: 2px solid #FFFFFF !important;
}

.btn-outline:hover {
  background-color: #FFFFFF !important;
  color: #1E40AF !important;
  border-color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* STRICT EXCLUSIONS: PROTECTED BRAND BUTTONS (DO NOT CHANGE) */
.btn-whatsapp {
  background-color: var(--whatsapp-color) !important;
  color: #FFFFFF !important;
  border: 2px solid var(--whatsapp-color) !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35) !important;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover) !important;
  border-color: var(--whatsapp-hover) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

.btn-youtube {
  background-color: var(--youtube-color) !important;
  color: #FFFFFF !important;
  border: 2px solid var(--youtube-color) !important;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.35) !important;
}

.btn-youtube:hover {
  background-color: #CC0000 !important;
  border-color: #CC0000 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   Page Headers / Subpage Banners
   ========================================================================== */
.page-banner {
  position: relative;
  padding: 5rem 0 4rem;
  background-color: var(--heading-color);
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(20, 6, 9, 0.92) 100%);
}

.page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-banner-tag {
  color: var(--card-border-accent);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.page-banner-title {
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.page-banner-desc {
  font-size: 1.15rem;
  color: #E2E8F0;
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #94A3B8;
  margin-top: 1.5rem;
}

.breadcrumb a {
  color: #CBD5E1;
}

.breadcrumb a:hover {
  color: #FFFFFF;
}

.breadcrumb-separator {
  color: #64748B;
}

/* ==========================================================================
   Global Section Structure
   ========================================================================== */
.section {
  padding: 5rem 0;
}

.section-bg-light {
  background-color: var(--bg-light);
}

.section-bg-subtle {
  background-color: var(--bg-subtle);
}

.section-bg-dark {
  background-color: var(--heading-color);
  color: #FFFFFF;
}

.section-bg-dark h1,
.section-bg-dark h2,
.section-bg-dark h3,
.section-bg-dark h4 {
  color: #FFFFFF;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--footer-bg);
  color: #CBD5E1;
  padding: 5rem 0 2rem;
  font-size: 0.95rem;
  border-top: 4px solid var(--primary-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand img {
  height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  max-width: 150px !important;
  object-fit: contain;
  margin-bottom: 1.25rem;
  background: #FFFFFF;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  display: inline-block;
  transition: transform var(--transition-normal);
}

.footer-brand img:hover {
  transform: translateY(-2px);
}

.footer-about {
  line-height: 1.7;
  color: #94A3B8;
  margin-bottom: 1.5rem;
}

.footer-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  color: #E2E8F0;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94A3B8;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: #FFFFFF;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #94A3B8;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--primary-color);
}

.footer-contact-item a {
  color: #CBD5E1;
}

.footer-contact-item a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #64748B;
}

.footer-bottom a {
  color: #94A3B8;
}

.footer-bottom a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   Back to top floating button
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  background-color: var(--primary-color);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  color: #FFFFFF;
}
