/*
Theme Name: SucculentPlants
Theme URI: https://succulentplants.in
Author: SucculentPlants
Author URI: https://succulentplants.in
Description: Modern succulent and indoor plant WordPress theme with beautiful guides, care tips, and plant inspiration.
Version: 1.6.7
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: succulentplants
Tags: blog, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, responsive-layout, translation-ready
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --primary: #4F7D5C;
  --primary-dark: #3a5e44;
  --primary-light: #6a9e79;
  --secondary: #D9C3A5;
  --bg: #FAF8F2;
  --sage: #E9F0EA;
  --sage-dark: #d4e3d6;
  --dark: #243127;
  --dark-muted: #4a5e4d;
  --white: #ffffff;
  --gray-light: #f0ede6;
  --gray-mid: #c8c4bb;
  --gray-text: #6b7280;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(36,49,39,0.07);
  --shadow-md: 0 8px 24px rgba(36,49,39,0.10);
  --shadow-lg: 0 20px 48px rgba(36,49,39,0.13);
  --transition: 0.25s ease;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', Arial, sans-serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--primary);
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--dark);
}

p {
  margin-bottom: 1.25rem;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.section {
  padding: 80px 0;
}

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

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--dark-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

/* =============================================
   SKIP LINK (ACCESSIBILITY)
   ============================================= */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 9999;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
}

/* =============================================
   HEADER & NAV
   ============================================= */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  gap: 2rem;
  overflow: visible; /* allow dropdown menus to extend beyond navbar */
}

.site-branding a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.site-logo {
  height: 40px;
  width: auto;
}

.site-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--dark);
  font-weight: 700;
  line-height: 1;
}

.site-name span {
  color: var(--primary);
}

/* Primary navigation */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto; /* push nav to the right */
}

/* WordPress menu ul reset */
.primary-nav > ul,
.primary-nav > .menu {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.primary-nav li {
  position: relative;
}

.primary-nav a {
  text-decoration: none;
  color: var(--dark-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  display: block;
  transition: background var(--transition), color var(--transition);
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  background: var(--sage);
  color: var(--primary);
}

/* Dropdown sub-menus */
.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0;

  align-items: flex-start !important;
  text-align: left;
  list-style: none;
  padding-left: 0;}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.primary-nav .sub-menu a {
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  text-align: left;
  display: block;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--dark);
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.menu-toggle:hover {
  background: var(--sage);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

  .primary-nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    box-shadow: var(--shadow-md);
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    display: none;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav ul,
  .primary-nav .menu {
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
  }

  .primary-nav a {
    padding: 0.75rem 1rem;
  }

  .primary-nav .sub-menu {
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    background: var(--sage);
    border-radius: var(--radius-sm);
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    display: none;
  }

  .primary-nav li.submenu-open > .sub-menu {
    display: flex;
  }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  padding: 100px 0 120px;
  background: linear-gradient(145deg, var(--sage) 0%, var(--bg) 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(79,125,92,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(217,195,165,0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(79,125,92,0.12);
  color: var(--primary);
  border-radius: var(--radius-pill);
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 1.25rem;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--primary);
}

.hero p {
  font-size: 1.15rem;
  color: var(--dark-muted);
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79,125,92,0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--dark);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--gray-mid);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap var(--transition);
}

.btn-text:hover {
  gap: 0.7rem;
}

.btn-text::after {
  content: '→';
  transition: transform var(--transition);
}

.btn-text:hover::after {
  transform: translateX(3px);
}

/* =============================================
   PLANT GRID & CARDS
   ============================================= */
.plant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.plant-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

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

.plant-card-thumbnail {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--sage);
}

.plant-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.plant-card:hover .plant-card-thumbnail img {
  transform: scale(1.06);
}

.plant-card-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.4;
}

.plant-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.plant-card-meta {
  font-size: 0.8rem;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.plant-card-content h2,
.plant-card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.plant-card-content h2 a,
.plant-card-content h3 a {
  text-decoration: none;
  color: var(--dark);
  transition: color var(--transition);
}

.plant-card-content h2 a:hover,
.plant-card-content h3 a:hover {
  color: var(--primary);
}

.plant-card-content .excerpt {
  font-size: 0.92rem;
  color: var(--dark-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

/* =============================================
   SINGLE POST
   ============================================= */
.post-header {
  background: linear-gradient(145deg, var(--sage) 0%, var(--bg) 70%);
  padding: 60px 0 50px;
  margin-bottom: 0;
}

.post-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--dark-muted);
  margin-bottom: 1rem;
}

.post-header-meta a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.post-header-meta .post-category {
  background: rgba(79,125,92,0.12);
  color: var(--primary);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.post-header h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  max-width: 800px;
  margin-bottom: 1rem;
}

.post-header .post-excerpt {
  font-size: 1.1rem;
  color: var(--dark-muted);
  max-width: 700px;
  line-height: 1.8;
}

.post-featured-image {
  margin-bottom: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.post-featured-image img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

.post-content-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.85;
}

.post-body h2 { font-size: 1.75rem; margin: 2.5rem 0 1rem; }
.post-body h3 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.post-body h4 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.post-body p { margin-bottom: 1.4rem; }

.post-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  background: var(--sage);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--dark-muted);
}

