:root {
  --bg: #f5f5f5;
  --bg-soft: #fcfcfd;
  --surface: #ffffff;
  --fg: #101114;
  --ink: #101114;
  --ink-soft: #2f343c;
  --muted: #4a4f58; /* Darkened for better contrast */
  --border: rgba(16, 17, 20, 0.13);
  --line: rgba(16, 17, 20, 0.1);
  --accent: #ef3124;
  --accent-dark: #c81f15;
  --dark: #111113;
  --dark-2: #28231f;
  --warm: #f7f4f1;
  --gold: #d8b15e;
  --font-display: "Oswald", "Archivo", Arial, sans-serif;
  --font-body: "Archivo", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 116px;
  color-scheme: light;
  background: var(--bg);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f16;
  --bg-soft: #121722;
  --surface: #171d29;
  --fg: #f5f7fb;
  --ink: #f5f7fb;
  --ink-soft: #d6deea;
  --muted: #c3cad8;
  --border: rgba(255, 255, 255, 0.13);
  --line: rgba(255, 255, 255, 0.12);
  --accent-dark: #ff6b61;
  --dark: #090c11;
  --dark-2: #121722;
  --warm: #111720;
}

body {
  min-width: 0;
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: var(--font-body);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  
}

body.material-modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
li,
a,
span,
strong {
  overflow-wrap: anywhere;
}

.container {
  width: min(1240px, calc(100% - 48px));
  max-width: calc(100vw - 48px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(16, 17, 20, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 220px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #25272c;
  font-size: 0.93rem;
  font-weight: 900;
}

.site-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  border-radius: 6px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-dark);
  outline: 2px solid rgba(239, 49, 36, 0.28);
  outline-offset: 4px;
}

.site-nav a[aria-current="page"] {
  color: var(--accent-dark);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 3px solid rgba(239, 49, 36, 0.28);
  outline-offset: 3px;
}

.button-primary {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 16px 34px rgba(239, 49, 36, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
}

.button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.16);
}

.button-dark {
  color: #ffffff;
  background: var(--dark);
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 86px 0 82px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(17, 17, 19, 0.92), rgba(17, 17, 19, 0.72) 46%, rgba(17, 17, 19, 0.38)),
    url("/assets/optimized/home/showroom-front-room-new-desktop.jpg") center / cover;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(300px, 0.74fr);
  gap: 48px;
  align-items: center;
}

.page-hero-grid > *,
.content-grid > *,
.pros-cons > *,
.related-grid > *,
.footer-grid > * {
  min-width: 0;
}

.breadcrumbs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 900;
}

.breadcrumbs a {
  color: #ffffff;
  text-decoration: none;
}

.page-hero h1,
.section-heading h2,
.content-block h2,
.cta-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-wrap: balance;
}

.page-hero h1 {
  max-width: 780px;
  color: #ffffff;
  font-size: clamp(3.25rem, 6.1vw, 5.2rem);
}

.page-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.62;
  text-wrap: pretty;
}

.local-note {
  max-width: 690px;
  margin: 26px 0 0;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
}

.page-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-photo {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.page-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 74px 0;
}

.section-heading {
  display: grid;
  gap: 8px;
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 3.4vw, 3.05rem);
}

.section-heading p:not(.section-label) {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  gap: 44px;
  align-items: start;
}

.content-stack {
  display: grid;
  gap: 0;
}

.content-block {
  padding: 0 0 34px;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.content-block + .content-block {
  padding-top: 34px;
}

.content-block h2 {
  max-width: 820px;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
}

.content-block h3 {
  margin: 0 0 10px;
  color: var(--fg);
  font-size: 1rem;
}

.content-block p {
  max-width: 72ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.content-block ul {
  display: grid;
  gap: 10px;
  max-width: 76ch;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.content-block li::marker {
  color: var(--accent);
}

.sidebar-stack {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 26px;
}

.content-card {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  background: transparent;
}

.content-card img {
  width: 100%;
  height: clamp(168px, 18vw, 226px);
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
}

.content-card span {
  display: inline-block;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-card h3 {
  margin: 0;
  color: var(--fg);
  font-size: 1.12rem;
  line-height: 1.25;
}

.content-card p {
  margin: 0;
  color: var(--muted);
}

.content-card .button {
  justify-self: start;
  margin-top: 4px;
  border-radius: 999px;
}

.related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-grid a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg);
  background: var(--surface);
  font-weight: 900;
  text-decoration: none;
}

.related-grid a:hover,
.related-grid a:focus-visible {
  border-color: rgba(239, 49, 36, 0.38);
  color: var(--accent-dark);
  outline: none;
}

.visit-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px;
}

.visit-panel h2 {
  margin: 0;
  font-size: 1.6rem;
}

.visit-panel dl {
  display: grid;
  gap: 4px;
  margin: 12px 0 0;
}

.visit-panel div {
  display: flex;
  gap: 8px;
}

.visit-panel dt {
  min-width: 74px;
  color: #3b3632;
  font-weight: 900;
}

.visit-panel dd {
  margin: 0;
  color: var(--muted);
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 42px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  background: transparent;
}

.cta-section {
  background:
    linear-gradient(90deg, rgba(17, 17, 19, 0.94), rgba(17, 17, 19, 0.82)),
    url("/assets/optimized/home/showroom-front-room-new-desktop.jpg") center / cover;
}

.cta-panel h2 {
  max-width: 760px;
  font-size: clamp(2.2rem, 3.6vw, 3.3rem);
}

.cta-panel p {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.cta-panel .button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  padding: 40px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: start;
}

.site-footer a {
  display: block;
  color: #ffffff;
  text-decoration: none;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 10px;
  color: #ffffff;
}

.footer-links {
  display: grid;
  gap: 8px;
}

@media (max-width: 1000px) {
  .page-hero-grid,
  .content-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .sidebar-stack {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 28px);
    max-width: calc(100vw - 28px);
  }

  .header-inner {
    flex-direction: column;
    gap: 10px;
    padding: 14px 0 12px;
  }

  .brand img {
    width: 188px;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    gap: 8px 18px;
    font-size: 0.86rem;
  }

  .page-hero {
    padding: 42px 0 50px;
  }

  .page-hero-grid {
    gap: 28px;
  }

  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 10.4vw, 3.2rem);
    line-height: 1.2;
  }

  .page-lead {
    max-width: 100%;
    font-size: 1.02rem;
  }

  .local-note {
    max-width: 100%;
  }

  .page-actions .button,
  .cta-actions .button {
    width: 100%;
  }

  .page-photo {
    aspect-ratio: 16 / 10;
  }

  .section {
    padding: 52px 0;
  }

  .content-block {
    padding-bottom: 28px;
  }

  .content-block + .content-block {
    padding-top: 28px;
  }

  .pros-cons,
  .sidebar-stack,
  .visit-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .content-card .button {
    width: auto;
  }

  .content-card img {
    height: 190px;
  }

  .cta-panel {
    padding: 36px 0;
  }
}

