/* ============================================================
   FURNITURE PORTFOLIO — Design System & Styles
   Inspired by nathanjames.com
   ============================================================ */

/* ----- Google Fonts ----- */
/* Fonts are now loaded in the HTML head for better performance */

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Typography */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Colors — Nathan James palette */
  --color-accent: #284969;          /* Deep navy */
  --color-accent-hover: #1d3750;
  --color-secondary: #757750;       /* Olive / sage green */
  --color-secondary-hover: #5e5f40;
  --color-bg-primary: #FFFFFF;
  --color-bg-warm: #F8F6F3;         /* Warm off-white for alternating sections */
  --color-bg-cream: #F1EDE8;        /* Slightly deeper cream */
  --color-text-primary: #5C5757;    /* Warm charcoal */
  --color-text-dark: #3E373E;       /* Near-black */
  --color-text-light: #8A8585;      /* Muted gray */
  --color-border: rgba(92, 87, 87, 0.12);
  --color-footer-bg: #3E373E;       /* Dark plum-gray */
  --color-footer-text: #FFFFFF;
  --color-white: #FFFFFF;
  --color-overlay: rgba(30, 30, 30, 0.40);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;
  --space-5xl: 6rem;

  /* Layout */
  --container-max: 1300px;
  --container-gutter: 1.5rem;
  --header-height: 72px;

  /* Borders & Radii */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-pill: 60px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(92, 87, 87, 0.08);
  --shadow-md: 0 4px 20px rgba(92, 87, 87, 0.10);
  --shadow-lg: 0 8px 40px rgba(92, 87, 87, 0.12);
  --shadow-header: 0 2px 12px rgba(0, 0, 0, 0.06);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-text-dark);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

.text-sm {
  font-size: 0.8125rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-accent {
  color: var(--color-accent);
}

.text-center {
  text-align: center;
}

/* ============================================================
   LAYOUT — CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--warm {
  background-color: var(--color-bg-warm);
}

.section--cream {
  background-color: var(--color-bg-cream);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.0625rem;
  max-width: 540px;
  margin: 0 auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border: 2px solid var(--color-accent);
}

.btn--primary:hover {
  background-color: transparent;
  color: var(--color-accent);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn--outline:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn--secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border: 2px solid var(--color-secondary);
}

.btn--secondary:hover {
  background-color: transparent;
  color: var(--color-secondary);
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-accent);
  border: 2px solid var(--color-white);
}

.btn--white:hover {
  background-color: transparent;
  color: var(--color-white);
}

.btn--sm {
  padding: 0.625rem 1.5rem;
  font-size: 0.75rem;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  height: var(--header-height);
  background-color: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base);
}

.header--scrolled {
  box-shadow: var(--shadow-header);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
}

/* Logo */
.header__logo {
  flex-shrink: 0;
}

.header__logo a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  transition: opacity var(--transition-fast);
}

.header__logo a:hover {
  opacity: 0.8;
  color: var(--color-accent);
}

/* Desktop Nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.header__nav a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  position: relative;
  padding: var(--space-xs) 0;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

.header__nav a:hover {
  color: var(--color-accent);
}

.header__nav a.active {
  color: var(--color-accent);
  font-weight: 500;
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
}

.header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text-dark);
  transition: all var(--transition-base);
  border-radius: 1px;
}

.header__hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-bg-primary);
  z-index: 1050;
  padding: calc(var(--header-height) + var(--space-2xl)) var(--container-gutter) var(--space-2xl);
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.mobile-nav__links a {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-text-dark);
  transition: color var(--transition-fast);
}

.mobile-nav__links a:hover,
.mobile-nav__links a.active {
  color: var(--color-accent);
}

/* Header Right (Search + Actions) */
.header__right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header__search {
  position: relative;
  display: flex;
  align-items: center;
}

.header__search svg {
  position: absolute;
  left: 0;
  width: 16px;
  height: 16px;
  color: var(--color-text-primary);
  pointer-events: none;
}

.header__search input {
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  padding: 0.5rem 0.5rem 0.5rem 24px;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  width: 160px;
  transition: width var(--transition-base), border-color var(--transition-fast);
}

