/* ==========================================================================
   Henley Homes — child theme stylesheet
   ========================================================================== */

:root{
  --bg: #F3F5F7;
  --bg-alt: #E8ECEE;
  --ink: #14140F;
  --ink-soft: #45484C;
  --steel: #6E7178;
  --blue: #1D3E8C;
  --blue-bright: #3159C4;
  --tan: #B98D53;
  --tan-soft: #E9DCC6;
  --line: rgba(20,20,15,0.14);
  --white: #FDFEFE;
  --font-display: 'Archivo', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --chamfer: 16px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
}

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

.henley-homes h1, .henley-homes h2, .henley-homes h3{
  font-family:var(--font-display);
  margin:0;
  letter-spacing:-0.01em;
  color:var(--ink);
}

.henley-homes p{ margin:0; }
.henley-homes a{ color:inherit; text-decoration:none; }
.henley-homes img{ max-width:100%; display:block; }
.henley-homes button{ font-family:inherit; cursor:pointer; }

.henley-homes .chamfer{
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.henley-homes .chamfer-sm{
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.henley-homes :focus-visible{
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

.henley-homes .wrap{
  max-width:1240px;
  margin:0 auto;
  padding:0 32px;
}

/* ---------- NAV ---------- */
.henley-homes header.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:100;
  padding:26px 0;
  transition: padding .35s ease, background .35s ease, box-shadow .35s ease;
}
.henley-homes header.site-header .wrap{ display:flex; align-items:center; justify-content:space-between; }
.henley-homes header.site-header.scrolled{
  padding:14px 0;
  background:rgba(243,245,247,0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.henley-homes .brand{ display:flex; align-items:center; gap:12px; }
.henley-homes .brand img{
  height:140px; width:auto;
  transition: height .35s ease, filter .35s ease;
  filter: drop-shadow(0 0 18px rgba(255,255,255,1)) drop-shadow(0 0 40px rgba(255,255,255,0.9)) drop-shadow(0 0 70px rgba(255,255,255,0.7)) drop-shadow(0 0 100px rgba(255,255,255,0.45));
}
.henley-homes header.site-header.scrolled .brand img{ height:88px; filter:none; }

.henley-homes nav.primary{ display:flex; align-items:center; gap:40px; }
.henley-homes nav.primary ul{ list-style:none; display:flex; gap:32px; margin:0; padding:0; }
.henley-homes nav.primary a{
  font-size:0.95rem; font-weight:500; color:var(--white);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  transition: color .35s ease, text-shadow .35s ease;
  position:relative;
}
.henley-homes header.scrolled nav.primary a{ color:var(--ink-soft); text-shadow:none; }
.henley-homes nav.primary a.current,
.henley-homes nav.primary li.current-menu-item > a{ color:var(--tan-soft); }
.henley-homes header.scrolled nav.primary a.current,
.henley-homes header.scrolled nav.primary li.current-menu-item > a{ color:var(--blue); }
.henley-homes nav.primary a::after{
  content:""; position:absolute; left:0; bottom:-6px; width:0; height:2px; background:var(--tan);
  transition:width .25s ease;
}
.henley-homes nav.primary a:hover::after{ width:100%; }
.henley-homes nav.primary a.current::after,
.henley-homes nav.primary li.current-menu-item > a::after{ width:100%; background:var(--tan); }
.henley-homes header.scrolled nav.primary a.current::after,
.henley-homes header.scrolled nav.primary li.current-menu-item > a::after{ background:var(--blue); }

.henley-homes .btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:13px 24px;
  font-weight:600; font-size:0.92rem;
  border:none;
  transition: transform .2s ease, background .2s ease, border-color .35s ease, color .35s ease;
}
.henley-homes .btn-primary{ background:var(--tan); color:var(--ink); }
.henley-homes .btn-primary:hover{ background:#c99b62; transform:translateY(-1px); }
.henley-homes .btn-ghost{ background:transparent; border:1.5px solid rgba(255,255,255,0.55); color:var(--white); }
.henley-homes .btn-ghost:hover{ border-color:var(--white); }
.henley-homes header.scrolled .btn-ghost{ border-color: var(--line); color:var(--ink); }

.henley-homes .hamburger{
  display:none; align-items:center; justify-content:center;
  width:40px; height:40px; background:none; border:none; position:relative;
}
.henley-homes .hamburger span{
  display:block; width:22px; height:2px; background:var(--white);
  position:relative; transition: background .3s ease;
}
.henley-homes .hamburger span::before, .henley-homes .hamburger span::after{
  content:""; position:absolute; left:0; width:22px; height:2px; background:var(--white); transition: transform .3s ease, background .3s ease;
}
.henley-homes .hamburger span::before{ top:-7px; }
.henley-homes .hamburger span::after{ top:7px; }
.henley-homes header.scrolled .hamburger span,
.henley-homes header.scrolled .hamburger span::before,
.henley-homes header.scrolled .hamburger span::after{ background:var(--ink); }
.henley-homes nav.primary.menu-open ul{ display:flex !important; }

/* ---------- HERO (home, video) ---------- */
.henley-homes .hero{
  position:relative;
  height:100svh;
  min-height:680px;
  display:flex;
  align-items:center;
  padding-top:190px;
  padding-bottom:40px;
  box-sizing:border-box;
  overflow:hidden;
  background: var(--ink);
}
.henley-homes .hero video, .henley-homes .hero .poster{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  filter: saturate(0.92) brightness(0.9);
}
.henley-homes .hero .scrim{
  position:absolute; inset:0;
  background: linear-gradient(to top, rgba(10,11,8,0.92) 0%, rgba(10,11,8,0.8) 30%, rgba(10,11,8,0.62) 55%, rgba(10,11,8,0.4) 78%, rgba(10,11,8,0.22) 100%);
}
.henley-homes .hero .wrap{ width:100%; }
.henley-homes .hero-content{
  position:relative; z-index:2;
  max-width:760px;
  opacity:0; transform:translateY(18px);
  animation: hh-rise .9s ease forwards .2s;
}
@keyframes hh-rise{ to{ opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion: reduce){ .henley-homes .hero-content{ opacity:1; transform:none; animation:none; } }

.henley-homes .hero-eyebrow{
  font-family:var(--font-mono); font-size:0.82rem; color:rgba(255,255,255,0.92);
  letter-spacing:0.02em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7), 0 2px 12px rgba(0,0,0,0.5);
  margin-bottom:18px;
}
.henley-homes .hero h1{
  color:var(--white);
  font-size:clamp(2.4rem, 5.6vw, 4.2rem);
  font-weight:800;
  line-height:1.04;
  max-width:14ch;
  text-shadow: 0 2px 6px rgba(0,0,0,0.55), 0 6px 24px rgba(0,0,0,0.4);
}
.henley-homes .hero p.lede{
  margin-top:22px;
  color:rgba(255,255,255,0.86);
  font-size:1.08rem;
  max-width:44ch;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.henley-homes .hero-actions{ display:flex; gap:16px; margin-top:34px; flex-wrap:wrap; }

/* ---------- PAGE HERO (about / services, static image) ---------- */
.henley-homes .page-hero{
  position:relative;
  min-height:520px;
  display:flex;
  align-items:center;
  padding-top:190px;
  padding-bottom:60px;
  box-sizing:border-box;
  overflow:hidden;
  background: var(--ink);
}
.henley-homes .page-hero img.bg{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  filter: saturate(0.92) brightness(0.85);
}
.henley-homes .page-hero .scrim{
  position:absolute; inset:0;
  background: linear-gradient(to top, rgba(10,11,8,0.9) 0%, rgba(10,11,8,0.72) 35%, rgba(10,11,8,0.5) 60%, rgba(10,11,8,0.28) 100%);
}
.henley-homes .page-hero .wrap{ position:relative; z-index:2; }
.henley-homes .page-hero-content{ max-width:700px; }
.henley-homes .page-hero-eyebrow{
  font-family:var(--font-mono); font-size:0.82rem; color:rgba(255,255,255,0.92);
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  margin-bottom:18px;
}
.henley-homes .page-hero h1{
  color:var(--white);
  font-size:clamp(2.2rem, 5vw, 3.6rem);
  font-weight:800;
  line-height:1.08;
  text-shadow: 0 2px 6px rgba(0,0,0,0.55);
}
.henley-homes .page-hero p.lede{
  margin-top:20px;
  color:rgba(255,255,255,0.86);
  font-size:1.06rem;
  max-width:48ch;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.henley-homes .page-hero-actions{ display:flex; gap:16px; margin-top:32px; flex-wrap:wrap; }

/* ---------- SECTION SCAFFOLD ---------- */
.henley-homes section{ padding:80px 0; position:relative; }
.henley-homes .section-tag{
  font-family:var(--font-mono); font-size:0.82rem; color:var(--blue);
  margin-bottom:16px;
}
.henley-homes .section-head{ max-width:640px; margin-bottom:56px; }
.henley-homes .section-head h2{ font-size:clamp(1.9rem, 3.4vw, 2.6rem); font-weight:800; }
.henley-homes .section-head p{ margin-top:16px; color:var(--ink-soft); font-size:1.05rem; }

/* ---------- ABOUT / STORY GRID ---------- */
.henley-homes .about-grid, .henley-homes .story-grid{
  display:grid; grid-template-columns: 1.05fr 0.95fr; gap:72px; align-items:center;
}
.henley-homes .about-copy p, .henley-homes .story-copy p{ color:var(--ink-soft); font-size:1.06rem; margin-bottom:18px; max-width:52ch; }
.henley-homes .about-copy p:last-child, .henley-homes .story-copy p:last-child{ margin-bottom:0; }
.henley-homes .about-media, .henley-homes .story-media{ position:relative; }
.henley-homes .about-media::before, .henley-homes .story-media::before{
  content:""; position:absolute; top:20px; left:20px; right:-20px; bottom:-20px;
  border:1.5px solid var(--blue); z-index:0;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.henley-homes .about-media img, .henley-homes .story-media img{ position:relative; z-index:1; width:100%; height:420px; object-fit:cover; }

.henley-homes .about-founders{
  display:flex; gap:28px; margin-top:36px; padding-top:28px; border-top:1px solid var(--line);
}
.henley-homes .about-founders div{ flex:1; }
.henley-homes .about-founders p.label{ font-family:var(--font-mono); font-size:0.8rem; color:var(--steel); margin-bottom:6px; }
.henley-homes .about-founders p.value{ font-weight:600; color:var(--ink); }

/* ---------- SERVICES (home tabs) ---------- */
.henley-homes .services-grid{
  display:grid; grid-template-columns: 340px 1fr; gap:0; border-top:1px solid var(--line);
}
.henley-homes .service-tab{
  display:flex; align-items:center; gap:16px;
  width:100%; text-align:left;
  background:none; border:none; border-bottom:1px solid var(--line);
  padding:26px 20px 26px 0;
  color:var(--ink-soft);
}
.henley-homes .service-tab .dot{
  width:9px; height:9px; border-radius:50%;
  border:1.5px solid var(--steel);
  flex-shrink:0;
  transition: background .2s ease, border-color .2s ease;
}
.henley-homes .service-tab .num{ font-family:var(--font-mono); font-size:0.82rem; color:var(--steel); width:26px; flex-shrink:0; }
.henley-homes .service-tab .label{ font-family:var(--font-display); font-weight:700; font-size:1.15rem; }
.henley-homes .service-tab.active{ color:var(--ink); }
.henley-homes .service-tab.active .dot{ background:var(--blue); border-color:var(--blue); }
.henley-homes .service-tab.active .num{ color:var(--blue); }

.henley-homes .service-panel{ padding:8px 0 8px 56px; position:relative; }
.henley-homes .service-view{ display:none; grid-template-columns: 1fr 1fr; gap:48px; align-items:center; }
.henley-homes .service-view.active{ display:grid; }
.henley-homes .service-view img{ width:100%; height:320px; object-fit:cover; }
.henley-homes .service-view .txt p{ color:var(--ink-soft); font-size:1.02rem; margin-top:14px; max-width:46ch; }
.henley-homes .service-view .txt h3{ font-size:1.5rem; font-weight:800; }

@media (max-width: 860px){
  .henley-homes .services-grid{ grid-template-columns:1fr; }
  .henley-homes .service-panel{ padding-left:0; }
  .henley-homes .service-view{ grid-template-columns:1fr; }
  .henley-homes .values-grid{ grid-template-columns:1fr; }
  .henley-homes .overview-grid{ grid-template-columns:1fr; }
}

/* ---------- PROCESS (home stepper) ---------- */
.henley-homes .process{ background:var(--bg-alt); }
.henley-homes .process-step{ position:relative; z-index:1; flex:1; }
.henley-homes .process-marker{
  width:11px; height:11px; border-radius:50%;
  background:var(--bg-alt); border:2px solid var(--steel);
  margin-bottom:18px;
  transition: border-color .2s ease, background .2s ease;
}
.henley-homes .process-step.active .process-marker{ border-color:var(--blue); background:var(--blue); }
.henley-homes .process-step button{
  background:none; border:none; text-align:left; padding:0; width:100%;
}
.henley-homes .process-step .pnum{ font-family:var(--font-mono); font-size:0.8rem; color:var(--steel); display:block; margin-bottom:8px; }
.henley-homes .process-step h3{ font-size:1.05rem; font-weight:700; color:var(--ink-soft); }
.henley-homes .process-step.active h3{ color:var(--ink); }
.henley-homes .process-detail{
  max-height:0; overflow:hidden;
  transition: max-height .35s ease;
}
.henley-homes .process-step.active .process-detail{ max-height:200px; margin-top:12px; }
.henley-homes .process-detail p{ color:var(--ink-soft); font-size:0.95rem; max-width:36ch; }

.henley-homes .process-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:24px; margin-top:56px; position:relative; }
.henley-homes .process-grid.steps-5{ grid-template-columns: repeat(5, 1fr); }
.henley-homes .process-line{
  position:absolute;
  top:5px; left:0; right:0;
  height:1px;
  background:var(--line);
  margin:0;
}
@media (max-width: 780px){
  .henley-homes .process-grid{ gap:14px; }
  .henley-homes .process-step .pnum{ font-size:0.7rem; }
  .henley-homes .process-step h3{ font-size:0.9rem; }
  .henley-homes .process-detail p{ font-size:0.85rem; max-width:none; }
}

/* ---------- PROCESS FLOW (about, circular badges) ---------- */
.henley-homes .process-flow{
  position:relative;
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:0;
  margin-top:40px;
}
.henley-homes .process-flow::before{
  content:"";
  position:absolute;
  top:44px; left:6%; right:6%;
  height:2px;
  background-image: linear-gradient(to right, var(--blue) 0, var(--blue) 8px, transparent 8px, transparent 16px);
  background-size: 16px 2px;
  background-repeat: repeat-x;
}
.henley-homes .flow-step{
  position:relative;
  padding:0 14px;
  text-align:center;
}
.henley-homes .flow-badge{
  width:88px; height:88px;
  margin:0 auto 22px;
  background:var(--bg-alt);
  border:2px solid var(--blue);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  position:relative; z-index:2;
  color:var(--blue);
}
.henley-homes .flow-step .fnum{
  font-family:var(--font-mono); font-size:0.78rem; color:var(--steel); display:block; margin-bottom:8px;
}
.henley-homes .flow-step h3{ font-size:1.05rem; font-weight:800; margin-bottom:10px; }
.henley-homes .flow-step p{ color:var(--ink-soft); font-size:0.9rem; }

@media (max-width: 900px){
  .henley-homes .process-flow{ grid-template-columns: 1fr; gap:36px; }
  .henley-homes .process-flow::before{ display:none; }
}

/* ---------- VALUES ---------- */
.henley-homes .values-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:2px;
  background:var(--line);
  border:1px solid var(--line);
}
.henley-homes .value-card{
  background:var(--bg); padding:36px 32px;
}
.henley-homes .value-card .num{
  font-family:var(--font-mono); font-size:0.82rem; color:var(--blue); display:block; margin-bottom:18px;
}
.henley-homes .value-card h3{ font-size:1.2rem; font-weight:800; margin-bottom:12px; }
.henley-homes .value-card p{ color:var(--ink-soft); font-size:0.98rem; }

/* ---------- INCLUDED / FEATURES ---------- */
.henley-homes .included-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:32px; margin-top:8px;
}
.henley-homes .included-item{ display:flex; flex-direction:column; align-items:flex-start; gap:14px; }
.henley-homes .included-icon{
  width:56px; height:56px;
  border:1.5px solid var(--blue);
  display:flex; align-items:center; justify-content:center;
  color:var(--blue);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.henley-homes .included-item h3{ font-size:1rem; font-weight:700; }
.henley-homes .included-item p{ color:var(--ink-soft); font-size:0.92rem; }

@media (max-width: 780px){
  .henley-homes .included-grid{ grid-template-columns: 1fr 1fr; }
}

/* ---------- CRAFTSMANSHIP VIDEO ---------- */
.henley-homes .craft-grid{
  display:grid; grid-template-columns: 0.9fr 1.1fr; gap:64px; align-items:center;
}
.henley-homes .craft-copy p{ color:var(--ink-soft); font-size:1.05rem; margin-top:16px; max-width:44ch; }
.henley-homes .craft-media{ position:relative; }
.henley-homes .craft-media video{ width:100%; height:340px; object-fit:cover; display:block; }
.henley-homes .craft-media::before{
  content:""; position:absolute; top:-16px; left:-16px; right:16px; bottom:16px;
  border:1.5px solid var(--tan); z-index:-1;
}

@media (max-width: 900px){
  .henley-homes .craft-grid{ grid-template-columns:1fr; gap:40px; }
}

/* ---------- OVERVIEW COMPARISON STRIP (services page) ---------- */
.henley-homes .overview{ background:var(--bg-alt); }
.henley-homes .overview-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:2px;
  background:var(--line); border:1px solid var(--line);
}
.henley-homes .overview-card{
  background:var(--bg); padding:32px 28px 28px;
  display:flex; flex-direction:column;
}
.henley-homes .overview-icon{
  width:52px; height:52px;
  border:1.5px solid var(--blue);
  display:flex; align-items:center; justify-content:center;
  color:var(--blue);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  margin-bottom:20px;
}
.henley-homes .overview-card h3{ font-size:1.15rem; font-weight:800; margin-bottom:12px; }
.henley-homes .overview-card .best-for{
  font-family:var(--font-mono); font-size:0.78rem; color:var(--steel);
  margin-bottom:14px; display:block;
}
.henley-homes .overview-card p.desc{ color:var(--ink-soft); font-size:0.95rem; margin-bottom:20px; flex:1; }
.henley-homes .overview-card a{
  font-size:0.85rem; font-weight:600; color:var(--blue);
  display:inline-flex; align-items:center; gap:6px;
}
.henley-homes .overview-card a:hover{ color:var(--blue-bright); }

/* ---------- SERVICE DETAIL BLOCKS (services page) ---------- */
.henley-homes .service-block{ scroll-margin-top:110px; }
.henley-homes .service-grid{
  display:grid; grid-template-columns: 1fr 1fr; gap:64px; align-items:start;
}
.henley-homes .service-block.reverse .service-grid{ direction:rtl; }
.henley-homes .service-block.reverse .service-grid > *{ direction:ltr; }
.henley-homes .service-media{ position:relative; }
.henley-homes .service-media img{ width:100%; height:380px; object-fit:cover; }
.henley-homes .service-media::before{
  content:""; position:absolute; top:18px; left:18px; right:-18px; bottom:-18px;
  border:1.5px solid var(--blue); z-index:-1;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.henley-homes .service-copy .section-tag{ margin-bottom:14px; }
.henley-homes .service-copy h2{ font-size:clamp(1.7rem, 3vw, 2.2rem); font-weight:800; margin-bottom:16px; }
.henley-homes .service-copy > p.desc{ color:var(--ink-soft); font-size:1.02rem; margin-bottom:28px; max-width:52ch; }

.henley-homes .scope-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:16px; }
.henley-homes .scope-list li{ display:flex; align-items:flex-start; gap:14px; }
.henley-homes .scope-check{
  width:26px; height:26px; flex-shrink:0; margin-top:2px;
  border:1.5px solid var(--blue); color:var(--blue);
  display:flex; align-items:center; justify-content:center;
  border-radius:50%;
}
.henley-homes .scope-list .stxt{ font-size:0.98rem; }
.henley-homes .scope-list .stxt strong{ display:block; font-weight:700; color:var(--ink); margin-bottom:2px; }
.henley-homes .scope-list .stxt span{ color:var(--ink-soft); font-size:0.92rem; }

@media (max-width: 900px){
  .henley-homes .service-grid{ grid-template-columns:1fr; gap:36px; }
  .henley-homes .service-block.reverse .service-grid{ direction:ltr; }
  .henley-homes .service-media{ order:-1; }
  .henley-homes .about-grid, .henley-homes .story-grid, .henley-homes .contact-grid{ grid-template-columns:1fr; gap:48px; }
  .henley-homes .about-media, .henley-homes .story-media{ order:-1; }
}

.henley-homes .divider{
  height:1px; background:var(--line); max-width:1240px; margin:0 auto;
}

/* ---------- GALLERY (home) ---------- */
.henley-homes .gallery-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap:20px;
}
.henley-homes .gallery-item{ position:relative; overflow:hidden; }
.henley-homes .gallery-item img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.henley-homes .gallery-item:hover img{ transform:scale(1.045); }
.henley-homes .gallery-item .cap{
  position:absolute; left:14px; bottom:12px; z-index:2;
  font-family:var(--font-mono); font-size:0.76rem; color:var(--white);
  background:rgba(15,16,12,0.55); padding:4px 10px;
}
.henley-homes .g1{ grid-column: span 2; grid-row: span 3; }
.henley-homes .g2{ grid-column: span 2; grid-row: span 2; }
.henley-homes .g3{ grid-column: span 1; grid-row: span 2; }
.henley-homes .g4{ grid-column: span 1; grid-row: span 2; }
@media (max-width: 780px){
  .henley-homes .gallery-grid{ grid-template-columns: repeat(2,1fr); grid-auto-rows:160px; }
  .henley-homes .g1,.henley-homes .g2,.henley-homes .g3,.henley-homes .g4{ grid-column: span 1; grid-row: span 2; }
}

/* ---------- TESTIMONIAL ---------- */
.henley-homes .testimonial{ display:flex; gap:28px; max-width:760px; }
.henley-homes .testimonial .bar{ width:3px; background:var(--blue); flex-shrink:0; }
.henley-homes .testimonial blockquote{
  font-family:var(--font-display); font-weight:600; font-size:1.5rem;
  line-height:1.4; color:var(--ink); margin:0;
}
.henley-homes .testimonial cite{
  display:block; font-style:normal; margin-top:20px;
  font-family:var(--font-mono); font-size:0.85rem; color:var(--steel);
}

/* ---------- CONTACT ---------- */
.henley-homes .contact{ background:var(--ink); color:var(--white); }
.henley-homes .contact .section-tag{ color:var(--tan-soft); }
.henley-homes .contact h2{ color:var(--white); }
.henley-homes .contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:72px; }
.henley-homes .contact-copy p{ color:rgba(255,255,255,0.75); font-size:1.05rem; margin-top:16px; max-width:42ch; }
.henley-homes .contact-detail{ margin-top:34px; }
.henley-homes .contact-detail p.label{ font-family:var(--font-mono); font-size:0.8rem; color:var(--tan-soft); margin-bottom:4px; }
.henley-homes .contact-detail p.value{ font-size:1.15rem; font-weight:600; margin-bottom:20px; }

.henley-homes .field{ margin-bottom:20px; }
.henley-homes .field label{ display:block; font-size:0.85rem; color:rgba(255,255,255,0.7); margin-bottom:8px; }
.henley-homes .field input, .henley-homes .field select, .henley-homes .field textarea{
  width:100%; background:transparent; border:none; border-bottom:1px solid rgba(255,255,255,0.3);
  color:var(--white); font-family:inherit; font-size:1rem; padding:10px 2px;
}
.henley-homes .field select option{ color: var(--ink); }
.henley-homes .field input:focus, .henley-homes .field select:focus, .henley-homes .field textarea:focus{ border-color:var(--tan); outline:none; }
.henley-homes .field textarea{ resize:vertical; min-height:80px; }
.henley-homes .contact form .btn-primary{ margin-top:8px; }
.henley-homes .form-notice{ padding:14px 16px; margin-bottom:20px; font-size:0.92rem; }
.henley-homes .form-notice.success{ background:rgba(60,140,90,0.18); border:1px solid rgba(90,190,130,0.5); }
.henley-homes .form-notice.error{ background:rgba(180,60,60,0.18); border:1px solid rgba(220,100,100,0.5); }

/* ---------- FOOTER ---------- */
.henley-homes footer.site-footer{ background:var(--bg-alt); border-top:1px solid var(--blue); padding:64px 0 28px; }
.henley-homes .footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:56px; }
.henley-homes .footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.henley-homes .footer-brand img{ height:52px; width:auto; }
.henley-homes .footer-brand span{ font-family:var(--font-display); font-weight:800; font-size:1.1rem; }
.henley-homes .footer-grid p.tag{ color:var(--ink-soft); max-width:30ch; }
.henley-homes .footer-col h4{ font-family:var(--font-mono); font-size:0.8rem; color:var(--steel); margin-bottom:16px; font-weight:400; }
.henley-homes .footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.henley-homes .footer-col a{ color:var(--ink-soft); font-size:0.95rem; }
.henley-homes .footer-col a:hover{ color:var(--blue); }
.henley-homes .footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:24px; border-top:1px solid var(--line);
  font-size:0.85rem; color:var(--steel); flex-wrap:wrap; gap:10px;
}

