/* =========================================================
   PropWisdom — Design tokens
   ========================================================= */
:root {
  --ink: #14202B;
  --ink-soft: #253744;
  --paper: #FAF8F4;
  --paper-deep: #F0EBE0;
  --brass: #A6803D;
  --brass-deep: #8A6B30;
  --stone: #6B6459;
  --stone-light: #948C7E;
  --line: #DDD6C8;
  --white: #FFFFFF;
  --navy: var(--ink);
  --gold: var(--brass);
  --gold-light: #D2B66B;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "Times New Roman", Times, serif;
  font-weight: 400;
  line-height: 1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-weight: 400; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; max-width: 62ch; color: var(--ink-soft); }
p.lede { font-size: 1.15rem; color: var(--stone); max-width: 56ch; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 88px 0; }
section.tight { padding: 56px 0; }
section.deep {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
section.ink {
  background: var(--ink);
  color: var(--paper);
}
section.ink h2, section.ink h3, section.ink p { color: var(--paper); }
section.ink p { color: #C6CCD1; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--brass-deep);
  font-weight: 600;
  margin-bottom: 14px;
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--brass); color: var(--white); }
.btn-primary:hover { background: var(--brass-deep); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-outline-light { border-color: rgba(250,248,244,0.5); color: var(--paper); background: transparent; }
.btn-outline-light:hover { background: var(--paper); color: var(--ink); }
.btn-text { color: var(--brass-deep); font-weight: 600; border-bottom: 1px solid var(--brass); padding: 2px 0; border-radius: 0; }
.btn-text:hover { color: var(--ink); border-color: var(--ink); }
.btn-block { width: 100%; justify-content: center; }

/* ---------------------------------------------------------
   Header / Navigation
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250,248,244,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221,214,200,.9);
  box-shadow: 0 8px 30px rgba(20,32,43,.04);
}
.topbar { background: var(--ink); color: #DCE1E4; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.topbar-inner { min-height: 32px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.topbar-right { color:#BFC7CC; }
.header-inner { display:flex; align-items:center; justify-content:space-between; min-height:78px; max-width:var(--container); margin:0 auto; padding:0 28px; }
.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-full-logo {
    display: block;
    width: 235px;
    height: auto;
    max-height: 92px;
    object-fit: contain;
}
/* Logo mark ships as a transparent, pre-cropped PNG/WebP, so it sits directly on
   the header without a clipping badge (a circular mask would cut off the mark's
   corner details, since its bounding box is a full square). */
.brand-logo-wrap { display:flex; align-items:center; justify-content:center; width:46px; height:46px; }
.brand img { height:46px; width:46px; object-fit:contain; }
.brand-text { font-family:var(--serif); font-size:1.3rem; line-height:1.05; color:var(--ink); letter-spacing:-.02em; }
.brand-text span { display:block; margin-top:5px; font-family:var(--sans); font-size:.57rem; letter-spacing:.1em; color:var(--stone); font-weight:600; text-transform:uppercase; }
.main-nav { display:flex; align-items:center; gap:12px; flex:1; justify-content:flex-end; min-width:0; }
.main-nav > ul { list-style:none; display:flex; align-items:center; justify-content:flex-end; gap:1px; margin:0; padding:0; flex-wrap:nowrap; }
.main-nav > ul > li { position:relative; }
.main-nav a, .nav-link { font-family:var(--sans); font-size:.83rem; font-weight:600; color:var(--ink-soft); white-space:nowrap; }
.main-nav > ul > li > a, .nav-link { display:inline-flex; align-items:center; gap:7px; min-height:44px; padding:0 8px; border:0; border-bottom:2px solid transparent; background:transparent; cursor:pointer; }
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.active, .nav-link:hover, .nav-link.active { color:var(--ink); border-bottom-color:var(--brass); }
.nav-link svg { width:10px; height:7px; transition:transform .2s ease; }
.nav-dropdown:hover .dropdown-trigger svg, .nav-dropdown.is-open .dropdown-trigger svg { transform:rotate(180deg); }
.nav-cta { flex-shrink:0; }
.nav-cta .btn { padding:11px 13px; font-size:.74rem; box-shadow:0 7px 18px rgba(166,128,61,.18); }
.nav-cta .btn span { transition:transform .2s ease; }
.nav-cta .btn:hover span { transform:translateX(3px); }

/* Desktop dropdowns */
.dropdown-menu { position:absolute; top:calc(100% + 10px); left:50%; transform:translate(-50%, -8px); width:340px; padding:0; background:rgba(255,255,255,.98); border:1px solid var(--line); border-top:3px solid var(--brass); border-radius:0 0 10px 10px; box-shadow:0 22px 50px rgba(20,32,43,.15); opacity:0; visibility:hidden; pointer-events:none; transition:opacity .18s ease, transform .18s ease, visibility .18s ease; }
.nav-services .dropdown-menu { width:720px; }
.nav-dropdown:hover > .dropdown-menu, .nav-dropdown:focus-within > .dropdown-menu, .nav-dropdown.is-open > .dropdown-menu { opacity:1; visibility:visible; pointer-events:auto; transform:translate(-50%,0); }
.dropdown-intro { padding:20px 22px 16px; background:linear-gradient(135deg,#FAF8F4 0%,#F1ECE3 100%); border-bottom:1px solid var(--line); }
.dropdown-kicker { display:block; color:var(--brass-deep); font-size:.64rem; font-weight:800; letter-spacing:.13em; margin-bottom:6px; }
.dropdown-intro strong { display:block; font-family:var(--serif); font-size:1.2rem; font-weight:600; color:var(--ink); }
.dropdown-intro small { display:block; margin-top:5px; color:var(--stone); font-size:.77rem; line-height:1.45; }
.dropdown-links, .service-menu-grid { padding:9px; }
.dropdown-links a, .service-menu-grid a { display:flex; align-items:flex-start; gap:12px; padding:12px 13px; border-radius:7px; transition:background .16s ease, transform .16s ease; }
.dropdown-links a:hover, .service-menu-grid a:hover { background:var(--paper); transform:translateX(2px); }
.menu-icon { flex:0 0 31px; width:31px; height:31px; display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; color:var(--brass-deep); font-size:.62rem; font-weight:800; background:var(--white); }
.dropdown-links b, .service-menu-grid b { display:block; font-size:.8rem; color:var(--ink); line-height:1.25; }
.dropdown-links small, .service-menu-grid small { display:block; color:var(--stone); font-size:.69rem; line-height:1.35; margin-top:3px; }
.service-menu-grid { display:grid; grid-template-columns:1fr 1fr; gap:2px; }
.dropdown-view-all { display:flex !important; justify-content:space-between; align-items:center; margin:4px 9px 9px; padding:12px 13px !important; background:var(--ink); color:var(--paper) !important; border-radius:6px; font-size:.77rem !important; font-weight:700 !important; }
.dropdown-view-all span { transition:transform .18s ease; }
.dropdown-view-all:hover span { transform:translateX(4px); }

.nav-toggle { display:none; align-items:center; justify-content:center; flex-direction:column; gap:5px; width:44px; height:44px; border:1px solid var(--line); background:var(--white); border-radius:8px; cursor:pointer; }
.nav-toggle span { display:block; width:19px; height:1.5px; background:var(--ink); transition:transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform:translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity:0; }
.nav-toggle.open span:nth-child(3) { transform:translateY(-6.5px) rotate(-45deg); }
.mobile-nav { display:none; max-height:calc(100vh - 110px); overflow:auto; border-top:1px solid var(--line); background:rgba(250,248,244,.99); box-shadow:0 18px 30px rgba(20,32,43,.08); }
.mobile-nav > a, .mobile-nav summary { min-height:52px; padding:15px 28px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); font-weight:600; color:var(--ink-soft); font-size:.92rem; cursor:pointer; }
.mobile-nav details { border-bottom:1px solid var(--line); }
.mobile-nav details summary { border-bottom:0; list-style:none; }
.mobile-nav details summary::-webkit-details-marker { display:none; }
.mobile-nav details summary span { font-size:1.25rem; color:var(--brass-deep); transition:transform .2s ease; }
.mobile-nav details[open] summary span { transform:rotate(45deg); }
.mobile-subnav { background:var(--white); border-top:1px solid var(--line); padding:6px 0; }
.mobile-subnav a { display:block; padding:11px 28px 11px 45px; color:var(--stone); font-size:.84rem; border-bottom:1px solid #eee9df; }
.mobile-subnav a:hover { color:var(--ink); background:var(--paper); }
.mobile-nav .mobile-cta { margin:14px 20px 20px; min-height:48px; justify-content:center; background:var(--brass); border:0; border-radius:6px; color:#fff; box-shadow:0 8px 20px rgba(166,128,61,.18); }
.mobile-nav .mobile-cta span { margin-left:8px; }
@media (max-width: 768px) {
    .brand-full-logo {
        width: 205px;
        max-height: 78px;
    }
}
@media (max-width:1100px) {
  .header-inner { padding-left:18px; padding-right:18px; }
  .brand { min-width:195px; }
  .brand-text { font-size:1.15rem; }
  .brand-text span { font-size:.52rem; }
  .main-nav { gap:5px; }
  .main-nav > ul { gap:0; }
  .main-nav > ul > li > a, .nav-link { padding:0 5px; font-size:.72rem; }
  .nav-cta .btn { padding:10px 10px; font-size:.68rem; }
  .nav-services .dropdown-menu { right:-140px; left:auto; transform:translateY(-8px); }
  .nav-services:hover > .dropdown-menu, .nav-services:focus-within > .dropdown-menu, .nav-services.is-open > .dropdown-menu { transform:translateY(0); }
}
@media (max-width:900px) {
  .topbar-right { display:none; }
  .header-inner { min-height:72px; }
  .main-nav { display:none; }
  .nav-toggle { display:inline-flex; }
  .mobile-nav.open { display:block; }
}
@media (max-width:520px) {
  .topbar { font-size:.62rem; }
  .topbar-inner { min-height:29px; }
  .header-inner { padding:0 18px; }
  .brand { gap:9px; min-width:0; }
  .brand-logo-wrap { width:40px; height:40px; }
  .brand img { height:40px; width:40px; }
  .brand-text { font-size:1.1rem; }
  .brand-text span { font-size:.48rem; letter-spacing:.06em; }
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  padding: 72px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero-copy .eyebrow { color: var(--brass-deep); }
.hero-copy h1 {
    font-family: "Times New Roman", Times, serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-variant: normal !important;
    font-feature-settings: "liga" 0, "clig" 0, "calt" 0 !important;
    font-variant-ligatures: none !important;
    letter-spacing: normal;
}
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
/* The box takes its shape from the image itself (no forced aspect-ratio), so
   there is never empty background to fill — this works for any image the
   image is swapped in for, wide or tall, without letterbox bars. */
.hero-visual img { width: 100%; height: auto; display: block; }
.hero-visual .mark {
  position: absolute; bottom: 22px; left: 22px;
  background: rgba(20,32,43,0.82);
  color: var(--paper);
  padding: 14px 18px;
  border-left: 3px solid var(--brass);
  font-size: 0.85rem;
  max-width: 240px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* ---------------------------------------------------------
   Card grids
   --------------------------------------------------------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card .icon { margin-bottom: 18px; color: var(--brass-deep); }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; flex-grow: 1; }
.card .btn-text { margin-top: 18px; align-self: flex-start; }

.card-link {
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--white);
  transition: border-color 0.18s ease, transform 0.18s ease;
  display: block;
}
.card-link:hover { border-color: var(--brass); transform: translateY(-2px); }

/* ---------------------------------------------------------
   Philosophy / Process steps — 3 cards per row
   --------------------------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  border-top: 0;
}

.step {
  counter-increment: step;
  display: block;
  min-width: 0;
  padding: 30px 28px 32px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius);
  background: var(--white);
  min-height: 245px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.step:hover {
  transform: translateY(-3px);
  border-color: var(--brass);
  box-shadow: 0 14px 30px rgba(20,32,43,.08);
}

/* about.php contains an empty first div for the old vertical layout;
   hide it so it cannot create an extra grid item or squeeze the text. */
.step > div:first-child { display: none; }

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--brass);
  margin-bottom: 24px;
}

.step > div:last-child {
  min-width: 0;
}

.step h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.step p {
  margin-bottom: 0;
  max-width: none;
  font-size: .94rem;
  line-height: 1.65;
}

.step-read-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;

    color: var(--gold);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;

    border-bottom: 1px solid var(--gold);
    padding-bottom: 5px;

    transition: all 0.25s ease;
}

.step-read-more span {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.step-link:hover .step-read-more {
    color: var(--ink);
    border-color: var(--ink);
}

.step-link:hover .step-read-more span {
    transform: translateX(5px);
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 620px) {
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step { min-height: auto; padding: 26px 22px 28px; }
  .step::before { font-size: 1.8rem; margin-bottom: 18px; }
}

/* ---------------------------------------------------------
   Insights / Success Stories
   --------------------------------------------------------- */
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
/* Success-story listing cards: preserve the complete uploaded image */
.post-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: var(--paper-deep);
}
.post-card .post-body { padding: 22px 22px 26px; }
.post-meta { font-size: 0.78rem; color: var(--stone-light); margin-bottom: 10px; display: flex; gap: 10px; }
.post-meta .cat { color: var(--brass-deep); font-weight: 600; }
.post-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.post-card p { font-size: 0.94rem; margin-bottom: 0; }

.post-card-action {
    margin-top: 24px;
}

.post-card-action .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.post-card-action .btn span {
    transition: transform 0.2s ease;
}

.post-card-action .btn:hover span {
    transform: translateX(4px);
}

.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-row a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.82rem;
  color: var(--stone);
}
.filter-row a.active, .filter-row a:hover { border-color: var(--brass); color: var(--ink); background: var(--paper-deep); }

