/* Footer, breadcrumbs, sticky CTA, and the FAQ / setup / 404 / thank-you pages.
   Loaded on public storefront pages only. */

/* ------------------------------------------------------------------ breadcrumbs */

.breadcrumbs {
  margin: 0 0 18px;
  font-size: 13.5px;
}

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

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(233, 248, 238, 0.62);
}

.breadcrumbs li + li::before {
  content: "\203A";
  color: rgba(233, 248, 238, 0.4);
}

.breadcrumbs a {
  color: rgba(233, 248, 238, 0.82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.breadcrumbs a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.breadcrumbs [aria-current="page"] {
  color: #fff;
  font-weight: 700;
}

/* Inside a light content card the trail needs dark text instead. */
.content-page .breadcrumbs li,
.cart-page .breadcrumbs li,
.form-page .breadcrumbs li {
  color: var(--muted);
}

.content-page .breadcrumbs a,
.cart-page .breadcrumbs a,
.form-page .breadcrumbs a {
  color: var(--brand);
}

.content-page .breadcrumbs a:hover,
.cart-page .breadcrumbs a:hover,
.form-page .breadcrumbs a:hover {
  color: var(--brand-dark);
  border-bottom-color: var(--brand-light);
}

.content-page .breadcrumbs [aria-current="page"],
.cart-page .breadcrumbs [aria-current="page"],
.form-page .breadcrumbs [aria-current="page"] {
  color: var(--ink);
}

/* ---------------------------------------------------------------- hero CTA area */

.hero-cta-main {
  flex-direction: column;
  gap: 1px;
  padding: 13px 26px;
  font-size: 17px;
}

.hero-cta-sub {
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.82;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: rgba(233, 248, 238, 0.8);
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-trust li::before {
  content: "\2713";
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(79, 193, 198, 0.24);
  color: #9be9d0;
  font-size: 11px;
}

.shipping-service-links,
.catalogue-intro-links {
  margin: 10px 0 0;
  font-size: 14px;
}

/* ------------------------------------------------------------------- content pages */

.content-page {
  width: min(920px, 92vw);
  margin: 34px auto 60px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.content-page h1 {
  margin-top: 0;
}

.content-page a {
  color: var(--brand);
}

.content-page a:hover {
  color: var(--brand-dark);
}

.response-promise {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 26px;
  padding: 16px 20px;
  border-left: 4px solid var(--brand-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--brand-softer);
}

.response-promise strong {
  color: var(--brand-dark);
  font-size: 16.5px;
}

.response-promise p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.content-cta {
  margin-top: 34px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  text-align: center;
}

.content-cta h2 {
  margin-top: 0;
}

.content-cta .success-actions {
  justify-content: center;
}

/* --------------------------------------------------------------------------- FAQ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  overflow: hidden;
}

.faq-item[open] {
  border-color: rgba(31, 107, 74, 0.35);
  background: white;
  box-shadow: var(--shadow-xs);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-softer);
  color: var(--brand-dark);
  font-size: 18px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.faq-answer p:first-child {
  margin-top: 0;
}

.faq-answer ul {
  padding-left: 20px;
}

.faq-answer li {
  margin-bottom: 5px;
}

/* ------------------------------------------------------------------ setup guides */

.setup-case {
  margin-bottom: 30px;
  padding: 26px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-light);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.setup-case-head h2 {
  margin: 6px 0 6px;
  font-size: 25px;
}

.setup-case-flag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--brand-dark);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.setup-case-summary {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
}

.setup-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.setup-case-block {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: white;
  border: 1px solid var(--line);
}

.setup-case-block h3,
.setup-case h3 {
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.setup-case-block p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.setup-case-image,
.faq-image {
  display: block;
  width: 100%;
  max-height: 340px;
  margin: 0 0 20px;
  border-radius: var(--radius);
  object-fit: cover;
}

.faq-image {
  max-height: 260px;
  margin: 14px 0 0;
}

.setup-plant-list {
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--ink-soft);
  line-height: 1.85;
}

.setup-plant-list a {
  font-weight: 700;
}

.setup-case-outcome,
.setup-case-cost {
  margin: 0 0 8px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: white;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.65;
}

.setup-case-cost {
  background: var(--brand-softer);
  border-color: rgba(31, 107, 74, 0.24);
  font-weight: 600;
}

/* ------------------------------------------------------------- related plants */

.related-plants {
  width: min(1180px, 92vw);
  margin: 10px auto 50px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* No related plants found, or the plant id was invalid: collapse rather than
   leaving a styled empty card on the page. */
.related-plants:empty {
  display: none;
}

.related-plants h2 {
  margin: 0 0 4px;
  font-size: 23px;
}

.related-plants-note {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.related-plants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.related-plant {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.related-plant:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 107, 74, 0.35);
  box-shadow: var(--shadow-sm);
}

.related-plant img {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 6px;
  border-radius: var(--radius-sm);
  background: white;
  object-fit: cover;
}

.related-plant-name {
  font-weight: 800;
  line-height: 1.3;
}

.related-plant-price {
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
}

.related-plants-all {
  display: inline-block;
  font-weight: 700;
  color: var(--brand);
}

.detail-support-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* ------------------------------------------------------------------- error page */

.error-page-lead {
  max-width: 62ch;
  font-size: 16.5px;
  color: var(--ink-soft);
}

.error-search {
  margin: 24px 0 30px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.error-search label {
  display: block;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.error-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.error-search-row input {
  flex: 1 1 240px;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  font: inherit;
}

.error-search-row input:focus {
  outline: none;
  border-color: var(--brand-light);
  box-shadow: var(--ring);
}

.error-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.error-link-group h2,
.error-link-group h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.error-link-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.error-link-group li {
  margin-bottom: 7px;
}

.error-link-group a {
  font-weight: 600;
}

.thank-you-next {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.thank-you-next h2 {
  margin-top: 0;
  font-size: 20px;
}

/* ----------------------------------------------------------------- site footer */

.site-footer {
  margin-top: 60px;
  padding: 46px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 22, 16, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(233, 248, 238, 0.78);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 32px;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding-bottom: 38px;
}

.site-footer-logo {
  width: 132px;
  height: auto;
  margin-bottom: 14px;
}

.site-footer-brand p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 42ch;
}

.site-footer-promise {
  font-weight: 700;
  color: #9be9d0;
}

.site-footer-column h2 {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(233, 248, 238, 0.55);
}

.site-footer-column a {
  display: block;
  margin-bottom: 9px;
  color: rgba(233, 248, 238, 0.85);
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer-column a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 13.5px;
  color: rgba(233, 248, 238, 0.55);
}

.site-footer-base p {
  margin: 0;
}

.site-footer-base a {
  color: rgba(233, 248, 238, 0.8);
}

/* -------------------------------------------------------------- sticky mobile CTA */

.sticky-cta {
  display: none;
}

@media (max-width: 780px) {
  .sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(7, 24, 17, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.3);
  }

  .sticky-cta-button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
    color: #fff;
    font-weight: 800;
    text-decoration: none;
  }

  .sticky-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 50px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.07);
    color: #eafaf1;
    font-weight: 700;
    text-decoration: none;
  }

  .sticky-cta-count {
    display: grid;
    place-items: center;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: var(--gold);
    color: #2a1c02;
    font-size: 12px;
    font-weight: 800;
  }

  /* Keep the bar from covering the end of the page. */
  body.has-sticky-cta .site-footer {
    padding-bottom: 76px;
  }

  /* The drawer and back-to-top control must clear the bar too. */
  body.has-sticky-cta .back-to-top {
    bottom: 84px;
  }
}

@media (max-width: 900px) {
  .site-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .content-page {
    padding: 22px;
  }

  .setup-case {
    padding: 18px;
  }
}
