/* ==========================================================================
   City Hub (Location Page v3) — page-templates/template-city-hub.php
   Uses the theme's brand variables from functions.php (--navy, --gold …).
   ========================================================================== */

.hub { --hub-line: #E4DFD3; --hub-radius: 10px; color: var(--text-dark); }
.hub [id] { scroll-margin-top: 110px; }
.hub a:focus-visible,
.hub summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ── Buttons ─────────────────────────────────────────────── */
.hub-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 4px; border: 2px solid transparent;
  font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700;
  text-decoration: none; line-height: 1.2; transition: background-color .2s, color .2s, border-color .2s;
}
.hub-btn--call,
.hub-btn--gold  { background: var(--gold); color: var(--navy); }
.hub-btn--call:hover,
.hub-btn--gold:hover { background: var(--gold-light); }
.hub-btn--ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.hub-btn--ghost:hover { border-color: var(--white); }
.hub-btn--navy  { background: var(--navy); color: var(--white); }
.hub-btn--navy:hover { background: var(--navy-light); }
.hub-only-mobile { display: none; }

/* ── Shared headings ─────────────────────────────────────── */
.hub-h2 {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: clamp(40px, 5vw, 60px); line-height: .95; letter-spacing: .5px;
  color: var(--navy); margin: 0 0 14px;
}
.hub-h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin: 32px 0 12px; }
.hub-section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.hub-section-head p { font-size: 17px; line-height: 1.6; color: var(--text-mid); margin: 0; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hub-hero { background: var(--navy); color: var(--white); padding: 40px 0 72px; }
.hub-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 410px;
  gap: 56px; align-items: start;
}

.hub-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; margin-bottom: 28px; color: rgba(255,255,255,.55); }
.hub-crumbs a { color: rgba(255,255,255,.75); text-decoration: none; }
.hub-crumbs a:hover { color: var(--white); text-decoration: underline; }
.hub-crumbs [aria-current] { color: var(--gold-light); }

.hub-h1 {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: clamp(64px, 9vw, 124px); line-height: .86; letter-spacing: 1px;
  color: var(--white); margin: 0 0 22px;
}
.hub-lead { font-size: 19px; line-height: 1.6; color: rgba(255,255,255,.84); max-width: 34em; margin: 0 0 28px; }

.hub-rating {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
  color: var(--white); text-decoration: none; margin-bottom: 28px;
}
.hub-rating-num { font-family: 'Bebas Neue', sans-serif; font-size: 44px; line-height: 1; color: var(--gold-light); }
.hub-rating-stars { display: inline-flex; gap: 2px; }
.hub-rating-stars svg { fill: var(--gold); stroke: var(--gold); }
.hub-rating-text { font-size: 15px; color: rgba(255,255,255,.8); border-bottom: 1px solid rgba(255,255,255,.3); }
.hub-rating:hover .hub-rating-text { color: var(--white); border-color: var(--white); }

.hub-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hub-actions--center { justify-content: center; margin-bottom: 0; }
.hub-btn--call { font-size: 18px; padding: 17px 30px; }

/* Office details strip */
.hub-office {
  display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 28px;
  margin: 0; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18);
}
.hub-office-item { margin: 0; }
.hub-office dt {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--gold-light); margin-bottom: 8px;
}
.hub-office dd { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.86); }
.hub-office dd a { color: var(--white); }
.hub-office-phone { font-size: 20px; font-weight: 700; text-decoration: none; }
.hub-hours-row { display: flex; justify-content: space-between; gap: 12px; max-width: 220px; }
.hub-open {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 8px;
  font-size: 13px; font-weight: 700;
}
.hub-open::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hub-open.is-open   { color: #7FD99A; }
.hub-open.is-closed { color: rgba(255,255,255,.6); }

/* Form: reuses the theme's .quote-card */
.hub-hero-form .quote-card { border-radius: 6px; overflow: hidden; }

/* ==========================================================================
   PHOTO REVIEWS
   ========================================================================== */
.hub-reviews { background: var(--off-white); padding: 88px 0; }
.rv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.rv-card {
  display: flex; flex-direction: column; margin: 0;
  background: var(--white); border: 1px solid var(--hub-line);
  border-radius: var(--hub-radius); overflow: hidden;
}
.rv-media { position: relative; aspect-ratio: 4 / 3; background: var(--gray-bg); }
.rv-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rv-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: var(--navy);
  font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
}
.rv-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 22px; }
.rv-stars { display: flex; gap: 3px; margin-bottom: 14px; }
.rv-stars svg { fill: var(--gold); stroke: var(--gold); }
.rv-quote { margin: 0 0 22px; }
.rv-quote p { margin: 0; font-size: 15.5px; line-height: 1.65; font-style: italic; color: var(--text-dark); }
.rv-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.rv-avatar {
  flex: 0 0 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-pale); color: var(--gold); font-weight: 700; font-size: 15px;
}
.rv-author strong { display: block; font-size: 14.5px; color: var(--navy); }
.rv-author small  { display: block; font-size: 13px; color: var(--text-light); }