.header__search input:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
  width: 200px;
}

.header__search input::placeholder {
  color: var(--color-text-light);
  text-transform: uppercase;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  min-width: 220px;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  margin-top: 0.5rem;
  border-radius: var(--radius-sm);
  display: none;
  flex-direction: column;
  z-index: 1200;
  max-height: 300px;
  overflow-y: auto;
}

.search-results.is-active {
  display: flex;
}

.search-results a {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
}

.search-results a:last-child {
  border-bottom: none;
}

.search-results a:hover {
  background-color: var(--color-bg-warm);
  color: var(--color-accent);
}

/* Header Actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__action-link {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.header__action-link:hover {
  color: var(--color-accent);
}

@media screen and (max-width: 992px) {
  .header__search, .header__actions {
    display: none;
  }
}

/* Body offset for fixed header */
.page-body {
  padding-top: var(--header-height);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image picture,
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image picture {
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(40, 73, 105, 0.65) 0%,
    rgba(30, 30, 30, 0.50) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-3xl) var(--container-gutter);
  max-width: 720px;
}

.hero__content h1 {
  color: var(--color-white);
  font-size: 3.25rem;
  font-weight: 400;
  margin-bottom: var(--space-lg);
  line-height: 1.15;
  text-shadow: none;
}

.hero__content p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.125rem;
  font-weight: 300;
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
  text-shadow: none;
}

/* ============================================================
   ROOM GRID (Shop by Room) — Bento Layout
   ============================================================
   Layout (4 columns × 3 rows):
   ┌─────────────┬───────┬───────┐
   │ Living Room │Bedroom│Dining │
   │  (2×2)      │       │ Room  │
   │             ├───────┼───────┤
   │             │Kitchen│Entry  │
   ├───────┬─────┴───────┴───────┤
   │ Home  │Bath │  Outdoor      │
   │Office │room │   (2×1)       │
   └───────┴─────┴───────────────┘
   ============================================================ */
.room-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.room-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-none);
  cursor: pointer;
}

.room-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.room-card:hover .room-card__image {
  transform: scale(1.06);
}


.room-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.05) 60%
  );
  transition: background var(--transition-base);
}

.room-card:hover .room-card__overlay {
  background: linear-gradient(
    to top,
    rgba(40, 73, 105, 0.65) 0%,
    rgba(40, 73, 105, 0.10) 60%
  );
}

.room-card__label {
  position: absolute;
  bottom: var(--space-xl);
  left: var(--space-xl);
  z-index: 2;
}

.room-card__label h3 {
  color: var(--color-white);
  font-size: 1.375rem;
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.room-card__label span {
  display: inline-block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
  transition: all var(--transition-fast);
}

.room-card:hover .room-card__label span {
  color: var(--color-white);
  border-bottom-color: var(--color-white);
}

/* Removed: room-card--wide (replaced by grid-template-areas) */

/* ============================================================
   PAGE HERO (Room & Contact pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: var(--space-5xl) 0 var(--space-4xl);
  background-color: var(--color-bg-warm);
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 100%;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(40, 73, 105, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.page-hero h1 {
  font-size: 2.75rem;
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: var(--color-text-light);
  font-size: 1.0625rem;
  margin-top: var(--space-md);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.8125rem;
  color: var(--color-text-light);
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb__sep {
  color: var(--color-text-light);
  opacity: 0.5;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.product-card {
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base);
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: transparent;
  margin-bottom: var(--space-md);
}

.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image-wrap img {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background-color: var(--color-secondary);
  color: var(--color-white);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
}

.product-card__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--color-text-dark);
  line-height: 1.35;
}

.product-card__price {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: 0;
  line-height: 1.4;
}

.product-card__link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 2px;
  transition: all var(--transition-fast);
  align-self: flex-start;
}

.product-card__link:hover {
  color: var(--color-accent-hover);
  border-bottom-color: var(--color-accent-hover);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-4xl);
  align-items: start;
}

/* Prevent grid items from inflating their track to min-content
   (the fixed-width Turnstile widget would otherwise force overflow). */
.contact-section > * {
  min-width: 0;
}

.contact-info h2 {
  margin-bottom: var(--space-lg);
}

.contact-info p {
  color: var(--color-text-light);
  line-height: 1.8;
}

.contact-details {
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact-detail__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-accent);
}

