/*
Theme Name: AshTree Garden Centre
Theme URI: https://example.com/ashtree-garden-centre
Author: ChatGPT
Description: A responsive WordPress theme for a garden centre, styled around the AshTree Garden Centre logo with deep greens, leaf tones and warm earthy browns. Includes a garden-centre homepage, WooCommerce support, menus, widget areas and Customizer options for contact details and hero text.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ashtree-garden-centre
Tags: custom-logo, custom-menu, featured-images, footer-widgets, threaded-comments, blog, e-commerce, block-patterns, editor-style
*/

:root {
  --atgc-green-dark: #006030;
  --atgc-green: #007338;
  --atgc-green-mid: #2f8050;
  --atgc-green-soft: #e7f1e8;
  --atgc-leaf: #74a781;
  --atgc-brown: #351610;
  --atgc-brown-soft: #7a5a45;
  --atgc-cream: #fbf8ef;
  --atgc-paper: #ffffff;
  --atgc-ink: #1e281f;
  --atgc-muted: #5d6b60;
  --atgc-border: #dce8dc;
  --atgc-shadow: 0 18px 45px rgba(0, 96, 48, 0.12);
  --atgc-radius: 22px;
  --atgc-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--atgc-ink);
  background: var(--atgc-cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

a {
  color: var(--atgc-green-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus { color: var(--atgc-brown); }

button,
input,
select,
textarea { font: inherit; }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: var(--atgc-paper);
  clip: auto !important;
  clip-path: none;
  color: var(--atgc-green-dark);
  display: block;
  font-weight: 700;
  height: auto;
  left: 1rem;
  padding: 0.75rem 1rem;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

.atgc-wrap,
.site-main,
.site-footer__inner {
  width: min(var(--atgc-width), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--atgc-border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.admin-bar .site-header { top: 32px; }

.header-top {
  background: linear-gradient(90deg, var(--atgc-green-dark), var(--atgc-green));
  color: #fff;
  font-size: 0.88rem;
}

.header-top .atgc-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.45rem;
}

.header-top a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.header-top__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-branding-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 210px;
}

.site-logo img,
.custom-logo-link img {
  display: block;
  max-height: 82px;
  width: auto;
}

.site-title {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.05;
  color: var(--atgc-green-dark);
}

.site-title a { text-decoration: none; }

.site-description {
  color: var(--atgc-brown-soft);
  font-size: 0.95rem;
  margin: 0.15rem 0 0;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--atgc-green-dark);
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-weight: 800;
}

.primary-menu,
.primary-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.primary-menu li { position: relative; }

.primary-menu a {
  border-radius: 999px;
  color: var(--atgc-ink);
  display: block;
  font-weight: 750;
  padding: 0.6rem 0.85rem;
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  background: var(--atgc-green-soft);
  color: var(--atgc-green-dark);
}

.primary-menu ul {
  background: #fff;
  border: 1px solid var(--atgc-border);
  border-radius: 16px;
  box-shadow: var(--atgc-shadow);
  left: 0;
  min-width: 220px;
  opacity: 0;
  padding: 0.5rem;
  position: absolute;
  top: 100%;
  transform: translateY(8px);
  visibility: hidden;
  transition: 160ms ease;
  z-index: 60;
}

.primary-menu li:hover > ul,
.primary-menu li:focus-within > ul {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.header-cta {
  background: var(--atgc-brown);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 850;
  padding: 0.7rem 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta:hover,
.header-cta:focus {
  background: var(--atgc-green-dark);
  color: #fff;
}

.atgc-button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--atgc-green-dark);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  line-height: 1;
  padding: 0.95rem 1.35rem;
  text-decoration: none;
  transition: 160ms ease;
}

.atgc-button:hover,
.atgc-button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--atgc-brown);
  color: #fff;
  transform: translateY(-1px);
}

.atgc-button--brown { background: var(--atgc-brown); }
.atgc-button--brown:hover,
.atgc-button--brown:focus { background: var(--atgc-green-dark); }