@media (max-width: 780px){
  .henley-homes .footer-grid{ grid-template-columns: 1fr 1fr; }
  .henley-homes nav.primary ul, .henley-homes nav.primary .btn-ghost{ display:none; }
  .henley-homes .hamburger{ display:flex; }
  .henley-homes .hero h1{ max-width:100%; }
}

/* ---------- Admin bar offset ---------- */
.admin-bar .henley-homes header.site-header{ top:32px; }
@media (max-width: 782px){
  .admin-bar .henley-homes header.site-header{ top:46px; }
}

/* ---------- OUR WORK PAGE ---------- */
.henley-homes .spotlight-grid{
  display:grid; grid-template-columns: 0.9fr 1.1fr; gap:64px; align-items:center;
}
.henley-homes .spotlight-copy p:not(.section-tag){ color:var(--ink-soft); font-size:1.05rem; margin-top:16px; max-width:44ch; }
.henley-homes .spotlight-copy h2{ font-size:clamp(1.7rem, 3vw, 2.2rem); font-weight:800; }
.henley-homes .spotlight-media video, .henley-homes .spotlight-media img{ width:100%; height:340px; object-fit:cover; display:block; }
@media (max-width: 900px){
  .henley-homes .spotlight-grid{ grid-template-columns:1fr; gap:40px; }
}

