/* Layout: same structure as before (notice bar, centred hero framed by shapes, intro + list panel, three price cards, dark story band, how-it-works, FAQ, two shops, CTA, footer), dressed in the JC Rugs house style: linen ground, espresso ink, oxblood accent, Caslon headings, square edges. The hero shapes are woven carpet samples. */
:root {
  --linen: #f3efe7;
  --sand: #eae4d8;
  --stone: #c9bfaf;
  --paper: #faf8f5;
  --espresso: #2a241e;
  --ink-soft: rgba(42, 36, 30, .75);
  --oxblood: #8f3630;
  --oxblood-ink: #7a2e2a;
  --sage: #7d8b6a;
  --display: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --italic: "Libre Caslon Text", Georgia, serif;
  --body: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box }
body { background: var(--linen); color: var(--ink-soft); font: 400 1.0625rem/1.7 var(--body); letter-spacing: .03em; margin: 0 }
.gutter { padding-inline: clamp(16px, 4vw, 48px) }
.wrap { max-width: 1180px; margin-inline: auto }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--espresso); line-height: 1.08; margin: 0; letter-spacing: -.01em; text-wrap: balance }
h1 em, h2 em { font-family: var(--italic); font-style: italic }
h2 { font-size: clamp(2.2rem, 4.8vw, 3.6rem) }
p { margin: 0 }
a { color: inherit }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px }

.eyebrow { display: inline-block; border-left: 3px solid var(--oxblood); padding-left: 12px; font: 500 .75rem/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--oxblood-ink) }

.btn { display: inline-block; background: var(--espresso); color: var(--linen); font: 500 .85rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 20px 30px; border: 1px solid var(--espresso); transition: background .2s ease, color .2s ease }
.btn:hover { background: #3d342b }
.btn.outline { background: transparent; color: var(--espresso) }
.btn.outline:hover { background: var(--espresso); color: var(--linen) }
.btn.light { background: var(--linen); color: var(--espresso); border-color: var(--linen) }
.btn.light:hover { background: var(--sand) }

/* announcement bar */
.notice { background: var(--espresso); color: var(--linen); text-align: center; font: 400 .85rem/1.4 var(--italic); font-style: normal; letter-spacing: .04em; padding-block: 11px }

/* header */
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(243,239,231,.94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(42,36,30,.08) }
.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding-block: 18px }
.logo { font-family: var(--display); font-size: 1.7rem; letter-spacing: .02em; color: var(--espresso); text-decoration: none; justify-self: center; white-space: nowrap }
/* drop-down menu */
.menu { position: relative; justify-self: start }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid rgba(42,36,30,.25); color: var(--espresso); font: 500 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; padding: 12px 16px; cursor: pointer }
.menu-btn:hover { border-color: var(--espresso) }
.menu-btn .bars { width: 16px; height: 10px; border-block: 1.5px solid currentColor; position: relative }
.menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid currentColor; transform: translateY(-50%) }
.menu-list { position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px; margin: 0; padding: 8px 0; list-style: none; background: var(--paper); border: 1px solid rgba(42,36,30,.14); box-shadow: 0 18px 40px -18px rgba(42,36,30,.4) }
.menu-list[hidden] { display: none }
.menu-list a { display: block; padding: 12px 22px; font-family: var(--display); font-size: 1.2rem; color: var(--espresso); text-decoration: none }
.menu-list a:hover, .menu-list a:focus-visible { background: var(--sand) }
.bar .right { justify-self: end }
.bar .right .btn { padding: 13px 20px; font-size: .78rem }
@media (max-width: 600px) {
  .menu-btn .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
  .menu-btn { padding: 12px }
  .bar { gap: 12px }
}

/* hero with woven sample shapes */
.hero { position: relative; overflow: hidden; background: var(--linen); text-align: center; border-bottom: 1px solid rgba(42,36,30,.08) }
.hero-inner { position: relative; z-index: 2; padding-block: clamp(90px, 13vw, 160px); display: grid; justify-items: center; gap: 26px }
.hero h1 { font-size: clamp(2.8rem, 7.4vw, 5.6rem); max-width: 15ch }
.hero p { font-size: clamp(1.05rem, 1.8vw, 1.2rem); max-width: 44ch }
.hero .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-top: 6px }

