/* Jhonny's Carpet & Floors — brand stylesheet
   Palette: Warm Black #2A1A16 · Umber #5A2F28 · Walnut #9C4130 · Camel #BB8C53 · Cream #F3EBDD
   Red #D62828 is reserved for single-word campaign emphasis only. */

:root {
  --black: #2A1A16;
  --ink: #111111;        /* logo outline only */
  --umber: #5A2F28;
  --walnut: #9C4130;
  --camel: #BB8C53;
  --cream: #F3EBDD;
  --cream-2: #FAF6EF;
  --white: #FFFFFF;
  --red: #D62828;        /* campaign accent only */
  --text: #2A1A16;
  --muted: #6E5A54;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(42, 26, 22, .12);
  --font: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --nav-h: 68px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--cream-2);
  line-height: 1.55; overflow-x: hidden;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--walnut); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .4em; font-weight: 900; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section.tight { padding: clamp(32px, 5vw, 56px) 0; }
.section.cream { background: var(--cream); }
.section.dark { background: var(--umber); color: var(--white); }
.section.dark a { color: var(--camel); }
.section.black { background: var(--black); color: var(--white); }
.kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--walnut); margin-bottom: 10px; }
.dark .kicker, .black .kicker { color: var(--camel); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.dark .lead, .black .lead { color: rgba(255,255,255,.82); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; font-weight: 800; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none !important; line-height: 1.1;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--walnut); color: var(--white); }
.btn-primary:hover { background: #8a3829; }
.btn-dark { background: var(--umber); color: var(--white); }
.btn-camel { background: var(--camel); color: var(--black); }
.btn-outline { background: transparent; color: var(--umber); border-color: var(--umber); }
.dark .btn-outline, .black .btn-outline { color: var(--white); border-color: var(--white); }
.btn-lg { padding: 16px 28px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- Logo badge ---------- */
.badge {
  display: inline-flex; flex-direction: column; align-items: center; background: var(--white);
  border: 3px solid var(--ink); border-radius: 12px; padding: 8px 12px 0; box-shadow: 4px 4px 0 var(--ink);
  text-align: center; text-decoration: none !important; color: var(--ink); line-height: 1;
}
.badge .b1 { font-size: 1.15rem; font-weight: 900; color: var(--walnut); text-transform: uppercase; letter-spacing: -.02em; -webkit-text-stroke: .5px var(--ink); white-space: nowrap; }
.badge .b2 { font-size: .58rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; margin: 3px 0 5px; }
.badge .b3 { align-self: stretch; margin: 0 -12px; background: var(--umber); color: var(--white); font-size: .62rem; font-weight: 900; letter-spacing: .35em; padding: 4px 0 3px; border-top: 2px double var(--ink); border-radius: 0 0 9px 9px; }
.badge.lg { padding: 18px 26px 0; border-width: 5px; border-radius: 18px; box-shadow: 7px 7px 0 var(--ink); }
.badge.lg .b1 { font-size: clamp(1.9rem, 6vw, 3rem); -webkit-text-stroke: 1.5px var(--ink); }
.badge.lg .b2 { font-size: 1rem; margin: 8px 0 12px; }
.badge.lg .b3 { margin: 0 -26px; font-size: 1.1rem; padding: 9px 0 8px; border-top-width: 3px; border-radius: 0 0 13px 13px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(250,246,239,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(42,26,22,.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); gap: 16px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--umber); font-weight: 700; padding: 8px 9px; border-radius: 8px; font-size: .86rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--cream); text-decoration: none; }
.nav a.hot { background: var(--umber); color: var(--white); margin-left: 6px; }
.nav a.hot:hover { background: var(--walnut); }
.nav-phone { display: none; }
.burger { display: none; background: none; border: 2px solid var(--umber); border-radius: 8px; padding: 6px 9px; cursor: pointer; color: var(--umber); }
.burger span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px 0; }
@media (max-width: 1120px) {
  .burger { display: block; }
  .nav { position: fixed; inset: var(--nav-h) 0 auto 0; background: var(--cream-2); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 2px solid var(--umber); transform: translateY(-120%); transition: transform .3s ease; box-shadow: var(--shadow); }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 13px 12px; font-size: 1.05rem; }
  .nav a.hot { margin: 8px 0 0; text-align: center; }
  .nav-phone { display: block; text-align: center; margin-top: 8px; font-weight: 900; color: var(--walnut); font-size: 1.15rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: clamp(40px, 6vw, 88px) 0; }
