/* ============================================================
   Wrightwood Raptor Center — Global Stylesheet
   Color palette: Natural & Earthy
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Open+Sans:wght@300;400;600&display=swap');

/* --- CSS Variables --- */
:root {
  --green-dark:    #2C5F2E;
  --green-mid:     #4A7C59;
  --green-light:   #7DAA7F;
  --brown:         #8B5E3C;
  --amber:         #C9973A;
  --amber-light:   #E8BB6A;
  --bg:            #F7F3EE;
  --surface:       #EDE8E1;
  --border:        #D4C9BC;
  --text-dark:     #1C1C1C;
  --text-mid:      #4A4A4A;
  --text-light:    #F7F3EE;
  --white:         #FFFFFF;
  --shadow:        rgba(44, 95, 46, 0.15);

  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Open Sans', Helvetica, Arial, sans-serif;

  --radius:        6px;
  --radius-lg:     12px;
  --transition:    0.25s ease;
  --max-width:     1160px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--amber); }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--green-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.5rem;
  display: block;
}

/* --- Layout Helpers --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section--alt { background: var(--surface); }
.section--dark {
  background: var(--green-dark);
  color: var(--text-light);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--text-light); }
.section--dark p { color: rgba(247, 243, 238, 0.85); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--amber);
  color: var(--text-dark);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
  color: var(--text-dark);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--green-dark);
}
.btn-outline-dark {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}
.btn-outline-dark:hover {
  background: var(--green-dark);
  color: var(--white);
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(28, 44, 30, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 1.5rem;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-logo-img {
  height: 88px;
  width: auto;
  border-radius: var(--radius);
}
.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.2;
}
.nav-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-light);
  font-weight: 600;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: rgba(247, 243, 238, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--amber-light); }
.nav-links a.active { color: var(--amber-light); }
.nav-links .btn-donate {
  background: var(--amber);
  color: var(--text-dark);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  margin-left: 0.5rem;
}
.nav-links .btn-donate:hover { background: var(--amber-light); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Page Hero --- */
.page-hero {
  padding-top: 100px; /* offset fixed nav */
  min-height: 420px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--green-dark);
}
.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.page-hero .container { position: relative; z-index: 1; padding-top: 3rem; padding-bottom: 3rem; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(247, 243, 238, 0.9); font-size: 1.1rem; max-width: 640px; }

/* --- Home Hero --- */
.home-hero {
  padding-top: 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--green-dark);
}
.home-hero .container { width: 100%; }
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}
.hero-content { display: flex; flex-direction: column; }
.hero-photo {
  position: relative;
}
.hero-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  display: block;
}
.hero-photo-caption {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: rgba(247,243,238,0.5);
  text-align: center;
  font-style: italic;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(201, 151, 58, 0.2);
  border: 1px solid var(--amber);
  color: var(--amber-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero-badge svg { width: 14px; height: 14px; }
.home-hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  max-width: 720px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.home-hero .hero-sub {
  font-size: 1.15rem;
  color: rgba(247, 243, 238, 0.9);
  max-width: 560px;
  margin-bottom: 2.5rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}
.stat {
  color: var(--white);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(247, 243, 238, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--shadow);
}
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--surface);
}
.card-img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img-placeholder svg { width: 64px; height: 64px; opacity: 0.3; fill: white; }
.card-body { padding: 1.75rem; }
.card-body h3 { margin-bottom: 0.75rem; }

/* Icon Cards */
.icon-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: 0 2px 16px var(--shadow);
  border-top: 4px solid var(--green-mid);
}
.icon-card .icon {
  width: 56px;
  height: 56px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.icon-card .icon svg { width: 28px; height: 28px; stroke: var(--green-dark); fill: none; stroke-width: 1.75; }

/* Donate Tier Cards */
.tier-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: 0 2px 16px var(--shadow);
  text-align: center;
  border: 2px solid var(--border);
  transition: all var(--transition);
  position: relative;
}
.tier-card.featured {
  border-color: var(--amber);
  transform: scale(1.03);
}
.tier-card.featured .tier-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: var(--text-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.85rem;
  border-radius: 50px;
}
.tier-card:hover { border-color: var(--green-mid); box-shadow: 0 8px 28px var(--shadow); }
.tier-amount {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--green-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.tier-period { font-size: 0.85rem; color: var(--text-mid); margin-bottom: 1rem; }
.tier-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--brown);
  margin-bottom: 1rem;
}
.tier-perks { text-align: left; margin: 1.25rem 0; }
.tier-perks li {
  padding: 0.35rem 0;
  color: var(--text-mid);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.tier-perks li::before {
  content: "✓";
  color: var(--green-mid);
  font-weight: 700;
  flex-shrink: 0;
}

/* Project Cards */
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 2px 16px var(--shadow);
}
.project-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.project-meta { font-size: 0.82rem; color: var(--amber); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.progress-bar-wrap {
  background: var(--surface);
  border-radius: 50px;
  height: 10px;
  overflow: hidden;
  margin: 1rem 0 0.5rem;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green-mid), var(--green-dark));
  border-radius: 50px;
  transition: width 1s ease;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-mid);
}
.progress-raised { font-weight: 600; color: var(--green-dark); }