@media (max-width: 430px) {
  .container {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .brand img {
    width: 174px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    gap: 8px 18px;
    font-size: 0.84rem;
  }

  .site-nav a {
    justify-content: center;
  }

  .page-hero h1 {
    font-size: clamp(2.1rem, 10.1vw, 2.7rem);
  }

  .button {
    min-height: 48px;
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100vw - 28px), 362px);
    max-width: min(calc(100vw - 28px), 362px);
    margin-left: 14px;
    margin-right: auto;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 9vw, 2.45rem);
  }

  .page-lead {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Carpet Hero Overrides */
.carpet-hero {
  background:
    linear-gradient(to bottom, rgba(17, 17, 19, 0.4), rgba(17, 17, 19, 0.85)),
    url("/assets/optimized/home/carpet-samples-patterns-desktop.jpg") center / cover;
  padding: 120px 0 100px;
}

.carpet-hero .hero-content {
  max-width: 800px;
}

/* Tactile Gallery */
.tactile-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.tactile-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  isolation: isolate;
  transform: translate3d(0, 0, 0);
}

.tactile-card picture,
.tactile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tactile-card:hover img {
  transform: scale(1.05);
}

.tactile-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(17, 17, 19, 0.9) 0%, rgba(17, 17, 19, 0.6) 60%, transparent 100%);
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.tactile-card:hover .tactile-content {
  transform: translateY(0);
}

.tactile-content h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #fff;
}

.tactile-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

@media (hover: none) {
  .tactile-content {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(17, 17, 19, 0.95) 0%, rgba(17, 17, 19, 0.7) 70%, transparent 100%);
  }
}

/* Pros & Cons Panels */
.pros-panel,
.cons-panel {
  padding: 32px;
  border-radius: 16px;
  background: var(--bg-soft, #fcfcfd);
  border: 1px solid var(--line, rgba(16, 17, 20, 0.1));
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.pros-panel .panel-header svg {
  color: #16a34a;
}

.cons-panel .panel-header svg {
  color: #ea580c;
}

.panel-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.icon-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  line-height: 1.5;
  font-size: 1.05rem;
}

.icon-list li:last-child {
  margin-bottom: 0;
}

.icon-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
}

.check-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

.caution-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ea580c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
}

/* Scroll-Driven Animations */
@supports (animation-timeline: view()) {
  .materials-bento-wall,
  .timeline article {
    animation: fade-slide-in 0.8s ease-out both;
    animation-timeline: view();
    animation-range: entry 5% cover 25%;
  }
}


@keyframes fade-slide-in {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mini Bento Related Cards */
.mini-bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

/* Timeline specific overrides to ensure it matches home page */
.process-section {
  padding: 80px 0;
}

.process-heading {
  margin-bottom: 48px;
}

/* Material Landing Page Template CSS */

/* 1. Heavy Hero Overlay */
.material-hero {
  position: relative;
  padding: 160px 0 140px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

.material-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(17, 17, 19, 0.75), rgba(17, 17, 19, 0.90));
  z-index: 1;
}

.material-hero .container {
  position: relative;
  z-index: 2;
}

.material-hero .hero-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.material-hero .page-actions {
  justify-content: center;
}

/* 2. Alternating Blocks */
.alt-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 80px;
}

.alt-block:last-of-type {
  margin-bottom: 0;
}

.alt-block-content {
  flex: 1;
  width: 100%;
}

.alt-block-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(16, 17, 20, 0.1);
  isolation: isolate;
  transform: translate3d(0, 0, 0);
  aspect-ratio: 16 / 10;
}

.alt-block-image .image-primary {
  width: 100%;
  height: 100%;
}

.alt-block-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.alt-block-image[hidden] {
  display: none !important;
}

@media (min-width: 900px) {
  .alt-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 64px;
    align-items: start;
  }
  
  .alt-block .section-heading {
    grid-column: 1 / -1;
  }

  .alt-block-content {
    grid-column: 1;
    grid-row: 2;
  }
  
  .alt-block-image {
    grid-column: 2;
    grid-row: 2;
    aspect-ratio: 4 / 3;
    position: sticky;
    top: 100px;
  }
  
  .alt-block-image img {
    height: 100%;
    max-height: none;
  }
  
  .alt-block:nth-of-type(even) .alt-block-content {
    grid-column: 2;
  }

  .alt-block:nth-of-type(even) .alt-block-image {
    grid-column: 1;
  }

  .alt-block:has(.alt-block-image[hidden]) .alt-block-content,
  .alt-block:not(:has(.alt-block-image)) .alt-block-content,
  .alt-block:has(.pros-cons) .alt-block-content {
    grid-column: 1 / -1;
  }

  .alt-block:has(.pros-cons) .alt-block-image {
    grid-column: 1 / -1;
    grid-row: 3;
    position: static;
    width: min(720px, 100%);
    margin: 12px auto 0;
    aspect-ratio: 16 / 9;
  }
}

