/*
Theme Name: Growber Local
Description: Local Growber editorial theme for WordPress Studio.
Template: twentytwentyfive
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.2
Version: 0.4.14
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: growber-local
Tags: full-site-editing, accessibility-ready
*/

main.gb-home-main:has(.gb-video-hero) > .gb-shop-teaser {
  margin: 1.8rem auto 0;
  width: calc(100% - 3.2rem);
  max-width: 76rem;
  box-sizing: border-box;
  padding: 1.4rem 2.4rem;
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  text-align: left;
}
.gb-shop-teaser .gb-shop-teaser__image {
  display: block;
  width: 12rem;
  height: 9.6rem;
  object-fit: contain;
  background: transparent;
  border-radius: 1rem;
}
.gb-shop-teaser .gb-shop-teaser__copy h2 {
  margin: 0 0 .4rem;
  font-size: clamp(2rem, 2.3vw, 2.8rem);
  line-height: 1.2;
}
.gb-shop-teaser .gb-shop-teaser__copy p {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.4;
}
.gb-shop-teaser .gb-magazine-button {
  min-height: 4.8rem;
  padding: .6rem 2.2rem;
  font-size: 1.8rem;
  white-space: nowrap;
}
@media (max-width: 599px) {
  main.gb-home-main:has(.gb-video-hero) > .gb-shop-teaser {
    padding: 1.2rem 1.6rem;
    grid-template-columns: 7.68rem minmax(0, 1fr);
    gap: 1rem 1.4rem;
  }
  .gb-shop-teaser .gb-shop-teaser__image {
    grid-row: 1 / 3;
    width: 7.68rem;
    height: 10.8rem;
  }
  .gb-shop-teaser .gb-shop-teaser__copy p { font-size: 1.4rem; }
  .gb-shop-teaser .gb-magazine-button {
    grid-column: 2;
    justify-self: start;
    min-height: 4.4rem;
    padding: .4rem 1.8rem;
    font-size: 1.6rem;
  }
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/roboto-regular.woff2') format('woff2');
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/roboto-bold.woff2') format('woff2');
}

:root {
  --gb-ink: #17232f;
  --gb-text: #121212;
  --gb-green: #76bf43;
  --gb-footer-green: #78bd38;
  --gb-green-dark: #4d7f20;
  --gb-green-soft: #f6faf2;
  --gb-pink: #ec008c;
  --gb-border: #dce9d3;
  --gb-line: #b3b3b3;
  --gb-white: #fff;
  --gb-page-width: 1200px;
  --gb-shadow: 0 8px 26px rgba(23, 35, 47, .05);
}

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

html,
body {
  min-height: 100%;
}

body {
  background: var(--gb-white);
  color: var(--gb-text);
  font-family: Roboto, Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: .06rem;
  line-height: 1.8;
}

body > .wp-site-blocks {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

body > .wp-site-blocks > main.gb-main {
  flex: 1 0 auto;
  width: 100%;
  box-sizing: border-box;
}

body > .wp-site-blocks > footer.wp-block-template-part {
  margin-top: auto;
}

a {
  color: var(--gb-ink);
  text-decoration-thickness: .15rem;
  text-underline-offset: .3rem;
}

a:hover,
a:focus-visible {
  color: var(--gb-pink);
}

:where(a, button, summary):focus-visible {
  outline: .3rem solid var(--gb-pink);
  outline-offset: .4rem;
}

.gb-header {
  position: relative;
  z-index: 30;
  width: 100%;
  margin: 0;
  background: var(--gb-white);
}

.gb-header,
.gb-header *,
.gb-footer,
.gb-footer * {
  box-sizing: border-box;
}

.gb-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2.4rem 2.2rem;
}

.gb-logo {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  color: var(--gb-ink);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: .18rem;
  line-height: 1;
  text-decoration: none;
}

.gb-logo img {
  display: block;
  width: 19rem;
  height: auto;
  max-height: 5.2rem;
  object-fit: contain;
}

