/* Portland Home Guide brand layer.
 * Loaded last only when SITE_BRAND=portland-home-guide.
 * The core site CSS remains shared with steventranrealestate.com.
 */

:root {
  --brand-primary: #5c7cb9;
  --brand-primary-dark: #49659a;
  --brand-primary-soft: #eef2fa;
  --brand-primary-muted: #d0b6e3;
  --phg-teal: #62cac9;
  --phg-blue: #6992e1;
  --phg-lavender: #d0b6e3;
  --phg-coral: #fa687f;
  --phg-ink: #27313d;
  --phg-dark: #1d2a3a;
  --background-soft: #f7f9fc;
}

body[data-site-brand='portland-home-guide'] {
  --brand-primary: #5c7cb9;
  --brand-primary-dark: #49659a;
  --brand-primary-soft: #eef2fa;
  --brand-primary-muted: #d0b6e3;
}

/* Temporary text wordmark until a final Portland Home Guide logo is added. */
body[data-site-brand='portland-home-guide'] .site-brand-wordmark,
body[data-site-brand='portland-home-guide'] .footer-brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--phg-ink);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

body[data-site-brand='portland-home-guide'] .site-brand-wordmark {
  font-size: clamp(18px, 2vw, 24px);
}

body[data-site-brand='portland-home-guide'] .footer-brand-wordmark {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 24px;
}

body[data-site-brand='portland-home-guide'] .site-brand-wordmark strong,
body[data-site-brand='portland-home-guide'] .footer-brand-wordmark strong {
  color: var(--phg-teal);
  font-weight: 700;
}

body[data-site-brand='portland-home-guide'] .site-brand-wordmark span,
body[data-site-brand='portland-home-guide'] .footer-brand-wordmark span {
  color: inherit;
}

/* Palette application. Keep neutrals for readability and use the PDX-carpet colors as accents. */
body[data-site-brand='portland-home-guide'] .hero-eyebrow,
body[data-site-brand='portland-home-guide'] .eyebrow-light {
  color: var(--phg-teal);
}

body[data-site-brand='portland-home-guide'] .home-hero h1 span,
body[data-site-brand='portland-home-guide'] .city-hero h1 span,
body[data-site-brand='portland-home-guide'] .service-hero h1 span {
  color: var(--phg-teal);
}

body[data-site-brand='portland-home-guide'] .home-hero-overlay,
body[data-site-brand='portland-home-guide'] .city-hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(23, 34, 51, 0.88) 0%,
    rgba(37, 55, 81, 0.69) 46%,
    rgba(92, 124, 185, 0.28) 78%,
    rgba(98, 202, 201, 0.12) 100%
  );
}

body[data-site-brand='portland-home-guide'] .service-hero {
  background-color: #1d2a3a;
}

body[data-site-brand='portland-home-guide'] .site-button-primary,
body[data-site-brand='portland-home-guide'] .hero-primary-button,
body[data-site-brand='portland-home-guide'] .desktop-navigation .nav-cta,
body[data-site-brand='portland-home-guide'] .mobile-nav-cta {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

body[data-site-brand='portland-home-guide'] .site-button-primary:hover,
body[data-site-brand='portland-home-guide'] .hero-primary-button:hover,
body[data-site-brand='portland-home-guide'] .desktop-navigation .nav-cta:hover,
body[data-site-brand='portland-home-guide'] .mobile-nav-cta:hover {
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
}

body[data-site-brand='portland-home-guide'] .service-card-icon,
body[data-site-brand='portland-home-guide'] .home-service-path-card .home-service-path-icon,
body[data-site-brand='portland-home-guide'] .seller-contact-points i,
body[data-site-brand='portland-home-guide'] .dpa-local-icon,
body[data-site-brand='portland-home-guide'] .investor-icon {
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

body[data-site-brand='portland-home-guide'] .update-note,
body[data-site-brand='portland-home-guide'] .city-new-construction-callout,
body[data-site-brand='portland-home-guide'] .seller-prep-note,
body[data-site-brand='portland-home-guide'] .dpa-split-panel,
body[data-site-brand='portland-home-guide'] .investor-vancouver-grid {
  background: #f1f5fb;
  border-color: #d8e1f1;
}

body[data-site-brand='portland-home-guide'] .update-note,
body[data-site-brand='portland-home-guide'] .investor-jurisdiction-note {
  border-left-color: var(--phg-teal);
}

body[data-site-brand='portland-home-guide'] .service-faq summary::after,
body[data-site-brand='portland-home-guide'] .seller-checklist li::before,
body[data-site-brand='portland-home-guide'] .dpa-program-type,
body[data-site-brand='portland-home-guide'] .dpa-source-link,
body[data-site-brand='portland-home-guide'] .dpa-local-card a,
body[data-site-brand='portland-home-guide'] .dpa-washington-options a,
body[data-site-brand='portland-home-guide'] .investor-state-heading span,
body[data-site-brand='portland-home-guide'] .investor-source-links a,
body[data-site-brand='portland-home-guide'] .investor-inline-link,
body[data-site-brand='portland-home-guide'] .investor-rule-stack a,
body[data-site-brand='portland-home-guide'] .investor-str-location,
body[data-site-brand='portland-home-guide'] .investor-str-grid a,
body[data-site-brand='portland-home-guide'] .home-service-path-card .text-link,
body[data-site-brand='portland-home-guide'] .new-construction-community-details a {
  color: var(--brand-primary);
}

body[data-site-brand='portland-home-guide'] .market-report-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(98, 202, 201, 0.2), transparent 32%),
    linear-gradient(145deg, #f7f9fd 0%, #ffffff 58%, #eef2fa 100%);
}

body[data-site-brand='portland-home-guide'] .market-report-hero::after {
  border-color: rgba(92, 124, 185, 0.08);
}

body[data-site-brand='portland-home-guide'] .market-report-cta,
body[data-site-brand='portland-home-guide'] .service-cta-box {
  background: linear-gradient(135deg, #405b8d 0%, #5c7cb9 64%, #6992e1 100%);
}

/* Coral is intentionally limited to high-attention micro accents. */
body[data-site-brand='portland-home-guide'] .phg-accent,
body[data-site-brand='portland-home-guide'] .brand-resource-card:nth-child(4) .service-card-icon {
  color: var(--phg-coral);
}

/* Portland Home Guide About page */
body[data-site-brand='portland-home-guide'] .phg-about-hero {
  padding-bottom: 88px;
}

body[data-site-brand='portland-home-guide'] .brand-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 42px;
  align-items: start;
}

body[data-site-brand='portland-home-guide'] .brand-about-panel {
  padding: 30px;
  border: 1px solid #dce3ef;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

body[data-site-brand='portland-home-guide'] .brand-about-panel h3 {
  margin: 0 0 10px;
  color: var(--phg-ink);
  font-size: 22px;
}

body[data-site-brand='portland-home-guide'] .brand-about-panel p:last-child {
  margin-bottom: 0;
}

body[data-site-brand='portland-home-guide'] .brand-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body[data-site-brand='portland-home-guide'] .brand-resource-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

body[data-site-brand='portland-home-guide'] .brand-resource-card h3 {
  margin: 0 0 9px;
  color: var(--phg-ink);
  font-size: 20px;
}

body[data-site-brand='portland-home-guide'] .brand-resource-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

body[data-site-brand='portland-home-guide'] .brand-resource-card .service-card-icon {
  margin-bottom: 16px;
}

body[data-site-brand='portland-home-guide'] .brand-founder-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--brand-primary);
  font-weight: 700;
}

