.section-fade{
  opacity:0;
  transform:translateY(40px);
  transition:opacity 1.2s cubic-bezier(.16,1,.3,1),
             transform 1.2s cubic-bezier(.16,1,.3,1);
}

.section-fade.active{
  opacity:1;
  transform:translateY(0);
}

.shadow-soft{
  box-shadow:0 20px 60px rgba(0,0,0,.08);
}

.hover-lift{
  transition:transform .6s cubic-bezier(.16,1,.3,1), box-shadow .6s cubic-bezier(.16,1,.3,1);
  will-change:transform;
}
.hover-lift:hover{
  transform:translateY(-8px);
  box-shadow:0 25px 70px rgba(0,0,0,.15);
}

.image-smooth img{
  transition:transform 1.2s cubic-bezier(.16,1,.3,1);
  will-change:transform;
}
.image-smooth:hover img{
  transform:scale(1.08);
}

.btn-lux{
  position:relative;
  overflow:hidden;
}
.btn-lux::after{
  content:"";
  position:absolute;
  top:0;
  left:-70%;
  width:50%;
  height:100%;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,.6),transparent);
  transform:skewX(-20deg);
  transition:all .8s;
  pointer-events:none;
}
.btn-lux:hover::after{
  left:130%;
}

.hero-text span{
  opacity:0;
  transform:translateY(30px);
  display:block;
  transition:all 1s cubic-bezier(.16,1,.3,1);
  will-change:transform, opacity;
}
.hero-text span.active{
  opacity:1;
  transform:translateY(0);
}

/* ===== SMOOTH SCROLL (SAFE) ===== */
html{
  scroll-behavior:smooth;
}

/* ===== HOVER UNDERLINE (SAFE) ===== */
.link-underline{
  position:relative;
  display:inline-block;
}
.link-underline::after{
  content:"";
  position:absolute;
  left:0; bottom:-6px;
  width:100%;
  height:2px;
  background:currentColor;
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .5s cubic-bezier(.16,1,.3,1);
  opacity:.6;
}
.link-underline:hover::after{
  transform:scaleX(1);
}
.reviews-track {
  transition: transform 0.6s ease;
}

/* ===== TEXT HELPERS (SAFE) ===== */

.text-hero {
  color: #F7F3EE;
}

.text-muted-light {
  color: rgba(247,243,238,0.8);
}

.text-gray-soft {
  color: #9CA3AF;
}

.text-small {
  font-size: 14px;
}

.text-base {
  font-size: 16px;
}

/* ================= HERO ================= */
.home-hero {
  position: relative;
  width: 100%;
  min-height: 650px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    #E8E1D6,
    rgba(232,225,214,0.0),
    rgba(232,225,214,0.0)
  );
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1);
}

.home-hero .hero-content {
  position: absolute;
  inset: 0;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  width: 100%;
  padding: 0 32px;
}

.home-hero .hero-inner {
  margin-left: auto;
  margin-right: 96px;
  text-align: right;
}

@media (max-width: 768px) {
  .home-hero .hero-content {
    justify-content: center;
    text-align: center;
  }

  .home-hero .hero-inner {
    margin-right: 0;
  }
}

.hero-title {
  color: #F7F3EE;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 300;
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 60px;
  }
}

.hero-subtext {
  margin-top: 16px;
  color: rgba(247,243,238,0.8);
  font-size: 14px;
  max-width: 420px;
  margin-left: auto;
}

@media (min-width: 768px) {
  .hero-subtext {
    font-size: 16px;
  }
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}

@media (min-width: 768px) {
  .hero-actions {
    flex-direction: row;
    justify-content: flex-end;
  }
}

.section-title {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #1E1E1E;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

/* BUTTONS */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
}

/* PRIMARY */
.btn-primary {
  background: #F6D6DB;
  color: #1E1E1E;
}

.btn-primary:hover {
  background: #BFA074;
  color: #fff;
}

