:root {
  /* Earthy, natural, woody tones */
  --color-primary: #4A3F33; /* Dark roast brown */
  --color-secondary: #8E7E6A; /* Natural earth */
  --color-accent: #C2A878; /* Sand/Gold touch */
  --color-bg: #F8F7F5; /* Warm off-white */
  --color-surface: #FFFFFF; /* Pure white */
  --color-text-main: #2A2621; /* Almost black */
  --color-text-muted: #665D52; /* Muted brown-grey */
  --color-border: #E5E1D8; /* Gentle beige border */
  
  /* Layout Options */
  --max-width: 1400px;
  --header-height: 80px;

  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
}

/* Base Utility Classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 4rem; }

/* Interactive Header */
.site-header {
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand-logo h1 {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  font-weight: 700;
  font-family: var(--font-serif);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links li a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-main);
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition-smooth);
}

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

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 250px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  padding: 1rem 0;
  border-radius: 4px;
  z-index: 100;
  list-style: none;
  border: 1px solid var(--color-border);
}
.dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu li a {
  padding: 0.8rem 1.5rem;
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-main);
  transition: var(--transition-smooth);
}
.dropdown-menu li a:hover {
  background-color: var(--color-bg);
  color: var(--color-primary);
}
.dropdown-menu li a::after {
  display: none !important;
}

/* Sections & Views */
.view-container {
  display: none;
  min-height: calc(100vh - var(--header-height));
  animation: fadeIn 0.4s ease-out;
}

.view-container.active {
  display: block;
}

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

/* Section Common */
.section-padding {
  padding: 6rem 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 3rem auto;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: #342C23;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 63, 51, 0.2);
}

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

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

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media(max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Cards (Product Cards) */
.card {
  background: var(--color-surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: var(--transition-smooth);
  border: 1px solid var(--color-border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background-color: #EEE;
}

.card-img-contain {
  object-fit: contain !important;
  padding: 1rem;
  background-color: transparent !important;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-instock {
  background-color: #E8F5E9;
  color: #2E7D32;
}
.badge-preorder {
  background-color: #FFF3E0;
  color: #EF6C00;
}

/* Specific Home Sections */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-color: var(--color-primary);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 800px;
}

.hero-content h2 {
  font-size: 4rem;
  color: white;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Category Highlight */
.cat-highlight {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  text-decoration: none;
  cursor: pointer;
}

.cat-highlight img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  z-index: 1;
}

.cat-highlight::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 70%);
  z-index: 2;
}

.cat-highlight:hover img {
  transform: scale(1.05);
}

.cat-content {
  position: relative;
  z-index: 3;
  color: white;
}

.cat-content h3 {
  font-size: 2rem;
  color: white;
  margin-bottom: 0.5rem;
}

/* Options Lists details */
.options-list {
  list-style: none;
  font-size: 0.9rem;
  margin-top: 1rem;
}
.options-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}
.options-list li::before {
  content: '•';
  color: var(--color-accent);
  font-weight: bold;
  display: inline-block;
  width: 1em;
}

/* Specifications block */
.specs {
  background: var(--color-bg);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.specs p {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--color-border);
  padding: 0.4rem 0;
}
.specs p:last-child { border-bottom: none; }
.specs strong { color: var(--color-primary); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.gallery-item {
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* Sub-nav for categories */
.category-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.cat-tab {
  padding: 0.8rem 1.5rem;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition-smooth);
}
.cat-tab.active, .cat-tab:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* Footer Element */
.site-footer {
  background-color: var(--color-primary);
  color: white;
  padding: 4rem 0;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
/* Cabinetry Specific Styles */
.service-highlight {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}
.service-highlight:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
}
.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.service-highlight h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

/* Journey Timeline */
.journey-container {
  background: #F4F1EA;
  border-radius: 12px;
  margin: 4rem 0;
}
.journey-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  position: relative;
}
.journey-step {
  position: relative;
  padding-top: 2rem;
}
.step-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--color-accent);
  opacity: 0.5;
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.journey-step h5 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}
.journey-step p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

@media(max-width: 900px) {
  .journey-timeline { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 600px) {
  .journey-timeline { grid-template-columns: 1fr; }
}

/* Swatches - Large Rectangular Tiles */
.swatch {
  width: 100%;
  aspect-ratio: 1 / 1.1; /* Slightly tall for a premium look */
  border-radius: 6px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.swatch:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.hot-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  z-index: 2;
}

.grid-5 { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }

.wood-grain {
  background-image: url('https://www.transparenttextures.com/patterns/wood-pattern.png');
  background-blend-mode: multiply;
  background-size: 200px;
}


.no-border { border: none !important; }

/* Cabinet Hub Refinements */
.service-highlight-alt {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-bg);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}
.service-icon-small {
  font-size: 1.5rem;
}

.category-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border) !important;
  background: white !important;
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08) !important;
  border-color: var(--color-primary) !important;
}
.category-card .btn {
  pointer-events: none; /* Let the link handle the click */
}

/* Service Pillars - Premium Row Look */
.service-pillar-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  text-align: center;
}
.service-pillar {
  padding: 1rem;
  transition: transform 0.3s ease;
}
.service-pillar:hover {
  transform: translateY(-5px);
}
.service-icon-wrap {
  width: 60px;
  height: 60px;
  background: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  font-size: 1.8rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.service-pillar h5 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--color-primary);
  font-family: var(--font-serif);
}
.service-pillar p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Brand Closure & Narrative Layouts */
.split-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 500px;
}
.split-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-hero-content {
  padding: 6rem 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--color-bg);
}

.brand-closure-split .split-hero-content {
  background-color: #3A3228;
}

.brand-closure {
  background-color: #3A3228;
  color: #E5E1D8;
  padding-top: 6rem;
  position: relative;
}
.brand-closure::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.narrative-title {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}
.narrative-text {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--color-text-muted);
}

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

/* Vanity Filter Buttons */
.vanity-filter-btn {
  padding: 0.5rem 1.25rem;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}
.vanity-filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.vanity-filter-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
