/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Gwendolyn:wght@700&family=Montserrat:wght@400;700&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(72, 59%, 45%);
  --first-color-alt: hsl(72, 75%, 38%);
  --gradient-color: linear-gradient(
    180deg,
    hsl(151, 61%, 21%),
    hsl(151, 80%, 28%)
  );
  --first-color-dark: hsl(151, 52%, 17%);
  --first-color-darker: hsl(151, 52%, 12%);
  --title-color: hsl(49, 96%, 91%);
  --text-color: hsl(99, 20%, 65%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --second-font: "Gwendolyn", cursive;
  --biggest-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: 0.938rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --smaller-font-size: 0.813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background: var(--gradient-color) no-repeat;
  color: var(--text-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: var(--z-fixed);
}

.nav,
.nav__logo,
.nav__list,
.nav__buttons {
  display: flex;
}

.nav {
  position: relative;
  height: var(--header-height);
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--title-color);
  font-weight: var(--font-bold);
  flex-direction: column;
  align-items: center;
}

.nav__logo span:nth-child(1) {
  color: var(--first-color);
  font-size: var(--h1-font-size);
  font-family: var(--second-font);
  transform: translateY(4px);
}

.nav__logo span:nth-child(2) {
  transform: translateY(-4px);
}

.nav__toggle,
.nav__close {
  display: inline-flex;
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    background: var(--gradient-color);
    width: 80%;
    height: 100%;
    box-shadow: -2px 0 12px hsla(0, 0%, 0%, 0.2);
    padding: 6rem 2rem 0;
    display: flex;
    flex-direction: column;
    row-gap: 5rem;
    transition: right 0.4s;
  }
}

.nav__list {
  flex-direction: column;
  row-gap: 2rem;
}

.nav__link {
  color: var(--text-color);
  font-weight: var(--font-bold);
  display: inline-flex;
  flex-direction: column;
  transition: color 0.4s;
}

.nav__link span {
  font-size: var(--smaller-font-size);
}

.nav__link:hover {
  color: var(--title-color);
}

.nav__buttons {
  align-items: center;
  column-gap: 1rem;
}

.nav__notification {
  position: relative;
  background-color: var(--first-color);
  width: 50px;
  height: 50px;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.4s;
}

.nav__bell {
  width: 32px;
}

.nav__notification:hover {
  background-color: var(--first-color-alt);
}

.nav__circle {
  width: 24px;
  height: 24px;
  background-color: hsl(0, 100%, 39%);
  color: var(--title-color);
  font-weight: var(--font-bold);
  font-size: var(--smaller-font-size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: absolute;
  top: -6px;
  right: -6px;
}

.nav__close {
  position: absolute;
  top: 1.15rem;
  right: 1.5rem;
}

/* Active link */
.active-link {
  color: var(--title-color);
}

.active-link span {
  color: var(--first-color);
}

/* Show menu */
.show-menu {
  right: 0;
}

/*=============== BUTTON ===============*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  font-weight: var(--font-bold);
  padding: 1.125rem 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 24px hsla(0, 0%, 0%, 0.2);
  transition: background-color 0.4s;
}

.button:hover {
  background-color: var(--first-color-alt);
}

.button__dark {
  background-color: var(--first-color-dark);
}

.button__dark:hover {
  background-color: var(--first-color-darker);
}

/*=============== HOME ===============*/
.home {
  height: 100vh;
  display: grid;
  align-items: center;
}

.home__container {
  position: relative;
  padding-block: 5.5rem 3rem;
  display: grid;
  row-gap: 6rem;
}

.home__img {
  width: 400px;
  transform: scale(1.2);
  transform-origin: top;
  justify-self: center;
}

.home__data {
  text-align: center;
}

.home__title {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-bold);
  color: var(--title-color);
  margin-bottom: 1rem;
}

.home__number,
.home__text {
  display: inline-grid;
}

.home__number {
  position: relative;
  place-items: center;
  margin-left: 0.75rem;
  width: 44px;
  height: 44px;
  background-color: var(--first-color-darker);
  border-radius: 50%;
  font-size: var(--h2-font-size);
  transform: translateY(-4px);
}

