/* =========================================================
   KAUSTUBHA BY GITA — Stylesheet
   Palette drawn from the brand logo (deep temple maroon,
   satin white, antique gold, and the navy signature script).
   ========================================================= */

:root {
  /* Brand colours */
  --maroon-950: #1f0102;
  --maroon-900: #310508;
  --maroon-800: #470b10;
  --maroon-700: #5f151a;
  --gold: #c9a15b;
  --gold-light: #e9d3a3;
  --gold-dark: #a17f3f;
  --navy: #24345c;
  --cream: #faf5ec;
  --ivory: #f3e9db;
  --white: #fffdf9;
  --ink: #2b1a14;
  --ink-soft: #5c463c;

  /* Type */
  --font-display: 'Marcellus', 'Cormorant Garamond', serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Dancing Script', cursive;

  /* Layout */
  --max-width: 1200px;
  --radius: 6px;
  --shadow-soft: 0 20px 45px -25px rgba(37, 7, 9, 0.45);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

/* Belt-and-braces: make sure anything with the "hidden" attribute is
   actually hidden, even if a more specific class also sets display:flex
   or display:grid on the same element (e.g. media preview boxes). */
[hidden] { display: none !important; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

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); font-weight: 400; color: var(--maroon-950); }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--gold-dark);
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.section-sub {
  color: var(--ink-soft);
  max-width: 560px;
}

.section-head { text-align: center; margin: 0 auto 48px; max-width: 640px; }
.section-head.light .eyebrow { color: var(--gold-light); }
.section-head.light .section-title { color: var(--ivory); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.6px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--maroon-900);
  color: var(--ivory);
  border-color: var(--maroon-900);
}
.btn-primary:hover { background: var(--maroon-700); transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.btn-ghost {
  background: transparent;
  color: var(--maroon-950);
  border-color: var(--maroon-950);
}
.btn-ghost:hover { background: var(--maroon-950); color: var(--ivory); }

.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--maroon-950);
  padding: 10px 24px;
  font-size: 0.85rem;
}
.btn-outline:hover { background: var(--gold); color: var(--maroon-950); }

/* ---------- Announcement bar ---------- */
.announce-bar {
  background: var(--maroon-950);
  color: var(--gold-light);
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 1px;
  padding: 8px 12px;
  text-transform: uppercase;
}

/* Live offer from the admin panel takes over the announcement bar */
.announce-bar.has-offer { background: var(--gold); color: var(--maroon-950); }
.announce-bar .offer-item { color: inherit; text-decoration: none; }
.announce-bar .offer-item:hover { text-decoration: underline; }
.offer-fade { animation: offerFade 0.5s ease; }
@keyframes offerFade {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .offer-fade { animation: none; } }

/* Visually hidden, still read aloud by screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 161, 91, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand-logo { height: 46px; width: auto; object-fit: contain; }

.main-nav {
  display: flex;
  gap: 34px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.4px;
  color: var(--maroon-950);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold-dark);
  transition: width var(--transition);
}
.nav-link:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--maroon-950);
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(ellipse at top, var(--maroon-800) 0%, var(--maroon-950) 65%);
  color: var(--ivory);
  padding: 130px 0 160px;
  text-align: center;
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }

.hero .eyebrow { color: var(--gold-light); }

.hero-title {
  color: var(--white);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 22px;
}
.hero-title span { color: var(--gold-light); font-style: italic; }

.hero-sub {
  font-size: 1.25rem;
  color: rgba(250, 245, 236, 0.85);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost { color: var(--ivory); border-color: var(--gold-light); }
.hero .btn-ghost:hover { background: var(--gold-light); color: var(--maroon-950); }

.hero-ornament {
  position: absolute;
  top: -60px;
  width: 320px; height: 320px;
  border: 1px solid rgba(233, 211, 163, 0.25);
  border-radius: 50%;
  z-index: 1;
}
.hero-ornament::before {
  content: '';
  position: absolute; inset: 30px;
  border: 1px solid rgba(233, 211, 163, 0.18);
  border-radius: 50%;
}
.hero-ornament-left { left: -140px; }
.hero-ornament-right { right: -140px; top: 40px; }

.hero-arch {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
}
.hero-arch svg { width: 100%; height: 90px; display: block; }
.hero-arch path { fill: var(--cream); }

/* ---------- Marquee ---------- */
.marquee-strip {
  background: var(--gold-light);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  animation: scroll-left 26s linear infinite;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--maroon-900);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.marquee-track .dot { color: var(--maroon-700); font-size: 0.7rem; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Story ---------- */
.story { padding: 100px 0; background: var(--cream); }

.story-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.story-frame {
  background: var(--white);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.story-frame::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--gold-light);
  border-radius: 4px;
  pointer-events: none;
}

