
/* ============================================================
   Safe House Property Inspections - refreshed design draft
   Palette and typeface character kept from the live site.
   navy #0D2130 | red #ED1C24 | blue #0088CB | yellow #FFCB05
   ============================================================ */

:root{
  --navy:#0D2130;
  --navy-700:#12293a;
  --navy-600:#1b3a4d;
  --red:#ED1C24;
  --red-dark:#c8151c;
  --blue:#0088CB;
  --blue-dark:#00699e;
  --yellow:#FFCB05;

  --ink:#12222E;
  --muted:#5B6B78;
  --line:#E2E8EE;
  --bg:#F5F8FA;
  --white:#fff;

  --font-body:'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-accent:'Jost', 'Nunito Sans', system-ui, sans-serif;

  --r-sm:8px; --r:12px; --r-lg:18px; --r-pill:999px;
  --sh-1:0 1px 2px rgba(13,33,48,.06), 0 2px 8px rgba(13,33,48,.06);
  --sh-2:0 4px 12px rgba(13,33,48,.08), 0 12px 32px rgba(13,33,48,.10);
  --sh-3:0 18px 48px rgba(13,33,48,.18);
  --ease:cubic-bezier(.2,.7,.3,1);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--white); color:var(--ink);
  font-family:var(--font-body); font-weight:400; font-size:17px; line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
h1,h2,h3,h4{margin:0 0 .5em; font-weight:800; line-height:1.12; letter-spacing:-.015em; color:var(--ink)}
h1{font-size:clamp(34px,4.4vw,58px)}
h2{font-size:clamp(26px,2.9vw,40px)}
h3{font-size:22px}
p{margin:0 0 1em}
ul{margin:0 0 1em; padding-left:1.15em}
li{margin:.35em 0}

