/* ===========================
   Urban Botany Journal - CSS
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --green-dark: #2d5016;
  --green-mid: #4a7c2f;
  --green-light: #7ab648;
  --green-pale: #e8f4d9;
  --green-bg: #f5f9f0;
  --brown: #6b4226;
  --cream: #faf7f2;
  --text: #1e2a1a;
  --text-muted: #5a6b52;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 12px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
}

a { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--green-dark); }

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

/* ── NAVIGATION ── */
.nav {
  background: var(--white);
  border-bottom: 1px solid #e0ead6;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo span { color: var(--green-light); }

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

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

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #3d6b1e 50%, var(--green-mid) 100%);
  color: white;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1416879595882-3373a0480b5b?w=1600&q=80') center/cover;
  opacity: 0.18;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  max-width: 700px;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.88;
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-white {
  background: white;
  color: var(--green-dark);
}
.btn-white:hover { background: var(--green-pale); color: var(--green-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); color: white; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--green-dark);
  color: white;
  padding: 1.2rem 2rem;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

.stat-item strong {
  display: block;
  font-size: 1.6rem;
  font-family: 'Playfair Display', serif;
  color: var(--green-light);
}

.stat-item span {
  font-size: 0.82rem;
  opacity: 0.75;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── SECTION ── */
.section {
  padding: 4rem 2rem;
}

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

.container { max-width: 1200px; margin: 0 auto; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--green-dark);
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 400px;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 0.4rem;
}

.view-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-mid);
  white-space: nowrap;
  flex-shrink: 0;
}

.view-all:hover { color: var(--green-dark); }

/* ── FEATURED GRID ── */
.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .featured-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}

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

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

.card-img-lg { height: 320px; }

.card-body {
  padding: 1.5rem;
}

.card-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}

.card-tag.parks { background: #e8f0ff; color: #2d4db5; }
.card-tag.care { background: #fff3e0; color: #c45500; }
.card-tag.season { background: #fce4ec; color: #b71c5f; }

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--text);
  line-height: 1.35;
}

.card-lg h3 { font-size: 1.6rem; }

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 0.82rem;
  color: #888;
}

.card-meta .author {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* ── PLANT CATALOG ── */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.plant-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.25s;
  cursor: pointer;
}

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

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

.plant-card-body {
  padding: 1.2rem;
}

.plant-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.plant-latin {
  font-style: italic;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.plant-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
}

.badge-easy { background: #e8f5e9; color: #2e7d32; }
.badge-medium { background: #fff8e1; color: #f57f17; }
.badge-hard { background: #fce4ec; color: #880e4f; }
.badge-sun { background: #fffde7; color: #f9a825; }
.badge-shade { background: #e8eaf6; color: #3949ab; }
.badge-water { background: #e3f2fd; color: #1565c0; }
.badge-drought { background: #fbe9e7; color: #bf360c; }

/* ── PARKS ── */
.parks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.park-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}

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

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

.park-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.park-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.park-location {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.park-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  flex: 1;
}

.park-highlights {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.park-highlight {
  font-size: 0.75rem;
  background: var(--green-pale);
  color: var(--green-dark);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-weight: 500;
}

/* ── SEASONAL TIPS ── */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

@media (max-width: 900px) {
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
}

.tip-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green-light);
}

.tip-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.tip-card h4 { font-family: 'Playfair Display', serif; font-size: 1.05rem; margin-bottom: 0.5rem; }
.tip-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ── NEWSLETTER ── */
.newsletter {
  background: linear-gradient(135deg, var(--green-dark), #3a6b1a);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}

.newsletter h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.newsletter p {
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 0.8rem;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  min-width: 220px;
  outline: none;
}

.newsletter-form button {
  background: var(--green-light);
  color: white;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover { background: #8fc85a; }

/* ── FOOTER ── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.footer-brand p { font-size: 0.88rem; line-height: 1.7; }

.footer-col h4 {
  color: white;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--green-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── ARTICLE PAGE ── */
.article-hero {
  height: 420px;
  position: relative;
  overflow: hidden;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
}

.article-hero-text { max-width: 800px; margin: 0 auto; color: white; }

.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.article-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--green-dark);
  margin: 2rem 0 1rem;
}

.article-content p { margin-bottom: 1.2rem; line-height: 1.8; }

.article-content .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-style: italic;
  border-left: 4px solid var(--green-light);
  padding-left: 1.2rem;
  margin-bottom: 2rem;
}

.article-content img {
  width: 100%;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

.info-box {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.info-box h4 {
  font-family: 'Playfair Display', serif;
  color: var(--green-dark);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.info-box ul { padding-left: 1.4rem; }
.info-box li { margin-bottom: 0.5rem; font-size: 0.95rem; }

/* ── CATALOG PAGE ── */
.page-hero {
  background: var(--green-dark);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-size: cover;
  background-position: center;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  position: relative;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.82;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.filter-bar {
  background: white;
  padding: 1.2rem 2rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.filter-btn {
  padding: 0.45rem 1.1rem;
  border: 1.5px solid #d5e8c4;
  border-radius: 20px;
  background: white;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: white;
}
