/*
Theme Name: Town & Country Greenhouse
Theme URI: https://www.tandcgreenhouse.com
Author: Zehlm Web Development LLC
Author URI: https://www.zehlm.com/morganton-nc
Description: Custom theme for Town & Country Greenhouse with a display-only plant inventory.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: tc-greenhouse
*/

:root {
  --green: #48672f;
  --green-dark: #2f4a1f;
  --navy: #0c1b33;
  --navy-soft: #16294a;
  --gold: #b8924a;
  --gold-light: #d9b872;
  --white: #ffffff;
  --tint: #f3f6f2;
  --ink: #1d2733;
  --muted: #55606c;
  --line: #dde4dc;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(12, 27, 51, .10);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a {
  color: var(--green);
  text-underline-offset: 2px;
}

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: .6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap.narrow {
  max-width: 800px;
}

/* Headings: size comes from class so semantics never depend on styling */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 .6em;
}

h1, .h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2, .h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3, .h3 { font-size: 1.3rem; }
h4, .h4 { font-size: 1.1rem; }
h5, .h5 { font-size: 1.05rem; }
h6, .h6 { font-size: .95rem; font-weight: 400; }

p {
  margin: 0 0 1em;
}

/* Utility bar */
.utility {
  background: var(--navy);
  color: #e8edf5;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .85rem;
}

.utility .social-links {
  margin: 0;
  gap: .4rem;
  display: inline-flex;
  vertical-align: middle;
}

.utility .social-links a {
  width: 26px;
  height: 26px;
  font-size: .8rem;
  color: var(--gold-light);
  border-color: rgba(217, 184, 114, .6);
}

.utility-links {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.utility-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  justify-content: space-between;
  padding-top: .45rem;
  padding-bottom: .45rem;
}

.utility a {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 700;
}

.utility p {
  margin: 0;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}

.site-header.is-scrolled {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0, rgba(255, 255, 255, .12) 1px, rgba(255, 255, 255, 0) 1px, rgba(255, 255, 255, 0) 3px),
    repeating-linear-gradient(90deg, rgba(12, 27, 51, .035) 0, rgba(12, 27, 51, .035) 1px, rgba(12, 27, 51, 0) 1px, rgba(12, 27, 51, 0) 5px),
    linear-gradient(105deg, rgba(255, 255, 255, .78) 0%, rgba(244, 248, 242, .6) 45%, rgba(255, 255, 255, .74) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(1.7) brightness(1.06);
  backdrop-filter: blur(20px) saturate(1.7) brightness(1.06);
  border-bottom-color: rgba(184, 146, 74, .55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .75),
    inset 0 -1px 0 rgba(255, 255, 255, .35),
    0 10px 34px rgba(12, 27, 51, .2);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled {
    background: rgba(255, 255, 255, .95);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--green-dark);
}

.brand-mark {
  color: var(--green);
  display: inline-flex;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-dark);
}

.brand-sub {
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: var(--green);
  color: var(--white);
  border: 0;
  border-radius: var(--radius);
  padding: .55rem .9rem;
  font: 700 .95rem Arial, Helvetica, sans-serif;
  cursor: pointer;
  align-items: center;
  gap: .5rem;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  content: "";
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  transition: transform .25s ease, background .2s ease, top .25s ease;
}

.nav-toggle-bars::before { position: absolute; left: 0; top: -6px; }
.nav-toggle-bars::after { position: absolute; left: 0; top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.primary-nav ul,
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: .25rem;
  flex-wrap: wrap;
}

.primary-nav a {
  display: block;
  padding: .55rem .9rem;
  color: var(--navy);
  text-decoration: none;
  font: 700 .95rem Arial, Helvetica, sans-serif;
  border-radius: var(--radius);
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: .8rem 1.5rem;
  border-radius: var(--radius);
  font: 700 1rem Arial, Helvetica, sans-serif;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy); }
.btn-green { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* Hero and page hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--green-dark));
  color: var(--white);
  padding: 6rem 0;
  min-height: 460px;
  display: flex;
  align-items: center;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 27, 51, 1) 0%, rgba(12, 27, 51, .1) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  max-width: 18ch;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

