/* ==========================================================================
   RIDDHII GALA — stylesheet
   A bespoke-tailoring visual language: ivory paper, oxblood + muted-gold
   thread accents, a deep bottle green for contrast sections, and a
   recurring "hand-stitch" rule as the signature device throughout.
   ========================================================================== */

:root {
  /* --- palette --- */
  --paper: #faf6ef;
  --paper-soft: #f1e9da;
  --ink: #221d18;
  --ink-soft: #59504a;
  --line: rgba(34, 29, 24, 0.14);
  --line-strong: rgba(34, 29, 24, 0.28);

  --maroon: #7a2230;
  --maroon-deep: #591a24;
  --maroon-ghost: rgba(122, 34, 48, 0.08);

  --gold: #ab8a53;
  --gold-soft: #d9c79c;

  --bottle: #29352b;
  --bottle-deep: #1c251e;
  --bottle-ivory: #f4efe2;

  /* --- type --- */
  --font-display: "Playfair Display", "Iowan Old Style", serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;

  /* --- layout --- */
  --sidebar-w: 280px;
  --gutter: clamp(1.5rem, 4vw, 4rem);
  --radius: 2px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0 0 0.5em; color: var(--ink); letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1.25rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 3px;
}

/* ---------- stitch rule — the signature device ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--maroon);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 3px;
  background-image: radial-gradient(circle, currentColor 1.1px, transparent 1.3px);
  background-size: 7px 100%;
  background-repeat: repeat-x;
  opacity: 0.85;
}

.stitch-rule {
  height: 3px;
  width: 100%;
  background-image: radial-gradient(circle, var(--line-strong) 1.1px, transparent 1.3px);
  background-size: 9px 100%;
  background-repeat: repeat-x;
  border: 0;
  margin: 0;
}

/* ==========================================================================
   Mobile header
   ========================================================================== */
.mobile-header {
  display: none;
  position: sticky; top: 0; z-index: 120;
  align-items: center; justify-content: space-between;
  padding: 0.9rem 1.1rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.mobile-header .mobile-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.mobile-header .mobile-logo em { font-style: normal; color: var(--maroon); }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: transparent; border: 1px solid var(--line-strong);
  padding: 0.5rem 0.9rem; border-radius: var(--radius);
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink);
}
.menu-toggle span { font-size: 1rem; }

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
  position: fixed; inset: 0 auto 0 0;
  width: var(--sidebar-w);
  padding: 2.4rem 2rem 2rem;
  background: var(--bottle);
  color: var(--bottle-ivory);
  overflow-y: auto;
  display: flex; flex-direction: column; justify-content: space-between;
  z-index: 110;
}
.sidebar .brand a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--bottle-ivory);
  letter-spacing: 0.02em;
}
.sidebar .brand em { font-style: normal; color: var(--gold-soft); }
.sidebar .brand p {
  margin: 0.35rem 0 2.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 239, 226, 0.55);
}

.sidebar nav { display: flex; flex-direction: column; gap: 0.15rem; }

