/*
Theme Name: Pete Black Realtor Complete
Theme URI: https://therealtorpeteblack.ca/
Author: Pete Black
Author URI: https://therealtorpeteblack.ca/
Description: A complete custom WordPress theme for Pete Black, Edmonton Realtor.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pete-black-realtor-complete
*/

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500;600&display=swap");

:root {
  --pb-navy: #1a2d4a;
  --pb-navy-light: #233a5e;
  --pb-gold: #b8882a;
  --pb-gold-light: #d4a84b;
  --pb-cream: #f7f4ef;
  --pb-white: #ffffff;
  --pb-text: #1a2d4a;
  --pb-muted: #5c6b7e;
  --pb-border: #e2ddd4;
  --navy: #1a2d4a;
  --navy-light: #233a5e;
  --gold: #b8882a;
  --gold-light: #d4a84b;
  --cream: #f7f4ef;
  --white: #ffffff;
  --text: #1a2d4a;
  --muted: #5c6b7e;
  --border: #e2ddd4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--pb-text);
  background: var(--pb-white);
  font-size: 16px;
  line-height: 1.6;
}

body.admin-bar .pb-site-header {
  top: 32px;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pb-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
  padding: 0 8%;
  background: rgba(26, 45, 74, 0.98);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.pb-logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--pb-white);
  text-decoration: none;
}

.pb-logo span,
.pb-footer span {
  color: var(--pb-gold-light);
}

.pb-main-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pb-main-menu a,
.pb-header-cta {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.pb-main-menu a {
  color: rgba(255, 255, 255, 0.75);
}

.pb-header-cta {
  background: var(--pb-gold-light);
  color: var(--pb-navy);
  padding: 10px 22px;
  font-weight: 600;
}

.pb-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  background: var(--pb-navy);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.pb-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1580587771525-78b9dba3b914?w=1600&q=80");
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}

.pb-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 45, 74, 0.94) 45%, rgba(26, 45, 74, 0.62));
}

.pb-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 120px 8% 90px;
}

.pb-eyebrow,
.pb-label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pb-gold);
}

.pb-hero .pb-eyebrow {
  color: var(--pb-gold-light);
}

.pb-hero h1,
.pb-section h2,
.pb-neighbourhood h2,
.pb-page h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 20px;
}

.pb-hero h1 {
  max-width: 620px;
  color: var(--pb-white);
  font-size: clamp(44px, 7vw, 78px);
}

.pb-hero h1 em {
  color: var(--pb-gold-light);
}

.pb-hero p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  font-weight: 300;
  margin: 0 0 38px;
}

.pb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.pb-btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.pb-btn-gold {
  background: var(--pb-gold-light);
  color: var(--pb-navy);
}

.pb-btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--pb-white);
}

.pb-hero-photo {
  position: absolute;
  z-index: 2;
  right: 7%;
  bottom: 0;
  width: 340px;
  height: 480px;
}

.pb-photo-placeholder,
.pb-about-photo,
.pb-listing-image,
.pb-blog-image {
  background: #e8edf3;
  color: #8391a4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.pb-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #2a3f5e, #1a2d4a);
  color: rgba(255, 255, 255, 0.38);
}

.pb-hero-photo img,
.pb-about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pb-hero-photo img {
  object-position: center top;
}

.pb-about-photo img {
  object-position: center center;
}

.pb-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--pb-navy-light);
}

.pb-stats div {
  padding: 34px 20px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.pb-stats strong {
  display: block;
  color: var(--pb-gold-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
}

.pb-stats span {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pb-section {
  padding: 90px 8%;
  background: var(--pb-white);
}

.pb-cream {
  background: var(--pb-cream);
}

.pb-section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.pb-section h2,
.pb-neighbourhood h2,
.pb-page h1 {
  color: var(--pb-navy);
  font-size: clamp(34px, 4.5vw, 52px);
}

.pb-section p,
.pb-neighbourhood p,
.pb-page p {
  color: var(--pb-muted);
  font-weight: 300;
}

.pb-card-grid,
.pb-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pb-listing-card,
.pb-blog-card,
.pb-testimonial-grid blockquote,
.pb-form-box,
.pb-process-grid div {
  background: var(--pb-white);
  border: 1px solid var(--pb-border);
}

.pb-listing-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.pb-listing-link:hover .pb-card-link-text {
  border-color: var(--pb-navy);
}

.pb-listing-image {
  height: 230px;
  overflow: hidden;
}

.pb-blog-image {
  height: 180px;
}

.pb-listing-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pb-card-body {
  padding: 24px;
}

.pb-badge {
  display: inline-block;
  background: var(--pb-gold-light);
  color: var(--pb-navy);
  padding: 5px 12px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pb-card-body h3 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  color: var(--pb-navy);
}

.pb-listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--pb-border);
  color: var(--pb-muted);
  font-size: 13px;
}

.pb-card-link-text {
  display: inline-block;
  margin-top: 18px;
  color: var(--pb-navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--pb-gold);
}

.pb-listings-cta {
  max-width: 760px;
  padding: 42px;
  background: var(--pb-white);
  border: 1px solid var(--pb-border);
}

.pb-listings-cta h3 {
  margin: 0 0 12px;
  color: var(--pb-navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  line-height: 1.15;
}

.pb-listings-cta p {
  max-width: 560px;
}

.pb-btn-navy {
  background: var(--pb-navy);
  color: var(--pb-white);
}

.pb-sold-section {
  background: var(--pb-white);
}

.pb-sold-card {
  position: relative;
}

.pb-sold-card .pb-listing-image img {
  filter: saturate(0.86) contrast(0.96);
}

.pb-sold-badge {
  background: var(--pb-navy);
  color: var(--pb-white);
}

.pb-sold-empty {
  background: var(--pb-cream);
}

.pb-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 76px;
  align-items: center;
}

.pb-about-photo {
  min-height: 560px;
}

.pb-highlight-grid,
.pb-process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 34px;
}

