/* ============================================
   Toronto Zoo Travel Guide — Global Styles
   ============================================ */

:root {
  --primary: #2d6a4f;
  --primary-dark: #1b4332;
  --primary-light: #52b788;
  --accent: #c9952a;
  --accent-light: #e07b39;
  --bg: #faf8f5;
  --bg-2: #f0ede8;
  --card: #ffffff;
  --card-2: #f8f6f2;
  --text: #2c2c2c;
  --text-light: #555555;
  --muted: #888888;
  --border: #e0dbd3;
  --shadow: rgba(44, 28, 14, 0.08);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 6px;
  --max-w: 1200px;
  --nav-h: 72px;
}

*, *::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);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { max-width: 68ch; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger svg { width: 24px; height: 24px; stroke: var(--primary-dark); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 999;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: var(--nav-h);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--img-hero, url('images/hero.jpg'));
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 67, 50, 0.75) 0%,
    rgba(27, 67, 50, 0.3) 50%,
    rgba(201, 149, 42, 0.2) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge svg { fill: var(--accent); }
.hero h1 {
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  max-width: 14ch;
}
.hero-subtitle {
  color: rgba(255,255,255,0.88);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 52ch;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(201, 149, 42, 0.4);
}
.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 149, 42, 0.45);
}
.btn-secondary {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stat-value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}
.hero-stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* ============================================
   Section common
   ============================================ */
.section {
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem);
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}
.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0 auto;
}
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ============================================
   Intro Section
   ============================================ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.intro-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 12px 40px var(--shadow);
}
.intro-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.intro-text .section-tag { margin-bottom: 1rem; }
.intro-text h2 { margin-bottom: 1.25rem; color: var(--primary-dark); }
.intro-text p { color: var(--text-light); margin-bottom: 1.5rem; font-size: 1.05rem; }
.intro-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.highlight-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.highlight-card h4 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 4px;
}
.highlight-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  max-width: none;
}
.intro-stat-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.intro-stat-item {}
.intro-stat-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}
.intro-stat-text {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================
   Article Grid
   ============================================ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.article-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px var(--shadow);
}
.article-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.article-card:hover .article-card-img img { transform: scale(1.05); }
.article-card-body { padding: 1.5rem; }
.article-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.article-card h3 {
  color: var(--primary-dark);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.article-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.read-more svg { transition: transform 0.2s; }
.article-card:hover .read-more svg { transform: translateX(4px); }

/* ============================================
   Visitor Info
   ============================================ */
.visitor-info { background: var(--primary-dark); color: #fff; }
.visitor-info h2 { color: #fff; }
.visitor-info .section-header p { color: rgba(255,255,255,0.7); }
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.info-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 2rem;
}
.info-card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.info-card-icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; }
.info-card h4 { color: #fff; font-size: 1.1rem; margin-bottom: 0.75rem; }
.info-card p { color: rgba(255,255,255,0.75); font-size: 0.92rem; max-width: none; line-height: 1.65; }
.info-card .info-detail { margin-top: 0.75rem; font-size: 0.85rem; color: var(--accent); font-weight: 500; }

/* ============================================
   Tips
   ============================================ */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.tip-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.25s ease;
}
.tip-card:hover { transform: translateY(-3px); }
.tip-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tip-icon svg { width: 22px; height: 22px; stroke: var(--primary); fill: none; }
.tip-card h4 { color: var(--primary-dark); font-size: 1.05rem; }
.tip-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; max-width: none; }

/* ============================================
   Seasonal Guide
   ============================================ */
.seasonal { background: var(--bg-2); }
.season-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.season-card {
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.season-spring { background: linear-gradient(135deg, #2d6a4f, #52b788); }
.season-summer { background: linear-gradient(135deg, #9d4b00, #e07b39); }
.season-autumn { background: linear-gradient(135deg, #7f4f24, #b5752a); }
.season-winter { background: linear-gradient(135deg, #1b4965, #3a8fb7); }
.season-icon { margin-bottom: 0.5rem; }
.season-icon svg { width: 28px; height: 28px; stroke: rgba(255,255,255,0.9); fill: none; }
.season-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
}
.season-period {
  font-size: 0.8rem;
  opacity: 0.75;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.season-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-top: 0.25rem;
}

/* ============================================
   Newsletter
   ============================================ */
.newsletter {
  background: var(--primary);
  color: #fff;
  text-align: center;
}
.newsletter h2 { color: #fff; margin-bottom: 0.75rem; }
.newsletter p { color: rgba(255,255,255,0.78); max-width: 50ch; margin: 0 auto 2rem; font-size: 1.05rem; }
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.55); }
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-consent {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin-top: 0.75rem;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-success {
  display: none;
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--accent);
}

/* ============================================
   FAQ
   ============================================ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-align: left;
  gap: 1rem;
}
.faq-question:hover { color: var(--primary); }
.faq-icon { flex-shrink: 0; transition: transform 0.3s; }
.faq-icon svg { width: 20px; height: 20px; stroke: var(--primary); fill: none; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer.open { max-height: 300px; }
.faq-answer p {
  padding-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem) 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.footer-tagline { font-size: 0.88rem; line-height: 1.65; max-width: 32ch; color: rgba(255,255,255,0.6); }
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.45); }
.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal-links a { font-size: 0.82rem; color: rgba(255,255,255,0.45); }
.footer-legal-links a:hover { color: rgba(255,255,255,0.7); }

/* ============================================
   Cookie Consent
   ============================================ */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  color: rgba(255,255,255,0.88);
  padding: 1.25rem clamp(1rem, 4vw, 2rem);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 900;
  font-size: 0.88rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
}
.cookie-bar.show { display: flex; }
.cookie-bar a { color: var(--accent); }
.cookie-bar .btn {
  padding: 10px 20px;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ============================================
   Animations
   ============================================ */
.js-reveal .reveal { opacity: 0; transform: translateY(20px); transition: 0.6s; }
.js-reveal .reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .season-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .intro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .intro-highlights { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .season-grid { grid-template-columns: 1fr; }
  .intro-highlights { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { min-width: unset; }
}