/*
Theme Name: Cabinets for Living
Theme URI: https://cabinetsforliving.com/
Author: Artisans
Description: A high-end cabinetry design showcase featuring artisan craftsmanship and playful precision.
Version: 1.9.1
Text Domain: cabinets-living
*/

:root {
  --font-serif: "Cormorant Garamond", ui-serif, Georgia, serif;
  --font-title: "Cormorant Unicase", ui-serif, Georgia, serif;
  --font-sans: "Nunito", ui-sans-serif, system-ui, sans-serif;
  --color-brand-deep: #000000;
  --color-brand-bg: #EBE6DE;
  --color-brand-banner: #E3DED5;
  --color-brand-light: #F1EDE8;
  --color-accent: #825639;
}

/* Explicitly hide any old/ghost close buttons */
[data-nav-close], .cl-mobile-close, .cl-nav-close, .hamburger-inner {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #fff;
  box-sizing: border-box;
  font-family: var(--font-sans);
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Global Button Reset for font */
button, 
input[type="button"], 
input[type="submit"],
.cl-btn-quote,
.cl-btn-quote--full {
  font-family: var(--font-sans) !important;
}

/* --- PLAYFUL PRECISION PAGE STYLES --- */

.playful-page { padding-top: 40px; }

.pp-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 64px);
  line-height: 1.05;
  color: var(--color-brand-deep);
  margin: 0 0 16px;
  font-weight: 500;
}
.pp-line {
  width: 32px;
  height: 1px;
  background-color: var(--color-brand-deep);
  margin: 24px 0;
}
.pp-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  max-width: 42ch;
  margin-bottom: 0;
}
.pp-sub__title {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-brand-deep);
  font-weight: 700;
  margin: 0 0 8px;
}
.pp-sub__desc {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

/* Hero Section */
.pp-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}
.pp-hero__content { padding-right: 20px; }
.pp-hero__sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
  border-top: none;
  padding-top: 32px;
}
.pp-hero__image-wrap { width: 100%; }
.pp-hero__image {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(0,0,0,0.1);
  object-fit: cover;
}

/* Features */
.pp-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  background-color: var(--color-brand-bg);
  padding: 48px 40px;
  border-radius: 4px;
  margin-bottom: 24px;
}
.pp-features__item {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(0,0,0,0.06);
  padding-right: 24px;
}
.pp-features__item:last-child {
  border-right: none;
  padding-right: 0;
}
.pp-features__img {
  margin-top: 32px;
  width: 100%;
  max-width: 140px;
  align-self: center;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Navigation & Header */
body:not(.has-transparent-header) .site-main {
  padding-top: 80px !important;
  margin-top: 0 !important;
}
@media screen and (max-width: 782px) {
  body:not(.has-transparent-header) .site-main {
    padding-top: 80px !important; 
  }
}

.cl-site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(241, 237, 232, 0.75);
  z-index: 1000;
  border-bottom: none;
}
body.admin-bar .cl-site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .cl-site-header {
    top: 46px;
  }
}
.cl-header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.cl-brand {
  display: flex;
  align-items: center;
}
@media (min-width: 768px) {
  .cl-header-container { padding: 20px 48px; }
}
@media (min-width: 1024px) {
  .cl-header-container { padding: 20px 64px; }
}
@media (min-width: 1280px) {
  .cl-header-container { padding: 20px 80px; }
}
.cl-nav-desktop-wrapper {
  display: flex;
  align-items: center;
  gap: 48px;
}
.cl-nav-desktop {
  gap: 48px;
  align-items: center;
  display: flex;
}
.cl-nav-desktop-list {
  display: flex;
  gap: 48px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cl-nav-desktop-list li { margin: 0; padding: 0; }
.cl-nav-desktop-list a {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4A3727;
  text-decoration: none;
  transition: color 0.2s;
}
.cl-nav-desktop-list a:hover { color: #000; }
.cl-link {

  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4A3727;
  text-decoration: none;
  transition: color 0.2s;
}
.cl-link:hover { color: #000; }

.cl-btn-quote {
  font-family: var(--font-sans);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: 12px 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  background: transparent;
}
.cl-btn-quote:hover {
  background: var(--color-accent);
  color: white;
}

/* Mobile Toggle */
.cl-mobile-toggle {
  display: none !important;
  border: none;
  background: none;
  padding: 10px;
  margin: -10px;
  cursor: pointer;
  z-index: 1000;
  position: relative;
}
.cl-hamburger {
  width: 24px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.cl-hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: #000000 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0;
  display: block;
}

/* Open State Animations */
[data-nav-open="1"] .cl-hamburger-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
[data-nav-open="1"] .cl-hamburger-bar:nth-child(2) { opacity: 0; transform: translateX(10px); display: none; }
[data-nav-open="1"] .cl-hamburger-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Menu */
.cl-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cl-mobile-menu {
  position: fixed;
  top: 0; 
  right: 0;
  width: 300px; 
  max-width: 85%;
  height: 100vh;
  background: #fff;
  z-index: 950;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  display: block !important; /* Always in DOM, animated via transform */
}
[data-nav-open="1"] .cl-mobile-overlay { opacity: 1; pointer-events: auto; }
[data-nav-open="1"] .cl-mobile-menu { transform: translateX(0); }

.cl-mobile-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 80px 32px 40px;
  box-sizing: border-box;
}
.cl-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.cl-mobile-links-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cl-mobile-links-list li { margin: 0; padding: 0; }
.cl-mobile-links-list a {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-brand-deep);
  text-decoration: none;
}
.cl-mobile-link {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-brand-deep);
  text-decoration: none;
}
.cl-mobile-footer {
  margin-top: auto;
  width: 100%;
}
.cl-btn-quote--full {
  font-family: var(--font-sans);
  width: 100% !important;
  display: block !important;
  text-align: center;
  padding: 16px 20px;
  box-sizing: border-box !important;
  background: var(--color-accent);
  color: #fff;
  border: none;
}