.pb-highlight-grid div {
  background: var(--pb-cream);
  border-left: 3px solid var(--pb-gold-light);
  padding: 20px;
}

.pb-highlight-grid h4,
.pb-process-grid h3 {
  margin: 0 0 8px;
  color: var(--pb-navy);
}

.pb-neighbourhood {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--pb-navy);
}

.pb-neighbourhood-image {
  min-height: 500px;
  background-image: url("assets/images/summerside-lake.jpg");
  background-size: cover;
  background-position: center 58%;
  opacity: 0.78;
}

.pb-neighbourhood-content {
  padding: 82px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pb-neighbourhood h2 {
  color: var(--pb-white);
}

.pb-neighbourhood p {
  color: rgba(255, 255, 255, 0.7);
}

.pb-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 26px 0 36px;
}

.pb-feature-grid span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.pb-testimonial-grid blockquote {
  margin: 0;
  padding: 28px;
}

.pb-testimonial-grid cite {
  display: block;
  margin-top: 18px;
  color: var(--pb-gold);
  font-style: normal;
  font-weight: 600;
}

.pb-reviews-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 34px;
  align-items: stretch;
}

.pb-review-score {
  padding: 36px;
  background: var(--pb-navy);
  color: var(--pb-white);
}

.pb-review-score .pb-label {
  color: var(--pb-gold-light);
}

.pb-review-score h2 {
  color: var(--pb-white);
}

.pb-review-score p {
  color: rgba(255, 255, 255, 0.74);
}