.article-hero img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--radius); margin-bottom: 32px; background: var(--paper-deep); }
.article-body { max-width: 720px; margin: 0 auto; }
.article-body p { max-width: none; font-size: 1.05rem; }
.article-body h2 { margin-top: 1.6em; }
.share-row { display: flex; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.share-row a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.82rem; }

.story-block { padding: 26px 0; border-bottom: 1px solid var(--line); }
.story-block:last-child { border-bottom: none; }
.story-block .label { font-size: 0.78rem; text-transform: none; color: var(--brass-deep); font-weight: 600; margin-bottom: 6px; display: block; }

/* ---------------------------------------------------------
   CTA band
   --------------------------------------------------------- */
/* =========================================================
   PREMIUM CTA / FEATURE BANDS
   ========================================================= */

.cta-band {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    padding: 48px 56px;
    margin: 32px 0;

    border-radius: 4px;
    overflow: hidden;

    background: #f3eee3;
    border: 1px solid #d8c7a3;
    box-shadow: 0 12px 35px rgba(20, 32, 43, 0.08);
}

/* Gold vertical accent */
.cta-band::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: #b88a38;
}

/* Heading */
.cta-band h2 {
    margin: 0 0 10px;
    color: #142230;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.15;
    font-weight: 500;
}

/* Description */
.cta-band p {
    margin: 0;
    max-width: 720px;
    color: #4d5862;
    font-size: 17px;
    line-height: 1.65;
}


