/* =========================================================
   PROPERTY CARE HUB (/property-hub)
   Design: property-care-hub.html, in the site's fonts and colours
   (Georgia headings, Inter text, emerald + rose gold). Section spacing,
   headings and the notice box come from buyer-guide.css (.page-buyer-guide).
   ========================================================= */

.phub-dir {
  max-width: 1140px;
  margin: 18px auto 0;
}

/* ---- Heading row: summary, search, Expand All ---- */

.phub-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.phub-controls__title {
  margin: 0 0 3px;
  font-family: var(--font-display, Georgia, serif);
  font-size: 22px;
  color: var(--emerald-deep, #08362a);
}

.phub-controls__summary {
  font-size: 13px;
  color: var(--ink-soft, #4a4f46);
}

.phub-controls__right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.phub-search {
  min-width: 240px;
  padding: 11px 14px;
  border: 1px solid rgba(232, 180, 168, 0.85);
  border-radius: 10px !important;
  background: #FFFDF7;
  color: var(--ink, #20231F);
  font: inherit;
  font-size: 14px;
}

.phub-search:focus-visible,
.phub-all-btn:focus-visible,
.phub-cat__btn:focus-visible,
.phub-call:focus-visible {
  outline: 3px solid #d4927f;
  outline-offset: 2px;
}

.phub-all-btn {
  padding: 11px 18px;
  border: 0;
  border-radius: 10px !important;
  background: var(--emerald-deep, #08362a);
  color: #F6EFDD;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.phub-all-btn:hover {
  background: #125C46;
}

.phub-none {
  text-align: center;
  color: var(--ink-soft, #4a4f46);
  margin: 20px 0;
}

/* ---- Category accordion ---- */

.phub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.phub-cat {
  background: #FFFDF7;
  border: 1px solid rgba(232, 180, 168, 0.85);
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  scroll-margin-top: 90px;
}

.phub-cat__btn {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 0;
  background: #E8B4A8;
  color: var(--emerald-deep, #08362a);
  text-align: left;
  cursor: pointer;
  transition: background 0.25s ease;
}

.phub-cat__btn:hover {
  background: #e2a597;
}

.phub-cat__index {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px !important;
  background: rgba(255, 253, 247, 0.7);
  font-weight: 800;
  font-size: 15px;
}

.phub-cat__label {
  flex: 1;
  font-family: var(--font-display, Georgia, serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.phub-cat__label small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body, Inter, Arial, sans-serif);
  font-size: 12px;
  font-weight: 500;
}

.phub-cat__toggle {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(8, 54, 42, 0.2);
  border-radius: 50% !important;
  background: rgba(255, 253, 247, 0.6);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.phub-cat.is-open .phub-cat__toggle {
  transform: rotate(45deg);
  background: var(--emerald-deep, #08362a);
  color: #F6EFDD;
}

/* Smooth open/close without measuring heights. */
.phub-cat__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.phub-cat.is-open .phub-cat__panel {
  grid-template-rows: 1fr;
}

.phub-cat__inner {
  min-height: 0;
  overflow: hidden;
}

.phub-services {
  padding: 12px;
}

/* ---- Services and contacts ---- */

.phub-svc {
  margin-bottom: 10px;
  padding: 13px 12px;
  background: #f8fbf7;
  border: 1px solid #dae8dc;
  border-left: 4px solid var(--emerald-deep, #08362a);
  border-radius: 10px !important;
}

.phub-svc:last-child {
  margin-bottom: 0;
}

.phub-svc__head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.phub-svc__num {
  padding: 5px 7px;
  border-radius: 5px !important;
  background: #e5eee7;
  color: var(--emerald-deep, #08362a);
  font-size: 11px;
  font-weight: 800;
}

.phub-svc__title {
  flex: 1;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--emerald-deep, #08362a);
}

.phub-svc__status {
  padding: 5px 9px;
  border-radius: 99px !important;
  background: #e3efe6;
  color: var(--emerald-deep, #08362a);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.phub-svc__status.is-pending {
  background: #f3e7e2;
  color: #9a6a5d;
}

.phub-group {
  margin: 14px 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #5f7867;
}

.phub-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0;
  padding: 10px 11px;
  background: #FFFDF7;
  border: 1px solid #e0e7dd;
  border-radius: 8px !important;
}

.phub-contact__person {
  min-width: 0;
}

.phub-contact__person b {
  display: block;
  font-size: 13.5px;
  color: var(--emerald-deep, #08362a);
}

.phub-contact__person span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  letter-spacing: 0.45px;
  color: var(--ink-soft, #4a4f46);
}

.phub-call {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 7px !important;
  background: var(--emerald-deep, #08362a);
  color: #F6EFDD !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s ease;
}

.phub-call:hover {
  background: #125C46;
}

.phub-invalid {
  font-size: 11px;
  font-weight: 700;
  color: #976053;
}

.phub-empty {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft, #4a4f46);
}

@media (max-width: 820px) {
  .phub-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .phub-controls__right,
  .phub-search {
    width: 100%;
    min-width: 0;
  }

  .phub-search {
    flex: 1;
  }

  .phub-cat__btn {
    padding: 14px 12px;
  }

  .phub-cat__label {
    font-size: 16px;
  }

  .phub-contact {
    flex-wrap: wrap;
  }

  .phub-call {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phub-cat__panel,
  .phub-cat__toggle {
    transition: none;
  }
}

/* ---- Dark mode ---- */

html[data-theme="dark"] :is(.phub-cat, .phub-search) {
  background: var(--dk-surface);
  border-color: var(--dk-line);
  color: var(--dk-text);
}

html[data-theme="dark"] .phub-controls__title {
  color: var(--dk-head);
}

html[data-theme="dark"] .phub-cat__btn {
  background: var(--dk-accent);
  color: var(--dk-on-accent);
}

html[data-theme="dark"] .phub-svc {
  background: var(--dk-surface-2);
  border-color: var(--dk-line-soft);
  border-left-color: var(--dk-accent);
}

html[data-theme="dark"] :is(.phub-svc__title, .phub-contact__person b) {
  color: var(--dk-head);
}

html[data-theme="dark"] .phub-svc__num,
html[data-theme="dark"] .phub-svc__status {
  background: rgba(232, 180, 168, 0.16);
  color: var(--dk-accent);
}

html[data-theme="dark"] .phub-contact {
  background: var(--dk-surface);
  border-color: var(--dk-line-soft);
}

html[data-theme="dark"] .phub-group {
  color: var(--dk-text-soft);
}

html[data-theme="dark"] .phub-call,
html[data-theme="dark"] .phub-all-btn {
  background: var(--dk-accent);
  color: var(--dk-on-accent) !important;
}