.nav-link {
  text-decoration: none;
  color: rgba(244, 239, 226, 0.82);
  font-size: 0.95rem;
  padding: 0.55rem 0.1rem;
  border-bottom: 1px solid rgba(244, 239, 226, 0.1);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.nav-link:hover { color: var(--bottle-ivory); padding-left: 0.3rem; }
.nav-link.active { color: var(--gold-soft); font-weight: 600; }

.sidebar details {
  border-bottom: 1px solid rgba(244, 239, 226, 0.1);
  padding: 0.2rem 0;
}
.sidebar > nav > details { border: 0; }
.sidebar summary {
  cursor: pointer;
  list-style: none;
  padding: 0.55rem 0.1rem;
  font-size: 0.95rem;
  color: rgba(244, 239, 226, 0.82);
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar summary::-webkit-details-marker { display: none; }
.sidebar summary::after {
  content: "+";
  font-family: var(--font-display);
  color: var(--gold-soft);
  transition: transform 0.2s ease;
}
.sidebar details[open] > summary::after { transform: rotate(45deg); }
.sidebar > nav > details > summary { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,239,226,0.55); }

.sidebar details details {
  margin-left: 0.6rem;
  border-bottom: 0;
  padding: 0;
}
.sidebar details details summary { font-size: 0.88rem; padding-left: 0.3rem; }

.sidebar button[data-filter] {
  display: block; width: 100%; text-align: left;
  background: transparent; border: 0;
  color: rgba(244, 239, 226, 0.78);
  padding: 0.42rem 0.1rem 0.42rem 1rem;
  font-size: 0.86rem;
}
.sidebar > nav > details > button[data-filter],
.sidebar > nav > button[data-filter] {
  padding-left: 0.3rem; font-size: 0.95rem; color: rgba(244, 239, 226, 0.82);
}
.sidebar button[data-filter]:hover,
.sidebar button[data-filter].active {
  color: var(--gold-soft);
}
.sidebar button[data-filter].active { font-weight: 600; }

.sidebar .coming-soon {
  display: block;
  padding: 0.42rem 0.1rem;
  font-size: 0.95rem;
  color: rgba(244, 239, 226, 0.35);
}
.sidebar .coming-soon small { display: block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }

.sidebar-footer {
  display: flex; gap: 1.2rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(244, 239, 226, 0.12);
  font-size: 0.78rem; letter-spacing: 0.06em;
}
.sidebar-footer a { text-decoration: none; color: rgba(244, 239, 226, 0.7); }
.sidebar-footer a:hover { color: var(--gold-soft); }

/* ==========================================================================
   Main layout
   ========================================================================== */
main { margin-left: var(--sidebar-w); }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter); }
.section.tint { background: var(--paper-soft); }
.section-heading { max-width: 640px; margin-bottom: 2.8rem; }
.section-heading h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.section-heading p { max-width: 52ch; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 8vw, 5.5rem) var(--gutter) clamp(3.5rem, 8vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.hero-copy .intro {
  font-size: 0.95rem; letter-spacing: 0.03em; color: var(--maroon);
  font-weight: 600; margin-bottom: 1.4rem;
}
.hero-copy .intro span { color: var(--gold); margin: 0 0.5em; }
.hero-copy h1 {
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 0.98;
  margin-bottom: 0.15em;
}
.hero-copy h1 em { font-style: normal; color: var(--maroon); }
.hero-copy h2 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}
.hero-text { max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }

.button {
  display: inline-flex; align-items: center; gap: 0.5em;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: var(--maroon-deep); transform: translateY(-2px); }
.button-soft { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button-soft:hover { border-color: var(--maroon); color: var(--maroon); transform: translateY(-2px); }

.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(155deg, var(--bottle) 0%, var(--bottle-deep) 100%);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-art::before {
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid rgba(244, 239, 226, 0.35);
}
.hero-art::after {
  content: "RG";
  position: absolute;
  font-family: var(--font-display);
  font-size: 11rem;
  color: rgba(244, 239, 226, 0.06);
  letter-spacing: -0.02em;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-art span {
  position: relative;
  z-index: 1;
  color: rgba(244, 239, 226, 0.75);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  max-width: 12em;
  padding: 1.5rem;
  border-top: 1px solid rgba(244, 239, 226, 0.4);
  border-bottom: 1px solid rgba(244, 239, 226, 0.4);
}

/* ---------- about (split) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.split .text-link { display: inline-block; margin-top: 0.6rem; text-decoration: none; color: var(--maroon); font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 0.1em; }

/* ---------- product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.6rem;
}
.grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed var(--line-strong);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.product-card {
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  border-color: var(--maroon);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(34, 29, 24, 0.35);
}
.product-card .card-art {
  aspect-ratio: 3 / 4;
  background: var(--paper-soft);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.product-card .card-art svg { width: 55%; height: 55%; color: var(--maroon); }
.product-card .card-art img,
.product-card .card-art video { width: 100%; height: 100%; object-fit: cover; }
.product-card .card-new {
  position: absolute; top: 0.7rem; left: 0.7rem;
  background: var(--maroon); color: var(--paper);
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.25rem 0.55rem;
}
.product-card .card-body { padding: 1.1rem 1.2rem 1.3rem; }
.product-card .card-collection {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.35rem; display: block;
}
.product-card h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.product-card .card-fabric { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }

/* ---------- styling / services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
}
.service-grid article {
  padding: 1.8rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--maroon);
}
.service-grid h3 { font-size: 1.15rem; }
.service-grid p { margin: 0; font-size: 0.95rem; }

/* ---------- client love ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-bottom: 1.6rem;
}
.quote-grid figure { margin: 0; padding: 1.8rem 2rem; background: var(--paper-soft); border-left: 3px solid var(--gold); }
.quote-grid blockquote { margin: 0 0 0.9rem; font-family: var(--font-display); font-size: 1.15rem; font-style: italic; color: var(--ink); }
.quote-grid figcaption { font-size: 0.8rem; letter-spacing: 0.04em; color: var(--ink-soft); }
.note { font-size: 0.82rem; color: var(--ink-soft); font-style: italic; max-width: 60ch; }

/* ---------- instagram ---------- */
#instagram { text-align: left; }
#instagram .section-heading { margin-bottom: 2rem; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact #whatsapp-button { margin-top: 1rem; }

#custom-order-form {
  display: flex; flex-direction: column; gap: 1.3rem;
  background: var(--paper-soft);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
}
#custom-order-form p.hidden { position: absolute; left: -9999px; }
#custom-order-form label {
  display: flex; flex-direction: column; gap: 0.5rem;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
}
#custom-order-form label small { text-transform: none; letter-spacing: 0; opacity: 0.7; }
#custom-order-form input,
#custom-order-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
}
#custom-order-form input:focus,
#custom-order-form textarea:focus { border-color: var(--maroon); }
#custom-order-form textarea { min-height: 120px; resize: vertical; }
#custom-order-form button { align-self: flex-start; border: 1px solid var(--ink); }

