/*  
Theme Name: Anhar WP
Theme URI: https://www.anharhomeinspections.ca/
Author: Anhar Home Inspections
Description: WordPress theme for Anhar Home Inspections (converted from static HTML).
Version: 1.0
Text Domain: anhar-wp
*/

/* ===========================
   Anhar Home Inspections — Shared Styles
   =========================== */

/* ---- Tokens / Theme ---- */
:root{
  --navy:#0B3A4A;
  --teal:#1E8594;
  --lteal:#34B3C4;
  --gold:#F2C46D;

  --bg:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --border:#e2e8f0;

  --radius:18px;
  --shadow:0 12px 28px rgba(2,24,36,.10);

  /* Drawer vars (merged) */
  --drawer-w: min(33vw, 360px);
  --drawer-bg: rgba(255,255,255,.92);
  --drawer-blur: 10px;
  --drawer-top: 0px; /* used to position drawer below sticky header */
}

/* ---- Base ---- */
*{ box-sizing:border-box }
html{ scroll-behavior:smooth }
body{
  margin:0;
  color:var(--text);
  font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;

  /* Background image + soft overlay */
  background-image:
    linear-gradient(rgba(255,255,255,.15), rgba(255,255,255,.15)),
    url('images/background.jpg');
  background-position:center center;
  background-repeat:no-repeat;
  background-attachment:fixed;
  background-size:cover;
  min-height:100vh;
  position:relative;
}
body::after{
  content:""; position:fixed; inset:0; z-index:-1;
  background:linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.68) 30%, rgba(255,255,255,.68) 70%, rgba(255,255,255,.78));
  backdrop-filter:blur(3px) saturate(120%);
}

.container{ max-width:1300px; margin:0 auto; padding:0 20px }

/* ---- Header / Nav ---- */
.header{
  position:sticky; top:0; z-index:10;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid var(--border);
}

/* keep everything on one row on large screens */
.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:18px; flex-wrap:nowrap;
}
.brand{ display:flex; gap:12px; align-items:center; text-decoration:none; color:var(--navy) }
.brand img{ height:120px }

/* UPDATED: brand heading -> span */
.brand__name{
  margin:0;
  color:var(--navy);
  font-weight:800;
  letter-spacing:.2px;
  white-space:nowrap;
  font-size:1.65rem;
}

/* main menu */
.menu{
  display:flex; gap:18px; flex-wrap:nowrap; flex:1 1 auto; justify-content:center;
}
.menu a{
  color:var(--navy);
  text-decoration:none;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid transparent;
  white-space:nowrap;
}
.menu a:hover{ border-color:var(--lteal) }

/* Book button compact so it fits the row comfortably */
.nav .btn{ white-space:nowrap; padding:10px 14px }

/* responsive: shrink a touch before we allow wraps */
@media (max-width:1280px){
  .brand__name{ font-size:1.5rem }
  .brand img{ height:110px }
  .menu{ gap:14px }
  .menu a{ padding:7px 9px; font-size:.98rem }
  .nav .btn{ padding:9px 12px }
}
@media (max-width:1200px){
  .brand__name{ font-size:1.38rem }
  .brand img{ height:100px }
  .menu{ gap:12px }
  .menu a{ padding:6px 8px }
}
/* if it gets truly tight, allow the menu to wrap */
@media (max-width:1140px){
  .menu{ flex-wrap:wrap }
}

/* ---- Buttons ---- */
.btn{
  appearance:none; border:none; cursor:pointer;
  background:linear-gradient(90deg,var(--teal),var(--lteal));
  color:#06252b; font-weight:700;
  padding:10px 14px; border-radius:12px;
  box-shadow:0 8px 20px rgba(30,133,148,.35);
  text-decoration:none; display:inline-block;
}
.btn.alt, .btn--alt{ background:#fff; color:var(--navy); border:1px solid var(--lteal) }
.btn.small, .btn--sm{ padding:8px 10px; border-radius:10px; font-weight:600 }

/* ---- Banner / Page title ---- */
.banner{ position:relative; min-height:220px; border-bottom:1px solid var(--border) }
.banner__img{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.85)),
    radial-gradient(900px 320px at 80% 10%, var(--gold), transparent 60%),
    linear-gradient(to bottom,#d8f3f6 0%,#bfeaf0 50%,#9ddbe4 50%,#c7eef3 100%);
}
.banner__title{
  position:absolute; left:50%; bottom:18px; transform:translateX(-50%);
  margin:0; background:rgba(255,255,255,.96);
  border:1px solid var(--border); color:var(--navy);
  padding:12px 18px; border-radius:14px; box-shadow:var(--shadow);
}