/* 3. Sticky Sidebar */
.material-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  align-items: start;
}

.sticky-sidebar {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 24px;
  align-self: start;
}

@media (max-width: 1024px) {
  .material-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sticky-sidebar {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* 4. Lightbox Gallery */
.lightbox-gallery {
  margin-top: 64px;
  margin-bottom: 64px;
}

.lightbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.lightbox-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: inherit;
  background: var(--dark);
  font: inherit;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  position: relative;
  text-align: left;
  isolation: isolate;
  transform: translate3d(0, 0, 0);
}

.lightbox-item:focus-visible {
  outline: 3px solid rgba(239, 49, 36, 0.52);
  outline-offset: 4px;
}

.lightbox-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.lightbox-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.lightbox-item:hover img,
.lightbox-item:focus-visible img {
  transform: scale(1.05);
}

.lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(17, 17, 19, 0.9), rgba(17, 17, 19, 0.4) 60%, transparent);
  color: #fff;
  font-weight: 600;
  opacity: 1;
  transition: opacity 0.3s ease;
  text-align: left;
}

.lightbox-subcaption {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 4px;
}

.lightbox-item:hover .lightbox-caption,
.lightbox-item:focus-visible .lightbox-caption {
  opacity: 1;
}

.material-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 36px);
}

.material-modal[hidden] {
  display: none;
}

.material-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 11, 0.72);
}

@supports ((-webkit-backdrop-filter: blur(16px)) or (backdrop-filter: blur(16px))) {
  .material-modal-backdrop {
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
    backdrop-filter: blur(18px) saturate(1.12);
  }
}

.material-modal-dialog {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(860px, calc(100dvh - 32px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34, 31, 29, 0.98), rgba(13, 14, 16, 0.98));
  color: #f8f1ea;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.48);
}

.material-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(248, 241, 234, 0.92);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.material-modal-close:hover,
.material-modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.material-modal-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  padding: clamp(24px, 4vw, 46px);
}

.material-modal-copy {
  display: grid;
  gap: 16px;
  align-content: center;
  max-width: 34rem;
  padding-right: 18px;
}

.material-card-label {
  margin: 0;
  color: rgba(255, 198, 171, 0.88);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.material-modal-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.8vw, 5rem);
  line-height: 0.95;
}

.material-modal-copy > p {
  margin: 0;
  color: rgba(248, 241, 234, 0.78);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.68;
}

.material-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  color: rgba(248, 241, 234, 0.68);
}

.material-modal-tags span {
  display: inline;
  color: currentColor;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.material-modal-tags span + span::before {
  content: "/";
  display: inline-block;
  margin: 0 9px;
  color: rgba(248, 241, 234, 0.34);
  font-weight: 700;
}

.material-modal-gallery {
  min-width: 0;
}

.material-modal-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(8, 9, 11, 0.48);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.26);
}

.material-modal-stage .responsive-media,
.material-modal-stage img {
  width: 100%;
  height: 100%;
}

.material-modal-stage .responsive-media {
  display: block;
}

.material-modal-stage img {
  padding: clamp(8px, 1vw, 14px);
  object-fit: contain;
  object-position: center;
}

.material-modal-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(78px, 100px);
  gap: 10px;
  margin-top: 14px;
  padding-bottom: 5px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.material-modal-thumbs.is-single-image {
  display: none;
}

.material-modal-thumb {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  opacity: 0.74;
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.material-modal-thumb:hover,
.material-modal-thumb:focus-visible,
.material-modal-thumb.is-active {
  opacity: 1;
  transform: translateY(-1px);
  border-color: rgba(255, 188, 158, 0.66);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.material-modal-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  object-fit: cover;
}

@media (max-width: 900px) {
  .material-modal-layout {
    grid-template-columns: 1fr;
  }

  .material-modal-copy {
    max-width: 42rem;
    padding-right: 52px;
  }
}

@media (max-width: 640px) {
  .material-modal {
    align-items: end;
    padding: 12px 10px 0;
  }

  .material-modal-dialog {
    width: 100%;
    max-height: calc(100dvh - 12px);
    border-radius: 16px 16px 0 0;
  }

  .material-modal-layout {
    gap: 18px;
    padding: 56px 14px 18px;
  }

  .material-modal-copy {
    gap: 12px;
    padding-right: 0;
  }

  .material-modal-copy h3 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .material-modal-close {
    top: 12px;
    right: 12px;
    min-height: 38px;
  }

  .material-modal-thumbs {
    grid-auto-columns: 72px;
    gap: 8px;
  }
}

/* 5. Bottom Funnel */
.bottom-funnel {
  padding: 80px 0;
  background: var(--bg-soft, #fcfcfd);
  border-top: 1px solid var(--line, rgba(16, 17, 20, 0.1));
}

.funnel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .funnel-grid {
    grid-template-columns: 1fr;
  }
}

/* Premium Showroom Card */
.premium-showroom-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(16, 17, 20, 0.08);
  border: 1px solid var(--line, rgba(16, 17, 20, 0.1));
  display: flex;
  flex-direction: column;
  isolation: isolate;
  transform: translate3d(0, 0, 0);
}