/* ---------------------------------------------------------
   Forms
   --------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
input, select, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.96rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
  border-color: var(--brass);
}
textarea { resize: vertical; min-height: 120px; }

.form-note { font-size: 0.85rem; color: var(--stone); margin-top: 14px; }
.alert { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 24px; font-size: 0.94rem; }
.alert-success { background: #EEF4EC; border: 1px solid #B9D2AF; color: #35502E; }
.alert-error { background: #FBECEC; border: 1px solid #E3AFAF; color: #6B2323; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
/* ============================================================
   PROPWISDOM FOOTER
   ============================================================ */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  padding: 58px 0 0;
  overflow: hidden;
}

.site-footer .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Footer columns */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 42px;
  padding-bottom: 48px;
}

/* All footer headings */
.footer-grid h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 18px;
}

/* Footer lists */
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid ul li {
  margin: 0 0 11px;
}

.footer-grid ul li a {
  color: rgba(255,255,255,0.68);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.22s ease;
}

.footer-grid ul li a:hover {
  color: var(--gold-light);
}

/* ============================================================
   FOOTER BRAND
   ============================================================ */

.footer-brand {
  min-width: 0;
}

.footer-brand-logo {
  width: 138px;
    height: 138px;
    min-width: 138px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #1d1f21;
    text-decoration: none;
    margin: 0 0 24px 0;
}

/* Same logo appearance as header */
.footer-logo-mark {
  width: 58px;
  height: 58px;
  min-width: 58px;
  object-fit: contain;
  object-position: center;
  display: block;
  flex-shrink: 0;
}

/* Footer PropWisdom text */
.footer-logo-text {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}

/* Footer description */
.footer-brand-name {
  color: var(--white) !important;
  font-size: 15px !important;
  font-weight: 600;
  margin: 0 0 5px !important;
}

.footer-brand-description {
  color: rgba(255,255,255,0.62) !important;
  font-size: 14px !important;
  line-height: 1.7;
  max-width: 260px;
  margin: 0 !important;
}

/* ============================================================
   SOCIAL MEDIA ICONS
   ============================================================ */

.footer-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  max-width: 100%;
}

.footer-social a {
  width: 42px;
  height: 42px;
  min-width: 42px;
  flex: 0 0 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;

  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.88);

  font-size: 17px;
  line-height: 1;

  text-decoration: none;

  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease;
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-3px);
}

/* Make sure icons cannot cause horizontal overflow */
.footer-social i {
  display: block;
  line-height: 1;
}

/* ============================================================
   FOOTER BOTTOM
   ============================================================ */

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

.footer-bottom span {
  max-width: 100%;
}

.footer-bottom a {
  color: rgba(255,255,255,0.45);
}

