/* =========================================================
   RajaRani Silks - main stylesheet
   ========================================================= */

:root {
  --gold: #C5A059;
  --gold-dark: #B88E3E;
  --gold-light: #E3C88E;
  --cream: #FAF7F2;
  --cream-dark: #F1EADF;
  --charcoal: #18181B;
  --plum: #2A1033;
  --plum-deep: #1A0A20;
  --text: #1F2937;
  --muted: #6B6470;

  --serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --serif-alt: "Cormorant Garamond", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 4px;
  --shadow: 0 10px 30px -12px rgba(42, 16, 51, .25);
  --header-h: 80px;

  /* Woven diamond motif used across the site */
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 3 37 20 20 37 3 20Z' fill='none' stroke='%23C5A059' stroke-opacity='.45' stroke-width='2'/%3E%3Cpath d='M20 14 26 20 20 26 14 20Z' fill='%23C5A059' fill-opacity='.55'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(197, 160, 89, .3); color: var(--plum); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0; }
h2 em, h1 em { font-family: var(--serif-alt); font-style: italic; color: var(--gold); font-weight: 600; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 24px; }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-sm { padding: 10px 20px; font-size: .75rem; }
.btn-block { width: 100%; }
.btn-line {
  background: transparent;
  border-color: var(--gold);
  color: var(--plum);
  padding: 10px 18px;
  font-size: .72rem;
}
.btn-line:hover { background: var(--gold); color: var(--charcoal); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(26, 10, 32, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1320px;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: -.01em;
}
.nav { display: flex; gap: 34px; }
.nav a {
  color: rgba(255, 255, 255, .8);
  font-size: .95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover { color: #fff; }
.nav a.active { color: #fff; border-bottom-color: var(--gold); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-toggle span { width: 24px; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--plum-deep);
  color: #fff;
}
.hero-bg, .hero-bg::before, .hero-bg::after { position: absolute; inset: 0; }
.hero-bg::before {
  content: "";
  inset: -50%;
  background-image: var(--motif);
  background-size: 46px 46px;
  transform: rotate(-24deg);
  opacity: .9;
  animation: drift 60s linear infinite;
}
.hero-bg::after {
  content: "";
  background:
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(214, 128, 74, .55), transparent 70%),
    radial-gradient(ellipse 50% 60% at 95% 20%, rgba(155, 70, 140, .45), transparent 70%),
    linear-gradient(100deg, rgba(26, 10, 32, .97) 0%, rgba(42, 16, 51, .85) 40%, rgba(60, 22, 70, .35) 100%);
}
@keyframes drift { to { background-position: 460px 0; } }

.hero-content { position: relative; z-index: 1; padding-block: 140px 100px; max-width: 1000px; }
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  color: #FBF5EC;
  font-weight: 700;
  margin-bottom: 26px;
}
.hero h1 em { display: block; font-family: var(--serif); font-size: 1.05em; }
.hero-text {
  font-family: var(--serif-alt);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, .8);
  max-width: 560px;
  margin: 0 0 40px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.scroll-cue {
  position: absolute;
  right: 22%;
  bottom: 60px;
  z-index: 1;
  writing-mode: vertical-rl;
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  padding-top: 60px;
}
.scroll-cue::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 50% { transform: translateY(8px); opacity: .5; } }

/* ---------- Highlights ---------- */
.highlights { background: var(--plum); color: #fff; border-top: 1px solid rgba(197, 160, 89, .3); }
.highlights-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.highlight { padding: 36px 24px; text-align: center; border-right: 1px solid rgba(197, 160, 89, .18); }
.highlight:last-child { border-right: 0; }
.hl-icon { color: var(--gold); font-size: 1.2rem; }
.highlight h3 { font-size: 1.1rem; margin: 8px 0 6px; color: #FBF5EC; }
.highlight p { margin: 0; font-size: .88rem; color: rgba(255, 255, 255, .65); }

/* ---------- Sections ---------- */
.section { padding-block: 110px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--plum); }
.section-head.light h2 { color: #FBF5EC; }
.section-sub { color: var(--muted); margin: 16px 0 0; }

/* ---------- Collection ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.filter {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--cream-dark);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: all .2s;
}
.filter:hover { border-color: var(--gold); }
.filter.active { background: var(--plum); border-color: var(--plum); color: #fff; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 30px;
}
.product {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
  transition: transform .35s, box-shadow .35s;
  animation: fadeUp .5s both;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }

/* Drawn saree swatch: body + zari border + pallu */
.saree {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    var(--motif) center / 28px 28px,
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .22), transparent 60%),
    var(--body);
  overflow: hidden;
}
.saree::before { /* zari border at the bottom */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 22%;
  background:
    repeating-linear-gradient(90deg, var(--zari) 0 6px, transparent 6px 14px) top / 100% 10px no-repeat,
    linear-gradient(var(--zari), var(--zari)) 0 14px / 100% 2px no-repeat,
    repeating-linear-gradient(45deg, rgba(0, 0, 0, .12) 0 4px, transparent 4px 8px),
    var(--border);
  border-top: 3px solid var(--zari);
}
.saree::after { /* pallu on the right */
  content: "";
  position: absolute;
  top: 0; bottom: 22%; right: 0;
  width: 30%;
  background:
    repeating-linear-gradient(0deg, var(--zari) 0 3px, transparent 3px 16px),
    var(--border);
  opacity: .9;
  border-left: 3px solid var(--zari);
}
.saree .tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 1;
  background: rgba(255, 255, 255, .92);
  color: var(--plum);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
}
.product-body { padding: 20px 22px 24px; }
.product-cat { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.product-body h3 { font-size: 1.2rem; color: var(--plum); margin: 6px 0 8px; }
.product-body p { font-size: .88rem; color: var(--muted); margin: 0 0 18px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-family: var(--serif-alt); font-size: 1.1rem; font-weight: 600; color: var(--text); }

/* ---------- About ---------- */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.about-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 18px;
  border: 1px solid var(--gold);
}
.about-frame::before {
  content: "";
  position: absolute;
  inset: -18px 18px 18px -18px;
  background: var(--cream-dark);
  z-index: -1;
}
.about-silk {
  height: 100%;
  background:
    var(--motif) center / 36px 36px,
    radial-gradient(ellipse at 70% 80%, rgba(214, 128, 74, .6), transparent 60%),
    linear-gradient(160deg, #3A1446, #5E1F4F 60%, #8A3A3A);
}
.about-text h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--plum); margin-bottom: 24px; }
.about-text p { color: var(--muted); }
.values { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.values li { padding-left: 18px; border-left: 2px solid var(--gold); color: var(--muted); }
.values strong { display: block; font-family: var(--serif); color: var(--plum); font-size: 1.05rem; }

/* ---------- Silks ---------- */
.silks {
  position: relative;
  background:
    linear-gradient(rgba(26, 10, 32, .93), rgba(26, 10, 32, .96)),
    var(--motif) center / 46px 46px,
    var(--plum-deep);
  color: #fff;
}
.silk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.silk-card {
  padding: 40px 30px;
  background: rgba(255, 255, 255, .03);
  border-top: 2px solid transparent;
  transition: background .3s, border-color .3s;
}
.silk-card:hover { background: rgba(197, 160, 89, .08); border-top-color: var(--gold); }
.silk-num { font-family: var(--serif-alt); font-size: 2.6rem; font-style: italic; color: var(--gold); line-height: 1; }
.silk-card h3 { font-size: 1.3rem; margin: 18px 0 12px; color: #FBF5EC; }
.silk-card p { font-size: .9rem; color: rgba(255, 255, 255, .65); margin: 0; }

/* ---------- Artisans ---------- */
.process {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}
.process::before {
  content: "";
  position: absolute;
  top: 28px; left: 12%; right: 12%;
  border-top: 1px dashed var(--gold);
}
.process li { text-align: center; position: relative; }
.step {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--gold-dark);
  margin-bottom: 18px;
  position: relative;
}
.process h3 { font-size: 1.2rem; color: var(--plum); margin-bottom: 8px; }
.process p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--cream-dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.contact-info h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--plum); margin-bottom: 18px; }
.contact-info > p { color: var(--muted); }
.details { margin: 36px 0 0; display: grid; gap: 20px; }
.details dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.details dd { margin: 4px 0 0; font-size: 1rem; color: var(--text); white-space: pre-line; }
.details dd a:hover { color: var(--gold-dark); }
.placeholder { color: #B45309; font-style: italic; }

.enquiry-form {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--plum); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: .95rem;
  padding: 12px 14px;
  border: 1px solid #E2DAD0;
  border-radius: 2px;
  background: var(--cream);
  color: var(--text);
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, .2);
}
.field.invalid input { border-color: #DC2626; }
.form-status { margin: 0; font-size: .9rem; min-height: 1.4em; }
.form-status.ok { color: #15803D; }
.form-status.err { color: #DC2626; }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-deep); color: rgba(255, 255, 255, .6); padding-block: 50px; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer-inner p { margin: 6px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a:hover { color: var(--gold); }
.copyright { width: 100%; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px; font-size: .8rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .silk-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { gap: 50px; }
}

@media (max-width: 880px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(26, 10, 32, .98);
    padding: 12px 24px 24px;
    transform: translateY(-120%);
    transition: transform .35s ease;
    z-index: -1;
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav a.active { border-bottom-color: rgba(255, 255, 255, .08); color: var(--gold); }
  .menu-open .nav { transform: none; }
  .menu-open .site-header { background: rgba(26, 10, 32, .98); }

  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight:nth-child(2) { border-right: 0; }
  .highlight:nth-child(-n+2) { border-bottom: 1px solid rgba(197, 160, 89, .18); }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-art { max-width: 380px; margin: 0 auto; width: 85%; }

  .process { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .process::before { display: none; }
  .scroll-cue { display: none; }
  .section { padding-block: 80px; }
}

@media (max-width: 520px) {
  .container { padding-inline: 18px; }
  .silk-grid, .process { grid-template-columns: 1fr; }
  .highlight { padding: 26px 12px; }
  .enquiry-form { padding: 26px 20px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
