/* Parr Houses 2025 – theme styles (consolidated) */
:root {
  /* Brand */
  --ph-blue: #1b7bb9;
  --ph-blue-dark: #1b7bb9;
  --ph-bg: #f6f8fe;
  --ph-text: #1f2a37;

  /* Header */
  --ph-nav-brand: 48px;   /* logo max height on mobile/desktop */
  --ph-nav-pad:   10px;   /* vertical padding inside navbar */
}

/* Base */
body { color: var(--ph-text); background: #fff; }
.brand-text { color: var(--ph-blue); font-size: 1.3rem; letter-spacing: .2px; }
.container { max-width: 1200px; }
/* === Header (consistent on all pages) === */
.site-header .navbar {
  background: #fff;
  padding-block: var(--ph-nav-pad) !important;
  min-height: calc(var(--ph-nav-brand) + var(--ph-nav-pad)*2);
}

/* Brand is a flex container (for vertical centering) */
.site-header .navbar-brand{
  display:flex;
  align-items:center;
  margin-right:auto; /* pin left on desktop */
}

/* Only constrain the image itself; never force exact height */
.site-header .navbar-brand img,
.site-header .custom-logo{
  height: auto !important;
  max-height: var(--ph-nav-brand) !important;
  width: auto;
}

.site-header .ms-auto { display: flex; align-items: center; gap: .5rem; }
.site-header .navbar .btn,
.site-header .navbar a { margin: 0 !important; }

.site-header .navbar .navbar-toggler { border-color: rgba(0,0,0,.15); }
.site-header .navbar .navbar-toggler-icon{
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Prevent templates from nudging header */
body.home .site-header .navbar,
body.search .site-header .navbar,
body.archive .site-header .navbar { margin: 0 !important; }

/* Slightly smaller brand on very small screens (optional) */
@media (max-width: 480px){
  :root { --ph-nav-brand: 60px; }
}

/* Topbar (if used) */
.ph-topbar { background: #f3f6fb; border-bottom: 1px solid rgba(0,0,0,.06); }

/* === Hero === */
.ph-hero { position: relative; min-height: 380px; margin-top: 0 !important; }
.ph-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.35));
  display: flex; align-items: flex-end; padding: 2rem 0;
}
.ph-hero-overlay .container { color: #fff; }
.ph-hero-overlay .display-5 { letter-spacing: .2px; }

.ph-badge {
  display: inline-flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; background: var(--ph-blue);
  border-radius: 999px; width: 140px; height: 140px; padding: .75rem;
  font-weight: 700; line-height: 1.1; box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.ph-hero .ph-badge { border: 4px solid rgba(255,255,255,.6); }

/* === Search bar === */
.ph-search {
  background: #fff; border-radius: .75rem; padding: .75rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
.ph-search .form-select, .ph-search .form-control { height: 46px; }

/* === USP tiles === */
.ph-usp { background: #fff; border-radius: 1rem; padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.08); height: 100%; }
.ph-usp-ico { font-size: 28px; margin-bottom: .5rem; }

/* === Property cards & carousel === */
.property-card .card-img-top { object-fit: cover; height: 160px; }
.swiper .swiper-slide { height: auto; }
#soon-swiper { padding-bottom: 10px; }

/* Meta chips + ribbon (used on cards) */
.object-cover { object-fit: cover; object-position: center; }

.ph-ribbon {
  position: absolute; left: 0; top: 12px;
  background: #1fa67a; color: #fff; font-weight: 700;
  padding: .5rem 1rem; border-top-right-radius: .5rem; border-bottom-right-radius: .5rem;
}

.ph-meta-item {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #e9f5ee; color: #0b4a2f;
  border: 1px solid #cfead8; border-radius: .5rem;
  padding: .4rem .6rem; font-size: .875rem;
}
.ph-meta-item i { width: 1.1rem; text-align: center; }
.ph-meta-item span { opacity: .85; }
.ph-meta-item b { font-weight: 600; margin-left: .15rem; }

/* Sticky sidebar offset (works with .sticky-top) */
.ph-sticky { top: calc(var(--ph-nav-brand) + var(--ph-nav-pad)*2 + 20px) !important; }

/* === CTA band === */
.ph-cta { background: var(--ph-blue); color: #fff; padding: 1.25rem 0; }

/* === Footer === */
.ph-footer { background: #26323e; color: #fff; }
.ph-footer .footer-nav a { color: #fff; opacity: .9; }
.ph-footer .footer-nav a:hover { opacity: 1; }
.border-white-10 { border-color: rgba(255,255,255,.1) !important; }

/* Archive grid generic */
.rounded-4 { border-radius: 1rem !important; }
.sticky-top img { border-radius: 1rem !important; margin-bottom: 1rem;}

/* Buttons */
.btn-primary { background: var(--ph-blue); border-color: var(--ph-blue); }
.btn-primary:hover { background: var(--ph-blue-dark); border-color: var(--ph-blue-dark); }

/* Offcanvas sizes */
#phNavOffcanvas { width: 300px; }
#phQuickView    { width: 520px; max-width: 95vw; }
@media (max-width: 576px){
  #phQuickView { width: 100%; }
}

/* Pagination (band-aid for paginate_links 'list' type) */
.page-numbers { list-style: none; padding-left: 0; display: flex; gap: .5rem; }
.page-numbers li { list-style: none; }
.page-numbers a,
.page-numbers span {
  display: inline-block; padding: .5rem .75rem;
  border: 1px solid #dee2e6; border-radius: .375rem; text-decoration: none;
}
.page-numbers .current {
  background: #0d6efd; color: #fff; border-color: #0d6efd;
}

/* Style stray prev/next anchors from paginate_links when they sit outside the UL */
a.page-numbers.prev,
a.page-numbers.next {
  display: inline-block;
  padding: .5rem .75rem;
  border: 1px solid #dee2e6;
  border-radius: .375rem;
  text-decoration: none;
  line-height: 1.25;
  margin-left: .5rem;
}
a.page-numbers.prev { margin-right: .5rem; }
a.page-numbers.prev:hover,
a.page-numbers.next:hover { background: #f8f9fa; }

/* Minor typography alignment with mock */
.container .h4 { letter-spacing: .2px; }

/* Offcanvas: make close visible on mobile and under notches */
.offcanvas { z-index: 1060; } /* above navbar etc. */
.offcanvas-header{
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  padding-top: calc(1rem + env(safe-area-inset-top));
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.offcanvas .btn-close{
  margin-right: env(safe-area-inset-right);
  opacity: .75;
}
.offcanvas .btn-close:focus{ box-shadow: none; }
.offcanvas-body{
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

/* Full-width offcanvas on very small screens (optional) */
@media (max-width: 576px){
  #phNavOffcanvas{ width: 100%; }
}

/* ===== Snap-in (desktop) — subtle spring + hover glow ===== */
#phNavToggle{
  transition: transform .15s ease, box-shadow .2s ease;
}
#phNavToggle:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(27,123,185,.15) inset;
}

.offcanvas{
  border-left: 1px solid rgba(0,0,0,.06);
  transition: transform .42s cubic-bezier(0.21,1.02,0.35,1), box-shadow .25s ease;
}
.offcanvas.show{
  box-shadow: -18px 0 36px rgba(0,0,0,.15);
}
.offcanvas .nav-link{
  border-radius: .5rem;
  transition: background-color .2s ease, transform .12s ease;
  padding: .5rem .75rem;
}
.offcanvas .nav-link:hover{
  background: rgba(27,123,185,.08);
  transform: translateX(2px);
}

/* Keep the close button visible under notches */
.offcanvas-header{
  position: sticky; top: 0; z-index: 2; background:#fff;
  padding-top: calc(1rem + env(safe-area-inset-top));
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.offcanvas .btn-close{ margin-right: env(safe-area-inset-right); }

/* ===== Mobile collapse (push hero down) ===== */
.ph-mobile-collapse{
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.ph-mobile-collapse .nav-link{
  padding:.5rem .25rem;
  border-radius:.5rem;
}
.ph-mobile-collapse .nav-link:hover{
  background: rgba(27,123,185,.06);
}

/* Optional: full-width offcanvas on very small screens if forced open */
@media (max-width: 576px){
  #phNavOffcanvas{ width:100%; }
}

/* Desktop burger hover */
#phNavToggleDesktop{
  transition: transform .15s ease, box-shadow .2s ease;
}
#phNavToggleDesktop:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(27,123,185,.15) inset;
}

/* Offcanvas link hover */
.offcanvas .nav-link{
  border-radius:.5rem; padding:.5rem .75rem;
  transition: background-color .2s ease, transform .12s ease;
}
.offcanvas .nav-link:hover{
  background: rgba(27,123,185,.08);
  transform: translateX(2px);
}

/* Smaller icons only in the topbar */
.ph-topbar .brand-text { 
  font-size: .9rem !important;  /* tweak size here */
  line-height: 1; 
  vertical-align: middle;
}
/* Optional: tighten spacing a touch */
.ph-topbar .container { gap: .5rem; }

.ph-topbar a.link-dark { display:inline-flex; align-items:center; }

/* theme.css */
select[name="street"]:disabled { background:#f8f9fa; cursor:not-allowed; }

/* === Carousel nav buttons: match primary CTAs === */

/* Buttons you created (e.g. #soon-prev/#soon-next, .testi-prev/.testi-next) */
#soon-prev, #soon-next,
.testi-prev, .testi-next,
.swiper-nav .btn {
  background: var(--ph-blue) !important;
  border-color: var(--ph-blue) !important;
  color: #fff !important;
  border-radius: .35rem;
  padding: .45rem .8rem;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(27,123,185,.25);
  transition: background .15s ease, box-shadow .2s ease, transform .08s ease;
}
#soon-prev:hover, #soon-next:hover,
.testi-prev:hover, .testi-next:hover,
.swiper-nav .btn:hover {
  background: var(--ph-blue-dark) !important;
  border-color: var(--ph-blue-dark) !important;
  box-shadow: 0 8px 18px rgba(27,123,185,.32);
}
#soon-prev:active, #soon-next:active,
.testi-prev:active, .testi-next:active,
.swiper-nav .btn:active {
  transform: translateY(1px);
}
#soon-prev[disabled], #soon-next[disabled],
.testi-prev[disabled], .testi-next[disabled] {
  opacity: .5; cursor: not-allowed; box-shadow:none;
}

/* Section vibe (optional): make the testimonials column feel special */
@media (min-width: 992px){
  .col-lg-6 .testimonials:has(.testimonials-swiper) {
    background:
      radial-gradient(1200px 400px at 100% 0%, rgba(27,123,185,.07), transparent 60%),
      radial-gradient(900px 300px at 0% 100%, rgba(27,123,185,.06), transparent 60%);
    border-radius: 14px;
    padding: 18px 18px 6px 18px;
  }
}

/* Card */
.ph-testimonial-card {
  position: relative;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.95)),
    radial-gradient(800px 200px at 0% 0%, rgba(27,123,185,.06), transparent 60%);
  border: 1px solid rgba(27,123,185,.12);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(27,123,185,.12);
  padding: 1.25rem 1.25rem 1rem 1.25rem;
  transition: transform .18s ease, box-shadow .18s ease;
}

.ph-testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(27,123,185,.18);
}

/* Decorative opening quote */
.ph-quote-mark {
  position: absolute;
  top: 10px;
  font-size: 64px;
  line-height: 1;
  color: rgba(27,123,185,.15);
  font-weight: 700;
  pointer-events: none;
}

/* Quote text */
.ph-quote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #2a3136;
}

/* Author */
.ph-author {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .9rem;
  font-weight: 600;
  color: #0d2a3b;
}

.ph-author-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--ph-blue, #1b7bb9);
  box-shadow: 0 0 0 4px rgba(27,123,185,.15);
}

/* Swiper layout tweaks */
.testimonials-swiper .swiper-slide { height: auto; }

/* Pagination bullets */
.testimonials-swiper .swiper-pagination {
  position: relative;
}
.testimonials-swiper .swiper-pagination-bullet {
  width: 8px; height: 8px;
  background: rgba(27,123,185,.35);
  opacity: 1;
  margin: 0 5px !important;
  transform: scale(1);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.testimonials-swiper .swiper-pagination-bullet-active {
  background: var(--ph-blue, #1b7bb9);
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(27,123,185,.18);
}

/* Upgrade the nav buttons to look more premium */
.testi-prev, .testi-next {
  border: 0 !important;
  color: #fff !important;
  border-radius: 999px;
  margin: 5px 5px 10px;
  width: 34px; height: 34px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 10px rgba(27,123,185,.28);
}
.testi-prev:hover, .testi-next:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 24px rgba(27,123,185,.34);
}
.testi-prev:active, .testi-next:active { transform: translateY(1px); }

/* Keep disabled state consistent */
.testi-prev[disabled], .testi-next[disabled] {
  opacity: .5; cursor: not-allowed; box-shadow: none;
}

/* Swiper’s built-in arrows (if you use them on any slider) */
.swiper-button-prev, .swiper-button-next {
  width: 42px; height: 42px;
  border-radius: .75rem;
  background: var(--ph-blue);
  box-shadow: 0 6px 16px rgba(27,123,185,.25);
  top: 50%; transform: translateY(-50%);
}
.swiper-button-prev:after, .swiper-button-next:after {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.swiper-button-disabled {
  opacity: .5 !important;
  background: var(--ph-blue);
  cursor: not-allowed;
  box-shadow: none;
}

/* Optional: position small nav cluster like your screenshot */
.swiper-nav { position: relative; z-index: 2; }

/* Bigger, brand-colored USP icons */
.ph-usp-ico {
  color: var(--ph-blue);
  font-size: clamp(48px, 7vw, 80px); /* adjust to taste */
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .4rem;
  text-shadow: 0 2px 10px rgba(27,123,185,.15); /* subtle glow */
}
.ph-usp-label { font-weight: 600; color: var(--ph-text); !important}

/* Make the topbar Arrange Viewing button larger (without changing others) */
.ph-topbar .btn-primary {
  font-size: 1rem;         /* uses root size; ignores the .small wrapper */
  padding: .25rem 1rem !important;
  border-radius: .4rem;
  font-weight: 400;
}
@media (min-width: 992px){
  .ph-topbar .btn-primary { font-size: 1.05rem; padding: .6rem 1.25rem; }
}

/* Footer menu styling */
.ph-footer .footer-nav .nav-link{
  padding: .25rem 0;
  color: #fff;
  opacity: .9;
}
.ph-footer .footer-nav .nav-link:hover{ opacity: 1; }

/* Social icons */
.ph-footer .footer-social{
  color: rgba(255,255,255,.8);
  font-size: 1.25rem; /* icon size */
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  transition: color .15s ease, transform .1s ease;
}
.ph-footer .footer-social:hover{
  color: #fff;
  transform: translateY(-1px);
}

/* Remove underlines in footer (menu + socials) */
.ph-footer a,
.ph-footer .footer-nav .nav-link,
.ph-footer .footer-social {
  text-decoration: none !important;
}
.ph-footer a:hover,
.ph-footer a:focus {
  text-decoration: none !important;
}

/* (optional) Also remove underlines in the topbar */
.ph-topbar a { text-decoration: none !important; }

.ph-footer a:focus { outline: 2px solid rgba(255,255,255,.4); outline-offset: 2px; }

/* Image crest badge (availability/status) */
.ph-crest{
  position:absolute;
  z-index: 888;
  top:25px;
  left:25px;
  width:92px;
  height:92px;
  border-radius:50%;
  background: var(--ph-blue);
  color:#fff;
  border:3px solid rgba(255,255,255,.9);
  box-shadow:0 8px 24px rgba(0,0,0,.25);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:10px;
  font-weight:600;
  line-height:1.1;
  text-transform:uppercase;
  letter-spacing:.4px;
}
.ph-crest span{ font-size: 18px !important; }

@media (min-width: 576px){
  .ph-crest{ width:100px; height:100px; }
  .ph-crest span{ font-size:12px; }
}

/* Colour variants */
.ph-crest.crest-blue  { background: var(--ph-blue); }
.ph-crest.crest-amber { background: #f59e0b; }   /* Let Agreed */
.ph-crest.crest-red   { background: #dc3545; }   /* Let */

.hidden {display: none;}

@media (max-width: 767.98px){
  #ph-quick-search.row{
    margin-left: 0;
    margin-right: 0;
    padding-left: .5rem;
    padding-right: .5rem;
    position: relative;
    z-index: 9999;
  }
}

/* Mobile/default */
.ph-hero .ph-hero-img {
  width: 100%;
  object-fit: cover;
}

/* Desktop */
@media (min-width: 992px){
  .ph-hero { height: 66vh; } /* container only */
}

/* Subtle hover + clamp body text on cards */
.ph-post-card { transition: transform .18s ease, box-shadow .18s ease; }
.ph-post-card:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.08); }
.ph-line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;      /* show ~3 lines on grid */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Quick View info pills */
.ph-qv-pill{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.45rem .75rem;
  border-radius: .8rem;
  background:#eaf6ef;                 /* soft green */
  color:#0b5d3b;                       /* brand-ish dark green */
  border:1px solid rgba(11,93,59,.18);
  font-size:.95rem;
  line-height:1;
  white-space:nowrap;
}
.ph-qv-pill i{opacity:.9}
.ph-qv-pill strong{font-weight:700}

.object-cover { object-fit: cover; } /* if you don’t already have it */

.ph-ribbon{
  position:absolute; top:12px; left:12px;
  padding:.5rem .75rem; border-radius:.75rem;
  font-weight:600; box-shadow:0 2px 6px rgba(0,0,0,.12);
}

.ph-pill{
  position:absolute; top:.5rem; left:.5rem;
  z-index:2;
  display:inline-block;
  padding:.35rem .6rem;
  border-radius:999px;
  font-size:.8rem; line-height:1; font-weight:600;
  color:#fff; box-shadow:0 2px 6px rgba(0,0,0,.25);
}
.ph-pill--to-let{ background:#0d6efd; }           /* blue */
.ph-pill--let-agreed{ background:#ffc107; color:#212529; } /* amber */
.ph-pill--let{ background:#6c757d; }              /* grey */

/* Keep header/logo above the hero overlay */
.site-header { position: relative; z-index: 2000; }
.ph-hero-overlay { z-index: 1; pointer-events: none; }

/* MOBILE-ONLY fixes: push overlay start below the header, shrink/space H1 */
@media (max-width: 767.98px) {
  /* Some earlier theme.css blocks re-define .ph-hero-overlay; force override */
  .ph-hero-overlay {
    position: absolute;
    inset: 0; /* flush top */
    padding-top: calc(var(--ph-nav-brand) + var(--ph-nav-pad)*2 + 8px); /* create safe space for text instead */
  }

  .ph-hero h1 {
    margin-top: .6rem;      /* breathing room under header */
    font-size: 1.6rem;      /* slightly smaller on mobile */
    line-height: 1.25;
  }

  /* optional: tidy subheading if it feels large under the smaller H1 */
  .ph-hero p.lead { font-size: 1rem; line-height: 1.4; }
}

/* Mobile LANDSCAPE: make hero image truly cover */
@media (max-width: 767.98px) and (orientation: landscape) {
  .ph-hero {
    position: relative;
    /* fill the visible viewport minus the header height */
    min-height: calc(100svh - var(--ph-nav-brand) - var(--ph-nav-pad)*2);
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: initial !important; /* avoid parallax gaps on iOS */
    padding: 0; /* in case height was coming from padding/aspect hacks */
  }

  /* If the hero uses an <img> instead of CSS background, make it cover */
  .ph-hero > img,
  .ph-hero .hero-img,
  .ph-hero .wp-post-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Make the hero image always cover the hero area */
.ph-hero { position: relative; overflow: hidden; } /* already set earlier, re-assert is fine */
.ph-hero > img,
.ph-hero .ph-hero-img,
.ph-hero .wp-post-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile (portrait & landscape): fill the viewport minus header height */
@media (max-width: 767.98px) and (orientation: portrait) {
  .ph-hero {
    height: auto !important;
    min-height: clamp(420px, 75vh, 600px) !important; /* shorter hero */
  }
}

/* Keep desktop plan */
@media (min-width: 992px) {
  .ph-hero { height: 66vh; }
}

/* Mobile PORTRAIT: shorter hero */
@media (max-width: 767.98px) and (orientation: portrait) {
  .ph-hero {
    height: auto !important;
    /* shorter than full screen; adjust the middle value to taste */
    min-height: clamp(420px, 72svh, 640px) !important;
  }
}

/* Keep header above everything */
.site-header { position: relative; z-index: 2000; }
.ph-hero-overlay { z-index: 1; pointer-events: none; }

/* Mobile PORTRAIT: overlay flush to top; text padded below header */
@media (max-width: 767.98px) and (orientation: portrait) {
  .ph-hero-overlay { 
    top: 0 !important; 
    left: 0; right: 0; bottom: 0; 
    position: absolute;
  }

  /* If you have a wrapper for hero text, target it here. 
     Use whichever exists in your markup: .ph-hero-content OR .ph-hero .container */
  .ph-hero .ph-hero-content,
  .ph-hero .container {
    padding-top: calc(var(--ph-nav-brand) + var(--ph-nav-pad)*2 + 8px);
  }

  /* Optional: tidy heading spacing/size */
  .ph-hero h1 {
    margin-top: 0.25rem;
    font-size: 1.6rem;
    line-height: 1.25;
  }
}

/* Ensure snap-in menu sits above the header on all devices */
.offcanvas,
#phNavOffcanvas { 
  position: fixed;          /* make sure it's in the top layer */
  z-index: 4000 !important; /* higher than header */
}

/* Backdrop just below the panel, still above header */
.offcanvas-backdrop {
  z-index: 3990 !important;
}

/* Keep header high, but lower than offcanvas */
.site-header {
  position: relative;
  z-index: 2000; /* leave this as-is or lower if you prefer */
}

/* === Header layout overrides (append after your current header CSS) === */

/* Mobile: brand ~75–80%, burger ~25–20% */
@media (max-width: 991.98px) {
  .site-header .navbar .container,
  .site-header .navbar .container-fluid {
    display: grid;
    grid-template-columns: 75% 25%; /* tweak to 80% 20% if you prefer */
    align-items: center;
    column-gap: .5rem;
    justify-content: initial !important; /* neutralize stray utilities */
  }

  .site-header .navbar-brand {
    grid-column: 1;
    justify-self: start;
    margin: 0 !important;
  }

  .site-header .navbar-toggler {
    grid-column: 2;
    justify-self: end;
    margin: 0 !important;
    flex-shrink: 0;
  }

  /* Hide desktop collapse on mobile so it never interferes */
  .site-header .navbar .navbar-collapse {
    display: none !important;
  }

  /* Keep logo tidy inside its grid cell */
  .site-header .navbar-brand img,
  .site-header .navbar-brand svg,
  .site-header .custom-logo {
    max-width: 100%;
    height: 44px; /* adjust to 48/52 if you want it larger */
    width: auto;
  }
}

/* Desktop: brand left, nav utilities right (unchanged) */
@media (min-width: 992px) {
  .site-header .navbar .container,
  .site-header .navbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  .site-header .navbar-brand { margin-right: auto !important; }
  .site-header .navbar .navbar-collapse { margin-left: auto !important; }
}

/* Enable interaction inside the hero overlay */
.ph-hero-overlay { pointer-events: auto; }

/* Parr Houses – CF7 form styling */
.ph-form { --ph-gap: 12px; }

.ph-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ph-gap);
}
@media (min-width: 768px){
  .ph-grid{ grid-template-columns: 1fr 1fr; }
  .ph-grid .ph-col-span-2{ grid-column: 1 / -1; }
}

.ph-label{
  display:block;
  font-weight:600;
  color: var(--ph-text);
  margin-bottom: .15rem;
}

.ph-input,
.ph-textarea,
.ph-form .wpcf7-form-control.wpcf7-select{
  width:100%;
  height:46px;                     /* matches your search inputs */
  padding:.55rem .75rem;
  border:1px solid #dfe3e8;
  border-radius:.75rem;
  background:#fff;
  color: var(--ph-text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance:none;
}

.ph-textarea{
  min-height: 120px;
  height: auto;
  resize: vertical;
  line-height:1.4;
}

.ph-input:focus,
.ph-textarea:focus,
.ph-form .wpcf7-form-control.wpcf7-select:focus{
  border-color: var(--ph-blue);
  box-shadow: 0 0 0 .2rem rgba(27,123,185,.15);
}

.ph-accept{
  margin: .25rem 0 0;
  font-size: .95rem;
}

.ph-actions{
  margin-top: .5rem;
  display:flex; gap:.5rem; align-items:center;
}

.ph-btn,
.ph-form .wpcf7-submit{
  display:inline-block;
  background: var(--ph-blue);
  border: 1px solid var(--ph-blue);
  color:#fff;
  font-weight:600;
  padding:.6rem 1.1rem;
  border-radius:.5rem;
  line-height:1;
  transition: background .15s ease, box-shadow .2s ease, transform .05s ease;
  cursor:pointer;
}
.ph-btn:hover,
.ph-form .wpcf7-submit:hover{
  background: var(--ph-blue-dark);
  border-color: var(--ph-blue-dark);
  box-shadow: 0 6px 16px rgba(27,123,185,.25);
}
.ph-btn:active,
.ph-form .wpcf7-submit:active{ transform: translateY(1px); }

/* CF7 feedback states */
.ph-form .wpcf7-not-valid{ border-color:#dc3545; }
.ph-form .wpcf7-not-valid-tip{
  display:block; margin-top: .25rem; color:#dc3545; font-size:.9rem;
}
.ph-form .wpcf7-response-output{
  margin-top: .75rem;
  border-radius:.5rem;
  padding:.6rem .8rem;
}



/* Parr Houses – CF7 form container + layout tweaks */
.ph-form-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

/* Grid stays one column on mobile, two on md+ */
.ph-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 768px){
  .ph-grid{ grid-template-columns: 1fr 1fr; }
  .ph-grid .ph-col-span-2{ grid-column: 1 / -1; }
}

.ph-label{ display:block; font-weight:600; color: var(--ph-text); margin-bottom:.15rem; }

.ph-input,
.ph-textarea,
.ph-form .wpcf7-form-control.wpcf7-select{
  width:100%;
  height:46px;
  padding:.55rem .75rem;
  border:1px solid #dfe3e8;
  border-radius:.75rem;
  background:#fff;
  color: var(--ph-text);
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
  appearance:none;
}
.ph-textarea{ min-height:120px; height:auto; resize:vertical; line-height:1.4; }

.ph-input:focus,
.ph-textarea:focus,
.ph-form .wpcf7-form-control.wpcf7-select:focus{
  border-color: var(--ph-blue);
  box-shadow: 0 0 0 .2rem rgba(27,123,185,.15);
}

.ph-accept{ margin:.25rem 0 0; font-size:.95rem; }

.ph-actions{ margin-top:.5rem; display:flex; gap:.5rem; align-items:center; }
.ph-btn,
.ph-form .wpcf7-submit{
  display:inline-block; background: var(--ph-blue); border:1px solid var(--ph-blue);
  color:#fff; font-weight:600; padding:.6rem 1.1rem; border-radius:.5rem; line-height:1;
  transition: background .15s ease, box-shadow .2s ease, transform .05s ease; cursor:pointer;
}
.ph-btn:hover,
.ph-form .wpcf7-submit:hover{ background: var(--ph-blue-dark); border-color: var(--ph-blue-dark); box-shadow:0 6px 16px rgba(27,123,185,.25); }
.ph-btn:active,
.ph-form .wpcf7-submit:active{ transform: translateY(1px); }

/* Featured image wrapper */
.ph-featured { border-radius: 1.5rem; overflow: hidden; box-shadow: 0 12px 30px rgba(27,123,185,.15); }

/* Masonry layout (pure CSS columns) */
.ph-testimonials-masonry {
  column-count: 1;
  column-gap: 1rem;
}
@media (min-width: 576px){ .ph-testimonials-masonry { column-count: 2; } }
@media (min-width: 1200px){ .ph-testimonials-masonry { column-count: 3; } }

.ph-masonry-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 1rem;
}

/* Testimonial card */
.ph-testimonial-card {
  position: relative;
  display: block;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.98)),
    radial-gradient(600px 200px at 0% 0%, rgba(27,123,185,.06), transparent 60%);
  border: 1px solid rgba(27,123,185,.12);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(27,123,185,.12);
  padding: 1.15rem 1.15rem 1rem 1.15rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ph-testimonial-card:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(27,123,185,.18); }

/* Opening quote mark with extra breathing room */
.ph-quote-mark {
  position: relative;
  display: block;
  font-size: 64px;
  line-height: 1;
  color: rgba(27,123,185,.15);
  font-weight: 700;
  pointer-events: none;
}

/* Quote text */
.ph-quote {
  margin: 0;
  color: #2a3136;
  line-height: 1.6;
}

/* Author */
.ph-author {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .85rem;
  font-weight: 600;
  color: #0d2a3b;
}
.ph-author-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--ph-blue, #1b7bb9);
  box-shadow: 0 0 0 4px rgba(27,123,185,.15);
}

.ratio-9x16 {
  padding-top: calc(100% * 16 / 9); /* 177.78% */
}

@media (max-width: 991.98px){
  #phNavToggle { margin-left: .5rem !important; }
}