.shape { position: absolute; z-index: 1; pointer-events: none; box-shadow: 0 18px 30px -18px rgba(42,36,30,.45) }
/* loop pile: fine vertical ribs + faint cross-weave */
.weave { background-color: var(--c);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 2px, rgba(0,0,0,.07) 2px 4px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 2px, transparent 2px 5px) }
/* herringbone / berber */
.berber { background-color: var(--c);
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.14) 0 3px, transparent 3px 8px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.08) 0 3px, transparent 3px 8px) }
.bound { outline: 6px solid var(--b, rgba(42,36,30,.85)); outline-offset: -6px }

/* photo prints: image fills the shape, thin paper border like a print laid on the table */
.photo { object-fit: cover; display: block; border: 6px solid var(--paper); background: var(--sand); max-width: none }
.s1 { width: 260px; height: 340px; left: -50px; top: 40px; transform: rotate(-8deg) }
.s2 { width: 170px; height: 215px; left: 6%; bottom: 50px; transform: rotate(7deg) }
.s3 { width: 140px; height: 140px; left: 15%; top: 26px; transform: rotate(14deg) }
.s4 { width: 220px; height: 290px; right: -40px; top: 50px; transform: rotate(9deg) }
.s5 { width: 180px; height: 180px; right: 6%; bottom: 36px; transform: rotate(-10deg) }
.s6 { width: 130px; height: 170px; right: 17%; top: 18px; transform: rotate(-6deg) }
@media (max-width: 1200px) { .s3, .s6 { display: none } }
@media (max-width: 900px) {
  .photo { border-width: 4px }
  .s1 { width: 130px; height: 170px; left: -50px; top: 20px }
  .s2 { width: 96px; height: 120px; left: -24px; bottom: 30px }
  .s4 { width: 115px; height: 152px; right: -50px; top: 30px }
  .s5 { width: 100px; height: 100px; right: -24px; bottom: 30px }
}
@media (max-width: 600px) {
  /* keep the prints clear of the words: photos sit above and below the text */
  .hero-inner { padding-block: 190px 170px }
  .s1 { width: 118px; height: 150px; left: 4%; top: 22px }
  .s4 { width: 118px; height: 150px; right: 4%; left: auto; top: 30px }
  .s2 { width: 108px; height: 128px; left: 8%; bottom: 22px }
  .s5 { width: 112px; height: 112px; right: 8%; bottom: 28px }
}
.bar .right .btn { white-space: nowrap }
@media (max-width: 600px) {
  .band .b1 { width: 80px; height: 110px; right: -36px; top: -34px }
  .band .b2 { display: none }
  .cta .c1, .cta .c2 { width: 70px; height: 90px }
}
@media (max-width: 420px) { .logo { font-size: 1.2rem } .bar .right .btn { padding: 11px 12px } }

/* trust strip */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; padding-block: 22px; font: 500 .78rem/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid rgba(42,36,30,.08) }
.trust b { color: var(--oxblood-ink); font-weight: 600 }

section { padding-block: clamp(80px, 11vw, 136px) }

/* intro + list panel */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: start }
.two > * { min-width: 0 }
.lede { font-size: 1.1rem; max-width: 48ch; display: grid; gap: 18px }
.panel { background: var(--paper); border: 1px solid rgba(42,36,30,.1); padding: clamp(26px, 4vw, 42px); display: grid }
.panel > p { font-weight: 600; color: var(--espresso); margin-bottom: 14px }
.strip { font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--espresso); padding-block: 14px; border-top: 1px solid rgba(42,36,30,.12); display: flex; gap: 14px; align-items: baseline }
.strip::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--oxblood); transform: translateY(-2px) }
.strip:nth-child(3n+3)::before { background: var(--sage) }
.strip:nth-child(3n+4)::before { background: var(--stone) }

