@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --color-bg: #f7f5f2;
  --color-bg-alt: #ece8e2;
  --color-surface: #ffffff;
  --color-text: #1c1917;
  --color-text-muted: #6b6560;
  --color-accent: #7a5c12;
  --color-accent-dark: #5c450d;
  --color-border: #ddd8d0;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(26, 24, 20, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 24, 20, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 24, 20, 0.12);
  --radius: 4px;
  --max-width: 1280px;
  --topbar-height: 38px;
  --header-main-height: 72px;
  /* Everything on the site offsets against the full fixed-header stack. */
  --header-height: calc(var(--topbar-height) + var(--header-main-height));
  --mobile-bar-height: 62px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

/* Utility bar above the nav — keeps the phone number permanently visible
   without competing with the main nav for horizontal space. */
.header-topbar {
  height: var(--topbar-height);
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
}

.header-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.header-topbar-note {
  letter-spacing: 0.01em;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  transition: color 0.2s;
}

.header-phone:hover {
  color: #ffffff;
}

.header-phone svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.header-phone-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
}

.header-phone-number {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.header-phone:hover .header-phone-number {
  color: var(--color-accent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-main-height);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.logo span {
  color: var(--color-accent);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-main a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--color-text);
}

.nav-main a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: none;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
  color: var(--color-text);
}

.nav-dropdown-toggle .caret {
  font-size: 0.7em;
  opacity: 0.7;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  padding: 8px 0;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.nav-dropdown-menu a:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

.btn-outline:hover {
  background: var(--color-text);
  color: white;
}

.btn-outline-light {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: white;
  color: var(--color-text);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1240;
  background: rgba(28, 25, 23, 0.45);
  backdrop-filter: blur(2px);
}

.nav-backdrop[hidden] {
  display: none !important;
}

.mobile-nav-actions {
  display: none;
}

.mobile-action-bar {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(28, 25, 23, 0.82) 0%, rgba(28, 25, 23, 0.45) 55%, rgba(28, 25, 23, 0.2) 100%),
    url('../images/entry-06.jpg') center/cover no-repeat;
}

.hero-home .hero-bg {
  background:
    linear-gradient(to right, rgba(28, 25, 23, 0.78) 0%, rgba(28, 25, 23, 0.42) 52%, rgba(28, 25, 23, 0.28) 100%),
    url('../images/homeframe-header.png') center/cover no-repeat;
}

.hero-page .hero-bg {
  min-height: 50vh;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 80px 0;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-light h1,
.hero-light p {
  color: white;
}

.hero-light .hero-eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.hero p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-light p {
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-page {
  min-height: 50vh;
}

.hero-page .hero-content {
  padding: 60px 0;
}

/* Sections */
section {
  padding: 72px 0;
}

.section-header {
  text-align: left;
  max-width: 560px;
  margin: 0 0 40px;
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.section-alt {
  background: var(--color-bg-alt);
}

/* Collection Cards */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.collection-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.collection-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.collection-card-image {
  height: 280px;
  background-size: cover;
  background-position: center;
}

.collection-card-body {
  padding: 32px;
}

.collection-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.collection-card > .collection-card-body > p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.collection-card ul {
  margin-bottom: 24px;
}

.collection-card li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.collection-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* Windows showcase */
.windows-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.windows-showcase-image {
  height: 400px;
  border-radius: var(--radius);
  background: var(--color-bg-alt) url('../images/windows/card_scw_24_42_l.webp') center/contain no-repeat;
}

.windows-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.windows-list a {
  padding: 14px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.windows-list a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Why section */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-item {
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
}

.why-item .icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--color-accent);
}

.why-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.why-item p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.trust-item {
  padding-top: 20px;
  border-top: 2px solid var(--color-accent);
}

.trust-item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.trust-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Featured products carousel */
.featured-section {
  overflow: hidden;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.featured-section .featured-grid {
  display: none;
}

.featured-track {
  display: flex;
  gap: 24px;
  animation: scroll 45s linear infinite;
  width: max-content;
  padding-bottom: 4px;
}

.featured-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.featured-item {
  display: block;
  flex-shrink: 0;
  width: 280px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

a.featured-item:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-md);
}

.featured-item-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.featured-item-image.contain {
  background-size: contain;
  background-repeat: no-repeat;
  background-color: var(--color-bg-alt);
}

.featured-item-body {
  padding: 16px 20px;
}

.featured-item-body h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

/* Gallery preview */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery — one image at a time (carousel) */
.gallery-carousel {
  max-width: 960px;
  margin: 0 auto;
}

.gallery-carousel-viewport {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.gallery-carousel-slides {
  position: relative;
  min-height: 480px;
}

.gallery-slide {
  display: none;
  padding: 24px;
  animation: galleryFadeIn 0.35s ease;
}

.gallery-slide.active {
  display: block;
}

.gallery-slide img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius);
}

.gallery-slide-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

@keyframes galleryFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gallery-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.gallery-carousel-nav:hover {
  background: var(--color-text);
  color: white;
  border-color: var(--color-text);
}

.gallery-carousel-nav.prev { left: 16px; }
.gallery-carousel-nav.next { right: 16px; }

.gallery-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.gallery-carousel-counter {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  min-width: 64px;
  text-align: center;
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface);
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.65;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--color-accent);
  opacity: 1;
}

