/* ========================================
   Toronto Wildlife Guide (Unofficial)
   Modern, clean, professional design
   ======================================== */

:root {
  --primary: #2d6a4f;
  --primary-dark: #1b4332;
  --primary-light: #40916c;
  --accent: #d4a373;
  --accent-light: #e9c89b;
  --bg: #fafaf8;
  --bg-alt: #f0ede6;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --text-light: #8a8a8a;
  --white: #ffffff;
  --border: #e0ddd5;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white);
  transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: var(--white); color: var(--primary-dark); border-color: var(--white);
}
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--primary-dark); color: var(--white);
  z-index: 9999; padding: 1rem 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
}
.cookie-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.cookie-inner p { flex: 1; font-size: .9rem; margin: 0; }
.cookie-inner p i { margin-right: .4rem; color: var(--accent); }
.cookie-inner a { color: var(--accent-light); text-decoration: underline; }
.cookie-inner .btn { background: var(--accent); color: var(--primary-dark); border-color: var(--accent); white-space: nowrap; }
.cookie-inner .btn:hover { background: var(--accent-light); }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-flex {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.5rem;
}
.nav-brand {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: var(--primary-dark);
  display: flex; align-items: center; gap: .5rem;
}
.nav-brand:hover { color: var(--primary); }
.nav-brand i { color: var(--primary); }
.brand-dot { color: var(--accent); }

.nav-links {
  list-style: none; display: flex; align-items: center; gap: .25rem;
}
.nav-links a {
  display: block; padding: .5rem 1rem; font-size: .9rem; font-weight: 500;
  color: var(--text-muted); border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary); background: rgba(45,106,79,.06);
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 5px 0; transition: all var(--transition); border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.unofficial-strip {
  background: var(--primary-dark); color: rgba(255,255,255,.85);
  text-align: center; font-size: .78rem; font-weight: 500;
  padding: .35rem 1rem; letter-spacing: .02em;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex; align-items: center;
  background: url('img/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(27,67,50,.88) 0%, rgba(45,106,79,.7) 50%, rgba(0,0,0,.5) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  padding: 6rem 0 5rem;
  max-width: 750px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  padding: .45rem 1rem; border-radius: 50px;
  font-size: .85rem; font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.15rem; line-height: 1.7;
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
  max-width: 600px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats { display: flex; gap: 3rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--accent-light);
}
.stat-label { font-size: .85rem; color: rgba(255,255,255,.7); }

/* ── Features ── */
.features { padding: 5rem 0; background: var(--white); }
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.feature-card {
  text-align: center; padding: 2rem 1.5rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.feature-card:hover {
  background: var(--bg); transform: translateY(-4px); box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  background: rgba(45,106,79,.08);
  border-radius: 16px;
  font-size: 1.5rem; color: var(--primary);
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.feature-card p { font-size: .9rem; color: var(--text-muted); }

/* ── Section Headers ── */
.section-header { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section-tag {
  display: inline-block;
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--primary); background: rgba(45,106,79,.08);
  padding: .35rem .9rem; border-radius: 50px;
  margin-bottom: .75rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: .75rem;
}
.section-header p { color: var(--text-muted); font-size: 1rem; }

/* ── Guides / Articles ── */
.guides { padding: 5rem 0; background: var(--bg); }
.guides-grid { display: grid; gap: 2rem; }

.guide-card {
  display: grid; grid-template-columns: 320px 1fr;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.guide-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.guide-card-featured { grid-template-columns: 1fr; }
.guide-card-featured .guide-img img { height: 360px; object-fit: cover; width: 100%; }
.guide-card-featured .guide-body { padding: 2rem; }

.guide-img { position: relative; overflow: hidden; }
.guide-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.guide-card:hover .guide-img img { transform: scale(1.05); }

.guide-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--accent); color: var(--primary-dark);
  padding: .3rem .75rem; border-radius: 50px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
}

.guide-body { padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.guide-category {
  font-size: .8rem; font-weight: 600; color: var(--primary);
  margin-bottom: .5rem; display: inline-block;
}
.guide-category i { margin-right: .3rem; }
.guide-body h3 {
  font-size: 1.2rem; line-height: 1.4; margin-bottom: .75rem;
  color: var(--text);
}
.guide-body p { font-size: .92rem; color: var(--text-muted); margin-bottom: 1rem; }
.guide-meta { display: flex; gap: 1.5rem; font-size: .8rem; color: var(--text-light); }
.guide-meta i { margin-right: .3rem; }

/* ── Gallery ── */
.gallery { padding: 5rem 0; background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: var(--white); padding: 1.5rem 1rem .75rem;
  font-size: .85rem; font-weight: 600;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; }

.gallery-item-tall { grid-row: span 2; }
.gallery-item-wide { grid-column: span 2; }

/* ── Lightbox ── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.9); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; color: white;
  font-size: 2.5rem; cursor: pointer; line-height: 1;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.15); }
.lightbox-content {
  max-width: 800px; width: 100%; text-align: center;
}
.lightbox-content img {
  max-width: 100%; max-height: 70vh; border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.5); margin-bottom: 1.5rem;
}
.lightbox-info { color: white; }
.lightbox-info h3 {
  font-family: var(--font-display); font-size: 1.5rem; margin-bottom: .5rem;
}
.lightbox-info p { font-size: .95rem; color: rgba(255,255,255,.75); max-width: 600px; margin: 0 auto; }

/* ── How We Work ── */
.how-we-work { padding: 5rem 0; background: var(--bg-alt); }

/* ── CTA Section ── */
.cta-section { padding: 5rem 0; background: var(--bg); }
.cta-box {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius);
  padding: 3.5rem;
  display: flex; align-items: center; gap: 3rem;
  color: var(--white);
}
.cta-text { flex: 1; }
.cta-text h2 { font-family: var(--font-display); font-size: 1.75rem; margin-bottom: .75rem; }
.cta-text p { color: rgba(255,255,255,.8); }
.cta-form { display: flex; gap: .75rem; flex-wrap: wrap; }
.cta-form input {
  padding: .8rem 1.25rem; border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1); color: var(--white);
  border-radius: var(--radius-sm); font-size: .95rem;
  min-width: 260px; font-family: var(--font-body);
  transition: border-color var(--transition);
}
.cta-form input::placeholder { color: rgba(255,255,255,.5); }
.cta-form input:focus { outline: none; border-color: var(--accent); }
.cta-form .btn { background: var(--accent); color: var(--primary-dark); border-color: var(--accent); }
.cta-form .btn:hover { background: var(--accent-light); }
.cta-form .success { font-size: 1rem; font-weight: 600; }

/* ── Footer ── */
.footer {
  background: var(--primary-dark); color: rgba(255,255,255,.8);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--white); display: inline-flex; align-items: center; gap: .5rem;
  margin-bottom: .75rem;
}
.footer-brand:hover { color: var(--accent-light); }
.footer-brand i { color: var(--accent); }
.footer-about p { font-size: .9rem; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%; color: rgba(255,255,255,.7);
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--accent); border-color: var(--accent); color: var(--primary-dark);
}
.footer-col h4 {
  color: var(--white); font-size: .9rem; font-weight: 700;
  margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .05em;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .6rem; font-size: .9rem; }