.hero .lead {
  font-size: 1.25rem;
  max-width: 40rem;
  color: #eef4ef;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--green-dark));
  color: var(--white);
  padding: 2.5rem 0;
  border-bottom: 4px solid var(--gold);
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: .3em;
}

.page-hero .lead {
  margin: 0;
  max-width: 44rem;
  color: #e6efe8;
}

.post-meta {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 .5rem;
}

.page-hero .post-meta {
  color: #cfd8e3;
}

.breadcrumbs {
  font: .85rem Arial, Helvetica, sans-serif;
  margin-bottom: 1rem;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: .4rem;
  color: var(--gold-light);
}

.breadcrumbs a {
  color: var(--gold-light);
}

.breadcrumbs [aria-current] {
  color: #e6efe8;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-tight {
  padding: 2rem 0;
}

.section-tint {
  background: var(--tint);
}

.section-intro {
  max-width: 44rem;
  color: var(--muted);
}

.center {
  text-align: center;
  margin-top: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

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

.feature-list li {
  background: var(--white);
  border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.feature-list .h3 {
  display: block;
  margin-bottom: .25em;
  color: var(--green);
}

.feature-list p:last-child {
  margin-bottom: 0;
}

/* Inventory */
.item-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.item-card,
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.item-media {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--tint);
  overflow: hidden;
}

.item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-ph {
  width: 100%;
  height: 100%;
  min-height: 160px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint);
  color: var(--green);
}