/* ==========================================================================
   Product modal
   ========================================================================== */
dialog#product-modal {
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  width: min(640px, 92vw);
  max-height: 88vh;
  overflow: hidden;
  background: var(--paper);
}
dialog#product-modal::backdrop { background: rgba(28, 22, 18, 0.6); }
dialog#product-modal .close {
  position: absolute; top: 0.8rem; right: 1rem;
  background: transparent; border: 0;
  font-size: 1.6rem; line-height: 1; color: var(--ink);
  z-index: 5;
}
dialog#product-modal .close:hover { color: var(--maroon); }
#modal-content { max-height: 88vh; overflow-y: auto; }
.modal-art {
  aspect-ratio: 16 / 9;
  background: linear-gradient(155deg, var(--bottle) 0%, var(--bottle-deep) 100%);
  display: flex; align-items: center; justify-content: center;
}
.modal-art svg { width: 32%; color: var(--gold-soft); }
.modal-art img,
.modal-art video { width: 100%; height: 100%; object-fit: cover; }
.modal-art img { cursor: zoom-in; }
.modal-body { padding: 1.8rem 2rem 2.2rem; }
.modal-body .card-collection { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.modal-body h3 { font-size: 1.6rem; margin: 0.3rem 0 0.6rem; }
.modal-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
  font-size: 0.8rem; color: var(--ink-soft);
  margin: 0.8rem 0 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line-strong);
}
.modal-meta strong { color: var(--ink); font-weight: 600; }
.modal-body .button { margin-top: 0.6rem; }

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */
.floating-whatsapp {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 150;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--maroon);
  color: var(--paper);
  border-radius: 50%;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(122, 34, 48, 0.6);
  transition: transform 0.2s ease, background 0.2s ease;
}
.floating-whatsapp:hover { transform: translateY(-3px) scale(1.04); background: var(--maroon-deep); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .mobile-header { display: flex; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    width: min(320px, 84vw);
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }
  .sidebar.open { transform: translateX(0); box-shadow: 20px 0 40px -20px rgba(0,0,0,0.4); }
  main { margin-left: 0; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; aspect-ratio: 16/10; }
  .split, .contact { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero { padding-left: 1.25rem; padding-right: 1.25rem; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .button { justify-content: center; }
}

/* ==========================================================================
   Image lightbox (full-size zoom for gallery photos)
   ========================================================================== */
dialog#image-lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 94vw; max-height: 94vh;
}
dialog#image-lightbox::backdrop { background: rgba(28, 22, 18, 0.85); }
dialog#image-lightbox img { display: block; max-width: 94vw; max-height: 94vh; margin: 0 auto; }
dialog#image-lightbox .close {
  position: fixed; top: 1rem; right: 1.2rem; z-index: 5;
  background: transparent; border: 0; color: var(--paper);
  font-size: 2rem; line-height: 1;
}