.gb-utilities {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.gb-utility-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  min-height: 4.4rem;
  padding: .8rem;
  border-radius: .8rem;
  color: var(--gb-ink);
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.gb-utility-link:hover {
  background: var(--gb-green-soft);
  color: var(--gb-green-dark);
}

.gb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .4rem;
  border-top: .1rem solid var(--gb-line);
  border-bottom: .1rem solid var(--gb-line);
  min-height: 8rem;
  padding: 1.7rem 2.4rem;
  background: var(--gb-green-soft);
}

.gb-nav > a,
.gb-nav > details > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 4.4rem;
  padding: 1rem .9rem;
  border-radius: .8rem;
  color: var(--gb-ink);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: .04rem;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
}

.gb-nav > a:hover,
.gb-nav > details > summary:hover,
.gb-nav > details[open] > summary {
  background: var(--gb-green-soft);
  color: var(--gb-green-dark);
}

.gb-nav details {
  position: relative;
}

.gb-nav summary {
  cursor: pointer;
  list-style: none;
}

.gb-nav summary::-webkit-details-marker {
  display: none;
}

.gb-chevron {
  display: block;
  flex: 0 0 1rem;
  width: 1rem;
  height: .6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gb-nav details[open] .gb-chevron {
  transform: rotate(180deg);
}

.gb-menu-panel {
  position: absolute;
  top: calc(100% + .4rem);
  left: 0;
  z-index: 40;
  display: grid;
  min-width: 29rem;
  max-width: calc(100vw - 3.2rem);
  padding: .7rem;
  border: .1rem solid #e6e6e6;
  border-radius: 1rem;
  background: var(--gb-white);
  box-shadow: 0 .5rem 1rem .2rem rgba(0, 0, 0, .1);
}

.gb-menu-panel a {
  display: block;
  padding: 1.2rem 1.4rem;
  border-left: .6rem solid transparent;
  color: var(--gb-ink);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
}

.gb-menu-panel a:hover,
.gb-menu-panel a:focus-visible {
  border-left-color: var(--gb-pink);
  background: var(--gb-green-soft);
  color: var(--gb-green-dark);
}

.gb-main {
  max-width: var(--gb-page-width);
  margin: 0 auto;
  padding: 4.8rem 3rem 6rem;
}

.gb-hero {
  max-width: 78rem;
  margin: 0 auto 3.6rem;
  text-align: center;
}

.gb-hero h1,
.gb-entry-header h1,
.gb-page-header h1 {
  margin: 0 0 1.2rem;
  color: var(--gb-ink);
  font-size: clamp(3.2rem, 5vw, 5.4rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}

.gb-hero p {
  margin: 0;
  color: #495664;
  font-size: 1.8rem;
}

.gb-query-grid .wp-block-post-template.gb-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gb-query-grid .wp-block-post-template.gb-card > .wp-block-post {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: .1rem solid var(--gb-border);
  border-radius: 1.8rem;
  background: var(--gb-white);
  box-shadow: var(--gb-shadow);
}

.gb-query-grid .gb-card .wp-block-post-featured-image {
  margin: 0;
}

.gb-query-grid .gb-card .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gb-query-grid .gb-card .wp-block-post-title,
.gb-query-grid .gb-card .wp-block-post-excerpt {
  margin-right: 2rem;
  margin-left: 2rem;
}

.gb-query-grid .gb-card .wp-block-post-title {
  margin-top: 1.8rem;
  margin-bottom: 0;
  font-size: 2.8rem;
  line-height: 1.2;
}

.gb-query-grid .gb-card .wp-block-post-excerpt {
  margin-top: 1.2rem;
  margin-bottom: 2rem;
  color: #495664;
}

.gb-query-grid .gb-card .wp-block-post-excerpt__more-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--gb-pink);
  font-weight: 700;
}

.gb-pagination {
  margin-top: 3.2rem;
}

.gb-entry-header,
.gb-page-header {
  max-width: 86rem;
  margin: 0 auto 3rem;
}

.gb-entry-header .wp-block-post-date {
  color: #5d6872;
  font-size: 1.4rem;
}

.gb-entry-content,
.gb-page-content {
  max-width: 86rem;
  margin: 0 auto;
}

.gb-entry-content > *,
.gb-page-content > * {
  max-width: 100%;
}

