:root {
  --bg-cream: #FAF8F5;
  --bg-sage: #F2EDE6;
  --border-sage: #DDD4C8;
  --text-sage: #5C534B;
  --accent-olive: #1F1B18;
  --accent-olive-hover: #332C27;
  --accent-caramel: #8C5C39;
  --accent-caramel-light: #E8C7A6;
}

body:not(.theme-home) { background-color: var(--bg-cream); }

/* Soft modern upholstered furniture typography & warm curved geometry. */
section h1,
main h1,
.catalog-heading h1,
.koda-editorial h2,
.home-trade-band h2,
.koda-project h2,
main > section h2 {
  font-weight: 500;
  letter-spacing: -0.022em;
}

.site-header .site-quote,
.product-detail .inquiry-link,
#inquiry-form button[type="submit"],
.quick-inquiry .quick-inquiry-submit {
  background-color: var(--accent-olive);
  color: var(--bg-cream);
  border-radius: 8px;
}

.site-header .site-quote:hover,
.product-detail .inquiry-link:hover,
#inquiry-form button[type="submit"]:hover:not(:disabled),
.quick-inquiry .quick-inquiry-submit:hover:not(:disabled) {
  background-color: var(--accent-olive-hover);
}

/* Solid inquiry panels. */
.brand-panel {
  background-color: var(--accent-olive);
  color: var(--bg-cream);
}

.brand-panel p { color: #DDD5CC; }

.brand-panel .brand-panel-action,
.page-hero--standard .customization-action-primary,
.oem-page .oem-hero-action--primary {
  background-color: var(--accent-caramel-light);
  border-color: var(--accent-caramel-light);
  color: #1F1B18;
}

.brand-panel .brand-panel-action:hover,
.page-hero--standard .customization-action-primary:hover,
.oem-page .oem-hero-action--primary:hover { background-color: #F2D7BC; }

.brand-panel a:focus-visible,
.customization-page main .brand-panel a:focus-visible {
  outline: 2px solid var(--accent-caramel-light);
  outline-offset: 4px;
}

/* Pale surfaces for navigation, buying information and contact details. */
.catalog-heading,
.brand-tint-card,
.product-detail .product-buying-summary,
.customization-page .catalog-swatch figcaption {
  background-color: var(--bg-sage);
  border-color: var(--border-sage);
}

.catalog-heading [data-catalog-filters],
.brand-tint-card .factory-map__details,
.brand-tint-card .factory-map__details > div { border-color: var(--border-sage); }

.catalog-heading p,
.brand-tint-card p,
.brand-tint-card .factory-map__details dt,
.brand-tint-card .factory-map__email { color: var(--text-sage); }

.catalog-heading .cat-btn {
  border: 1px solid #C9BCAE;
  border-radius: 8px;
  background-color: var(--bg-cream);
  color: var(--accent-olive);
}

.catalog-heading .cat-btn:hover { background-color: #E7DFD3; }
.catalog-heading .cat-btn[aria-pressed="true"] {
  border-color: var(--accent-olive);
  background-color: var(--accent-olive);
  color: var(--bg-cream);
}
.catalog-heading .cat-btn:focus-visible { outline: 2px solid var(--accent-olive); outline-offset: 3px; }

.brand-tint-card { padding: clamp(16px, 3vw, 28px); border: 1px solid var(--border-sage); border-radius: 12px; }
.brand-tint-card .factory-map__link { color: #8C5C39; }

/* Custom Brand-Matched Select Dropdown (replaces native OS blue pickers) */
.koda-select {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.koda-select--full {
  display: block;
  width: 100%;
}
.koda-select-native {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  margin: 0;
}
.koda-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: #1D1917;
  background: #FFFFFF;
  border: 1px solid #D6CEC5;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
#inquiry-form .koda-select-trigger {
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
}
.koda-select--compact .koda-select-trigger {
  min-width: 176px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 16px;
  border-color: #DDD4C8;
}
.koda-select--dark-field .koda-select-trigger {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid rgba(221, 212, 200, 0.35);
  background: rgba(250, 248, 245, 0.95);
  color: #1D1917;
}
.koda-select-trigger:hover {
  border-color: #8C5C39;
}
.koda-select.is-open .koda-select-trigger,
.koda-select-trigger:focus-visible {
  outline: none;
  border-color: #8C5C39;
  box-shadow: 0 0 0 3px rgba(140, 92, 57, 0.14);
}
.koda-select--dark-field.is-open .koda-select-trigger,
.koda-select--dark-field .koda-select-trigger:focus-visible {
  border-color: #E8C7A6;
  background: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(232, 199, 166, 0.35);
}
.koda-select-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.koda-select-chevron {
  flex: none;
  color: #78716C;
  transition: transform 180ms ease, color 150ms ease;
}
.koda-select.is-open .koda-select-chevron {
  transform: rotate(180deg);
  color: #1D1917;
}
.koda-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  max-width: min(360px, calc(100vw - 32px));
  max-height: 280px;
  overflow-y: auto;
  z-index: 60;
  margin: 0;
  padding: 5px;
  list-style: none;
  background: #FFFFFF;
  border: 1px solid #D6CEC5;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(31, 27, 24, 0.14);
}
.koda-select-menu[hidden] {
  display: none !important;
}
.koda-select-menu--end {
  left: auto;
  right: 0;
}
.koda-select--up .koda-select-menu {
  top: auto;
  bottom: calc(100% + 6px);
}
.koda-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #292421;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.koda-select--compact .koda-select-option {
  font-size: 12px;
  padding: 8px 10px;
  white-space: nowrap;
}
.koda-select-option:hover,
.koda-select-option.is-focused {
  background: #F4EFE8;
  color: #1D1917;
}
.koda-select-option[aria-selected="true"] {
  background: #F1E8DD;
  color: #1D1917;
  font-weight: 600;
}
.koda-select-check {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: #8C5C39;
  opacity: 0;
}
.koda-select-option[aria-selected="true"] .koda-select-check {
  opacity: 1;
}
@media (max-width: 639px) {
  .koda-select--compact {
    width: 100%;
  }
  .koda-select--compact .koda-select-trigger {
    min-width: 0;
  }
  .koda-select-menu--end {
    left: 0;
    right: auto;
    width: 100%;
  }
}

/* Lead-gated Wholesale Catalog PDF download card (shown only after submission) */
.catalog-download-card {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #D6CEC5;
  border-radius: 12px;
  background: #F2EDE6;
  text-align: left;
}
.catalog-download-card[hidden] {
  display: none !important;
}
.catalog-download-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #1F1B18;
}
.catalog-download-meta {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #5C534B;
}
.catalog-download-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.catalog-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #1F1B18;
  color: #FAF8F5;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease;
}
.catalog-download-btn:hover {
  background: #332C27;
  color: #FAF8F5;
}
.catalog-preview-link {
  font-size: 12.5px;
  font-weight: 600;
  color: #8C5C39;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.catalog-preview-link:hover {
  color: #1F1B18;
}