/* Banner chip logo sizing */
.banner__chip img {
  display: block;
  height: 42px;
  width: auto;
}
/* Per-logo controls (adjust for visual balance) */
.logo-hiabc { height: 34px !important; }
.logo-cpbc  { height: 52px !important; }

/* Mobile tuning for logo sizes */
@media (max-width: 760px) {
  .logo-hiabc { height: 26px !important; }
  .logo-cpbc  { height: 36px !important; }
}

/* Small helper for banner <h1> */
.page-title{ margin:0; }

/* ---- Banner slideshow (Home only) ---- */
.banner.banner--photo{ position:relative; overflow:hidden }
.banner.banner--photo .slideshow{ position:absolute; inset:0 }
.banner.banner--photo .slide{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  opacity:0; transition:opacity .8s ease;
}
.banner.banner--photo .slide.active{ opacity:1 }
.banner.banner--photo::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.20));
  pointer-events:none;
}

/* ---- Sections / Grid ---- */
.section{ padding:28px 0 }
.grid{ display:grid; gap:18px }
.grid--4{ grid-template-columns:repeat(4,1fr) }
.grid--3{ grid-template-columns:repeat(3,1fr) }
.grid--2{ grid-template-columns:repeat(2,1fr) }
@media (max-width: 980px){ .grid--4{ grid-template-columns:1fr 1fr } }
@media (max-width: 860px){ .grid--2{ grid-template-columns:1fr } }
@media (max-width: 760px){ .grid--3{ grid-template-columns:1fr } }

/* ---- Cards ---- */
.card{
  border-radius:var(--radius);
  border:1px solid rgba(11,58,74,.18);
  box-shadow:0 0 15px rgba(11,58,74,.35);
  background:linear-gradient(135deg, rgba(11,58,74,.12), rgba(255,255,255,.94));
  color:var(--text);
  background-clip:padding-box;
  overflow:hidden;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
.card h2,.card h3,.card h4{ color:var(--navy) }
.lead{ color:var(--muted) }

.card--hero{ padding:28px }
.card--kpi{ padding:24px }
.card--service{ padding:24px }
.card--process{ padding:20px }
.card--price{ padding:24px }
.card--note{ padding:18px }
.card--feature{ padding:22px }
.card--doc{ padding:18px }
.card--info{ padding:22px }
.card--form{ padding:24px }
.card--about{ padding:24px }

/* Eyebrow label */
.eyebrow{
  display:inline-block; font-size:12px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--teal); background:#e9fbfe; border:1px solid #c3f3f8;
  border-radius:9999px; padding:6px 10px; margin-bottom:6px;
}

/* Lists */
.ul, .list{ margin:10px 0 0 0; padding:0 0 0 18px }
.ul li, .list li{ margin:6px 0 }

/* Popular badge */
.popular{ position:relative }
.popular::after{
  content:"Popular"; position:absolute; top:12px; right:12px;
  background:#e9fbfe; color:#0B3A4A; border:1px solid #c3f3f8;
  border-radius:9999px; padding:4px 8px; font-size:12px; font-weight:700;
}

/* ---- FAQ ---- */
.faq-item{ margin-bottom:16px }
.faq-q{ font-weight:700; color:var(--navy); cursor:pointer; position:relative; padding-right:20px }
.faq-q::after{ content:"+"; position:absolute; right:0; top:0; font-weight:700 }
.faq-q.open::after{ content:"–" }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .4s ease; color:var(--muted); padding-left:10px }
.faq-q.open + .faq-a{ max-height:400px; margin-top:6px }