.gb-entry-content img,
.gb-page-content img {
  height: auto;
  border-radius: 1.2rem;
}

.gb-entry-content h2,
.gb-page-content h2 {
  margin-top: 3.6rem;
  color: var(--gb-green-dark);
  font-size: 2.8rem;
  line-height: 1.25;
}

.gb-entry-content h3,
.gb-page-content h3 {
  color: var(--gb-ink);
  font-size: 2.2rem;
}

.gb-button,
.wp-block-button__link {
  border-radius: 1rem;
  background: var(--gb-green);
  box-shadow: 0 .3rem #548f25;
  color: var(--gb-white);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .03rem;
  min-height: 4.6rem;
  padding: 1.2rem 2.4rem;
}

.gb-button:hover,
.gb-button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  background: #68ac2d;
  color: var(--gb-white);
}

.gb-footer {
  color: var(--gb-text);
}

.gb-footer-upper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 2.8rem 3rem;
  background: #f7f7f7;
  text-align: center;
}

.gb-footer-group h2 {
  margin: 0 0 .8rem;
  color: var(--gb-pink);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.3;
}

.gb-footer-group {
  width: 100%;
  max-width: var(--gb-page-width);
}

.gb-footer-group ul,
.gb-footer-policies ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .4rem 1.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gb-footer-group a,
.gb-footer-policies a {
  color: rgba(18, 18, 18, .75);
  font-size: 1.3rem;
  text-decoration: none;
}

.gb-footer-group a {
  display: inline-block;
  padding: .5rem 0;
  line-height: 1.3;
}

.gb-footer a:hover,
.gb-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: .4rem;
}

.gb-footer-policies {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 2.6rem 3rem 2.4rem;
  background: var(--gb-footer-green);
  color: var(--gb-white);
  text-align: center;
}

.gb-footer-policies .gb-social-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  padding: 0;
}

.gb-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  color: var(--gb-white);
  line-height: 1;
}

.gb-social-icon svg {
  display: block;
  width: 2rem;
  height: 2rem;
  fill: currentColor;
}

.gb-footer .gb-social-icon:hover {
  background: rgba(0, 0, 0, .1);
  text-decoration: none;
}

.gb-footer-copyright {
  margin: .8rem 0 .4rem;
  color: var(--gb-white);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.4;
}

.gb-footer-policies a {
  color: var(--gb-white);
  font-size: 1.5rem;
  font-weight: 500;
}

.gb-footer-policies > ul {
  max-width: var(--gb-page-width);
  margin: 0 auto;
}

.gb-footer-policies :focus-visible {
  outline-color: var(--gb-white);
}

@media (max-width: 749px) {
  body {
    font-size: 1.5rem;
    line-height: 1.8;
  }

  .gb-logo-row {
    padding: 2rem 1.6rem;
  }

  .gb-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .4rem;
    padding: 1.2rem 1.6rem;
  }

  .gb-nav > a,
  .gb-nav > details > summary {
    width: 100%;
    padding: 1rem .4rem;
    color: var(--gb-ink);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
  }

  .gb-nav > details {
    align-self: start;
  }

  .gb-menu-panel {
    min-width: 28rem;
  }

  .gb-menu-panel a {
    font-size: 1.5rem;
  }

  .gb-nav > details[open] > summary {
    color: #8ad243;
  }

  .gb-utilities {
    gap: 0;
  }

  .gb-utility-link {
    min-width: 4.4rem;
    padding-right: .4rem;
    padding-left: .4rem;
    font-size: 1.1rem;
  }

  .gb-main {
    padding: 3.6rem 1.6rem 5rem;
  }

  .gb-hero h1,
  .gb-entry-header h1,
  .gb-page-header h1 {
    font-size: 3.4rem;
  }

  .gb-hero p {
    font-size: 1.6rem;
  }

  .gb-query-grid .wp-block-post-template.gb-card {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .gb-query-grid .gb-card .wp-block-post-title {
    font-size: 2.3rem;
  }

  .gb-footer-upper {
    gap: 1.8rem;
    padding: 2.4rem 1.8rem 2rem;
  }

  .gb-footer-group a,
  .gb-footer-policies a {
    font-size: 1.3rem;
  }

  .gb-footer-group ul,
  .gb-footer-policies ul {
    column-gap: 1.6rem;
  }

  .gb-footer-group a,
  .gb-footer-policies > ul a {
    display: inline-block;
    padding: .7rem 0;
    line-height: 1.4;
  }

  .gb-footer-policies {
    padding: 2.4rem 1.8rem;
  }
}