@media (max-width: 991px) {
  body[data-site-brand='portland-home-guide'] .brand-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-site-brand='portland-home-guide'] .brand-about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  body[data-site-brand='portland-home-guide'] .site-brand-wordmark {
    gap: 5px;
    font-size: 18px;
  }

  body[data-site-brand='portland-home-guide'] .brand-resource-grid {
    grid-template-columns: 1fr;
  }
}

/* Normalize older hard-coded service-page accent colors into the PHG palette. */
body[data-site-brand='portland-home-guide'] .builder-incentive-builder,
body[data-site-brand='portland-home-guide'] .community-incentive-label,
body[data-site-brand='portland-home-guide'] .community-details-accordion summary,
body[data-site-brand='portland-home-guide'] .seller-form-kicker,
body[data-site-brand='portland-home-guide'] .dpa-video-copy span,
body[data-site-brand='portland-home-guide'] .dpa-fact-list li::before,
body[data-site-brand='portland-home-guide'] .investor-vancouver-grid aside strong {
  color: var(--brand-primary);
}

body[data-site-brand='portland-home-guide'] .builder-incentive-card,
body[data-site-brand='portland-home-guide'] .community-incentive {
  border-color: #d8e1f1;
  background: #f1f5fb;
}

body[data-site-brand='portland-home-guide'] .community-incentive {
  border-left-color: var(--phg-teal);
}

body[data-site-brand='portland-home-guide'] .dpa-program-location,
body[data-site-brand='portland-home-guide'] .investor-state-heading strong,
body[data-site-brand='portland-home-guide'] .community-detail-chip {
  background: var(--brand-primary-soft);
  color: #52647d;
}

body[data-site-brand='portland-home-guide'] .marketing-card::after {
  background: var(--brand-primary-soft);
}

body[data-site-brand='portland-home-guide'] .site-form.seller-form input:focus,
body[data-site-brand='portland-home-guide'] .site-form.seller-form select:focus,
body[data-site-brand='portland-home-guide'] .site-form.seller-form textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(92, 124, 185, 0.15);
}

body[data-site-brand='portland-home-guide'] .btn-primary,
body[data-site-brand='portland-home-guide'] .bg-primary {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
}

body[data-site-brand='portland-home-guide'] .text-primary,
body[data-site-brand='portland-home-guide'] a.text-primary {
  color: var(--brand-primary) !important;
}

/* PORTLAND HOME GUIDE LOGO START */
body[data-site-brand='portland-home-guide'] .site-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

body[data-site-brand='portland-home-guide'] .site-brand-logo {
  display: block;
  width: auto;
  height: 48px;
  max-width: min(290px, 42vw);
  object-fit: contain;
}

body[data-site-brand='portland-home-guide'] .footer-brand-logo {
  display: block;
  width: min(300px, 100%);
  max-width: 100%;
  height: auto;
  margin: 0 auto 16px;
  object-fit: contain;
}

@media (max-width: 991px) {
  body[data-site-brand='portland-home-guide'] .site-brand-logo {
    height: 42px;
    max-width: min(250px, 58vw);
  }
}

@media (max-width: 575px) {
  body[data-site-brand='portland-home-guide'] .site-brand-logo {
    height: 36px;
    max-width: min(215px, 62vw);
  }
}
/* PORTLAND HOME GUIDE LOGO END */
