/*
Theme Name: Greenroot Gardens
Theme URI: https://example.com/greenroot-gardens
Author: Greenroot Team
Description: A beautiful WordPress theme for a modern garden centre.
Version: 1.3.28
Text Domain: greenroot-gardens
*/

:root {
  /* Brand green from logo */
  --primary: #2d4f2f;
  --secondary: #3d6840;
  --accent: #6b9b6e;
  --light: #f1f6f1;
  --dark: #1a2e1c;
  --text: #2a332b;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(45, 79, 47, 0.14);
  /* Typography (slightly larger than browser default for readability) */
  --font-body: 1.125rem;
  --font-body-sm: 1.0625rem;
  --font-lead: 1.25rem;
  --font-nav: 1.25rem;
  --line-body: 1.65;
  /* Primary document / page / archive / shop hero <h1> (one size sitewide) */
  --page-title-font-size: clamp(1.45rem, 2.65vw, 1.85rem);
  --page-title-line-height: 1.15;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--font-body);
  line-height: var(--line-body);
  color: var(--text);
  background: linear-gradient(180deg, #f9fcf7 0%, #eef4ef 100%);
}

body.nav-menu-open {
  overscroll-behavior: none;
}

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

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

.site-banner {
  background: var(--primary);
  color: #f4faf4;
  font-size: var(--font-body-sm);
  font-weight: 600;
  text-align: center;
}

.site-banner-inner {
  padding: 0.5rem 0;
}

.site-banner a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-banner a:hover {
  color: var(--white);
}

.site-header {
  position: static;
  z-index: 20;
  /* No backdrop-filter: it creates a containing block and traps fixed nav/drawer inside the header strip. */
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(45, 79, 47, 0.12);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
}

.brand {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
}

.custom-logo-link,
.brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.custom-logo-link img,
.brand img.custom-logo {
  display: block;
  height: auto;
  max-height: 5.5rem;
  width: auto;
  max-width: min(360px, 62vw);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--font-nav);
  line-height: 1.3;
}

.site-nav .current-menu-item a,
.site-nav a:hover {
  background: var(--light);
}

/* —— Mobile navigation —— */
.nav-toggle {
  display: none;
  position: relative;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 2px solid rgba(45, 79, 47, 0.22);
  background: var(--white);
  color: var(--dark);
  font-size: var(--font-nav);
  font-weight: 700;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:focus-visible {
  outline: 3px solid rgba(45, 79, 47, 0.35);
  outline-offset: 2px;
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 26px;
  height: 22px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.nav-menu-open .nav-toggle-bars .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.nav-menu-open .nav-toggle-bars .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-menu-open .nav-toggle-bars .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav-backdrop {
  display: none;
}

.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: var(--page-title-font-size);
  line-height: var(--page-title-line-height);
  color: var(--dark);
  margin: 0;
}

.hero p {
  font-size: var(--font-lead);
  max-width: 42rem;
  margin: 1rem auto 2rem;
}

.eyebrow {
  display: inline-block;
  background: rgba(45, 79, 47, 0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: var(--font-body-sm);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--font-body);
  box-shadow: var(--shadow);
}

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

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--secondary);
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--dark);
}

.grid {
  display: grid;
  gap: 1.2rem;
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  font-size: var(--font-body);
}

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

.card h2 {
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

.card h2 a {
  color: inherit;
}

.section-gap {
  margin-top: 1.2rem;
}

.split-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.2rem;
}

.clean-list {
  margin: 0;
  padding-left: 1.1rem;
}

.clean-list li {
  margin: 0.45rem 0;
}

.testimonial p {
  font-style: italic;
}

.section {
  padding: 2rem 0;
}

.section-title {
  margin: 0 0 1rem;
  color: var(--dark);
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  line-height: 1.2;
}

/* Blog index (and any other main <h1> using this class) matches other page titles */
h1.section-title {
  font-size: var(--page-title-font-size);
  line-height: var(--page-title-line-height);
}

.page-hero {
  padding: 2rem 0 1rem;
}

.page-hero h1 {
  margin: 0;
  color: var(--dark);
}