.henley-homes .filter-bar{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:40px; }
.henley-homes .filter-btn{
  background:transparent; border:1.5px solid var(--line); color:var(--ink-soft);
  padding:10px 20px; font-size:0.88rem; font-weight:600;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.henley-homes .filter-btn:hover{ border-color:var(--blue); color:var(--blue); }
.henley-homes .filter-btn.active{ background:var(--ink); border-color:var(--ink); color:var(--white); }

.henley-homes .work-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:24px; }
.henley-homes .work-card{ position:relative; overflow:hidden; }
.henley-homes .work-card.hidden{ display:none; }
.henley-homes .work-card img{ width:100%; height:280px; object-fit:cover; transition: transform .5s ease; }
.henley-homes .work-card:hover img{ transform:scale(1.05); }
.henley-homes .work-card .tag{
  position:absolute; top:14px; left:14px; z-index:2;
  font-family:var(--font-mono); font-size:0.72rem; color:var(--white);
  background:rgba(15,16,12,0.6); padding:5px 11px;
}
.henley-homes .work-card .cap{
  position:absolute; left:16px; bottom:14px; right:16px; z-index:2;
  color:var(--white); font-weight:700; font-size:0.98rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.henley-homes .work-card::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(to top, rgba(10,11,8,0.65) 0%, rgba(10,11,8,0) 45%);
  z-index:1;
}
@media (max-width: 900px){ .henley-homes .work-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .henley-homes .work-grid{ grid-template-columns: 1fr; } }

