/* Global Reset & Box Sizing */
:root {
  --primary: #8B0000;
  --primary-rgb: 139, 0, 0;
  --secondary: #D1A162;
  --text: #333333;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1a1a;
  --white: #ffffff;
  --max-width: 1200px;
  --nav-height: 80px;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  /* Offset for fixed navbar */
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-wrap: balance;
  max-width: 100%;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1rem;
  text-wrap: pretty;
}

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

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

/* Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--primary);
}

.btn:hover {
  background-color: transparent;
  color: var(--primary);
}

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

.btn-secondary:hover {
  color: var(--secondary);
}

/* Layout */
.section {
  padding: 5rem 0;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  margin-right: 3rem;
  flex-shrink: 0;
}

.logo img {
  height: 50px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  position: relative;
}

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

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

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: var(--nav-height);
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-general.jpg') center/cover no-repeat;
  /* Ideally extract the "people dancing" hero image */
}

.hero-content {
  max-width: 800px;
  animation: fadeIn Up 1s ease-out;
  text-wrap: balance;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* About Section */
.about-features {
  background-color: var(--bg-light);
}

.feature-card {
  padding: 2rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

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

/* Project Cards */
.project-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

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

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(209, 161, 98, 0.1);
}

/* Footer */
footer {
  background: var(--bg-dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  margin-bottom: 3rem;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary);
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.6;
}

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

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

/* Mobile Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .hamburger {
    display: flex;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Impact Cards */
.impact-section {
  background-color: var(--bg-light);
  padding: 6rem 0;
}

.impact-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
  text-wrap: balance;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.impact-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

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

.impact-card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.impact-amount {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

.impact-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.impact-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .impact-section {
    padding: 4rem 0;
  }

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