.footer-col li i { width: 18px; color: var(--accent); margin-right: .4rem; font-size: .8rem; }
.footer-col a { color: rgba(255,255,255,.7); }
.footer-col a:hover { color: var(--white); }

.footer-bottom { padding: 2rem 0; text-align: center; }
.footer-disclaimer {
  font-size: .85rem; line-height: 1.7;
  color: rgba(255,255,255,.6);
  max-width: 800px; margin: 0 auto 1rem;
}
.footer-disclaimer strong { color: var(--accent-light); }
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.4); }

/* ── Page Content (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white); padding: 4rem 0 3rem; text-align: center;
}
.page-hero .hero-badge { margin-bottom: 1rem; }
.page-hero h1 { font-family: var(--font-display); font-size: 2.2rem; margin-bottom: .5rem; }
.page-hero p { color: rgba(255,255,255,.75); max-width: 500px; margin: 0 auto; }

.page-body { padding: 4rem 0 5rem; }
.page-body .container { max-width: 780px; }
.page-body h2 {
  font-size: 1.2rem; margin: 2rem 0 .75rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--border);
  color: var(--primary-dark);
}
.page-body p, .page-body li { color: var(--text-muted); margin-bottom: .75rem; font-size: .95rem; }
.page-body ul { padding-left: 1.5rem; }
.page-body a { color: var(--primary); }
.page-body a:hover { text-decoration: underline; }

.about-team { padding: 3rem 0; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.team-card {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.team-avatar {
  width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 1rem; border: 3px solid var(--border);
}
.team-card h4 { font-size: 1rem; margin-bottom: .2rem; }
.team-card .role { font-size: .85rem; color: var(--primary); font-weight: 500; margin-bottom: .5rem; }
.team-card p { font-size: .85rem; color: var(--text-muted); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.contact-info-card {
  background: var(--white); padding: 2rem; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); display: flex; gap: 1rem; align-items: flex-start;
}
.contact-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: rgba(45,106,79,.08); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--primary);
}
.contact-info-card h4 { font-size: .95rem; margin-bottom: .3rem; color: var(--text); }
.contact-info-card p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ── Responsive ── */
@media (max-width: 992px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-card { grid-template-columns: 1fr; }
  .guide-card .guide-img img { height: 220px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-box { flex-direction: column; text-align: center; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 1rem; box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .hero-content { padding: 4rem 0 3rem; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item-tall { grid-row: span 1; }
  .gallery-item-wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 2rem; }
  .cta-form input { min-width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}
