/* ============================================================
   KEDAI RASA — custom styles
   Warm artisanal theme: cream / forest green / terracotta
   Tailwind (CDN) handles layout; this file adds the soul.
   ============================================================ */

:root {
  --cream:      #faf6ee;
  --creamdark:  #f3ecdc;
  --forest:     #1e3d2f;
  --forestdeep: #142a20;
  --terracotta: #c96f4a;
  --terradark:  #a9552f;
  --gold:       #d9a441;
  --ink:        #2b2620;
}

html { scroll-behavior: smooth; }

body { overflow-x: hidden; }

::selection { background: var(--terracotta); color: #fff; }

/* ---------- Batik-inspired subtle patterns (inline SVG, no assets) ---------- */

/* Light batik motif for cream sections */
.batik-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%231e3d2f' stroke-opacity='0.10' stroke-width='1.4'%3E%3Ccircle cx='36' cy='36' r='14'/%3E%3Ccircle cx='36' cy='36' r='6'/%3E%3Cpath d='M0 36h16M56 36h16M36 0v16M36 56v16'/%3E%3C/g%3E%3C/svg%3E");
}

/* Dark batik motif for forest sections (hero, testimonials, footer) */
.batik-overlay {
  background-image: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23faf6ee' stroke-opacity='0.35' stroke-width='1.2'%3E%3Ccircle cx='36' cy='36' r='14'/%3E%3Ccircle cx='36' cy='36' r='6'/%3E%3Cpath d='M0 36h16M56 36h16M36 0v16M36 56v16'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */

.btn-primary {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  font-weight: 700;
  padding: 0.8rem 1.9rem;
  border-radius: 999px;
  box-shadow: 0 10px 25px -10px rgba(201, 111, 74, 0.7);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn-primary:hover {
  background: var(--terradark);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(201, 111, 74, 0.8);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline-light {
  display: inline-block;
  color: var(--cream);
  font-weight: 700;
  padding: 0.8rem 1.9rem;
  border-radius: 999px;
  border: 2px solid rgba(250, 246, 238, 0.55);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-outline-light:hover {
  background: rgba(250, 246, 238, 0.14);
  border-color: var(--cream);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  color: var(--forest);
  font-weight: 700;
  padding: 0.7rem 1.7rem;
  border-radius: 999px;
  border: 2px solid var(--forest);
  transition: background .2s ease, color .2s ease;
}
.btn-outline:hover { background: var(--forest); color: var(--cream); }

/* ---------- Nav ---------- */

#siteNav { background: transparent; }
#siteNav.scrolled {
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px -12px rgba(30, 61, 47, 0.25);
}
#siteNav.scrolled nav { padding-top: 0.65rem; padding-bottom: 0.65rem; }

.nav-link { position: relative; transition: color .2s ease; }
.nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: -5px;
  width: 0; height: 2px; border-radius: 2px;
  background: var(--terracotta);
  transition: width .25s ease;
}
.nav-link:hover { color: var(--terracotta); }
.nav-link:hover::after { width: 100%; }

.mobile-link { transition: color .2s ease, padding-left .2s ease; }
.mobile-link:hover { color: var(--gold); padding-left: 4px; }

/* ---------- Section eyebrow labels ---------- */

.section-eyebrow {
  display: inline-block;
  color: var(--terracotta);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.9rem;
}

/* ---------- Story stats ---------- */

.stat-card {
  background: #fff;
  border: 1px solid rgba(30, 61, 47, 0.08);
  border-radius: 1.25rem;
  padding: 1.1rem 0.75rem;
  text-align: center;
  box-shadow: 0 6px 24px -8px rgba(30, 61, 47, 0.18);
}
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--forest);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(43, 38, 32, 0.55);
  margin-top: 0.25rem;
}

/* ---------- Menu tabs ---------- */

.tab-btn {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--forest);
  background: #fff;
  border: 2px solid rgba(30, 61, 47, 0.15);
  padding: 0.65rem 1.9rem;
  border-radius: 999px;
  transition: all .25s ease;
}
.tab-btn:hover { border-color: var(--terracotta); color: var(--terracotta); }
.tab-btn.active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
  box-shadow: 0 10px 25px -10px rgba(30, 61, 47, 0.6);
}

.tab-panel { animation: fadeSlide .45s ease; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Menu items ---------- */

.menu-item { padding: 1.1rem 0.25rem; border-radius: 0.75rem; }
.menu-head { display: flex; align-items: baseline; gap: 0.6rem; }
.menu-head h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--forest);
  white-space: nowrap;
}
.menu-head .dots {
  flex: 1;
  border-bottom: 2px dotted rgba(30, 61, 47, 0.28);
  transform: translateY(-4px);
  min-width: 1.5rem;
}
.menu-head .price {
  font-weight: 800;
  color: var(--terracotta);
  font-size: 1.1rem;
  white-space: nowrap;
}
.menu-item p { color: rgba(43, 38, 32, 0.68); margin-top: 0.3rem; line-height: 1.55; }

.tag {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terradark);
  background: rgba(201, 111, 74, 0.14);
  border: 1px solid rgba(201, 111, 74, 0.35);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
}
.tag.veg { color: var(--forest); background: rgba(30, 61, 47, 0.08); border-color: rgba(30, 61, 47, 0.25); }

/* ---------- Gallery ---------- */

.gallery-item {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 6px 24px -8px rgba(30, 61, 47, 0.18);
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 2.2rem 1.1rem 0.9rem;
  background: linear-gradient(to top, rgba(20, 42, 32, 0.85), transparent);
  color: var(--cream);
  font-weight: 700;
  font-size: 0.92rem;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

/* ---------- Testimonials ---------- */

.review-card {
  background: var(--cream);
  border-radius: 1.75rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 18px 45px -18px rgba(0, 0, 0, 0.45);
  max-width: 46rem;
  margin: 0 auto;
}
@media (min-width: 640px) { .review-card { padding: 3rem 3.5rem; } }

.stars { color: var(--gold); letter-spacing: 0.12em; }

.slider-arrow {
  width: 2.9rem; height: 2.9rem;
  border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(250, 246, 238, 0.12);
  color: var(--cream);
  border: 1px solid rgba(250, 246, 238, 0.3);
  transition: background .2s ease, transform .2s ease;
}
.slider-arrow:hover { background: var(--terracotta); border-color: var(--terracotta); transform: scale(1.06); }

.dot {
  width: 0.6rem; height: 0.6rem; border-radius: 999px;
  background: rgba(250, 246, 238, 0.35);
  transition: all .25s ease;
  cursor: pointer;
}
.dot.active { width: 1.8rem; background: var(--gold); }

/* ---------- Reservation form ---------- */

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--forest);
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--cream);
  border: 2px solid rgba(30, 61, 47, 0.14);
  border-radius: 0.9rem;
  padding: 0.8rem 1.05rem;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(201, 111, 74, 0.15);
}
.field input.invalid,
.field select.invalid { border-color: #c0392b; box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.12); }
.field textarea { resize: vertical; }

.err {
  display: none;
  color: #c0392b;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.35rem;
}
.err.show { display: block; }

/* ---------- Footer ---------- */

.footer-h {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 1.1rem;
}
.social-btn {
  width: 2.75rem; height: 2.75rem;
  border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(250, 246, 238, 0.1);
  color: var(--cream);
  border: 1px solid rgba(250, 246, 238, 0.22);
  transition: background .2s ease, transform .2s ease;
}
.social-btn:hover { background: var(--terracotta); border-color: var(--terracotta); transform: translateY(-3px); }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