@media (max-width: 359px) {
  .gb-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gb-nav > details .gb-menu-panel {
    right: 0;
    left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* Compact footers retain readable links and wrap only when space requires it. */
.gb-footer .gb-footer-upper { padding-top: 22px; padding-bottom: 22px; gap: 0; }
.gb-footer .gb-footer-policies { padding: .4rem 1.8rem; }
.gb-footer-policies .gb-footer-inline,
.gb-b8-footer .gb-footer-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 .8rem;
  width: 100%;
  max-width: var(--gb-page-width);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.gb-footer-inline li { display: inline-flex; align-items: center; gap: .8rem; margin: 0; padding: 0; }
.gb-footer-inline .gb-footer-pipe { flex: 0 0 auto; color: inherit; line-height: 1; }
.gb-footer-policies .gb-footer-inline a,
.gb-b8-footer .gb-footer-inline a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  padding: 0;
  color: inherit;
  font-size: 1.4rem;
  line-height: 1.4;
  white-space: nowrap;
}
.gb-footer-inline .gb-social-icon { flex: 0 0 4.4rem; width: 4.4rem; height: 4.4rem; }
.gb-footer-inline .gb-social-icon svg { width: 1.8rem; height: 1.8rem; fill: currentColor; }
.gb-footer-policies .gb-footer-inline .gb-footer-copyright,
.gb-b8-footer .gb-footer-inline .gb-footer-copyright { margin: 0; color: inherit; font-size: 1.4rem; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.gb-b8-footer .gb-footer-inline { max-width: var(--gb-b8-width); padding: .4rem 0; border-top: 1px solid #34472e; }
.gb-b8-footer .gb-footer-inline a:focus-visible { outline: 3px solid #b7ec91; outline-offset: 2px; }

.gb-nav[hidden], .gb-nav-toggle[hidden], .gb-nav > details[hidden] { display: none; }
@media (max-width: 749px) {
  .gb-header { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--gb-line); }
  .gb-logo-row { padding: 1.4rem 1.6rem; }
  .gb-logo img { width: 15rem; }
  .gb-nav-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 4.4rem; margin-right: 1.6rem; padding: .8rem 1.2rem; border: 1px solid var(--gb-border); border-radius: .8rem; background: var(--gb-green-soft); color: var(--gb-ink); font: 700 1.4rem/1.4 Roboto, Arial, sans-serif; cursor: pointer; }
  .gb-nav-toggle:focus-visible { outline: 3px solid var(--gb-pink); outline-offset: 3px; }
  .gb-nav { flex-basis: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; border-bottom: 0; }
  .gb-nav > details .gb-menu-panel { position: static; min-width: 0; max-width: 100%; margin-top: .4rem; }
  .gb-nav > details[open] { grid-column: 1 / -1; }
  .gb-nav > details[open] > summary { color: var(--gb-green-dark); }
  .gb-nav > details[open] .gb-menu-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gb-nav > details .gb-menu-panel a { white-space: normal; }
  .gb-entry-header h1 { overflow-wrap: anywhere; line-height: 1.18; }
  .gb-entry-content :is(img,video,iframe,table) { max-width: 100%; }
  .gb-entry-content :is(p,li,a) { overflow-wrap: anywhere; }
}
@media (max-width: 430px) {
  .gb-products-panel-copy { padding: 2.2rem 1.8rem; }
  .gb-products-cta { width: 100%; box-sizing: border-box; }
  .gb-video-actions { gap: .8rem .4rem; }
  .gb-video-actions .gb-video-external { padding-inline: 1rem; }
  .gb-video-actions .gb-video-shop { padding-inline: 1.4rem; }
}