/* Main page titles — one font size + brand-green underline (single blog posts: see override below) */
.page-hero h1,
.section > .container > h1.section-title,
.card.content-area > h1:first-of-type,
h1.woocommerce-products-header__title.page-title,
body.single-product h1.product_title.entry-title {
  font-size: var(--page-title-font-size);
  line-height: var(--page-title-line-height);
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.34em;
  text-decoration-skip-ink: auto;
}

/* Single blog post: no underline on the article headline (pages/archives keep it above) */
body.single-post .page-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  text-decoration: none;
}

/* Shop intro uses .blog-intro (same as page hero + blog index). Tweak spacing under WooCommerce H1. */
.woocommerce .woocommerce-products-header .greenroot-shop-intro.blog-intro {
  margin: 1.45rem 0 0.55rem;
  max-width: min(48rem, 100%);
}

/* Keep Store page heading aligned like other page heroes. */
.woocommerce .woocommerce-products-header {
  text-align: left;
  padding: 2.25rem 0 1rem;
}

.woocommerce .woocommerce-products-header .woocommerce-products-header__title.page-title {
  margin: 0;
}

/* Optional shop page body from the editor: match intro / .blog-intro size */
.woocommerce .woocommerce-products-header .page-description {
  margin-top: 0.85rem;
  max-width: min(48rem, 100%);
  font-size: var(--font-lead);
  line-height: var(--line-body);
  color: var(--text);
}

.woocommerce .woocommerce-products-header .page-description p {
  font-size: inherit;
  line-height: inherit;
}

.page-hero .blog-intro {
  margin-top: 1.45rem;
  margin-bottom: 0.55rem;
}

/* Pull main content closer to hero intro (tighter hero → body gap). */
.page-hero + .section {
  padding-top: 1.1rem;
}

/* About: same horizontal band as header/footer (full theme container). */
.container--about {
  width: min(1120px, 92%);
  margin-left: auto;
  margin-right: auto;
}

.section--about-page .entry-content--about-page {
  width: 100%;
  max-width: none;
  margin: 0;
}

.page-hero--about {
  padding: 2.25rem 0 1rem;
}

.section--about-page {
  padding-top: 0.5rem;
  padding-bottom: 3rem;
  background: linear-gradient(180deg, rgba(241, 246, 241, 0.55) 0%, transparent 42%);
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: var(--white);
  font-weight: 700;
  font-size: var(--font-body);
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.gallery-item > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.gallery-item__caption {
  position: relative;
  z-index: 1;
  width: 100%;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.gallery-item:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

/* Modula gallery on Gallery page (shortcode) */
.entry-content .greenroot-gallery-intro {
  margin-bottom: 1.5rem;
}

.entry-content .modula.modula-gallery {
  margin: 0 auto 2rem;
  max-width: min(1360px, 100%);
}

/* Gallery page: pull image grid up (tighter hero → content → Modula) */
body.greenroot-gallery-page .page-hero {
  padding-bottom: 0.35rem;
}

body.greenroot-gallery-page .page-hero .blog-intro {
  margin-bottom: 0;
}

body.greenroot-gallery-page .section {
  padding-top: 0.85rem;
}

body.greenroot-gallery-page .entry-content .greenroot-gallery-intro {
  margin-bottom: 0.15rem;
}

body.greenroot-gallery-page .entry-content .modula.modula-gallery {
  margin-top: -0.85rem;
}

.entry-content .modula .modula-item {
  border-radius: 12px;
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(16, 24, 18, 0.78);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__dialog {
  position: relative;
  width: min(92vw, 960px);
  max-height: 90vh;
}

.gallery-lightbox__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
  background: #000;
}

.gallery-lightbox__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.contact-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem;
}

.contact-map {
  margin-top: 0.8rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(26, 46, 28, 0.14);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem;
  display: grid;
  gap: 0.55rem;
}

.contact-form-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form-notice {
  margin: 0 0 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-size: var(--font-body-sm);
}

.contact-form-notice--success {
  background: #e8f5e9;
  color: #1b3d1f;
  border: 1px solid #b8d9bc;
}

.contact-form-notice--error {
  background: #fdecea;
  color: #5c1f1a;
  border: 1px solid #f0c4c0;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid #d0ddca;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.content-area {
  max-width: 780px;
  margin: 0 auto;
}

.content-area--comments {
  margin-top: 1.5rem;
}

.post-meta {
  color: #5e6c5f;
  font-size: var(--font-body-sm);
}

.post-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0.7rem 0 1rem;
}

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

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #c9d8c4;
  padding: 0.7rem 1rem;
}