.story-content p { color: var(--ink-soft); margin-bottom: 16px; }
.story-content strong { color: var(--maroon-900); }

.story-stats {
  display: flex;
  gap: 36px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--maroon-900);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ---------- Divider ---------- */
.divider {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}
.divider svg {
  width: 200px;
  height: 24px;
  stroke: var(--gold-dark);
  fill: var(--gold-dark);
}

/* ---------- Collections / Products ---------- */
.collections { padding: 100px 0 110px; background: var(--ivory); }

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  padding: 10px 22px;
  border: 1px solid var(--gold-dark);
  background: transparent;
  color: var(--maroon-900);
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover { background: var(--gold-light); }
.filter-btn.active { background: var(--maroon-900); color: var(--ivory); border-color: var(--maroon-900); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  justify-items: center;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 30px -20px rgba(37, 7, 9, 0.35);
  transition: var(--transition);
  border: 1px solid rgba(201, 161, 91, 0.25);
  width: 100%;
  max-width: 340px;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }

.product-media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--maroon-800), var(--maroon-950));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .placeholder-icon {
  font-size: 2.6rem;
  color: var(--gold-light);
  opacity: 0.75;
}
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold);
  color: var(--maroon-950);
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.product-media[data-open-media] { cursor: pointer; }

.product-media-count {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(31, 1, 2, 0.75);
  color: var(--gold-light);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.product-body { padding: 20px 22px 24px; }
.product-category {
  font-size: 0.72rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 6px;
  display: block;
}
.product-name { font-size: 1.25rem; margin-bottom: 6px; }
.product-desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price { color: var(--ink-soft); font-size: 1rem; margin-bottom: 16px; }
.product-price-sale {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.price-was { color: var(--ink-soft); opacity: 0.75; text-decoration-thickness: 1px; }
.price-now {
  color: var(--maroon-900);
  font-family: var(--font-display);
  font-weight: normal;
  font-size: 1.2rem;
}
.product-discount {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--maroon-900);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
}
.product-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
  padding: 40px 0;
  font-family: var(--font-display);
}

.product-enquire {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--maroon-900);
  border-bottom: 1px solid var(--maroon-900);
  padding-bottom: 2px;
  transition: var(--transition);
}
.product-enquire:hover { color: var(--gold-dark); border-color: var(--gold-dark); }

