/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #4CAF50;
  --green-dark: #388E3C;
  --orange: #FF9800;
  --light-bg: #F8F9FA;
  --text: #424242;
  --border: #E0E0E0;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: #fff;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

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

/* Typography */
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
  margin: 1rem 0;
  border: none;
  font-family: 'Open Sans', sans-serif;
}

.btn-primary {
  background: var(--green);
  color: white;
}
.btn-primary:hover {
  background: var(--green-dark);
}

.btn-secondary {
  background: var(--orange);
  color: white;
}
.btn-secondary:hover {
  opacity: 0.9;
}

.btn-outline {
  border: 2px solid var(--green);
  color: var(--green);
  background: transparent;
}
.btn-outline:hover {
  background: var(--green);
  color: white;
}

.btn-link {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
}

/* Navigation */
.navbar {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.nav-links a.highlight,
.nav-links a.active {
  color: var(--green);
  border-bottom: 2px solid var(--green);
  padding-bottom: 4px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text);
  margin: 3px 0;
  transition: 0.3s;
}

/* Layout */
.page {
  display: none;
  padding: 2rem 0;
  min-height: calc(100vh - 120px);
}

.page.active {
  display: block;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--green);
  font-weight: 600;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, #81C784 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero-content {
  margin-bottom: 2rem;
}

.hero-image img {
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Features */
.features {
  padding: 3rem 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--green);
  text-align: center;
}

.feature-card img {
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Picks Teaser */
.picks-teaser {
  background: var(--light-bg);
  padding: 3rem 0;
  text-align: center;
}

.cta-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.cta-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.cta-card img {
  max-height: 140px;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: var(--green);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}

.global-footer {
  background: #222;
  color: #ddd;
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.global-footer a {
  color: #aaa;
}

/* Legal Pages */
.legal {
  background: white;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.post-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.post-card:hover {
  transform: translateY(-5px);
}

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

.post-card-content {
  padding: 1.2rem;
}

.post-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.post-card p {
  font-size: 0.95rem;
  color: #555;
}

/* Post Detail */
#post-detail .breadcrumbs {
  margin-bottom: 1.5rem;
  color: #666;
}

#post-detail article {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

#post-detail h1 {
  margin-top: 0;
}

.quick-tip {
  background: #e8f5e9;
  border-left: 4px solid var(--green);
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.related-posts h3 {
  margin-top: 2rem;
}

.related-posts .posts-grid {
  margin-top: 1rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
}

.form-note {
  font-size: 0.85rem;
  color: #777;
  margin-top: -1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero-content,
  .hero-image {
    text-align: center;
  }

  .feature-grid,
  .cta-cards {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 0;
  }
  .hero-content { text-align: left; margin-bottom: 0; }
  .hero-image { flex: 1; max-width: 50%; }
}