.footer-bottom a:hover {
  color: var(--gold-light);
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1000px) {

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 740px) {

  .site-footer {
    padding-top: 45px;
  }

  .site-footer .container {
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
    max-width: 100%;
  }

  /* Two columns on mobile */
  .footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 38px 28px;
    width: 100%;
  }

  /* Brand occupies full width */
  .footer-brand {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .footer-brand-logo {
    gap: 12px;
  }

  .footer-logo-mark {
    width: 56px;
    height: 56px;
    min-width: 56px;
  }

  .footer-logo-text {
    font-size: 22px;
  }

  .footer-brand-description {
    max-width: 250px;
  }

  .footer-grid h4 {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .footer-grid ul li {
    margin-bottom: 10px;
  }

  .footer-grid ul li a {
    font-size: 14px;
  }

  /* Prevent email from pushing page sideways */
  .footer-grid a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Social icons */
  .footer-social {
    width: 100%;
    max-width: 190px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer-social a {
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex: 0 0 40px;
    font-size: 16px;
  }

  /* Bottom section */
  .footer-bottom {
    margin-top: 10px;
    padding: 18px 0 24px;
  }

  .footer-bottom .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;

    font-size: 11.5px;
    line-height: 1.6;
  }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 480px) {

  .site-footer .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 22px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-logo-mark {
    width: 52px;
    height: 52px;
    min-width: 52px;
  }

  .footer-logo-text {
    font-size: 21px;
  }

  .footer-brand-name {
    font-size: 14px !important;
  }

  .footer-brand-description {
    font-size: 13px !important;
  }

  .footer-grid ul li a {
    font-size: 13px;
  }

  .footer-social {
    max-width: 145px;
    gap: 8px;
  }

  .footer-social a {
    width: 38px;
    height: 38px;
    min-width: 38px;
    flex-basis: 38px;
    font-size: 15px;
  }

}


/* ============================================================
   EXTRA PROTECTION AGAINST HORIZONTAL SCROLL
   ============================================================ */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.site-footer,
.site-footer * {
  max-width: 100%;
}

/* ---------------------------------------------------------
   Utility
   --------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--brass-deep); background: var(--paper-deep); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.divider { height: 1px; background: var(--line); border: none; margin: 64px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

.breadcrumb { font-size: 0.85rem; color: var(--stone); margin-bottom: 18px; }
.breadcrumb a { color: var(--stone); }
.breadcrumb a:hover { color: var(--ink); }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.admin-table th { color: var(--stone); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.status-pill { padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.status-published { background: #EEF4EC; color: #35502E; }
.status-draft { background: #F0EBE0; color: var(--stone); }


/* =========================================================
   DROPDOWN RELIABILITY PATCH
   Works with mouse hover, keyboard focus and touch/click.
   ========================================================= */
.site-header,
.header-inner,
.main-nav,
.main-nav > ul,
.main-nav > ul > li {
  overflow: visible;
}
.site-header { z-index: 9999; }
.header-inner { position: relative; z-index: 10000; }
.main-nav { position: relative; z-index: 10001; }
.main-nav > ul > li { position: relative; z-index: 10002; }
.nav-dropdown.is-open { z-index: 10003; }

/* Remove the 10px dead zone between trigger and dropdown. */
.dropdown-menu {
  top: 100%;
  z-index: 10010;
  transform: translate(-50%, 8px);
  display: block;
}

.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown:focus-within > .dropdown-menu,
.nav-dropdown.is-open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* Invisible bridge keeps the menu open while moving the pointer down. */
.nav-dropdown > .dropdown-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}

/* The services menu needs its own alignment at medium desktop widths. */
@media (min-width:901px) and (max-width:1100px) {
  .nav-services .dropdown-menu {
    left: auto;
    right: -140px;
    transform: translateY(8px);
  }
  .nav-services:hover > .dropdown-menu,
  .nav-services:focus-within > .dropdown-menu,
  .nav-services.is-open > .dropdown-menu {
    transform: translateY(0);
  }
}

/* Touch devices: don't depend on :hover. */
@media (hover:none), (pointer:coarse) {
  .nav-dropdown:hover > .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 8px);
  }
  .nav-dropdown.is-open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
}

@media (max-width:900px) {
  .main-nav { display:none !important; }
  .nav-toggle { display:inline-flex !important; }
  .mobile-nav.open { display:block !important; }
}

/* ---------------------------------------------------------
   Content additions — new content types added for the v3 copy
   pass (testimonial quotes, bullet lists, outcomes table).
   Reuses existing color/spacing tokens; not a design change.
   --------------------------------------------------------- */
.content-list { list-style: none; margin: 0 0 1.1em; padding: 0; max-width: 62ch; }
.content-list li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--ink-soft); line-height: 1.55; }
.content-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; background: var(--brass); border-radius: 50%; }
.content-list.tight li { margin-bottom: 6px; }

