/* Lilly's Design — Fabrics & Upholstery, Montclair CA — v2
   Fraunces (display) + Work Sans (body) via Google Fonts.
   Plum/cream anchors kept, range deepened. Mobile-first. */

:root {
  --plum-ink: #2E1229;
  --plum: #6B2D6E;
  --plum-dark: #4E2050;
  --magenta: #B04A8F;
  --cream: #FAF5EA;
  --cream-deep: #F3EAD7;
  --gold: #A67C2E;
  --brass: #C9A227;
  --leather: #7B4B3A;
  --ink: #2B1E24;
  --ink-soft: #5D4C3F;
  --line: #E2D5BD;
  --white: #FFFDF8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3 {
  font-family: Fraunces, Georgia, 'Times New Roman', serif;
  color: var(--plum-dark);
  line-height: 1.15;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; margin-bottom: 0.6rem; }
h2 em, h1 em { font-style: italic; color: var(--magenta); }
h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }

a { color: var(--plum); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }
.section { padding: 96px 0; }
.section-alt { background: var(--cream-deep); }
.section-dark { background: var(--plum-ink); color: #F5EAF2; }
.section-dark h2, .section-dark h3 { color: #FFF6EC; }
.section-dark h2 em { color: var(--brass); }
.section-intro { font-size: 1.12rem; color: var(--ink-soft); max-width: 660px; }

.eyebrow {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 0 0 12px;
}
.section-dark .eyebrow { color: var(--brass); }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; }
.brand-text {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--plum-dark);
  line-height: 1.1;
}
.brand-text small { display: block; font-size: 0.72rem; font-family: 'Work Sans', sans-serif; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.06em; text-transform: uppercase; }
.main-nav { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--plum); }
.main-nav .nav-cta {
  background: var(--plum);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
}
.main-nav .nav-cta:hover { background: var(--plum-dark); color: #fff; }
.header-phone { font-weight: 700; color: var(--plum-dark); text-decoration: none; white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Work Sans', sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: var(--plum-dark); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.65); backdrop-filter: blur(2px); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); }
.btn-secondary { background: transparent; color: var(--plum-dark); border-color: var(--plum); }
.btn-secondary:hover { background: var(--plum); color: #fff; }

/* Hero */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46,18,41,0.42) 0%, rgba(46,18,41,0.55) 45%, rgba(46,18,41,0.88) 100%);
}
.hero-inner { position: relative; padding-top: 120px; padding-bottom: 72px; color: #fff; }
.hero-inner .eyebrow { color: var(--brass); }
.hero-inner h1 { color: #fff; max-width: 14ch; }
.hero-inner h1 em { color: #E8A9CF; }
.hero-sub { font-size: 1.15rem; line-height: 1.6; max-width: 620px; color: #F3E9F0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 18px; }
.hero-meta { font-size: 0.92rem; color: #D8C6D2; }

/* Style-term band + stats */
.band { background: var(--plum-ink); color: #F5EAF2; padding: 34px 0 44px; overflow: hidden; }
.marquee { overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.14); padding-bottom: 22px; }
.marquee-track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: marquee 48s linear infinite;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #F5EAF2;
  white-space: nowrap;
}
.marquee-track .dot { color: var(--brass); }
@keyframes marquee { to { transform: translateX(-50%); } }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  padding-top: 36px;
}
.stat strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  color: var(--brass);
}
.stat span { display: block; margin-top: 8px; font-size: 0.98rem; color: #E4D3DE; }

/* Showroom band */
.showroom-band { background: var(--plum); color: #fff; padding: 64px 0; }
.showroom-band h2 { color: #fff; }
.showroom-band p { max-width: 720px; font-size: 1.1rem; margin-bottom: 0; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 32px;
}
.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-wide { grid-column: span 2; }
.drapery-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.example-note {
  padding: 0 20px 20px !important;
  margin: -10px 0 0 !important;
  font-size: 0.85rem !important;
  font-style: italic;
}
.service h3 { padding: 18px 20px 0; }
.service p { padding: 0 20px 20px; margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* Craft / history (dark) */
.craft-lead { font-size: 1.15rem; line-height: 1.65; max-width: 780px; color: #EFE3EC; }
.craft-lead strong { color: #fff; }
.craft-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
  margin-top: 44px;
}
.craft-figure { margin: 0; }
.craft-figure img { border-radius: 14px; box-shadow: 0 12px 36px rgba(0,0,0,0.4); }
.craft-figure figcaption { font-size: 0.92rem; color: #CDB9C6; margin-top: 12px; }
.layer-stack h3 { color: #FFF6EC; font-size: 1.5rem; }
.layer-stack ol { list-style: none; margin: 18px 0 0; padding: 0; }
.layer-stack li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.layer-num {
  flex: 0 0 auto;
  width: 32px; height: 32px; line-height: 32px; text-align: center;
  border-radius: 50%;
  background: var(--brass); color: var(--plum-ink);
  font-family: Fraunces, Georgia, serif; font-weight: 900;
}
.layer-stack li strong { display: block; color: #fff; font-size: 1.02rem; }
.layer-stack li span span { color: #CDB9C6; font-size: 0.95rem; }

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  margin-top: 52px;
  border-top: 2px solid var(--brass);
}
.milestone { padding: 18px 16px 0 0; position: relative; }
.milestone::before {
  content: "";
  position: absolute; top: -7px; left: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--leather); border: 2px solid var(--brass);
}
.milestone strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brass);
}
.milestone span { font-size: 0.9rem; color: #CDB9C6; }

.craft-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-top: 48px;
}
.fact {
  margin: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  overflow: hidden;
}
.fact img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fact figcaption { padding: 16px 18px 20px; font-size: 0.96rem; color: #EFE3EC; line-height: 1.55; }
.fact figcaption strong { color: #fff; }

.craft-quote {
  margin: 52px auto 0;
  max-width: 780px;
  padding: 22px 28px;
  border-left: 4px solid var(--brass);
  background: rgba(255,255,255,0.06);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.45;
  color: #FFF6EC;
  text-align: left;
}
.craft-close { max-width: 780px; font-size: 1.1rem; color: #EFE3EC; margin: 28px auto 0; }
.craft-cta { text-align: center; margin-top: 32px; }

/* Gallery sliders */
.sliders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.ba-slider { margin: 0; }
.ba-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  touch-action: none;
  cursor: ew-resize;
  background: var(--cream-deep);
  user-select: none;
  -webkit-user-select: none;
}
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { clip-path: inset(0 50% 0 0); }
.ba-tag {
  position: absolute; top: 14px;
  background: rgba(46,18,41,0.85); color: #fff;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; pointer-events: none;
}
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 4px; margin-left: -2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
  cursor: ew-resize;
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--plum); border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.ba-handle span::before, .ba-handle span::after {
  content: "";
  position: absolute; top: 50%;
  border: solid #fff; border-width: 2px 2px 0 0;
  width: 8px; height: 8px;
}
.ba-handle span::before { left: 9px; transform: translateY(-50%) rotate(-135deg); }
.ba-handle span::after { right: 9px; transform: translateY(-50%) rotate(45deg); }
.ba-slider figcaption, .masonry figcaption { padding: 14px 4px 0; font-size: 0.98rem; color: var(--ink-soft); }
.ba-slider figcaption strong, .masonry figcaption strong { color: var(--ink); }

/* Masonry grid */
.masonry {
  columns: 3;
  column-gap: 22px;
  margin-top: 40px;
}
.masonry > figure { margin: 0 0 26px; break-inside: avoid; }
.masonry img { width: 100%; border-radius: 14px; }
.pair-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair-imgs img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Dining chairs — quick turn band */
.dining-band { background: var(--plum); color: #fff; padding: 80px 0; }
.dining-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: center;
}
.dining-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dining-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.dining-band .eyebrow { color: var(--brass); }
.dining-copy h2 { color: #fff; }
.dining-copy h2 em { color: var(--brass); }
.dining-copy p { color: #F3E9F0; font-size: 1.1rem; }
.dining-copy .btn { margin-top: 10px; }

/* Herringbone trio */
.trio { margin: 40px 0 0; }
.trio-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trio-imgs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.trio figcaption { padding: 14px 4px 0; font-size: 0.98rem; color: var(--ink-soft); }
.trio figcaption strong { color: var(--ink); }

/* Fabric store */
.store-badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 14px;
}
.store-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}
.step-num {
  display: inline-block;
  width: 34px; height: 34px; line-height: 34px; text-align: center;
  border-radius: 50%;
  background: var(--plum); color: #fff;
  font-family: Fraunces, Georgia, serif; font-weight: 900;
  margin-bottom: 10px;
}
.step p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.fabric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.fabric-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  padding-bottom: 18px;
}
.fabric-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fabric-card h3 { padding: 14px 18px 0; margin-bottom: 2px; }
.fabric-meta { padding: 0 18px; margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.fabric-price { padding: 0 18px; margin: 8px 0 14px; font-weight: 700; color: var(--plum-dark); font-size: 1.1rem; }
.fabric-card .btn-small { margin-left: 18px; padding: 9px 18px; font-size: 0.95rem; }
.store-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.store-preview img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.store-preview-note { margin: 12px 0 0; color: var(--ink-soft); font-style: italic; }
.fabric-coming-soon {
  grid-column: 1 / -1;
  background: var(--white);
  border: 2px dashed var(--gold);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}
.fabric-coming-soon h3 { margin-bottom: 8px; }
.fabric-coming-soon p { color: var(--ink-soft); max-width: 560px; margin: 0 auto 18px; }

/* Reviews */
.ratings { font-size: 1.05rem; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.review-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 24px;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.55;
}
.review-card p { margin: 0 0 12px; }
.stars {
  position: relative;
  display: inline-block;
  font-style: normal;
  font-size: 1.35rem;
  letter-spacing: 2px;
  color: #D8CBB2;
  line-height: 1;
  margin: 0 0 14px;
}
.stars-fill {
  position: absolute; left: 0; top: 0;
  overflow: hidden;
  color: var(--gold);
  white-space: nowrap;
}
.stars-note {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0;
  margin-left: 10px;
  vertical-align: middle;
}
.review-card footer {
  margin-top: 6px;
  font-family: 'Work Sans', sans-serif;
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.reviews-note { margin-top: 24px; color: var(--ink-soft); font-size: 0.98rem; }

/* FAQ */
.faq dt { font-family: Fraunces, Georgia, serif; font-size: 1.2rem; font-weight: 600; color: var(--plum-dark); margin-top: 24px; }
.faq dd { margin: 6px 0 0; color: var(--ink-soft); }

/* Quote form */
.quote-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  margin-top: 28px;
}
.field { margin-bottom: 18px; flex: 1; }
.field-row { display: flex; gap: 16px; }
.field label, fieldset.dimensions legend {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.field .optional { font-weight: normal; color: var(--ink-soft); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #CBBFA4;
  border-radius: 8px;
  background: #FFFefb;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--plum);
  border-color: var(--plum);
}
.field textarea { resize: vertical; }
.field-hint { font-size: 0.88rem; color: var(--ink-soft); margin: 6px 0 0; }
fieldset.dimensions {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 16px 4px;
  margin: 0 0 18px;
}
fieldset.dimensions legend { padding: 0 6px; }
.field-unit { max-width: 130px; }
.btn-submit { width: 100%; font-size: 1.1rem; padding: 15px; }
.form-note { font-size: 0.92rem; color: var(--ink-soft); text-align: center; margin-top: 14px; }

/* Contact + footer */
.contact .eyebrow { color: var(--brass); }
.contact h2 { color: #FFF6EC; }
.contact h2 em { color: var(--brass); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.contact-grid h3 { color: #FFF6EC; margin-bottom: 6px; }
.contact-grid p, .contact-grid address { margin: 0; font-style: normal; color: #EFE3EC; }
.contact-grid a { color: #F2D7E8; }
.social-links { margin-top: 28px; font-size: 1.02rem; color: #EFE3EC; }
.social-links a { color: #F2D7E8; }
.site-footer {
  background: var(--plum-ink);
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #CDB9C6;
  padding: 26px 0;
  font-size: 0.92rem;
}
.site-footer p { margin: 0; }

/* Mobile */
@media (max-width: 900px) {
  .craft-split { grid-template-columns: 1fr; gap: 32px; }
  .masonry { columns: 2; }
}
@media (max-width: 820px) {
  .hero-inner { padding-top: 90px; padding-bottom: 56px; }
  .main-nav { display: none; }
  .header-phone { margin-left: auto; }
  .field-row { flex-direction: column; gap: 0; }
  .field-unit { max-width: none; }
  .section { padding: 56px 0; }
  .masonry { columns: 1; }
  .sliders { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .service-wide { grid-column: span 1; }
  .dining-grid { grid-template-columns: 1fr; gap: 28px; }
  .dining-band { padding: 56px 0; }
  .trio-imgs { grid-template-columns: 1fr; }
  .store-preview { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}
