/*
Theme Name: Suntree Astra Child
Theme URI: https://suntreeworld.com/
Description: Lightweight Astra child theme for the Suntree B2B rattan materials website.
Author: Suntree
Template: astra
Version: 1.1.1
Text Domain: suntree-astra-child
*/

:root {
  --suntree-green-900: #173b2f;
  --suntree-green-800: #1f4d3b;
  --suntree-green-700: #2e634d;
  --suntree-sand-500: #c99a56;
  --suntree-sand-100: #efe5d5;
  --suntree-cream: #f7f5f0;
  --suntree-white: #ffffff;
  --suntree-ink: #1f2933;
  --suntree-muted: #5d6972;
  --suntree-line: #dfe5e1;
  --suntree-shadow: 0 14px 34px rgba(23, 59, 47, 0.10);
  --suntree-radius: 8px;
  --suntree-container: 1200px;
}

.suntree-homepage,
.suntree-homepage button,
.suntree-homepage input,
.suntree-homepage textarea,
.suntree-homepage select {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.suntree-homepage {
  color: var(--suntree-ink);
  overflow: clip;
}

.suntree-homepage-template .site-content > .ast-container {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0;
}

.suntree-homepage-template .content-area,
.suntree-homepage-template .suntree-homepage {
  width: 100%;
  margin: 0;
}

.suntree-homepage .entry-content {
  margin: 0;
}

.suntree-homepage .entry-content > * {
  margin-block: 0;
}

.suntree-section {
  padding: 96px 24px;
}

.suntree-container {
  width: min(100%, var(--suntree-container));
  margin-inline: auto;
}

.suntree-section-header {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.suntree-eyebrow {
  margin: 0 0 14px;
  color: var(--suntree-green-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: uppercase;
}

.suntree-homepage h1,
.suntree-homepage h2,
.suntree-homepage h3 {
  color: var(--suntree-green-900);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-weight: 760;
  letter-spacing: 0;
}

.suntree-homepage h1 {
  margin: 0 0 20px;
  font-size: 4.25rem;
  line-height: 1.04;
}

.suntree-homepage h2 {
  margin: 0 0 16px;
  font-size: 2.75rem;
  line-height: 1.12;
}

.suntree-homepage h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  line-height: 1.3;
}

.suntree-lead,
.suntree-section-header > p:last-child,
.suntree-copy > p:not(.suntree-eyebrow) {
  color: var(--suntree-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.suntree-copy > p:last-of-type {
  margin-bottom: 0;
}

.suntree-homepage .wp-block-buttons {
  gap: 12px;
  margin-top: 30px;
}

.suntree-homepage .wp-block-button__link {
  min-height: 50px;
  padding: 14px 24px;
  border: 1px solid var(--suntree-green-800);
  border-radius: 7px;
  background: var(--suntree-green-800);
  color: var(--suntree-white);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.25;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.suntree-homepage .wp-block-button__link:hover {
  border-color: var(--suntree-green-900);
  background: var(--suntree-green-900);
  transform: translateY(-1px);
}

.suntree-homepage .is-style-outline > .wp-block-button__link {
  background: transparent;
  color: var(--suntree-green-800);
}

.suntree-homepage .is-style-outline > .wp-block-button__link:hover {
  background: var(--suntree-green-800);
  color: var(--suntree-white);
}

.suntree-homepage a:focus-visible {
  outline: 3px solid var(--suntree-sand-500);
  outline-offset: 3px;
}

.suntree-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--suntree-radius);
  box-shadow: var(--suntree-shadow);
}

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

/* Hero */
.suntree-hero {
  position: relative;
  padding-top: 72px;
  padding-bottom: 0;
  background:
    linear-gradient(135deg, #f8f6f1 0%, #eef3ef 100%);
}

.suntree-hero__grid,
.suntree-split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(42px, 6vw, 84px);
}

.suntree-hero .suntree-lead {
  max-width: 650px;
  font-size: 1.12rem;
}

.suntree-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.suntree-proof-list li {
  padding: 9px 12px;
  border: 1px solid rgba(31, 77, 59, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--suntree-green-900);
  font-size: 0.86rem;
  font-weight: 700;
}

.suntree-media--hero {
  aspect-ratio: 4 / 4.35;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 28px 70px rgba(23, 59, 47, 0.18);
}

.suntree-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, var(--suntree-container));
  margin: 0 auto;
  border-radius: 8px 8px 0 0;
  background: var(--suntree-green-900);
  color: var(--suntree-white);
  transform: translateY(1px);
}

.suntree-stat {
  padding: 25px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.suntree-stat:last-child {
  border-right: 0;
}

.suntree-stat strong {
  display: block;
  margin-bottom: 4px;
  color: var(--suntree-white);
  font-size: 1.85rem;
  line-height: 1.15;
}

.suntree-stat span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

/* Product cards */
.suntree-products {
  background: var(--suntree-white);
}

.suntree-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.suntree-card {
  overflow: hidden;
  border: 1px solid var(--suntree-line);
  border-radius: 8px;
  background: var(--suntree-white);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.suntree-card:hover {
  border-color: rgba(31, 77, 59, 0.34);
  box-shadow: 0 16px 36px rgba(23, 59, 47, 0.09);
  transform: translateY(-3px);
}

.suntree-card .suntree-media {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  box-shadow: none;
}

.suntree-card__body {
  padding: 20px;
}

.suntree-card__body p {
  margin: 0 0 16px;
  color: var(--suntree-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.suntree-text-link {
  color: var(--suntree-green-800);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.suntree-text-link::after {
  content: " >";
}

/* Factory */
.suntree-factory {
  background: var(--suntree-cream);
}

.suntree-media--wide {
  aspect-ratio: 4 / 3;
}

.suntree-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.suntree-metric {
  padding: 20px;
  border: 1px solid var(--suntree-line);
  border-radius: 8px;
  background: var(--suntree-white);
}

.suntree-metric strong {
  display: block;
  color: var(--suntree-green-900);
  font-size: 1.65rem;
  line-height: 1.2;
}

.suntree-metric span {
  color: var(--suntree-muted);
  font-size: 0.84rem;
}

/* Customization */
.suntree-customization {
  background: var(--suntree-green-900);
}

.suntree-customization h2,
.suntree-customization .suntree-eyebrow {
  color: var(--suntree-white);
}

.suntree-customization .suntree-copy > p:not(.suntree-eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.suntree-customization .is-style-outline > .wp-block-button__link {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--suntree-white);
}

.suntree-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.suntree-feature {
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.suntree-feature strong {
  color: var(--suntree-white);
  font-size: 0.93rem;
}

/* Applications */
.suntree-applications {
  background: var(--suntree-white);
}

.suntree-application-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.suntree-application-card {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--suntree-green-900);
}

.suntree-application-card .suntree-media {
  position: absolute;
  inset: 0;
  border-radius: 0;
  box-shadow: none;
}

.suntree-application-card .suntree-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 41, 32, 0.92), rgba(16, 41, 32, 0.08) 70%);
  content: "";
}

.suntree-application-card__body {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px;
}

.suntree-application-card h3,
.suntree-application-card p {
  color: var(--suntree-white);
}

.suntree-application-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
}

/* Quality */
.suntree-quality {
  background: var(--suntree-cream);
}

.suntree-process-list {
  display: grid;
  gap: 13px;
  margin-top: 28px;
}

.suntree-process-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--suntree-line);
  border-radius: 8px;
  background: var(--suntree-white);
}