/* Responsive Overrides */
@media (max-width: 1279px) {
  .cl-nav-desktop, .cl-nav-desktop-wrapper { display: none !important; }
  .cl-mobile-toggle { display: block !important; }
}
@media (max-width: 1023px) {
  
  .pp-hero { grid-template-columns: 1fr; }
  .pp-features { grid-template-columns: 1fr; }
  .footer__top { flex-direction: column; gap: 48px; }
}

/* Footer Section */
.footer {
  padding: 48px 0 32px;
  background-color: var(--color-brand-light);
  border-top: none;
}
.footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .footer__inner { padding: 0 48px; }
}
@media (min-width: 1024px) {
  .footer__inner { padding: 0 64px; }
}
@media (min-width: 1280px) {
  .footer__inner { padding: 0 80px; }
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 64px;
}
.footer__cols { display: flex; gap: 64px; }
.fcol__title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  color: var(--color-brand-deep);
}
.fcol__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fcol__list li {
  margin: 0;
  padding: 0;
}
.fcol__list a {
  display: block;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #666;
  text-decoration: none;
  margin-bottom: 12px;
}
.fcol__list a:hover {
  color: #000;
}
.fcol__link {
  display: block;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #666;
  text-decoration: none;
  margin-bottom: 12px;
}
.footer__bottom {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #999;
  border-top: none;
}
.cl-logo, .custom-logo { height: 34px; width: auto; max-width: 100%; object-fit: contain; margin-top: -8px; }
@media (min-width: 1024px) {
  .cl-logo, .custom-logo { height: 43px; }
}

/* Luxury Editorial Hero Section */
.cl-hero {
  position: relative;
  width: 100%;
  background-color: #FAF9F6;
  overflow: hidden;
  height: auto;
  margin: 0 !important;
  padding: 0 !important;
}
@media (min-width: 1024px) {
  .cl-hero { height: auto; }
}