.gallery-thumb.hidden,
.gallery-slide.hidden {
  display: none !important;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery — stacked individual cards (full page) */
.gallery-stack {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-stack-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.gallery-stack-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.gallery-stack-item.hidden {
  display: none;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-text);
  color: white;
  border-color: var(--color-text);
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -12px;
  width: calc(100% - 56px);
  height: 2px;
  background: var(--color-border);
  transform: translateX(50%);
}

.process-step:last-child::after {
  display: none;
}

.process-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.review-stars {
  color: var(--color-accent);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.review-card blockquote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 20px;
}

.review-author {
  font-size: 0.875rem;
  font-weight: 600;
}

.review-location {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* CTA Banner */
.cta-banner {
  background: var(--color-text);
  color: white;
  text-align: center;
  padding: 80px 24px;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* Full-service installation */
.install-section {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.install-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}

.install-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.install-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.install-list li {
  position: relative;
  padding-left: 20px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.install-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

.install-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 16px;
}

.install-lead {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 520px;
}

.install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.install-card {
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.install-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(139, 105, 20, 0.1);
  color: var(--color-accent);
}

.install-card-icon svg {
  width: 20px;
  height: 20px;
}

.install-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.install-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.product-install-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 28px 0 24px;
  padding: 20px 22px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
}

.product-install-note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(139, 105, 20, 0.12);
  color: var(--color-accent);
}

.product-install-note-icon svg {
  width: 20px;
  height: 20px;
}

.product-install-note-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.product-install-note-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Category pages */
.category-hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 60px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.category-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 16px;
}

.category-hero p {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  max-width: 600px;
}

.category-section {
  padding: 64px 0;
}

.category-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
}

.product-card-image {
  height: 220px;
  background-size: cover;
  background-position: center;
}