.post-body img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.post-body ul li,
.post-body ol li {
  margin-bottom: 0.5rem;
}

.post-body pre {
  background: var(--dark);
  color: #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 1.5rem 0;
}

.post-body code {
  background: var(--sage);
  color: var(--primary-dark);
  padding: 0.2em 0.45em;
  border-radius: 4px;
  font-size: 0.88em;
}

.post-body pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.post-tags {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-light);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.post-tags .tag-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark-muted);
  margin-right: 0.25rem;
}

.post-tags a {
  background: var(--sage);
  color: var(--dark-muted);
  text-decoration: none;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.post-tags a:hover {
  background: var(--primary);
  color: var(--white);
}

.post-author-box {
  background: var(--sage);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 2.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start !important;
}

.post-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--sage-dark);
}

.post-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-author-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.post-author-info .author-bio {
  font-size: 0.9rem;
  color: var(--dark-muted);
  margin: 0;
}

/* Post navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-light);
}

.post-nav-item {
  text-decoration: none;
  color: var(--dark);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: block;
}

.post-nav-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--dark);
}

.post-nav-item.next {
  text-align: right;
}

.post-nav-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.post-nav-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.3;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
  position: sticky;
  top: 90px;
}

.widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--sage);
  color: var(--dark);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.92rem;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: var(--dark-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.widget ul li a:hover {
  color: var(--primary);
}

/* =============================================
   COMMENTS
   ============================================= */
.comments-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-light);
}

.comments-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.comment-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.comment-meta {
  font-size: 0.82rem;
  color: var(--gray-text);
  margin-bottom: 0.5rem;
}

.comment-meta strong {
  color: var(--dark);
  font-size: 0.95rem;
}

.comment-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Comment form */
.comment-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--dark-muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  transition: border-color var(--transition);
  margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,125,92,0.1);
}

.comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.comment-form input[type="submit"] {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.comment-form input[type="submit"]:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* =============================================
   ARCHIVE / SEARCH / 404
   ============================================= */
.page-header {
  background: linear-gradient(145deg, var(--sage) 0%, var(--bg) 70%);
  padding: 60px 0 50px;
}

.page-header-inner {
  max-width: 700px;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--dark-muted);
  font-size: 1.05rem;
}

.search-form-wrap {
  max-width: 480px;
  margin-top: 1.25rem;
}

.search-form-wrap form {
  display: flex;
  gap: 0.5rem;
}

.search-form-wrap input[type="search"] {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
}

.search-form-wrap input[type="search"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,125,92,0.1);
}

.search-form-wrap button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition);
}

.search-form-wrap button:hover {
  background: var(--primary-dark);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), color var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--primary);
  color: var(--white);
}

/* 404 page */
.error-404-wrap {
  text-align: center;
  padding: 100px 0;
}

.error-404-code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-family: var(--font-heading);
  color: var(--sage-dark);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-404-wrap h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.error-404-wrap p {
  color: var(--dark-muted);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* =============================================
   FEATURES SECTION (FRONT PAGE)
   ============================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--dark-muted);
  margin: 0;
  line-height: 1.65;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 48px;
}

.footer-brand .footer-site-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-brand .footer-site-name span {
  color: var(--primary-light);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  max-width: 260px;
  color: rgba(255,255,255,0.6);
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--white);
}

/* Widget areas in footer */
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 3rem;
}

.footer-widget .widget-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  border-bottom: none;
  padding-bottom: 0;
  font-family: var(--font-body);
}

.footer-widget .widget ul li {
  border-bottom: none;
}

.footer-widget .widget ul li a {
  color: rgba(255,255,255,0.65);
}

.footer-widget .widget ul li a:hover {
  color: var(--white);
}

/* =============================================
   PAGE TEMPLATE
   ============================================= */
.page-content-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.page-body h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 1.5rem;
}

.page-body {
  font-size: 1.05rem;
  line-height: 1.85;
}

