/* -----------------------------------------------------------
   GLOBAL WRAPPER
----------------------------------------------------------- */
.hh-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  background-color: #f9fafb;
}

.hh-max {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}


/* -----------------------------------------------------------
   CARD SECTIONS
----------------------------------------------------------- */
.hh-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.hh-section h1,
.hh-section h2,
.hh-section h3 {
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}


/* -----------------------------------------------------------
   TABLES
----------------------------------------------------------- */
.hh-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.hh-table th,
.hh-table td {
  border: 1px solid #e5e7eb;
  padding: 12px 16px;
  font-size: 1rem;
}

.hh-table th {
  background: #f3f4f6;
  font-weight: 600;
  color: #111827;
}

.hh-table tr:nth-child(even) td {
  background: #fafafa;
}

.hh-model-list {
  margin: 0;
  padding-left: 18px;
}

.hh-model-list li {
  margin: 2px 0;
}



/* -----------------------------------------------------------
   DIAGRAM GRID (2-column)
----------------------------------------------------------- */
.hh-diagram-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

.hh-diagram {
  text-align: center;
}

.hh-diagram-placeholder {
  width: 100%;
  text-align: center;
  padding: 8px;
  height: 220px;
  background: #ffffff;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.95rem;
}

.hh-clearance-note {
  margin-top: 20px;
  padding: 16px;
  background: #f7f7f7;
  border-left: 4px solid #3b82f6;
  border-radius: 6px;
  color: #374151;
  font-size: 0.95rem;
}

.hh-diagram-img {
  display: block;
  margin: 0 auto;
  width: auto;   /* adjust as needed */
  max-height: 220px;       /* keeps proportions */
}


/* -----------------------------------------------------------
   INSTALLATION NOTES (2-column)
----------------------------------------------------------- */
.hh-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.hh-icon-placeholder {
  width: 40px;
  height: 40px;
  background: #e5e7eb;
  border-radius: 8px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

/* INSTALLATION SECTION */
.hh-installation {
  margin-top: 32px;
}

/* GRID LAYOUT */
.hh-install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* CARD */
.hh-install-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* HEADER WITH ICON */
.hh-install-header {
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f3f4f6;
}

/* ICON PLACEHOLDER */
.hh-install-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.85;
}

/* ICONS (replace with your SVGs later) */
.flooring-icon {
  background-image: url('/icons/flooring.png');
}

.plumbing-icon {
  background-image: url('/icons/plumbing.png');
}

.electrical-icon {
  background-image: url('/icons/electrical.png');
}

.service-icon {
  background-image: url('/icons/service.png');
}

/* BULLET LISTS */
.hh-install-list {
  list-style-type: disc;       /* ensures bullets appear */
  list-style-position: inside; /* keeps bullets aligned neatly */
  margin: 0;
  padding-left: 20px;
}

.hh-install-list li {
  display: list-item;          /* restores bullet rendering */
  margin: 4px 0;
  line-height: 1.45;
  color: #374151;
}


/* MOBILE */
@media (max-width: 640px) {
  .hh-install-grid {
    grid-template-columns: 1fr;
  }
}


/* -----------------------------------------------------------
   FAQ ACCORDION
----------------------------------------------------------- */
.hh-faq {
  margin-top: 20px;
}

.hh-faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0;
}

.hh-faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  padding: 10px 0;
  transition: color 0.2s ease;
}

.hh-faq-question:hover {
  color: #2563eb;
}

.hh-faq-answer {
  display: none; /* hidden by default */
  padding: 0 0 10px 0;
  color: #374151;
  line-height: 1.5;
}

.hh-faq-item.active .hh-faq-answer {
  display: block; /* show when active */
}
/* -----------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------- */
@media (max-width: 900px) {
  .hh-diagram-grid,
  .hh-columns {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------------------------------
   DARK MODE — GLOBAL WRAPPER
----------------------------------------------------------- */
html.dark .hh-wrapper {
  background-color: #111827; /* slate-900 */
}

html.dark .hh-max {
  color: #e5e7eb; /* slate-200 */
}

/* -----------------------------------------------------------
   DARK MODE — CARD SECTIONS
----------------------------------------------------------- */
html.dark .hh-section {
  background: #1f2937; /* slate-800 */
  border-color: #374151; /* slate-700 */
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

html.dark .hh-section h1,
html.dark .hh-section h2,
html.dark .hh-section h3 {
  color: #f3f4f6; /* slate-100 */
}

/* -----------------------------------------------------------
   DARK MODE — TABLES
----------------------------------------------------------- */
html.dark .hh-table th {
  background: #374151; /* slate-700 */
  color: #f3f4f6;
  border-color: #4b5563; /* slate-600 */
}

html.dark .hh-table td {
  background: #1f2937; /* slate-800 */
  color: #e5e7eb;
  border-color: #374151;
}

html.dark .hh-table tr:nth-child(even) td {
  background: #111827; /* slate-900 */
}

/* -----------------------------------------------------------
   DARK MODE — DIAGRAMS
----------------------------------------------------------- */
html.dark .hh-diagram-placeholder {
  background: #1f2937;
  border-color: #4b5563;
  color: #9ca3af;
}

html.dark .hh-clearance-note {
  background: #1f2937;
  border-left-color: #3b82f6;
  color: #e5e7eb;
}

/* -----------------------------------------------------------
   DARK MODE — INSTALLATION CARDS
----------------------------------------------------------- */
html.dark .hh-install-card {
  background: #1f2937;
  border-color: #374151;
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

html.dark .hh-install-header {
  color: #f3f4f6;
  border-bottom-color: #374151;
}

html.dark .hh-install-list li {
  color: #d1d5db; /* slate-300 */
}

html.dark .hh-install-icon {
  opacity: 0.9;
  filter: brightness(0.85);
}

/* -----------------------------------------------------------
   DARK MODE — FAQ ACCORDION
----------------------------------------------------------- */
html.dark .hh-faq-item {
  border-bottom-color: #374151;
}

html.dark .hh-faq-question {
  color: #f3f4f6;
}

html.dark .hh-faq-question:hover {
  color: #60a5fa; /* blue-400 */
}

html.dark .hh-faq-answer {
  color: #d1d5db;
}

/* -----------------------------------------------------------
   DARK MODE — BULLETS
----------------------------------------------------------- */
html.dark .hh-install-list {
  list-style-type: disc;
}

html.dark .hh-install-list li::marker {
  color: #9ca3af; /* soft grey bullet */
}