/* GROOT overrides on top of Tooplate Barista Cafe (tooplate-barista.css) */

:root {
  --primary-color:              #7B5A43;  /* roasted coffee */
  --secondary-color:            #C9A57A;  /* crema */
  --section-bg-color:           #5E4636;
  --custom-btn-bg-color:        #7B5A43;
  --custom-btn-bg-hover-color:  #C9A57A;
  --link-hover-color:           #C9A57A;
  --body-font-family:           'Plus Jakarta Sans', 'IBM Plex Sans Thai', sans-serif;
}

body,
h1, h2, h3, h4, h5, h6,
.btn, .form-control, .nav-link {
  font-family: var(--body-font-family);
}

/* Thai text sits better slightly taller */
.th {
  font-family: 'IBM Plex Sans Thai', 'Plus Jakarta Sans', sans-serif;
  line-height: 1.6;
}

/* Wordmark that matches the GROOT sign: thin, wide, geometric */
.groot-wordmark {
  font-family: 'Josefin Sans', 'Plus Jakarta Sans', sans-serif;
  font-weight: 300;
  letter-spacing: 0.18em;
}

.navbar-brand.groot-wordmark {
  font-size: 30px;
  color: var(--white-color);
}

.hero-section h1.groot-wordmark {
  font-size: clamp(64px, 11vw, 132px);
  line-height: 1;
  margin-bottom: 12px;
}

.hero-section .small-text {
  color: var(--secondary-color);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.hero-section .hero-sub {
  color: var(--white-color);
  font-size: 22px;
  margin-bottom: 4px;
}

.hero-section .hero-sub-th {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
}

/* Darken the slides a little more so white text stays readable on bright photos */
.hero-slides {
  z-index: 0;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(30, 22, 16, 0.7), rgba(30, 22, 16, 0.3));
  pointer-events: none;
}

/* the template's rotated dark diamond fights the wordmark; the gradient overlay does its job */
.hero-section::after {
  display: none;
}

/* Section backgrounds: GROOT's own photos */
.menu-section {
  background-image: url('../images/bg-menu.jpg');
  background-position: center;
}

.reviews-block-image-wrap {
  background-image: linear-gradient(rgba(30, 22, 16, 0.55), rgba(30, 22, 16, 0.55)), url('../images/bg-interior.jpg');
}

.contact-section {
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(94, 70, 54, 1)), url('../images/bg-interior.jpg');
}

/* Reviewer initial instead of a stock portrait */
.reviews-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: var(--section-bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin-right: 15px;
  flex-shrink: 0;
}

.reviews-source {
  color: var(--white-color);
  opacity: 0.8;
  font-size: 14px;
}

/* Menu prices */
.menu-block strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.menu-block .th {
  display: block;
  font-size: 15px;
  opacity: 0.85;
}

/* Contact list */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.contact-list li {
  color: var(--white-color);
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 18px;
}

.contact-list li i {
  color: var(--secondary-color);
  font-size: 20px;
  line-height: 1.4;
}

.contact-list a {
  color: var(--white-color);
}

.contact-list a:hover {
  color: var(--secondary-color);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Grab green only on the icon so the button stays in GROOT's palette */
.btn-grab i {
  color: #00B14F;
}

.btn-grab:hover i {
  color: inherit;
}

.google-map {
  filter: grayscale(40%);
}

/* Full-menu page */
.fullmenu-section {
  background: var(--section-bg-color);
  padding-top: 140px;
}

.fullmenu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.fullmenu-grid a {
  display: block;
  border-radius: var(--border-radius-small);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.fullmenu-grid img {
  display: block;
  width: 100%;
  height: auto;
}

@media screen and (max-width: 767px) {
  .fullmenu-grid {
    grid-template-columns: 1fr;
  }

  .hero-section .hero-sub {
    font-size: 18px;
  }
}

/* Template card/video gradients were orange; fade them into GROOT's coffee brown instead */
.about-video-info,
.team-block-info {
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(70, 52, 40, 0.95));
}

/* Menu descriptions were too faint over the photo */
.menu-block-wrap {
  background: rgba(20, 15, 11, 0.74);
}

.menu-block small {
  color: rgba(255, 255, 255, 0.82);
}

/* Own booking page (book.html): bookings land in the business Google Form */
.booking-section {
  background-image: linear-gradient(rgba(30, 22, 16, 0.55), rgba(30, 22, 16, 0.75)), url('../images/bg-interior.jpg');
  padding-top: 140px;
}

.booking-form-wrap {
  margin-top: 0;
}

.booking-form .form-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  margin-bottom: 6px;
}

