/*
 * cabinet-finish-guide.css
 * Component stylesheet for the Highlands Designs cabinet finish guide.
 * All rules are scoped under .hd-guide to avoid conflicts with parent page CSS.
 * Link this file from your parent template: <link rel="stylesheet" href="cabinet-finish-guide.css">
 */

/* ── CSS VARIABLES (scoped) ── */
.hd-guide {
  --hd-oak:          #C4924A;
  --hd-oak-light:    #E8C98A;
  --hd-oak-dark:     #8B5E2A;
  --hd-charcoal:     #2C2C2C;
  --hd-mid-gray:     #6B6460;
  --hd-light-gray:   #E8E2DA;
  --hd-cream:        #F7F3ED;
  --hd-warm-white:   #FDFAF6;
  --hd-white:        #FFFFFF;
  --hd-painted:      #3D5A73;
  --hd-stained:      #7A4F2D;
  --hd-unfinished:   #C9A96E;
  --hd-reface:       #4A6741;
  --hd-shadow:       0 4px 24px rgba(44,44,44,0.10);
  --hd-shadow-lg:    0 8px 40px rgba(44,44,44,0.14);

  box-sizing: border-box;
  color: var(--hd-charcoal);
  line-height: 1.7;
  font-size: 16px;
}

.hd-guide *, .hd-guide *::before, .hd-guide *::after {
  box-sizing: inherit;
}

/* ── GUIDE INTRO (replaces hero) ── */
.hd-guide .hd-intro {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--hd-light-gray);
  margin-bottom: 48px;
}
.hd-guide .hd-intro-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--hd-oak);
  font-weight: 500;
  margin-bottom: 10px;
}
.hd-guide .hd-intro h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--hd-charcoal);
}
.hd-guide .hd-intro p {
  color: var(--hd-mid-gray);
  max-width: 580px;
  margin: 0 0 24px;
  font-size: 1.02rem;
}
.hd-guide .hd-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hd-guide .hd-nav a {
  background: var(--hd-cream);
  border: 1px solid var(--hd-light-gray);
  color: var(--hd-charcoal);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 3px;
  font-size: 0.86rem;
  transition: background 0.18s, border-color 0.18s;
}
.hd-guide .hd-nav a:hover {
  background: var(--hd-light-gray);
  border-color: var(--hd-oak);
}

/* ── SECTION STRUCTURE ── */
.hd-guide .hd-section {
  padding: 56px 0;
}
.hd-guide .hd-section + .hd-section {
  border-top: 1px solid var(--hd-light-gray);
}
.hd-guide .hd-section-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--hd-oak);
  font-weight: 500;
  margin-bottom: 10px;
}
.hd-guide .hd-section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--hd-charcoal);
}
.hd-guide .hd-section-intro {
  color: var(--hd-mid-gray);
  max-width: 600px;
  margin-bottom: 40px;
  font-size: 1rem;
}