.item-body {
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.item-title {
  margin-bottom: .35em;
}

.item-title a {
  color: var(--navy);
  text-decoration: none;
}

.item-title a:hover {
  color: var(--green);
  text-decoration: underline;
}

.item-desc {
  color: var(--muted);
  font-size: .98rem;
  flex: 1;
}

.item-price,
.price {
  font: 700 1.25rem Arial, Helvetica, sans-serif;
  color: var(--green);
  margin: 0 0 .5rem;
}

.price {
  font-size: 1.8rem;
}

.item-size {
  color: var(--muted);
  font-size: .9rem;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: .2rem .7rem;
  border-radius: 999px;
  font: 700 .8rem Arial, Helvetica, sans-serif;
  background: var(--green);
  color: var(--white);
}

.badge-limited { background: var(--gold); color: var(--navy); }
.badge-coming { background: var(--navy-soft); }
.badge-out { background: #6b7280; }

.item-photo img,
.item-photo .img-ph {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.item-cats .label {
  font-weight: 700;
}

.read-more {
  font: 700 .95rem Arial, Helvetica, sans-serif;
}

.chips ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.chips a {
  display: inline-block;
  padding: .4rem .95rem;
  border: 1px solid var(--green);
  border-radius: 999px;
  text-decoration: none;
  font: 700 .9rem Arial, Helvetica, sans-serif;
  color: var(--green);
}

.chips a:hover,
.chips a[aria-current] {
  background: var(--green);
  color: var(--white);
}

.chips .count {
  font-weight: 400;
}

.pagination ul {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
}

.pagination a,
.pagination span {
  display: inline-block;
  min-width: 2.5rem;
  text-align: center;
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font: 700 .95rem Arial, Helvetica, sans-serif;
}

.pagination .current {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.empty {
  padding: 2rem;
  background: var(--tint);
  border-radius: var(--radius);
  text-align: center;
}

/* Content */
.entry h2, .entry h3, .entry h4 {
  margin-top: 1.4em;
}

.entry ul,
.entry ol {
  padding-left: 1.4rem;
}

.post-photo img {
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.post-links {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* FAQ */
.faq {
  background: var(--tint);
}

.faq-list {
  display: grid;
  gap: .75rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item h4,
.faq-item .faq-heading {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

.faq-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 0;
  background: none;
  color: var(--green);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-trigger:hover .faq-q,
.faq-trigger:focus-visible .faq-q {
  text-decoration: underline;
}

.faq-trigger:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--white);
  transition: transform .2s ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-trigger[aria-expanded="true"] .faq-icon::after {
  transform: rotate(0deg);
}

.faq-panel {
  padding: 0 1.25rem 1.1rem;
}

.faq-panel[hidden] {
  display: none;
}

.faq-panel p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .faq-icon::before,
  .faq-icon::after { transition: none; }
}

/* CTA band */
.cta-band {
  background: var(--navy);
  color: #e8edf5;
  text-align: center;
  padding: 3.5rem 0;
  border-top: 4px solid var(--gold);
}

.cta-band .h2 {
  display: block;
  color: var(--white);
}

/* Contact */
.contact-line {
  margin: 0 0 .6rem;
}

.contact-details .label {
  font-weight: 700;
  color: var(--green);
}

.contact-form .field {
  margin: 0 0 1rem;
}

.contact-form label {
  display: block;
  font: 700 .95rem Arial, Helvetica, sans-serif;
  margin-bottom: .3rem;
  color: var(--navy);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: .75rem;
  font: 1rem Arial, Helvetica, sans-serif;
  border: 1px solid #b7c2b5;
  border-radius: var(--radius);
  background: var(--white);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  font-family: Arial, Helvetica, sans-serif;
}

.notice-ok { background: #e3f1e6; border: 1px solid var(--green); }
.notice-error { background: #fbe9e7; border: 1px solid #b3261e; }

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: #dfe9e2;
  border-top: 4px solid var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .95rem;
}

.site-footer a {
  color: var(--gold-light);
}

.site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5, .site-footer h6,
.site-footer .h2, .site-footer .h3, .site-footer .h4, .site-footer .h5, .site-footer .h6 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr .8fr 1.3fr;
  gap: 3rem;
  align-items: start;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

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

.footer-links li {
  margin-bottom: .4rem;
}

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, .15);
  text-align: center;
  padding: 1rem 20px;
}

.footer-logo {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 0 1.1rem;
}

.footer-base h2,
.footer-base h3,
.footer-base h4,
.footer-base h5,
.footer-base h6 {
  font-size: .95rem;
  font-weight: 400;
  color: #dfe9e2;
  margin: 0 0 .4rem;
}

.credit {
  margin: 0;
  font-size: .9rem;
}

.contact-address {
  font-style: normal;
  margin: 0 0 .8rem;
}

.contact-address > i,
.contact-line > i {
  color: var(--gold);
}

.social-links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  text-decoration: none;
  font-size: 1.1rem;
  transition: background .15s, color .15s;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: var(--gold);
  color: var(--navy);
}

.site-footer .btn-outline-dark {
  color: var(--gold-light);
  border-color: var(--gold);
}

.site-footer .btn-outline-dark:hover {
  background: var(--gold);
  color: var(--navy);
}

.contact-details .social-links a {
  color: var(--green);
  border-color: var(--green);
}

.contact-details .social-links a:hover {
  background: var(--green);
  color: var(--white);
}

/* Mobile */
@media (max-width: 800px) {
  .grid-2 { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0; min-height: 0; }
  .utility-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Header logo: stacked mark, large at the top and smaller once scrolled */
.brand-logo {
  height: 78px;
  width: auto;
  max-width: none;
  display: block;
  transition: height .3s ease;
}

.header-inner {
  transition: padding .3s ease;
}

.site-header.is-scrolled .brand-logo {
  height: 52px;
}

@media (max-width: 959px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
  }

  .brand-logo {
    height: 56px;
  }

  .site-header.is-scrolled .brand-logo {
    height: 44px;
  }

  .nav-toggle {
    display: inline-flex;
    padding: .5rem .75rem;
  }

  .primary-nav { display: none; width: 100%; }
  .primary-nav.is-open { display: block; padding-bottom: .75rem; }
  .primary-nav ul { flex-direction: column; }
  .site-header.is-scrolled .primary-nav.is-open a { color: var(--navy); }
  .site-header.is-scrolled .primary-nav.is-open .current-menu-item > a,
  .site-header.is-scrolled .primary-nav.is-open .current_page_item > a { color: var(--white); }
}

/* Home photo and award */
.about-photo {
  position: relative;
  margin: 0;
}

.about-photo img.photo {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-photo .award {
  position: absolute;
  left: -14px;
  bottom: -22px;
  width: 112px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(12, 27, 51, .3));
}

.feature-row {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-row li {
  background: var(--white);
  border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.feature-row .h3 {
  display: block;
  margin-bottom: .25em;
  color: var(--green);
}

.feature-row p:last-child {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .feature-row { grid-template-columns: 1fr; }
  .about-photo .award { width: 88px; left: 8px; bottom: -18px; }
}

/* Back to top */
.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--green);
  color: var(--white);
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(12, 27, 51, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .15s, color .15s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover,
.to-top:focus-visible {
  background: var(--gold);
  color: var(--navy);
}

/* Footer: social icons centered above the copyright, newsletter on the right */
.site-footer .footer-follow {
  margin-top: 1.5rem;
}

.footer-col .social-links {
  justify-content: flex-start;
  margin: .25rem 0 0;
}

.newsletter-text {
  margin: 0 0 .9rem;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.75rem;
}

.newsletter-form input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: .7rem .85rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  font: inherit;
}

.newsletter-form input[type="email"]::placeholder {
  color: #c9d6cc;
}

.newsletter-form input[type="email"]:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

.newsletter-form {
  flex-wrap: nowrap;
  gap: 0;
}

.newsletter-form input[type="email"] {
  flex: 1 1 auto;
  border-radius: 6px 0 0 6px;
}

.news-send {
  flex: 0 0 auto;
  width: 46px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0 6px 6px 0;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.05rem;
  cursor: pointer;
}

.news-send:hover,
.news-send:focus-visible {
  background: var(--gold-light);
}

.news-send:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.newsletter .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.newsletter .notice {
  margin: 0 0 .9rem;
  padding: .6rem .8rem;
  border-radius: 6px;
  color: var(--navy);
  font-size: .9rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.site-footer .footer-more {
  margin-top: 1.5rem;
}

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

.footer-hours li {
  margin-bottom: .4rem;
}

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 1.75rem 0 2rem;
}

.review {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid #dbe4d8;
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(12, 27, 51, .07);
}

.review-stars {
  margin: 0 0 .75rem;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: .1rem;
}

.review blockquote {
  flex: 1;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.review blockquote p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.review figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem .75rem;
  font: .9rem Arial, Helvetica, sans-serif;
}

.review-name {
  font-weight: 700;
  color: var(--navy);
}

.review-src {
  color: #5b6770;
}

.reviews .btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

@media (max-width: 1100px) {
  .review-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .review-grid { grid-template-columns: 1fr; }
}

/* Inventory search */
.item-search {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.25rem 0 0;
}

.item-search-field {
  position: relative;
  flex: 1 1 260px;
}

.item-search-field i {
  position: absolute;
  left: .95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  pointer-events: none;
}

.item-search input[type="search"],
.item-search select {
  width: 100%;
  height: 100%;
  min-height: 48px;
  padding: .7rem .9rem;
  border: 1px solid #b9c7b5;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font: 1rem Arial, Helvetica, sans-serif;
}

.item-search input[type="search"] {
  padding-left: 2.6rem;
}

.item-search input:focus-visible,
.item-search select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.item-search-cat {
  flex: 0 1 220px;
}

.item-search .btn {
  min-height: 48px;
}

.search-summary {
  margin: 1.25rem 0 0;
  font: 700 .95rem Arial, Helvetica, sans-serif;
  color: var(--green-dark);
}

@media (max-width: 640px) {
  .item-search-cat { flex: 1 1 100%; }
  .item-search .btn { flex: 1 1 100%; }
}

/* Inventory page hero with photo */
.page-hero.has-hero-img {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0;
}

.page-hero.has-hero-img .wrap {
  position: relative;
  z-index: 1;
}

.page-hero.has-hero-img h1,
.page-hero.has-hero-img .lead {
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

.page-hero.has-hero-img .breadcrumbs {
  text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}

@media (max-width: 800px) {
  .page-hero.has-hero-img { padding: 3rem 0; }
}

/* Plant tag look: the same layout as the printed tags in the greenhouse */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/oswald-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/oswald-latin-700-normal.woff2") format("woff2");
}

:root {
  --tag-brown: #8a6a3b;
  --tag-font: "Oswald", "Arial Narrow", Arial, Helvetica, sans-serif;
}

.plant-tag,
.tag-card {
  background: var(--green);
  padding: 14px;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.tag-panel,
.tag-card-panel {
  background: var(--white);
  border: 2px solid var(--tag-brown);
  outline: 1px solid rgba(138, 106, 59, .45);
  outline-offset: -6px;
  border-radius: 3px;
}

.tag-panel {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 1.75rem;
  padding: 1.5rem;
}

.tag-photo img,
.tag-photo .img-ph {
  display: block;
  width: 100%;
  border: 3px solid var(--green);
  border-radius: 2px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.tag-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tag-name {
  font: 700 2rem/1.1 var(--tag-font);
  color: var(--green-dark);
  margin: 0 0 .25rem;
}

.tag-name a {
  color: inherit;
  text-decoration: none;
}

.tag-name a:hover {
  text-decoration: underline;
}

.tag-botanical {
  font: 1.15rem Arial, Helvetica, sans-serif;
  color: #4b5b52;
  margin: 0 0 .75rem;
}

.tag-features {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font: 1.05rem Arial, Helvetica, sans-serif;
  color: var(--green-dark);
}

.tag-features li {
  position: relative;
  padding-left: 1.1rem;
  margin: 0 0 .25rem;
}

.tag-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .45rem;
  height: .45rem;
  background: var(--green);
  transform: rotate(45deg);
}

.tag-size {
  font: 700 1.5rem var(--tag-font);
  color: var(--green-dark);
  margin: auto 0 0;
}

.tag-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 .75rem;
}

.tag-price {
  font: 700 3.6rem/1 var(--tag-font);
  color: var(--green);
}

.tag-zone {
  font: 700 .95rem/1.2 var(--tag-font);
  color: var(--green-dark);
  text-align: right;
  padding-bottom: .4rem;
}

.tag-icons {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem .5rem;
}

.tag-icons li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  text-align: center;
  color: var(--tag-brown);
  font-size: 1.6rem;
}

.tag-icons li span {
  font: .68rem/1.15 Arial, Helvetica, sans-serif;
  color: #5b6770;
}

.tag-icons .tag-svg {
  width: 1.6rem;
  height: 1.6rem;
}

.tag-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1.25rem;
  font: 700 1.05rem var(--tag-font);
  color: var(--green-dark);
  margin-top: auto;
}

.tag-mark {
  margin-left: auto;
  height: auto;
  width: 120px;
}

.item-info {
  margin-top: 1.75rem;
}

/* Cards in the inventory grid use the same tag look in a smaller size */
.tag-card {
  padding: 8px;
  border: 0;
  border-top: 0;
}

.tag-card-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px;
  outline-offset: -5px;
}

.tag-card .item-media {
  border: 3px solid var(--green);
  border-radius: 2px;
  aspect-ratio: 1 / 1;
}

.tag-card .item-body {
  padding: .85rem .35rem .35rem;
}

.tag-card .tag-name {
  font-size: 1.35rem;
  margin: 0 0 .2rem;
}

.tag-card .tag-botanical {
  font-size: .95rem;
  margin: 0 0 .4rem;
}

.tag-card .tag-size {
  font-size: 1.1rem;
  margin: 0 0 .1rem;
}

.tag-card .tag-price-row {
  margin: 0 0 .5rem;
  align-items: baseline;
}

.tag-card .tag-price {
  font-size: 2.3rem;
}

.tag-card .tag-zone {
  padding: 0;
}

.tag-icons-sm {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .6rem;
  margin: 0 0 .65rem;
  font-size: 1.1rem;
}

.tag-icons-sm .tag-svg {
  width: 1.1rem;
  height: 1.1rem;
}

.tag-card .item-meta {
  margin: 0 0 .75rem;
}

.tag-card-cta {
  margin: auto 0 0;
}

.btn-sm {
  padding: .55rem 1.1rem;
  font-size: .95rem;
}

.btn-sm.btn-green {
  width: 100%;
  text-align: center;
}

@media (max-width: 800px) {
  .tag-panel { grid-template-columns: 1fr; gap: 1.25rem; padding: 1rem; }
  .tag-photo img, .tag-photo .img-ph { aspect-ratio: 4 / 3; }
  .tag-name { font-size: 1.7rem; }
  .tag-price { font-size: 3rem; }
  .plant-tag { padding: 10px; }
}

/* Photo band */
.feature-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--green-dark));
  color: var(--white);
  padding: 5rem 0;
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
}