.cl-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: linear-gradient(to right, #FAF9F6 0%, #FAF9F6 40%, rgba(250, 249, 246, 0) 100%);
}
@media (min-width: 1024px) {
  .cl-hero__overlay {
    background: linear-gradient(to right, #FAF9F6 0%, #FAF9F6 35%, rgba(250, 249, 246, 0.7) 65%, transparent 100%);
  }
}
.cl-hero__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 640px) { .cl-hero__container { padding: 0 48px; } }
@media (min-width: 1024px) { .cl-hero__container { padding: 0 80px; } }
@media (min-width: 1280px) { .cl-hero__container { padding: 0 120px; } }

.cl-hero__grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) {
  .cl-hero__grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

.cl-hero__text {
  padding: 113px 0 48px;
  position: relative;
  z-index: 20;
}
@media (min-width: 1024px) {
  .cl-hero__text {
    grid-column: span 6;
    padding: 145px 0 80px;
  }
}

.cl-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.9;
}
@media (min-width: 640px) { .cl-eyebrow { font-size: 11px; } }
@media (min-width: 1024px) { .cl-eyebrow { font-size: 12px; } }

.cl-h1 {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.1;
  color: #4A3727;
  margin-bottom: 16px;
  font-weight: 700;
}
@media (min-width: 640px) { .cl-h1 { font-size: 34px; } }
@media (min-width: 1024px) { .cl-h1 { font-size: 42px; } }
@media (min-width: 1280px) { .cl-h1 { font-size: 50px; } }

.cl-hero__body {
  max-width: 45%;
}
@media (min-width: 640px) { .cl-hero__body { max-width: 40%; } }
@media (min-width: 1024px) { .cl-hero__body { max-width: 30%; } }

.cl-body-large {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 0;
}
@media (min-width: 640px) { .cl-body-large { font-size: 14px; } }
@media (min-width: 1024px) { .cl-body-large { font-size: 13px; line-height: 1.7; } }
@media (min-width: 1280px) { .cl-body-large { font-size: 14px; } }

.cl-body-small {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  margin-bottom: 0;
}
@media (min-width: 640px) { .cl-body-small { font-size: 15px; } }
@media (min-width: 1024px) { .cl-body-small { font-size: 16px; line-height: 1.6; } }

.cl-hero__image-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
@media (min-width: 1024px) { .cl-hero__image-wrap { width: 70%; } }

.cl-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cl-hero__border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.05);
}

/* About Us Sections */
.cl-section {
  padding: 8px 0;
}
@media (min-width: 1024px) {
  .cl-section { padding: 12px 0; }
}

.cl-section-pt { padding-top: 32px; }
@media (min-width: 1024px) { .cl-section-pt { padding-top: 48px; } }

