/* ===== KALP — Essence of Purity ===== */

:root {
  --ink: #241608;
  --maroon: #4a0f14;
  --gold: #b8894b;
  --gold-light: #e3c48a;
  --cream: #faf5ea;
  --cream-2: #f2e8d5;
  --green-deep: #16302a;
  --text-soft: #5a4a3a;
  --shadow: 0 20px 40px -20px rgba(36, 22, 8, 0.35);
  --radius: 2px;
  --font-display: "Cormorant Garamond", serif;
  --font-body: "Jost", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-soft);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.01em;
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: var(--radius);
  font-weight: 500;
}
.btn-primary {
  background: var(--gold);
  color: #fff;
}
.btn-primary:hover { background: #9c7139; }
.btn-secondary {
  background: transparent;
  border-color: var(--gold);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--gold); color: #fff; }
.btn-block { width: 100%; }
.gift-banner-copy .btn-secondary {
  color: #fff;
  border-color: var(--gold-light);
}
.gift-banner-copy .btn-secondary:hover {
  background: var(--gold-light);
  color: var(--ink);
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 42px;
  padding: 0 20px;
}
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 12px; }
.section-sub { font-size: 0.95rem; }

/* ===== Announcement bar ===== */
.announce-bar {
  background: var(--ink);
  color: var(--gold-light);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 9px 16px;
  text-transform: uppercase;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(250, 245, 234, 0.97);
  border-bottom: 1px solid rgba(36,22,8,0.08);
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
}
.logo img {
  height: 52px;
  width: auto;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1/1;
}
.main-nav { flex: 1; }
.main-nav > ul {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 0;
  display: inline-block;
}
.main-nav > ul > li > a:hover { color: var(--gold); }
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  min-width: 220px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: all 0.2s ease;
  padding: 10px 0;
  z-index: 50;
}
@media (min-width: 761px) {
  .has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}
.dropdown li a {
  display: block;
  padding: 9px 20px;
  font-size: 0.85rem;
  white-space: nowrap;
}
.dropdown li a:hover { background: var(--cream-2); color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--maroon);
  color: #fff;
  font-size: 0.6rem;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.menu-toggle span {
  height: 2px;
  background: var(--ink);
  display: block;
}

.search-bar {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  border-top: 1px solid rgba(36,22,8,0.08);
  display: flex;
  align-items: center;
}
.search-bar.is-open { max-height: 60px; }
.search-bar input {
  flex: 1;
  border: none;
  background: none;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}
.search-bar .icon-btn { margin-right: 12px; font-size: 1.4rem; }

/* ===== Cart drawer ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36,22,8,0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 600;
}
.cart-overlay.is-open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--cream);
  z-index: 601;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(36,22,8,0.1);
}
.cart-drawer-head h3 { font-size: 1.4rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 18px 24px; }
.cart-empty { font-size: 0.9rem; }
.cart-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(36,22,8,0.08);
}
.cart-line img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); background-size: cover; background-position: center; }
.cart-line-info { flex: 1; }
.cart-line-info h5 { font-size: 0.95rem; font-family: var(--font-body); font-weight: 500; color: var(--ink); }
.cart-line-info span { font-size: 0.78rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.04em; }
.qty-control { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-control button {
  width: 22px; height: 22px;
  border: 1px solid rgba(36,22,8,0.25);
  background: none;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  border-radius: 50%;
}
.cart-remove {
  background: none; border: none; cursor: pointer;
  color: var(--maroon); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cart-drawer-foot { padding: 20px 24px 26px; border-top: 1px solid rgba(36,22,8,0.1); }
.cart-note { font-size: 0.78rem; margin-bottom: 14px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: min(88vh, 720px);
  overflow: hidden;
}
.hero-slides { position: relative; height: 100%; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,12,5,0.72) 0%, rgba(20,12,5,0.3) 55%, rgba(20,12,5,0.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 0 8vw;
  color: #fdf8ef;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.hero-content h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 18px;
  line-height: 1.05;
}
.hero-sub { color: #ecdfc9; margin-bottom: 28px; font-size: 1rem; }
.hero-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero-dot.is-active { background: #fff; }

/* ===== Trust strip ===== */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  padding: 30px 20px;
  background: var(--cream-2);
  border-bottom: 1px solid rgba(36,22,8,0.06);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.trust-item svg { color: var(--gold); width: 26px; height: 26px; }