/* ── OPTION CARDS ── */
.hd-guide .hd-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.hd-guide .hd-option-card {
  background: var(--hd-white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--hd-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hd-guide .hd-option-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hd-shadow-lg);
}
.hd-guide .hd-card-bar { height: 6px; }
.hd-guide .hd-card-bar.painted    { background: var(--hd-painted); }
.hd-guide .hd-card-bar.stained    { background: var(--hd-stained); }
.hd-guide .hd-card-bar.unfinished { background: var(--hd-unfinished); }
.hd-guide .hd-card-bar.reface     { background: var(--hd-reface); }
.hd-guide .hd-card-body { padding: 22px; }
.hd-guide .hd-card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.hd-guide .hd-card-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
}
.hd-guide .hd-card-body p {
  font-size: 0.9rem;
  color: var(--hd-mid-gray);
  margin: 0 0 14px;
}
.hd-guide .hd-pill {
  display: inline-block;
  font-size: 0.76rem;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 500;
  margin: 2px 2px 2px 0;
}
.hd-guide .hd-pill.painted    { background: #EBF0F5; color: var(--hd-painted); }
.hd-guide .hd-pill.stained    { background: #F5EDE8; color: var(--hd-stained); }
.hd-guide .hd-pill.unfinished { background: #F7F2EA; color: #8B6830; }
.hd-guide .hd-pill.reface     { background: #EBF0EA; color: var(--hd-reface); }

/* ── COMPARISON TABLE ── */
.hd-guide .hd-table-wrap { overflow-x: auto; margin-bottom: 12px; }
.hd-guide table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 540px;
}
.hd-guide thead th {
  padding: 13px 15px;
  text-align: left;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.4px;
  background: var(--hd-charcoal);
  color: var(--hd-cream);
}
.hd-guide thead th:first-child { border-radius: 5px 0 0 0; }
.hd-guide thead th:last-child  { border-radius: 0 5px 0 0; }
.hd-guide tbody tr:nth-child(even) { background: var(--hd-warm-white); }
.hd-guide tbody tr:nth-child(odd)  { background: var(--hd-white); }
.hd-guide td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--hd-light-gray);
}
.hd-guide td:first-child { font-weight: 500; }
.hd-guide .hd-cell-good { color: #3A7D44; font-weight: 500; }
.hd-guide .hd-cell-mid  { color: #8B6830; font-weight: 500; }
.hd-guide .hd-cell-note { color: var(--hd-mid-gray); }
.hd-guide .hd-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}
.hd-guide .hd-dot.painted    { background: var(--hd-painted); }
.hd-guide .hd-dot.stained    { background: var(--hd-stained); }
.hd-guide .hd-dot.unfinished { background: var(--hd-unfinished); }
.hd-guide .hd-dot.reface     { background: var(--hd-reface); }

/* ── BEFORE / AFTER ── */
.hd-guide .hd-photo-note {
  background: #FEF8EC;
  border: 1px solid #F0D9A0;
  border-radius: 5px;
  padding: 14px 18px;
  font-size: 0.86rem;
  color: #7A5C20;
  margin-bottom: 28px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.hd-guide .hd-ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.hd-guide .hd-ba-card {
  background: var(--hd-white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--hd-shadow);
}
.hd-guide .hd-ba-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.hd-guide .hd-ba-img {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hd-guide .hd-ba-img.before          { background: #E8DDD0; }
.hd-guide .hd-ba-img.after-painted   { background: #C8D6E0; }
.hd-guide .hd-ba-img.after-stained   { background: #D4B896; }
.hd-guide .hd-ba-img.after-unfinished{ background: #E8D5B0; }
.hd-guide .hd-ba-img.after-reface    { background: #C8D4C6; }
.hd-guide .hd-ba-label {
  position: absolute;
  bottom: 7px; left: 7px;
  background: rgba(44,44,44,0.68);
  color: #fff;
  font-size: 0.66rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 2px;
}
.hd-guide .hd-ba-divider {
  position: absolute;
  top: 0; left: 50%; width: 2px; height: 100%;
  background: var(--hd-white);
  z-index: 2;
}
.hd-guide .hd-ba-info { padding: 18px 20px; }
.hd-guide .hd-ba-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 5px;
}
.hd-guide .hd-ba-info p {
  font-size: 0.86rem;
  color: var(--hd-mid-gray);
  margin: 0;
}
.hd-guide .hd-ba-tag {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 20px;
  margin-top: 9px;
}

/* Kitchen scene illustrations (placeholder art) */
.hd-guide .hd-kitchen-scene {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding-bottom: 6px; gap: 2px;
}
.hd-guide .hd-cab-row {
  display: flex; gap: 3px; width: 85%;
}
.hd-guide .hd-cab {
  flex: 1;
  border-radius: 2px;
  border: 1.5px solid rgba(0,0,0,0.14);
}

/* ── QUIZ ── */
.hd-guide .hd-quiz-wrap {
  background: var(--hd-white);
  border-radius: 8px;
  box-shadow: var(--hd-shadow-lg);
  overflow: hidden;
}
.hd-guide .hd-quiz-header {
  background: var(--hd-charcoal);
  padding: 28px 32px;
  color: var(--hd-cream);
}
.hd-guide .hd-quiz-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 5px;
}
.hd-guide .hd-quiz-header p {
  color: rgba(247,243,237,0.68);
  font-size: 0.9rem;
  margin: 0;
}
.hd-guide .hd-progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.14);
  margin-top: 18px;
  border-radius: 2px;
  overflow: hidden;
}
.hd-guide .hd-progress-fill {
  height: 100%;
  background: var(--hd-oak);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.hd-guide .hd-quiz-body { padding: 32px; }

.hd-guide .hd-q { display: none; }
.hd-guide .hd-q.active {
  display: block;
  animation: hdFadeIn 0.28s ease;
}
@keyframes hdFadeIn {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hd-guide .hd-q-num {
  font-size: 0.76rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hd-oak);
  font-weight: 500;
  margin-bottom: 7px;
}
.hd-guide .hd-q-text {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.4;
  color: var(--hd-charcoal);
}
.hd-guide .hd-q-options { display: grid; gap: 9px; }
.hd-guide .hd-q-option {
  background: var(--hd-cream);
  border: 2px solid transparent;
  border-radius: 5px;
  padding: 13px 16px;
  cursor: pointer;
  font-size: 0.92rem;
  font-family: inherit;
  text-align: left;
  transition: all 0.16s;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--hd-charcoal);
  width: 100%;
}
.hd-guide .hd-q-option:hover { border-color: var(--hd-oak); background: #FAF4EC; }
.hd-guide .hd-q-option.selected { border-color: var(--hd-oak); background: #FAF4EC; }
.hd-guide .hd-q-letter {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--hd-light-gray);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.76rem;
  font-weight: 500;
  flex-shrink: 0;
  transition: background 0.16s, color 0.16s;
}
.hd-guide .hd-q-option.selected .hd-q-letter {
  background: var(--hd-oak);
  color: white;
}

.hd-guide .hd-quiz-nav {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  gap: 10px;
}

/* Buttons */
.hd-guide .hd-btn {
  padding: 11px 24px;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s;
}
.hd-guide .hd-btn-primary { background: var(--hd-charcoal); color: var(--hd-cream); }
.hd-guide .hd-btn-primary:hover { background: var(--hd-oak-dark); }
.hd-guide .hd-btn-primary:disabled {
  background: var(--hd-light-gray);
  color: var(--hd-mid-gray);
  cursor: default;
}
.hd-guide .hd-btn-outline {
  background: transparent;
  border: 2px solid var(--hd-light-gray);
  color: var(--hd-charcoal);
}
.hd-guide .hd-btn-outline:hover { border-color: var(--hd-charcoal); }

/* ── QUIZ RESULTS ── */
.hd-guide .hd-result { display: none; }
.hd-guide .hd-result.active { display: block; animation: hdFadeIn 0.35s ease; }

.hd-guide .hd-result-banner {
  border-radius: 6px;
  padding: 24px 26px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.hd-guide .hd-result-banner.painted    { background: #EBF0F5; border-left: 4px solid var(--hd-painted); }
.hd-guide .hd-result-banner.stained    { background: #F5EDE8; border-left: 4px solid var(--hd-stained); }
.hd-guide .hd-result-banner.unfinished { background: #F7F2EA; border-left: 4px solid var(--hd-unfinished); }
.hd-guide .hd-result-banner.reface     { background: #EBF0EA; border-left: 4px solid var(--hd-reface); }
.hd-guide .hd-result-icon { font-size: 2.2rem; flex-shrink: 0; }
.hd-guide .hd-result-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 5px; }
.hd-guide .hd-result-desc  { font-size: 0.92rem; color: var(--hd-mid-gray); line-height: 1.6; }

.hd-guide .hd-result-reasons {
  background: var(--hd-cream);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 18px;
}
.hd-guide .hd-result-reasons h5 {
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hd-mid-gray);
  margin-bottom: 12px;
  font-weight: 500;
}
.hd-guide .hd-result-reasons ul { list-style: none; padding: 0; margin: 0; }
.hd-guide .hd-result-reasons li {
  padding: 5px 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 9px;
}
.hd-guide .hd-result-reasons li::before {
  content: '✓';
  color: var(--hd-oak);
  font-weight: 700;
  flex-shrink: 0;
}

/* Tie result */
.hd-guide .hd-tie-intro {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--hd-cream);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 18px;
}
.hd-guide .hd-tie-intro-icon { font-size: 1.8rem; flex-shrink: 0; }
.hd-guide .hd-tie-intro-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 5px; }
.hd-guide .hd-tie-intro-desc  { font-size: 0.88rem; color: var(--hd-mid-gray); line-height: 1.6; }

.hd-guide .hd-tie-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
@media (max-width: 540px) { .hd-guide .hd-tie-cards { grid-template-columns: 1fr; } }
.hd-guide .hd-tie-card {
  border-radius: 6px;
  padding: 20px;
  border: 2px solid transparent;
}
.hd-guide .hd-tie-card.painted    { background: #EBF0F5; border-color: var(--hd-painted); }
.hd-guide .hd-tie-card.stained    { background: #F5EDE8; border-color: var(--hd-stained); }
.hd-guide .hd-tie-card.unfinished { background: #F7F2EA; border-color: var(--hd-unfinished); }
.hd-guide .hd-tie-card.reface     { background: #EBF0EA; border-color: var(--hd-reface); }
.hd-guide .hd-tie-card-header {
  display: flex; align-items: center; gap: 9px; margin-bottom: 10px;
}
.hd-guide .hd-tie-card-icon  { font-size: 1.4rem; }
.hd-guide .hd-tie-card-title { font-size: 1rem; font-weight: 600; }
.hd-guide .hd-tie-card-desc  { font-size: 0.86rem; color: var(--hd-mid-gray); line-height: 1.6; margin-bottom: 10px; }
.hd-guide .hd-tie-card ul    { list-style: none; padding: 0; margin: 0; }
.hd-guide .hd-tie-card li {
  font-size: 0.84rem;
  padding: 3px 0;
  display: flex; gap: 7px;
  color: var(--hd-charcoal);
}
.hd-guide .hd-tie-card li::before { content: '✓'; color: var(--hd-oak); font-weight: 700; flex-shrink: 0; }

.hd-guide .hd-retake { text-align: center; margin-top: 18px; }

/* ── FAQ ── */
.hd-guide .hd-faq-group-label {
  font-size: 0.76rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--hd-oak);
  font-weight: 500;
  padding: 28px 0 8px;
}
.hd-guide .hd-faq-list { display: grid; gap: 2px; }
.hd-guide .hd-faq-item {
  background: var(--hd-white);
  border-radius: 4px;
  overflow: hidden;
}
.hd-guide .hd-faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--hd-charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  transition: background 0.14s;
}
.hd-guide .hd-faq-q:hover { background: var(--hd-cream); }
.hd-guide .hd-faq-q.open  { color: var(--hd-oak-dark); }
.hd-guide .hd-faq-arrow {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--hd-light-gray);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
  transition: transform 0.24s, background 0.18s;
}
.hd-guide .hd-faq-q.open .hd-faq-arrow {
  transform: rotate(180deg);
  background: var(--hd-oak);
  color: white;
}
.hd-guide .hd-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.34s ease, padding 0.22s;
  font-size: 0.9rem;
  color: var(--hd-mid-gray);
  line-height: 1.75;
}
.hd-guide .hd-faq-a.open {
  max-height: 420px;
  padding: 0 22px 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hd-guide .hd-quiz-body   { padding: 22px 18px; }
  .hd-guide .hd-quiz-header { padding: 22px 18px; }
  .hd-guide .hd-result-banner { flex-direction: column; gap: 8px; }
  .hd-guide .hd-tie-intro     { flex-direction: column; gap: 8px; }
}