.product-card-body {
  padding: 24px;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.product-features {
  margin-bottom: 16px;
}

.product-features li {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.75rem;
}

.finish-options {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

/* Subcategory blocks within a collection */
.subcat-block {
  margin-bottom: 56px;
}

.subcat-block:last-child {
  margin-bottom: 0;
}

.subcat-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.subcat-title h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.subcat-title span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.product-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.product-card-image.contain {
  background-size: contain;
  background-repeat: no-repeat;
  background-color: var(--color-bg-alt);
}

/* Category tiles for non-product ranges */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-tile {
  padding: 24px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.category-tile:hover {
  border-color: var(--color-accent);
}

.category-tile h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.category-tile p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

@media (max-width: 1024px) {
  .category-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .category-tiles {
    grid-template-columns: 1fr;
  }
}

.finish-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
}

/* Benefits grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.benefit-item {
  text-align: center;
  padding: 24px 16px;
}

.benefit-item .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.benefit-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

/* Forms */
.form-section {
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: 96px;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-direct {
  margin-top: 32px;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-direct h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.contact-direct-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.2s;
}

.contact-direct-phone:hover {
  color: var(--color-accent);
}

.contact-direct-phone svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.contact-direct p {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.form-info h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 16px;
}

.form-info p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.form-info-list li {
  padding: 12px 0;
  padding-left: 28px;
  position: relative;
  color: var(--color-text-muted);
}

.form-info-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 600;
}

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group.optional label::after {
  content: ' (optional)';
  font-weight: 400;
  color: var(--color-text-muted);
}

.product-type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.product-type-option {
  position: relative;
}

.product-type-option input {
  position: absolute;
  opacity: 0;
}

.product-type-option label {
  display: block;
  padding: 20px 16px;
  text-align: center;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.product-type-option input:checked + label {
  border-color: var(--color-accent);
  background: rgba(139, 105, 20, 0.08);
}

.product-type-option label span {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.quote-step-label {
  margin-bottom: 16px;
  font-weight: 500;
}

.quote-category-grid {
  grid-template-columns: repeat(2, 1fr);
}

.quote-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quote-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-size: 0.95rem;
  cursor: pointer;
}

.quote-check input {
  accent-color: var(--color-accent);
}

.quote-field-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: -4px 0 14px;
}

.quote-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

.quote-product-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.quote-product-card:hover {
  border-color: rgba(139, 105, 20, 0.45);
  box-shadow: var(--shadow-sm);
}

.quote-product-card.selected {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.quote-product-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.quote-product-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--color-bg-alt);
}

.quote-product-card {
  position: relative;
}

.quote-product-id {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(26, 24, 20, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.quote-product-card span:not(.quote-product-id) {
  display: block;
  padding: 12px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
}

.quote-product-save {
  margin: 0 12px 12px;
  width: calc(100% - 24px);
  padding: 7px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.quote-product-save.is-saved {
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
  background: rgba(122, 92, 18, 0.08);
}

.quote-product-card.unsure {
  justify-content: center;
  min-height: 120px;
  padding: 20px 16px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.quote-selection-preview {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 20px 0 8px;
  padding: 16px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.quote-selection-preview-media {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.quote-selection-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-preview-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.quote-preview-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
}

.quote-preview-color {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.quote-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}

.quote-color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.quote-color-option:hover {
  border-color: rgba(139, 105, 20, 0.45);
}

.quote-color-option.selected {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.quote-color-thumb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.quote-color-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-color-swatch {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(26, 24, 20, 0.12);
}

.quote-color-option span {
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.25;
  color: var(--color-text-muted);
}

.quote-color-option.selected span {
  color: var(--color-text);
}

@media (min-width: 640px) {
  .quote-category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.file-upload {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.file-upload:hover {
  border-color: var(--color-accent);
}

.file-upload input {
  display: none;
}

.file-upload p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* About page */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  height: 500px;
  border-radius: var(--radius);
  background: url('../images/entry-06.jpg') center/cover;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.value-item {
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.value-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.value-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  transition: color 0.2s;
}

.footer-phone:hover {
  color: var(--color-accent);
}

.footer-phone svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-col h4 {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  padding: 6px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom a:hover {
  color: white;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0 80px;
}

.legal-content h2 {
  margin: 32px 0 12px;
  font-size: 1.25rem;
}

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 16px;
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* Gallery page full */
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-page-grid .gallery-item {
  aspect-ratio: 3/4;
}

.gallery-item.hidden {
  display: none;
}

.gallery-item img,
.gallery-slide img,
img.zoomable {
  cursor: zoom-in;
}

/* Click-to-open image lightbox with zoom slider */
body.image-lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(4px);
}

.image-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.image-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.image-lightbox-prev {
  left: 16px;
}

.image-lightbox-next {
  right: 16px;
}

.image-lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 72px 72px 24px;
  min-height: 0;
}

.image-lightbox-stage.is-zoomed {
  cursor: grab;
}

.image-lightbox-stage.is-dragging {
  cursor: grabbing;
}

.image-lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.15s ease-out;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
}

.image-lightbox-stage.is-zoomed .image-lightbox-image {
  cursor: zoom-out;
}

.image-lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 24px 28px;
  color: #fff;
}

.image-lightbox-zoom-label {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.image-lightbox-zoom {
  width: min(320px, 50vw);
  accent-color: #fff;
  cursor: pointer;
}

.image-lightbox-zoom-value {
  min-width: 3.5rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 640px) {
  .image-lightbox-stage {
    padding: 64px 16px 16px;
  }

  .image-lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .image-lightbox-controls {
    flex-wrap: wrap;
    gap: 10px;
  }

  .image-lightbox-zoom {
    width: min(280px, 70vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-lightbox-image {
    transition: none;
  }
}

/* Catalog grid */
.section-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.section-chip {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  transition: all 0.2s;
}

.section-chip:hover {
  background: var(--color-text);
  color: white;
  border-color: var(--color-text);
}

.subcat-blurb {
  max-width: 720px;
  color: var(--color-text-muted);
  margin: -12px 0 28px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.catalog-card.hidden {
  display: none;
}

.catalog-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.catalog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.catalog-card:hover .catalog-card-image img {
  transform: scale(1.04);
}

.catalog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.catalog-card-tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.catalog-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Anchor targets sit under the fixed header. */
.catalog-card[id],
.subcat-block[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.catalog-card-body p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  flex: 1;
}

.catalog-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
}

/* Simple page header (no hero image) */
.page-header {
  padding: calc(var(--header-height) + 72px) 0 40px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--color-text-muted);
  max-width: 640px;
}

/* Product detail */
.product-detail {
  padding: calc(var(--header-height) + 40px) 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb .current {
  color: var(--color-text);
  font-weight: 500;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}

.product-detail-media .gallery-carousel {
  max-width: none;
}

.product-detail-media .gallery-carousel-slides {
  min-height: 420px;
}

.product-detail-info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 20px;
}

.product-detail-info p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.product-detail-info .product-features {
  margin: 24px 0;
}

.product-note {
  padding: 14px 18px;
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--color-text) !important;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.product-detail-meta {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.product-detail-id {
  margin: 8px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}

.catalog-card-id {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

/* Responsive */
@media (max-width: 1180px) {
  .site-header {
    z-index: 1300;
  }

  .nav-main {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1250;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: calc(100dvh - var(--header-height));
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    overflow: hidden;
    box-shadow: -8px 0 32px rgba(26, 24, 20, 0.12);
  }

  .nav-main.open {
    display: flex;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
  }

  .mobile-nav-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-text);
  }

  .mobile-nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
  }

  .mobile-nav-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 20px 20px;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-main a,
  .nav-dropdown-toggle {
    font-size: 1.05rem;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color-text);
  }

  .nav-dropdown-toggle {
    background: none;
    border: none;
    border-bottom: 1px solid var(--color-border);
    font-family: inherit;
    text-align: left;
  }

  .nav-dropdown-toggle .caret {
    transition: transform 0.2s;
  }

  .nav-dropdown.open .nav-dropdown-toggle .caret {
    transform: rotate(180deg);
  }

  .nav-main a.active::after {
    display: none;
  }

  .nav-main a.active {
    color: var(--color-accent);
    font-weight: 600;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none !important;
    box-shadow: none;
    border: none;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0 0 8px 16px;
    display: none;
    min-width: 0;
    background: transparent;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    font-size: 0.95rem;
    padding: 12px 0;
    min-height: 44px;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-dropdown-menu a:last-child {
    border-bottom: none;
  }

  .mobile-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1301;
  }

  .header-cta,
  .header-inner .header-account {
    display: none;
  }

  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
  }

  .mobile-nav-account {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 4px 0 0;
  }

  .mobile-nav-account.is-signed-in {
    color: var(--color-text);
  }
}

@media (min-width: 1181px) {
  .mobile-nav-head,
  .mobile-nav-actions {
    display: none !important;
  }

  .mobile-nav-scroll {
    display: contents;
  }
}

@media (max-width: 1024px) {
  .trust-grid,
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .trust-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .collection-grid,
  .windows-showcase,
  .about-content,
  .form-layout,
  .install-layout {
    grid-template-columns: 1fr;
  }

  .install-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-step::after {
    display: none;
  }

  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .why-grid,
  .reviews-grid,
  .gallery-grid,
  .gallery-page-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .install-grid {
    grid-template-columns: 1fr;
  }

  .form-row,
  .product-type-selector {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  section {
    padding: 64px 0;
  }
}

/* The phone matters most on mobile, where the header CTA is hidden, so the
   top bar stays put and only the supporting note drops away. */
@media (max-width: 700px) {
  .header-topbar-note {
    display: none;
  }

  .header-topbar-inner {
    justify-content: center;
  }
}

.cookie-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 18px;
  background: rgba(26, 26, 26, 0.96);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.cookie-notice p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.cookie-notice a {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .cookie-notice {
    flex-direction: column;
    align-items: stretch;
    bottom: calc(16px + var(--mobile-bar-height) + env(safe-area-inset-bottom));
  }
}

/* ===== Mobile UI ===== */
@media (max-width: 768px) {
  :root {
    --topbar-height: 34px;
    --header-main-height: 64px;
  }

  .container {
    padding: 0 16px;
  }

  body.has-mobile-bar {
    padding-bottom: calc(var(--mobile-bar-height) + env(safe-area-inset-bottom));
  }

  body.nav-open .mobile-action-bar {
    display: none !important;
  }

  .mobile-action-bar {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    min-height: var(--mobile-bar-height);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    gap: 10px;
    background: rgba(250, 249, 247, 0.98);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 24px rgba(26, 24, 20, 0.08);
    backdrop-filter: blur(12px);
  }

  .mobile-action-call,
  .mobile-action-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
  }

  .mobile-action-call {
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
  }

  .mobile-action-call svg {
    width: 18px;
    height: 18px;
  }

  .mobile-action-quote {
    background: var(--color-text);
    color: #fff;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 48px 0 56px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .hero-page {
    min-height: auto;
  }

  .hero-page .hero-content {
    padding: 40px 0 48px;
  }

  .featured-track {
    animation: none;
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
    padding: 0 16px 8px;
    margin: 0 -16px;
  }

  .featured-track::-webkit-scrollbar {
    display: none;
  }

  .featured-item {
    width: min(260px, 78vw);
    scroll-snap-align: start;
  }

  .gallery-carousel-slides {
    min-height: 280px;
  }

  .gallery-slide {
    padding: 12px;
  }

  .gallery-slide img {
    max-height: 52vh;
  }

  .gallery-carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .gallery-carousel-nav.prev { left: 8px; }
  .gallery-carousel-nav.next { right: 8px; }

  .gallery-thumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-top: 20px;
  }

  .gallery-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
  }

  .gallery-filters,
  .section-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .gallery-filters::-webkit-scrollbar,
  .section-chips::-webkit-scrollbar {
    display: none;
  }

  .filter-btn,
  .section-chips a,
  .section-chips button {
    flex-shrink: 0;
  }

  .product-detail {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 48px;
  }

  .product-detail-media .gallery-carousel-slides {
    min-height: 260px;
  }

  .product-detail-actions {
    flex-direction: column;
  }

  .product-detail-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 24px;
  }

  .form-section {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 48px;
  }

  .form-layout {
    gap: 32px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    min-height: 48px;
  }

  .quote-steps {
    gap: 4px;
  }

  .quote-step {
    font-size: 0.72rem;
    padding: 10px 4px;
  }

  .quote-step-label {
    display: none;
  }

  .quote-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .quote-color-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quote-selection-preview {
    flex-direction: column;
    align-items: stretch;
  }

  .quote-selection-preview-media {
    width: 100%;
    max-width: none;
  }

  .collection-card-image {
    height: 220px;
  }

  .collection-card-body {
    padding: 24px 20px;
  }

  .windows-showcase-image {
    height: 260px;
  }

  .windows-list {
    grid-template-columns: 1fr;
  }

  .install-layout,
  .install-note {
    gap: 24px;
  }

  .page-header {
    padding-top: calc(var(--header-height) + 16px);
  }

  .btn,
  .filter-btn,
  .gallery-thumb,
  .quote-color-option {
    min-height: 44px;
  }

  .logo {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .quote-product-grid {
    grid-template-columns: 1fr;
  }

  .quote-color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .header-phone-label {
    display: none;
  }
}