.home__number::after {
  content: "";
  position: absolute;
  width: 44px;
  height: 44px;
  border: 10px solid var(--first-color);
  border-radius: 50%;
  border-right-color: transparent;
  border-top-color: transparent;
  transform: rotate(45deg);
}

.home__description {
  margin-bottom: 2rem;
  color: var(--title-color);
}

.home__star,
.home__bell {
  position: absolute;
}

.home__bell {
  width: 50px;
  top: 14rem;
  right: -1.25rem;
  transform: rotate(30deg);
}

.home__star {
  width: 60px;
  bottom: 17rem;
  left: -3rem;
  transform: rotate(30deg);
}

.home__blob {
  position: absolute;
  width: 600px;
  height: 600px;
  background-color: var(--first-color-dark);
  border-radius: 4rem;
  transform: rotate(45deg);
  left: -23rem;
  top: 6rem;
  z-index: -1;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 360px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__buttons {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 1rem;
  }
}

/* For medium devices */
@media screen and (min-width: 400px) {
  .home__container {
    grid-template-columns: 360px;
    justify-content: center;
    row-gap: 3rem;
  }

  .home__img {
    transform: scale(1.1);
  }
}

/* For lower devices */
@media screen and (max-width: 968px) and (max-width: 720px) {
  .home {
    height: initial;
  }
}

/* For large devices */
@media screen and (min-width: 968px) {
  .nav__menu {
    width: 50%;
  }

  .home__container {
    grid-template-columns: repeat(2, 400px);
    align-items: center;
  }

  .home__data {
    text-align: initial;
  }

  .home__number {
    background-color: var(--first-color-dark);
  }

  .home__blob {
    width: 800px;
    height: 800px;
    left: -28rem;
  }
}

@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .nav__menu {
    width: 100%;
    display: flex;
    align-items: center;
  }

  .nav__list {
    margin-inline: auto;
    flex-direction: row;
    column-gap: 4.5rem;
  }

  .home__container {
    grid-template-columns: 650px 485px;
    padding-block: 6rem 0;
  }

  .home__img {
    width: 650px;
    transform: translateX(2rem) scale(1);
  }

  .home__data {
    transform: translateX(-2rem);
  }

  .home__number,
  .home__number::after {
    width: 52px;
    height: 52px;
  }

  .home__description {
    margin-bottom: 3rem;
  }

  .home__bell {
    width: 60px;
    top: initial;
    left: 2rem;
    bottom: 0;
  }

  .home__star {
    width: 70px;
    left: initial;
    right: 3rem;
    bottom: 10rem;
  }

  .home__blob {
    width: 1200px;
    height: 1200px;
    left: -48rem;
  }
}

@media screen and (min-width: 1600px) {
  .home__blob {
    left: -100%;
    top: 0;
  }
}

/*=============== SECTIONS ===============*/
.section {
  padding: 7rem 0 2rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  text-align: center;
  margin-bottom: 1.5rem;
}

.section__description {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/*=============== TREES SECTION ===============*/
.trees__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/*=============== MOBILE / TOUCH CAROUSEL (small screens) ===============*/
@media screen and (max-width: 900px) {
  /* carousel container to host nav buttons */
  .trees__carousel {
    position: relative;
    margin: 0 -1.5rem; /* extend to edges for edge-peek */
  }

  /* make the grid act like a horizontal track */
  .trees__grid {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    cursor: grab;
  }

  /* each card becomes a snap item with a fixed visible width so adjacent cards peek */
  .tree__card {
    flex: 0 0 80%;
    min-width: 95%;
    scroll-snap-align: center;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
  }

  .trees__grid.is-dragging {
    cursor: grabbing;
  }

  /* make hover transform subtle on touch devices */
  .tree__card:active,
  .tree__card.is-dragging {
    transform: translateY(-4px) scale(0.996);
  }

  /* nav buttons overlay */
  .trees__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.35);
    color: white;
    border: none;
    z-index: 20;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s;
    opacity: 0.95;
  }

  .trees__nav:hover {
    transform: translateY(-50%) scale(1.06);
    opacity: 1;
  }
  .trees__nav--prev {
    left: 6px;
  }
  .trees__nav--next {
    right: 6px;
  }

  /* hint text — small badge to encourage swiping */
  .trees__swipe-hint {
    position: absolute;
    right: 1.5rem;
    bottom: -18px;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.02)
    );
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    color: var(--title-color);
    font-weight: var(--font-bold);
    font-size: 0.875rem;
    z-index: 30;
    transform: translateY(0);
    pointer-events: none;
    opacity: 0.95;
  }

  /* subtle overlay at edges to emphasize there's more to scroll */
  .trees__carousel::after,
  .trees__carousel::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 10;
  }

  .trees__carousel::before {
    left: 0;
    background: linear-gradient(90deg, rgba(17, 17, 17, 0.65), transparent);
  }
  .trees__carousel::after {
    right: 0;
    background: linear-gradient(270deg, rgba(17, 17, 17, 0.65), transparent);
  }

  /* Hide native scrollbars visually while preserving functionality */
  .trees__grid::-webkit-scrollbar {
    height: 10px;
  }
  .trees__grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
  }
}