/* SECONDARY */
.btn-secondary {
  background: #4F7A5E;
  color: #F7F3EE;
}

.btn-secondary:hover {
  background: #3f634c;
}

/* TRUST TEXT */
.hero-trust {
  text-align: center;
  padding: 48px 0;
}

.hero-trust p {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #A3A3A3;
}

.hero-actions a {
  width: auto;
  white-space: nowrap;
}

/* ===== ABOUT MATCHA SECTION ===== */
.about-matcha {
  text-align: center;
  padding: 6rem 1rem; /* py-24 px-4 */
  max-width: 1280px;
  margin: 0 auto;
}

.about-title {
  font-size: 2rem; /* text-3xl */
  font-weight: 300; /* font-light */
  letter-spacing: 0.04em; /* tracking-wide */
  color: #1E1E1E;
}

@media (min-width: 768px) {
  .about-title {
    font-size: 2.5rem; /* md:text-4xl */
  }
}

.about-link {
  font-weight: 600; /* font-semibold */
  text-decoration: none;
  transition: all 0.3s ease;
}

.about-link:hover {
  text-decoration: underline;
}

/* ===== BUSINESS SECTION ===== */
.business-section {
  padding-top: 7rem;   /* pt-28 */
  padding-bottom: 4rem; /* pb-16 */
  background-color: #ffffff;
}

.business-container {
  max-width: 80rem; /* max-w-5xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem; /* px-6 */
  padding-right: 1.5rem;
  text-align: center;
}

.business-title {
  font-size: 2rem; /* text-3xl */
  font-weight: 300; /* font-light */
  letter-spacing: 0.04em; /* tracking-wide */
  color: #1E1E1E;
  margin-bottom: 1.5rem; /* mb-6 */
}

@media (min-width: 768px) {
  .business-title {
    font-size: 2.5rem; /* md:text-4xl */
  }
}

.business-title a.business-link {
  text-decoration: none;
  transition: all 0.3s ease;
}

.business-title a.business-link:hover {
  text-decoration: underline;
}

.business-highlight {
  font-weight: 600; /* font-semibold */
  color: #4F7A5E; /* text-matcha */
  text-decoration: none;
  transition: all 0.3s ease;
}

.business-highlight:hover {
  text-decoration: underline;
}

/* ===== MOBILE ===== */

.lux-carousel-mobile {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding: 1.5rem;
}

.lux-carousel-item {
  flex: 0 0 auto;
  width: 85%;
  min-width: 280px;
  max-width: 320px;
  background: #fff;
  border-radius: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mobile-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.mobile-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mobile-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.mobile-card-text {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.mobile-card-button {
  align-self: center;
  background: #4F7A5E;
  color: #F7F3EE;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-top: auto;
}

/* ===== DESKTOP ===== */

@media (min-width: 768px) {

  .lux-carousel-mobile {
    display: none;
  }

  .desktop-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }


  .card-image-wrapper {
    height: 240px;
  }

  .desktop-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    text-align: center;
  }

  .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
  }

  .card-text {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.75;
    margin-bottom: 1.5rem;
    flex-grow: 1;
  }

/* КНОПКА */
.card-button {
  margin-top: auto;
  align-self: center;
  position: relative;
  overflow: hidden;

  background: var(--matcha);
  color: var(--ivory);

  padding: 0.85rem 1.8rem;
  border-radius: 999px;

  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;

  box-shadow:
    0 8px 20px rgba(79,122,94,0.25),
    inset 0 1px 0 rgba(255,255,255,0.2);

  transition: all 0.3s ease;
}

/* HOVER */
.card-button:hover {
  background: #3f634c;
  color: var(--ivory); /* 🔥 FIX */

  transform: translateY(-2px);
  box-shadow:
    0 12px 25px rgba(79,122,94,0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

/* 🔒 PROTECTION */
.card-button:visited,
.card-button:active {
  color: var(--ivory);
}

  /* ✨ GLASS SHINE */
  .card-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
      120deg,
      transparent,
      rgba(255,255,255,0.6),
      transparent
    );
    transform: skewX(-20deg);
    transition: all 0.8s ease;
  }

  .card-button:hover::after {
    left: 130%;
  }
}