.suntree-process-number {
  display: grid;
  width: 34px;
  height: 34px;
  margin: 0;
  place-items: center;
  border-radius: 50%;
  background: var(--suntree-sand-100);
  color: var(--suntree-green-900);
  font-weight: 800;
}

.suntree-process-copy {
  min-width: 0;
}

.suntree-process-title {
  display: block;
  margin: 1px 0 3px;
  color: var(--suntree-green-900);
  font-weight: 800;
}

.suntree-process-copy > p:last-child {
  margin: 0;
  color: var(--suntree-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* Export */
.suntree-export {
  background: var(--suntree-white);
}

.suntree-market-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.suntree-market-list li {
  padding: 8px 11px;
  border-radius: 8px;
  background: var(--suntree-cream);
  color: var(--suntree-green-900);
  font-size: 0.83rem;
  font-weight: 700;
}

/* Final CTA */
.suntree-contact {
  padding-top: 82px;
  padding-bottom: 82px;
  background:
    linear-gradient(120deg, rgba(23, 59, 47, 0.98), rgba(31, 77, 59, 0.92)),
    var(--suntree-green-900);
}

.suntree-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 50px;
  align-items: center;
}

.suntree-contact h2,
.suntree-contact .suntree-eyebrow {
  color: var(--suntree-white);
}

.suntree-contact .suntree-lead {
  color: rgba(255, 255, 255, 0.72);
}

.suntree-contact .is-style-outline > .wp-block-button__link {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--suntree-white);
}