.cl-bg-soft { background-color: #FAF9F6; }
.cl-bg-white { background-color: #ffffff; }
.cl-bg-brand { background-color: var(--color-accent); color: #ffffff; }
.cl-bg-card { background-color: #F5F1EB; }

/* Bento Layout */
.cl-bento-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 10px 0;
}
@media (min-width: 1024px) {
  .cl-bento-grid { flex-direction: row; padding: 10px 0; align-items: stretch; }
}

.cl-col-75 { flex: 6; }
.cl-col-25 { flex: 2; }

.cl-bento-card {
  background-color: rgba(245, 239, 233, 0.4);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) { .cl-bento-card { padding: 28px; } }

.cl-bento-card--flex {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 768px) { .cl-bento-card--flex { flex-direction: row; align-items: flex-start; gap: 40px; } }

/* Map Container Adjustments */
.cl-map-container {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 35%;
  padding-top: 10px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .cl-map-container { 
    width: 23.3%;
    justify-content: center;
    margin: 0;
  }
}

.cl-card-image { 
  width: 100%; 
  height: auto;
  max-width: 196px; /* Reduced from 280px */
  opacity: 0.8; 
  filter: none; 
  margin: 0 auto; 
  object-fit: contain; 
}
@media (max-width: 640px) { .cl-card-image { width: 100%; max-width: 175px; } }
@media (min-width: 768px) { .cl-card-image { width: 100%; margin: 0; max-width: none; } }

.cl-card-content { flex: 1; z-index: 10; }

.cl-card-line { width: 24px; height: 1.5px; background-color: var(--color-accent); margin-bottom: 12px; }

.cl-bento-card .cl-h2 {
  font-family: var(--font-serif);
  font-size: 24px !important;
  line-height: 1.1;
  color: #4A3727;
  margin-bottom: 4px;
  font-weight: 700;
}
@media (min-width: 640px) { .cl-bento-card .cl-h2 { font-size: 20px !important; } }
@media (min-width: 1024px) { .cl-bento-card .cl-h2 { font-size: 24px !important; } }

.cl-card-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 16px;
  max-width: 480px;
}
@media (min-width: 640px) { .cl-card-desc { font-size: 17.5px; } }

.cl-card-grid-vertical {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}
@media (min-width: 640px) { 
  .cl-card-grid-vertical { 
    grid-template-columns: repeat(3, 1fr); 
    gap: 24px;
  } 
}

.cl-card-item-vertical { 
  display: flex; 
  flex-direction: column; 
  align-items: center;
  text-align: center;
}

.cl-card-icon-centered { color: var(--color-accent); margin-bottom: 12px; }
.cl-card-item-title { font-family: var(--font-serif); font-size: 10px; font-weight: 700; color: #4A3727; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.cl-card-item-desc { font-family: var(--font-sans); font-size: 8px; color: #666; line-height: 1.3; transition: font-size 0.2s; }

.cl-grid--large-subtext .cl-grid-subtitle,
.cl-grid--large-subtext .cl-card-item-desc {
  font-size: 12px;
}

.cl-stats-bento {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: none;
  padding-top: 16px;
}

.cl-stat-unit { text-align: center; padding: 0 4px; }
.cl-stat-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--color-accent);
  margin-bottom: 2px;
  line-height: 1;
}
@media (min-width: 1024px) { .cl-stat-value { font-size: 34px; } }

.cl-stat-desc {
  font-family: var(--font-sans);
  font-size: 8px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.2;
}
.cl-border-x { border-left: 1px solid rgba(166, 128, 94, 0.1); border-right: 1px solid rgba(166, 128, 94, 0.1); }

/* Refined Grid Component Styles */
.cl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 20px 0;
}

@media (min-width: 768px) {
  .cl-grid.cl-grid--cols-2 { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  .cl-grid.cl-grid--cols-3 { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .cl-grid.cl-grid--cols-4 { grid-template-columns: repeat(4, 1fr); gap: 48px; }
  .cl-grid.cl-grid--cols-5 { grid-template-columns: repeat(5, 1fr); gap: 40px; }
}

.cl-grid-item {
  display: flex;
  position: relative;
  min-width: 0;
}

/* Pseudo-element separator for medium/large screens */
@media (min-width: 768px) {
  .cl-grid.cl-grid--cols-3.cl-grid--with-separators .cl-grid-item:not(:first-child)::before,
  .cl-grid.cl-grid--cols-4.cl-grid--with-separators .cl-grid-item:not(:first-child)::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background-color: rgba(130, 86, 57, 0.2);
  }
  .cl-grid.cl-grid--cols-5.cl-grid--with-separators .cl-grid-item:not(:first-child)::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background-color: rgba(130, 86, 57, 0.2);
  }
}

.cl-grid-item--horizontal {
  display: flex !important;
  flex-direction: row !important;
  gap: 16px !important;
}

.cl-grid-item--vertical {
  flex-direction: column;
}

.cl-grid-item--align-left {
  align-items: flex-start;
  text-align: left;
}

.cl-grid-item--align-center {
  align-items: center;
  text-align: center;
}

.cl-grid-item--align-center .cl-grid-col-icon {
  justify-content: center;
  align-items: center;
}

.cl-grid-col-icon {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-start;
  color: var(--color-accent);
}

.cl-grid--no-border .cl-grid-item::before {
  display: none !important;
}

.cl-grid-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: center;
}

.cl-grid-item--horizontal .cl-grid-col-icon {
  margin-top: 0;
  flex-shrink: 0 !important;
}