.container{width:100%; max-width:1200px; margin:0 auto; padding:0 24px}
.section{padding:88px 0}
.section--tight{padding:64px 0}
.bg-light{background:var(--bg)}
.bg-navy{background:var(--navy); color:#fff}
.bg-navy h1,.bg-navy h2,.bg-navy h3{color:#fff}

/* ---------- small parts ---------- */
.eyebrow{
  font-family:var(--font-accent); font-weight:500; font-size:13px;
  letter-spacing:.16em; text-transform:uppercase; color:var(--blue);
  display:flex; align-items:center; gap:10px; margin:0 0 14px;
}
.eyebrow::before{content:""; width:26px; height:3px; background:var(--yellow); border-radius:2px}
.bg-navy .eyebrow{color:var(--yellow)}
.lead{font-size:19px; color:var(--muted); max-width:62ch}
.bg-navy .lead{color:#B9C7D2}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-family:var(--font-accent); font-weight:500; font-size:14px;
  letter-spacing:.08em; text-transform:uppercase;
  padding:15px 26px; border-radius:var(--r-pill); border:2px solid transparent;
  cursor:pointer; transition:transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  white-space:nowrap;
}
.btn svg{width:17px; height:17px}
.btn--red{background:var(--red); color:#fff; box-shadow:0 6px 18px rgba(237,28,36,.28)}
.btn--red:hover{background:var(--red-dark); transform:translateY(-1px); box-shadow:0 10px 24px rgba(237,28,36,.34)}
.btn--navy{background:var(--navy); color:#fff}
.btn--ghost{background:transparent; color:var(--ink); border-color:var(--line)}
.btn--ghost:hover{border-color:var(--navy)}
.btn--onnavy{background:transparent; color:#fff; border-color:rgba(255,255,255,.45)}
.btn--onnavy:hover{border-color:#fff}
.btn--lg{padding:18px 32px; font-size:15px}

.pill{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-accent); font-size:12.5px; font-weight:500;
  letter-spacing:.1em; text-transform:uppercase;
  background:rgba(0,136,203,.10); color:var(--blue-dark);
  padding:7px 14px; border-radius:var(--r-pill);
}
.bg-navy .pill{background:rgba(255,203,5,.14); color:var(--yellow)}

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:60; background:#fff;
  border-bottom:1px solid var(--line);
}
.site-header .bar{
  display:flex; align-items:center; gap:28px; height:78px;
}
.brand{display:flex; align-items:center; gap:12px; font-weight:800; letter-spacing:-.02em}
.brand img{height:46px; width:auto}
.brand .brand-name{display:flex; flex-direction:column; line-height:1.06}
.brand .brand-name b{font-size:19px; color:var(--red); text-transform:uppercase; letter-spacing:.01em}
.brand .brand-name span{font-family:var(--font-accent); font-size:11.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted)}

.nav{display:flex; align-items:center; gap:26px; margin-left:auto}
.nav a{font-family:var(--font-accent); font-size:14.5px; font-weight:500; letter-spacing:.04em; text-transform:uppercase; color:var(--ink)}
.nav a:hover{color:var(--blue)}
.nav .has-menu{display:flex; align-items:center; gap:6px}
.nav .has-menu svg{width:11px; height:11px; opacity:.6}
.header-cta{display:flex; align-items:center; gap:16px}
.header-phone{display:flex; align-items:center; gap:8px; font-weight:700; white-space:nowrap}
.header-phone svg{width:17px; height:17px; color:var(--red)}
.header-phone small{display:block; font-family:var(--font-accent); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); font-weight:500}

/* ---------- hero ---------- */
.hero{background:var(--navy); color:#fff; position:relative; overflow:hidden}
.hero::after{
  content:""; position:absolute; right:-140px; top:-120px; width:520px; height:520px;
  background:radial-gradient(circle at 30% 30%, rgba(0,136,203,.55), transparent 62%);
}
.hero .grid{
  position:relative; z-index:1;
  display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center;
  padding:76px 0 84px;
}
.hero h1{color:#fff; margin-bottom:20px}
.hero h1 em{font-style:normal; color:var(--yellow)}
.hero .lead{color:#C6D3DC; font-size:19px; margin-bottom:28px}
.hero .actions{display:flex; flex-wrap:wrap; gap:14px; margin-bottom:30px}
.hero .hero-note{display:flex; align-items:center; gap:10px; font-size:15px; color:#9FB2BF}
.hero .hero-note svg{width:18px; height:18px; color:var(--yellow)}
.page-hero .hero-note,.util-hero .hero-note{display:flex; align-items:center; gap:10px; font-size:15px; color:#C6D3DC; margin:12px 0 0}
.page-hero .hero-note svg,.util-hero .hero-note svg{width:18px; height:18px; color:var(--yellow); flex:none}
.hero .shot{position:relative}
.hero .shot img{border-radius:var(--r-lg); box-shadow:var(--sh-3); aspect-ratio:4/3; object-fit:cover; width:100%}
.hero .shot .badge{
  position:absolute; left:-26px; bottom:32px; background:#fff; color:var(--ink);
  border-radius:var(--r); padding:16px 18px; box-shadow:var(--sh-2);
  display:flex; align-items:center; gap:12px; min-width:236px;
}
.hero .shot .badge .num{font-size:26px; font-weight:800; color:var(--red); line-height:1}
.hero .shot .badge p{margin:0; font-size:13.5px; color:var(--muted); line-height:1.35}

/* ---------- trust strip ---------- */
.trust{background:var(--navy-700); color:#fff}
.trust .row{
  display:grid; grid-template-columns:repeat(4,1fr); gap:20px; padding:26px 0;
}
.trust .item{display:flex; align-items:center; gap:13px}
.trust .item svg{width:26px; height:26px; color:var(--yellow); flex:none}
.trust .item b{display:block; font-size:17px; font-weight:800}
.trust .item span{font-size:13.5px; color:#9FB2BF}

/* ---------- services ---------- */
.svc-grid{display:grid; grid-template-columns:repeat(5,1fr); gap:18px; margin-top:44px}
.svc{
  background:#fff; border:1px solid var(--line); border-radius:var(--r);
  padding:24px 20px 22px; transition:transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.svc:hover{transform:translateY(-3px); box-shadow:var(--sh-2); border-color:transparent}
.svc .ico{
  width:46px; height:46px; border-radius:12px; display:grid; place-items:center; margin-bottom:16px;
  background:rgba(0,136,203,.10); color:var(--blue-dark);
}
.svc:nth-child(3n+2) .ico{background:rgba(237,28,36,.10); color:var(--red)}
.svc:nth-child(3n+3) .ico{background:rgba(255,203,5,.20); color:#8a6d00}
.svc .ico svg{width:24px; height:24px}
.svc h3{font-size:17px; margin-bottom:6px; line-height:1.3}
.svc p{margin:0; font-size:14.5px; color:var(--muted); line-height:1.5}
.svc .more{display:inline-flex; align-items:center; gap:6px; margin-top:14px; font-family:var(--font-accent); font-size:12.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--blue-dark)}
.svc .more svg{width:13px; height:13px}

/* ---------- split feature ---------- */
.split{display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center}
.split .shot img{border-radius:var(--r-lg); box-shadow:var(--sh-2); aspect-ratio:5/4; object-fit:cover}
.split ul.ticks{list-style:none; padding:0; margin:0 0 26px}
.split ul.ticks li{position:relative; padding-left:34px; margin:.6em 0; font-size:16.5px}
.split ul.ticks li::before{
  content:""; position:absolute; left:0; top:.34em; width:20px; height:20px; border-radius:50%;
  background:rgba(0,136,203,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230088CB' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- two feature cards ---------- */
.cards-2{display:grid; grid-template-columns:1fr 1fr; gap:26px}
.fcard{
  background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden;
  display:flex; flex-direction:column; box-shadow:var(--sh-1);
}
.fcard img{aspect-ratio:16/9; object-fit:cover; width:100%}
.fcard .body{padding:28px 30px 30px}
.fcard h3{font-size:23px}
.fcard ul{color:var(--muted); font-size:15.5px}
.fcard .foot{margin-top:auto; padding-top:6px}

/* ---------- stats band ---------- */
.stats{background:var(--blue); color:#fff}
.stats .row{display:grid; grid-template-columns:repeat(4,1fr); gap:24px; padding:52px 0; text-align:center}
.stats b{display:block; font-size:40px; font-weight:800; line-height:1; letter-spacing:-.02em}
.stats span{font-family:var(--font-accent); font-size:13px; letter-spacing:.12em; text-transform:uppercase; opacity:.92}

/* ---------- scheduler ---------- */
.sched{background:var(--navy); color:#fff}
.sched .inner{
  display:grid; grid-template-columns:1fr 1.1fr; gap:52px; align-items:center;
  padding:74px 0;
}
.sched .panel{
  background:#fff; border-radius:var(--r-lg); padding:26px; color:var(--ink); box-shadow:var(--sh-3);
}
.sched .panel h4{margin:0 0 4px; font-size:18px}
.sched .panel p{margin:0 0 18px; font-size:14px; color:var(--muted)}
.sched .slot{
  border:1px dashed var(--line); border-radius:var(--r); height:150px; display:grid; place-items:center;
  color:var(--muted); font-size:13.5px; text-align:center; background:var(--bg);
}
.sched .slot code{font-family:ui-monospace,Menlo,Consolas,monospace; font-size:11.5px; color:var(--blue-dark)}

/* ---------- contact ---------- */
.contact-grid{display:grid; grid-template-columns:.85fr 1.15fr; gap:56px; align-items:start}
.form{background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); padding:30px; box-shadow:var(--sh-1)}
.form .row2{display:grid; grid-template-columns:1fr 1fr; gap:16px}
.field{margin-bottom:16px}
.field label{display:block; font-family:var(--font-accent); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-bottom:7px}
.field input,.field select,.field textarea{
  width:100%; font-family:var(--font-body); font-size:16px; color:var(--ink);
  padding:13px 15px; border:1px solid var(--line); border-radius:var(--r-sm); background:#fff;
}
.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid rgba(0,136,203,.35); border-color:var(--blue)}
.info li{display:flex; gap:14px; margin-bottom:18px; list-style:none}
.info{padding:0; margin:0}
.info svg{width:20px; height:20px; color:var(--red); flex:none; margin-top:3px}
.info b{display:block; font-size:16px}
.info span{color:var(--muted); font-size:15px}

/* ---------- page hero (service pages) ---------- */
.page-hero{background:var(--navy); color:#fff; padding:28px 0 62px}
.crumbs{font-family:var(--font-accent); font-size:12.5px; letter-spacing:.1em; text-transform:uppercase; color:#93A6B4; margin-bottom:34px}
.crumbs a:hover{color:#fff}
.crumbs span{color:var(--yellow)}
.page-hero .grid{display:grid; grid-template-columns:1.15fr .85fr; gap:52px; align-items:center}
/* a page hero with no photo gets one column, never an empty frame (TRO-300) */
.page-hero .grid--one{grid-template-columns:1fr; gap:0}
.page-hero .grid--one > div:first-child{max-width:860px}
.page-hero h1{color:#fff; margin-bottom:18px}
.page-hero .lead{color:#C6D3DC}

/* ---------- article layout ---------- */
.layout{display:grid; grid-template-columns:1fr 340px; gap:52px; align-items:start}
.article h2{margin-top:44px; font-size:30px}
.article h2:first-child{margin-top:0}
.article h3{margin-top:26px; font-size:20px}
.checkgrid{display:grid; grid-template-columns:1fr 1fr; gap:10px 26px; list-style:none; padding:0; margin:18px 0 6px}
.checkgrid li{position:relative; padding-left:32px; margin:0; font-size:16px}
.checkgrid li::before{
  content:""; position:absolute; left:0; top:.28em; width:20px; height:20px; border-radius:50%;
  background:rgba(0,136,203,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230088CB' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}
.steps{counter-reset:s; list-style:none; padding:0; margin:22px 0 0}
.steps li{counter-increment:s; position:relative; padding-left:62px; margin-bottom:24px}
.steps li::before{
  content:counter(s); position:absolute; left:0; top:-2px; width:42px; height:42px; border-radius:12px;
  background:var(--navy); color:#fff; font-weight:800; font-size:19px; display:grid; place-items:center;
}
.steps li b{display:block; font-size:17.5px; margin-bottom:3px}
.issues{display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:22px; counter-reset:i}
.issue{background:var(--bg); border-radius:var(--r); padding:20px 22px; position:relative; padding-left:58px}
.issue::before{
  counter-increment:i; content:counter(i);
  position:absolute; left:20px; top:20px; width:26px; height:26px; border-radius:50%;
  background:var(--red); color:#fff; font-size:13.5px; font-weight:800; display:grid; place-items:center;
}
.issue b{display:block; margin-bottom:2px}
.issue p{margin:0; font-size:15px; color:var(--muted)}
.faq{border-top:1px solid var(--line); margin-top:24px}
.faq .q{padding:22px 0; border-bottom:1px solid var(--line); display:grid; grid-template-columns:1fr 34px; gap:20px; align-items:start}
.faq .q b{font-size:17.5px; font-weight:800; display:block; margin-bottom:8px}
.faq .q p{margin:0; color:var(--muted); font-size:16px}
.faq .q svg{width:22px; height:22px; color:var(--blue); margin-top:3px}

/* ---------- sidebar ---------- */
.sidebar{position:sticky; top:104px; display:grid; gap:20px}
.scard{background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); padding:26px; box-shadow:var(--sh-1)}
.scard--navy{background:var(--navy); color:#fff; border-color:transparent}
.scard--navy h4{color:#fff}
.scard h4{margin:0 0 6px; font-size:19px; font-weight:800}
.scard p{font-size:15px; color:var(--muted); margin-bottom:18px}
.scard--navy p{color:#B9C7D2}
.scard .stack{display:grid; gap:10px}
.scard .kv{display:flex; gap:12px; align-items:flex-start; font-size:15px}
.scard .kv svg{width:18px; height:18px; color:var(--yellow); flex:none; margin-top:3px}
.scard--light .kv svg{color:var(--red)}
.scard .kv span{color:var(--muted)}
.scard hr{border:0; border-top:1px solid var(--line); margin:18px 0}
.scard--navy hr{border-top-color:rgba(255,255,255,.16)}

/* ---------- cta band ---------- */
.ctaband{background:var(--navy); color:#fff; border-radius:var(--r-lg); padding:44px 48px; display:flex; align-items:center; gap:32px; justify-content:space-between}
.ctaband h3{color:#fff; margin:0 0 6px; font-size:26px}
.ctaband p{margin:0; color:#B9C7D2}
.ctaband .btns{display:flex; gap:12px; flex:none}

/* ---------- footer ---------- */
.site-footer{background:var(--navy); color:#9FB2BF; padding:64px 0 28px; font-size:15px}
.site-footer .cols{display:grid; grid-template-columns:1.4fr 1fr 1fr 1.1fr; gap:40px; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,.12)}
.site-footer h4{color:#fff; font-family:var(--font-accent); font-size:12.5px; letter-spacing:.14em; text-transform:uppercase; margin:0 0 16px; font-weight:500}
.site-footer ul{list-style:none; padding:0; margin:0}
.site-footer li{margin:.5em 0}
.site-footer a:hover{color:#fff}
.site-footer .fbrand img{height:52px; background:#fff; padding:8px 10px; border-radius:10px; margin-bottom:16px}
.site-footer .socials{display:flex; gap:10px; margin-top:16px}
.site-footer .socials a{width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.09); display:grid; place-items:center; color:#fff}
.site-footer .socials svg{width:17px; height:17px}
.site-footer .base{display:flex; justify-content:space-between; gap:20px; padding-top:22px; font-size:13.5px}


/* ============================================================
   Pass 1 additions: form states. Additive only.
   ============================================================ */
.form-note{margin:12px 0 0; font-size:13px; color:var(--muted); line-height:1.5}
.form-status{display:none; margin:14px 0 0; padding:12px 14px; border-radius:var(--r-sm);
  font-size:15px; line-height:1.5; border:1px solid var(--line); background:var(--bg); color:var(--ink)}
.form-status[data-state="error"]{border-color:rgba(237,28,36,.4); background:rgba(237,28,36,.06); color:#a11016}
.form-status[data-state="ok"]{border-color:rgba(0,136,203,.4); background:rgba(0,136,203,.07); color:var(--blue-dark)}
.form-status[data-state="notice"]{border-color:rgba(255,203,5,.55); background:rgba(255,203,5,.12); color:#7a5f00}


/* ============================================================
   Pass 2: mobile navigation and the tap to call button.
   Everything in here is inert above 1024px, so the approved
   desktop header is unchanged.
   ============================================================ */
.nav-toggle,.header-call{display:none}
.mobile-nav{display:none}
@media (max-width:1024px){
  .site-header .bar{height:68px; gap:12px}
  .nav{display:none}
  .header-phone{display:none}
  .header-quote{display:none}
  .header-cta{margin-left:auto; gap:10px}
  .brand img{height:40px}
  .header-call{display:inline-flex; padding:11px 16px; font-size:13px}
  .header-call svg{width:16px; height:16px}
  .nav-toggle{
    display:inline-flex; flex-direction:column; justify-content:center; gap:5px;
    width:44px; height:44px; padding:0 11px; border:1px solid var(--line);
    background:#fff; border-radius:var(--r-sm); cursor:pointer;
  }
  .nav-toggle .nt-bar{display:block; height:2px; background:var(--navy); border-radius:2px;
    transition:transform .2s var(--ease), opacity .2s var(--ease)}
  .nav-toggle[aria-expanded="true"] .nt-bar:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .nav-toggle[aria-expanded="true"] .nt-bar:nth-child(2){opacity:0}
  .nav-toggle[aria-expanded="true"] .nt-bar:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .mobile-nav{
    display:block; background:#fff; border-top:1px solid var(--line);
    max-height:calc(100vh - 68px); overflow-y:auto;
    box-shadow:0 18px 40px rgba(13,33,48,.14);
  }
  .mobile-nav[hidden]{display:none}
  .mn-inner{display:flex; flex-direction:column; padding:8px 24px 24px}
  .mn-inner > a{
    font-family:var(--font-accent); font-size:15px; font-weight:500; letter-spacing:.02em;
    text-transform:uppercase; color:var(--ink); padding:15px 0; border-bottom:1px solid var(--line);
  }
  .mn-inner > a:hover{color:var(--blue)}
  .mn-cta{display:grid; gap:10px; margin-top:20px}
}
@media (max-width:480px){ .hc-long{display:none} .header-call{padding:11px 14px} }
@media (min-width:481px){ .hc-short{display:none} }

.note-box{margin:26px 0 0; padding:20px 22px; border:1px solid var(--line); border-left:4px solid var(--yellow);
  border-radius:var(--r); background:var(--bg); display:flex; align-items:center; gap:20px; flex-wrap:wrap; justify-content:space-between}
.note-box p{margin:0; font-size:15.5px; color:var(--muted); max-width:52ch}
.note-box .btn{flex:none}

/* ============================================================
   Pass 3 additions: utility pages, form groups, scheduler embed.
   Additive only. Nothing here changes an existing selector.
   ============================================================ */
.form--wide{max-width:900px}
.form .row3{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
@media (max-width:720px){ .form .row2, .form .row3{grid-template-columns:1fr} }
.form .req{color:var(--red); margin-left:2px}
fieldset.fgroup{border:0; padding:0; margin:0 0 18px}
fieldset.fgroup > legend, .group-label{
  display:block; font-family:var(--font-accent); font-size:12px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--muted); margin-bottom:9px;
}
.checks{display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:8px 18px}
.checks label{display:flex; align-items:flex-start; gap:9px; font-size:15.5px; color:var(--ink); cursor:pointer; line-height:1.4}
.checks input[type=checkbox]{width:18px; height:18px; margin:2px 0 0; accent-color:var(--blue); flex:none}
.form .hint{font-size:13.5px; color:var(--muted); margin:-4px 0 14px}
.form .section-split{border-top:1px solid var(--line); margin:22px 0 18px; padding-top:20px}

/* scheduler */
.embed-card{background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--sh-1); overflow:hidden}
.embed-card iframe{display:block; width:100%; height:1400px; border:0}
.embed-fallback{padding:16px 20px; border-top:1px solid var(--line); background:var(--bg); font-size:15px; color:var(--muted)}
.embed-fallback a{color:var(--blue-dark); font-weight:700; text-decoration:underline}
@media (max-width:720px){ .embed-card iframe{height:1100px} }

/* utility page hero */
.util-hero{background:var(--navy); color:#fff; padding:30px 0 54px}
.util-hero h1{color:#fff; margin-bottom:16px}
.util-hero .lead{color:#C6D3DC; max-width:64ch}

/* offers (booking) */
.offer-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px}
@media (max-width:900px){ .offer-grid{grid-template-columns:1fr} }
.offer{background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); padding:24px; box-shadow:var(--sh-1); display:flex; flex-direction:column}
.offer .tag{font-family:var(--font-accent); font-size:11.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--red); margin-bottom:10px}
.offer h3{font-size:20px; margin-bottom:6px}
.offer p{font-size:15px; color:var(--muted); margin:0 0 14px}
.offer .price{margin-top:auto; display:flex; align-items:baseline; gap:10px}
.offer .was{color:var(--muted); text-decoration:line-through; font-size:17px}
.offer .now{font-size:30px; font-weight:800; color:var(--red)}
.offer .save{font-size:13.5px; color:var(--blue-dark); font-weight:700}
.why-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:22px}
@media (max-width:820px){ .why-grid{grid-template-columns:1fr} }
.why{background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:22px}
.why b{display:block; font-size:17.5px; margin-bottom:6px}
.why p{margin:0; font-size:15.5px; color:var(--muted)}

.embed-bleed{width:100%; max-width:100%; margin:0}
.embed-bleed .embed-card{border-radius:0; border-left:0; border-right:0}

/* ============================================================
   Pass 3: responsive layer. The approved design was drawn at 1440
   only, so every multi column grid below has no phone behaviour
   without this. Everything here lives inside a max-width query,
   so the 1440 desktop rendering is unchanged.
   ============================================================ */
@media (max-width:1100px){
  .svc-grid{grid-template-columns:repeat(3,1fr)}
  .layout{grid-template-columns:1fr; gap:36px}
  .sidebar{position:static; top:auto}
}
@media (max-width:1024px){
  .hero .grid{padding:56px 0 64px; gap:36px}
  .page-hero{padding:22px 0 46px}
  .page-hero .grid{gap:34px}
}
@media (max-width:900px){
  .hero .grid,.split,.cards-2,.sched .inner,.contact-grid,.page-hero .grid{grid-template-columns:1fr}
  .split{gap:34px}
  .hero .shot .badge{left:16px; bottom:16px}
  .trust .row{grid-template-columns:1fr 1fr; gap:16px}
  .site-footer .cols{grid-template-columns:1fr 1fr; gap:30px}
  .ctaband{flex-direction:column; align-items:flex-start; gap:20px; padding:32px 28px}
  .section{padding:56px 0}
  .section--tight{padding:44px 0}
}
@media (max-width:820px){
  .svc-grid{grid-template-columns:1fr 1fr}
  .stats .row{grid-template-columns:1fr 1fr; gap:26px; padding:40px 0}
  .stats b{font-size:34px}
  .hero h1{font-size:clamp(30px,7vw,40px)}
  .checkgrid{gap:8px 18px}
}
@media (max-width:640px){
  .svc-grid,.checkgrid,.issues,.why-grid,.trust .row{grid-template-columns:1fr}
  .stats .row{grid-template-columns:1fr 1fr}
  .note-box{flex-direction:column; align-items:flex-start; gap:14px}
  .faq .q{grid-template-columns:1fr 26px; gap:14px}
  .steps li{padding-left:54px}
  .steps li::before{width:38px; height:38px; font-size:17px}
}
@media (max-width:560px){
  .container{padding:0 18px}
  .section{padding:44px 0}
  .section--tight{padding:36px 0}
  .hero .grid{padding:40px 0 48px}
  .util-hero{padding:22px 0 38px}
  .util-hero h1,.page-hero h1{font-size:clamp(26px,8vw,34px)}
  .form{padding:22px 18px}
  .site-footer{padding:44px 0 22px}
  .site-footer .cols{grid-template-columns:1fr; gap:26px}
  .site-footer .base{flex-direction:column; gap:10px}
  .stats .row{grid-template-columns:1fr; gap:22px}
  .offer .now{font-size:26px}
  .embed-fallback{font-size:14px}
  .ctaband{padding:26px 20px}
  .ctaband .btns{width:100%; display:grid; gap:10px}
  .ctaband .btns .btn{width:100%}
}

/* ============================================================
   Pass 4 additions: trust and legal pages.
   Additive only. Nothing here changes an existing selector.
   ============================================================ */

/* wide client photo band under a page hero */

/* T3 content pages carry no booking sidebar, so the text column needs its own width */
.article--wide{max-width:940px}
.article--legal{max-width:880px}

/* click to play video: nothing is requested from YouTube until the button is pressed */
.video{position:relative; border-radius:var(--r-lg); overflow:hidden; background:#0b1620; box-shadow:var(--sh-2)}
.video img{width:100%; aspect-ratio:16/9; object-fit:cover}
.video iframe{width:100%; aspect-ratio:16/9; border:0; display:block}
.video .vp{position:absolute; inset:0; display:grid; place-items:center; gap:0; border:0; padding:0;
  background:linear-gradient(180deg,rgba(13,33,48,.10),rgba(13,33,48,.45)); cursor:pointer}
.video .vp .ring{width:78px; height:78px; border-radius:50%; background:var(--red); display:grid; place-items:center;
  box-shadow:0 12px 32px rgba(0,0,0,.45); transition:transform .18s var(--ease)}
.video .vp:hover .ring{transform:scale(1.06)}
.video .vp svg{width:30px; height:30px; color:#fff; margin-left:3px}
.video-cap{font-size:13.5px; color:var(--muted); margin:.7em 0 0}

/* FAQ accordion. Plain details and summary, so it works with scripting off. */
.acc{border-top:1px solid var(--line); margin-top:26px}
.acc details{border-bottom:1px solid var(--line)}
.acc summary{display:flex; align-items:flex-start; justify-content:space-between; gap:22px;
  padding:21px 0; cursor:pointer; list-style:none; font-size:17.5px; font-weight:800}
.acc summary::-webkit-details-marker{display:none}
.acc summary::after{content:""; flex:none; width:22px; height:22px; margin-top:3px; transition:transform .2s var(--ease);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230088CB' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/22px no-repeat}
.acc details[open] summary::after{transform:rotate(45deg)}
.acc .a{padding:0 54px 22px 0; color:var(--muted); font-size:16px}
.acc .a p{margin:0 0 .8em}
.acc .a p:last-child{margin-bottom:0}
.acc .cta{display:flex; gap:12px; flex-wrap:wrap; margin-top:34px}

/* client quotes */
.quotes{display:grid; grid-template-columns:repeat(3,1fr); gap:20px}
.quote{background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); padding:26px;
  box-shadow:var(--sh-1); display:flex; flex-direction:column}
.quote p{font-size:15.5px; color:var(--muted); margin:0 0 18px}
.quote .who{margin-top:auto; font-weight:800}
.quote .when{font-family:var(--font-accent); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted)}

/* long legal and standards text */
.legal h2{font-size:clamp(20px,2.1vw,26px); margin-top:38px}
.legal h2:first-child{margin-top:0}
.legal h3{font-size:18px; margin-top:26px}
.legal p, .legal li{color:var(--muted); font-size:16px}
.legal .eff{font-family:var(--font-accent); font-size:12.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted)}
.legal .links{display:grid; grid-template-columns:1fr 1fr; gap:10px 26px; list-style:none; padding:0; margin:26px 0 0}
.sop h3{font-weight:800; color:var(--ink); margin-top:26px; font-size:17.5px}
.sop h4{font-weight:800; color:var(--ink); margin:22px 0 6px; font-size:15.5px}
.sop p{font-size:15.5px; color:var(--muted); margin:0 0 .5em}
.sop .ltr{padding-left:26px; position:relative}
.sop .ltr::before{content:attr(data-m); position:absolute; left:0; color:var(--ink); font-weight:700}

/* eleven service cards: four across, so no single card is orphaned on a row */
.svc-grid--four{grid-template-columns:repeat(4,1fr)}

@media (max-width:1100px){ .svc-grid--four{grid-template-columns:repeat(3,1fr)} }
@media (max-width:820px){ .svc-grid--four{grid-template-columns:1fr 1fr} }
@media (max-width:640px){ .svc-grid--four{grid-template-columns:1fr} }
@media (max-width:900px){
  .quotes{grid-template-columns:1fr}
  .acc .a{padding-right:34px}
}
@media (max-width:640px){
  .legal .links{grid-template-columns:1fr}
  .video .vp .ring{width:62px; height:62px}
  .video .vp svg{width:24px; height:24px}
}

/* ============================================================
   Pass 5 additions: partner pages (T7), content pages (T3) and
   index pages (T4). Additive only. Nothing here changes an
   existing selector.
   ============================================================ */

/* T7 concierge block: copy beside the form */
.concierge{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start}
.concierge h2{margin-bottom:14px}
.concierge .form h3{margin-bottom:18px}
.concierge ul.ticks{list-style:none; padding:0; margin:0}
.concierge ul.ticks li{position:relative; padding-left:34px; margin:.6em 0; font-size:16px; color:var(--muted)}
.concierge ul.ticks li::before{content:""; position:absolute; left:0; top:.34em; width:20px; height:20px; border-radius:50%;
  background:rgba(0,136,203,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230088CB' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat}

/* inline "learn more" link inside a card */
.kv-link{font-family:var(--font-accent); font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:var(--blue-dark); font-weight:500}
.kv-link:hover{color:var(--red)}

/* offer cards carry a checklist and a single price */
.offer ul.ticks{list-style:none; padding:0}
.offer ul.ticks li{position:relative; padding-left:30px; font-size:15px; color:var(--muted)}
.offer ul.ticks li::before{content:""; position:absolute; left:0; top:.4em; width:18px; height:18px; border-radius:50%;
  background:rgba(0,136,203,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230088CB' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat}

/* T4 index: category tab strip and post cards */
.catnav{display:flex; flex-wrap:wrap; gap:8px 10px; margin:0 0 26px}
.catnav a{font-family:var(--font-accent); font-size:13px; font-weight:500; letter-spacing:.05em; text-transform:uppercase;
  color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:var(--r-pill); padding:9px 16px}
.catnav a:hover{border-color:var(--navy)}
.catnav a.is-active{background:var(--navy); color:#fff; border-color:var(--navy)}
.rescount{font-family:var(--font-accent); font-size:13px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin:0 0 22px}

.post-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px}
.pcard{display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:var(--r-lg);
  padding:24px 24px 22px; box-shadow:var(--sh-1); transition:transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease)}
.pcard:hover{transform:translateY(-3px); box-shadow:var(--sh-2); border-color:transparent}
.pcard h3{font-size:18px; line-height:1.3; margin:0 0 10px}
.pcard p{font-size:15px; color:var(--muted); margin:0 0 14px}
.pcard__date{margin-top:auto; font-family:var(--font-accent); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--blue-dark)}

@media (max-width:1100px){ .post-grid{grid-template-columns:1fr 1fr} }
@media (max-width:900px){ .concierge{grid-template-columns:1fr; gap:34px} }
@media (max-width:640px){ .post-grid{grid-template-columns:1fr} }

/* T5 post pages: article media, post meta line, light band, video facade */
.article img{max-width:100%; height:auto; border-radius:14px; display:block}
.article figure{margin:26px 0}
.article figcaption{font-size:13.5px; color:var(--muted); margin-top:8px}
.article blockquote{margin:24px 0; padding:6px 0 6px 22px; border-left:4px solid var(--blue); color:var(--muted)}
.article ul,.article ol{padding-left:22px}
.article li{margin-bottom:8px}
.postmeta{font-family:var(--font-accent); font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:var(--blue-dark); margin:0 0 6px}
.section--light{background:var(--bg)}
.yt-facade{position:relative; aspect-ratio:16/9; border-radius:14px; overflow:hidden; background:#0B1A26;
  display:grid; place-items:center; margin:26px 0}
.yt-facade .yt-play{background:none; border:0; color:#fff; cursor:pointer; display:grid; place-items:center}
.yt-facade iframe{position:absolute; inset:0; width:100%; height:100%; border:0}

/* ============================================================
   Pass 6 additions (TRO-244): header dropdowns, legible logo,
   Schedule Now, service card photos, image post cards, category
   band and load more. Additive only.
   ============================================================ */

/* legible brand: bigger logo plus the wordmark */
.site-header .bar{height:84px; gap:22px}
.brand img{height:58px; width:auto}
.brand .brand-name b{font-size:18px}
.brand .brand-name span{font-size:11px}

/* top nav tightened so the extra header button still fits */
.nav{gap:20px}
.nav a{font-size:13.5px}
.header-cta{gap:12px}
.header-quote,.header-schedule{padding:12px 18px; font-size:12.5px}
.header-phone{font-size:15px}

/* dropdown menus (Our Services, Resources) */
.nav .menu{position:relative}
.nav .menu::after{content:""; position:absolute; left:-8px; right:-8px; top:100%; height:18px}
.nav .menu-panel{
  position:absolute; top:calc(100% + 14px); left:50%; z-index:70;
  transform:translateX(-50%) translateY(6px);
  background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:var(--sh-2);
  padding:10px; min-width:250px; display:grid; gap:2px;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.nav .menu:hover .menu-panel,.nav .menu:focus-within .menu-panel{
  opacity:1; visibility:visible; pointer-events:auto; transform:translateX(-50%) translateY(0);
}
.nav .menu-panel a{
  display:block; padding:10px 13px; border-radius:9px; font-size:13px;
  letter-spacing:.02em; text-transform:none; color:var(--ink); white-space:nowrap;
}
.nav .menu-panel a:hover{background:var(--bg); color:var(--blue-dark)}
.nav .menu-sep{height:1px; background:var(--line); margin:7px 10px}

/* service cards with a real photo */
.svc--photo{padding:0; overflow:hidden; display:flex; flex-direction:column}
.svc--photo .svc-photo{width:100%; aspect-ratio:16/10; object-fit:cover; display:block; background:var(--bg)}
.svc--photo .svc-body{padding:20px 20px 22px; display:flex; flex-direction:column; flex:1}
.svc--photo h3{font-size:17px; margin-bottom:6px; line-height:1.3}
.svc--photo p{margin:0; font-size:14.5px; color:var(--muted); line-height:1.5}
.svc--photo .more{margin-top:auto; padding-top:14px}

/* wide photo band under a page hero */

/* resources: category band, image cards, load more */
.catband{background:var(--bg); border:1px solid var(--line); border-radius:var(--r-lg); padding:20px 22px; margin:0 0 24px}
.catband h2{font-family:var(--font-accent); font-size:14px; font-weight:500; letter-spacing:.12em;
  text-transform:uppercase; color:var(--muted); margin:0 0 14px}
.catband .catnav{margin:0}

.pcard{padding:0; overflow:hidden}
.pcard__img{display:block; width:100%; aspect-ratio:16/9; object-fit:cover; background:var(--bg)}
.pcard__body{padding:22px 24px 24px; display:flex; flex-direction:column; flex:1}
.pcard__body h3{margin-top:0}
.pcard[hidden]{display:none}
.resmore{display:flex; justify-content:center; margin-top:34px}
.resmore .btn{cursor:pointer}

/* phone dots: keep the logo legible on small screens too */
@media (max-width:1024px){
  .site-header .bar{height:72px}
  .brand img{height:46px}
  .header-schedule{display:inline-flex; padding:11px 15px; font-size:12.5px}
}
@media (max-width:560px){
  .brand .brand-name span{display:none}
}

/* photo gallery used on service and content pages (TRO-244) */
.gallery{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.gallery img{width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:var(--r); box-shadow:var(--sh-1)}
.gallery--two{grid-template-columns:repeat(2,1fr)}
@media (max-width:760px){ .gallery{grid-template-columns:1fr 1fr} .gallery--two{grid-template-columns:1fr} }
@media (max-width:480px){ .gallery{grid-template-columns:1fr} }

/* ============================================================
   Pass 7 (TRO-284): the phone header fits the screen.
   Below 561 px the header measured 421 px wide on a 360 px screen:
   the Schedule Now and Call buttons rode over the wordmark, the
   menu button sat off the right edge, and every page scrolled
   sideways. The logo image already spells out the Safe House name,
   so the duplicate wordmark next to it is dropped on phones, and
   the two buttons plus the menu button are trimmed to fit one row
   with a small gap. Nothing at 561 px and above changes.
   ============================================================ */
@media (max-width:560px){
  .container{padding:0 15px}
  .site-header .bar{height:66px; gap:10px}
  .brand img{height:42px}
  .brand .brand-name{display:none}
  .header-cta{gap:8px}
  .header-schedule{padding:10px 13px; font-size:11.5px; letter-spacing:.04em}
  .header-call{padding:11px 12px}
  .header-call .hc-long,.header-call .hc-short{display:none}
  .nav-toggle{width:42px; height:42px; padding:0 10px}
  /* the sidebar "Download a sample report" button is nowrap, and its
     min width set the whole content column to 346 px, one pixel wider
     than a 360 px screen */
  .scard .btn{font-size:12px; letter-spacing:.04em; padding:11px 16px}
}
@media (max-width:359px){
  .brand img{height:36px}
  .header-schedule{padding:10px 11px; font-size:11px}
  .header-call{padding:10px 11px}
  .nav-toggle{width:40px; height:40px; padding:0 9px}
}

/* long unbroken strings (the office email address) must wrap on
   phones, or a single line can push the page wider than the screen */
.info b,.info span,.info a{overflow-wrap:anywhere}

/* ============================================================
   Pass 8 (TRO-293): the approved homepage rebuild.
   Hero vans photo and proof row, the live scheduler column that
   lazy loads, real Google review cards, the free guide block,
   the four metric cards and the plain service link cards.
   Additive only. Nothing here changes an existing selector.
   ============================================================ */

.hero .eyebrow{color:var(--yellow)}
.hero-proof{display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin:0 0 28px; color:#C6D3DC; font-size:15.5px}
.hero-proof .sep{opacity:.5}
.stars{display:inline-flex; align-items:center; gap:3px; color:var(--yellow); flex:none}
.stars svg{width:17px; height:17px}
.sec-head{max-width:760px; margin:0 0 42px}
.sec-head.center{margin:0 auto 46px; text-align:center}
.sec-head h2:last-child{margin-bottom:0}
.eyebrow.center{justify-content:center}
.rev-head .stars{vertical-align:middle; margin:0 10px 4px 0}
.rev-head .stars svg{width:22px; height:22px}
.quote .stars{margin-bottom:12px}
.quote .stars svg{width:16px; height:16px}

/* scheduler: copy beside the live ISN embed */
.book-grid{display:grid; grid-template-columns:1fr 1.08fr; gap:52px; align-items:center}
.book-grid ul.ticks{list-style:none; padding:0; margin:0 0 26px}
.book-grid ul.ticks li{position:relative; padding-left:34px; margin:.6em 0; font-size:16.5px}
.book-grid ul.ticks li::before{
  content:""; position:absolute; left:0; top:.34em; width:20px; height:20px; border-radius:50%;
  background:rgba(0,136,203,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230088CB' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}
.price-box{display:inline-block; background:rgba(255,203,5,.22); border:1px solid rgba(255,203,5,.6);
  border-radius:var(--r); padding:13px 18px; font-size:17px; margin:0 0 14px; color:var(--ink)}
.price-box b{font-size:20px; color:var(--red)}
.book-call{font-size:15.5px; color:var(--muted); margin:0}
.book-call a{color:var(--blue-dark); font-weight:700}
.sched-embed{background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--sh-2); overflow:hidden}
.sched-embed iframe,.sched-frame{display:block; width:100%; height:900px; border:0}
.sched-skeleton{min-height:900px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:18px; text-align:center; color:var(--muted); padding:30px}
.sched-skeleton p{margin:0; font-size:15px; line-height:1.55; max-width:34ch}
.sched-skeleton p b{display:block; color:var(--ink); font-size:16.5px; margin-bottom:6px}
.sched-spin{width:34px; height:34px; border-radius:50%; border:3px solid var(--line); border-top-color:var(--blue);
  animation:schedspin 1s linear infinite}
@keyframes schedspin{to{transform:rotate(360deg)}}

/* reviews band */
.bg-tint{background:#EEF3F7}
.rev-cta{text-align:center; margin:36px 0 0}

/* free guide */
.guide-grid{display:grid; grid-template-columns:.85fr 1.15fr; gap:64px; align-items:center}
.guide-cover{position:relative; padding:10px 26px}
.guide-cover img{border-radius:8px; box-shadow:var(--sh-3); transform:rotate(-3deg); width:100%; height:auto}
.guide-ticks{margin-bottom:28px}
.guide-form{max-width:540px; padding:26px}
.guide-form .form-note{margin:12px 0 0}

/* guide card pair: the two free guides read as a matching pair (front page, TRO-180) */
.guide-pair{display:grid; grid-template-columns:1fr 1fr; gap:22px; align-items:start}
.guide-pair .guide-cover{padding:8px 10px}

/* shared guide request form (front page, both guide pages, TRO-180) */
.guide-choice{border:0; padding:0; margin:0 0 18px}
.guide-choice legend{padding:0; margin-bottom:8px; font-size:14px; font-weight:700; color:var(--ink)}
.guide-choice label{display:flex; align-items:center; gap:9px; padding:7px 0; font-size:15px; cursor:pointer}
.guide-choice input{width:18px; height:18px; accent-color:var(--red); flex:none}
.guide-form .opt{font-weight:400; color:var(--muted)}

/* why Safe House: four metrics across */
.metric-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px}
.metric{background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); padding:26px 24px; box-shadow:var(--sh-1)}
.metric b{display:block; font-size:38px; font-weight:800; color:var(--red); line-height:1; letter-spacing:-.02em; margin-bottom:14px}
.metric h3{font-size:17.5px; margin-bottom:8px}
.metric p{margin:0; font-size:15px; color:var(--muted)}

/* services as plain link cards */
.svc--link{display:flex; flex-direction:column; gap:16px}
.svc--link h3{margin:0; font-size:17px; line-height:1.3}
.svc--link .more{margin-top:auto; padding-top:0}

@media (max-width:1100px){ .metric-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:1024px){
  .book-grid{grid-template-columns:1fr; gap:36px}
  .guide-grid{grid-template-columns:1fr; gap:38px}
}
@media (max-width:900px){
  .sched-embed iframe,.sched-frame{height:920px}
  .sched-skeleton{min-height:920px}
}
@media (max-width:640px){
  .metric-grid{grid-template-columns:1fr}
  .guide-cover{padding:0 14px}
  .guide-pair{gap:14px}
  .sec-head.center{margin-bottom:30px}
  .rev-head{font-size:24px}
  .sched-embed iframe,.sched-frame{height:880px}
  .sched-skeleton{min-height:880px}
}


/* ---- Inspection gallery (/gallery, TRO-294) ---- */
.gal-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:16px}
.gal-item{margin:0; background:#fff; border:1px solid var(--line,#e7e7e7); border-radius:var(--r,14px); overflow:hidden; box-shadow:var(--sh-1,0 4px 16px rgba(0,0,0,.07))}
.gal-item a{display:block; line-height:0; cursor:zoom-in}
/* height:auto is required: the img carries width/height="1080" attributes, whose
   presentational hint sets an explicit 1080px height and would otherwise beat
   aspect-ratio 1/1, stretching the square photo into a tall cropped strip. */
.gal-item img{width:100%; height:auto; aspect-ratio:1/1; object-fit:cover; display:block}
.gal-item figcaption{padding:12px 14px; font-size:13.8px; line-height:1.45; color:#20262e; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden}
@media (max-width:1040px){ .gal-grid{grid-template-columns:repeat(3,1fr)} }
@media (max-width:760px){ .gal-grid{grid-template-columns:repeat(2,1fr); gap:12px} .gal-item figcaption{font-size:13px; padding:10px 11px} }
@media (max-width:440px){ .gal-grid{gap:9px} .gal-item figcaption{font-size:12.2px; padding:8px 9px} }
.sh-lb{position:fixed; inset:0; background:rgba(8,15,30,.94); display:none; align-items:center; justify-content:center; z-index:9999; padding:20px}
.sh-lb[data-open]{display:flex}
.sh-lb-inner{display:flex; flex-direction:column; align-items:center; max-width:96vw}
.sh-lb img{max-width:92vw; max-height:80vh; border-radius:10px; box-shadow:0 20px 60px rgba(0,0,0,.5); background:#0b1420}
.sh-lb .sh-lb-cap{color:#fff; text-align:center; margin:12px auto 0; font-size:14px; line-height:1.45; max-width:70ch}
.sh-lb .sh-lb-count{color:#c3cfdd; font-size:12.5px; letter-spacing:.05em; margin-top:7px}
.sh-lb button{background:rgba(255,255,255,.12); border:0; color:#fff; cursor:pointer; border-radius:50%; width:48px; height:48px; display:flex; align-items:center; justify-content:center; font-size:30px; line-height:1; padding:0}
.sh-lb button:hover{background:rgba(255,255,255,.26)}
.sh-lb .sh-lb-close{position:absolute; top:14px; right:16px}
.sh-lb .sh-lb-nav{position:absolute; top:50%; transform:translateY(-50%)}
.sh-lb .sh-lb-prev{left:14px}
.sh-lb .sh-lb-next{right:14px}
@media (max-width:760px){ .sh-lb .sh-lb-nav{width:42px; height:42px; font-size:25px} }

/* ---------- home hero: full width vans photo behind the copy (TRO-293 round 3) ---------- */
.hero--home{
  background-color:#0D2130;
  background-image:
    linear-gradient(90deg, rgba(13,33,48,.96) 0%, rgba(13,33,48,.88) 38%, rgba(13,33,48,.35) 70%, rgba(13,33,48,.15) 100%),
    image-set(url("/assets/img/live/vans-bg-2000.avif") type("image/avif") 1x,
              url("/assets/img/live/vans-bg-1400.jpg") type("image/jpeg") 1x);
  background-position:center, center 62%;
  background-size:cover, cover;
  background-repeat:no-repeat, no-repeat;
}
.hero--home::after{content:none}
.hero--home .hero-home-inner{padding:120px 0 130px}
.hero--home .hero-copy{max-width:640px}
.hero--home .actions{flex-wrap:nowrap}
@media (max-width:900px){
  .hero--home{
    background-image:
      linear-gradient(180deg, rgba(13,33,48,.55), rgba(13,33,48,.92) 55%),
      image-set(url("/assets/img/live/vans-bg-960.avif") type("image/avif") 1x,
                url("/assets/img/live/vans-bg-960.jpg") type("image/jpeg") 1x);
    background-position:center, 70% center;
    background-size:cover, cover;
  }
  .hero--home .hero-home-inner{padding:64px 0 76px}
  .hero--home .hero-copy{max-width:none}
  .hero--home .actions{flex-wrap:wrap}
  .hero--home .actions .btn{flex:1 1 100%; justify-content:center}
}
.rev-sub{text-align:center; margin:22px 0 0; font-family:var(--font-accent); font-size:12.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted)}

/* ============================================================
   Author byline, author box and the author page (TRO-298).
   Additive only: the byline links to the author page, the dates
   line sits under it, and each article ends with an author box.
   ============================================================ */

/* The dates line sits in plain sentence case under the byline: in the uppercase
   accent face the two dates wrap badly on a 375px phone. The updated chunk is
   never broken in half. */
.postmeta--dates{
  font-family:inherit; font-size:14px; font-weight:400; letter-spacing:0;
  text-transform:none; color:var(--muted); margin:0 0 18px;
}
.postmeta__updated{white-space:nowrap}

.authorbox{
  display:flex; gap:20px; align-items:flex-start;
  background:var(--bg); border:1px solid var(--line);
  border-radius:var(--r-lg); padding:24px; margin-top:44px;
}
.authorbox__img{
  width:96px; height:96px; border-radius:50%; object-fit:cover;
  flex:none; box-shadow:var(--sh-1); background:#fff;
}
/* .article img sets a 14px radius and outranks the class on its own, so the
   round headshot needs the article scope to win */
.article .authorbox__img{border-radius:50%}
.authorbox__eyebrow{
  font-family:var(--font-accent); font-size:12px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--blue-dark); margin:0 0 4px;
}
.article .authorbox__name{margin:0 0 8px; font-size:20px}
.authorbox__bio{font-size:15px; color:var(--muted); margin:0 0 10px}
.authorbox__more{margin:0; font-family:var(--font-accent); font-size:13px; letter-spacing:.08em; text-transform:uppercase}
.authorbox__more a{color:var(--blue-dark); font-weight:500}
.authorbox__more a:hover{color:var(--red)}

/* author page: the portrait in the hero is tall, so cap it on phones */
.page-hero .shot img[src*="troy-pappas-hero"]{max-width:420px; width:100%; display:block}

@media (max-width:560px){
  .authorbox{flex-direction:column; gap:16px; padding:20px}
}

/* ---------- /realtor-resources download cards (TRO-304) ----------
   Page 1 of each PDF is the card's cover. The cover frame is a fixed letter
   ratio with the page contained inside it, so a page keeps its own real aspect
   ratio (no crop, no stretch) while every card in a row is exactly as tall as
   its neighbours. Four across on desktop, two on a phone, never one. */
.doc-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px; grid-auto-rows:1fr}
.doc{
  display:flex; flex-direction:column; height:100%; background:#fff;
  border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden;
  box-shadow:var(--sh-1);
  transition:transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.doc:hover{transform:translateY(-3px); box-shadow:var(--sh-2); border-color:transparent}
.doc__thumb{display:block; padding:16px; background:var(--bg); border-bottom:1px solid var(--line)}
.doc__thumb img{
  display:block; width:100%; height:auto; aspect-ratio:8.5/11; object-fit:contain;
  background:#fff; border:1px solid var(--line); border-radius:3px;
  box-shadow:0 6px 18px rgba(13,33,48,.14);
}
.doc__body{padding:18px 20px 20px; display:flex; flex-direction:column; flex:1}
.doc__body h3{font-size:16.5px; line-height:1.32; margin:0 0 8px}
.doc__body h3 a{color:inherit}
.doc__body h3 a:hover{color:var(--red)}
.doc__meta{
  margin:0; font-family:var(--font-accent); font-size:12px; font-weight:500;
  letter-spacing:.1em; text-transform:uppercase; color:var(--muted);
}
/* Partner credit line on the two Pest Heroes agent guides (TRO-308). */
.doc__credit{margin:0 0 8px; font-size:13px; line-height:1.4; color:var(--muted)}
.doc__credit a{color:var(--red); font-weight:600}
.doc__credit a:hover{text-decoration:underline}
.doc__body .more{margin-top:auto; padding-top:14px}
@media (max-width:1100px){ .doc-grid{grid-template-columns:repeat(3,1fr)} }
@media (max-width:820px){ .doc-grid{grid-template-columns:repeat(2,1fr); gap:14px}
  .doc__thumb{padding:12px}
  .doc__body{padding:14px 15px 16px}
  .doc__body h3{font-size:15.5px}
  .doc__meta{font-size:11px}
  .doc__credit{font-size:12px}
}

/* ---------- SafeHouseAgent.com promo (TRO-308) ----------
   Sits above the downloads on /realtor-resources. One white panel: heading,
   lead, a check-bulleted list of tools, then the two calls to action. */
.agenthub{
  background:#fff; border:1px solid var(--line); border-radius:var(--r-lg);
  box-shadow:var(--sh-1); padding:38px 42px;
}
.agenthub h2{font-size:28px; line-height:1.25; margin:0 0 12px; max-width:22ch}
.agenthub .lead{margin:0 0 4px}
.agenthub ul.ticks{list-style:none; padding:0; margin:22px 0 0; max-width:78ch}
.agenthub ul.ticks li{position:relative; padding-left:34px; margin:.6em 0; font-size:16.5px}
.agenthub ul.ticks li::before{
  content:""; position:absolute; left:0; top:.34em; width:20px; height:20px; border-radius:50%;
  background:rgba(0,136,203,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230088CB' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}
@media (max-width:820px){
  .agenthub{padding:26px 22px}
  .agenthub h2{font-size:22px; max-width:none}
  .agenthub ul.ticks li{font-size:16px}
}