/* --- Trust Bar --- */
.trust-bar {
  background: var(--green-dark);
  color: var(--text-light);
  padding: 1.5rem 0;
}
.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.trust-item svg { width: 20px; height: 20px; stroke: var(--amber-light); fill: none; stroke-width: 2; flex-shrink: 0; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--brown) 0%, #5C3D25 100%);
  padding: 5rem 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(247, 243, 238, 0.85); margin-bottom: 2rem; font-size: 1.05rem; }

/* --- Board Grid --- */
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.board-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 16px var(--shadow);
}
.board-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  background: var(--surface);
  border: 3px solid var(--green-light);
}
.board-photo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--green-light);
}
.board-photo-placeholder svg { width: 44px; height: 44px; stroke: rgba(255,255,255,0.5); fill:none; stroke-width:1.5; }
.board-card h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.board-title { color: var(--amber); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

/* --- Wildlife Help --- */
.do-dont-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.do-list, .dont-list {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 2px 16px var(--shadow);
}
.do-list { border-top: 4px solid var(--green-mid); }
.dont-list { border-top: 4px solid #C0392B; }
.do-list h3 { color: var(--green-dark); }
.dont-list h3 { color: #C0392B; }
.checklist { margin-top: 1rem; }
.checklist li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-mid);
}
.checklist li:last-child { border-bottom: none; }
.check-icon { flex-shrink: 0; margin-top: 2px; }

/* Species Cards */
.species-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.species-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 2px 16px var(--shadow);
  border-left: 4px solid var(--green-mid);
}
.species-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }

/* --- Contact Form --- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.7fr; gap: 4rem; align-items: start; }
.contact-info h3 { margin-bottom: 1.25rem; }
.contact-detail {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.contact-detail svg { width: 20px; height: 20px; stroke: var(--green-mid); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 3px; }
.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.45rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-success {
  display: none;
  background: #EBF7ED;
  border: 1px solid var(--green-mid);
  color: var(--green-dark);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-weight: 600;
}

/* --- Footer --- */
.site-footer {
  background: #111C12;
  color: rgba(247, 243, 238, 0.8);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { font-size: 0.9rem; margin-top: 1rem; color: rgba(247,243,238,0.65); }
.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
}
.footer-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-light);
  font-weight: 600;
  margin-top: 2px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--font-body);
}
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul a {
  color: rgba(247, 243, 238, 0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--amber-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(247, 243, 238, 0.45);
}
.footer-bottom a { color: rgba(247, 243, 238, 0.45); }
.footer-bottom a:hover { color: var(--amber-light); }
.nonprofit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(201, 151, 58, 0.15);
  border: 1px solid rgba(201, 151, 58, 0.4);
  color: var(--amber-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 1rem 0 0;
  font-size: 0.82rem;
  color: rgba(247,243,238,0.6);
}
.breadcrumb a { color: rgba(247,243,238,0.6); }
.breadcrumb a:hover { color: var(--amber-light); }
.breadcrumb span { margin: 0 0.4rem; }

/* --- Utility --- */
.divider {
  width: 50px;
  height: 3px;
  background: var(--amber);
  border-radius: 3px;
  margin: 1rem 0 1.5rem;
}
.divider-center { margin: 1rem auto 1.5rem; }

.alert-box {
  background: #FFF8E8;
  border: 1px solid var(--amber);
  border-left: 4px solid var(--amber);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-dark);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .do-dont-grid { grid-template-columns: 1fr; }
  .species-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    background: rgba(17, 28, 18, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.65rem 0.75rem; width: 100%; }
  .nav-toggle { display: flex; }
  .tier-card.featured { transform: none; }
  .trust-bar .container { gap: 1.5rem; justify-content: flex-start; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-split { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; }
  .hero-photo { order: -1; max-width: 320px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .page-hero { min-height: 280px; }
}
