/* ==========================================================================
   Shivaji Happy Club Foundation - Master Design System & Stylesheet
   Theme: Trustworthy Indian NGO (Deep Blue, Saffron/Warm Orange, White, Green)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Brand Color Palette */
  --blue-900: #0A192F;
  --blue-800: #0F2C59;
  --blue-700: #1B365D;
  --blue-600: #1E3A8A;
  --blue-500: #2563EB;
  --blue-100: #E0E7FF;
  --blue-50: #EEF2FF;

  --saffron-900: #9A3412;
  --saffron-700: #C2410C;
  --saffron-600: #EA580C;
  --saffron-500: #F97316;
  --saffron-400: #FB923C;
  --saffron-100: #FFEDD5;
  --saffron-50: #FFF7ED;

  --green-700: #15803D;
  --green-600: #16A34A;
  --green-100: #DCFCE7;
  --green-50: #F0FDF4;

  --neutral-900: #0F172A;
  --neutral-800: #1E293B;
  --neutral-700: #334155;
  --neutral-600: #475569;
  --neutral-500: #64748B;
  --neutral-400: #94A3B8;
  --neutral-300: #CBD5E1;
  --neutral-200: #E2E8F0;
  --neutral-100: #F1F5F9;
  --neutral-50: #F8FAFC;
  --white: #FFFFFF;

  /* Semantic Variables */
  --primary-color: var(--blue-800);
  --primary-hover: var(--blue-900);
  --accent-saffron: var(--saffron-600);
  --accent-saffron-hover: var(--saffron-700);
  --accent-green: var(--green-600);
  
  --bg-page: #FAF9F6;
  --bg-card: #FFFFFF;
  --bg-subtle: #F4F6F9;
  
  --text-main: var(--neutral-900);
  --text-muted: var(--neutral-600);
  --text-light: var(--neutral-400);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 44, 89, 0.08), 0 1px 2px rgba(15, 44, 89, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 44, 89, 0.08), 0 2px 4px -2px rgba(15, 44, 89, 0.06);
  --shadow-lg: 0 10px 20px -3px rgba(15, 44, 89, 0.1), 0 4px 6px -4px rgba(15, 44, 89, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(15, 44, 89, 0.12), 0 8px 10px -6px rgba(15, 44, 89, 0.08);

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --border-subtle: 1px solid var(--neutral-200);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  /* Container */
  --container-max: 1240px;
}

/* ==========================================================================
   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-body);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.85rem, 3vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }

p {
  color: var(--text-muted);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -50px;
  left: 10px;
  background: var(--accent-saffron);
  color: var(--white);
  padding: 8px 16px;
  z-index: 99999;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 10px;
}

/* ==========================================================================
   Layout Containers & Utilities
   ========================================================================== */

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

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
}

.section-sm {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

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

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

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-saffron);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  background: var(--saffron-50);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--saffron-100);
}

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

.section-lead {
  font-size: 1.125rem;
  color: var(--neutral-600);
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

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

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.items-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

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

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--saffron-500) 0%, var(--saffron-600) 100%);
  color: var(--white);
  border: 1px solid var(--saffron-700);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--saffron-600) 0%, var(--saffron-700) 100%);
  box-shadow: 0 6px 14px rgba(234, 88, 12, 0.35);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-secondary {
  background: var(--blue-800);
  color: var(--white);
  border: 1px solid var(--blue-900);
}
.btn-secondary:hover {
  background: var(--blue-900);
  box-shadow: 0 6px 14px rgba(15, 44, 89, 0.35);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}
.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.8);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary-color);
  font-weight: 700;
}
.btn-white:hover {
  background: #F8FAFC;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.125rem;
}

/* ==========================================================================
   Editable Placeholder Tags & Trust Compliance Styling
   ========================================================================== */

/* Distinct styling for editable placeholders so administrators can identify them clearly */
.placeholder-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(234, 88, 12, 0.08);
  border: 1px dashed rgba(234, 88, 12, 0.5);
  color: var(--saffron-700);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95em;
  transition: all var(--transition-fast);
}


.placeholder-tag:hover {
  background: rgba(234, 88, 12, 0.15);
  border-color: var(--saffron-600);
}

.placeholder-pill {
  font-size: 0.8rem;
  color: var(--neutral-500);
  background: var(--neutral-100);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  margin-left: 0.35rem;
  font-weight: 500;
}

/* Information & Trust Ribbons */
.trust-ribbon {
  background: linear-gradient(90deg, #0F2C59 0%, #173B6F 50%, #0F2C59 100%);
  color: var(--white);
  padding: 1rem 0;
  border-bottom: 2px solid var(--saffron-500);
  font-size: 0.9rem;
}

.trust-ribbon-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
}

.trust-item svg {
  color: var(--saffron-400);
  flex-shrink: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}
.breadcrumb a {
  color: var(--white);
  opacity: 0.9;
}
.breadcrumb a:hover {
  color: var(--saffron-400);
  opacity: 1;
}

/* Page Banner */
.page-hero {
  background: linear-gradient(135deg, #0A192F 0%, #0F2C59 60%, #1E3A8A 100%);
  color: var(--white);
  padding: 5.5rem 0 4rem 0;
  position: relative;
  border-bottom: 4px solid var(--saffron-500);
}

.page-hero-title {
  color: var(--white);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  margin-bottom: 0.75rem;
}

.page-hero-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 680px;
}

/* Animation utilities */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
  animation: fadeIn 0.6s ease forwards;
}