/* CONTAINER */
.cards-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* HIDE DESKTOP ON MOBILE */
@media (max-width: 767px) {
  .desktop-carousel {
    display: none;
  }
}

.shop-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.section-text {
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: #555555;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ===== SECTION ===== */
.menu-section {
  padding: 7rem 0 6rem;
  background: #F7F3EE;
}

.menu-section__cta {
  margin-top: 2rem;
}

.menu-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

/* ===== IMAGE ===== */
.menu-image-wrapper {
  max-width: 800px;
  margin: 1rem auto 0;
  padding: 0 1rem;
}

.menu-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

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

/* ===== HOTSPOT ===== */
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
}

/* DOT */
.hotspot-dot {
  width: 36px;
  height: 36px;
  background: #BFA074;
  border-radius: 50%;
  border: 6px solid #fff;

  box-shadow: 0 10px 25px rgba(0,0,0,0.2);

  transition: all 0.4s ease;
}

/* HOVER EFFECT */
.hotspot:hover .hotspot-dot {
  transform: scale(1.2);
}

/* LABEL */
.hotspot-label {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);

  background: #F7F3EE;
  padding: 6px 10px;
  border-radius: 6px;

  font-size: 0.8rem;
  white-space: nowrap;

  box-shadow: 0 20px 60px rgba(0,0,0,0.08);

  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* SHOW LABEL */
.hotspot:hover .hotspot-label {
  opacity: 1;
  transform: translate(-50%, -5px);
}

/* ===== STORY SECTION ===== */
.story-section {
  padding: 6rem 1rem;
  text-align: center;
}

.story-container {
  max-width: 720px;
  margin: 0 auto;
}

/* ===== REVIEWS SECTION ===== */
.reviews-section {
  padding: 6rem 1rem;
  background: #F7F3EE;
  text-align: center;
}

.reviews-container {
  max-width: 800px;
  margin: 0 auto;
}

/* ===== HEADER (TOP TEXT) ===== */
.reviews-rating {
  margin-top: 2rem;
}

.reviews-stars {
  font-size: 1.2rem;
  color: #4F7A5E;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.reviews-text {
  margin-top: 0.5rem;
  color: #555555;
  font-size: 0.95rem;
}

/* ===== TRACK ===== */
.reviews-track {
  display: flex;
  gap: 2rem;
  overflow: hidden;
  margin-top: 2.5rem;
}

/* ===== CARD ===== */
.review-card {
  min-width: 100%;
  padding: 1.75rem;
  border-radius: 1.5rem;

  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);

  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

@media (min-width: 768px) {
  .review-card {
    min-width: 33%;
  }
}

/* ===== CARD CONTENT ===== */
.review-stars {
  color: #4F7A5E;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.review-text {
  color: #555555;
  line-height: 1.6;
  font-size: 0.95rem;
}

.review-meta {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #777;
}

/* BADGE */
.review-badge {
  margin-left: 0.4rem;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;

  background: rgba(79,122,94,0.1);
  color: #4F7A5E;
}


/* ===== SEO TEXT SECTION ===== */
.seo-section {
  padding: 5rem 1rem;
  text-align: center;
}

.seo-container {
  max-width: 720px;
  margin: 0 auto;
}

/* TEXT */
.seo-text {
  margin-top: 1.25rem;
  color: #555555;
  line-height: 1.75;
  font-size: 1rem;
}

/* LINKS */
.seo-link {
  font-weight: 600;
  color: #2f4f3a; /* 🔥 темніший matcha */
  text-decoration: none;
  transition: all 0.3s ease;
}

.seo-link:hover {
  text-decoration: underline;
  color: #1f3a2b; /* ще темніше */
}

/* MOBILE */
@media (max-width: 767px) {
  .seo-text {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

.shop-footer {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}