.cl-grid-item--vertical .cl-grid-col-icon {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.cl-grid--serif-caps .cl-grid-title {
  font-family: var(--font-serif);
  font-size: 13px !important;
  font-weight: 700;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  color: #4B3B30 !important;
  margin-bottom: 12px !important;
}

.cl-grid--serif-caps .cl-grid-subtitle {
  font-size: 13px !important;
  color: #6B5A4E !important;
}

.cl-grid--sans-caps .cl-grid-title {
  font-family: var(--font-sans);
  font-size: 11px !important;
  font-weight: 700;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  color: #4A3727 !important;
  margin-bottom: 12px !important;
}

.cl-grid--sans-caps .cl-grid-subtitle {
  font-size: 14px !important;
  color: #6B5A4E !important;
}

.cl-grid-col-text {
  display: flex;
  flex-direction: column;
}

.cl-grid-link {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: #825639;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 16px;
  transition: opacity 0.2s;
}

.cl-grid-link:hover {
  opacity: 0.8;
}

/* Tablet layout requirement: stacking cards vertically or wrapping instead of forcing reverse column */
@media (min-width: 768px) and (max-width: 1023px) {
  .cl-grid.cl-grid--cols-3,
  .cl-grid.cl-grid--cols-4,
  .cl-grid.cl-grid--cols-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  /* Hide the pseudo-separator on every alternating item in tablet view since it wraps */
  .cl-grid.cl-grid--cols-3 .cl-grid-item:nth-child(2n+1)::before,
  .cl-grid.cl-grid--cols-4 .cl-grid-item:nth-child(2n+1)::before,
  .cl-grid.cl-grid--cols-5 .cl-grid-item:nth-child(2n+1)::before {
    display: none;
  }
}

.cl-grid-item--horizontal .cl-grid-col-text {
  flex: 1;
  align-items: flex-start;
  text-align: left;
}

.cl-grid-item--vertical .cl-grid-col-text {
  align-items: center;
}

.cl-grid-title {
  font-family: var(--font-serif);
  color: #4A3727;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.cl-grid-item--horizontal .cl-grid-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 0;
}

@media (min-width: 640px) {
  /* No title override needed here */
}

.cl-grid-item--vertical .cl-grid-title {
  font-size: 16px;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 4px;
}

.cl-grid-subtitle {
  font-family: var(--font-sans);
  color: #666;
  margin-top: 2px;
  line-height: 1.4;
}

.cl-grid-item--horizontal .cl-grid-subtitle {
  font-size: 14px;
}

@media (min-width: 640px) {
  .cl-grid-item--horizontal .cl-grid-subtitle { font-size: 16px; }
}

@media (min-width: 1024px) {
  .cl-grid-item--horizontal .cl-grid-subtitle { font-size: 16px; }
}

.cl-grid-item--vertical .cl-grid-subtitle {
  font-size: 14px;
}

.cl-grid--large-subtext .cl-grid-item--vertical .cl-grid-title,
.cl-grid--large-subtext .cl-grid-item--vertical .cl-grid-subtitle,
.cl-grid--large-subtext .cl-grid-item--horizontal .cl-grid-title,
.cl-grid--large-subtext .cl-grid-item--horizontal .cl-grid-subtitle {
  font-size: 16px;
}

/* Gallery Grid */
.cl-home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
@media (max-width: 1023px) {
  .cl-home-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .cl-home-gallery-grid { grid-template-columns: 1fr; }
}

.cl-gallery-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: #DCCBBD;
  cursor: pointer;
}
.cl-gallery-link {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: block;
}
.cl-gallery-bg {
  position: absolute;
  inset: 0;
  isolation: isolate;
  z-index: 0;
}
.cl-gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  z-index: 0;
}
.cl-gallery-card:hover .cl-gallery-img {
  transform: scale(1.05);
}
.cl-gallery-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(58, 41, 29, 0.9), transparent);
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.7s ease;
}
.cl-gallery-card:hover .cl-gallery-overlay {
  opacity: 0;
}
.cl-gallery-tint {
  position: absolute;
  inset: 0;
  background-color: #4A3727;
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.7s ease;
  z-index: 10;
}
.cl-gallery-card:hover .cl-gallery-tint {
  opacity: 0.8;
}
.cl-gallery-content {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 30;
}
.cl-gallery-title {
  color: #ffffff;
  font-size: 18px;
  font-family: var(--font-serif);
  margin-bottom: 12px;
  line-height: 1.3;
}
.cl-gallery-line {
  width: 32px;
  height: 2px;
  background-color: #C19A6B;
}