.search-submit {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 0.65rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.site-footer {
  margin-top: 3rem;
  background: radial-gradient(circle at top right, #3d6840, #1a2e1c 65%);
  color: #f0f6ed;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.footer-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.footer-grid > section {
  padding-right: 0.9rem;
}

.footer-grid > section + section {
  border-left: 2px solid rgba(255, 255, 255, 0.22);
  padding-left: 1rem;
}

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-size: var(--font-body-sm);
  text-transform: capitalize;
}

.site-footer a {
  color: #e8f3e4;
  text-decoration: none;
}

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

.site-footer .btn {
  text-decoration: none;
}

@media (max-width: 760px) {
  .footer-grid > section {
    padding-right: 0;
  }

  .footer-grid > section + section {
    border-left: 0;
    border-top: 2px solid rgba(255, 255, 255, 0.18);
    padding-left: 0;
    padding-top: 1rem;
  }
}

.footer-social {
  margin: 0.75rem 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-contact-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.footer-social-link--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-social-link--icon:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.footer-contact .footer-social {
  justify-content: center;
}

@media (max-width: 900px) {
  body.nav-menu-open .site-header {
    z-index: 1100;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    z-index: 1002;
    position: relative;
  }

  .header-inner {
    flex-wrap: nowrap;
    gap: 0.75rem;
    align-items: center;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 88vw);
    max-width: 100%;
    margin: 0;
    padding: clamp(5.5rem, 14vw, 6.75rem) 1.25rem 2rem;
    background: #fff;
    box-shadow: -8px 0 32px rgba(26, 46, 28, 0.18);
    z-index: 1001;
    transform: translateX(102%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, visibility 0s linear 0.28s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.nav-menu-open .site-nav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.28s ease, visibility 0s linear 0s;
  }

  .site-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(26, 46, 28, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }

  body.nav-menu-open .site-nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.25s ease, visibility 0s linear 0s;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .site-nav a {
    display: block;
    padding: 0.95rem 1.1rem;
    border-radius: 12px;
    font-size: calc(var(--font-nav) + 0.05rem);
  }

  .site-nav .current-menu-item a,
  .site-nav a:hover {
    background: var(--light);
  }
}

@media (max-width: 760px) {
  .split-panel,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Block editor / Site Builder output */
.entry-content {
  font-size: var(--font-body);
  line-height: var(--line-body);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content .alignwide {
  max-width: min(1120px, 92vw);
  margin-left: auto;
  margin-right: auto;
}

.entry-content .alignfull {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.entry-content img,
.entry-content .wp-block-image img {
  height: auto;
  max-width: 100%;
}

.entry-content .wp-block-columns {
  gap: 1.2rem;
}

.front-page-content {
  padding-bottom: 0.5rem;
}

/* Front page: pull hero (eyebrow + headline) closer to the media strip above */
body.greenroot-front-landing .front-page-content {
  margin-top: -0.75rem;
}

body.greenroot-front-landing .front-page-content .hero {
  padding-top: 1.25rem;
  padding-bottom: 2.35rem;
}

body.greenroot-front-landing .media-strip-banner {
  margin-bottom: -0.45rem;
}

body.greenroot-front-landing .front-page-content .hero .eyebrow {
  margin-bottom: 0.65rem;
}

/* First homepage content band (“Why Gardeners Love Us”) — sit closer under the hero */
body.greenroot-front-landing .front-page-content section.hero + section.section {
  margin-top: -0.9rem;
  padding-top: 1rem;
}

body.greenroot-front-landing .front-page-content section.hero + section.section .section-title {
  margin-bottom: 0.75rem;
}

.home-embed-video .container {
  display: flex;
  justify-content: center;
}

.home-embed-video__container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.home-embed-video__wrap {
  width: min(100%, 520px);
  margin: 0 auto;
  aspect-ratio: 490 / 698;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}

.home-embed-video__wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 760px) {
  .home-embed-video__wrap iframe {
    min-height: 0;
  }
}

/* About page (editor content) */
.about-page-prose .about-lead {
  font-size: var(--font-lead);
  line-height: var(--line-body);
  color: var(--dark);
  margin: 0 0 1.25rem;
}

.about-page-prose p {
  margin: 0 0 1rem;
  max-width: 68ch;
}

.about-page-prose p:last-child {
  margin-bottom: 0;
}

.about-page-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  gap: 2.5rem;
}

.about-top-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 0.35rem 0 0.15rem;
}

.about-top-row .about-mission-line {
  flex: 1 1 220px;
  margin: 0;
  min-width: 0;
}

.about-top-row .about-highlight-strip {
  flex: 0 1 auto;
  justify-content: flex-end;
}

.about-mission-line {
  margin: 0;
  font-size: var(--font-lead);
  font-weight: 700;
  line-height: var(--line-body);
  color: var(--primary);
  border-left: 4px solid var(--accent);
  padding: 0.15rem 0 0.15rem 1rem;
}

.about-highlight-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
}

.about-highlight-strip li {
  margin: 0;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: var(--font-body-sm);
  font-weight: 600;
  color: var(--dark);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(45, 79, 47, 0.18);
  box-shadow: 0 2px 10px rgba(45, 79, 47, 0.06);
}

.about-main-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: stretch;
  width: 100%;
  justify-content: stretch;
}