.hero h1 { color: var(--umber); }
.hero h1 em { font-style: normal; color: var(--walnut); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero .trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: .92rem; font-weight: 700; color: var(--umber); }
.hero .trust span::before { content: "✓ "; color: var(--walnut); }
.hero-art { position: relative; min-height: 320px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { min-height: 220px; order: -1; }
}

/* Carpet roll illustration (pure CSS) */
.roll-scene { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.roll-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 58%; border-radius: 18px;
  background: repeating-linear-gradient(90deg, var(--camel) 0 46px, #b08349 46px 48px); opacity: .55; transform: skewY(-3deg); transform-origin: left bottom; }
.roll-carpet { position: absolute; left: 0; bottom: 8%; height: 34%; width: 0; border-radius: 6px;
  background: linear-gradient(180deg, var(--walnut), #8a3829); box-shadow: 0 8px 0 #6e2c20 inset; animation: unroll 1.6s cubic-bezier(.2,.8,.2,1) .2s forwards; }
.roll-cyl { position: absolute; bottom: 8%; left: 0; height: 34%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--cream) 0 18%, var(--umber) 19% 30%, var(--walnut) 31% 100%);
  box-shadow: 0 10px 20px rgba(42,26,22,.25); animation: rollcyl 1.6s cubic-bezier(.2,.8,.2,1) .2s forwards; }
@keyframes unroll { to { width: 78%; } }
@keyframes rollcyl { to { left: 74%; transform: rotate(720deg) scale(.7); } }

/* ---------- Cards ---------- */
.card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid rgba(42,26,22,.06); }
.card h3 { color: var(--umber); }
.card .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); color: var(--walnut); margin-bottom: 14px; font-size: 1.4rem; }
.product { position: relative; overflow: hidden; border-radius: var(--radius); color: var(--white); padding: 26px; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none !important; box-shadow: var(--shadow); transition: transform .2s ease; }
.product:hover { transform: translateY(-4px); }
.product h3 { color: var(--white); margin: 0 0 4px; font-size: 1.45rem; }
.product p { margin: 0; opacity: .9; font-size: .95rem; }
.product .tag { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.p-carpet { background: linear-gradient(160deg, #c99a5f, var(--camel) 60%, #a67a45); }
.p-carpet::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 3px, transparent 3px 7px); }
.p-lvp { background: linear-gradient(160deg, #b04b38, var(--walnut) 60%, #7f3324); }
.p-lvp::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 70px, rgba(0,0,0,.14) 70px 73px); }
.p-hard { background: linear-gradient(160deg, #6e3a31, var(--umber) 60%, #46231d); }
.p-hard::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 110px, rgba(255,255,255,.08) 110px 113px); }
.p-tile { background: linear-gradient(160deg, #3d2823, var(--black) 70%); }
.p-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0/60px 60px, linear-gradient(0deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0/60px 60px; }

/* ---------- Steps / how it works ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--walnut); color: var(--white); font-weight: 900; font-size: 1.2rem; display: grid; place-items: center; }
.dark .step::before { background: var(--camel); color: var(--black); }

/* ---------- Promise strip ---------- */
.strip { background: var(--umber); color: var(--white); }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; padding: 16px 0; font-weight: 800; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.strip span::before { content: "◆ "; color: var(--camel); }

/* ---------- Campaign banner (the ONLY place red appears) ---------- */
.campaign { background: var(--cream); border: 4px solid var(--ink); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.campaign h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 4px; color: var(--umber); text-transform: uppercase; }
.campaign h3 em { font-style: normal; color: var(--red); }
.campaign p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .campaign { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quote { background: var(--white); border-left: 5px solid var(--camel); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 22px; }
.quote p { font-style: italic; margin: 0 0 8px; }
.quote cite { font-style: normal; font-weight: 800; color: var(--umber); font-size: .9rem; }

/* ---------- Locations ---------- */
.loc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.loc .info { padding: 26px; }
.loc .info h3 { color: var(--umber); }
.loc iframe { width: 100%; height: 100%; min-height: 280px; border: 0; }
.loc address { font-style: normal; margin-bottom: 12px; }
@media (max-width: 700px) { .loc { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 12px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { font-weight: 800; font-size: .88rem; color: var(--umber); display: block; margin-bottom: 4px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 2px solid rgba(42,26,22,.15); border-radius: 10px; font: inherit; background: var(--white); color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--walnut); }
.form .hp { position: absolute; left: -9999px; }
.form .note { font-size: .85rem; color: var(--muted); margin: 0; }
.form .status { font-weight: 800; color: var(--walnut); min-height: 1.4em; margin: 0; }

/* ---------- Floating estimate button ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  background: var(--walnut); color: var(--white); border: 3px solid var(--ink); border-radius: 999px; padding: 12px 20px 12px 14px;
  font-weight: 900; font-size: 1rem; box-shadow: 5px 5px 0 var(--ink); cursor: pointer; transform: translateY(0); transition: transform .3s ease, box-shadow .15s;
}
.fab:hover { transform: translateY(-3px); }
.fab .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--camel); box-shadow: 0 0 0 0 rgba(187,140,83,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(187,140,83,0); } 100% { box-shadow: 0 0 0 0 rgba(187,140,83,0); } }
.fab.hide { transform: translateY(140%); }
@media (max-width: 560px) { .fab { right: 12px; bottom: 12px; padding: 12px 16px 12px 12px; font-size: .95rem; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(42,26,22,.6); backdrop-filter: blur(3px); }
.modal.open { display: flex; }
.modal-box { background: var(--cream-2); border-radius: 18px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.35); border: 4px solid var(--ink); animation: pop .25s ease; }
@keyframes pop { from { transform: translateY(18px) scale(.97); opacity: 0; } }
.modal-head { background: var(--umber); color: var(--white); padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; font-size: 1.3rem; }
.modal-close { background: none; border: 0; color: var(--white); font-size: 1.6rem; cursor: pointer; line-height: 1; padding: 4px 8px; }
.modal-body { padding: 22px; }
.choice { display: grid; gap: 12px; margin-bottom: 18px; }
.choice a, .choice button { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; border: 2px solid rgba(42,26,22,.12); background: var(--white); text-decoration: none !important; color: var(--text); font: inherit; cursor: pointer; text-align: left; transition: border-color .15s, transform .15s; }
.choice a:hover, .choice button:hover { border-color: var(--walnut); transform: translateY(-2px); }
.choice .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--cream); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.choice b { display: block; color: var(--umber); font-size: 1.05rem; }
.choice small { color: var(--muted); }
.modal .form { display: none; }
.modal .form.show { display: grid; }

/* ---------- Popup (shop-at-home offer) ---------- */
.popup .modal-box { width: min(480px, 100%); }
.popup .modal-head { background: var(--walnut); }
.popup .big { font-size: clamp(1.5rem, 4vw, 2rem); color: var(--umber); text-transform: uppercase; margin: 0 0 6px; }
.popup .big em { font-style: normal; color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,.85); padding: 48px 0 24px; font-size: .95rem; }
.site-footer a { color: var(--camel); }
.site-footer h4 { color: var(--white); margin-bottom: 10px; font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.6); }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer .badge { background: var(--white); }

/* ---------- Scroll reveal effects ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
/* carpet-roll: unrolls downward from top edge */
.roll { clip-path: inset(0 0 100% 0); transition: clip-path .9s cubic-bezier(.2,.8,.2,1); position: relative; }
.roll::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; bottom: 0; background: linear-gradient(180deg, rgba(0,0,0,.18), transparent); transition: opacity .3s .8s; }
.roll.in { clip-path: inset(0 0 0 0); }
.roll.in::after { opacity: 0; }
/* planks: children slide in and "click" together */
.planks > * { opacity: 0; transform: translateX(-40px) skewX(-4deg); transition: opacity .5s ease, transform .55s cubic-bezier(.2,.9,.2,1.1); }
.planks.in > * { opacity: 1; transform: none; }
.planks.in > *:nth-child(2) { transition-delay: .1s; }
.planks.in > *:nth-child(3) { transition-delay: .2s; }
.planks.in > *:nth-child(4) { transition-delay: .3s; }
.planks.in > *:nth-child(5) { transition-delay: .4s; }
.planks.in > *:nth-child(6) { transition-delay: .5s; }

/* ---------- Page transitions (carpet sweep between pages) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fade-out .25s ease forwards; }
::view-transition-new(root) { animation: sweep-in .55s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes sweep-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
/* fallback sweep bar for browsers without view transitions */
.sweep { position: fixed; left: 0; right: 0; top: 0; height: 100vh; background: var(--walnut); z-index: 200; transform: scaleY(0); transform-origin: top; pointer-events: none; }
.sweep.go { animation: sweepbar .45s ease-in forwards; }
@keyframes sweepbar { to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .roll, .planks > * { opacity: 1; transform: none; clip-path: none; }
}

/* =========================================================
   v2 additions — social, assembling animations, brands, gallery, calculator, FAQ, referral bar
   ========================================================= */

/* ---------- Social icons ---------- */
.social { display: flex; gap: 10px; align-items: center; }
.social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--cream); color: var(--umber); border: 2px solid transparent; transition: transform .15s, border-color .15s; }
.social a:hover { transform: translateY(-2px); border-color: var(--walnut); text-decoration: none; }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.site-footer .social a { background: rgba(255,255,255,.08); color: var(--camel); }
.site-header .social { display: none; }
@media (min-width: 1320px) { .site-header .social { display: flex; } }
.nav .social { display: flex; justify-content: center; margin-top: 10px; }
@media (min-width: 1121px) { .nav .social { display: none; } }