/* Home Process Layout */
.cl-home-process-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
}
.cl-home-process-step {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.cl-home-process-step img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: 0.8;
}
.cl-home-process-step h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: #4A3727;
  margin: 0 0 4px 0;
}
.cl-home-process-step p {
  color: #6B5A4E;
  font-size: 13px;
  margin: 0;
  line-height: 1.3;
}
.cl-home-process-arrow {
  color: #C19A6B;
  font-size: 20px;
  font-weight: 300;
  opacity: 0.5;
}
@media (max-width: 767px) {
  .cl-home-process-arrow { display: none; }
  .cl-home-process-container { flex-direction: column; align-items: flex-start; gap: 32px; }
}

/* Home Why Choose Layout */
.cl-home-why-container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}
.cl-home-why-left {
  flex: 1;
  min-width: 300px;
  padding-right: 32px;
  border-right: 1px solid #DCCBBD;
}
.cl-home-why-right {
  flex: 2;
  min-width: 300px;
}
@media (max-width: 1023px) {
  .cl-home-why-left { border-right: none; padding-right: 0; }
}
.cl-home-why-eyebrow {
  font-size: 11px;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #825639;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cl-home-why-title {
  font-size: 24px;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #4A3727;
  text-transform: uppercase;
  margin-bottom: 24px;
  line-height: 1.2;
}
.cl-home-why-desc {
  color: #6B5A4E;
  font-size: 14px;
  margin-bottom: 32px;
  max-width: 320px;
  line-height: 1.6;
}
.cl-btn-primary {
  display: inline-block;
  background-color: #825639;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 32px;
  text-decoration: none;
  transition: background-color 0.3s;
}
.cl-btn-primary:hover {
  background-color: #6A452D;
}
.cl-btn-outline {
  display: inline-block;
  border: 1px solid #825639;
  color: #825639;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.15em;
  padding: 12px 32px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
}
.cl-btn-outline:hover {
  background-color: #825639;
  color: #ffffff;
}