.page-body h2 { font-size: 1.65rem; margin: 2rem 0 0.75rem; }
.page-body h3 { font-size: 1.3rem; margin: 1.75rem 0 0.65rem; }
.page-body p { margin-bottom: 1.4rem; }
.page-body a { color: var(--primary); }
.page-body img { border-radius: var(--radius-md); margin: 1.5rem 0; }
.page-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  background: var(--sage);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-style: italic;
}

/* No sidebar variant */
.no-sidebar .page-content-wrap,
.no-sidebar .post-content-wrap {
  grid-template-columns: 1fr;
  max-width: 780px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .post-content-wrap,
  .page-content-wrap {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 64px 0 80px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-nav-item.next {
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .plant-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   WORDPRESS CORE CLASSES
   ============================================= */
.alignnone { margin: 1rem 0; }
.aligncenter { display: block; margin: 1rem auto; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--gray-text); margin-top: 0.5rem; }
.sticky { border-left: 4px solid var(--primary); padding-left: 1rem; }
.bypostauthor {}
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  padding: 0.75rem 0;
  font-size: 0.82rem;
}

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

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--gray-text);
}

.breadcrumb-item a {
  color: var(--dark-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-item--current {
  color: var(--primary);
  font-weight: 500;
}

.breadcrumb-sep {
  color: var(--gray-mid);
  font-size: 0.9rem;
  line-height: 1;
}

/* =============================================
   PAGE SPEED: CSS-DRIVEN ANIMATIONS (no JS inline styles = no CLS)
   JS only toggles .is-visible — initial state lives here in CSS
   so the browser knows dimensions before JS runs.
   ============================================= */

/* Staggered fade-up for cards and feature items */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  /* Reserve space immediately so no layout shift */
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
.plant-grid .plant-card:nth-child(2),
.features-grid .feature-item:nth-child(2) { transition-delay: 0.08s; }

.plant-grid .plant-card:nth-child(3),
.features-grid .feature-item:nth-child(3) { transition-delay: 0.16s; }

.plant-grid .plant-card:nth-child(4),
.features-grid .feature-item:nth-child(4) { transition-delay: 0.24s; }

.plant-grid .plant-card:nth-child(5) { transition-delay: 0.08s; }
.plant-grid .plant-card:nth-child(6) { transition-delay: 0.16s; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =============================================
   PAGE SPEED: HEADER SCROLLED STATE
   ============================================= */
.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(36,49,39,0.12);
}

/* =============================================
   PAGE SPEED: FONT LOADING FLASH PREVENTION
   Show system fonts until web fonts are swapped in —
   avoids invisible text (FOIT) on slow connections.
   ============================================= */
.fonts-loading body {
  font-family: Arial, sans-serif;
}

.fonts-loading h1,
.fonts-loading h2,
.fonts-loading h3,
.fonts-loading h4,
.fonts-loading h5,
.fonts-loading h6,
.fonts-loading .site-name,
.fonts-loading .footer-site-name {
  font-family: Georgia, serif;
}

/* =============================================
   LOGO — bundled site logo
   ============================================= */
.site-branding {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.site-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  /* clip overflow so logo stays inside navbar bounds */
  overflow: visible;
}

.site-logo-img {
  /* Navbar is 80px. Logo at 72px tall = 139px wide — fits perfectly */
  height: 72px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 1px 3px rgba(36,49,39,0.06));
  transition: opacity 0.2s ease;
}

.site-logo-link:hover .site-logo-img {
  opacity: 0.85;
}

/* WordPress custom_logo output wraps in .custom-logo-link */
.custom-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.custom-logo {
  height: 72px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 1px 3px rgba(36,49,39,0.06));
}

/* Mobile: slightly smaller logo */
@media (max-width: 768px) {
  .site-logo-img,
  .custom-logo {
    height: 56px;
    max-width: 130px;
  }
}

/* ── Sidebar widgets ── */
.widget_explore ul,
.widget_popular ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget_explore ul li,
.widget_popular ul li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0ede6;
}
.widget_explore ul li:last-child,
.widget_popular ul li:last-child {
  border-bottom: none;
}
.widget_explore ul li a,
.widget_popular ul li a {
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.widget_explore ul li a:hover,
.widget_popular ul li a:hover {
  color: var(--primary, #4F7D5C);
}
.widget_search input[type="search"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
}
.widget_search input[type="submit"] {
  margin-top: 0.5rem;
  background: var(--primary, #4F7D5C);
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}
.widget_search input[type="submit"]:hover {
  opacity: 0.9;
}