.pb-rating {
  margin-bottom: 14px;
  color: var(--pb-gold-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(64px, 8vw, 96px);
  font-weight: 600;
  line-height: 0.92;
}

.pb-rating span {
  font-size: 0.36em;
}

.pb-review-themes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pb-review-themes article {
  padding: 28px;
  background: var(--pb-white);
  border: 1px solid var(--pb-border);
}

.pb-review-themes h3 {
  margin: 0 0 10px;
  color: var(--pb-navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  line-height: 1.18;
}

.pb-review-themes p {
  margin: 0;
}

.pb-split-cta {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.pb-process-grid {
  margin-top: 0;
}

.pb-process-grid div {
  padding: 28px;
}

.pb-service-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 48px;
  align-items: start;
}

.pb-service-intro {
  position: sticky;
  top: 104px;
}

.pb-service-intro .pb-btn {
  margin-top: 18px;
}

.pb-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pb-step-grid article {
  min-height: 220px;
  padding: 26px;
  background: var(--pb-white);
  border: 1px solid var(--pb-border);
}

.pb-step-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--pb-gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.pb-step-grid h3 {
  margin: 0 0 10px;
  color: var(--pb-navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  line-height: 1.18;
}

.pb-step-grid p {
  margin: 0;
}

.pb-contact-list {
  margin-top: 30px;
}

.pb-contact-list p {
  margin: 0 0 12px;
}

.pb-contact-list a {
  color: var(--pb-navy);
  text-decoration: none;
  border-bottom: 1px solid var(--pb-gold);
}

.pb-form-box {
  padding: 34px;
}

.pb-direct-contact {
  padding: 36px;
  background: var(--pb-navy);
  color: var(--pb-white);
}

.pb-direct-contact h3 {
  margin: 0 0 12px;
  color: var(--pb-white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  line-height: 1.15;
}

.pb-direct-contact p {
  color: rgba(255, 255, 255, 0.74);
}

.pb-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

.pb-contact-card {
  display: grid;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.pb-contact-card p {
  margin: 0;
}

.pb-contact-card strong {
  color: var(--pb-gold-light);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pb-contact-card a {
  color: var(--pb-white);
  text-decoration: none;
}

.pb-contact-form-panel {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.pb-contact-form-panel h4 {
  margin: 0 0 18px;
  color: var(--pb-white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  line-height: 1.15;
}

.pb-contact-form-panel form {
  display: grid;
  gap: 14px;
}

.pb-contact-form-panel label,
.pb-contact-form-panel .wpforms-field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--pb-gold-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pb-contact-form-panel input,
.pb-contact-form-panel select,
.pb-contact-form-panel textarea {
  width: 100%;
  min-height: 46px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  color: var(--pb-text);
  font: inherit;
}

.pb-contact-form-panel textarea {
  min-height: 130px;
  resize: vertical;
}

.pb-contact-form-panel input[type="submit"],
.pb-contact-form-panel button[type="submit"],
.pb-contact-form-panel .wpforms-submit {
  width: auto;
  min-height: auto;
  padding: 15px 30px;
  border: 0;
  background: var(--pb-gold-light) !important;
  color: var(--pb-navy) !important;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pb-contact-form-panel .wpforms-field {
  padding: 0;
  margin: 0 0 14px;
}

.pb-contact-form-panel .wpforms-field-description,
.pb-contact-form-panel .wpforms-error {
  color: rgba(255, 255, 255, 0.78);
}

.pb-form-note {
  margin-top: 0;
}

.pb-shortcode-placeholder {
  margin-top: 18px;
  padding: 24px;
  border: 1px dashed var(--pb-border);
  color: var(--pb-muted);
  background: var(--pb-cream);
}

.pb-form-box form {
  display: grid;
  gap: 16px;
}

.pb-form-box label {
  display: block;
  margin-bottom: 7px;
  color: var(--pb-navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pb-form-box input,
.pb-form-box select,
.pb-form-box textarea {
  width: 100%;
  min-height: 46px;
  padding: 13px 15px;
  border: 1px solid var(--pb-border);
  border-radius: 0;
  background: var(--pb-white);
  color: var(--pb-text);
  font: inherit;
}

.pb-form-box textarea {
  min-height: 130px;
  resize: vertical;
}

.pb-form-box input[type="submit"],
.pb-form-box button[type="submit"],
.pb-form-box .wpforms-submit {
  width: auto;
  min-height: auto;
  padding: 15px 30px;
  border: 0;
  background: var(--pb-navy);
  color: var(--pb-white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pb-form-box .wpforms-field {
  padding: 0;
  margin: 0 0 16px;
}

.pb-form-box .wpforms-field-container {
  display: block;
}

.pb-date {
  color: var(--pb-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pb-blog-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--pb-navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--pb-gold);
}

.pb-footer {
  background: var(--pb-navy);
  padding: 58px 8% 36px;
  color: rgba(255, 255, 255, 0.62);
}

.pb-footer h3 {
  margin: 0 0 8px;
  color: var(--pb-white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
}

.pb-footer a {
  display: inline-block;
  margin: 22px 24px 22px 0;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.pb-copyright {
  margin: 20px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.36);
}

.pb-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 80px 24px;
}

.pb-page-content > *:first-child {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .pb-hero-photo {
    opacity: 0.35;
    right: 2%;
  }
}

@media (max-width: 900px) {
  body.admin-bar .pb-site-header {
    top: 46px;
  }

  .pb-site-header {
    height: auto;
    padding: 18px 6%;
    flex-wrap: wrap;
  }

  .pb-main-menu {
    display: none;
  }

  .pb-hero {
    min-height: auto;
    display: block;
  }

  .pb-hero-content {
    padding: 96px 6% 44px;
  }

  .pb-hero-photo {
    position: relative;
    right: auto;
    bottom: auto;
    opacity: 1;
    width: 88%;
    max-width: 360px;
    height: 380px;
    margin: 0 auto 48px;
  }

  .pb-stats,
  .pb-card-grid,
  .pb-testimonial-grid,
  .pb-two-col,
  .pb-neighbourhood,
  .pb-split-cta,
  .pb-service-section,
  .pb-reviews-section,
  .pb-review-themes,
  .pb-highlight-grid,
  .pb-process-grid,
  .pb-step-grid {
    grid-template-columns: 1fr;
  }

  .pb-service-intro {
    position: static;
  }

  .pb-section {
    padding: 64px 6%;
  }

  .pb-about-photo {
    min-height: 380px;
  }

  .pb-neighbourhood-image {
    min-height: 300px;
  }

  .pb-neighbourhood-content {
    padding: 64px 6%;
  }

  .pb-feature-grid {
    grid-template-columns: 1fr;
  }

  .pb-stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 600px) {
  .pb-header-cta,
  .pb-btn {
    width: 100%;
    text-align: center;
  }

  .pb-site-header {
    align-items: stretch;
  }

  .pb-hero h1 {
    font-size: 44px;
  }
}