/* ---------- PROJECT DETAIL ---------- */
.henley-homes a.work-card{ display:block; }
.henley-homes .project-content{ max-width:760px; color:var(--ink-soft); font-size:1.05rem; }
.henley-homes .project-content > * + *{ margin-top:1.2em; }
.henley-homes .project-content h2, .henley-homes .project-content h3{ margin-top:1.6em; }
.henley-homes .project-content img{ height:auto; }

/* ---------- REVIEWS PAGE ---------- */
.henley-homes .why{ background:var(--bg-alt); }
.henley-homes .why-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:2px; background:var(--line); border:1px solid var(--line); }
.henley-homes .why-card{ background:var(--bg); padding:32px 28px; }
.henley-homes .why-icon{
  width:52px; height:52px; margin-bottom:20px;
  border:1.5px solid var(--blue); color:var(--blue);
  display:flex; align-items:center; justify-content:center;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.henley-homes .why-card h3{ font-size:1.1rem; font-weight:800; margin-bottom:10px; }
.henley-homes .why-card p{ color:var(--ink-soft); font-size:0.95rem; }
@media (max-width: 860px){ .henley-homes .why-grid{ grid-template-columns:1fr; } }

.henley-homes .review-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:24px; }
.henley-homes .review-card{
  background:var(--bg-alt); border-left:3px solid var(--blue);
  padding:30px 26px; display:flex; flex-direction:column; transition: opacity .3s ease;
}
.henley-homes .review-card.hidden{ display:none; }
.henley-homes .stars{ display:flex; gap:3px; color:var(--tan); margin-bottom:16px; }
.henley-homes .review-card blockquote{ font-size:1rem; color:var(--ink); margin:0 0 20px; flex:1; line-height:1.55; }
.henley-homes .review-attrib{ display:flex; align-items:center; gap:12px; }
.henley-homes .avatar{
  width:38px; height:38px; border-radius:50%;
  background:var(--blue); color:var(--white);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-size:0.82rem; font-weight:600; flex-shrink:0;
}
.henley-homes .review-attrib cite{ font-style:normal; }
.henley-homes .review-attrib .name{ font-weight:700; font-size:0.92rem; display:block; }
.henley-homes .review-attrib .tag{ font-family:var(--font-mono); font-size:0.76rem; color:var(--steel); }
@media (max-width: 900px){ .henley-homes .review-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .henley-homes .review-grid{ grid-template-columns: 1fr; } }

