/* ========================================
   11341219 CANADA SOCIETY WEBSITE
   Design Theme: Spiritual Service & Community Hope
   ======================================== */

/* === CSS VARIABLES === */
:root {
  /* Primary Colors - Sikh Tradition */
  --saffron: #FF9933;
  --navy-blue: #000080;
  --white: #FFFFFF;
  --gold: #DAA520;
  --warm-beige: #F5F5DC;

  /* Secondary Colors */
  --saffron-light: #FFB366;
  --saffron-dark: #E68A2E;
  --navy-light: #1a1a99;
  --navy-dark: #000066;

  /* Neutral Colors */
  --text-dark: #2C2C2C;
  --text-medium: #666666;
  --text-light: #999999;
  --bg-light: #FAFAFA;
  --bg-lighter: #FCFCFC;
  --border-color: #E0E0E0;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--saffron) 0%, var(--gold) 100%);
  --gradient-hero: linear-gradient(135deg, rgba(255, 153, 51, 0.9) 0%, rgba(218, 165, 32, 0.9) 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);

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

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* === GLOBAL RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-medium);
  font-size: 1.1rem;
}

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

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

/* === UTILITY CLASSES === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

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

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

.text-saffron {
  color: var(--saffron);
}

.text-navy {
  color: var(--navy-blue);
}

.text-gold {
  color: var(--gold);
}

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

.bg-navy {
  background-color: var(--navy-blue);
}

.mt-1 {
  margin-top: var(--spacing-xs);
}

.mt-2 {
  margin-top: var(--spacing-sm);
}

.mt-3 {
  margin-top: var(--spacing-md);
}

.mt-4 {
  margin-top: var(--spacing-lg);
}

.mb-1 {
  margin-bottom: var(--spacing-xs);
}

.mb-2 {
  margin-bottom: var(--spacing-sm);
}

.mb-3 {
  margin-bottom: var(--spacing-md);
}

.mb-4 {
  margin-bottom: var(--spacing-lg);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: var(--saffron);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--navy-blue);
  color: var(--white);
  border-color: var(--navy-blue);
}

.btn-secondary:hover {
  background-color: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--navy-blue);
  border-color: var(--navy-blue);
}

.btn-outline:hover {
  background-color: var(--navy-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

/* === HEADER === */
.top-bar {
  background-color: var(--navy-blue);
  color: var(--white);
  padding: 0.75rem 0;
  font-size: 0.9rem;
}

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

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
}

.top-bar-item i {
  color: var(--saffron);
}

.header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  width: 70px;
  height: 70px;
}

.logo-text h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: var(--navy-blue);
  font-weight: 700;
}

.logo-text p {
  font-size: 0.85rem;
  color: var(--saffron);
  margin-bottom: 0;
  font-weight: 600;
}

/* === NAVIGATION === */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.nav-links a {
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--saffron);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.btn-donate {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.btn-donate:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--navy-blue);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: var(--spacing-md);
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.4rem;
  color: var(--warm-beige);
  margin-bottom: var(--spacing-lg);
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === CARDS === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-icon {
  font-size: 3rem;
  color: var(--saffron);
  margin-bottom: var(--spacing-sm);
  display: block;
}

.card-content {
  padding: var(--spacing-md);
}

.card-content h3 {
  color: var(--navy-blue);
  margin-bottom: var(--spacing-sm);
}

.card-content p {
  color: var(--text-medium);
  margin-bottom: var(--spacing-sm);
  font-size: 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--saffron);
  font-weight: 600;
  transition: gap var(--transition-fast);
}

.card-link:hover {
  gap: 0.75rem;
}

/* === SECTION HEADERS === */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-header h2 {
  font-size: 2.75rem;
  color: var(--navy-blue);
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-medium);
  max-width: 700px;
  margin: var(--spacing-md) auto 0;
}

/* === STATS SECTION === */
.stats {
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--spacing-xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.stat-item p {
  font-size: 1.1rem;
  color: var(--warm-beige);
  margin-bottom: 0;
}

/* === GALLERY === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-text {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  padding: var(--spacing-sm);
}

/* === CONTACT FORM === */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: start;
}

.contact-info {
  background-color: var(--bg-light);
  padding: var(--spacing-lg);
  border-radius: 12px;
}

.contact-item {
  display: flex;
  align-items: start;
  gap: 1rem;
  margin-bottom: var(--spacing-md);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--saffron);
  flex-shrink: 0;
}

.contact-item h4 {
  margin-bottom: 0.25rem;
  color: var(--navy-blue);
}

.contact-item p {
  margin-bottom: 0;
  color: var(--text-medium);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--saffron);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* === FOOTER === */
.footer {
  background-color: var(--navy-blue);
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
  color: var(--saffron);
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

.footer-section p,
.footer-section li {
  color: var(--warm-beige);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--warm-beige);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--saffron);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
}

.footer-bottom p {
  color: var(--warm-beige);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.registry-id {
  color: var(--gold);
  font-weight: 600;
}

/* === RESPONSIVE DESIGN === */

/* Tablets */
@media (max-width: 968px) {
  html {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: var(--shadow-xl);
    flex-direction: column;
    padding: var(--spacing-lg);
    transition: right var(--transition-normal);
    z-index: 9999;
  }

  .nav.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .top-bar-content {
    flex-direction: column;
    text-align: center;
  }

  .top-bar-left,
  .top-bar-right {
    flex-direction: column;
    gap: 0.5rem;
  }

  .logo-text h1 {
    font-size: 1.25rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .logo-img {
    width: 50px;
    height: 50px;
  }

  .hero {
    min-height: 400px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* === ACCESSIBILITY === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
}

/* === PRINT STYLES === */
@media print {

  .header,
  .footer,
  .btn,
  .mobile-menu-toggle {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
  }
}