/* a Hippie Farmer - Clean, Modern Homestead Theme */
:root {
  --color-primary: #3db89f;
  --color-primary-dark: #2c8f7b;
  --color-accent: #e28743;
  --color-text: #2d3748;
  --color-text-muted: #718096;
  --color-bg: #ffffff;
  --color-bg-alt: #f7fafc;
  --color-card-bg: #ffffff;
  --color-border: #e2e8f0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
  --max-width: 1140px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--color-accent);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & Navigation */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-logo {
  max-height: 60px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: 0.2s ease;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav li {
  position: relative;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-weight: 500;
  color: #4a5568;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: all 0.15s ease;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--color-primary-dark);
  background-color: #f0fdf9;
}

/* Desktop Dropdowns */
.site-nav .has-dropdown > a::after {
  content: " \25BE";
  font-size: 0.75rem;
  margin-left: 0.25rem;
}
.site-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 190px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  z-index: 200;
}
.site-nav .has-dropdown:hover .dropdown-menu {
  display: block;
}
.site-nav .dropdown-menu li {
  width: 100%;
}
.site-nav .dropdown-menu a {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 0;
}

/* Mobile Nav */
@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .site-nav.nav-open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0;
  }
  .site-nav .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding-left: 1.25rem;
    background: #f7fafc;
  }
  .site-nav .has-dropdown > a::after {
    display: none;
  }
}

/* Hero & Page Headers */
.page-header {
  background: linear-gradient(to bottom, #f0fdf9, #ffffff);
  border-bottom: 1px solid var(--color-border);
  padding: 3rem 0 2.5rem;
  text-align: center;
}
.page-header h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: -0.02em;
}
.page-header p.subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0.75rem auto 0;
}

/* Potager / Welcome Hero */
.hero-potager {
  background: #f0fdf9;
  border-bottom: 1px solid #d2f4ea;
  padding: 3.5rem 0;
}
.hero-potager-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.hero-potager h1 {
  font-size: 2.4rem;
  color: #1a365d;
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.hero-potager h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-top: 0;
  margin-bottom: 1.25rem;
}
.hero-potager p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 1.25rem;
}
.hero-potager .hero-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--color-primary-dark);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--color-accent);
  color: #ffffff;
}
.btn-outline {
  background: transparent;
  border-color: var(--color-primary-dark);
  color: var(--color-primary-dark);
}
.btn-outline:hover {
  background: var(--color-primary-dark);
  color: #ffffff;
}

/* Main Content Layout */
.content-wrapper {
  padding: 2.5rem 0 4rem;
}

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

.post-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.post-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #edf2f7;
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.post-card:hover .post-card-thumb img {
  transform: scale(1.03);
}

.post-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-meta {
  font-size: 0.825rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.post-card-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  line-height: 1.35;
}
.post-card-title a {
  color: #1a202c;
}
.post-card-title a:hover {
  color: var(--color-primary-dark);
}
.post-excerpt {
  color: #4a5568;
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}
.read-more-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary-dark);
}

/* Single Post View */
.article-header {
  max-width: 820px;
  margin: 0 auto 2rem;
  text-align: center;
}
.article-title {
  font-size: 2.35rem;
  line-height: 1.25;
  color: #1a202c;
  margin-bottom: 0.75rem;
}
.article-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.article-featured-image {
  max-width: 860px;
  margin: 0 auto 2.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.article-featured-image img {
  width: 100%;
  height: auto;
}
.article-body {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2d3748;
}
.article-body p {
  margin-bottom: 1.5rem;
}
.article-body h2 {
  font-size: 1.7rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #1a202c;
}
.article-body h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #2d3748;
}
.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.article-body li {
  margin-bottom: 0.5rem;
}
.article-body img {
  margin: 2rem auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.article-body .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 2rem 0;
  border-radius: var(--radius-sm);
}
.article-body .video-wrapper iframe,
.article-body .video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.article-tags {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag-badge {
  display: inline-block;
  background: #edf2f7;
  color: #4a5568;
  font-size: 0.825rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  transition: all 0.15s ease;
}
.tag-badge:hover {
  background: var(--color-primary-dark);
  color: #ffffff;
}

/* Post Navigation (Prev/Next) */
.post-navigation {
  max-width: 780px;
  margin: 3rem auto 0;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  gap: 1rem;
}
.post-nav-item {
  max-width: 48%;
}
.post-nav-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* Photo Gallery & Lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #edf2f7;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.gallery-item:hover {
  transform: scale(1.02);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pure JS Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox-modal.active {
  display: flex;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}
.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  border-radius: var(--radius-sm);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 1.75rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.4);
}
.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}
.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Contact Form */
.contact-container {
  max-width: 640px;
  margin: 0 auto;
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #2d3748;
  font-size: 0.925rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: #1a202c;
  transition: border-color 0.15s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(67, 198, 172, 0.2);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  display: none;
}
.form-status.success {
  display: block;
  background: #e6fffa;
  color: #234e52;
  border: 1px solid #b2f5ea;
}
.form-status.error {
  display: block;
  background: #fff5f5;
  color: #742a2a;
  border: 1px solid #fed7d7;
}

/* Footer */
.site-footer {
  background: #1a202c;
  color: #a0aec0;
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
  font-size: 0.925rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.footer-brand h3 {
  color: #ffffff;
  margin-top: 0;
  font-size: 1.25rem;
}
.footer-col h4 {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 0.5rem;
}
.footer-col a {
  color: #cbd5e0;
}
.footer-col a:hover {
  color: var(--color-primary);
}
.footer-bottom {
  border-top: 1px solid #2d3748;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #718096;
}
