/* Self-hosted fonts (no Google Fonts request) */
@font-face { font-family: "Young Serif"; src: url(../fonts/young-serif-latin.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(../fonts/source-sans-3-latin.woff2) format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }

/* Pere Homes preview: concept A "Karibu nyumbani" */
:root {
  --sand: #EDE4D6;
  --cream: #F7F2EA;
  --white: #FFFDFA;
  --ink: #2A211B;
  --text: #4A3E35;
  --muted: #7A6D62;
  --line: #DCD0BE;
  --green: #1F3A33;
  --green-dk: #15291F;
  --green-soft: #2C4C42;
  --clay: #B65A31;
  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 40px);
  --serif: "Young Serif", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); color: var(--text); font: 18px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; color: var(--green); font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }
h3 { font-size: 26px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }

.preview-note { background: var(--green-dk); color: #B9C7C0; font-size: 13px; text-align: center; padding: 7px var(--gut); }
.preview-note b { color: #fff; }

/* Buttons */
.btn { display: inline-block; padding: 15px 26px; border-radius: 999px; background: var(--green); color: #fff; font: 600 17px/1.2 var(--sans); text-decoration: none; border: 0; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--clay); }
.btn.line { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn.line:hover { background: var(--green); color: #fff; }
.btn.clay { background: var(--clay); }
.btn.clay:hover { background: #974824; }
.btn.white { background: var(--white); color: var(--green); }
.btn.white:hover { background: var(--clay); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { color: var(--green); font-weight: 600; text-underline-offset: 4px; }
.text-link:hover { color: var(--clay); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--sand); transition: box-shadow .2s; }
.site-head.scrolled { box-shadow: 0 1px 0 var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; height: 84px; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-weight: 600; font-size: 16px; color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--clay); }
.nav a[aria-current="page"] { border-bottom-color: var(--clay); }
.head-call { font-weight: 600; font-size: 16px; color: var(--green); text-decoration: none; white-space: nowrap; }
.head-call:hover { color: var(--clay); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 6px 0; }

/* The arch: a doorway frame used across the site */
.arch { position: relative; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--white); box-shadow: 0 30px 60px rgba(42, 33, 27, .16); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--clay); }
.arch.tall { aspect-ratio: 3 / 4; }
.arch.wide { aspect-ratio: 4 / 5; }
.arch .face { object-position: 28% 20%; transform: scale(1.15); }

/* Home hero */
.home-hero { padding: clamp(28px, 4vw, 48px) 0 clamp(72px, 9vw, 120px); }
.home-hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.display { font-family: var(--serif); color: var(--green); font-size: clamp(64px, 8.4vw, 128px); line-height: .95; letter-spacing: -0.02em; margin: 0; }
.home-hero h1 { font: 600 clamp(19px, 1.6vw, 21px)/1.6 var(--sans); color: var(--text); max-width: 30em; margin: 28px 0 34px; }
.home-hero h1 em { font-style: normal; color: var(--green); }

/* Interior page hero */
.page-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 8vw, 104px); }
.page-hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.page-hero.solo .wrap { grid-template-columns: 1fr; max-width: 900px; }
.page-hero h1 { font-size: clamp(44px, 5.4vw, 76px); line-height: 1; }
.page-hero .intro { font-size: clamp(19px, 1.5vw, 21px); color: var(--text); max-width: 32em; margin: 24px 0 32px; }
.page-hero .arch { max-width: 420px; justify-self: end; width: 100%; }
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* Sections */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section.cream { background: var(--cream); }
.section.white { background: var(--white); }
.section.green { background: var(--green); color: #DCE5E0; }
.section.green h2, .section.green h3 { color: #fff; }
.h2 { font-size: clamp(36px, 4vw, 56px); }
.lead { font-size: 20px; max-width: 34em; margin-top: 18px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Two arched doors (buy / sell, and similar pairs) */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); margin-top: 56px; }
.door { text-decoration: none; display: block; }
.door .arch { aspect-ratio: 5 / 4; }
.door h3 { margin: 28px 0 8px; font-size: clamp(30px, 2.8vw, 40px); }
.door p { margin: 0 0 18px; max-width: 30em; }
.door:hover h3 { color: var(--clay); }
.door:hover .arch img { transform: scale(1.03); }
.door .arch img { transition: transform .5s; }

/* Split text + image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split .arch { max-width: 460px; width: 100%; }
.split.flip .arch { justify-self: end; }
.prose p { font-size: 19px; }
.prose h2 { margin-bottom: 20px; }
.prose h3 { margin: 36px 0 10px; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: 6px 0; }

/* Search band */
.search-band { background: var(--green); color: #fff; }
.search-band .wrap { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); text-align: center; }
.search-band h2 { color: #fff; }
.search-band p { color: #C9D6D0; margin: 14px auto 30px; }
.search-form { display: flex; gap: 8px; max-width: 620px; margin: 0 auto; background: var(--white); border-radius: 999px; padding: 6px; }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; font: 18px var(--sans); padding: 12px 20px; color: var(--ink); }
.search-form input:focus { outline: none; }
.quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 24px; }
.quick a { color: #fff; font-weight: 600; text-underline-offset: 4px; }

/* Quotes */
.quote { max-width: 900px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0; font: 400 clamp(26px, 2.8vw, 38px)/1.3 var(--serif); color: var(--green); }
.quote .who { margin-top: 24px; color: var(--muted); }
.quote .who b { color: var(--ink); }
.section.green .quote blockquote { color: #fff; }
.section.green .quote .who, .section.green .quote .who b { color: #C9D6D0; }
.stars { color: var(--clay); letter-spacing: 3px; }
.rating-line { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 18px; font-size: 16px; color: var(--muted); }
.rating-line b { font: 400 24px var(--serif); color: var(--green); }

/* Review wall */
.reviews { columns: 2; column-gap: 40px; margin-top: 48px; }
.reviews figure { break-inside: avoid; margin: 0 0 40px; }
.reviews blockquote { margin: 0; font-size: 19px; color: var(--ink); }
.reviews figcaption { margin-top: 12px; font-weight: 600; color: var(--green); }
.reviews figcaption span { font-weight: 400; color: var(--muted); }

/* Areas */
.cities { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.cities a { padding: 10px 20px; border-radius: 999px; background: var(--white); color: var(--green); font-weight: 600; text-decoration: none; }
.cities a:hover { background: var(--green); color: #fff; }
.center .cities { justify-content: center; }

/* Facts row (city pages) */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.facts div h3 { font-size: 24px; margin-bottom: 8px; }
.facts div p { margin: 0; font-size: 17px; }

.facts.two { grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
.facts .text-link { white-space: nowrap; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 980px; margin: 56px auto 28px; border-top: 1px solid var(--line); padding-top: 40px; }
.pair figure { margin: 0; }
.pair blockquote { margin: 0; font-size: 18px; color: var(--ink); }
.pair figcaption { margin-top: 12px; font-weight: 600; color: var(--green); }
.pair figcaption span { font-weight: 400; color: var(--muted); }

/* FAQ */
.faq { margin-top: 40px; max-width: 860px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 400 24px/1.3 var(--serif); color: var(--green); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 28px; line-height: 1; color: var(--clay); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 14px 0 0; max-width: 46em; }

/* Forms */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.card { background: var(--white); border-radius: 24px; padding: clamp(24px, 3vw, 36px); box-shadow: 0 24px 60px rgba(21, 41, 31, .14); color: var(--text); }
.card h3 { margin-bottom: 18px; }
.card label { display: block; font-weight: 600; font-size: 15px; color: var(--ink); margin: 0 0 6px; }
.card input, .card select, .card textarea { width: 100%; font: 17px var(--sans); padding: 13px 14px; border: 1px solid #D3C7B5; border-radius: 10px; margin-bottom: 16px; background: #fff; color: var(--ink); }
.card textarea { min-height: 110px; resize: vertical; }
.card input:focus, .card select:focus, .card textarea:focus { outline: 2px solid var(--clay); border-color: var(--clay); }
.card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card .btn { width: 100%; }
.card .fine { font-size: 14px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.form-msg { display: none; margin-top: 14px; font-size: 15px; background: #F3EBDF; border-left: 3px solid var(--clay); padding: 12px 14px; }
.section.green .form-wrap h2 { color: #fff; }
.section.green .form-wrap .lead { color: #C9D6D0; }

/* Contact methods */
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.methods a { display: block; background: var(--white); border-radius: 24px; padding: 28px; text-decoration: none; }
.methods a:hover { box-shadow: inset 0 0 0 2px var(--clay); }
.methods b { display: block; font: 400 26px var(--serif); color: var(--green); margin-bottom: 4px; }
.methods span { color: var(--muted); }

/* Live listings crop (preview stand-in for Showcase hotsheet shortcodes) */
.idx-live { position: relative; height: 2780px; overflow: hidden; border-radius: 16px; background: var(--white); margin-top: 32px; }
.idx-live iframe { position: absolute; left: 0; top: -330px; width: 100%; height: 3300px; border: 0; }
.idx-after { margin-top: 24px; }
.draft code { font-size: 13px; background: var(--white); padding: 1px 6px; border-radius: 4px; color: var(--ink); font-style: normal; }
@media (max-width: 900px) {
  .idx-live { height: 2200px; }
  .idx-live::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(rgba(255,253,250,0), var(--white)); }
  .idx-live iframe { height: 2600px; top: -340px; }
}

/* Listings embed (Showcase IDX) */
.idx-frame { width: 100%; height: 1100px; border: 0; border-radius: 16px; background: var(--white); }
.idx-slot { background: var(--white); border-radius: 24px; padding: 40px; text-align: center; border: 2px dashed var(--line); }
.idx-slot p { max-width: 36em; margin: 10px auto 22px; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin-top: 40px; }
.posts a { display: block; padding: 24px 0; border-top: 1px solid var(--line); text-decoration: none; }
.posts a h3 { font-size: 24px; margin-bottom: 6px; }
.posts a p { margin: 0; color: var(--muted); font-size: 16px; }
.posts a:hover h3 { color: var(--clay); }
.article { max-width: 720px; margin: 0 auto; }
.article p, .article li { font-size: 19px; }
.article h2 { font-size: 32px; margin: 40px 0 14px; }
.article h3 { font-size: 24px; margin: 28px 0 10px; }
.legal-text h2 { font-size: 28px; margin: 36px 0 12px; }
.legal-text p, .legal-text li { font-size: 17px; }

.note-box { background: var(--white); border-left: 4px solid var(--clay); border-radius: 0 16px 16px 0; padding: 20px 24px; margin: 28px 0; }
.note-box p:last-child { margin: 0; }
.draft { font-size: 14px; color: var(--muted); font-style: italic; }

/* Footer */
.site-foot { background: var(--green-dk); color: #A9BAB2; font-size: 15.5px; padding: 72px 0 36px; }
.foot-top { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid #2B4137; }
.foot-top p { font: 400 clamp(30px, 3.4vw, 46px)/1.1 var(--serif); color: #fff; margin: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-foot img.logo { height: 52px; width: auto; filter: invert(1); margin-bottom: 18px; }
.site-foot h4 { color: #fff; font: 600 15px var(--sans); margin: 0 0 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 6px 0; }
.site-foot a { color: #E2EAE6; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.legal { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 13.5px; color: #84978F; }
.eho { display: inline-flex; align-items: center; gap: 8px; }
.eho svg { width: 20px; height: 20px; fill: #84978F; }

.action-bar { display: none; }

@media (max-width: 1040px) { .nav { gap: 18px; } .nav a { font-size: 15px; } }
@media (max-width: 900px) {
  body { font-size: 17px; }
  .nav, .head-call { display: none; }
  .menu-btn { display: block; }
  .nav.open { display: flex; position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--sand); padding: 6px var(--gut) 18px; box-shadow: 0 16px 30px rgba(42, 33, 27, .12); }
  .nav.open a { font-size: 21px; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .home-hero .wrap, .page-hero .wrap, .split, .form-wrap { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .home-hero .arch, .page-hero .arch, .split .arch { max-width: 360px; justify-self: start; }
  .doors, .methods, .facts, .facts.two, .pair { grid-template-columns: 1fr; }
  .reviews, .posts { columns: 1; grid-template-columns: 1fr; }
  .foot-top { flex-direction: column; align-items: start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .idx-frame { height: 900px; }
  .action-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--green-dk); padding-bottom: env(safe-area-inset-bottom); }
  .action-bar a { color: #fff; text-decoration: none; text-align: center; font-weight: 600; font-size: 15px; padding: 15px 4px; }
  .action-bar a + a { border-left: 1px solid #2B4137; }
  .action-bar a.primary { background: var(--clay); }
  body { padding-bottom: 54px; }
}
@media (max-width: 560px) {
  .head-row { height: 70px; }
  .brand img { height: 40px; }
  .nav.open { top: 70px; }
  .btns .btn { flex: 1 1 100%; text-align: center; }
  .search-form { flex-direction: column; border-radius: 24px; }
  .card .row { grid-template-columns: 1fr; gap: 0; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* =========================================================
   Bricks adapter: makes Bricks' own markup and defaults match the approved design.
   Bricks keeps its defaults in @layer bricks (html 62.5%, link and button styles,
   Georgia blockquotes, uppercase form labels...). Everything here is unlayered, so it wins.
   ========================================================= */

html { font-size: 100%; }
body.ph { font: 18px/1.65 var(--sans); color: var(--text); background: var(--sand); }
@media (max-width: 900px) { body, html body.ph { font-size: 17px; } }
.ph a { text-decoration: none; }
.ph .text-link, .ph .prose a, .ph .article a, .ph .faq-a a, .ph .facts a, .ph .lead a, .ph .note-box a { text-decoration: underline; text-underline-offset: 4px; }
.ph blockquote { margin: 0; padding: 0; border: 0; font-style: normal; }
.ph blockquote p { margin: 0; }
.ph figcaption { text-align: left; }
.ph .brxe-text p:last-child, .ph .brxe-text ul:last-child { margin-bottom: 0; }
.ph h1, .ph h2, .ph h3, .ph h4 { font-family: var(--serif); font-weight: 400; }
.ph .home-hero h1 { font: 600 clamp(19px, 1.6vw, 21px)/1.6 var(--sans); color: var(--text); }  /* the plain-English line under "Karibu nyumbani." */

/* Bricks sections are flex columns; make every inner wrapper full width */
.ph main .brxe-section, .ph #brx-content > .brxe-section { display: block; width: 100%; }
.ph .brxe-div { max-width: none; }
.ph .brxe-div.wrap, .ph .wrap { width: 100%; max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: var(--gut); padding-right: var(--gut); }
.ph .brxe-div.wrap.narrow { max-width: 760px; }
.ph .facts.two + .brxe-heading { margin-top: 56px; }
.ph .page-hero .wrap > .brxe-div, .ph .home-hero .wrap > .brxe-div { min-width: 0; }

/* Images */
.ph img.brxe-image { max-width: 100%; height: auto; }
.ph .arch img.brxe-image, .ph .arch .brxe-image img { width: 100%; height: 100%; object-fit: cover; }
.ph .arch .face { object-position: 28% 20%; transform: scale(1.15); }
.ph .page-hero .arch, .ph .home-hero .arch { width: 100%; }

/* Buttons: reset Bricks' .bricks-button padding, size and letter-spacing */
.ph .brxe-button.btn, .ph .btn { display: inline-block; padding: 15px 26px; border-radius: 999px; background: var(--green); color: #fff; font: 600 17px/1.2 var(--sans); letter-spacing: 0; text-transform: none; border: 0; text-decoration: none; min-height: 0; }
.ph .brxe-button.btn:hover, .ph .btn:hover { background: var(--clay); color: #fff; }
.ph .btn.line { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.ph .btn.line:hover { background: var(--green); color: #fff; }
.ph .btn.clay { background: var(--clay); }
.ph .btn.white { background: var(--white); color: var(--green); }
.ph .btn.white:hover { background: var(--clay); color: #fff; }
.ph .btn.line.on-dark { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.ph .btn.line.on-dark:hover { background: #fff; color: var(--green); }
.ph .door { display: block; color: inherit; }
.ph .door .btn { pointer-events: none; }

/* Header + Bricks Nav Menu */
#brx-header { position: sticky; top: 0; z-index: 50; }
body.admin-bar #brx-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar #brx-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar #brx-header { top: 0; } }
.ph .site-head { background: var(--sand); transition: box-shadow .2s; }
.ph-scrolled .site-head { box-shadow: 0 1px 0 var(--line); }
.ph .head-row { display: flex; align-items: center; gap: 28px; height: 84px; }
.ph .brand-logo, .ph .brand-logo img { height: 48px; width: auto; display: block; }
.ph .ph-nav { margin-left: auto; }
.ph .ph-nav .bricks-nav-menu { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.ph .ph-nav .bricks-nav-menu > li { margin: 0; }
.ph .ph-nav .bricks-nav-menu > li > a { display: block; font: 600 16px/1.2 var(--sans); color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.ph .ph-nav .bricks-nav-menu > li > a:hover { color: var(--clay); }
.ph .ph-nav .bricks-nav-menu > .current-menu-item > a, .ph .ph-nav .bricks-nav-menu > .current-menu-ancestor > a, .ph .ph-nav .bricks-nav-menu > .current-page-ancestor > a { border-bottom-color: var(--clay); }
.ph .ph-nav .bricks-mobile-menu-toggle { display: none; }

/* "Homes For Sale" dropdown: Bricks wraps a parent item in .brx-submenu-toggle (link + caret button) */
.ph .ph-nav .bricks-nav-menu > li > .brx-submenu-toggle { display: flex; align-items: center; gap: 6px; }
.ph .ph-nav .bricks-nav-menu > li > .brx-submenu-toggle > a { display: block; font: 600 16px/1.2 var(--sans); color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.ph .ph-nav .bricks-nav-menu > li:hover > .brx-submenu-toggle > a, .ph .ph-nav .bricks-nav-menu > li.open > .brx-submenu-toggle > a { color: var(--clay); }
.ph .ph-nav .bricks-nav-menu > .current-menu-ancestor > .brx-submenu-toggle > a, .ph .ph-nav .bricks-nav-menu > .current-menu-item > .brx-submenu-toggle > a { border-bottom-color: var(--clay); }
.ph .ph-nav .brx-submenu-toggle button { margin: 0 !important; padding: 4px 0; border: 0; background: none; color: var(--clay); cursor: pointer; }
.ph .ph-nav .brx-submenu-toggle button > * { display: none !important; }
.ph .ph-nav .brx-submenu-toggle button::before { content: ""; display: block; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.ph .ph-nav .open > .brx-submenu-toggle button::before { transform: translateY(1px) rotate(225deg); }
.ph .ph-nav .bricks-nav-menu .sub-menu { background: var(--white); border-radius: 18px; box-shadow: 0 24px 50px rgba(42, 33, 27, .18); padding: 14px; margin: 0; list-style: none; top: calc(100% + 10px); min-width: 0; width: 460px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.ph .ph-nav .bricks-nav-menu .sub-menu li { margin: 0; }
.ph .ph-nav .bricks-nav-menu .sub-menu a { display: block; padding: 9px 12px; border-radius: 10px; font: 500 15.5px/1.25 var(--sans); color: var(--ink); white-space: nowrap; }
.ph .ph-nav .bricks-nav-menu .sub-menu a:hover, .ph .ph-nav .bricks-nav-menu .sub-menu .current-menu-item > a { background: var(--cream); color: var(--clay); }
.ph .ph-nav .bricks-nav-menu .sub-menu .menu-all, .ph .ph-nav .bricks-nav-menu .sub-menu .menu-afh { grid-column: span 1; }
.ph .ph-nav .bricks-nav-menu .sub-menu .menu-all > a, .ph .ph-nav .bricks-nav-menu .sub-menu .menu-afh > a { font-weight: 700; color: var(--green); background: var(--cream); }
.ph .ph-nav .bricks-nav-menu .sub-menu .menu-afh { margin-bottom: 8px; }
.ph .ph-nav .bricks-nav-menu .sub-menu .menu-all { margin-bottom: 8px; }

/* The call button: the most prominent thing in the header */
.ph .brxe-button.head-call { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px 13px 18px; border-radius: 999px; background: var(--clay); color: #fff; font: 700 17px/1 var(--sans); letter-spacing: 0; white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(182, 90, 49, .8); transition: background .15s, transform .15s; }
.ph .brxe-button.head-call::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A17 17 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A17 17 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ph .brxe-button.head-call:hover { background: #974824; color: #fff; transform: translateY(-1px); }
@media (max-width: 1040px) { .ph .ph-nav .bricks-nav-menu { gap: 18px; } .ph .ph-nav .bricks-nav-menu > li > a, .ph .ph-nav .bricks-nav-menu > li > .brx-submenu-toggle > a { font-size: 15px; } .ph .brxe-button.head-call { font-size: 16px; padding: 12px 18px 12px 15px; } }
@media (max-width: 991px) {
  .ph .head-row { gap: 12px; }
  .ph .ph-nav { order: 3; margin-left: 0; }
  .ph .brxe-button.head-call { margin-left: auto; }
  .ph .ph-nav .bricks-nav-menu-wrapper { display: none; }
  .ph .ph-nav .bricks-mobile-menu-toggle { display: block; position: relative; width: 44px; height: 44px; color: var(--ink); }
  .ph .ph-nav .bricks-mobile-menu-wrapper, .ph .ph-nav .bricks-mobile-menu-wrapper::before { background: var(--sand); }
  .ph .ph-nav .bricks-mobile-menu { padding: 90px var(--gut) 24px; }
  .ph .ph-nav .bricks-mobile-menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font: 600 21px var(--sans); color: var(--ink); }
  .ph .ph-nav .bricks-mobile-menu .sub-menu { padding: 0 0 8px 16px; margin: 0; list-style: none; }
  .ph .ph-nav .bricks-mobile-menu .sub-menu a { font-size: 18px; font-weight: 500; padding: 11px 0; }
  .ph .ph-nav .bricks-mobile-menu .brx-submenu-toggle { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .ph .ph-nav .bricks-mobile-menu .brx-submenu-toggle > a { border-bottom: 0; }
}
@media (max-width: 560px) {
  .ph .head-row { height: 70px; }
  .ph .brand-logo, .ph .brand-logo img { height: 40px; }
  .ph .brxe-button.head-call { font-size: 0; gap: 0; padding: 12px; }  /* phone icon only; the number is in the bottom call bar */
  .ph .brxe-button.head-call::before { width: 20px; height: 20px; }
}

/* Breathing room between text and the buttons under it (Rich Text drops its last paragraph's margin) */
.ph .brxe-text + .btns, .ph .brxe-text-basic + .btns, .ph .brxe-heading + .btns,
.ph .brxe-text + .brxe-button, .ph .brxe-text-basic + .brxe-button { margin-top: 30px; }
.ph .home-hero .brxe-heading + .btns { margin-top: 0; }
.ph .door .brxe-text + .brxe-text-basic.btn, .ph .door .brxe-text-basic.btn { display: inline-block; margin-top: 20px; }
.ph .facts .brxe-text p .text-link { display: inline-block; margin-top: 6px; }
.ph .note-box + .brxe-div, .ph .brxe-div.note-box { margin-bottom: 28px; }

/* Footer */
.ph .foot-say { font: 400 clamp(30px, 3.4vw, 46px)/1.1 var(--serif); color: #fff; margin: 0; }
.ph .foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid #2B4137; }
.ph .foot-logo, .ph .foot-logo img { height: 52px; width: auto; filter: invert(1); margin-bottom: 18px; display: block; }
.ph .foot-h { color: #fff; font: 600 15px var(--sans); margin: 0 0 12px; }
.ph .site-foot ul { list-style: none; margin: 0; padding: 0; }
.ph .site-foot li { margin: 6px 0; }
.ph .site-foot a { color: #E2EAE6; }
.ph .site-foot a:hover { text-decoration: underline; }
.ph .site-foot p.legal { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 13.5px; color: #84978F; }
.ph .site-foot p.legal a { color: #84978F; }
@media (max-width: 900px) { .ph .foot-top { flex-direction: column; align-items: flex-start; } }

/* Mobile action bar */
.ph .action-bar { display: none; }
@media (max-width: 900px) {
  body.ph { padding-bottom: 54px; }
  .ph .action-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--green-dk); padding-bottom: env(safe-area-inset-bottom); }
  .ph .action-bar .brxe-button { display: block; color: #fff; text-align: center; font: 600 15px var(--sans); padding: 15px 4px; background: none; border-radius: 0; letter-spacing: 0; }
  .ph .action-bar .brxe-button + .brxe-button { border-left: 1px solid #2B4137; }
  .ph .action-bar .primary { background: var(--clay); }
}

/* FAQ (native heading + rich text; site.js turns each into a toggle) */
.ph .faq-item { border-top: 1px solid var(--line); padding: 20px 0; }
.ph .faq-item:last-child { border-bottom: 1px solid var(--line); }
.ph .faq-q { font: 400 24px/1.3 var(--serif); color: var(--green); margin: 0; }
.ph .faq-q button { all: unset; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; width: 100%; }
.ph .faq-q button::after { content: "+"; font: 28px/1 var(--sans); color: var(--clay); }
.ph .faq-item.open .faq-q button::after { content: "\2212"; }
.ph .faq-a { margin: 14px 0 0; max-width: 46em; }
.ph-js .faq-item:not(.open) .faq-a { display: none; }

/* Bricks forms inside the design's cards */
.ph .card .brxe-form { display: flex; flex-direction: column; gap: 0; }
.ph .card .form-group { width: 100%; padding: 0; margin: 0 0 16px; }
.ph .card .form-group label { display: block; text-transform: none; letter-spacing: 0; font: 600 15px var(--sans); color: var(--ink); margin: 0 0 6px; }
.ph .card .form-group input, .ph .card .form-group select, .ph .card .form-group textarea { width: 100%; font: 17px var(--sans); padding: 13px 14px; border: 1px solid #D3C7B5; border-radius: 10px; background: #fff; color: var(--ink); line-height: 1.3; }
.ph .card .form-group textarea { min-height: 110px; }
.ph .card .form-group input:focus, .ph .card .form-group select:focus, .ph .card .form-group textarea:focus { outline: 2px solid var(--clay); border-color: var(--clay); }
.ph .card .submit-button-wrapper { width: 100%; margin: 4px 0 0; }
.ph .card .brxe-form button.bricks-button { width: 100%; justify-content: center; padding: 15px 26px; border-radius: 999px; background: var(--clay); color: #fff; font: 600 17px/1.2 var(--sans); letter-spacing: 0; text-transform: none; border: 0; cursor: pointer; }
.ph .card .brxe-form button.bricks-button:hover { background: #974824; }
.ph .card .message.success { background: #EAF3EE; color: var(--green); border-radius: 10px; padding: 14px 16px; margin-top: 14px; }
.ph .card .message.error { background: #FBECE6; color: #8A3A1C; border-radius: 10px; padding: 14px 16px; margin-top: 14px; }
.ph .card > .brxe-text .fine, .ph .card > .brxe-text p { font-size: 14px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.ph .card > .brxe-heading { margin-bottom: 18px; font-size: 26px; }

/* Showcase IDX feeds and search, Trustindex widget */
.ph .idx-feed { margin-top: 32px; min-height: 200px; }
.ph .section.green .idx-feed { color: var(--ink); }
.ph .ph-idx-search { max-width: 720px; margin: 0 auto; background: var(--white); border-radius: 24px; padding: 10px; color: var(--ink); }
.ph .featured .h2 { margin-bottom: 8px; }
.ph .ph-trustindex { margin-top: 40px; }

/* Blog: post list, pagination, single post */
.ph .post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.ph .post-card { display: block; padding: 24px 0; border-top: 1px solid var(--line); color: inherit; }
.ph .post-card__title { font-size: 24px; margin: 0 0 6px; }
.ph .post-card__excerpt { margin: 0; color: var(--muted); font-size: 16px; }
.ph .post-card:hover .post-card__title { color: var(--clay); }
.ph .post-pagination { margin-top: 36px; }
.ph .post-pagination .page-numbers { display: inline-block; min-width: 40px; padding: 8px 12px; margin: 0 4px 4px 0; border-radius: 999px; background: var(--cream); color: var(--green); text-align: center; font-weight: 600; }
.ph .post-pagination .page-numbers.current { background: var(--green); color: #fff; }
.ph .post-body h2 { font-size: 32px; margin: 40px 0 14px; }
.ph .post-body h3 { font-size: 24px; margin: 28px 0 10px; }
.ph .post-body p, .ph .post-body li { font-size: 19px; }
.ph .post-body img { border-radius: 16px; height: auto; }
@media (max-width: 900px) { .ph .post-grid { grid-template-columns: 1fr; } }

/* Breadcrumb line in heroes */
.ph .crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