.psc-header {
  position: relative;
  height: 140px;
  background: #8e8b76;
}

.psc-header picture,
.psc-header img {
  display: block;
  width: 100%;
  height: 100%;
}

.psc-header img {
  object-fit: cover;
  object-position: center;
}

.psc-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(17, 17, 19, 0.85));
}

.psc-badge {
  position: absolute;
  bottom: 16px;
  left: 24px;
  z-index: 2;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.psc-body {
  padding: 28px 24px;
}

.psc-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.psc-hours-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 12px;
}

.psc-hours-row .psc-details {
  display: contents;
}

.psc-hours-row .psc-details h3 {
  align-self: center;
  margin-bottom: 0;
}

.psc-row:last-of-type {
  margin-bottom: 28px;
}

.psc-icon {
  color: var(--accent, #ef3124);
  flex-shrink: 0;
  margin-top: 2px;
}

.psc-details h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-family: var(--font-display);
  color: var(--ink, #101114);
}

.psc-details {
  flex: 1;
  min-width: 0;
}

.psc-details p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft, #2f343c);
  line-height: 1.6;
}

.psc-hours {
  display: grid;
  gap: 0;
  grid-column: 1 / -1;
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(16, 17, 20, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 17, 20, 0.035), rgba(16, 17, 20, 0.015));
}

.psc-hours div {
  display: grid;
  grid-template-columns: minmax(70px, 0.86fr) minmax(0, 1.14fr);
  gap: 12px;
  align-items: baseline;
  padding: 8px 9px;
  border-bottom: 1px solid rgba(16, 17, 20, 0.07);
}

.psc-hours div:last-child {
  border-bottom: 0;
}

.psc-hours dt,
.psc-hours dd {
  margin: 0;
  line-height: 1.2;
}