.contact-detail__text {
  font-size: 0.9375rem;
}

.contact-detail__text strong {
  display: block;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: 2px;
}

.contact-form {
  background-color: var(--color-bg-warm);
  padding: var(--space-3xl);
  border: 1px solid var(--color-border);
}

/* Keep the Turnstile widget within the form box on narrow screens. */
.cf-turnstile {
  max-width: 100%;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-dark);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem var(--space-lg);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast);
  outline: none;
  border-radius: var(--radius-none);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-status {
  display: none;
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.form-status--success {
  display: block;
  background-color: #EEF0EA;
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}

.form-status--error {
  display: block;
  background-color: #F6E9E5;
  color: #B64725;
  border: 1px solid #B64725;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer__col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__col a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition-fast);
}

.footer__col a:hover {
  color: var(--color-white);
}

/* Handle direct <a> children (no ul wrapper) */
.footer__col > a {
  display: block;
  margin-bottom: var(--space-sm);
}

.footer__col > a:last-child {
  margin-bottom: 0;
}

/* Footer brand h4 */
.footer__brand h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

/* Handle logo in footer brand area */
.footer__brand .header__logo {
  margin-bottom: var(--space-md);
}

.footer__brand .header__logo a {
  color: var(--color-white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copyright {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
  font-size: 0.875rem;
}

.footer__social a:hover {
  border-color: var(--color-white);
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease both;
}

.animate-fade-in-up {
  animation: fadeInUp 0.7s ease both;
}

/* Stagger children */
.animate-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.2s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.25s; }
.animate-stagger > *:nth-child(6) { animation-delay: 0.3s; }
.animate-stagger > *:nth-child(7) { animation-delay: 0.35s; }

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media screen and (max-width: 1024px) {
  .hero__image img {
    object-position: center center !important;
  }
  .hero__overlay {
    background: linear-gradient(
      135deg,
      rgba(40, 73, 105, 0.65) 0%,
      rgba(30, 30, 30, 0.50) 100%
    );
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.875rem; }

  .header__nav {
    display: none;
  }

  .header__hamburger {
    display: flex;
  }

  .room-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .footer__brand {
    grid-column: span 2;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 640px)
   ============================================================ */
@media screen and (max-width: 640px) {
  :root {
    --container-gutter: 1.25rem;
    --header-height: 64px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .hero {
    min-height: 60vh;
  }

  .hero__content h1 {
    font-size: 2.25rem;
  }

  .hero__content p {
    font-size: 1rem;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .room-grid {
    grid-template-columns: 1fr;
  }

  .room-card {
    aspect-ratio: 16 / 10;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .page-hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: var(--space-xl) var(--space-md);
  }

  /* Shrink Turnstile (min 300px) so it fits very narrow viewports. */
  .cf-turnstile {
    transform: scale(0.92);
    transform-origin: top left;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__brand {
    grid-column: span 1;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 420px)
   ============================================================ */
@media screen and (max-width: 420px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero__content h1 {
    font-size: 1.875rem;
  }

  .btn {
    padding: 0.75rem 1.75rem;
    font-size: 0.75rem;
  }
}

/* ============================================================
   PRODUCT PAGE STYLES
   ============================================================ */
.product-page {
  padding: 40px 0;
}
.breadcrumb--product {
  margin-bottom: 30px;
  justify-content: flex-start;
  font-size: 0.9375rem;
}
.product-hero {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 60px;
}
@media (min-width: 992px) {
  .product-hero {
    flex-direction: row;
    align-items: flex-start;
  }
}
.product-gallery, .product-info {
  flex: 1;
}
.product-gallery__main {
  margin-bottom: 15px;
}
.product-gallery__main img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  display: block;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  background-color: var(--color-bg-primary);
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
  color: var(--color-text-dark);
}
.gallery-arrow:hover {
  background-color: var(--color-bg-warm);
  color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.gallery-arrow--prev {
  left: -20px;
}
.gallery-arrow--next {
  right: -20px;
}
.product-gallery__thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}
.thumbnail-btn {
  border: 2px solid transparent;
  background: none;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.thumbnail-btn.active {
  border-color: var(--color-accent);
}
.thumbnail-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: var(--color-bg-primary);
}
.product-info__title {
  font-size: 2.5rem;
  margin-bottom: 5px;
}
.product-info__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
}
.product-info__price-block {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(92, 87, 87, 0.35);
}
.product-info__price-label {
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--color-text-dark);
  line-height: 1.35;
  margin-bottom: 0.25rem;
}
.product-info__price-label:last-child {
  margin-bottom: 0;
}
/* Gated pricing: match catalog emphasis — Factory FOB bold, Target Retail normal. */
.product-info__price-block [data-price="retail"] {
  font-weight: 400;
}
.product-info__price-block [data-price="fob"] {
  font-weight: 700;
}
.product-info__features {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 30px;
}
.product-info__features li {
  margin-bottom: 10px;
}
.btn--full {
  width: 100%;
}
.product-details {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid var(--color-border);
}
@media (min-width: 992px) {
  .product-details {
    flex-direction: row;
  }
}
.product-details__overview,
.product-details__specs {
  flex: 1;
}
.product-details h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
}
.specs-table th,
.specs-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}
.specs-table th {
  font-weight: 600;
  width: 40%;
  color: var(--color-text-dark);
}
.specs-table td {
  color: var(--color-text-light);
}

@media screen and (max-width: 640px) {
  .product-info__title {
    font-size: 1.75rem;
  }
  .product-info__price-label {
    font-size: 1.1rem;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  /* Set paper size and margins for modern browsers (A4/Letter) */
  @page {
    margin: 1.5cm;
  }

  /* Hide interactive/navigational elements entirely */
  .header__nav,
  .header__search,
  .header__actions,
  .header__hamburger,
  .mobile-nav,
  .breadcrumb,
  .gallery-arrow,
  .product-info__actions,
  .footer {
    display: none !important;
  }

  /* Header on first page only. Fixed headers overlap content on subsequent pages in PDFs */
  .header {
    position: relative !important;
    height: auto !important;
    padding: 0 0 15px 0 !important;
    border-bottom: 2px solid var(--color-border) !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  .header__inner {
    justify-content: center !important; /* Center the logo */
    padding: 0 !important;
  }

  .page-body {
    padding-top: 0 !important;
    background: #fff !important;
  }

  /* Reduce margins to compact into fewer pages */
  .product-hero,
  .product-details {
    margin-top: 15px !important;
    padding-top: 10px !important;
  }

  .product-page {
    padding: 0 !important;
  }

  /* KEEP SIDE-BY-SIDE LAYOUT */
  .product-hero {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 30px !important;
    margin-bottom: 10px !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .product-gallery, .product-info {
    flex: 1 !important;
    width: 50% !important;
  }

  .product-gallery__main {
    margin-bottom: 15px !important;
  }

  .product-gallery__main img {
    width: 100% !important;
    max-height: 350px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }
  
  /* Show exactly 2 extra square thumbnails underneath main image */
  .product-gallery__thumbnails {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
    justify-content: center !important;
    overflow: hidden !important; /* Hide scrollbar */
  }
  
  .product-gallery__thumbnails button:nth-child(1),
  .product-gallery__thumbnails button:nth-child(4) {
    display: none !important; /* Hide redundant/excess images */
  }

  .product-gallery__thumbnails button {
    border: none !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
  }

  /* Reduce font sizes and margins */
  .product-info__title {
    font-size: 1.6rem !important;
    margin-bottom: 5px !important;
    margin-top: 0 !important;
    line-height: 1.2 !important;
  }

  .product-info__subtitle {
    font-size: 1rem !important;
    margin-bottom: 10px !important;
  }

  .product-info__price-block {
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
  }

  .product-info__price-label {
    font-size: 1.1rem !important;
    margin: 0 0 5px 0 !important;
  }

  .product-info__features {
    margin-bottom: 10px !important;
    font-size: 0.85rem !important;
  }

  .product-info__features li {
    margin-bottom: 4px !important;
  }

  /* Stack overview, specs, and logistics closely */
  .product-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
  }

  .product-details__overview,
  .product-details__specs {
    flex: none !important;
    width: 100% !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .product-details h2 {
    font-size: 1.2rem !important;
    margin-bottom: 5px !important;
  }

  .product-details__overview p {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
  }

  .specs-table th, .specs-table td {
    padding: 4px 0 !important;
    font-size: 0.85rem !important;
  }

}

/* ============================================================
   PRICING VISIBILITY
   ============================================================ */
/* Pricing displayed by default on screen */

@media print {
  .product-card__price,
  .product-info__price-block {
    display: block !important;
  }
  .price-row {
    display: table-row !important;
  }
}

/* ============================================================
   PRODUCT PAGE COLOR OVERRIDE
   ============================================================ */
/* Ensure all text elements on product pages render in black */
.product-page,
.product-page h1,
.product-page h2,
.product-page h3,
.product-page h4,
.product-page h5,
.product-page h6,
.product-page p,
.product-page span:not(.btn),
.product-page li,
.product-page strong,
.product-page b,
.product-page em,
.product-page i,
.product-page .product-info__subtitle,
.product-page .product-info__price-label,
.product-page .specs-table th,
.product-page .specs-table td,
.product-page .breadcrumb a,
.product-page .breadcrumb span {
  color: #000000 !important;
}

/* ============================================================
   CATEGORY FILTER SIDEBAR
   ============================================================ */
.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
.catalog-main .product-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media screen and (max-width: 1024px) {
  .catalog-main .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 640px) {
  .catalog-main .product-grid { grid-template-columns: 1fr; }
}
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.catalog-count {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin: 0;
}
.catalog-filter-toggle {
  display: none;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--color-border);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-dark);
  background: var(--color-bg-primary);
}
.catalog-empty {
  padding: var(--space-2xl) 0;
  color: var(--color-text-light);
  font-size: 0.95rem;
}
.catalog-clear-inline {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 1px;
  font-size: inherit;
}
.product-card.is-filtered-out { display: none !important; }

.filter-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-md));
  align-self: start;
}
.filter-sidebar__head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.filter-sidebar__title {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text-dark);
}
.filter-clear {
  margin-left: auto;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  border-bottom: 1px solid transparent;
}
.filter-clear:hover { border-bottom-color: var(--color-accent); }
.filter-sidebar__close {
  display: none;
  margin-left: auto;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-dark);
}
.filter-group { border-top: 1px solid var(--color-border); }
.filter-group:last-child { border-bottom: 1px solid var(--color-border); }
.filter-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) 0;
  text-align: left;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dark);
}
.filter-group__chevron {
  transition: transform var(--transition-fast);
  color: var(--color-text-light);
  flex-shrink: 0;
}
.filter-group__head[aria-expanded="false"] .filter-group__chevron { transform: rotate(-90deg); }
.filter-group__body {
  padding-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.3rem 0;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--color-text-primary);
}
.filter-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
  cursor: pointer;
  flex-shrink: 0;
}
.filter-option__label { flex: 1; }
.filter-option__count { font-size: 0.75rem; color: var(--color-text-light); }
.filter-option.is-empty { opacity: 0.4; }
.filter-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.filter-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1140;
}
.filter-backdrop.is-active { display: block; }

@media screen and (max-width: 992px) {
  .catalog-layout { grid-template-columns: 1fr; gap: 0; }
  .catalog-filter-toggle { display: inline-flex; }
  .filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1150;
    width: 300px;
    max-width: 85vw;
    background: var(--color-bg-primary);
    padding: var(--space-lg);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-lg);
  }
  .filter-sidebar.is-open { transform: translateX(0); }
  .filter-sidebar__close { display: block; }
  .filter-clear { margin-left: 0; }
}