@media (min-width: 768px) {
  .about-main-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.75rem);
    align-items: stretch;
  }

  .about-main-split__prose.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
  }

  .about-main-split__features {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    min-width: 0;
  }

  .about-main-split__features .about-features-grid {
    flex: 1 1 auto;
    align-content: start;
    width: 100%;
    min-width: 0;
  }
}

.about-main-split__prose {
  margin: 0;
}

.about-main-split__features {
  margin: 0;
}

/* Prose uses the same content width as feature cards (no narrower measure than the tiles). */
.about-main-split__prose.about-page-prose p {
  max-width: none;
}

.about-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 1rem 1.1rem;
}

.about-feature-card {
  margin: 0;
}

.about-feature-heading {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--dark);
}

.about-feature-card p {
  margin: 0;
  font-size: var(--font-body-sm);
  line-height: var(--line-body);
  color: var(--text);
}

.about-cta-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  width: 100%;
  padding-top: 0.25rem;
}

.about-cta-row .btn {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  font-size: var(--font-body-sm);
  padding: 0.65rem 0.75rem;
  line-height: 1.25;
}

/* Services page (editor content) */
.services-page-prose .services-intro {
  margin-bottom: 0;
}

.services-intro--standalone {
  width: 100%;
  margin-bottom: 0;
}

.services-page-prose > .services-intro--standalone + .services-grid-2x2 {
  margin-top: 1.75rem;
}

.services-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
}

@media (min-width: 700px) {
  .services-grid-2x2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.services-grid-card {
  margin: 0;
}

.services-row-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .services-row-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.services-row-pair .services-row-single {
  margin: 0;
}

.services-page-prose .services-lead {
  font-size: var(--font-lead);
  line-height: var(--line-body);
  color: var(--dark);
  margin: 0;
  max-width: 68ch;
}

.services-page-prose .card h3 {
  margin: 0 0 0.65rem;
  color: var(--dark);
  font-size: 1.35rem;
}

.services-page-prose .card p {
  margin: 0;
  max-width: 68ch;
}

.services-different h3 {
  margin-bottom: 1rem;
}

.services-highlight-block {
  margin-bottom: 1.35rem;
}

.services-highlight-block:last-child {
  margin-bottom: 0;
}

.services-highlight-title {
  margin: 0 0 0.4rem;
  font-weight: 700;
  font-size: var(--font-body);
  color: var(--dark);
}

.services-highlight-emoji {
  margin-right: 0.25rem;
}

.services-highlight-list {
  margin: 0;
}

/* Blog listing — 3-column grid with image cards */
.blog-intro {
  margin: 1.35rem 0 1.1rem;
  font-size: var(--font-lead);
  color: var(--text);
  max-width: 48rem;
}

/* /blog: two containers — heading/intro vs. grid (see home.php / index.php) */
.blog-archive__header {
  padding-bottom: 0.35rem;
}

.blog-archive__header .blog-intro:last-child {
  margin-bottom: 0;
}

.blog-archive__posts {
  margin-top: 0;
  padding-top: 1.25rem;
}

@media (min-width: 640px) {
  .blog-archive__posts {
    margin-top: 0;
    padding-top: 1.45rem;
  }
}

/* Single post: article vs. comments — separate containers (see single.php) */
.single-post__comments {
  margin-top: 0.15rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(45, 79, 47, 0.12);
}

@media (min-width: 640px) {
  .single-post__comments {
    margin-top: 0.2rem;
    padding-top: 1.5rem;
  }
}

.blog-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.post-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card__image-link {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, #e8f0e6, #d4e4d4);
  flex-shrink: 0;
}

.post-card__image-link:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: -3px;
}