.tree__card {
  background-color: var(--first-color-dark);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s;
  box-shadow: 0 4px 16px hsla(0, 0%, 0%, 0.1);
}

.tree__card:hover {
  transform: translateY(-5px);
}

.tree__image {
  margin-bottom: 1rem;
}

.tree__image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.tree__name {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: 0.5rem;
}

.tree__description {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.tree__price {
  font-size: var(--h2-font-size);
  grid-template-columns: 1fr;
  gap: 3rem;
}

.about__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature {
  text-align: center;
  padding: 1.5rem;
}

.feature i {
  font-size: 2.5rem;
  color: var(--first-color);
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: 0.5rem;
}

.about__image img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 4px 16px hsla(0, 0%, 0%, 0.1);
}

/*=============== TESTIMONIALS SECTION ===============*/
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial {
  background-color: var(--first-color-dark);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 16px hsla(0, 0%, 0%, 0.1);
}

.testimonial__content {
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial__author h4 {
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.testimonial__author span {
  font-size: var(--smaller-font-size);
  color: var(--first-color);
}

/*=============== CONTACT SECTION ===============*/
.contact__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact__details {
  display: grid;
  gap: 1.5rem;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__item i {
  font-size: 1.5rem;
  color: var(--first-color);
}

.contact__item h3 {
  color: var(--title-color);
  margin-bottom: 0.5rem;
}

.contact__form {
  background-color: var(--first-color-dark);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 16px hsla(0, 0%, 0%, 0.1);
}

.contact__form h3 {
  color: var(--title-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.form__group {
  margin-bottom: 1.5rem;
}

.form__group input,
.form__group textarea {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 0.5rem;
  background-color: var(--first-color-darker);
  color: var(--text-color);
  font-family: var(--body-font);
}

.form__group input:focus,
.form__group textarea:focus {
  outline: 2px solid var(--first-color);
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--first-color-darker);
  padding: 3rem 0 1rem;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__section h3 {
  color: var(--title-color);
  margin-bottom: 1rem;
}

.footer__section ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__section a {
  color: var(--text-color);
  transition: color 0.3s;
}

.footer__section a:hover {
  color: var(--first-color);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--first-color-dark);
  border-radius: 50%;
  color: var(--title-color);
  transition: background-color 0.3s;
}

.footer__social a:hover {
  background-color: var(--first-color);
}

.footer__bottom {
  text-align: center;
  padding-top: 2rem;
  margin-bottom: 1.5rem;
  /* border-top: 1px solid var(--first-color-dark); */
}

/*=============== BREAKPOINTS ===============*/
@media screen and (min-width: 968px) {
  .about__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .contact__container {
    grid-template-columns: 1fr 1fr;
  }

  .section__title {
    text-align: left;
  }

  .section__description {
    text-align: left;
  }
}

/*=============== SCROLLBAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: hsl(151, 52%, 12%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(151, 52%, 20%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(151, 52%, 25%);
}

/*=============== LIVE CHAT ===============*/
.chat-cta {
  margin-top: 2rem;
  text-align: center;
  padding: 1rem;
  background-color: var(--first-color-dark);
  border-radius: 1rem;
}

.chat-cta-button {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tree-chat-button {
  width: 100%;
  background: transparent;
  border: 2px solid var(--first-color);
  color: var(--first-color);
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: var(--font-bold);
}

.tree-chat-button:hover {
  background-color: var(--first-color);
  color: var(--first-color-darker);
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  height: 500px;
  background: var(--gradient-color);
  border-radius: 1rem;
  box-shadow: 0 5px 25px hsla(0, 0%, 0%, 0.3);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-widget.active {
  display: flex;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--first-color-dark);
  border-bottom: 1px solid var(--first-color-darker);
}

.chat-agent {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--first-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-info h4 {
  color: var(--title-color);
  font-size: var(--normal-font-size);
  margin-bottom: 0.25rem;
}

.status {
  font-size: var(--smaller-font-size);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.status.online {
  color: var(--first-color);
}

.status.online::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--first-color);
  border-radius: 50%;
}

.chat-close {
  background: none;
  border: none;
  color: var(--title-color);
  font-size: 1.25rem;
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.message.agent-message {
  align-self: flex-start;
}

.message.user-message {
  align-self: flex-end;
}

.message-content {
  padding: 0.75rem;
  border-radius: 1rem;
  position: relative;
}

.agent-message .message-content {
  background-color: var(--first-color-dark);
  border-top-left-radius: 0;
}

.user-message .message-content {
  background-color: var(--first-color);
  border-top-right-radius: 0;
}

.message-time {
  font-size: var(--smaller-font-size);
  color: var(--text-color);
  margin-top: 0.25rem;
  align-self: flex-end;
}

.user-message .message-time {
  align-self: flex-end;
}

.chat-input {
  display: flex;
  padding: 1rem;
  gap: 0.5rem;
  border-top: 1px solid var(--first-color-dark);
}

.chat-input input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 2rem;
  background-color: var(--first-color-dark);
  color: var(--text-color);
  font-family: var(--body-font);
}

.chat-input input:focus {
  outline: 2px solid var(--first-color);
}

.chat-input button {
  background-color: var(--first-color);
  color: var(--first-color-darker);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.chat-input button:hover {
  background-color: var(--first-color-alt);
}

.chat-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient-color);
  color: var(--title-color);
  padding: 1rem;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  box-shadow: 0 5px 25px hsla(0, 0%, 0%, 0.2);
  z-index: 999;
  transition: transform 0.3s;
  display: none;
}

.chat-toggle:hover {
  transform: scale(1.05);
}

.chat-toggle-icon {
  width: 40px;
  height: 40px;
  background-color: var(--first-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--first-color-darker);
}

/* Quick Questions */
.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.quick-question {
  background-color: var(--first-color-dark);
  border: none;
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: var(--smaller-font-size);
  cursor: pointer;
  transition: background-color 0.3s;
}

.quick-question:hover {
  background-color: var(--first-color);
  color: var(--first-color-darker);
}

/* Order Form */
.order-form {
  background-color: var(--first-color-dark);
  padding: 1.5rem;
  border-radius: 1rem;
  margin-top: 1rem;
}

.order-form h4 {
  color: var(--title-color);
  margin-bottom: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: var(--title-color);
  margin-bottom: 0.5rem;
  font-size: var(--smaller-font-size);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background-color: var(--first-color-darker);
  color: var(--text-color);
  font-family: var(--body-font);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--first-color);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .chat-widget {
    width: calc(100vw - 2rem);
    height: 70vh;
    right: 1rem;
    bottom: 80px;
  }

  .form-row {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.chat-encouragement {
  background: var(--first-color-dark);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  margin: 3rem 0;
}

.expert-help i {
  font-size: 2.5rem;
  color: var(--first-color);
  margin-bottom: 1rem;
}

.expert-help h4 {
  color: var(--title-color);
  margin-bottom: 0.5rem;
}

/* header controls for trees section */
.trees__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.trees__controls select {
  background: var(--first-color-dark);
  color: var(--title-color);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.5rem 0.75rem;
  border-radius: 0.6rem;
  font-weight: var(--font-bold);
}

.trees__curr-indicator {
  color: var(--text-color);
  font-size: 0.9rem;
  margin-left: 0.6rem;
  opacity: 0.9;
}

/* pagination dots: keep only for smaller screens */
@media screen and (min-width: 900px) {
  .trees__dots {
    display: none;
  }
}

.trees__dots {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.trees__dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.trees__dots button.active {
  background: var(--first-color);
  transform: scale(1.25);
}

/* visually hidden helper */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