/* ---------- Assembling floor fields (scroll-triggered) ---------- */
.field { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; display: grid; gap: 3px; background: var(--black); box-shadow: var(--shadow); }
.field > i { display: block; opacity: 0; transition: transform .7s cubic-bezier(.2,.9,.25,1.05), opacity .5s ease; }
.field.in > i { opacity: 1; transform: none !important; }

/* LVP: staggered plank rows slide in from alternating sides */
.field-lvp { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; background: #74301f; }
.field-lvp > i { background: linear-gradient(90deg, #a8452f, var(--walnut) 40%, #8d3a2a); border-radius: 2px; }
.field-lvp > i:nth-child(odd)  { transform: translateX(-140%); }
.field-lvp > i:nth-child(even) { transform: translateX(140%); }
.field-lvp > i:nth-child(6n+1), .field-lvp > i:nth-child(6n+4) { background: linear-gradient(90deg, #b5503a, #a24634 40%, #953e2e); }
.field-lvp > i:nth-child(6n+3), .field-lvp > i:nth-child(6n+6) { background: linear-gradient(90deg, #8d3a2a, #7f3324 40%, #74301f); }
.field-lvp > i:nth-child(n+7):nth-child(-n+12), .field-lvp > i:nth-child(n+19):nth-child(-n+24) { margin-left: 30%; margin-right: -30%; }

/* Tile: pieces scale/drop into a grid, checkerboard timing */
.field-tile { grid-template-columns: repeat(5, 1fr); grid-auto-rows: 1fr; gap: 5px; background: #d9c7b0; }
.field-tile > i { background: linear-gradient(135deg, #4a2d27, var(--black)); border-radius: 3px; transform: scale(.2) rotate(15deg); }
.field-tile > i:nth-child(odd) { background: linear-gradient(135deg, #5d3a33, #3a2420); }

/* Hardwood: 4 long boards, alternating from top and bottom, click together */
.field-wood { grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--umber); }
.field-wood > i { background: linear-gradient(180deg, #7a4438, var(--umber) 50%, #4d281f); border-radius: 3px; }
.field-wood > i:nth-child(odd)  { transform: translateY(-120%); }
.field-wood > i:nth-child(even) { transform: translateY(120%); }
.field-wood > i:nth-child(2) { background: linear-gradient(180deg, #8a4d3f, #6b3a30 50%, #56291f); }
.field-wood > i:nth-child(3) { background: linear-gradient(180deg, #6e3b31, #5a2f28 50%, #45231b); }

/* Carpet: roll unrolls (reuse hero roll) */
.field-carpet { background: var(--camel); grid-template-columns: 1fr; }
.field-carpet > i { background: repeating-linear-gradient(0deg, rgba(255,255,255,.10) 0 3px, transparent 3px 8px), linear-gradient(160deg, #c99a5f, var(--camel) 60%, #a67a45); transform: scaleY(0); transform-origin: top; opacity: 1; transition: transform 1s cubic-bezier(.2,.8,.2,1); }

/* stagger */
.field > i:nth-child(1){transition-delay:.02s}.field > i:nth-child(2){transition-delay:.08s}.field > i:nth-child(3){transition-delay:.14s}.field > i:nth-child(4){transition-delay:.20s}.field > i:nth-child(5){transition-delay:.26s}.field > i:nth-child(6){transition-delay:.32s}.field > i:nth-child(7){transition-delay:.10s}.field > i:nth-child(8){transition-delay:.16s}.field > i:nth-child(9){transition-delay:.22s}.field > i:nth-child(10){transition-delay:.28s}.field > i:nth-child(11){transition-delay:.34s}.field > i:nth-child(12){transition-delay:.40s}.field > i:nth-child(13){transition-delay:.18s}.field > i:nth-child(14){transition-delay:.24s}.field > i:nth-child(15){transition-delay:.30s}.field > i:nth-child(16){transition-delay:.36s}.field > i:nth-child(17){transition-delay:.42s}.field > i:nth-child(18){transition-delay:.48s}.field > i:nth-child(19){transition-delay:.26s}.field > i:nth-child(20){transition-delay:.32s}.field > i:nth-child(21){transition-delay:.38s}.field > i:nth-child(22){transition-delay:.44s}.field > i:nth-child(23){transition-delay:.50s}.field > i:nth-child(24){transition-delay:.56s}.field > i:nth-child(25){transition-delay:.62s}

/* product cards on home: mini fields inside */
.product > .field { position: absolute; inset: 0; border-radius: 0; box-shadow: none; z-index: 0; }
.product > :not(.field) { position: relative; z-index: 1; }
.product > .tag { position: absolute; }
.product::after { z-index: 1; }
.product .shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(42,26,22,.75)); }

/* ---------- Carpet types ---------- */
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.type { background: var(--white); border-radius: 12px; padding: 16px; border: 1px solid rgba(42,26,22,.08); box-shadow: var(--shadow); }
.type .swatch { height: 54px; border-radius: 8px; margin-bottom: 10px; }
.type b { display: block; color: var(--umber); }
.type small { color: var(--muted); }
.sw-plush { background: repeating-linear-gradient(0deg, #c9a06b 0 2px, #b98d58 2px 4px); }
.sw-berber { background: radial-gradient(circle, #a97f4c 1.5px, #c4a273 1.6px) 0 0/8px 8px; }
.sw-frieze { background: repeating-linear-gradient(45deg, #b48a55 0 3px, #9e7644 3px 5px, #c39b66 5px 8px); }
.sw-saxony { background: linear-gradient(180deg, #d0aa76, #b58c57); }
.sw-pattern { background: repeating-linear-gradient(90deg, #b58c57 0 14px, #d2b184 14px 22px), repeating-linear-gradient(0deg, transparent 0 14px, rgba(0,0,0,.08) 14px 22px); }
.sw-loop { background: repeating-linear-gradient(90deg, #9c7a4d 0 4px, #b7955f 4px 8px); }
.sw-commercial { background: repeating-linear-gradient(0deg, #6e5a54 0 3px, #5a4742 3px 6px); }
.sw-outdoor { background: repeating-linear-gradient(90deg, #4f6b3a 0 3px, #5e7d47 3px 6px); }
.sw-turf { background: repeating-linear-gradient(80deg, #3f7a3a 0 2px, #57964d 2px 4px); }
.sw-remnant { background: linear-gradient(135deg, #c9a06b 50%, #9C4130 50%); }

/* ---------- Brand partner chips ---------- */
.brands { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--white); border-radius: 12px; border: 2px solid rgba(42,26,22,.1); font-weight: 900; color: var(--umber); letter-spacing: .02em; text-transform: uppercase; font-size: .95rem; box-shadow: var(--shadow); }
.brand small { font-weight: 700; color: var(--muted); text-transform: none; letter-spacing: 0; }
.brand img { height: 28px; width: auto; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.value { background: var(--white); border-radius: var(--radius); padding: 22px; border-top: 5px solid var(--camel); box-shadow: var(--shadow); }
.value:nth-child(even) { border-top-color: var(--walnut); }
.value h3 { color: var(--umber); font-size: 1.1rem; margin-bottom: 6px; }
.value p { margin: 0; font-size: .95rem; color: var(--text); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); position: relative; aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: linear-gradient(transparent, rgba(42,26,22,.85)); color: #fff; font-size: .85rem; font-weight: 700; }
.gallery .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--umber); font-weight: 800; text-align: center; padding: 16px; font-size: .9rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0 24px; }
.filters button { border: 2px solid var(--umber); background: transparent; color: var(--umber); padding: 8px 14px; border-radius: 999px; font: inherit; font-weight: 800; cursor: pointer; }
.filters button.on, .filters button:hover { background: var(--umber); color: #fff; }

/* ---------- Square-foot calculator ---------- */
.calc { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.calc .rooms { display: grid; gap: 8px; }
.calc .room { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 8px; align-items: center; }
.calc .room input { width: 100%; padding: 10px 12px; border: 2px solid rgba(42,26,22,.15); border-radius: 8px; font: inherit; }
.calc .room button { border: 0; background: var(--cream); color: var(--umber); width: 38px; height: 38px; border-radius: 8px; font-weight: 900; cursor: pointer; }
.calc .totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 16px; }
.calc .tot { background: var(--cream); border-radius: 10px; padding: 12px 14px; }
.calc .tot b { display: block; font-size: 1.5rem; color: var(--umber); }
.calc .tot small { color: var(--muted); font-weight: 700; }
@media (max-width: 520px) { .calc .room { grid-template-columns: 1fr 1fr 1fr auto; } .calc .room input:first-child { grid-column: 1 / -1; } }

/* ---------- FAQ ---------- */
.faq details { background: var(--white); border-radius: 12px; padding: 0; margin-bottom: 10px; box-shadow: var(--shadow); border: 1px solid rgba(42,26,22,.06); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 800; color: var(--umber); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--walnut); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 16px; margin: 0; color: var(--text); }

/* ---------- Referral bar (bottom, dismissible) ---------- */
.refbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--umber); color: #fff; padding: 10px 16px; display: none; align-items: center; justify-content: center; gap: 14px; font-weight: 700; font-size: .95rem; box-shadow: 0 -6px 20px rgba(0,0,0,.2); transform: translateY(100%); transition: transform .4s ease; }
.refbar.show { display: flex; transform: none; }
.refbar a { color: var(--camel); font-weight: 900; }
.refbar button { background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.refbar em { font-style: normal; color: var(--red); background: #fff; padding: 0 6px; border-radius: 4px; }
body.has-refbar .fab { bottom: 64px; }
@media (max-width: 640px) { .refbar { font-size: .85rem; padding: 10px 12px; padding-right: 100px; justify-content: flex-start; } }

/* ---------- Partner cards ---------- */
.partner { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-left: 6px solid var(--walnut); }
.partner:nth-child(2) { border-left-color: var(--camel); }
.partner:nth-child(3) { border-left-color: var(--umber); }
.partner h2 { font-size: 1.5rem; color: var(--umber); }
.partner .icon { font-size: 2rem; margin-bottom: 8px; }

/* ---------- Reviews embed slot ---------- */
.reviews-embed { min-height: 60px; }
.gbadge { display: inline-flex; align-items: center; gap: 12px; background: var(--white); border-radius: 12px; padding: 12px 18px; box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; border: 2px solid rgba(42,26,22,.08); }
.gbadge .stars { color: #E8A33D; letter-spacing: 2px; font-size: 1.1rem; }
.gbadge b { color: var(--umber); }