.henley-homes .leave-review{ background:var(--bg-alt); text-align:left; }
.henley-homes .leave-grid{ display:flex; gap:20px; flex-wrap:wrap; margin-top:8px; }
.henley-homes .platform-btn{
  display:flex; align-items:center; gap:14px;
  background:var(--bg); border:1.5px solid var(--line);
  padding:18px 26px; transition: border-color .2s ease; flex:1; min-width:220px;
}
.henley-homes .platform-btn:hover{ border-color:var(--blue); }
.henley-homes .platform-icon{
  width:40px; height:40px; border-radius:50%;
  background:var(--blue); color:var(--white);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.henley-homes .platform-btn .ptxt strong{ display:block; font-size:0.98rem; }
.henley-homes .platform-btn .ptxt span{ color:var(--steel); font-size:0.82rem; }

/* ---------- CONTACT PAGE ---------- */
.henley-homes .methods{ background:var(--bg-alt); }
.henley-homes .methods-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:2px; background:var(--line); border:1px solid var(--line); }
.henley-homes .method-card{ background:var(--bg); padding:32px 28px; }
.henley-homes .method-icon{
  width:52px; height:52px; margin-bottom:20px;
  border:1.5px solid var(--blue); color:var(--blue);
  display:flex; align-items:center; justify-content:center;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.henley-homes .method-card h3{ font-size:1.1rem; font-weight:800; margin-bottom:10px; }
.henley-homes .method-card p{ color:var(--ink-soft); font-size:0.95rem; margin-bottom:14px; }
.henley-homes .method-card a.value{ font-weight:700; color:var(--blue); font-size:1.02rem; }
.henley-homes .method-card a.value:hover{ color:var(--blue-bright); }
@media (max-width: 860px){ .henley-homes .methods-grid{ grid-template-columns:1fr; } }

.henley-homes .main-contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:64px; align-items:start; }
.henley-homes .info-media{ position:relative; }
.henley-homes .info-media img{ width:100%; height:280px; object-fit:cover; }
.henley-homes .info-media::before{
  content:""; position:absolute; top:-16px; right:-16px; left:16px; bottom:16px;
  border:1.5px solid var(--tan); z-index:-1;
}
.henley-homes .info-copy{ margin-top:28px; }
.henley-homes .info-copy p{ color:var(--ink-soft); font-size:1rem; margin-bottom:14px; max-width:44ch; }

.henley-homes .next-steps{ margin-top:28px; display:flex; flex-direction:column; gap:16px; }
.henley-homes .next-step{ display:flex; align-items:flex-start; gap:14px; }
.henley-homes .next-num{
  width:28px; height:28px; flex-shrink:0; border-radius:50%;
  background:var(--blue); color:var(--white);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-size:0.8rem; font-weight:600;
}
.henley-homes .next-step .ntxt strong{ display:block; font-size:0.96rem; }
.henley-homes .next-step .ntxt span{ color:var(--ink-soft); font-size:0.9rem; }

.henley-homes .form-card{ background:var(--ink); color:var(--white); padding:44px 40px; }
.henley-homes .form-card h2{ color:var(--white); font-size:1.6rem; margin-bottom:10px; }
.henley-homes .form-card > p{ color:rgba(255,255,255,0.75); font-size:0.98rem; margin-bottom:28px; }
.henley-homes .form-card .btn-primary{ margin-top:8px; }

@media (max-width: 900px){
  .henley-homes .main-contact-grid{ grid-template-columns:1fr; gap:40px; }
}