.atgc-button--light {
  background: #fff;
  color: var(--atgc-green-dark);
}

.atgc-button--light:hover,
.atgc-button--light:focus {
  background: var(--atgc-green-soft);
  color: var(--atgc-green-dark);
}

.site-main { padding-block: 3rem; }

.hero {
  overflow: hidden;
  padding: 4.5rem 0;
  position: relative;
  background:
    radial-gradient(circle at 86% 8%, rgba(116, 167, 129, 0.38), transparent 32rem),
    linear-gradient(135deg, #fff 0%, var(--atgc-green-soft) 58%, #f4efe2 100%);
}

.hero::before {
  background: var(--atgc-green-dark);
  border-radius: 999px;
  content: "";
  height: 230px;
  opacity: 0.08;
  position: absolute;
  right: -60px;
  top: -80px;
  width: 230px;
}

.hero__grid {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 0.9fr;
}

.kicker {
  color: var(--atgc-green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

.hero h1,
.entry-title,
.page-title {
  color: var(--atgc-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero h1 {
  font-size: clamp(2.55rem, 6vw, 5.25rem);
  margin: 0;
  max-width: 920px;
}

.hero__text {
  color: var(--atgc-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin: 1.25rem 0 1.65rem;
  max-width: 680px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 96, 48, 0.14);
  border-radius: 32px;
  box-shadow: var(--atgc-shadow);
  padding: 1.25rem;
}

.hero-card__inner {
  background: linear-gradient(180deg, var(--atgc-green-dark), var(--atgc-green));
  border-radius: 26px;
  color: #fff;
  min-height: 390px;
  overflow: hidden;
  padding: 2rem;
  position: relative;
}

.hero-card__inner::after {
  background: rgba(255,255,255,0.12);
  border-radius: 100% 0 0 0;
  bottom: -55px;
  content: "";
  height: 245px;
  position: absolute;
  right: -40px;
  width: 245px;
}

.hero-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1;
  margin: 0 0 1rem;
}

.hero-card p { color: rgba(255,255,255,0.88); }

.hero-card ul {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.hero-card li {
  border-top: 1px solid rgba(255,255,255,0.22);
  font-weight: 760;
  padding: 0.8rem 0;
}

.info-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.info-card,
.atgc-card,
.post-card,
.widget,
.comments-area,
.comment-respond,
.woocommerce ul.products li.product,
.woocommerce div.product {
  background: var(--atgc-paper);
  border: 1px solid var(--atgc-border);
  border-radius: var(--atgc-radius);
  box-shadow: 0 10px 28px rgba(20, 54, 32, 0.07);
}

.info-card { padding: 1.25rem; }

.info-card strong {
  color: var(--atgc-brown);
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-card span {
  color: var(--atgc-ink);
  display: block;
  font-size: 1.05rem;
  font-weight: 850;
  margin-top: 0.25rem;
}

.section {
  padding-block: 4rem;
}

.section--cream { background: #fffdf7; }
.section--green {
  background: var(--atgc-green-dark);
  color: #fff;
}

.section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.section__header h2 {
  color: var(--atgc-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.section--green .section__header h2,
.section--green .kicker { color: #fff; }
.section--green .section__header p { color: rgba(255,255,255,0.82); }

.section__header p {
  color: var(--atgc-muted);
  margin: 0;
  max-width: 560px;
}

.card-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(4, 1fr);
}

.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.atgc-card {
  overflow: hidden;
  padding: 1.25rem;
  transition: 160ms ease;
}

.atgc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--atgc-shadow);
}

.atgc-card__icon {
  align-items: center;
  background: var(--atgc-green-soft);
  border-radius: 18px;
  color: var(--atgc-green-dark);
  display: inline-flex;
  font-size: 1.75rem;
  height: 58px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 58px;
}

.atgc-card h3,
.post-card h2,
.post-card h3 {
  color: var(--atgc-green-dark);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.atgc-card p,
.post-card p { color: var(--atgc-muted); }

.feature-panel {
  align-items: center;
  background: linear-gradient(135deg, var(--atgc-green-dark), var(--atgc-green-mid));
  border-radius: 34px;
  color: #fff;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.feature-panel h2 {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.feature-panel p { color: rgba(255,255,255,0.86); }

.feature-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 0.85rem 1rem;
}

.content-area {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.content-area--full { grid-template-columns: 1fr; }

.entry-header {
  margin-bottom: 1.5rem;
}

.entry-title,
.page-title {
  font-size: clamp(2.1rem, 5vw, 4rem);
  margin: 0 0 0.5rem;
}

.entry-meta,
.entry-footer,
.posted-on,
.byline {
  color: var(--atgc-muted);
  font-size: 0.92rem;
}

.entry-content {
  background: var(--atgc-paper);
  border: 1px solid var(--atgc-border);
  border-radius: var(--atgc-radius);
  box-shadow: 0 10px 28px rgba(20, 54, 32, 0.06);
  padding: clamp(1.25rem, 3vw, 2rem);
}

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

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--atgc-green-dark);
  line-height: 1.2;
}

.entry-content blockquote {
  border-left: 5px solid var(--atgc-green);
  color: var(--atgc-brown);
  font-size: 1.18rem;
  margin: 1.5rem 0;
  padding-left: 1rem;
}

.entry-content table {
  border-collapse: collapse;
  width: 100%;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--atgc-border);
  padding: 0.75rem;
}

.entry-content th { background: var(--atgc-green-soft); }


.section--editable-home {
  background: var(--atgc-cream);
}

.editable-home-content .entry-content,
.entry-content--home {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

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

.entry-content--home > .alignwide {
  margin-left: calc((860px - min(100vw - 2rem, var(--atgc-width))) / 2);
  margin-right: calc((860px - min(100vw - 2rem, var(--atgc-width))) / 2);
  max-width: var(--atgc-width);
}

.entry-content .wp-block-group.has-background {
  border-radius: var(--atgc-radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}

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

.entry-content .wp-block-column {
  min-width: 0;
}

.entry-content .wp-block-cover {
  border-radius: var(--atgc-radius);
  overflow: hidden;
}

.has-atgc-green-dark-color { color: var(--atgc-green-dark) !important; }
.has-atgc-green-color { color: var(--atgc-green) !important; }
.has-atgc-leaf-color { color: var(--atgc-leaf) !important; }
.has-atgc-green-soft-color { color: var(--atgc-green-soft) !important; }
.has-atgc-brown-color { color: var(--atgc-brown) !important; }
.has-atgc-cream-color { color: var(--atgc-cream) !important; }
.has-atgc-ink-color { color: var(--atgc-ink) !important; }

.has-atgc-green-dark-background-color { background-color: var(--atgc-green-dark) !important; }
.has-atgc-green-background-color { background-color: var(--atgc-green) !important; }
.has-atgc-leaf-background-color { background-color: var(--atgc-leaf) !important; }
.has-atgc-green-soft-background-color { background-color: var(--atgc-green-soft) !important; }
.has-atgc-brown-background-color { background-color: var(--atgc-brown) !important; }
.has-atgc-cream-background-color { background-color: var(--atgc-cream) !important; }
.has-atgc-ink-background-color { background-color: var(--atgc-ink) !important; }

.post-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}

.post-card {
  overflow: hidden;
}

.post-card__image img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.post-card__body { padding: 1.25rem; }

.sidebar {
  display: grid;
  align-content: start;
  gap: 1.25rem;
}

.widget { padding: 1.25rem; }
.widget-title,
.widget h2,
.widget h3 {
  color: var(--atgc-green-dark);
  margin-top: 0;
}

.widget ul { padding-left: 1.25rem; }

.pagination,
.nav-links,
.posts-navigation,
.post-navigation {
  margin-top: 2rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.page-numbers {
  background: #fff;
  border: 1px solid var(--atgc-border);
  border-radius: 999px;
  display: inline-block;
  margin: 0.15rem;
  padding: 0.45rem 0.8rem;
  text-decoration: none;
}

.page-numbers.current {
  background: var(--atgc-green-dark);
  color: #fff;
}

.site-footer {
  background: var(--atgc-brown);
  color: rgba(255,255,255,0.85);
  margin-top: 3rem;
  padding-top: 3rem;
}

.site-footer a { color: #fff; }

.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
}

.site-footer__brand img {
  background: #fff;
  border-radius: 18px;
  padding: 0.35rem;
  width: 190px;
}

.site-footer h2,
.site-footer h3,
.site-footer .widget-title {
  color: #fff;
  margin-top: 0;
}

.site-footer .widget {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.site-info {
  border-top: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  margin-top: 2.5rem;
  padding-block: 1.25rem;
}

.site-info .atgc-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
  background: #fff;
  border: 1px solid var(--atgc-border);
  border-radius: 14px;
  color: var(--atgc-ink);
  padding: 0.8rem 0.95rem;
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--atgc-green);
  box-shadow: 0 0 0 3px rgba(0, 115, 56, 0.12);
  outline: none;
}

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

.search-form label { flex: 1; }

.search-submit,
button[type="submit"],
input[type="submit"] {
  background: var(--atgc-green-dark);
  border: 0;
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 0.8rem 1rem;
}

.comments-area {
  margin-top: 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

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

.comment-body {
  border-bottom: 1px solid var(--atgc-border);
  padding: 1rem 0;
}

.woocommerce ul.products {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none; }

.woocommerce ul.products li.product {
  margin: 0 !important;
  padding: 1rem;
  width: auto !important;
}

.woocommerce span.onsale {
  background: var(--atgc-brown);
  border-radius: 999px;
}

.woocommerce div.product { padding: clamp(1.25rem, 3vw, 2rem); }

.error-404 .search-form,
.no-results .search-form { max-width: 640px; }

@media (max-width: 1000px) {
  .hero__grid,
  .feature-panel,
  .content-area,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .post-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-strip { grid-template-columns: 1fr; }

  .header-cta { display: none; }
}

@media (max-width: 760px) {
  .admin-bar .site-header { top: 0; }

  body { font-size: 16px; }

  .header-top .atgc-wrap,
  .site-branding-row,
  .section__header,
  .site-info .atgc-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-navigation {
    align-items: stretch;
    width: 100%;
  }

  .menu-toggle { display: inline-flex; }

  .primary-menu {
    background: #fff;
    border: 1px solid var(--atgc-border);
    border-radius: 20px;
    box-shadow: var(--atgc-shadow);
    display: none;
    flex-direction: column;
    margin-top: 0.75rem;
    padding: 0.5rem;
    width: 100%;
  }

  .main-navigation.toggled .primary-menu { display: flex; }

  .primary-menu ul {
    box-shadow: none;
    opacity: 1;
    position: static;
    transform: none;
    visibility: visible;
    width: 100%;
  }

  .primary-menu a { border-radius: 14px; }

  .hero { padding-block: 3rem; }

  .hero-card__inner { min-height: 280px; }

  .card-grid,
  .post-grid,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .search-form { flex-direction: column; }
}

/* Editable demo homepage blocks created from Appearance > AshTree Setup. */
.atgc-editable-demo {
  display: grid;
  gap: 2rem;
}

.atgc-editable-demo .wp-block-column {
  background: var(--atgc-paper);
  border: 1px solid var(--atgc-border);
  border-radius: var(--atgc-radius);
  box-shadow: 0 10px 28px rgba(0, 96, 48, 0.08);
  padding: 1.25rem;
}

.atgc-editable-demo .wp-block-column .wp-block-column {
  box-shadow: none;
}

.atgc-editable-demo .wp-block-separator {
  border-color: var(--atgc-border);
}