.post-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card__img {
  transform: scale(1.04);
}

.post-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 11rem;
  background:
    linear-gradient(135deg, rgba(45, 79, 47, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(107, 155, 110, 0.35), transparent 55%),
    linear-gradient(160deg, #e5efe3, #d8e6d8);
}

.post-card__content {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.post-card__content h2,
.post-card__content h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.post-card__content h2 a,
.post-card__content h3 a {
  color: var(--dark);
}

.post-card__content h2 a:hover,
.post-card__content h3 a:hover {
  color: var(--primary);
}

.post-card-meta {
  margin: 0 0 0.5rem;
  font-size: var(--font-body-sm);
  color: #5e6c5f;
}

.post-card__excerpt {
  margin: 0 0 0.75rem;
  flex: 1;
}

.post-card__footer {
  margin: 0;
  margin-top: auto;
}

.post-card__footer .btn.read-more {
  text-transform: capitalize;
  padding: 0.65rem 1.25rem;
  font-size: var(--font-body-sm);
  margin-top: 0.15rem;
}

.pagination-nav {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.pagination-nav .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  justify-content: center;
}

.pagination-nav a,
.pagination-nav span {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--font-body-sm);
}

.pagination-nav a {
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--primary);
}

.pagination-nav a:hover {
  color: var(--dark);
}

.pagination-nav span.current {
  background: var(--primary);
  color: var(--white);
}

.pagination-nav span.dots {
  background: transparent;
  box-shadow: none;
  color: var(--text);
}

.blog-comments__title,
.blog-comments__reply-title {
  margin: 0 0 0.9rem;
  color: var(--dark);
}

/* Single post: pull comment form / “Leave a reply” closer (core #respond adds large margin) */
.single-post__comments .comment-respond {
  margin-top: 0.45rem;
}

.single-post__related {
  margin-top: 0.35rem;
  padding-top: 2rem;
}

@media (min-width: 640px) {
  .single-post__related {
    margin-top: 0.5rem;
    padding-top: 2.35rem;
  }
}

.single-post__related-title {
  margin-bottom: 1.1rem;
}

.blog-grid--adjacent {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .blog-grid--adjacent {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
  }
}

.post-card__adjacent-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  padding: 1rem 1.25rem 0;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--primary);
}

.post-card__adjacent-arrow {
  flex-shrink: 0;
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 800;
  color: var(--dark);
}

.post-card__adjacent-text {
  font-size: var(--font-body-sm);
}

.blog-comments .comment-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.blog-comments .comment-list li {
  margin: 0 0 0.9rem;
  padding: 0.9rem;
  border-radius: 12px;
  background: #f7faf6;
}

.blog-comments .comment-form p {
  margin: 0 0 0.8rem;
}