.quote-card { border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: var(--radius); background: var(--white); padding: 26px 28px; height: 100%; }
.quote-card p { font-style: italic; color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
section.ink .quote-card { background: rgba(250,248,244,0.04); border-color: rgba(250,248,244,0.16); }
section.ink .quote-card p { color: #E7E9EB; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.outcomes-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.outcomes-table th, .outcomes-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.outcomes-table th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--stone); font-weight: 600; background: var(--paper-deep); }
.outcomes-table tr:last-child td { border-bottom: none; }
.outcomes-table td:first-child { font-weight: 600; color: var(--ink); }

.mini-note { font-size: 0.85rem; color: var(--stone); margin-top: 10px; }
section.ink .mini-note { color: #9AA4AC; }
.card .tag { align-self: flex-start; }

/* ---------------------------------------------------------
   Testimonial carousel — auto-advancing, 3 cards per view on
   desktop, 2 on tablet, 1 on mobile. Cards come from the DB
   via the testimonials table so they can be managed in admin.
   --------------------------------------------------------- */
/* =========================================================
   CLIENT REVIEWS CAROUSEL
   ========================================================= */

.testimonial-carousel {
  position: relative;
  width: 100%;
}

.testimonial-viewport {
  width: 100%;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  transition: transform 0.6s ease;
  will-change: transform;
}

.testimonial-slide {
  flex: 0 0 33.333333%;
  width: 33.333333%;
  max-width: 33.333333%;
  min-width: 0;
  padding: 0 10px;
  box-sizing: border-box;
}

/* Keep the first/last card aligned nicely */
.testimonial-slide:first-child {
  padding-left: 0;
}

.testimonial-slide:last-child {
  padding-right: 0;
}

.testimonial-slide .quote-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.testimonial-attribution {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--stone);
  font-style: normal;
}

.testimonial-attribution .stars {
  color: var(--brass);
  letter-spacing: 2px;
  margin-right: 6px;
}


/* =========================================================
   CONTROLS
   ========================================================= */

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
}

.testimonial-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.testimonial-arrow:hover {
  border-color: var(--brass);
  color: var(--brass-deep);
  transform: translateY(-1px);
}

.testimonial-arrow:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.testimonial-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  padding: 0;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.testimonial-dot:hover {
  transform: scale(1.25);
}

.testimonial-dot.active {
  background: var(--brass);
  transform: scale(1.2);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .testimonial-slide {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 620px) {

  .testimonial-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .testimonial-controls {
    gap: 14px;
    margin-top: 20px;
  }

  .testimonial-arrow {
    width: 36px;
    height: 36px;
  }

}

/* ============================================================

/* =========================================================
   PROPWISDOM — FINAL CLEAN LAYOUT OVERRIDES
   Replace all previous spacing/overflow patches with this block.
   ========================================================= */

/* Global safety */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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

img,
svg,
video,
iframe {
  max-width: 100%;
}

/* ---------------------------------------------------------
   SECTION SPACING
   --------------------------------------------------------- */

section {
  margin: 0 !important;
  padding: 52px 0 !important;
}

section.tight {
  padding: 40px 0 !important;
}

section.deep,
section.ink {
  padding-top: 52px !important;
  padding-bottom: 52px !important;
}

/* Keep section headings close to the content below them */
section h1,
section h2,
section h3,
section h4 {
  margin-top: 0;
}

.section-head {
  margin-bottom: 30px !important;
}

.eyebrow {
  margin-bottom: 10px !important;
}

/* Do not let generic paragraph margins create large gaps */
section p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.hero {
  padding: 52px 0 60px !important;
}

.hero-copy h1 {
  margin-bottom: 20px;
}

.hero-actions {
  margin-top: 26px;
}

/* ---------------------------------------------------------
   COMMON CONTENT SECTIONS
   --------------------------------------------------------- */

.content-section {
  margin: 0 !important;
  padding: 52px 0 !important;
}
.success-stories-band {
    background: #142230;
    border: 1px solid #243646;
    color: #fff;
}

.success-stories-band::before {
    background: #c49a52;
}

.success-stories-band h2 {
    color: #f7f3eb;
}

.success-stories-band p {
    color: #d7dde2;
}

/* Success Stories button */
.success-stories-band .btn {
    background: #c49a52;
    color: #142230;
    border: 1px solid #c49a52;
}

.success-stories-band .btn:hover {
    background: #d5b06c;
    border-color: #d5b06c;
    color: #142230;
}
/* Preserve the complete success-story image */
.story-detail-image img,
.success-story-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}
.success-stories,
.success-stories-section,
.insights-section,
.home-insights,
.recent-thinking {
  margin: 0 !important;
  padding-top: 52px !important;
  padding-bottom: 52px !important;
}

.insights-section .section-label,
.home-insights .section-label,
.recent-thinking .section-label {
  margin-top: 0 !important;
}

.insights-grid,
.blog-grid,
.articles-grid {
  margin-top: 28px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.start-band {
    background: linear-gradient(
        135deg,
        #c49a52 0%,
        #b88a38 100%
    );

    border: none;
    box-shadow: 0 14px 40px rgba(184, 138, 56, 0.20);
}

.start-band::before {
    background: #142230;
}

.start-band h2 {
    color: #142230;
}

.start-band p {
    color: #253441;
}

/* Dark button */
.start-band .btn {
    background: #142230;
    color: #fff;
    border: 1px solid #142230;
}

.start-band .btn:hover {
    background: #0d1822;
    border-color: #0d1822;
}


/* ---------------------------------------------------------
   ABOUT / PHILOSOPHY STEPS — 3 PER ROW
   --------------------------------------------------------- */

.steps {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  width: 100%;
  margin: 0;
}

.step {
  min-width: 0;
  width: 100%;
  min-height: 230px;
}

/* ---------------------------------------------------------
   CTA SECTIONS
   --------------------------------------------------------- */

.cta,
.cta-box,
.cta-section,
.final-cta,
.home-cta,
.strategy-cta {
  min-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

section:has(.cta-band) {
  padding-top: 26px !important;
  padding-bottom: 26px !important;
}

section:has(.cta-band) + section:has(.cta-band) {
  padding-top: 0 !important;
}

.cta-band {
    background: #f3eee3;
    border: 1px solid #d8c7a3;
    border-left: 7px solid #b88a38;
    border-radius: 4px;

    padding: 52px 56px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    box-shadow: 0 12px 30px rgba(20, 34, 48, 0.08);
}

.cta-band h2 {
    color: #142230;
    margin: 0 0 12px;
}

.cta-band p {
    color: #40505e;
    margin: 0;
}

/* MAKE LET'S TALK PROPERTY CLEAR */
.cta-band .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    background: #b88a38 !important;
    color: #142230 !important;

    border: 2px solid #b88a38 !important;
    border-radius: 4px;

    padding: 17px 28px;

    min-width: 220px;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;

    text-decoration: none;

    box-shadow: 0 7px 18px rgba(184, 138, 56, 0.25);

    transition: all 0.2s ease;
}

.cta-band .btn:hover {
    background: #142230 !important;
    color: #ffffff !important;

    border-color: #142230 !important;

    transform: translateY(-2px);

    box-shadow: 0 10px 24px rgba(20, 34, 48, 0.22);
}

.cta-band .btn span {
    font-size: 20px;
}


/* MOBILE */
@media (max-width: 768px) {

    .cta-band {
        flex-direction: column;
        align-items: flex-start;
        padding: 36px 28px;
    }

    .cta-band .btn {
        width: 100%;
        min-width: 0;
    }
}

/* ---------------------------------------------------------
   FOOTER — CLEAN DESKTOP LAYOUT
   --------------------------------------------------------- */

.site-footer {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 54px 0 0 !important;
}

.site-footer .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  width: 100%;
  padding-bottom: 42px;
}

.footer-grid > div,
.footer-brand {
  min-width: 0;
  max-width: 100%;
}

/* Header/footer logo sizing is intentionally matched */
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 16px;
}