/* price cards */
.center { text-align: center; display: grid; justify-items: center; gap: 18px }
.center > p { max-width: 50ch; font-size: 1.1rem }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px }
.card { padding: 34px 30px 36px; display: flex; flex-direction: column; gap: 14px; text-align: left; border: 1px solid rgba(42,36,30,.1) }
.card:nth-child(1) { background: var(--paper) }
.card:nth-child(2) { background: var(--sand) }
.card:nth-child(3) { background: #e3e6dc }
.card .tag { font: 500 .72rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--oxblood-ink) }
.card h3 { font-size: clamp(1.7rem, 2.8vw, 2.1rem) }
.card .price { font-family: var(--display); font-size: clamp(3rem, 5.4vw, 4rem); line-height: 1; color: var(--espresso) }
.card .price small { font: 500 .8rem var(--body); letter-spacing: .12em; text-transform: uppercase; margin-left: 6px; color: var(--ink-soft) }
.card .points { list-style: none; margin: auto 0 0; padding: 18px 0 0; border-top: 1px solid rgba(42,36,30,.14); display: grid; gap: 8px; font-size: .98rem; color: var(--espresso) }
.card .points li { display: flex; gap: 12px; align-items: baseline }
.card .points li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--oxblood); transform: translateY(-2px) }
.card .where { margin-top: 6px; font: 500 .78rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--oxblood-ink); text-decoration: none }
.card .where:hover { text-decoration: underline; text-underline-offset: 4px }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr } .two { grid-template-columns: 1fr } }

/* dark story band */
.band { background: var(--espresso); color: rgba(243,239,231,.78); position: relative; overflow: hidden }
.band h2 { color: var(--linen) }
.band .eyebrow { color: var(--stone); border-color: var(--oxblood) }
.band .lede { position: relative; z-index: 2; margin-top: 22px }
.years { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 56px; position: relative; z-index: 2; border-top: 1px solid rgba(243,239,231,.18) }
.year { padding: 28px 24px 8px 0; border-right: 1px solid rgba(243,239,231,.12); padding-left: 24px }
.year:first-child { padding-left: 0 }
.year:last-child { border-right: 0 }
.year b { font-family: var(--display); font-weight: 400; font-size: 2.6rem; line-height: 1; display: block; color: var(--linen); margin-bottom: 12px }
@media (max-width: 860px) { .years { grid-template-columns: 1fr 1fr } .year { border-right: 0; padding-left: 0 } }
@media (max-width: 480px) { .years { grid-template-columns: 1fr } }
.b1 { --c: var(--oxblood); width: 220px; height: 280px; right: -60px; top: -50px; transform: rotate(12deg) }
.b2 { --c: #6f6250; width: 140px; height: 140px; right: 14%; bottom: -50px; transform: rotate(-14deg) }

/* our work gallery */
.inhouse { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px; border-block: 1px solid rgba(42,36,30,.14) }
.inhouse span { padding: 20px 12px; text-align: center; font-family: var(--display); font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: var(--espresso); border-right: 1px solid rgba(42,36,30,.12) }
.inhouse span:last-child { border-right: 0 }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px }
.gallery figure { margin: 0; background: var(--paper); border: 1px solid rgba(42,36,30,.1); padding: 10px 10px 16px; display: grid; gap: 12px }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--sand) }
.gallery figcaption { font-size: .95rem; padding-inline: 4px }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr } .inhouse { grid-template-columns: 1fr 1fr } .inhouse span:nth-child(2) { border-right: 0 } .inhouse span:nth-child(-n+2) { border-bottom: 1px solid rgba(42,36,30,.12) } }
@media (max-width: 480px) { .gallery { gap: 12px } .gallery figure { padding: 6px 6px 12px } .gallery figcaption { font-size: .85rem } }

/* reviews */
.ratings { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px }
.rating { background: var(--paper); border: 1px solid rgba(42,36,30,.1); padding: 28px 30px; display: grid; gap: 6px }
.rating .score { font-family: var(--display); font-size: clamp(2.8rem, 5vw, 3.6rem); line-height: 1; color: var(--espresso) }
.rating .stars { color: var(--oxblood); letter-spacing: .15em; font-size: 1.1rem }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px }
.quotes blockquote { margin: 0; padding: 30px; background: var(--sand); border: 1px solid rgba(42,36,30,.1); display: grid; gap: 14px; align-content: start }
.quotes blockquote p { font-family: var(--italic); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.35; color: var(--espresso) }
.quotes cite { font: 500 .75rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--oxblood-ink) }
.more-reviews { margin-top: 28px; text-align: center }
@media (max-width: 760px) { .ratings, .quotes { grid-template-columns: 1fr } }