/* ---- Profile ---- */
.profile{ display:flex; flex-direction:column; align-items:center; gap:12px; text-align:center }
.profile img{ width:120px; height:120px; object-fit:cover; border-radius:50%;
  border:3px solid var(--lteal); box-shadow:0 0 12px rgba(0,0,0,.15) }
.profile h3{ margin:0; color:var(--navy) }

/* ---- Embeds ---- */
.doc-embed, .map{ position:relative; width:100%; border:1px solid var(--border); border-radius:14px; overflow:hidden; background:#fff }
.doc-embed{ padding-top:130% }
.map{ padding-top:56% }
.doc-embed iframe, .map iframe{ position:absolute; inset:0; width:100%; height:100%; border:0 }
.doc-embed .fallback, .map .fallback{
  position:absolute; inset:0; display:grid; place-items:center; padding:20px; color:var(--muted); text-align:center;
}

/* ---- Footer ---- */
.footer{
  margin-top:40px; padding:24px 0; border-top:1px solid var(--border);
  color:var(--muted); font-size:14px; background:#fff;
}
.footer .row{ display:flex; gap:18px; flex-wrap:wrap; align-items:center; justify-content:space-between }
.badge{
  display:inline-flex; gap:8px; align-items:center;
  padding:8px 10px; border-radius:9999px;
  border:1px solid var(--border); background:#f8fafc; color:var(--navy);
  font-size:13px;
}

/* ---- Contact form ---- */
.form{ display:grid; grid-template-columns:1fr 1fr; gap:14px }
.form .full{ grid-column:1 / -1 }
.field{ display:flex; flex-direction:column; gap:6px }
label{ font-weight:700; color:var(--navy) }
input, textarea, select{
  padding:12px; border-radius:12px; border:1px solid var(--border);
  font:inherit; background:#fff;
}
textarea{ min-height:120px }
.hint{ font-size:12px; color:var(--muted) }

/* ---- Preview toolbar (dev helper) ---- */
.toolbar{ position:fixed; right:16px; bottom:16px; z-index:9999; display:flex; gap:10px }
.toolbar button{
  border:none; border-radius:12px; padding:10px 14px; font-weight:700; cursor:pointer;
  box-shadow:0 6px 14px rgba(0,0,0,.15);
}
.toolbar .preview{ background:linear-gradient(90deg,var(--teal),var(--lteal)); color:#06252b }
.toolbar .guides{ background:#fff; color:var(--navy); border:1px solid var(--lteal) }
.show-guides .card{ outline:2px dashed rgba(11,58,74,.35) }
.show-guides .grid{
  background:repeating-linear-gradient(90deg, rgba(11,58,74,.05), rgba(11,58,74,.05) 1px, transparent 1px, transparent 25%);
}

/* ---- Toast ---- */
.toast{
  position:fixed; left:50%; bottom:28px; transform:translateX(-50%);
  background:#0B3A4A; color:#fff; padding:12px 16px; border-radius:12px;
  box-shadow:var(--shadow); display:none;
}
.toast.show{ display:block }

/* ===== Mobile polish ===== */

/* Let nav wrap under the brand on narrow phones */
@media (max-width: 640px){
  .nav { flex-wrap: wrap; gap: 10px; }
  .brand img { height: 84px; }
  .brand__name { font-size: 1.4rem; }
  .menu { width: 100%; justify-content: center; flex-wrap: wrap; gap: 10px; }
  .menu a { padding: 6px 10px; }
  .btn.small { padding: 8px 12px; }
}

/* Extra small devices */
@media (max-width: 420px){
  .brand img { height: 68px; }
  .brand__name { font-size: 1.2rem; }
  .section { padding: 20px 0; }
  .card--hero, .card--service, .card--price, .card--info, .card--form { padding: 18px; }
}

/* Banner adjustments: keep the center pill tidy between logos */
@media (max-width: 760px){
  .banner { min-height: 220px; }
  .banner h1 { font-size: clamp(18px, 5vw, 28px); }
  .banner img[alt*="Association"],
  .banner img[alt*="Home Inspectors Association"] { height: 28px !important; }
  .banner img[alt*="Consumer Protection"] { height: 40px !important; }
}

/* Very small banner */
@media (max-width: 420px){
  .banner { min-height: 200px; }
  .banner h1 { font-size: 22px !important; }
}

/* Footer logos & badge layout */
.footer .footer__logos{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.footer .footer__marks{
  display:flex;
  gap:16px;
  align-items:center;
}
/* Mobile: badge on its own line, logos centered side-by-side */
@media (max-width: 700px){
  .footer .footer__logos{
    width:100%;
    justify-content:center;
  }
  .footer .footer__logos .badge{
    width:100%;
    text-align:center;
    margin:0 0 6px;
    display:flex;
    justify-content:center;
  }
  .footer .footer__marks{
    width:100%;
    justify-content:center;
  }
  .footer .logo-hiabc,
  .footer .logo-cpbc{
    height:30px !important;
    width:auto !important;
  }
}

/* ---- Mobile background fix ---- */
@media (max-width: 980px){
  body { background-attachment: scroll; }
}

/* Spacing utilities */
.mt-6{ margin-top:6px }
.mt-8{ margin-top:8px }
.mt-12{ margin-top:12px }
.mt-14{ margin-top:14px }
.mt-18{ margin-top:18px }
.mt-24{ margin-top:24px }
.mt-28{ margin-top:28px }
.mb-20{ margin-bottom:20px }
.mb-24{ margin-bottom:24px }

/* Flex helpers used in markup */
.flex-row{ display:flex; flex-direction:row }
.flex-gap-14{ display:flex; gap:14px }

/* Button group spacing */
.btn-group{ display:flex; gap:12px; flex-wrap:wrap }

/* Card tone variants */
.is-opaque{ background:#fff }
.is-light{
  background:linear-gradient(135deg, rgba(11,58,74,.06), rgba(255,255,255,.96));
}
.is-gradient{
  background:linear-gradient(135deg, rgba(11,58,74,.10), rgba(255,255,255,.96));
}

/* Pricing helpers used on pricing cards */
.card--price .price{
  font-size:1.8rem; font-weight:800; color:var(--navy); margin-top:6px;
}
.card--price .sub{
  color:var(--muted); font-size:.95rem; margin-top:2px;
}

/* ===== Banner chip + hero heights & background ===== */
.banner--photo{
  /* taller, responsive height → shows more of the photo */
  min-height: clamp(420px, 60vh, 780px);
}
@media (max-width:760px){
  .banner--photo{ min-height:280px; }
}
@media (min-width:1400px){
  .banner--photo{ min-height:66vh; }
}
.banner__chip{
  position:absolute; left:50%; bottom:18px; transform:translateX(-50%);
  display:flex; align-items:center; gap:18px;
  padding:12px 18px; border-radius:14px; border:1px solid var(--border);
  background:rgba(255,255,255,.96); box-shadow:var(--shadow);
  color:var(--navy); font-weight:800; font-size:24px; line-height:1.2;
  white-space:nowrap; z-index:3;
}
@media (max-width:760px){
  .banner__chip{ font-size:18px; gap:12px }
}

/* Ensure static photo banners & slides cover nicely */
.banner.banner--photo,
.banner.banner--photo .slide{
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: 50% 36% !important;
}

/* Page-specific focal tweaks */
body.page-template-page-thermal-imaging .banner.banner--photo{ background-position: 50% 28% !important; }
body.page-template-page-services         .banner.banner--photo{ background-position: 50% 40% !important; }
body.page-template-page-sample-report    .banner.banner--photo{ background-position: 50% 35% !important; }

/* Home slideshow slides use a slightly higher focal point */
.banner.banner--photo .slide{ background-position: 50% 34% !important; }

/* ---- Accessibility helpers ---- */
.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:16px; top:12px; width:auto; height:auto; padding:8px 12px;
  background:#fff; border:2px solid var(--lteal); border-radius:10px; z-index:10000;
}
:focus-visible { outline:3px solid var(--lteal); outline-offset:2px; }
/* Extra safeguard: hide slides that are aria-hidden */
.slideshow .slide[aria-hidden="true"] { visibility: hidden; }
.slideshow .slide[aria-hidden="false"] { visibility: visible; }

/* WP admin bar offset for sticky header */
.admin-bar .header { top: 32px; }
@media (max-width: 782px){
  .admin-bar .header { top: 46px; }
}

/* NAVIGATION CLEANUP + CURRENT STATES (consolidated) */
.menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: contents; /* behave like direct children of .menu */
}
/* Menu link interactions */
.menu a,
.menu__list a {
  transition: border-color .15s ease, background-color .15s ease;
}
.menu a:focus-visible,
.menu__list a:focus-visible {
  outline: 3px solid var(--lteal);
  outline-offset: 2px;
  background:#f8fafc;
  border-color: var(--border);
}
/* Current & hover */
.menu a:hover,
.menu__list a:hover { border-color: var(--lteal); }
.menu .current-menu-item > a,
.menu .current_page_item > a,
.menu a[aria-current="page"],
.menu__list .current-menu-item > a,
.menu__list .current_page_item > a,
.menu__list a[aria-current="page"]{
  background:#f8fafc;
  border-color:var(--border);
}

/* === Banner title mobile tweaks (no JS) ===== */
@media (max-width: 640px){
  .banner__chip { gap: 10px; padding: 10px 12px; }
  .banner__chip img { height: 28px !important; }

  .banner__chip .page-title{
    flex: 1 1 0;
    min-width: 0;
    white-space: normal;
    line-height: 1.15;
    text-wrap: balance;
    font-size: 18px;
    margin: 0;
  }

  body.home .banner__chip .page-title,
  body.front-page .banner__chip .page-title{
    font-size: 18px;
    max-width: 62vw;
  }

  body.page-template-page-thermal-imaging .banner__chip .page-title,
  body.page-template-page-sample-report .banner__chip .page-title{
    font-size: 16px;
    max-width: 58vw;
  }
}

/* Tighter banner title on Thermal Imaging & Sample Report (phones) */
@media (max-width: 640px){
  body.page-thermal-imaging .banner__chip > .page-title,
  body.page-template-page-thermal-imaging .banner__chip > .page-title,
  body.page-sample-report .banner__chip > .page-title,
  body.page-template-page-sample-report .banner__chip > .page-title {
    font-size: clamp(14px, 3.8vw, 18px) !important;
    line-height: 1.2;
    text-wrap: balance;
    max-width: 60vw;
  }
}

/* === NAVIGATION WRAP / FIT (unchanged behavior) === */
@media (max-width: 1340px) {
  .brand img { height: 108px; }
  .brand__name { font-size: 1.55rem; }
  .menu { gap: 16px; }
}
@media (max-width: 1260px) {
  .brand img { height: 100px; }
  .brand__name { font-size: 1.42rem; }
  .menu a { padding: 7px 9px; }
}
@media (max-width: 1140px) {
  .nav { flex-wrap: wrap; align-items: center; }
  .brand { flex: 0 0 auto; }
  .menu {
    order: 2;
    width: 100%;
    justify-content: center;
    gap: 12px;
  }
  .nav .btn { order: 3; }
}
/* Ensure title never truncates or leaks characters */
.brand__name { white-space: nowrap; overflow: visible; text-overflow: clip; }

/* === Mobile right-side hamburger drawer === */

/* Hamburger button (hidden on desktop) */
.hamburger{
  display:none;
  position:relative;
  width:38px; height:34px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  cursor:pointer;
  align-items:center; justify-content:center;
}
.hamburger span{
  position:absolute; left:8px; right:8px; height:2px;
  background:var(--navy); border-radius:2px;
  transition:transform .25s ease, opacity .2s ease, top .25s ease;
}
.hamburger span:nth-child(1){ top:10px; }
.hamburger span:nth-child(2){ top:16px; }
.hamburger span:nth-child(3){ top:22px; }
.hamburger.is-open span:nth-child(1){ top:16px; transform:rotate(45deg); }
.hamburger.is-open span:nth-child(2){ opacity:0; }
.hamburger.is-open span:nth-child(3){ top:16px; transform:rotate(-45deg); }

/* Drawer & backdrop */
.drawer-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.12);
  backdrop-filter: blur(1px);
  opacity:0; transition:opacity .25s ease;
  z-index: 98;
}
.drawer{
  position:fixed; top: var(--drawer-top); right:0; bottom:auto;
  width:var(--drawer-w);
  background:var(--drawer-bg);
  backdrop-filter:saturate(140%) blur(var(--drawer-blur));
  border-left:1px solid var(--border);
  box-shadow:-20px 0 40px rgba(2,24,36,.12);
  transform:translateX(100%);
  transition:transform .28s ease;
  z-index: 99;

  /* content-height (not full screen) */
  max-height: calc(100vh - var(--drawer-top) - 16px);
  height: auto;
  margin-bottom: 8px;
  border-radius: 12px 0 0 12px;
  overflow:auto;
}
.drawer.open{ transform:translateX(0); }
.drawer-backdrop.show{ opacity:1; }

/* Drawer nav list */
.drawer__nav{ padding:18px; }
.drawer__list{
  list-style:none; margin:0; padding:0;
  display:flex; flex-direction:column; gap:6px;
}
.drawer__list a{
  display:block;
  padding:12px 12px;
  border-radius:10px;
  color:var(--navy);
  text-decoration:none;
  border:1px solid transparent;
}
.drawer__list .current-menu-item > a,
.drawer__list .current_page_item > a,
.drawer__list a[aria-current="page"]{
  background:#f8fafc; border-color:var(--border);
}
.drawer__list a:hover{ border-color:var(--lteal); }

/* Responsive logic */
@media (max-width: 980px){
  /* Hide desktop menu, show hamburger */
  .menu { display:none; }
  .hamburger { display:inline-flex; margin-left:auto; }
}
/* Keep Book Now button visible and aligned beside hamburger */
.header-cta {
  display:inline-flex;
  margin-left:12px;
}
@media (max-width:980px){
  .header-cta {
    order:3;
    font-size:0.9rem;
    padding:8px 12px;
  }
}

/* Capitalize labels in tier price lines */
#tiers .card--note p { text-transform: capitalize; }

/* === Home page transparency fix === */
body.home .card--hero:first-of-type {
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  box-shadow: 0 6px 20px rgba(11, 58, 74, 0.25);
}
body.home .card--hero:first-of-type h2,
body.home .card--hero:first-of-type p { color: var(--navy); }

/* Contact page: details builder spacing */
#details-builder .field label { font-weight: 700; color: var(--navy); }
#details-builder input[type="number"]::-webkit-outer-spin-button,
#details-builder input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#details-builder input[type="number"] { appearance: textfield; }

/* Uniform checkboxes (builder + CF7) */
.form input[type="checkbox"],
#details-builder input[type="checkbox"]{
  width:18px; height:18px;
  accent-color: var(--teal);
  vertical-align: middle;
}
/* Nice alignment for inline checkbox labels in the builder */
#details-builder .flex-gap-14 > label{
  display:inline-flex; align-items:center; gap:8px;
  font-weight:600; color:var(--navy);
}
/* Ensure consistent spacing between the two checkbox rows */
#details-builder .flex-gap-14 + .flex-gap-14{ margin-top:8px; }