.blog-comments .comment-form input[type="text"],
.blog-comments .comment-form input[type="email"],
.blog-comments .comment-form input[type="url"],
.blog-comments .comment-form textarea {
  width: 100%;
  border: 1px solid #d0ddca;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

/* WooCommerce — shop grid: 3×3, contained width, larger product cards */
body.woocommerce-page #primary.content-area {
  max-width: min(1120px, 92%);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

/* Shop toolbar: results + sort */
.woocommerce .greenroot-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  max-width: min(1040px, 100%);
  margin: 0 auto 1.75rem;
  padding: 1rem 1.35rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(45, 79, 47, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(45, 79, 47, 0.06);
}

.woocommerce .greenroot-shop-toolbar .woocommerce-result-count {
  float: none;
  margin: 0;
  font-size: var(--font-body);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.45;
}

.woocommerce .greenroot-shop-ordering {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 0;
}

.woocommerce .greenroot-shop-ordering__label {
  font-weight: 700;
  font-size: var(--font-body-sm);
  color: var(--primary);
  letter-spacing: 0.02em;
}

.woocommerce .greenroot-shop-ordering form.woocommerce-ordering {
  margin: 0;
}

.woocommerce .greenroot-shop-ordering .greenroot-shop-ordering__select {
  margin: 0;
  min-width: min(17rem, 72vw);
  padding: 0.65rem 2.35rem 0.65rem 0.9rem;
  border: 2px solid rgba(45, 79, 47, 0.22);
  border-radius: 12px;
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232d4f2f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  font: inherit;
  font-weight: 600;
  font-size: var(--font-body-sm);
  color: var(--text);
  line-height: 1.35;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.woocommerce .greenroot-shop-ordering .greenroot-shop-ordering__select:hover {
  border-color: rgba(45, 79, 47, 0.4);
}

.woocommerce .greenroot-shop-ordering .greenroot-shop-ordering__select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107, 155, 110, 0.35);
}

@media (max-width: 640px) {
  .woocommerce .greenroot-shop-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .woocommerce .greenroot-shop-ordering {
    justify-content: space-between;
  }

  .woocommerce .greenroot-shop-ordering .greenroot-shop-ordering__select {
    flex: 1 1 auto;
    min-width: 0;
  }
}

.woocommerce .greenroot-shop-products {
  width: 100%;
  max-width: min(1040px, 100%);
  margin: 0 auto;
  padding: 0.5rem 0 1.5rem;
}

.woocommerce .greenroot-shop-products ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  clear: both;
}

.woocommerce .greenroot-shop-products ul.products::before,
.woocommerce .greenroot-shop-products ul.products::after {
  display: none;
}

.woocommerce .greenroot-shop-products ul.products li.product {
  float: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 1.35rem 1.25rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.woocommerce .greenroot-shop-products ul.products li.product a.woocommerce-loop-product__link {
  flex: 1 1 auto;
}

.woocommerce .greenroot-shop-products ul.products li.product img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}

.woocommerce .greenroot-shop-products ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.2rem;
  margin-top: 0.85rem;
}

.woocommerce .greenroot-shop-products ul.products li.product .price {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.35rem;
}

.woocommerce .greenroot-shop-products ul.products li.product .button {
  margin-top: 0.85rem;
  align-self: flex-start;
}

@media (max-width: 960px) {
  .woocommerce .greenroot-shop-products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
  }
}

@media (max-width: 560px) {
  .woocommerce .greenroot-shop-products ul.products {
    grid-template-columns: 1fr;
  }
}

/* WooCommerce — larger type on cart & checkout */
body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce {
  font-size: 1.2rem;
  line-height: 1.6;
}

body.woocommerce-cart .woocommerce table.shop_table th,
body.woocommerce-cart .woocommerce table.shop_table td,
body.woocommerce-checkout .woocommerce table.shop_table th,
body.woocommerce-checkout .woocommerce table.shop_table td {
  font-size: 1.05rem;
}

body.woocommerce-checkout .woocommerce form .form-row label,
body.woocommerce-checkout .woocommerce form .form-row .woocommerce-input-wrapper,
body.woocommerce-cart .woocommerce .cart_totals h2,
body.woocommerce-cart .woocommerce .cart_totals .shop_table,
body.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout #order_review {
  font-size: inherit;
}

body.woocommerce-cart .woocommerce .product-name a,
body.woocommerce-cart .woocommerce .product-price,
body.woocommerce-cart .woocommerce .product-subtotal {
  font-size: 1.08rem;
}

/* Cart buttons */
body.woocommerce-cart .woocommerce a.button,
body.woocommerce-cart .woocommerce button.button,
body.woocommerce-cart .woocommerce input.button {
  font-size: 1.1rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
}