/* Home Banner Layout */
.cl-home-banner-section {
  position: relative;
  padding: 80px 0;
  background-color: #1E1A17;
  overflow: hidden;
}
.cl-home-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  mix-blend-mode: overlay;
  transition: transform 20s ease;
  transform: scale(1.05);
}
.cl-home-banner-section:hover .cl-home-banner-bg {
  transform: scale(1);
}
.cl-home-banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #1A1613 0%, rgba(26,22,19,0.8) 50%, rgba(0,0,0,0) 100%);
  z-index: 5;
}
.cl-home-banner-content {
  position: relative;
  z-index: 10;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 64px;
}
.cl-home-banner-left {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
}
.cl-home-banner-right {
  flex: 1;
  min-width: 300px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: start;
  padding-top: 32px;
  border-top: none;
}
@media (max-width: 768px) {
  .cl-home-banner-right { border-top: none; padding-top: 0; grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .cl-home-banner-gradient { background: linear-gradient(to bottom, #1A1613 0%, rgba(26,22,19,0.8) 50%, rgba(0,0,0,0) 100%); }
}
.cl-home-banner-eyebrow {
  font-size: 11px;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.9;
}
.cl-home-banner-title {
  font-size: 40px;
  font-family: var(--font-serif);
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.15;
}
.cl-home-banner-desc {
  color: #DCCBBD;
  font-size: 15px;
  margin-bottom: 32px;
  line-height: 1.6;
}
.cl-home-banner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cl-home-banner-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 20px;
  opacity: 0.9;
  filter: brightness(0) invert(1) sepia(0.5) hue-rotate(340deg) saturate(2);
}
.cl-home-banner-text {
  color: #EAE4DC;
  font-size: 13px;
  font-family: var(--font-sans);
  white-space: pre-line;
  line-height: 1.3;
}
.cl-home-hero-wrap {
  background-color: #F5F1EB;
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
  display: block;
}

.cl-home-hero-shape {
  position: relative;
  width: 100%;
  aspect-ratio: 1.2/1;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .cl-home-hero-shape { aspect-ratio: 2.4/1; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .cl-home-hero-shape { aspect-ratio: 21/9; }
}

.cl-home-hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
  filter: brightness(0.88) contrast(1.2) saturate(0.9);
  background-color: #F5F1EB;
}
@media (min-width: 1024px) {
  .cl-home-hero-image {
    transform: scale(1);
  }
}

.cl-home-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: linear-gradient(to top, rgba(20, 10, 5, 0.85) 0%, rgba(20, 10, 5, 0.6) 25%, rgba(20, 10, 5, 0.2) 45%, transparent 70%);
  pointer-events: none;
}
@media (max-width: 639px) {
  .cl-home-hero-overlay {
    background: linear-gradient(to top, rgba(20, 10, 5, 1.0) 0%, rgba(20, 10, 5, 0.65) 30%, transparent 50%);
  }
}

.cl-home-hero-content {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  color: #FFFFFF;
  padding: 0 10px 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
@media (min-width: 640px) { .cl-home-hero-content { padding-left: 20px; padding-right: 20px; padding-bottom: 50px; } }
@media (min-width: 768px) and (max-width: 1023px) { .cl-home-hero-content { padding-bottom: 20px; } }

.cl-home-h1 {
  font-family: var(--font-title);
  font-size: 19px;
  line-height: 1.2;
  margin-bottom: 24px;
  margin-top: 10px;
  font-weight: 700;
  color: #FFFFFF !important;
  opacity: 1 !important;
  text-shadow: 0 4px 12px rgba(0,0,0,0.8) !important;
  position: relative;
  z-index: 100;
}
@media (min-width: 640px) { .cl-home-h1 { font-size: 36px; margin-bottom: 16px; margin-top: 0; } }
@media (min-width: 1024px) { .cl-home-h1 { font-size: 48px; } }

.cl-home-subtitle {
  display: none;
  font-family: var(--font-sans);
  font-size: 8px;
  color: #FFFFFF !important;
  opacity: 1 !important;
  text-shadow: 0 4px 12px rgba(0,0,0,0.8) !important;
  max-width: 280px;
  margin-bottom: 20px;
  font-weight: 300;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 100;
}
@media (min-width: 640px) { .cl-home-subtitle { display: block; font-size: 14px; max-width: 500px; margin-bottom: 40px; } }

.cl-home-btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: #FFFFFF;
  padding: 10px 24px;
  font-family: var(--font-sans);
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  transition: background-color 0.3s;
}
@media (min-width: 640px) { .cl-home-btn { font-size: 12px; padding: 12px 32px; margin-top: 0; transform: none; } }
@media (min-width: 768px) and (max-width: 1023px) { .cl-home-btn { font-size: 7px; padding: 7px 19px; } }
.cl-home-btn:hover { background-color: #8e6b4d; }

/* Grid Component Styles */
.cl-home-grid {
  padding: 80px 0;
  background-color: #F5F1EB;
}

.cl-grid-container {
  max-width: 1200px;
  padding: 0 40px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 640px) {
  .cl-grid-container { grid-template-columns: repeat(3, 1fr); }
}

/* 
.cl-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
*/

.cl-grid-icon {
  color: var(--color-accent);
  margin-bottom: 16px;
}

.cl-grid-h3 {
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 700;
  color: #4A3727;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cl-grid-p {
  font-family: var(--font-sans);
  font-size: 7px;
  color: #666;
  line-height: 1.4;
}

.cl-local-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
@media (min-width: 1024px) {
  .cl-local-grid { grid-template-columns: 1fr 1fr; gap: 96px; }
}

.cl-h2 {
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.1;
  color: #333;
  margin-bottom: 32px;
}
@media (min-width: 640px) { .cl-h2 { font-size: 40px; } }
@media (min-width: 1024px) { .cl-h2 { font-size: 48px; } }

.cl-body-text {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 48px;
  max-width: 540px;
}
@media (min-width: 1024px) { .cl-body-text { font-size: 18px; } }

.cl-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  text-align: center;
}
@media (min-width: 640px) {
  .cl-stats-grid { grid-template-columns: repeat(3, 1fr); text-align: left; }
}

.cl-stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--color-accent);
  margin-bottom: 8px;
}
@media (min-width: 1024px) { .cl-stat-number { font-size: 48px; } }