/* Uniform checkbox grid alignment (Spaces row) – single, cleaned-up version */
#details-builder .spaces-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 8px 18px;
  align-items: center;
}
#details-builder .spaces-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}
/* Checkbox size and color */
#details-builder input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  margin: 0;
  flex-shrink: 0;
}

/* Thermal Imaging: transparent hero card */
.ti-hero{
  background: rgba(255,255,255,.58);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 8px 24px rgba(11,58,74,.10);
}

/* About page portrait sizing */
#inspector .profile img{
  width: 170px; height: 170px;
  border-width: 4px;
  box-shadow: 0 0 16px rgba(0,0,0,.18);
}
/* a touch more breathing room between image and name */
#inspector .profile{ gap: 16px; }
@media (max-width: 640px){
  #inspector .profile img{ width: 140px; height: 140px; }
}
/* tighten spacing under inspector name */
#inspector .profile h3 { margin-bottom: 1px; }
#inspector .profile p { margin-top: 0; }

/* ---- Payment Logos (Unified Style) ---- */
.payment-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 10px;
}
.payment-logos img {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 1;
  transition: transform 0.2s ease;
}
.payment-logos img:hover { transform: scale(1.05); }

/* ===== Responsive Footer Alignment ===== */
.footer__content,
.footer .container,
.footer .row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.footer__marks {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer__marks img {
  height: 36px;
  width: auto;
}

.footer__area,
.footer__copyright {
  text-align: center;
}

@media (min-width: 768px) {
  .footer__content,
  .footer .container,
  .footer .row {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    text-align: center;
  }
}

/* === CF7 submit button — mobile only, no side-effects === */
@media (max-width: 700px){
  /* Target the Contact Form 7 submit specifically inside form cards */
  .card--form .wpcf7 form input[type="submit"].wpcf7-submit,
  .card--form .wpcf7 form input[type="submit"]{
    -webkit-appearance: none !important;
    appearance: none !important;

    /* Anhar gradient */
    background: linear-gradient(90deg, var(--teal), var(--lteal)) !important;
    color: #06252b !important;

    /* Same visual language as .btn */
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    box-shadow: 0 8px 20px rgba(30,133,148,.35);
    cursor: pointer;
    display: inline-block;
    transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
  }

  .card--form .wpcf7 form input[type="submit"]:hover{
    filter: brightness(0.98);
    transform: translateY(-1px);
  }

  /* Disabled/sending state so it doesn’t look broken while submitting */
  .card--form .wpcf7 form input[type="submit"][disabled]{
    background: #cbd5e1 !important;
    color: #64748b !important;
    box-shadow: none !important;
    cursor: not-allowed;
  }

  /* Keep the little spinner aligned beside the button */
  .card--form .wpcf7 .wpcf7-spinner{
    margin-left: 10px;
    vertical-align: middle;
  }
}

/* === Sample Thermal Images layout (Thermal Imaging page) === */
#samples .grid.grid--3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* Make each card a flex column so all heights match nicely */
#samples .card--service {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Title spacing */
#samples .card--service h4 {
  margin-bottom: 0.75rem;
}