/* template makes placeholders solid white, which reads like filled-in values */
.booking-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.booking-form .form-select option {
  color: #2b2018;
}

/* the date picker icon is black by default on the dark card */
.booking-form input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

.booking-form button[type="submit"]:disabled {
  opacity: 0.6;
}

.booking-status {
  color: var(--secondary-color);
  min-height: 1.5em;
}

.booking-done-icon {
  color: var(--secondary-color);
  font-size: 56px;
}

.booking-call-link {
  color: var(--secondary-color);
  font-weight: 600;
}

.booking-call-link:hover {
  color: var(--white-color);
}

@media screen and (max-width: 991px) {
  .booking-form-image-wrap {
    height: 220px;
  }
}

/* Our Products page (products.html): orders land in the business Google Form */
.products-section {
  background-image: linear-gradient(rgba(30, 22, 16, 0.7), rgba(30, 22, 16, 0.85)), url('../images/product-roaster.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-top: 140px;
}

.product-card {
  background: rgba(20, 15, 11, 0.74);
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  padding: 28px 30px 30px;
}

.product-card-body .badge {
  background: var(--secondary-color);
  color: var(--section-bg-color);
}

/* text-only card until the cocoa has its own photo */
.product-card-soon {
  height: auto;
  border: 1px dashed rgba(201, 165, 122, 0.5);
}

.product-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-small);
  padding: 12px 16px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.product-option.is-selected {
  border-color: var(--secondary-color);
}

.product-price {
  color: var(--secondary-color);
  font-weight: 700;
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
}

.product-save {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  padding: 1px 8px;
}

.qty {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--secondary-color);
  background: transparent;
  color: var(--white-color);
  font-size: 20px;
  line-height: 1;
}

.qty-btn:hover {
  background: var(--secondary-color);
  color: var(--section-bg-color);
}

.qty-value {
  min-width: 18px;
  text-align: center;
  color: var(--white-color);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.roast-group {
  margin-top: 22px;
}

.roast-title {
  color: var(--secondary-color);
  margin-bottom: 2px;
}

.roast-title .th {
  font-weight: 400;
  font-size: 15px;
}

.roast-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  margin-bottom: 10px;
}

#order-form.booking-form {
  padding: 50px 60px;
}

.order-summary {
  color: var(--white-color);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-small);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.order-summary p {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.order-total {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 8px;
  padding-top: 8px;
}

.order-total strong {
  color: var(--secondary-color);
}

.method-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.method-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--border-radius-small);
  padding: 14px 16px;
  cursor: pointer;
  color: var(--white-color);
}

.method-option:has(input:checked) {
  border-color: var(--secondary-color);
  background: rgba(201, 165, 122, 0.12);
}

.method-option input {
  accent-color: var(--secondary-color);
  margin-top: 5px;
}

.method-option small {
  display: block;
  color: rgba(255, 255, 255, 0.7);
}

@media screen and (max-width: 767px) {
  .products-section {
    background-attachment: scroll;
  }

  .method-choice {
    grid-template-columns: 1fr;
  }

  #order-form.booking-form {
    padding: 35px 22px;
  }

  .product-card-body {
    padding: 22px;
  }

  .product-option {
    padding: 10px 12px;
  }

  .product-save {
    display: none;
  }
}