/* Text-only review: tinted, a little larger */
.rv-card--text { background: var(--gold-pale); border-color: #EFD9AE; }
.rv-card--text .rv-body { padding: 32px 28px 26px; }
.rv-card--text .rv-quote p { font-size: 19px; line-height: 1.6; }
.rv-card--text .rv-avatar { background: var(--white); }

.hub-reviews-more { text-align: center; margin: 36px 0 0; }
.hub-reviews-more a { font-weight: 700; color: var(--navy); }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.hub-services { background: var(--white); padding: 88px 0 72px; }
.hub-svc-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px;
}
.hub-svc-list li { border-top: 1px solid var(--hub-line); }
.hub-svc-list li:nth-last-child(-n+2) { border-bottom: 1px solid var(--hub-line); }
.hub-svc {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 20px; gap: 18px; align-items: center;
  padding: 22px 4px; text-decoration: none; color: inherit;
}
.hub-svc-icon {
  width: 48px; height: 48px; border-radius: 8px; display: grid; place-items: center;
  background: var(--gold-pale); color: var(--gold);
}
.hub-svc-title { display: block; font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.hub-svc-desc  { display: block; font-size: 14.5px; line-height: 1.5; color: var(--text-mid); }
.hub-svc-arrow { color: var(--text-light); transition: transform .2s, color .2s; }
.hub-svc:hover .hub-svc-title { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.hub-svc:hover .hub-svc-arrow { color: var(--gold); transform: translateX(3px); }

/* ==========================================================================
   LOCAL CONTENT (editor content + sticky contact card)
   ========================================================================== */
.hub-body { background: var(--white); padding: 24px 0 96px; }
.hub-body-grid {
  display: grid; grid-template-columns: minmax(0, 720px) 300px;
  gap: 72px; justify-content: space-between; align-items: start;
  padding-top: 72px;
}

.hub-prose { font-size: 17px; line-height: 1.75; color: var(--text-mid); }
.hub-prose p { margin: 0 0 18px; }
.hub-prose a { color: var(--navy); font-weight: 700; }
.hub-prose h2 {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: clamp(36px, 4vw, 48px); line-height: 1; letter-spacing: .5px;
  color: var(--navy); margin: 0 0 18px;
}
.hub-prose h3 { font-size: 19px; line-height: 1.35; font-weight: 700; color: var(--navy); margin: 0 0 8px; }
.hub-block + .hub-block { margin-top: 72px; }

/* "What our movers plan for": left-ruled notes */
.hub-situations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 36px; margin-top: 32px; }
.hub-situation { border-left: 3px solid var(--gold); padding: 2px 0 2px 20px; }
.hub-situation p,
.hub-point p { font-size: 16px; line-height: 1.7; margin: 0; }

/* "Why us": top-ruled points */
.hub-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 36px; margin-top: 28px; }
.hub-point { border-top: 2px solid var(--navy); padding-top: 18px; }

/* FAQ */
.hub-faq { border-top: 1px solid var(--hub-line); margin-top: 8px; }
.hub-faq details { border-bottom: 1px solid var(--hub-line); }
.hub-faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 20px 44px 20px 0; font-size: 17.5px; font-weight: 700; color: var(--navy); line-height: 1.4;
}
.hub-faq summary::-webkit-details-marker { display: none; }
.hub-faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.hub-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.hub-faq details p { margin: 0 0 22px; max-width: 62ch; }

.hub-aside { position: sticky; top: 110px; }
.hub-aside-card { background: var(--navy); color: var(--white); padding: 30px 28px; border-radius: var(--hub-radius); }
.hub-aside-title { font-size: 15px; font-weight: 700; color: var(--gold-light); margin: 0 0 6px; }
.hub-aside-phone {
  display: block; font-family: 'Bebas Neue', sans-serif; font-size: 42px; line-height: 1.05;
  color: var(--white); text-decoration: none; margin-bottom: 10px;
}
.hub-aside-note { font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.78); margin: 0 0 22px; }
.hub-aside .hub-btn { width: 100%; }

/* ==========================================================================
   OFFICE + MAP + SERVICE AREA
   ========================================================================== */
.hub-area { background: var(--off-white); padding: 88px 0; }
.hub-area-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: stretch; }
.hub-map { min-height: 440px; border-radius: var(--hub-radius); overflow: hidden; background: var(--gray-bg); }
.hub-map iframe { display: block; width: 100%; height: 100%; min-height: 440px; border: 0; }
.hub-area-address { font-style: normal; font-size: 16.5px; line-height: 1.7; color: var(--text-mid); margin: 0 0 20px; }
.hub-area-address strong { color: var(--navy); }
.hub-area-address a { color: var(--navy); font-weight: 700; }