/* Image wrapper: fixed aspect ratio, no stretching */
#samples .sample-thumb {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
  background: #000;
}

/* Maintain ~16:10 aspect ratio box */
#samples .sample-thumb::before {
  content: "";
  display: block;
  padding-top: 62.5%; /* 10 / 16 = 0.625 */
}

/* Actual thermal image – fills frame, cropped, same on all devices */
#samples .sample-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;    /* crop instead of stretch */
  display: block;
  transition: transform 0.25s ease;
}

/* Optional subtle hover zoom on desktop */
@media (hover: hover) {
  #samples .sample-thumb img:hover {
    transform: scale(1.03);
  }
}

/* Description text – keep heights consistent across cards */
#samples .card--service .hint {
  margin-top: auto;     /* pushes text to the bottom of the card */
  min-height: 3rem;     /* helps equalize card heights */
  font-size: 0.95rem;
}

/* Buttons row under the grid */
#samples .btn-group {
  margin-top: 1.5rem;
}

/* Mobile: stack the cards, keep same aspect ratio */
@media (max-width: 900px) {
  #samples .grid.grid--3 {
    grid-template-columns: 1fr;
  }
}

/* === Contact Page – Property details card (tablet/iPad fixes) === */

/* Prevent the grey card from pushing wider than the viewport */
#details-builder {
  max-width: 100%;
  overflow-x: hidden;
}

/* Tablet / small-desktop: use 2 columns in the builder instead of 3 */
@media (max-width: 1100px) {
  #details-builder .grid.grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 14px;
  }

  /* Put the Spaces block on its own row, across both columns */
  #details-builder .field:nth-child(3) {
    grid-column: 1 / -1;
  }
}

/* Phones: single column layout for the builder */
@media (max-width: 700px) {
  #details-builder .grid.grid--3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px){
  .banner__chip .page-title {
    font-size: 16px;            /* or whatever size you like */
    text-align: center;
  }
}

/* Make all footer text centered */
.footer {
  text-align: center;
}

/* Social icons centered */
.footer__social {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.footer__social-link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.footer__social-link:hover img {
  opacity: 0.8;
  transform: translateY(-2px);
}