.psc-hours dt {
  color: var(--muted, #656d79);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.psc-hours dd {
  color: var(--ink, #101114);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.psc-hours .is-closed dt,
.psc-hours .is-closed dd {
  color: var(--muted, #656d79);
  font-weight: 800;
}

.psc-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

html[data-theme="dark"] .premium-showroom-card {
  background: var(--bg-soft, #1a1d24);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .premium-showroom-card .psc-details h3,
html[data-theme="dark"] .premium-showroom-card .psc-details p {
  color: #ffffff;
}

html[data-theme="dark"] .premium-showroom-card .psc-hours {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .premium-showroom-card .psc-hours div {
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .premium-showroom-card .psc-hours dt {
  color: #9ca6b8;
}

html[data-theme="dark"] .premium-showroom-card .psc-hours dd {
  color: #ffffff;
}

html[data-theme="dark"] .premium-showroom-card .psc-hours .is-closed dt,
html[data-theme="dark"] .premium-showroom-card .psc-hours .is-closed dd {
  color: #aeb6c6;
}

html[data-theme="dark"] .premium-showroom-card .psc-icon {
  color: #ff6b61;
}

/* Clean, Readable Related Cards */
.related-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--line, rgba(16, 17, 20, 0.1));
  box-shadow: 0 4px 12px rgba(16, 17, 20, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(16, 17, 20, 0.1);
}

.rc-image {
  height: 160px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line, rgba(16, 17, 20, 0.05));
}

.rc-content {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  color: var(--ink, #101114);
}

.rc-content span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.rc-content svg {
  color: var(--accent, #ef3124);
  transition: transform 0.2s ease;
}

.related-card:hover .rc-content svg {
  transform: translateX(4px);
}

html[data-theme="dark"] .related-card {
  background: var(--bg-soft, #1a1d24);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .rc-content {
  background: var(--bg-soft, #1a1d24);
  color: #ffffff;
}

/* Ensure alt-block images look great at full width (defined in section 2) */

/* Ensure pros-cons is side-by-side on desktop */


/* --- CLEANUP & POLISH --- */

/* Typography & Hierarchy */
.alt-block .section-heading h2 {
  font-size: clamp(1.85rem, 3vw, 2.4rem); /* Slightly smaller than main section headings */
  letter-spacing: -0.02em;
}

.content-list {
  margin-top: 16px;
  padding-left: 20px;
  line-height: 1.6;
  color: var(--muted);
  font-size: 1.1rem;
}

.content-list li {
  margin-bottom: 8px;
}

/* Pros & Cons Layout */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.alt-block:has(.pros-cons) .pros-cons {
  margin-top: 0;
}

@media (max-width: 800px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }
}

/* Review Card Polish */
.review-card {
  padding: 32px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--line, rgba(16, 17, 20, 0.1));
  box-shadow: 0 12px 32px rgba(16, 17, 20, 0.05);
}

.review-stars {
  color: #f59e0b;
  font-size: 1.2rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.review-card blockquote {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--ink-soft, #2f343c);
}

.review-card cite {
  display: block;
  margin-top: 20px;
  font-weight: 700;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink, #101114);
}

/* Timeline Polish */
.timeline {
  margin-top: 32px;
  display: grid;
  gap: 24px;
}

.timeline article {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 4px;
  align-items: start;
}

.timeline article span {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}

.timeline article h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: var(--ink, #101114);
}

.timeline article p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Section Heading Modifiers */
.section-heading.text-center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

html[data-theme="dark"] .review-card {
  background: var(--bg-soft, #1a1d24);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .review-card blockquote,
html[data-theme="dark"] .timeline article h3 {
  color: #ffffff;
}

/* Showroom Card Buttons */
.psc-actions .button {
  width: 100%;
  justify-content: center;
}

.button-outline {
  color: var(--ink, #101114);
  background: transparent;
  border-color: var(--line, rgba(16, 17, 20, 0.2));
}

.button-outline:hover,
.button-outline:focus-visible {
  background: rgba(16, 17, 20, 0.04);
  border-color: rgba(16, 17, 20, 0.3);
}

html[data-theme="dark"] .button-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .button-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

.psc-details h3:last-child {
  margin-bottom: 0;
}


/* --- HERO POLISH --- */
.material-hero .hero-content > * {
  opacity: 0;
  animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.material-hero .breadcrumbs { animation-delay: 0.1s; }
.material-hero .eyebrow { animation-delay: 0.2s; }
.material-hero h1 { animation-delay: 0.3s; }
.material-hero .page-lead { animation-delay: 0.4s; }
.material-hero .page-actions { animation-delay: 0.5s; }

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.material-hero .button-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.material-hero .button-secondary:hover,
.material-hero .button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
}

.material-hero .breadcrumbs {
  margin-bottom: 24px;
  opacity: 0.8;
}

.carpet-seo-hero {
  overflow: hidden;
  padding: 58px 0 30px;
  color: var(--fg);
  background:
    linear-gradient(90deg, #ffffff 0%, #fbfaf8 40%, #f7f4f1 100%),
    var(--warm);
}

.carpet-seo-hero::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(247, 244, 241, 0.58)),
    repeating-linear-gradient(90deg, rgba(116, 91, 68, 0.035) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(0deg, rgba(116, 91, 68, 0.026) 0 1px, transparent 1px 7px);
}

.carpet-seo-hero .carpet-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.86fr);
  gap: 44px;
  align-items: center;
}

.carpet-hero-grid > * {
  min-width: 0;
}

.carpet-seo-hero .hero-content {
  max-width: 720px;
  margin: 0;
  align-items: flex-start;
  text-align: left;
}

.carpet-seo-hero .breadcrumbs {
  margin-bottom: 18px;
  color: #343a43;
  font-weight: 900;
  opacity: 1;
}

.carpet-seo-hero .breadcrumbs a {
  color: var(--fg);
}

.carpet-seo-hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 4.85vw, 4.45rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-wrap: balance;
}

.carpet-seo-hero .page-lead {
  max-width: 660px;
  margin-top: 24px;
  color: #30353d;
  font-size: 1.18rem;
  line-height: 1.58;
}

.carpet-seo-hero .page-actions {
  justify-content: flex-start;
  margin-top: 28px;
}

.carpet-seo-hero .button-secondary {
  color: var(--fg);
  border-color: rgba(16, 17, 20, 0.22);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.carpet-seo-hero .button-secondary:hover,
.carpet-seo-hero .button-secondary:focus-visible {
  color: var(--accent-dark);
  border-color: rgba(239, 49, 36, 0.34);
  background: #ffffff;
}

.carpet-hero-art {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: -46px;
  animation: hero-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.carpet-hero-art picture,
.carpet-hero-art img {
  display: block;
}

.carpet-hero-art img {
  width: 100%;
  max-width: 580px;
  height: auto;
  filter: drop-shadow(0 22px 28px rgba(116, 91, 68, 0.14));
}

.carpet-seo-hero + .section {
  padding-top: 64px;
}

.showroom-proof-card {
  display: grid;
  gap: 12px;
}

.showroom-proof-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.showroom-proof-card p:not(.section-label) {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.62;
}

@media (max-width: 1180px) {
  .carpet-seo-hero h1 {
    font-size: 4.12rem;
  }

  .carpet-hero-art {
    margin-right: -30px;
  }
}

@media (max-width: 900px) {
  .carpet-seo-hero {
    padding: 54px 0 38px;
  }

  .carpet-seo-hero .carpet-hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .carpet-seo-hero h1 {
    max-width: 640px;
    font-size: 3.45rem;
  }

  .carpet-hero-art {
    display: flex;
    justify-content: center;
    margin: 16px auto 0;
    max-height: 280px;
    width: 100%;
    overflow: hidden;
  }

  .carpet-hero-art img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
  }

  .alt-block {
    margin-bottom: 40px;
  }
}

@media (max-width: 760px) {
  .carpet-seo-hero {
    padding: 36px 0 28px;
  }

  .carpet-seo-hero .breadcrumbs {
    margin-bottom: 14px;
  }

  .carpet-seo-hero h1 {
    font-size: 2.78rem;
    line-height: 1.2;
  }

  .carpet-seo-hero .page-lead {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .carpet-seo-hero .page-actions {
    margin-top: 22px;
  }
}

@media (max-width: 430px) {
  .carpet-seo-hero h1 {
    font-size: 2.35rem;
  }

  .carpet-hero-art {
    margin: 12px auto 0;
    max-height: 180px;
  }

  .carpet-hero-art img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
  }
}

/* HERO COLLAGE RESTORE — side-by-side hero must win over generic material-hero template */
.material-hero.carpet-seo-hero {
  overflow: hidden;
  padding: 58px 0 30px;
  color: var(--fg);
  background:
    linear-gradient(90deg, #ffffff 0%, #fbfaf8 40%, #f7f4f1 100%),
    var(--warm);
}

.material-hero.carpet-seo-hero::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(247, 244, 241, 0.58)),
    repeating-linear-gradient(90deg, rgba(116, 91, 68, 0.035) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(0deg, rgba(116, 91, 68, 0.026) 0 1px, transparent 1px 7px);
}

.material-hero.carpet-seo-hero .carpet-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.76fr);
  gap: 34px;
  align-items: center;
}

.material-hero.carpet-seo-hero .hero-content {
  max-width: 820px;
  margin: 0;
  align-items: flex-start;
  text-align: left;
}

.material-hero.carpet-seo-hero .page-actions {
  justify-content: flex-start;
}

.material-hero.carpet-seo-hero h1 {
  color: var(--fg);
}

.material-hero.carpet-seo-hero .page-lead {
  color: #30353d;
}

.material-hero.carpet-seo-hero .breadcrumbs {
  color: #343a43;
  opacity: 1;
}

@media (max-width: 900px) {
  .material-hero.carpet-seo-hero {
    padding: 54px 0 38px;
  }

  .material-hero.carpet-seo-hero .carpet-hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .material-hero.carpet-seo-hero .hero-content {
    width: 100%;
    max-width: 640px;
  }
}

@media (max-width: 760px) {
  .material-hero.carpet-seo-hero {
    padding: 36px 0 28px;
  }

  .material-hero.carpet-seo-hero h1 {
    font-size: 2.58rem;
    line-height: 1.2;
  }

  .material-hero.carpet-seo-hero .page-lead {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.55;
  }
}

@media (max-width: 430px) {
  .material-hero.carpet-seo-hero h1 {
    font-size: 2.16rem;
  }
}

/* Google review carousel — scoped to bottom-funnel proof card only */
.showroom-proof-card.google-review-carousel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  padding: 28px 28px 24px;
}

.showroom-proof-card .google-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(16, 17, 20, 0.08);
}

.showroom-proof-card .google-review-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.showroom-proof-card .google-review-brand .section-label {
  margin: 0;
}

.showroom-proof-card .google-review-mark {
  flex: 0 0 auto;
}

.showroom-proof-card .google-review-link {
  flex: 0 0 auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: #4285f4;
  text-decoration: none;
  white-space: nowrap;
}

.showroom-proof-card .google-review-link:hover,
.showroom-proof-card .google-review-link:focus-visible {
  color: #1a73e8;
  text-decoration: underline;
}

.showroom-proof-card .google-review-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showroom-proof-card .review-stars {
  margin-bottom: 0;
  font-size: 1rem;
  letter-spacing: 1px;
}

.showroom-proof-card .review-text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.58;
  font-style: italic;
  color: var(--muted);
  text-wrap: pretty;
}

.showroom-proof-card .review-author {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(16, 17, 20, 0.07);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--fg);
}

.showroom-proof-card .review-author span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showroom-proof-card .review-date {
  flex: 0 0 auto;
  font-weight: 500;
  color: #9ca3af;
  font-size: 0.82rem;
}

.showroom-proof-card .google-review-rotator {
  position: relative;
  min-height: 132px;
}

.showroom-proof-card .google-review-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.showroom-proof-card .google-review-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.showroom-proof-card .google-review-footer {
  display: flex;
  justify-content: center;
  padding-top: 2px;
}

.showroom-proof-card .review-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 0;
}

.showroom-proof-card .review-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(16, 17, 20, 0.16);
  transition: background 0.25s ease, transform 0.25s ease;
}

.showroom-proof-card .review-dots span.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

.showroom-proof-card .review-summary-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showroom-proof-card .review-summary-card .summary-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.showroom-proof-card .review-summary-card .summary-rating {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--fg);
}

.showroom-proof-card .review-summary-card .summary-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .showroom-proof-card.google-review-carousel {
    padding: 24px 22px 20px;
  }

  .showroom-proof-card .google-review-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .showroom-proof-card .google-review-link {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showroom-proof-card .google-review-slide {
    transition: none;
  }
}



/* --- PREMIUM FUNNEL REDESIGN --- */
.premium-funnel {
  background-color: #F8F9FA;
  padding: 80px 0;
  border-top: 1px solid rgba(0,0,0,0.04);
}

.premium-funnel .funnel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.funnel-proof {
  position: relative;
  z-index: 2;
}

.funnel-lifestyle-image {
  width: 100%;
  padding-bottom: 125%; /* 4:5 aspect ratio */
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(16, 17, 20, 0.08);
}

.funnel-lifestyle-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.premium-funnel .review-card {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 340px;
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 40px rgba(16, 17, 20, 0.12) !important;
  padding: 28px !important;
  z-index: 10;
  border: 1px solid rgba(16, 17, 20, 0.06) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.premium-timeline {
  display: flex !important;
  flex-direction: column;
  gap: 36px;
  position: relative;
  border-top: none !important;
}

.premium-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 20px;
  left: 24px;
  width: 2px;
  background-color: #E2E8F0;
  z-index: 0;
}

.premium-timeline article {
  position: relative !important;
  display: block !important;
  padding: 0 0 0 76px !important;
  z-index: 1 !important;
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
}

.premium-timeline article span {
  position: absolute !important;
  left: 0 !important;
  top: -2px !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 2px solid #E2E8F0 !important;
  color: #ef3124 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  box-shadow: 0 4px 12px rgba(16, 17, 20, 0.04);
}

.premium-timeline article h3 {
  font-size: 1.4rem !important;
  margin-bottom: 8px !important;
  color: #101114 !important;
  font-family: "Archivo", sans-serif !important;
  letter-spacing: -0.01em !important;
}

.premium-timeline article p {
  color: #59616E !important;
  margin: 0 !important;
  font-size: 1.05rem !important;
  line-height: 1.5 !important;
}

@media (max-width: 980px) {
  .premium-funnel .funnel-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }
  .premium-funnel .review-card {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: -50px;
    width: calc(100% - 40px);
    max-width: 400px;
  }
}