/* ===== Collections / product grid ===== */
.collection { padding: 78px 24px; max-width: 1280px; margin: 0 auto; }
.collection-alt { background: var(--cream-2); max-width: none; }
.collection-alt > * { max-width: 1280px; margin-left: auto; margin-right: auto; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.product-card {
  background: #fff;
  border: 1px solid rgba(36,22,8,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-media {
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.product-media.sprite {
  background-image: url('../Media/03-thai-grid-tight.jpeg');
  background-size: 300% 200%;
}
.product-media.sprite-artisanal {
  background-image: url('../Media/01-artisanal-lineup.jpeg');
  background-size: 800% 220%;
}
.product-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-collection-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 6px;
}
.product-body h3 { font-size: 1.25rem; margin-bottom: 4px; }
.product-tagline { font-size: 0.8rem; font-style: italic; color: var(--text-soft); margin-bottom: 10px; }
.product-desc { font-size: 0.85rem; flex: 1; margin-bottom: 16px; }
.product-price-row {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  margin-bottom: 14px;
}
.add-to-cart {
  align-self: stretch;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 12px 16px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s ease;
}
.add-to-cart:hover { background: var(--gold); }
.add-to-cart.is-added { background: #4b6b4e; }

/* ===== Gift banner ===== */
.gift-banner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 0;
  background: var(--ink);
  color: #efe5d2;
}
.gift-banner-media img { height: 100%; object-fit: cover; width: 100%; }
.gift-banner-copy { padding: 60px 60px; }
.gift-banner-copy .section-eyebrow { color: var(--gold-light); }
.gift-banner-copy h2 { color: #fff; margin-bottom: 18px; }
.gift-banner-copy p { margin-bottom: 26px; font-size: 0.95rem; color: #d9cbb2; }

/* ===== Heritage ===== */
.heritage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
}
.heritage-media img { height: 100%; width: 100%; object-fit: cover; }
.heritage-copy { padding: 70px 60px; }
.heritage-copy p { margin-bottom: 16px; font-size: 0.95rem; }
.heritage-note { font-style: italic; color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; }

/* ===== Testimonials ===== */
.testimonials { padding: 78px 24px; max-width: 1280px; margin: 0 auto; }
.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testimonial-card {
  background: var(--cream-2);
  padding: 30px 26px;
  border-left: 3px solid var(--gold);
}
.testimonial-card p { font-size: 0.92rem; margin-bottom: 14px; font-style: italic; color: var(--ink); }
.testimonial-card cite { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); }

/* ===== CTA banner ===== */
.cta-banner {
  text-align: center;
  padding: 90px 24px;
  background: linear-gradient(180deg, var(--green-deep), #0f1f1a);
  color: #f2e9d8;
}
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { margin-bottom: 30px; color: #cfe0d8; }

/* ===== FAQ ===== */
.faq { padding: 78px 24px; max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(36,22,8,0.12); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 4px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question span { font-size: 1.3rem; color: var(--gold); transition: transform 0.2s ease; }
.faq-item.is-open .faq-question span { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p { font-size: 0.88rem; padding: 0 4px 20px; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #cbb98f; padding: 70px 24px 20px; }
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { height: 60px; border-radius: 50%; margin-bottom: 14px; }
.footer-brand p { font-size: 0.85rem; color: #a99872; }
.footer-col h4 {
  color: #f2e9d8;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 500;
}
.placeholder-flag { display: block; font-size: 0.62rem; color: #8a7a56; text-transform: none; letter-spacing: 0; margin-top: 4px; }
.footer-col ul li { margin-bottom: 10px; font-size: 0.85rem; }
.footer-col ul li a:hover { color: var(--gold-light); }
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem;
}
.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 20px; font-size: 0.75rem; color: #8a7a56; }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 400;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-track { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .heritage { grid-template-columns: 1fr; }
  .heritage-media { height: 320px; }
  .gift-banner { grid-template-columns: 1fr; }
  .gift-banner-media { height: 320px; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: min(320px, 85%);
    background: var(--cream);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 550;
    padding: 90px 30px 30px;
    overflow-y: auto;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .main-nav > ul > li { width: 100%; }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    display: none;
    min-width: 0;
    padding-left: 12px;
  }
  .has-dropdown.is-open .dropdown { display: block; }
  .menu-toggle { display: flex; }
  .product-grid { grid-template-columns: 1fr; }
  .gift-banner-copy, .heritage-copy { padding: 40px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 0 6vw; }
}