.suntree-contact-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.suntree-contact-card p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

.suntree-contact-card strong {
  display: block;
  color: var(--suntree-white);
  font-size: 1rem;
}

.suntree-contact-card p + p {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* Product category pages */
.suntree-category-hero {
  padding-top: 76px;
  background:
    radial-gradient(circle at 82% 15%, rgba(201, 154, 86, 0.22), transparent 28%),
    linear-gradient(135deg, #f8f6f1 0%, #edf3ee 100%);
}

.suntree-category-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: clamp(42px, 6vw, 82px);
  align-items: center;
}

.suntree-category-hero__image {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}

.suntree-category-intro,
.suntree-category-applications,
.suntree-category-faq {
  background: var(--suntree-white);
}

.suntree-category-buyers,
.suntree-category-advice {
  background: var(--suntree-cream);
}

.suntree-buyer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.suntree-info-card {
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--suntree-line);
  border-radius: 8px;
  background: var(--suntree-white);
  box-shadow: 0 10px 30px rgba(23, 59, 47, 0.04);
}

.suntree-info-card p,
.suntree-use-card p,
.suntree-buying-step > p:last-child {
  margin: 0;
  color: var(--suntree-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.suntree-category-specs {
  background: var(--suntree-green-900);
}

.suntree-category-specs h2,
.suntree-category-specs .suntree-eyebrow {
  color: var(--suntree-white);
}

.suntree-category-specs .suntree-section-header > p:last-child {
  color: rgba(255, 255, 255, 0.68);
}

.suntree-spec-table {
  overflow-x: auto;
  border-radius: 8px;
  background: var(--suntree-white);
  box-shadow: var(--suntree-shadow);
}

.suntree-spec-table table {
  width: 100%;
  min-width: 640px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
}

.suntree-spec-table th,
.suntree-spec-table td {
  padding: 18px 22px;
  border: 0;
  border-bottom: 1px solid var(--suntree-line);
  text-align: left;
  vertical-align: top;
}

.suntree-spec-table tr:last-child th,
.suntree-spec-table tr:last-child td {
  border-bottom: 0;
}

.suntree-spec-table th {
  width: 28%;
  color: var(--suntree-green-900);
  font-size: 0.92rem;
}

.suntree-spec-table td {
  color: var(--suntree-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.suntree-category-custom {
  background: #edf2ee;
}

.suntree-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.suntree-option {
  display: grid;
  min-height: 86px;
  padding: 18px;
  place-items: center;
  border: 1px solid rgba(31, 77, 59, 0.16);
  border-radius: 8px;
  background: var(--suntree-white);
  color: var(--suntree-green-900);
  text-align: center;
}

.suntree-option p {
  margin: 0;
  font-weight: 750;
}

.suntree-category-custom .wp-block-buttons {
  justify-content: center;
  margin-top: 34px;
}

.suntree-use-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.suntree-use-card {
  position: relative;
  min-height: 205px;
  padding: 60px 24px 24px;
  overflow: hidden;
  border: 1px solid var(--suntree-line);
  border-radius: 8px;
  background: var(--suntree-white);
}

.suntree-use-card::before {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: var(--suntree-sand-500);
  content: "";
}

.suntree-buying-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.suntree-buying-step {
  padding: 25px;
  border-radius: 8px;
  background: var(--suntree-white);
}

.suntree-step-number {
  display: grid;
  width: 38px;
  height: 38px;
  margin: 0 0 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--suntree-green-900);
  color: var(--suntree-white);
  font-weight: 800;
}

.suntree-faq-container {
  max-width: 900px;
}

.suntree-faq-list {
  display: grid;
  gap: 12px;
}

.suntree-faq-item {
  padding: 0 22px;
  border: 1px solid var(--suntree-line);
  border-radius: 8px;
  background: var(--suntree-white);
}

.suntree-faq-item summary {
  padding: 20px 34px 20px 0;
  color: var(--suntree-green-900);
  font-weight: 750;
  cursor: pointer;
}

.suntree-faq-item p {
  margin: 0;
  padding: 0 0 22px;
  color: var(--suntree-muted);
  line-height: 1.7;
}

.suntree-faq-item[open] {
  border-color: rgba(31, 77, 59, 0.35);
  box-shadow: 0 10px 26px rgba(23, 59, 47, 0.07);
}

.suntree-category-cta {
  padding-top: 80px;
  padding-bottom: 80px;
  background:
    var(--suntree-green-900);
}

.suntree-category-cta__inner {
  max-width: 820px;
  text-align: center;
}

.suntree-category-cta h2,
.suntree-category-cta .suntree-eyebrow {
  color: var(--suntree-white);
}

.suntree-category-cta .suntree-lead {
  color: rgba(255, 255, 255, 0.72);
}

.suntree-category-cta .wp-block-buttons {
  justify-content: center;
}

.suntree-category-cta .is-style-outline > .wp-block-button__link {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--suntree-white);
}

@media (max-width: 1100px) {
  .suntree-homepage h1 {
    font-size: 3.5rem;
  }

  .suntree-homepage h2 {
    font-size: 2.35rem;
  }

  .suntree-use-grid,
  .suntree-buying-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 921px) {
  .suntree-homepage h1 {
    font-size: 3rem;
  }

  .suntree-homepage h2 {
    font-size: 2.1rem;
  }

  .suntree-category-hero__grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .suntree-category-hero__image {
    width: min(100%, 680px);
  }

  .suntree-buyer-grid,
  .suntree-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .suntree-category-hero {
    padding-top: 46px;
  }

  .suntree-buyer-grid,
  .suntree-option-grid,
  .suntree-use-grid,
  .suntree-buying-grid {
    grid-template-columns: 1fr;
  }

  .suntree-info-card,
  .suntree-use-card {
    min-height: 0;
  }

  .suntree-spec-table th,
  .suntree-spec-table td {
    padding: 15px 16px;
  }

  .suntree-category-cta {
    padding-top: 58px;
    padding-bottom: 58px;
    text-align: left;
  }

  .suntree-category-cta .wp-block-buttons {
    justify-content: stretch;
  }
}

@media (max-width: 1100px) {
  .suntree-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 921px) {
  .suntree-section {
    padding: 72px 22px;
  }

  .suntree-hero {
    padding-top: 54px;
    padding-bottom: 0;
  }

  .suntree-hero__grid,
  .suntree-split,
  .suntree-contact__grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .suntree-hero__grid .suntree-media {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .suntree-media--hero {
    aspect-ratio: 16 / 10;
    border-radius: 8px 8px 0 0;
  }

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

  .suntree-stat:nth-child(2) {
    border-right: 0;
  }

  .suntree-stat:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .suntree-application-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .suntree-contact-card {
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  .suntree-section {
    padding: 48px 18px;
  }

  .suntree-hero {
    padding-top: 34px;
    padding-bottom: 0;
  }

  .suntree-section-header {
    margin-bottom: 32px;
    text-align: left;
  }

  .suntree-homepage h1 {
    font-size: 2.45rem;
  }

  .suntree-homepage h2 {
    font-size: 1.95rem;
  }

  .suntree-homepage h3 {
    font-size: 1.1rem;
  }

  .suntree-proof-list {
    display: grid;
  }

  .suntree-homepage .wp-block-buttons,
  .suntree-homepage .wp-block-button,
  .suntree-homepage .wp-block-button__link {
    width: 100%;
  }

  .suntree-homepage .wp-block-button__link {
    display: grid;
    place-items: center;
  }

  .suntree-media--hero {
    aspect-ratio: 16 / 11;
  }

  .suntree-stats,
  .suntree-product-grid,
  .suntree-metric-grid,
  .suntree-feature-grid,
  .suntree-application-grid {
    grid-template-columns: 1fr;
  }

  .suntree-stat {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .suntree-stat:last-child {
    border-bottom: 0;
  }

  .suntree-application-card {
    min-height: 260px;
  }

  .suntree-contact {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .suntree-contact-card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .suntree-homepage *,
  .suntree-homepage *::before,
  .suntree-homepage *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
