/* Steelhead Door Configurator — embedded styles (works inside a Cornerstone Raw Content element or the PHP template) */
/* Snap the configurator onto the site's content column. The page places it in a
   Cornerstone section with a hardcoded padding-left:162px; neutralize that and
   center on the same 1280px-inner / 56px-gutter column as the other theme
   sections (gallery/showcase/pillars/servemap). max-width 1392 = 1280 + 2x56. */
.x-section:has(.sh-cfg) { padding-left: 0 !important; padding-right: 0 !important; }
.sh-cfg { background: var(--sh-black, #0B0B0B); color: var(--sh-bone, #F4F1EC); width: 100%; max-width: 1392px; margin-left: auto; margin-right: auto; padding: 112px 56px; box-sizing: border-box; }
.sh-cfg__wrap { max-width: none; margin: 0; }
.sh-cfg__head { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: end; margin-bottom: 44px; }
.sh-cfg__head h2 { font-family: var(--sh-display, sans-serif); font-weight: 800; font-size: clamp(30px,3.4vw,48px); letter-spacing: 0.06em; text-transform: uppercase; margin: 0; line-height: 1.02; color: var(--sh-bone,#F4F1EC); }
.sh-cfg__lead { font-family: var(--sh-sans, sans-serif); font-size: 16px; line-height: 1.6; color: var(--sh-silver,#B8BCC0); margin: 0; max-width: 480px; }

/* selector row */
.sh-cfg__styles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(244,241,236,0.12); border: 1px solid rgba(244,241,236,0.12); }
.sh-cfg__style { display: flex; flex-direction: column; background: var(--sh-black,#0B0B0B); border: 0; border-top: 2px solid transparent; cursor: pointer; padding: 0; text-align: left; color: inherit; font: inherit; transition: background 180ms; }
.sh-cfg__style[aria-selected="true"] { background: var(--sh-black-soft,#1A1A1A); border-top-color: var(--sh-corten,#8A4B2A); }
.sh-cfg__style-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: #0b0b0b; }
.sh-cfg__style-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: opacity 180ms; display: block; }
.sh-cfg__style[aria-selected="true"] .sh-cfg__style-thumb img { opacity: 1; }
.sh-cfg__style-meta { padding: 12px 14px 14px; }
.sh-cfg__style-idx { display: block; font-family: var(--sh-sans,sans-serif); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sh-steel,#6E7378); margin-bottom: 5px; }
.sh-cfg__style-name { display: block; font-family: var(--sh-sans,sans-serif); font-size: 12.5px; font-weight: 600; color: var(--sh-silver,#B8BCC0); line-height: 1.25; }
.sh-cfg__style[aria-selected="true"] .sh-cfg__style-name { color: var(--sh-bone,#F4F1EC); }

/* main view */
.sh-cfg__main { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1px; background: rgba(244,241,236,0.12); border: 1px solid rgba(244,241,236,0.12); border-top: 0; }
.sh-cfg__photo { position: relative; background: #0b0b0b; min-height: 460px; overflow: hidden; }
.sh-cfg__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 280ms var(--sh-ease, ease); }
.sh-cfg__finish-label { position: absolute; left: 24px; bottom: 22px; display: flex; align-items: center; gap: 12px; }
.sh-cfg__finish-label .bar { width: 28px; height: 2px; background: var(--sh-corten,#8A4B2A); }
.sh-cfg__finish-label span { font-family: var(--sh-sans,sans-serif); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sh-bone,#F4F1EC); text-shadow: 0 1px 4px rgba(0,0,0,0.7); }

/* side panel */
.sh-cfg__panel { background: var(--sh-black-soft,#1A1A1A); padding: 36px 34px; display: flex; flex-direction: column; }
.sh-cfg__panel-eyebrow { font-family: var(--sh-sans,sans-serif); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sh-corten,#8A4B2A); margin-bottom: 12px; }
.sh-cfg__panel h3 { font-family: var(--sh-display,sans-serif); font-weight: 800; font-size: 26px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--sh-bone,#F4F1EC); margin: 0 0 14px; line-height: 1.06; }
.sh-cfg__blurb { font-family: var(--sh-sans,sans-serif); font-size: 14px; line-height: 1.6; color: var(--sh-silver,#B8BCC0); margin: 0 0 26px; }
.sh-cfg__finish-title { font-family: var(--sh-sans,sans-serif); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sh-steel,#6E7378); margin-bottom: 14px; }
.sh-cfg__swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.sh-cfg__swatch { width: 38px; height: 38px; padding: 0; cursor: pointer; border: 1px solid transparent; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color 150ms; }
.sh-cfg__swatch[aria-selected="true"] { outline-color: var(--sh-corten,#8A4B2A); }
.sh-cfg__specs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.sh-cfg__spec { display: flex; align-items: center; gap: 10px; font-family: var(--sh-sans,sans-serif); font-size: 13px; color: var(--sh-silver,#B8BCC0); }
.sh-cfg__cta { margin-top: auto; display: flex; gap: 10px; flex-wrap: nowrap; }
.sh-cfg__cta .sh-btn { flex: 1 1 0; min-width: 0; justify-content: center; white-space: nowrap; padding: 14px 14px; font-size: 10.5px; letter-spacing: 0.1em; }

@media (max-width: 920px) {
  .sh-cfg { padding: 64px 24px; }
  .sh-cfg__head { grid-template-columns: 1fr; gap: 24px; }
  /* 2-col grid leaves the 5th style's row with an empty cell; make that cell
     read as the page background (#0b0b0b) instead of the gridline gray. */
  .sh-cfg__styles { grid-template-columns: repeat(2, 1fr); background: var(--sh-black, #0B0B0B); }
  .sh-cfg__main { grid-template-columns: 1fr; }
  .sh-cfg__photo { min-height: 320px; }
}
