/* ===========================================================
   DATLY v2.0 — Premium brand landing page
   Design tokens
=========================================================== */
:root{
  --cream:      #FBF6EC;
  --cream-alt:  #F2E8D5;
  --ink:        #2B1810;
  --brown:      #5C3A24;
  --brown-deep: #3B2417;
  --brown-mid:  #7A4E2E;
  --gold:       #C0902E;
  --gold-soft:  #E3C688;
  --gold-line:  rgba(192,144,46,0.35);
  --white:      #FFFFFF;
  --shadow:     0 18px 40px rgba(43,24,16,0.14);
  --shadow-sm:  0 6px 18px rgba(43,24,16,0.10);
  --radius-lg:  28px;
  --radius-md:  20px;
  --radius-sm:  14px;
  --radius-pill: 999px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1080px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; }
button{ font-family: inherit; }

.container{ max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.icon{ width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-fill{ width: 16px; height: 16px; fill: currentColor; stroke: none; flex-shrink: 0; }

/* ---------- Announcement bar ---------- */
.announce{
  background: var(--brown-deep);
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 7px 0;
  overflow: hidden;
  white-space: nowrap;
}
.announce__track{
  display: inline-flex;
  gap: 48px;
  padding-left: 48px;
  animation: marquee 22s linear infinite;
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,246,236,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: 0.01em;
  text-decoration: none;
}
.brand img{ width: 32px; height: 32px; border-radius: 50%; }
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
  border: none;
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
}
.btn--sm{ padding: 9px 18px; font-size: 0.85rem; }
.btn--primary{
  background: var(--brown-deep);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover{ background: var(--ink); }
.btn--gold{
  background: linear-gradient(135deg, var(--gold) 0%, #A9762A 100%);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(192,144,46,0.4);
}
.btn--gold:hover{ filter: brightness(1.05); }
.btn--lg{ padding: 17px 34px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero{ padding: 44px 20px 40px; text-align: center; }
.hero__eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.hero__eyebrow::before, .hero__eyebrow::after{
  content: '';
  width: 20px; height: 1px;
  background: var(--gold-line);
}
.hero h1{
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 16px;
  color: var(--ink);
}
.hero h1 em{
  font-style: normal;
  color: var(--gold);
}
.hero p{
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--brown);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* Hero carousel */
.carousel{
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gold-line);
}
.carousel__track{
  display: flex;
  transition: transform 0.6s cubic-bezier(.65,0,.35,1);
}
.carousel__slide{ flex: 0 0 100%; min-width: 0; }
.carousel__slide img{ width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.carousel__dots{
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 7px;
}
.carousel__dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: none; padding: 0; cursor: pointer;
  transition: width .3s ease, background .3s ease;
}
.carousel__dot[aria-current="true"]{
  width: 20px; border-radius: 4px;
  background: var(--white);
}

/* ---------- Order section ---------- */
.order{ padding: 0 20px 56px; }
.order__card{
  max-width: 560px;
  margin: 0 auto;
  background: linear-gradient(160deg, var(--brown-deep) 0%, #2A170E 100%);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.order__card::before{
  content: '';
  position: absolute; inset: 10px;
  border: 1px dashed rgba(227,198,136,0.35);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}
.badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(227,198,136,0.14);
  border: 1px solid rgba(227,198,136,0.4);
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.badge .icon{ width: 14px; height: 14px; }
.order__card h2{
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0 0 10px;
}
.order__card p{
  font-size: 0.95rem;
  color: var(--gold-soft);
  opacity: 0.85;
  margin: 0 0 28px;
}
.order__card .btn--gold{ width: 100%; max-width: 340px; }

/* ---------- Section shared ---------- */
section.block{ padding: 52px 0; }
.block--alt{ background: var(--cream-alt); }
.block__head{ text-align: center; margin-bottom: 34px; padding: 0 20px; }
.block__head h2{
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

/* Snap carousel (Feature / Delivery / Reviews) */
.snap{
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 20px 20px;
  scrollbar-width: none;
}
.snap::-webkit-scrollbar{ display: none; }
.snap__item{ scroll-snap-align: center; flex: 0 0 auto; width: 78%; max-width: 300px; }
@media (min-width: 640px){ .snap__item{ width: 46%; } }
@media (min-width: 960px){ .snap__item{ width: 31%; } }

.card{
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  padding: 30px 22px;
  height: 100%;
  text-align: center;
  transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-sm); }
/* Centered/active card in the autoplay+swipe carousels — reuses the existing hover lift */
.snap__item.is-active .card{ transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.card__icon{
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream-alt);
  color: var(--gold);
  margin: 0 auto 16px;
}
.card h3{ font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.card p{ font-size: 0.86rem; line-height: 1.6; color: var(--brown); margin: 0; }

.dots{ display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.dots .carousel__dot{ background: var(--gold-line); }
.dots .carousel__dot[aria-current="true"]{ background: var(--gold); width: 18px; }

/* Review card */
.review-card{ text-align: left; }
.review-card__top{ display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-card__avatar{
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--brown-deep); color: var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.review-card__name{ font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.review-card__loc{ font-size: 0.76rem; color: var(--brown-mid); display: flex; align-items: center; gap: 4px; }
.review-card__loc .icon{ width: 12px; height: 12px; }
.stars{ display: flex; gap: 2px; color: var(--gold); margin-top: 2px; }
.stars .icon-fill{ width: 13px; height: 13px; }
.review-card p{ font-size: 0.88rem; line-height: 1.7; color: var(--brown); margin: 0; }
.review-card__tag{
  display: inline-block;
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--cream-alt);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* ---------- FAQ ---------- */
.faq{ background: var(--brown-deep); color: var(--cream); }
.faq .block__head h2{ color: var(--cream); }
.faq__list{ max-width: 680px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 12px; }
.faq__item{ background: rgba(255,255,255,0.05); border: 1px solid rgba(227,198,136,0.2); border-radius: var(--radius-sm); overflow: hidden; }
.faq__q{
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 20px; background: none; border: none; color: inherit;
  font-family: inherit; font-weight: 700; font-size: 0.95rem; text-align: left; cursor: pointer; min-height: 44px;
}
.faq__toggle{
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--gold-soft); display: flex; align-items: center; justify-content: center;
  position: relative;
}
.faq__toggle .icon{ width: 13px; height: 13px; color: var(--gold-soft); position: absolute; transition: opacity .25s ease, transform .25s ease; }
.faq__toggle .icon--minus{ opacity: 0; transform: rotate(-90deg); }
.faq__item[aria-expanded="true"] .icon--plus{ opacity: 0; transform: rotate(90deg); }
.faq__item[aria-expanded="true"] .icon--minus{ opacity: 1; transform: rotate(0deg); }
.faq__a{ display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq__item[aria-expanded="true"] .faq__a{ grid-template-rows: 1fr; }
.faq__a-inner{ overflow: hidden; }
.faq__a p{ margin: 0; padding: 0 20px 20px; font-size: 0.88rem; line-height: 1.7; opacity: 0.85; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--brown-deep); color: var(--gold-soft); text-align: center; padding: 8px 20px 36px; }
.footer__social{ display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.footer__social a{
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(227,198,136,0.12);
  border: 1px solid rgba(227,198,136,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-soft); text-decoration: none;
  transition: transform .25s ease, background .25s ease;
}
.footer__social a:hover{ transform: translateY(-3px); background: rgba(227,198,136,0.22); }
.footer__social .icon{ width: 18px; height: 18px; }
.footer__brand{ font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; color: var(--cream); }
.footer__line{ font-size: 0.8rem; opacity: 0.75; margin-bottom: 4px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(59,36,23,0.97);
  backdrop-filter: blur(8px);
  color: var(--cream);
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 12px 18px;
  transform: translateY(100%);
  transition: transform .35s ease;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.2);
}
.sticky-cta.is-visible{ transform: translateY(0); }
@media (max-width: 767px){
  .site-footer{ padding-bottom: calc(36px + var(--sticky-cta-height, 80px) + env(safe-area-inset-bottom, 0px)); }
}
.sticky-cta__price{ font-size: 0.85rem; font-weight: 700; }
.sticky-cta__price span{ display: block; font-size: 0.68rem; font-weight: 600; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- WhatsApp float ---------- */
.wa-float{
  position: fixed; right: 18px; bottom: 84px; z-index: 91;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--brown-deep); color: var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); text-decoration: none;
  border: 1px solid var(--gold-line);
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.wa-float.is-visible{
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.wa-float .icon{ width: 24px; height: 24px; }

/* fade-in on scroll — only hides content once JS confirms it will reveal it */
.js-ready .reveal{ opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js-ready .reveal.is-visible{ opacity: 1; transform: translateY(0); }

@media (min-width: 768px){
  .site-header{ padding: 16px 40px; }
  .hero{ padding: 64px 20px 56px; }
}