/* Composite Phone Input with Searchable Region Dial Code Picker */
.koda-phone-group {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid #D6CEC5;
  border-radius: 8px;
  background: #FFFFFF;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.koda-phone-group:focus-within,
.koda-phone-group.is-open {
  border-color: #292421;
}
.koda-phone-country {
  position: relative;
  display: flex;
  flex: 0 0 auto;
}
.koda-phone-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 12px 10px 12px 12px;
  border: 0;
  border-right: 1px solid #EAE5DC;
  border-radius: 7px 0 0 7px;
  background: #FAF8F5;
  color: #1D1917;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.koda-phone-trigger:hover {
  background: #F4EFE8;
}
.koda-phone-trigger:focus-visible {
  outline: 2px solid #8C5C39;
  outline-offset: -2px;
}
.koda-phone-iso {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #78716C;
}
.koda-phone-code {
  font-variant-numeric: tabular-nums;
  color: #1D1917;
}
.koda-phone-chevron {
  flex: none;
  color: #78716C;
  transition: transform 180ms ease, color 150ms ease;
}
.koda-phone-group.is-open .koda-phone-chevron {
  transform: rotate(180deg);
  color: #1D1917;
}
.koda-phone-number {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 0 7px 7px 0;
  background: transparent;
  color: #1D1917;
  font-family: inherit;
  font-size: 12px;
  line-height: 16px;
}
.koda-phone-number:focus-visible {
  outline: 2px solid var(--action, #8C5C39);
  outline-offset: -2px;
}
.koda-phone-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: max(100%, 280px);
  max-width: min(340px, calc(100vw - 32px));
  z-index: 70;
  background: #FFFFFF;
  border: 1px solid #D6CEC5;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(31, 27, 24, 0.16);
  overflow: hidden;
}
.koda-phone-menu[hidden] {
  display: none !important;
}
.koda-phone-group.koda-phone--up .koda-phone-menu {
  top: auto;
  bottom: calc(100% + 6px);
}
.koda-phone-search-wrap {
  padding: 8px;
  border-bottom: 1px solid #EAE5DC;
  background: #FAF8F5;
}
.koda-phone-search {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #D6CEC5;
  border-radius: 8px;
  background: #FFFFFF;
  color: #1D1917;
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.4;
  box-sizing: border-box;
}
.koda-phone-search:focus {
  outline: none;
  border-color: #8C5C39;
}
.koda-phone-list {
  max-height: 224px;
  overflow-y: auto;
  margin: 0;
  padding: 5px;
  list-style: none;
}
.koda-phone-group-label {
  padding: 6px 10px 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #78716C;
}
.koda-phone-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.35;
  color: #292421;
  cursor: pointer;
  transition: background-color 120ms ease;
}
.koda-phone-option:hover,
.koda-phone-option.is-focused {
  background: #F4EFE8;
}
.koda-phone-option[aria-selected="true"] {
  background: #F1E8DD;
  font-weight: 600;
}
.koda-phone-opt-iso {
  flex: none;
  width: 24px;
  font-size: 11px;
  font-weight: 700;
  color: #78716C;
}
.koda-phone-opt-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.koda-phone-opt-code {
  flex: none;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #8C5C39;
}
.koda-phone-empty {
  padding: 14px 12px;
  text-align: center;
  font-size: 12.5px;
  color: #78716C;
}
.koda-phone-empty[hidden] {
  display: none !important;
}