.cl-stat-label {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #555;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cl-bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 640px) { .cl-bottom-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cl-bottom-grid { grid-template-columns: repeat(4, 1fr); gap: 64px; } }

.cl-bottom-icon { width: 40px; height: 40px; margin-bottom: 24px; object-fit: contain; }
.cl-bottom-title { font-family: var(--font-serif); font-size: 20px; color: #333; margin-bottom: 12px; }
.cl-bottom-desc { font-family: var(--font-sans); font-size: 14px; line-height: 1.6; color: #666; }

.cl-promise-text {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 32px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) { .cl-promise-text { font-size: 32px; } }
@media (min-width: 1024px) { .cl-promise-text { font-size: 40px; } }

@media (min-width: 768px) and (max-width: 1023px) {
  .cl-h1 { font-size: 25px !important; }
  .cl-h2 { font-size: 25px !important; }
  .cl-body-large { font-size: 20px !important; }
  .cl-body-small { font-size: 20px !important; }
  .cl-stat-value { font-size: 33px !important; }
  .cl-stat-desc { font-size: 15px !important; }
  .cl-home-h1 { font-size: 29px !important; }
  .cl-home-subtitle { font-size: 16px !important; }
  .cl-card-desc { font-size: 20px !important; }
}

/* Global Utility Classes */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: #4A3727;
}

.cl-mobile-only { display: none; }
@media (max-width: 640px) {
  .cl-desktop-only { display: none; }
  .cl-mobile-only { display: inline; }
}

/* Transparent Header on Pages with Hero */
body.has-transparent-header .cl-site-header {
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
body.has-transparent-header .cl-site-header .cl-logo,
body.has-transparent-header .cl-site-header .custom-logo,
body.has-transparent-header .cl-site-header .cl-link,
body.has-transparent-header .cl-site-header .cl-nav-desktop-list a,
body.has-transparent-header .cl-site-header .cl-btn-quote,
body.has-transparent-header .cl-site-header .cl-hamburger-bar {
  transition: all 0.3s ease;
}
body.has-transparent-header .cl-site-header.scrolled {
  background: rgba(241, 237, 232, 0.75);
  border-bottom: none;
}
.cl-site-header .cl-btn-quote {
  border-color: #4A3727;
  color: #4A3727;
}
.cl-site-header .cl-btn-quote:hover {
  background-color: #4A3727;
  color: #ffffff;
}

body.has-transparent-header .cl-site-header:not(.scrolled) .cl-logo,
body.has-transparent-header .cl-site-header:not(.scrolled) .custom-logo {
  -webkit-filter: brightness(0) invert(1) !important;
  filter: brightness(0) invert(1) !important;
}
body.has-transparent-header .cl-site-header:not(.scrolled) .cl-link,
body.has-transparent-header .cl-site-header:not(.scrolled) .cl-nav-desktop-list a {
  color: rgba(255, 255, 255, 0.9) !important;
}
body.has-transparent-header .cl-site-header:not(.scrolled) .cl-link:hover,
body.has-transparent-header .cl-site-header:not(.scrolled) .cl-nav-desktop-list a:hover {
  color: #ffffff !important;
}
body.has-transparent-header .cl-site-header:not(.scrolled) .cl-btn-quote {
  border-color: #fff;
  color: #fff;
}
body.has-transparent-header .cl-site-header:not(.scrolled) .cl-btn-quote:hover {
  background-color: #fff;
  color: #000;
}
body.has-transparent-header .cl-site-header:not(.scrolled) .cl-hamburger-bar {
  background-color: #fff;
}