.fb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 27, 51, 1) 0%, rgba(12, 27, 51, .1) 100%);
}

.feature-band:not(.has-img) .fb-shade {
  display: none;
}

.fb-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
}

.fb-inner > * {
  max-width: 40rem;
}

.feature-band h2,
.feature-band h3,
.feature-band h4,
.feature-band h5,
.feature-band h6 {
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.fb-text {
  font-size: 1.15rem;
  color: #eef4ef;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

.fb-plants {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.fb-plants li {
  padding: .3rem .85rem;
  border: 1px solid rgba(217, 184, 114, .8);
  border-radius: 999px;
  background: rgba(12, 27, 51, .45);
  color: var(--gold-light);
  font: 700 .9rem Arial, Helvetica, sans-serif;
}

.feature-band .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

@media (max-width: 800px) {
  .feature-band { padding: 3.5rem 0; }
  .fb-shade { background: rgba(12, 27, 51, .78); }
}

/* Map */
.map-frame {
  margin: 1.5rem 0;
  border: 4px solid var(--green);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

@media (max-width: 800px) {
  .map-frame iframe { height: 320px; }
}

/* Footer award */
.footer-award {
  margin: 1.5rem 0 0;
  text-align: center;
}

.footer-award img {
  display: inline-block;
  width: clamp(140px, 70%, 220px);
  height: auto;
}

@media (max-width: 800px) {
  .footer-award { text-align: left; }
  .footer-award img { width: 150px; }
}

.contact-form .field-check label {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-weight: 400;
}

.contact-form .field-check input {
  width: auto;
  margin-top: .3rem;
}

.contact-form .cf-turnstile {
  margin: 0 0 1rem;
}

/* Inventory page top strip */
.invtop { background: var(--tint, #f3f5f0); border-bottom: 1px solid var(--line); }
.invtop-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.invtop-help p { margin: 0 0 .9rem; }
.invtop-tips { margin: 0 0 1.2rem; padding-left: 1.2rem; }
.invtop-tips li { margin: 0 0 .4rem; }
.invtop-label { font: 700 .85rem Arial, Helvetica, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--green); margin: 1.2rem 0 .6rem; }
.invtop-legend { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .4rem .6rem; font: .9rem Arial, Helvetica, sans-serif; }
.invtop-legend li { display: flex; align-items: center; gap: .55rem; }
.invtop-ic { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--green); color: var(--white); font-size: .85rem; flex: none; }
.invtop-ic .tag-svg { width: 1em; height: 1em; }
.invtop-call { margin: 0; }
.invtop-feat { max-width: 380px; width: 100%; margin: 0 auto; }
.invtop-feat .invtop-label { margin-top: 0; text-align: center; }
.invtop-feat-label { display: block; }
.invtop-slide[hidden] { display: none; }
.invtop-note { margin: .8rem 0 0; text-align: center; font-weight: 700; color: var(--green); }
.invtop-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .8rem; font: 700 .9rem Arial, Helvetica, sans-serif; }
.invtop-btn { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: var(--green); color: var(--white); cursor: pointer; font-size: 1rem; }
.invtop-btn:hover { background: var(--navy); }
.invtop-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.invtop-solo .invtop-help { max-width: 760px; }
@media (min-width: 820px) {
  .invtop-grid:not(.invtop-solo) { grid-template-columns: 1.4fr 1fr; gap: 3rem; }
}

.invtop-date { margin: 0 0 .7rem; text-align: center; font: 700 1rem Arial, Helvetica, sans-serif; color: var(--navy); }

/* Top bar on phones: drop the hours (they are in the footer and on the contact page) and keep phone and icons on one line */
@media (max-width: 800px) {
  .utility-hours { display: none; }
  .utility-links { flex-wrap: nowrap; justify-content: center; }
  .utility-phone { white-space: nowrap; }
  .utility .social-links { flex-wrap: nowrap; }
}

/* Plant card carousel: phones 1 across, tablets 2 across, computers 4 across when there are many plants */
.car-nav { display: none; align-items: center; justify-content: center; gap: 1rem; margin-top: .9rem; font: 700 .9rem Arial, Helvetica, sans-serif; }
.car-nav.is-idle { display: none !important; }
.item-grid[data-carousel] { position: relative; }
.item-grid[data-carousel]:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 1023px) {
  .item-grid.is-car-m { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding-bottom: .5rem; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .item-grid.is-car-m > .item-card { flex: 0 0 84%; scroll-snap-align: start; }
  .item-grid.is-car-m + .car-nav { display: flex; }
}
@media (min-width: 701px) and (max-width: 1023px) {
  .item-grid.is-car-m { gap: 1.25rem; }
  .item-grid.is-car-m > .item-card { flex: 0 0 calc((100% - 1.25rem) / 2); }
}
@media (min-width: 1024px) {
  .item-grid.is-car-d { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.5rem; padding-bottom: .5rem; }
  .item-grid.is-car-d > .item-card { flex: 0 0 calc((100% - 4.5rem) / 4); scroll-snap-align: start; }
  .item-grid.is-car-d + .car-nav { display: flex; }
}

/* About page facts and plant boxes: icons (front end only, the editor does not load the icon font) */
.tcg-fact::before,
.tcg-grow-card::before {
  content: var(--ic);
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: .7rem;
  border-radius: 50%;
  background: var(--tint);
  color: var(--green);
  font-size: 1.15rem;
  line-height: 1;
}
.tcg-fact::before { background: #ffffff; }
.fact-year { --ic: "\f073"; }
.fact-family { --ic: "\f004"; }
.fact-walk { --ic: "\e00d"; }
.fact-advice { --ic: "\f086"; }
.grow-tree { --ic: "\f1bb"; }
.grow-shrub { --ic: "\f5bb"; }
.grow-flower { --ic: "\f185"; }
.grow-veg { --ic: "\f787"; }
.grow-succ { --ic: "\f06c"; }
.grow-season { --ic: "\f6c4"; }

/* Plants that come in more than one size: each size over its price, like the printed tag */
.tag-options {
  list-style: none;
  margin: 0 0 .75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
  align-items: flex-end;
}

.tag-options li { display: flex; flex-direction: column; }

.tag-opt-size {
  font: 700 1.5rem var(--tag-font);
  color: var(--green-dark);
}

.tag-opt-price {
  font: 700 2.8rem/1 var(--tag-font);
  color: var(--green);
}

.tag-zone-line { text-align: left; margin: 0 0 .75rem; padding: 0; }

@media (max-width: 520px) {
  .tag-opt-price { font-size: 2.3rem; }
  .tag-options { gap: .5rem 1.25rem; }
}

/* Page top photos sit lower in the band so flowers show, not signs on the wall */
.hero-img-page { object-position: 50% 68%; }

/* Other Items share the plant tag. Extra photos and the small facts under the description. */
.item-gallery {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: .75rem;
}

.item-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.item-specs {
  list-style: none;
  margin: .75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
}

.item-usage { margin-top: 1rem; }
.item-usage .label { margin: 0 0 .25rem; font-weight: 700; color: var(--green-dark); }

/* Choose-a-path boxes on the inventory page */
.inv-paths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.inv-path {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .4rem;
  padding: 1.5rem;
  border: 2px solid var(--green);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease;
}

.inv-path:hover,
.inv-path:focus-visible {
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  transform: translateY(-2px);
}

.inv-path-ico { font-size: 2rem; color: var(--green); line-height: 1; }
.inv-path-title { font: 700 1.6rem/1.2 var(--tag-font); color: var(--green-dark); }
.inv-path-text { font-size: 1.05rem; }
.inv-path-count { font-size: .95rem; opacity: .8; }
.inv-path .btn { margin-top: .5rem; pointer-events: none; }

@media (max-width: 640px) {
  .inv-paths-grid { grid-template-columns: 1fr; }
}