/* how it works */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px }
.service { background: var(--paper); border: 1px solid rgba(42,36,30,.1); padding: 34px; display: grid; gap: 14px; align-content: start }
.service .num { font-family: var(--italic); font-style: italic; font-size: 1.2rem; color: var(--oxblood-ink) }
.service h3 { font-size: 1.9rem }
@media (max-width: 860px) { .services { grid-template-columns: 1fr } }

/* faq */
.faq { max-width: 820px; margin: 48px auto 0; border-top: 1px solid rgba(42,36,30,.15) }
details { border-bottom: 1px solid rgba(42,36,30,.15); padding-block: 22px }
summary { cursor: pointer; font-family: var(--display); font-size: 1.35rem; color: var(--espresso); list-style: none; display: flex; justify-content: space-between; gap: 16px }
summary::-webkit-details-marker { display: none }
summary::after { content: "+"; font-family: var(--body); font-weight: 400; font-size: 1.4rem; line-height: 1.2; color: var(--oxblood) }
details[open] summary::after { content: "–" }
details p { margin-top: 12px; max-width: 62ch }

/* shops */
.shops { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px }
.shop { background: var(--paper); border: 1px solid rgba(42,36,30,.1); padding: clamp(26px, 4vw, 42px); display: grid; gap: 16px; align-content: start }
.shop h3 { font-size: clamp(1.9rem, 3.6vw, 2.6rem) }
.tel { font-family: var(--display); font-size: 1.6rem; color: var(--espresso); text-decoration: none }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; margin: 0; font-variant-numeric: tabular-nums; border-top: 1px solid rgba(42,36,30,.12); padding-top: 16px }
.hours dt { color: var(--espresso); font-weight: 500 }
.hours dd { margin: 0 }
@media (max-width: 860px) { .shops { grid-template-columns: 1fr } }

/* cta + footer */
.cta { background: var(--sand); border: 1px solid rgba(42,36,30,.1); padding: clamp(44px, 7vw, 84px) clamp(24px, 5vw, 64px); text-align: center; display: grid; justify-items: center; gap: 22px; position: relative; overflow: hidden }
.cta h2, .cta p, .cta .btn { position: relative; z-index: 2 }
.cta h2 { max-width: 16ch }
.c1 { --c: var(--oxblood); width: 120px; height: 150px; left: -40px; bottom: -40px; transform: rotate(14deg) }
.c2 { --c: var(--sage); width: 100px; height: 130px; right: -20px; top: -30px; transform: rotate(-10deg) }
footer { background: var(--sand); margin-top: clamp(80px, 10vw, 120px); padding-block: 56px 44px; border-top: 1px solid rgba(42,36,30,.1) }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px }
.foot h4 { margin: 0 0 12px; font: 500 .75rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--oxblood-ink) }
.foot p { font-size: .98rem }
.foot .logo { display: block; margin-bottom: 14px; justify-self: start }
.legal { border-top: 1px solid rgba(42,36,30,.12); margin-top: 40px; padding-top: 22px; font-size: .85rem }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr } }

@media (prefers-reduced-motion: reduce) { .btn { transition: none } }

/* showroom page */
.page-head { padding-block: clamp(70px, 10vw, 120px) clamp(40px, 6vw, 64px) }
.page-head .center > p { max-width: 56ch }
.showroom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px }
.showroom figure { margin: 0; min-width: 0 }
.showroom figure.wide { grid-column: 1 / -1 }
.showroom img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--sand) }
.showroom figure.wide img { aspect-ratio: 21 / 9 }
@media (max-width: 760px) {
  .showroom { gap: 10px }
  .showroom figure.wide img { aspect-ratio: 16 / 10 }
}