.footer-logo-mark,
.footer-brand .brand img {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  flex: 0 0 46px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.footer-logo-text {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-brand-name,
.footer-brand-description,
.footer-grid a {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ---------------------------------------------------------
   SOCIAL ICONS — NEVER CAUSE HORIZONTAL SCROLL
   --------------------------------------------------------- */

.footer-social {
  width: 100%;
  max-width: 180px;
  display: grid !important;
  grid-template-columns: repeat(3, 42px);
  justify-content: start;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  overflow: visible;
}

.footer-social a {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  flex: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.90);
  line-height: 1;
  overflow: hidden;
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-social i,
.footer-social svg {
  display: block;
  width: 17px;
  height: 17px;
  line-height: 1;
}

/* ---------------------------------------------------------
   FOOTER BOTTOM
   --------------------------------------------------------- */

.footer-bottom {
  margin-top: 0 !important;
  padding: 18px 0 22px !important;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.footer-bottom span {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ---------------------------------------------------------
   HORIZONTAL OVERFLOW PROTECTION
   --------------------------------------------------------- */

.site-footer,
.site-footer .container,
.footer-grid,
.footer-grid > div,
.footer-social,
.footer-social a {
  min-width: 0;
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 1000px) {

  section {
    padding: 46px 0 !important;
  }

  section.tight {
    padding: 36px 0 !important;
  }

  .hero {
    padding: 46px 0 52px !important;
  }

  .content-section,
  .success-stories,
  .success-stories-section,
  .insights-section,
  .home-insights,
  .recent-thinking {
    padding-top: 46px !important;
    padding-bottom: 46px !important;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  section:has(.cta-band) {
    padding-top: 22px !important;
    padding-bottom: 22px !important;
  }

  .cta-band {
    padding: 40px 32px !important;
  }
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 740px) {

  section {
    padding: 38px 0 !important;
  }

  section.tight {
    padding: 32px 0 !important;
  }

  .hero {
    padding: 38px 0 46px !important;
  }

  .content-section,
  .success-stories,
  .success-stories-section,
  .insights-section,
  .home-insights,
  .recent-thinking {
    padding-top: 38px !important;
    padding-bottom: 38px !important;
  }

  .section-head {
    margin-bottom: 24px !important;
  }

  .insights-grid,
  .blog-grid,
  .articles-grid {
    margin-top: 22px !important;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .step {
    min-height: auto;
    padding: 26px 22px 28px;
  }

  .cta-band {
    padding: 34px 24px !important;
    gap: 22px;
  }

  section:has(.cta-band) {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  /* Footer becomes two columns without overflow */
  .site-footer {
    padding-top: 42px !important;
  }

  .site-footer .container {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px 20px;
    width: 100%;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-logo-mark,
  .footer-brand .brand img {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    flex-basis: 40px;
  }

  .footer-logo-text {
    font-size: 21px;
  }

  .footer-brand-description {
    max-width: 100%;
  }

  .footer-grid a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* 3 icons + remaining icons wrap to the next row */
  .footer-social {
    width: 100%;
    max-width: 130px;
    grid-template-columns: repeat(3, 36px) !important;
    gap: 8px !important;
    justify-content: start;
  }

  .footer-social a {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    font-size: 14px;
  }

  .footer-social i,
  .footer-social svg {
    width: 15px;
    height: 15px;
  }

  .footer-bottom {
    margin-top: 0 !important;
    padding: 18px 0 24px !important;
  }

  .footer-bottom .container {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    font-size: 11.5px;
    line-height: 1.6;
  }
}

/* ---------------------------------------------------------
   SMALL PHONES
   --------------------------------------------------------- */

@media (max-width: 520px) {

  .container {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  .header-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-logo-wrap,
  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .brand-text span {
    font-size: .45rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px 16px;
  }

  .footer-social {
    max-width: 118px;
    grid-template-columns: repeat(3, 34px) !important;
    gap: 7px !important;
  }

  .footer-social a {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    font-size: 13px;
  }

  .steps {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}




/* =========================================================
   FINAL PROPWISDOM DESIGN + LOGO OVERRIDES
   ---------------------------------------------------------
   Keep the supplied full propwisdom-logo.jpg intact.
   The image contains the complete mark, PropWisdom name and
   tagline, so it must NOT be cropped or reduced to a small icon.
   ========================================================= */

:root {
  --pw-navy: #14202B;
  --pw-navy-soft: #253744;
  --pw-cream: #FAF8F4;
  --pw-cream-deep: #F0EBE0;
  --pw-gold: #A6803D;
  --pw-gold-dark: #8A6B30;
  --pw-stone: #6B6459;
  --pw-line: #DDD6C8;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--sans) !important;
  color: var(--pw-navy);
  background: var(--pw-cream);
}

h1, h2, h3, h4, h5, h6,
.footer-logo-text,
.dropdown-intro strong {
  font-family: var(--serif) !important;
}

button,
input,
select,
textarea,
option {
  font-family: var(--sans) !important;
}

/* ---------------------------------------------------------
   HEADER — full original PropWisdom logo
   --------------------------------------------------------- */
.site-header {
  background: rgba(250, 248, 244, 0.98);
  border-bottom: 1px solid var(--pw-line);
}

.topbar {
  background: var(--pw-navy);
  color: #DCE1E4;
}

.topbar-inner {
  min-height: 34px;
}

.topbar-right {
  color: #C8CED3;
}

.header-inner {
  min-height: 108px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  min-width: 0;
  text-decoration: none;
  line-height: 0;
}

/* The JPG itself contains the complete logo.
   Do not use .brand img sizing because that old selector
   would shrink this image to 40–46px. */
.brand .brand-full-logo {
  display: block;
  width: 106px !important;
  height: 106px !important;
  max-width: 106px !important;
  max-height: 106px !important;
  min-width: 106px !important;
  min-height: 106px !important;
  object-fit: contain !important;
  object-position: center center !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  flex: 0 0 106px;
}

/* The full logo already contains the words and tagline. */
.brand-text {
  display: none !important;
}

/* Old logo-wrapper rules must not affect the new full-logo image. */
.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  overflow: visible;
}

.brand-logo-wrap picture {
  display: block;
  width: auto;
  height: auto;
}

.main-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.main-nav > ul {
  gap: 0;
}

.main-nav > ul > li > a,
.main-nav .nav-link {
  font-family: var(--sans) !important;
  font-size: .82rem;
  font-weight: 600;
}

.nav-cta .btn {
  font-family: var(--sans) !important;
}

/* Prevent the two desktop CTA areas from becoming oversized. */
.nav-cta {
  flex-shrink: 0;
}

.nav-cta > a:not(.btn) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 8px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-cta > a:not(.btn):hover {
  color: var(--ink);
}

/* ---------------------------------------------------------
   MOBILE HEADER
   --------------------------------------------------------- */
@media (max-width: 1100px) {
  .header-inner {
    padding-left: 20px;
    padding-right: 20px;
    gap: 14px;
  }

  .brand .brand-full-logo {
    width: 94px !important;
    height: 94px !important;
    max-width: 94px !important;
    max-height: 94px !important;
    min-width: 94px !important;
    min-height: 94px !important;
    flex-basis: 94px;
  }

  .main-nav > ul > li > a,
  .main-nav .nav-link {
    padding-left: 4px;
    padding-right: 4px;
    font-size: .72rem;
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 86px;
    padding: 0 18px;
  }

  .brand .brand-full-logo {
    width: 82px !important;
    height: 82px !important;
    max-width: 82px !important;
    max-height: 82px !important;
    min-width: 82px !important;
    min-height: 82px !important;
    flex-basis: 82px;
  }

  .main-nav {
    display: none !important;
  }

  .nav-toggle {
    display: inline-flex !important;
    flex: 0 0 auto;
  }
}

@media (max-width: 520px) {
  .topbar-inner {
    min-height: 30px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    font-size: .58rem;
    letter-spacing: .065em;
  }

  .header-inner {
    min-height: 78px;
    padding: 0 16px;
  }

  .brand .brand-full-logo {
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
    min-width: 72px !important;
    min-height: 72px !important;
    flex-basis: 72px;
  }

  .nav-toggle {
    width: 46px;
    height: 46px;
  }
}

/* ---------------------------------------------------------
   NATIONAL POSITIONING / COMMON TEXT
   --------------------------------------------------------- */
.national-service,
.national-note {
  color: var(--stone);
}

/* ---------------------------------------------------------
   FOOTER TYPOGRAPHY CONSISTENCY
   --------------------------------------------------------- */
.footer-grid h4,
.footer-grid a,
.footer-brand-name,
.footer-brand-description,
.footer-bottom,
.footer-bottom span {
  font-family: var(--sans) !important;
}

.footer-logo-text {
  font-family: var(--serif) !important;
}

/* Keep footer content inside the viewport on phones. */
.site-footer,
.site-footer .container,
.footer-grid,
.footer-grid > div {
  max-width: 100%;
  min-width: 0;
}

.footer-grid a,
.footer-brand-description,
.footer-bottom span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ---------------------------------------------------------
   FORM / CARD / BUTTON CONSISTENCY
   --------------------------------------------------------- */
input,
select,
textarea {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(166,128,61,.12);
}

/* ---------------------------------------------------------
   FINAL MOBILE OVERFLOW PROTECTION
   --------------------------------------------------------- */
@media (max-width: 768px) {
  .container {
    width: 100%;
    max-width: 100%;
  }

  .hero-grid,
  .two-col,
  .split,
  .content-grid {
    min-width: 0;
  }

  .footer-social {
    max-width: 100%;
  }
}

/* =========================================================
   PROPWISDOM — FINAL CIRCULAR LOGO OVERRIDE
   ---------------------------------------------------------
   Uses the complete propwisdom-logo.jpg without changing its
   colours. The circular frame clips only the outer corners;
   the PropWisdom name and tagline remain visible.
   ========================================================= */

.brand-logo-wrap {
  width: 106px !important;
  height: 106px !important;
  min-width: 106px !important;
  min-height: 106px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #1f2328 !important;
  border: 2px solid rgba(166, 128, 61, 0.55) !important;
  box-shadow: 0 5px 16px rgba(20, 32, 43, 0.14) !important;
  padding: 0 !important;
  flex: 0 0 106px !important;
}

.brand-logo-wrap picture {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.brand-logo-wrap img,
.brand .brand-full-logo {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #1f2328 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* The supplied JPG already contains the full PropWisdom wording. */
.brand-text {
  display: none !important;
}

@media (max-width: 1100px) {
  .brand-logo-wrap {
    width: 94px !important;
    height: 94px !important;
    min-width: 94px !important;
    min-height: 94px !important;
    flex-basis: 94px !important;
  }

  .brand-logo-wrap img,
  .brand .brand-full-logo {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 94px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .brand-logo-wrap {
    width: 82px !important;
    height: 82px !important;
    min-width: 82px !important;
    min-height: 82px !important;
    flex-basis: 82px !important;
  }
}

@media (max-width: 520px) {
  .header-inner {
    min-height: 82px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .brand-logo-wrap {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    min-height: 70px !important;
    flex-basis: 70px !important;
    border-width: 1.5px !important;
  }

  .nav-toggle {
    width: 44px !important;
    height: 44px !important;
  }
}

/* Footer logo remains compact and never creates horizontal overflow. */
.footer-logo-mark {
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center !important;
}
/* =========================================================
   HOW IT WORKS - THREE COLUMN PROCESS CARDS
========================================================= */

.how-process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 38px;
    align-items: stretch;
}

.how-process-card {
    height: 100%;
    background: #fff;
    border: 1px solid rgba(30, 60, 114, 0.12);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.how-process-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.09);
    border-color: rgba(30, 60, 114, 0.22);
}

.how-process-card-inner {
    height: 100%;
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
}

.how-process-card h3 {
    margin: 0 0 16px;
    font-family: "Fraunces", serif;
    font-size: 25px;
    line-height: 1.25;
    font-weight: 500;
    color: #1e3c72;
}

.how-process-card p {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.75;
    color: #555;
}

.how-process-card p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .how-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .how-process-card-inner {
        padding: 26px 24px;
    }

    .how-process-card h3 {
        font-size: 23px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .how-process-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 28px;
    }

    .how-process-card-inner {
        padding: 24px 22px;
    }

    .how-process-card h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .how-process-card p {
        font-size: 14.5px;
        line-height: 1.7;
    }

}

/* =========================================================
   PROPWISDOM UI / RESPONSIVE FINAL PATCH
   UI ONLY — no PHP, database, form or functionality changes.
   ========================================================= */

/* Keep the page stable across browsers and prevent viewport overflow. */
html { width:100%; max-width:100%; overflow-x:hidden; }
body { width:100%; max-width:100%; overflow-x:hidden; }

/* More readable typography. */
body {
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

p { line-height: 1.7; }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 5vw, 3.65rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.55rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.38rem); }

/* ---------------------------------------------------------
   HEADER / LOGO — use the supplied square logo at a controlled
   size. This also neutralises older conflicting logo rules.
   --------------------------------------------------------- */
.site-header .header-inner {
  min-height: 100px !important;
  height: auto !important;
  align-items: center !important;
  gap: 18px !important;
}

.site-header .brand {
  width: 92px !important;
  height: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  flex: 0 0 92px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  line-height: 0 !important;
}

.site-header .brand .brand-full-logo {
  display: block !important;
  width: 92px !important;
  height: 92px !important;
  min-width: 92px !important;
  min-height: 92px !important;
  max-width: 92px !important;
  max-height: 92px !important;
  flex: 0 0 92px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 50% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-header .main-nav {
  min-width: 0 !important;
}

.site-header .main-nav > ul {
  min-width: 0 !important;
}

/* Make desktop navigation easier to read without excessive spacing. */
.site-header .main-nav > ul > li > a,
.site-header .main-nav .nav-link {
  font-size: .84rem !important;
  line-height: 1.25 !important;
}

.site-header .nav-cta > a:not(.btn) {
  font-size: .76rem !important;
}

/* ---------------------------------------------------------
   TABLET / SMALL LAPTOP
   --------------------------------------------------------- */
@media (max-width: 1150px) {
  .site-header .header-inner {
    padding-left: 18px !important;
    padding-right: 18px !important;
    gap: 12px !important;
  }

  .site-header .brand,
  .site-header .brand .brand-full-logo {
    width: 82px !important;
    height: 82px !important;
    min-width: 82px !important;
    min-height: 82px !important;
    max-width: 82px !important;
    max-height: 82px !important;
    flex-basis: 82px !important;
  }

  .site-header .main-nav > ul > li > a,
  .site-header .main-nav .nav-link {
    padding-left: 4px !important;
    padding-right: 4px !important;
    font-size: .75rem !important;
  }
}

/* At this width, use the mobile menu before the desktop navigation
   becomes cramped. This is CSS-only; the existing JS controls it. */
@media (max-width: 980px) {
  .site-header .header-inner {
    min-height: 88px !important;
  }

  .site-header .main-nav {
    display: none !important;
  }

  .site-header .nav-toggle {
    display: inline-flex !important;
    flex: 0 0 44px !important;
  }

  .site-header .mobile-nav {
    display: none;
  }

  .site-header .mobile-nav.open {
    display: block !important;
  }
}

/* ---------------------------------------------------------
   PHONES — iPhone / Firefox / Android
   --------------------------------------------------------- */
@media (max-width: 600px) {
  .site-header .topbar-inner {
    min-height: 30px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .site-header .topbar {
    font-size: .60rem !important;
    letter-spacing: .055em !important;
  }

  .site-header .header-inner {
    min-height: 76px !important;
    padding: 0 16px !important;
  }

  .site-header .brand,
  .site-header .brand .brand-full-logo {
    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    min-height: 68px !important;
    max-width: 68px !important;
    max-height: 68px !important;
    flex-basis: 68px !important;
  }

  .site-header .nav-toggle {
    width: 44px !important;
    height: 44px !important;
  }

  .mobile-nav > a,
  .mobile-nav summary {
    min-height: 50px !important;
    padding: 14px 18px !important;
    font-size: .94rem !important;
  }

  .mobile-subnav a {
    padding: 12px 28px !important;
    font-size: .90rem !important;
  }

  .container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  section,
  section.tight {
    overflow: hidden;
  }

  .btn {
    min-height: 46px;
    padding: 12px 20px;
  }

  p,
  li {
    overflow-wrap: break-word;
  }
}

@media (max-width: 390px) {
  .site-header .brand,
  .site-header .brand .brand-full-logo {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    min-height: 62px !important;
    max-width: 62px !important;
    max-height: 62px !important;
    flex-basis: 62px !important;
  }

  .site-header .header-inner {
    min-height: 70px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  h1 { font-size: clamp(2.05rem, 10vw, 2.55rem); }
  h2 { font-size: clamp(1.65rem, 8vw, 2.1rem); }
}

/* Forms/cards should never force the viewport wider on Safari/Firefox. */
input, select, textarea, button {
  max-width: 100%;
}

img, svg, video, iframe {
  max-width: 100%;
}

/* Ensure grids/flex children are allowed to shrink. */
.grid-2, .grid-3, .grid-4,
.steps, .two-col, .split, .content-grid,
.hero-grid, .footer-grid,
.card, .step, .two-col > *, .grid-2 > *, .grid-3 > *, .grid-4 > * {
  min-width: 0;
}

/* ---------------------------------------------------------
   READABILITY — less cramped text on phones
   --------------------------------------------------------- */
@media (max-width: 600px) {
  .lede { font-size: 1.04rem !important; line-height: 1.65 !important; }
  .eyebrow { font-size: .78rem !important; }
  .mini-note { line-height: 1.65 !important; }
}

/* ---------- About: founder cards ---------- */
.team-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 4px; }
.team-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.team-head h3 { margin: 6px 0 0; }
.team-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--brass); padding: 3px; background: var(--paper-deep); }
.team-contact { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.team-contact li { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; font-size: .95rem; }
.team-contact span { min-width: 56px; color: var(--stone); font-size: .82rem; }
.team-contact a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.team-contact a:hover { color: var(--brass-deep); }
.team-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
@media (max-width: 520px) { .team-card { padding: 22px; } .team-actions .btn { flex: 1 1 100%; justify-content: center; } }