.hub-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hub-chips li {
  font-size: 14px; color: var(--navy); background: var(--white);
  border: 1px solid var(--hub-line); border-radius: 999px; padding: 6px 14px;
}
.hub-chips--quiet li { background: transparent; color: var(--text-mid); }

/* ==========================================================================
   CLOSING CTA
   ========================================================================== */
.hub-cta { background: var(--navy); padding: 88px 0; text-align: center; }
.hub-cta-title {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: clamp(42px, 5.5vw, 68px); line-height: .95; color: var(--white); margin: 0 0 14px;
}
.hub-cta p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.8); max-width: 34em; margin: 0 auto 30px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .hub-hero-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; }
  .hub-office { grid-template-columns: 1fr 1fr; }
  .hub-body-grid { grid-template-columns: minmax(0, 1fr); }
  .hub-aside { display: none; }
}

@media (max-width: 900px) {
  .hub-hero { padding: 28px 0 56px; }
  .hub-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hub-only-mobile { display: inline-flex; }
  .hub-actions .hub-btn { flex: 1 1 220px; }
  .rv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-svc-list { grid-template-columns: minmax(0, 1fr); }
  .hub-svc-list li:nth-last-child(-n+2) { border-bottom: 0; }
  .hub-svc-list li:last-child { border-bottom: 1px solid var(--hub-line); }
  .hub-area-grid { grid-template-columns: minmax(0, 1fr); }
  .hub-map, .hub-map iframe { min-height: 320px; }
}

@media (max-width: 640px) {
  .hub-lead { font-size: 17px; }
  .hub-office { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hub-reviews, .hub-services, .hub-area, .hub-cta { padding: 64px 0; }
  .hub-body-grid { padding-top: 56px; }
  .rv-grid { grid-template-columns: minmax(0, 1fr); }
  .hub-situations, .hub-points { grid-template-columns: minmax(0, 1fr); }
  .hub-section-head { text-align: left; margin-bottom: 32px; }
}


/* ==========================================================================
   CITY SERVICE PAGES (template-city-service.php)
   ========================================================================== */
.hub-reviews--compact { padding: 72px 0; }

/* Numbered process — only for content that really is a sequence */
.hub-steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; }
.hub-steps li {
  counter-increment: step; position: relative;
  padding: 0 0 24px 56px; margin: 0;
}
.hub-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--white); font-weight: 700; font-size: 15px;
}
.hub-steps li:not(:last-child)::after {
  content: ''; position: absolute; left: 17px; top: 42px; bottom: 6px; width: 2px; background: var(--hub-line);
}
.hub-steps h3 { margin-top: 6px; }
.hub-steps p { font-size: 16px; line-height: 1.7; margin: 0; }

/* Plain checklist inside the prose */
.hub-checks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.hub-checks li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.55; }
.hub-checks li::before {
  content: ''; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg);
}

/* Customer quote pulled into the prose */
.hub-pull {
  margin: 28px 0 0; padding: 24px 28px; background: var(--gold-pale);
  border-radius: var(--hub-radius);
}
.hub-pull p { font-size: 18px; line-height: 1.6; font-style: italic; color: var(--text-dark); margin: 0 0 10px; }
.hub-pull cite { font-style: normal; font-size: 14px; font-weight: 700; color: var(--navy); }

/* Other services in this city */
.hub-related { background: var(--white); padding: 0 0 88px; }
.hub-related-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px;
  border-top: 1px solid var(--hub-line); padding-top: 64px; margin-bottom: 28px;
}
.hub-related-head .hub-h2 { margin: 0; font-size: clamp(34px, 4vw, 46px); }
.hub-related-hub { font-weight: 700; color: var(--navy); }
.hub-related-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px;
}
.hub-related-list a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--hub-line); border-radius: 8px;
  font-weight: 700; font-size: 15.5px; color: var(--navy); text-decoration: none;
  transition: border-color .2s;
}
.hub-related-list a:hover { border-color: var(--gold); }
.hub-related-list .hub-svc-icon { width: 40px; height: 40px; flex: 0 0 40px; }

.hub-area-hours { font-size: 15.5px; line-height: 1.7; color: var(--text-mid); margin: 0 0 22px; }
.hub-area-hours span { display: block; }

@media (max-width: 640px) {
  .hub-checks { grid-template-columns: minmax(0, 1fr); }
  .hub-related { padding-bottom: 64px; }
  .hub-related-head { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .hub * { transition: none !important; }
}

.hub-prose .hub-after-list { margin-top: 20px; }
.hub--service .hub-h1 { font-size: clamp(54px, 7vw, 96px); line-height: .88; }