/* --- PREMIUM FUNNEL REVIEW CAROUSEL FIX --- */
.premium-funnel .google-review-rotator {
  display: grid !important;
  min-height: auto !important;
}
.premium-funnel .google-review-slide {
  position: static !important;
  grid-area: 1 / 1 !important;
}
.premium-funnel .google-review-footer {
  display: none !important;
}

/* System dark mode — material pages */
html[data-theme="dark"] body {
  color: var(--fg);
  background:
    radial-gradient(circle at top left, rgba(239, 49, 36, 0.12), transparent 30%),
    linear-gradient(180deg, #090c11 0%, #0f141d 48%, #121722 100%);
}

html[data-theme="dark"] .site-header {
  background: rgba(9, 12, 17, 0.94);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .brand {
  background: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .brand img {
  content: url("/assets/optimized/branding/logo-dark-320.png");
  filter:
    drop-shadow(0 7px 14px rgba(0, 0, 0, 0.46));
}

html[data-theme="dark"] .site-nav {
  color: var(--fg);
}

html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .site-nav a:focus-visible,
html[data-theme="dark"] .site-nav a[aria-current="page"] {
  color: #ff6b61;
}

html[data-theme="dark"] .material-hero.carpet-seo-hero,
html[data-theme="dark"] .carpet-seo-hero {
  color: var(--fg);
  background:
    radial-gradient(circle at 78% 26%, rgba(239, 49, 36, 0.14), transparent 28%),
    linear-gradient(90deg, #0b0f16 0%, #101621 44%, #151b26 100%);
}

html[data-theme="dark"] .material-hero.carpet-seo-hero::before,
html[data-theme="dark"] .carpet-seo-hero::before {
  background:
    linear-gradient(90deg, rgba(11, 15, 22, 0.82), rgba(18, 23, 34, 0.52)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 7px);
}

html[data-theme="dark"] .material-hero.carpet-seo-hero h1,
html[data-theme="dark"] .carpet-seo-hero h1,
html[data-theme="dark"] .material-hero.carpet-seo-hero .breadcrumbs,
html[data-theme="dark"] .carpet-seo-hero .breadcrumbs {
  color: var(--fg);
}

html[data-theme="dark"] .material-hero.carpet-seo-hero .breadcrumbs a,
html[data-theme="dark"] .carpet-seo-hero .breadcrumbs a {
  color: #ffffff;
}

html[data-theme="dark"] .material-hero.carpet-seo-hero .page-lead,
html[data-theme="dark"] .carpet-seo-hero .page-lead {
  color: var(--ink-soft);
}

html[data-theme="dark"] .carpet-hero-art img {
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.42));
}

html[data-theme="dark"] .carpet-seo-hero .button-secondary,
html[data-theme="dark"] .material-hero.carpet-seo-hero .button-secondary,
html[data-theme="dark"] .button-outline,
html[data-theme="dark"] .related-grid a {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .carpet-seo-hero .button-secondary:hover,
html[data-theme="dark"] .material-hero.carpet-seo-hero .button-secondary:hover,
html[data-theme="dark"] .carpet-seo-hero .button-secondary:focus-visible,
html[data-theme="dark"] .material-hero.carpet-seo-hero .button-secondary:focus-visible,
html[data-theme="dark"] .button-outline:hover,
html[data-theme="dark"] .button-outline:focus-visible,
html[data-theme="dark"] .related-grid a:hover,
html[data-theme="dark"] .related-grid a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

html[data-theme="dark"] .section,
html[data-theme="dark"] .faq-section,
html[data-theme="dark"] .bottom-funnel,
html[data-theme="dark"] .premium-funnel {
  background:
    radial-gradient(circle at top left, rgba(239, 49, 36, 0.08), transparent 28%),
    linear-gradient(180deg, #0f141d 0%, #121722 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .content-block,
html[data-theme="dark"] .content-card {
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .content-card,
html[data-theme="dark"] .pros-panel,
html[data-theme="dark"] .cons-panel,
html[data-theme="dark"] .premium-showroom-card,
html[data-theme="dark"] .related-card,
html[data-theme="dark"] .review-card,
html[data-theme="dark"] .faq-item {
  background: rgba(23, 29, 41, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .rc-content,
html[data-theme="dark"] .faq-question:hover {
  background: rgba(23, 29, 41, 0.92);
}

html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .content-block h2,
html[data-theme="dark"] .content-block h3,
html[data-theme="dark"] .content-card h3,
html[data-theme="dark"] .panel-header h3,
html[data-theme="dark"] .review-card cite,
html[data-theme="dark"] .review-author,
html[data-theme="dark"] .showroom-proof-card h2,
html[data-theme="dark"] .timeline article h3,
html[data-theme="dark"] .faq-question {
  color: var(--fg);
}

html[data-theme="dark"] .section-heading p:not(.section-label),
html[data-theme="dark"] .content-block p,
html[data-theme="dark"] .content-block ul,
html[data-theme="dark"] .content-card p,
html[data-theme="dark"] .content-list,
html[data-theme="dark"] .icon-list li,
html[data-theme="dark"] .timeline article p,
html[data-theme="dark"] .showroom-proof-card p:not(.section-label),
html[data-theme="dark"] .showroom-proof-card .review-text,
html[data-theme="dark"] .showroom-proof-card .summary-count,
html[data-theme="dark"] .review-card blockquote,
html[data-theme="dark"] .faq-answer,
html[data-theme="dark"] .visit-panel dd {
  color: var(--muted);
}

html[data-theme="dark"] .visit-panel dt,
html[data-theme="dark"] .content-card span {
  color: #ff8a80;
}

html[data-theme="dark"] .comparison-section,
html[data-theme="dark"] .faq-section {
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .funnel-lifestyle-image {
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .premium-funnel .review-card {
  background: rgba(23, 29, 41, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34) !important;
}

html[data-theme="dark"] .premium-timeline::before {
  background-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .premium-timeline article span {
  color: #ff6b61 !important;
  background: #171d29 !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .premium-timeline article h3 {
  color: var(--fg) !important;
}

html[data-theme="dark"] .premium-timeline article p {
  color: var(--muted) !important;
}

/* 2026 material guide layout pass */
.section {
  padding: clamp(48px, 5.4vw, 64px) 0;
}

.section-heading {
  gap: 7px;
  margin-bottom: 0;
}

.section-heading h2,
.alt-block .section-heading h2,
.panel-header h3,
.premium-timeline article h3 {
  letter-spacing: 0;
}

.section-heading h2 {
  font-size: clamp(2rem, 2.85vw, 2.75rem);
  line-height: 1.04;
  text-wrap: balance;
}

.section-label {
  margin-bottom: 8px;
}

.material-layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 292px);
  gap: clamp(32px, 4vw, 52px);
}

.content-stack {
  gap: 0;
}

.alt-block {
  gap: 22px;
  margin-bottom: clamp(48px, 5.5vw, 66px);
  scroll-margin-top: 170px;
}

.alt-block-content {
  max-width: 58ch;
}

.alt-block-content p {
  margin-top: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.62;
  text-wrap: pretty;
}

.alt-block-content p + p {
  margin-top: 18px;
}

.content-list {
  max-width: 60ch;
  margin-top: 18px;
  font-size: clamp(1rem, 1.1vw, 1.06rem);
}

.alt-block-image {
  border-radius: 18px;
  box-shadow: 0 20px 46px rgba(16, 17, 20, 0.10);
}

.alt-block-image img {
  object-position: center;
}

.pros-cons {
  gap: 18px;
  margin-top: 0;
}

.pros-panel,
.cons-panel {
  padding: clamp(22px, 2.1vw, 28px);
  border-radius: 14px;
}

.panel-header {
  margin-bottom: 16px;
}

.icon-list li {
  margin-bottom: 12px;
  font-size: clamp(0.98rem, 1.05vw, 1.04rem);
}

.sticky-sidebar {
  top: 98px;
  gap: 18px;
}

.premium-showroom-card {
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(16, 17, 20, 0.10);
}

.psc-header {
  height: 118px;
}

.psc-badge {
  bottom: 14px;
  left: 18px;
  font-size: 0.78rem;
}

.psc-body {
  padding: 22px 20px 20px;
}

.psc-row {
  gap: 12px;
  margin-bottom: 18px;
}

.psc-row:last-of-type {
  margin-bottom: 22px;
}

.psc-details h3 {
  font-size: 1.04rem;
  line-height: 1.14;
}

.psc-hours-row {
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 12px;
}

.psc-hours {
  border-radius: 12px;
}

.psc-hours div {
  grid-template-columns: minmax(72px, 0.85fr) minmax(0, 1.15fr);
  padding: 7px 8px;
}

.psc-actions {
  gap: 10px;
}

.psc-actions .button {
  min-height: 48px;
  width: 100%;
}

.lightbox-gallery {
  margin-top: 0;
}

@media (min-width: 900px) {
  .alt-block {
    grid-template-columns: minmax(0, 0.82fr) minmax(410px, 1.08fr);
    grid-template-areas:
      "heading media"
      "copy media";
    gap: 20px clamp(34px, 4.4vw, 52px);
    align-items: start;
  }

  .alt-block .section-heading {
    grid-area: heading;
    align-self: end;
    max-width: 620px;
  }

  .alt-block-content {
    grid-area: copy;
  }

  .alt-block-image {
    grid-area: media;
    position: sticky;
    top: 98px;
    min-height: clamp(300px, 29vw, 410px);
    aspect-ratio: 5 / 4;
  }

  .alt-block:nth-of-type(even) {
    grid-template-columns: minmax(410px, 1.08fr) minmax(0, 0.82fr);
    grid-template-areas:
      "media heading"
      "media copy";
  }

  .alt-block:nth-of-type(even) .section-heading,
  .alt-block:nth-of-type(even) .alt-block-content,
  .alt-block:nth-of-type(even) .alt-block-image {
    grid-column: auto;
    grid-row: auto;
  }

  .alt-block:has(.pros-cons) {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.58fr);
    grid-template-areas:
      "heading media"
      "copy copy";
  }

  .alt-block:has(.pros-cons) .section-heading {
    grid-area: heading;
    align-self: start;
  }

  .alt-block:has(.pros-cons) .alt-block-content {
    grid-area: copy;
    max-width: none;
  }

  .alt-block:has(.pros-cons) .alt-block-image {
    grid-area: media;
    position: relative;
    top: auto;
    width: 100%;
    min-height: 210px;
    margin: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 1160px) {
  .material-layout {
    grid-template-columns: 1fr;
  }

  .sticky-sidebar {
    position: static;
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
  }
}

@media (max-width: 899px) {
  .section {
    padding: 46px 0;
  }

  .alt-block {
    gap: 18px;
    margin-bottom: 44px;
  }

  .alt-block-content {
    max-width: none;
  }

  .alt-block-image {
    aspect-ratio: 16 / 10;
  }

  .pros-cons {
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1240px);
    max-width: calc(100vw - 28px);
  }

  .section {
    padding: 40px 0;
  }

  .section-heading h2 {
    font-size: clamp(1.85rem, 10vw, 2.35rem);
  }

  .alt-block {
    margin-bottom: 38px;
  }

  .alt-block-image {
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(16, 17, 20, 0.10);
  }

  .pros-panel,
  .cons-panel,
  .psc-body {
    padding: 20px;
  }

  .psc-header {
    height: 132px;
  }
}
