﻿/*
Theme Name: Gardenwired Base Theme
Theme URI: https://gardenwired.com
Author: Austin Jones
Author URI: N/A
Description: A clean, content-focused WordPress theme
typography, gradient hero, and content-forward layouts.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/


/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #11201a;
  background-color: #f4f7f1;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #2f9e44;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e9f2;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.mobile-menu-cta {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: #fff;
  border: 1px solid #dfe6f2;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: #0c1b33;
  display: block;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #0c1b33;
  letter-spacing: -0.5px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2f9e44, #6ecb63);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.main-menu {
  display: flex;
  gap: 18px;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-menu li {
  list-style: none;
  position: relative;
}

.main-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-menu a:hover,
.main-menu .current-menu-item > a {
  background: #e4f5e8;
  color: #2f9e44;
}

.main-menu .menu-item-has-children > a::after {
  content: '\25be';
  margin-left: 6px;
  font-size: 12px;
  color: #2f9e44;
  transition: transform 0.2s ease;
}

.main-menu .menu-item-has-children:hover > a::after,
.main-menu .menu-item-has-children:focus-within > a::after {
  transform: rotate(180deg);
}

/* used for JS-driven mobile state as well */
.main-menu .submenu-open > a::after {
  transform: rotate(180deg);
}

.main-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 10px 0;
  margin: 0;
  background: #fff;
  border: 1px solid #dfe6f2;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(12, 27, 51, 0.12);
  z-index: 20;
  list-style: none;
}

.main-menu .sub-menu li {
  width: 100%;
}

.main-menu .sub-menu a {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border-radius: 0;
  font-weight: 600;
}

/* Desktop dropdown behavior */
.main-menu li:hover > .sub-menu,
.main-menu li:focus-within > .sub-menu,
.main-menu .submenu-open > .sub-menu {
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.btn-primary,
.wp-block-button__link {
  background: linear-gradient(135deg, #2f9e44, #7bdc92);
  color: #fff;
  box-shadow: 0 10px 30px rgba(47, 158, 68, 0.25);
}

.btn-primary:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(47, 158, 68, 0.32);
}

.btn-secondary {
  background: #fff;
  color: #0c1b33;
  border: 1px solid #dfe6f2;
}

.btn-secondary:hover {
  background: #f0f4fb;
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  background: radial-gradient(circle at 10% 20%, rgba(126, 209, 144, 0.15) 0, transparent 32%),
    radial-gradient(circle at 80% 0, rgba(58, 140, 88, 0.18) 0, transparent 30%),
    #0f2a1a;
  color: #e7f6eb;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  box-shadow: 0 30px 80px rgba(12, 46, 28, 0.28);
}

.hero .site-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 0 0 16px;
  color: #fff;
}

.hero-subtitle {
  max-width: 540px;
  font-size: 18px;
  color: #cfe7d6;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  color: #c9e4cf;
  font-size: 14px;
}

.hero-card {
  background: #ffffff;
  color: #11201a;
  padding: 22px;
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(17, 32, 26, 0.12);
  display: grid;
  gap: 12px;
}

.hero-card-title {
  font-weight: 800;
  font-size: 18px;
  margin: 0;
}

.hero-card-list {
  display: grid;
  gap: 8px;
}

.hero-card-list li {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
}


.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e7f6eb;
  font-weight: 700;
  font-size: 13px;
}

.badge.dark {
  background: #e4f5e8;
  color: #2f9e44;
}

/* Section */
.section {
  padding: 72px 0;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 12px;
  background: #e4f5e8;
  color: #2f9e44;
  font-weight: 700;
  font-size: 13px;
}

.section-title {
  margin: 16px 0 12px;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.8px;
}

.section-description {
  color: #3f5245;
  font-size: 16px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid #dce9de;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 15px 45px rgba(17, 32, 26, 0.06);
  display: grid;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(17, 32, 26, 0.1);
}

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e4f5e8;
  color: #2f9e44;
  font-weight: 800;
}

.card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.card p {
  margin: 0;
  color: #3f5245;
}

.categories-grid .card {
  align-content: start;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2f9e44;
  font-weight: 700;
}

.card-link::after {
  content: 'â†’';
  transition: transform 0.2s ease;
}

.card:hover .card-link::after {
  transform: translateX(2px);
}