/* ---------- Craftsmanship ---------- */
.craft {
  background: var(--maroon-950);
  padding: 100px 0;
  position: relative;
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.craft-card {
  max-width: 340px;
  width: 100%;
  justify-self: center;
  background: rgba(255, 253, 249, 0.03);
  border: 1px solid rgba(233, 211, 163, 0.25);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  transition: var(--transition);
}
.craft-card:hover { background: rgba(233, 211, 163, 0.08); transform: translateY(-4px); }

.craft-icon {
  font-size: 1.8rem;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.craft-card h3 { color: var(--ivory); font-size: 1.2rem; margin-bottom: 10px; }
.craft-card p { color: rgba(250, 245, 236, 0.7); font-size: 0.98rem; }

/* ---------- Testimonials ---------- */
.testimonials { padding: 100px 0; background: var(--cream); }

.testimonial-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }

.testimonial-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  padding: 44px 48px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.testimonial-card .quote {
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 18px;
}
.testimonial-card .author {
  font-family: var(--font-display);
  color: var(--gold-dark);
  font-size: 0.95rem;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.t-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold-light);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.t-dot.active { background: var(--maroon-900); }

.testimonial-stars {
  color: var(--gold);
  font-size: 1.25rem;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.testimonial-cta { text-align: center; margin-top: 30px; }

/* ---------- Contact ---------- */
.contact { padding: 100px 0; background: var(--ivory); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info p { color: var(--ink-soft); margin-bottom: 26px; }

.contact-list li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(201, 161, 91, 0.35);
}
.contact-label {
  font-family: var(--font-display);
  color: var(--maroon-900);
  font-size: 0.9rem;
}
.contact-list a { color: var(--gold-dark); }
.contact-list a:hover { text-decoration: underline; }

.enquiry-form {
  background: var(--white);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--maroon-900);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(43, 26, 20, 0.25);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
}

.form-submit { width: 100%; margin-top: 6px; }
.form-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 12px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-950); color: var(--ivory); padding: 70px 0 0; }

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(233, 211, 163, 0.2);
}

.footer-logo { height: 40px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(250, 245, 236, 0.7); max-width: 280px; }

.footer-links h4 {
  color: var(--gold-light);
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  color: rgba(250, 245, 236, 0.75);
  padding: 6px 0;
  font-size: 0.95rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  text-align: center;
  padding: 22px 0;
  font-size: 0.85rem;
  color: rgba(250, 245, 236, 0.55);
}

/* ---------- Floating WhatsApp ---------- */
.floating-whatsapp {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 56px; height: 56px;
  background: var(--maroon-900);
  color: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 12px 26px -10px rgba(37, 7, 9, 0.6);
  z-index: 90;
  transition: var(--transition);
}
.floating-whatsapp:hover { transform: scale(1.08); background: var(--gold); color: var(--maroon-950); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .story-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
    border-bottom: 1px solid var(--gold-light);
  }
  .main-nav.open { max-height: 400px; }
  .main-nav .nav-link { padding: 16px 0; width: 100%; text-align: center; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { margin: 0 auto; }
  .contact-list li { flex-direction: column; gap: 4px; }
}

@media (max-width: 520px) {
  body { font-size: 16.5px; }
  .hero { padding: 100px 0 130px; }
  .story, .collections, .craft, .testimonials, .contact { padding: 70px 0; }
  .enquiry-form { padding: 24px; }
  .testimonial-card { padding: 30px 24px; }
}

/* ---------- Media Lightbox (product photos + video) ---------- */
.media-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 2, 3, 0.9);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.media-modal[hidden] { display: none; }

.media-modal-inner {
  background: var(--maroon-950);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  padding: 20px;
}

.media-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.media-modal-header h3 {
  color: var(--ivory);
  font-size: 1.2rem;
}

.media-modal-close {
  background: none;
  border: none;
  color: var(--gold-light);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.media-modal-close:hover { color: var(--white); }

.media-modal-stage-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-modal-stage {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 65vh;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-modal-stage img,
.media-modal-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.media-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(31, 1, 2, 0.75);
  color: var(--gold-light);
  border: 1px solid var(--gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  z-index: 2;
}
.media-modal-nav:hover { background: var(--maroon-800); }
.media-modal-prev { left: 8px; }
.media-modal-next { right: 8px; }

.media-modal-counter {
  text-align: center;
  color: rgba(250, 245, 236, 0.75);
  font-size: 0.85rem;
  margin-top: 12px;
}

@media (max-width: 520px) {
  .media-modal-inner { padding: 14px; }
  .media-modal-stage { max-height: 55vh; }
}