body.woocommerce-cart .woocommerce a.button.alt.checkout-button {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1rem 1.6rem;
}

body.woocommerce-cart .greenroot-cart-add-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

body.woocommerce-cart .greenroot-cart-add-more__count {
  margin: 0;
  flex: 1 1 220px;
  font-size: 1.1rem;
  color: var(--dark);
}

body.woocommerce-cart .greenroot-cart-add-more__link {
  flex: 0 0 auto;
}

/* Checkout — Return to Cart + Place Order row */
body.woocommerce-checkout #payment .greenroot-checkout-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

body.woocommerce-checkout #payment .greenroot-checkout-submit-row .greenroot-return-to-cart {
  flex: 0 1 auto;
  text-align: center;
}

body.woocommerce-checkout #payment #place_order.button,
body.woocommerce-checkout #payment #place_order.button.alt {
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 100%;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  border: 0;
  line-height: 1.35;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
}

body.woocommerce-checkout #payment #place_order.button:hover,
body.woocommerce-checkout #payment #place_order.button.alt:hover {
  color: var(--white);
  filter: brightness(1.05);
}

@media (max-width: 520px) {
  body.woocommerce-checkout #payment .greenroot-checkout-submit-row {
    flex-direction: column;
    align-items: stretch;
  }

  body.woocommerce-checkout #payment #place_order.button,
  body.woocommerce-checkout #payment #place_order.button.alt {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* Recent media strip (homepage only — below header) */
.media-strip-banner {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(45, 79, 47, 0.1);
  padding: 1.5rem 0;
  margin-top: -0.45rem;
}

.media-strip-banner__viewport {
  width: 100%;
  overflow: hidden;
}

.media-strip-banner__track {
  --strip-end: 0px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 1.1rem;
  width: max-content;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.media-strip-banner__viewport--wide .media-strip-banner__track {
  margin-left: 0;
  margin-right: 0;
}

.media-strip-banner__track--panning {
  animation: greenroot-media-strip-pan 26s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes greenroot-media-strip-pan {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(var(--strip-end, 0px), 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .media-strip-banner__track--panning {
    animation: none;
    transform: none;
    will-change: auto;
  }
}

.media-strip-banner__link {
  display: block;
  flex: 0 0 auto;
  width: 320px;
  height: 320px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(26, 46, 28, 0.12);
  line-height: 0;
  cursor: zoom-in;
  background: transparent;
  font: inherit;
  color: inherit;
}

.media-strip-banner__link:hover {
  box-shadow: 0 6px 16px rgba(26, 46, 28, 0.18);
  transform: translateY(-1px);
}

.media-strip-banner__link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.media-strip-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

@media (max-width: 900px) {
  .media-strip-banner__link {
    width: 240px;
    height: 240px;
    border-radius: 24px;
  }
}

@media (max-width: 520px) {
  .media-strip-banner__link {
    width: 180px;
    height: 180px;
    border-radius: 20px;
  }
}

body.media-strip-lightbox-open {
  overflow: hidden;
}

.media-strip-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem 4rem;
}

.media-strip-lightbox[hidden] {
  display: none;
}

.media-strip-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 18, 0.88);
  cursor: pointer;
}

.media-strip-lightbox__stage {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  touch-action: pan-y;
}

.media-strip-lightbox__img {
  display: block;
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.media-strip-lightbox__close,
.media-strip-lightbox__prev,
.media-strip-lightbox__next {
  position: absolute;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  transition: background 0.15s ease;
}

.media-strip-lightbox__close:hover,
.media-strip-lightbox__prev:hover,
.media-strip-lightbox__next:hover {
  background: rgba(0, 0, 0, 0.72);
}

.media-strip-lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.75rem;
}

.media-strip-lightbox__prev,
.media-strip-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  font-weight: 700;
}

.media-strip-lightbox__prev {
  left: 0.75rem;
}

.media-strip-lightbox__next {
  right: 0.75rem;
}

.media-strip-lightbox__prev:disabled,
.media-strip-lightbox__next:disabled {
  opacity: 0.35;
  cursor: default;
}

.media-strip-lightbox__counter {
  position: absolute;
  z-index: 2;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
}