/* Resource Grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.resource-card {
  border: 1px solid #dce9de;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(17, 32, 26, 0.07);
  display: grid;
  gap: 12px;
  padding: 18px;
}

.resource-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3f5245;
  font-size: 13px;
}

.resource-meta span::before {
  content: 'â€¢';
  margin: 0 6px;
  color: #d0d7e5;
}

.resource-meta span:first-child::before {
  content: '';
  margin: 0;
}

.resource-title {
  font-size: 18px;
  margin: 0;
  font-weight: 800;
}

.resource-excerpt {
  margin: 0;
  color: #3f5245;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  background: #e6f5ea;
  color: #2f9e44;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, #0f2a1a, #16402b);
  color: #e7f6eb;
  border-radius: 20px;
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: center;
}

.newsletter h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.4px;
}

.newsletter p {
  margin: 6px 0 0;
  color: #cfe7d6;
}

.newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.newsletter input[type='email'] {
  flex: 1 1 220px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d6e7d8;
  font-size: 15px;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #2f9e44, #6ecb63);
  border-radius: 22px;
  padding: 32px;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  align-items: center;
  box-shadow: 0 25px 60px rgba(47, 158, 68, 0.28);
}

.cta h3 {
  margin: 0;
  font-size: 24px;
}

.pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid #dce9de;
  border-radius: 10px;
  background: #fff;
  color: #11201a;
  font-weight: 700;
  min-width: 42px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.pagination .page-numbers:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(17, 32, 26, 0.07);
  border-color: #c0d4c3;
}

.pagination .page-numbers.current {
  background: linear-gradient(135deg, #2f9e44, #7bdc92);
  color: #fff;
  border-color: #2f9e44;
  box-shadow: 0 12px 30px rgba(47, 158, 68, 0.22);
}

.entry-content form {
  display: grid;
  gap: 12px;
  max-width: 640px;
}

.entry-content input[type='text'],
.entry-content input[type='email'],
.entry-content input[type='url'],
.entry-content input[type='tel'],
.entry-content textarea,
.entry-content select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.entry-content input[type='text']:focus,
.entry-content input[type='email']:focus,
.entry-content input[type='url']:focus,
.entry-content input[type='tel']:focus,
.entry-content textarea:focus,
.entry-content select:focus {
  outline: none;
  border-color: #2f9e44;
  box-shadow: 0 0 0 0.15rem rgba(47, 158, 68, 0.25);
}

.entry-content textarea {
  min-height: 140px;
  resize: vertical;
}

.entry-content input[type='submit'],
.entry-content button[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: linear-gradient(135deg, #2f9e44, #7bdc92);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.entry-content input[type='submit']:hover,
.entry-content button[type='submit']:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(47, 158, 68, 0.22);
}

/* Footer */
.site-footer {
  background: #0f2a1a;
  color: #d9efe0;
  padding: 48px 0 32px;
  margin-top: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.footer-col h4 {
  margin: 0 0 12px;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-col a {
  color: #cfe7d6;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  font-size: 13px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Post template */
.post-header {
  margin: 24px 0;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #3f5245;
  font-size: 14px;
}

.post-meta span::before {
  content: 'â€¢';
  margin: 0 6px;
  color: #d0d7e5;
}

.post-meta span:first-child::before {
  content: '';
  margin: 0;
}

.post-content {
  background: #fff;
  border: 1px solid #dce9de;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(17, 32, 26, 0.06);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  color: #11201a;
}

.post-content p {
  color: #2f3f36;
}

.post-related {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}

.post-related h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.5px;
}

blockquote {
  border-left: 4px solid #2f9e44;
  padding-left: 16px;
  color: #2f3f36;
}

code {
  background: #e6f5ea;
  padding: 2px 6px;
  border-radius: 6px;
}

.author-bio {
  margin-top: 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid #dce9de;
  border-radius: 14px;
  background: #f7faf6;
}

.author-avatar img {
  border-radius: 50%;
}

.author-details h4 {
  margin: 0 0 6px;
}

.author-details p {
  margin: 0;
  color: #2f3f36;
}

/* Responsive */
@media (max-width: 780px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding-top: 10px;
  }

  .site-container {
    padding: 0 16px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-navigation {
    width: 100%;
    order: 3;
  }

  .main-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0 4px;
    margin-top: 8px;
  }

  /* When nav has .is-open (set by JS), show the menu */
  .site-navigation.is-open .main-menu {
    display: flex;
  }

  .site-navigation.is-open .mobile-menu-cta {
    display: block;
    margin-top: 8px;
  }

  .main-menu a {
    display: block;
    width: 100%;
  }

  .main-menu .submenu-open > a {
    background: #e4f5e8;
    color: #2f9e44;
  }

  .main-menu .menu-item-has-children > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .main-menu .menu-item-has-children > a::after {
    margin-left: 0;
    transform: rotate(0deg);
  }

  .main-menu .submenu-open > a::after {
    transform: rotate(180deg);
  }

  .main-menu .sub-menu {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 4px 0 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    display: none;
  }

  .main-menu .sub-menu li + li {
    border-top: 1px solid #e5e9f2;
  }

  .main-menu .sub-menu a {
    padding: 12px 16px;
    border-radius: 0;
    background: #f7faf6;
  }

  /* Disable hover-triggered dropdowns on mobile; rely on .submenu-open */
  .main-menu li:hover > .sub-menu,
  .main-menu li:focus-within > .sub-menu {
    display: none;
  }

  /* When .submenu-open is present, show the submenu (wins over the hover rule) */
  .main-menu li.submenu-open > .sub-menu {
    display: block;
  }

  .mobile-menu-cta {
  margin-bottom: 16px; /* adjust as needed */
}


  .header-actions {
    display: none;
  }

  .header-actions .btn {
    flex: 1 1 160px;
    justify-content: center;
  }

  .mobile-menu-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding: 64px 0 52px;
    text-align: center;
  }

  .hero .site-container {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-items: center;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .hero-card {
    text-align: left;
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 26px;
  }

  .resources-grid,
  .cards-grid,
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .resource-card,
  .card {
    padding: 16px;
  }

  .newsletter {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    margin: 0 12px;
    text-align: left;
  }

  .newsletter input[type='email'] {
    height: 44px;
    min-height: 44px;
    max-height: 48px;
    padding: 10px 12px;
    line-height: 1.3;
  }

  .newsletter form {
    flex-direction: column;
  }

  .post-content {
    padding: 18px;
  }

  .post-related .resources-grid {
    grid-template-columns: 1fr;
  }

  .author-bio {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .resource-meta {
    font-size: 12px;
  }

  .header-actions .btn,
  .hero-actions .btn,
  .newsletter input[type='email'],
  .newsletter button {
    width: 100%;
  }
}
