/* =========================================================
   Home Painting Solutions — Theme Stylesheet
   1. Variables & reset      6. Process
   2. Buttons & helpers      7. Projects
   3. Header                 8. Testimonials / Brands
   4. Hero                   9. CTA / FAQ
   5. Services / Stats      10. Footer / Responsive
   ========================================================= */

/* ---------- 1. Variables & reset ---------- */
:root {
  --green-900: #1d3b2a;
  --green-800: #244733;
  --green-700: #2d5540;
  --orange: #e4622c;
  --orange-dk: #c8501f;
  --gold: #c69a5c;
  --cream: #faf6ef;
  --cream-2: #f3ede2;
  --white: #ffffff;
  --ink: #1f2a24;
  --muted: #6d7b72;
  --line: #e5ddd0;

  --font-body:
    "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-script: "Caveat", cursive;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 59, 42, 0.08);
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 500;
  margin: 0 0 0.5em;
  line-height: 1.15;
}
p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.section {
  padding-block: 80px;
}
.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* ---------- 2. Buttons & shared bits ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.25s,
    border-color 0.25s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn .icon {
  font-size: 15px;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover {
  background: var(--orange-dk);
}
.btn-dark {
  background: var(--green-900);
  color: #fff;
}
.btn-dark:hover {
  background: var(--green-700);
}
.btn-outline {
  border: 1px solid var(--green-900);
  color: var(--green-900);
}
.btn-outline:hover {
  background: var(--green-900);
  color: #fff;
}
.cta-section .btn-outline {
  border-color: #fff;
  color: #fff;
}
.cta-section .btn-outline:hover {
  background: #fff;
  color: var(--green-900);
}

.eyebrow,
.section-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.section-label {
  color: var(--gold);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 42px;
}
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  color: var(--green-900);
}
.section-head .section-text {
  color: var(--muted);
  max-width: 520px;
  margin: 0;
  font-size: 14px;
}
/* .sh-text is also the services-hero paragraph class; undo its 420px cap
   when it is used as the section-head wrapper so headings stay on one line. */
.section-head .sh-text {
  max-width: none;
  font-size: inherit;
  color: inherit;
}
.section-head .sh-text .section-text {
  max-width: 900px;
}
.section-head.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head.centered .section-text {
  max-width: 560px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green-900);
  border-bottom: 1px solid var(--green-900);
  padding-bottom: 3px;
  transition:
    gap 0.25s,
    color 0.25s;
}
.link-arrow:hover {
  gap: 14px;
  color: var(--orange);
  border-color: var(--orange);
}
.link-arrow.small {
  border: 0;
  font-size: 12.5px;
  padding: 0;
}

.grid {
  display: grid;
  gap: 24px;
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---------- 3. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition:
    box-shadow 0.3s,
    border-color 0.3s,
    background 0.3s;
}
.site-header.is-stuck {
  box-shadow: 0 4px 20px rgba(29, 59, 42, 0.07);
  border-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}

/* Brand logo (assets/images/logo.webp, transparent gold mark).
   Sized by height only so the 2:1 artwork keeps its proportions. */
.logo {
  display: flex;
  align-items: center;
  flex: none;
  margin-right: auto;
}
.logo img {
  height: 56px;
  width: auto;
}
.logo-footer img {
  height: 84px;
}
@media (max-width: 900px) {
  .logo img {
    height: 46px;
  }
  .logo-footer img {
    height: 72px;
  }
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a.is-active {
  color: var(--orange);
}
.caret {
  width: 6px;
  height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
}

.has-dropdown {
  position: relative;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13.5px;
}
.dropdown a:hover {
  background: var(--cream-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 9px;
}
.phone-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--orange);
}
.phone-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.phone-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.phone-text strong {
  font-size: 13.5px;
  color: var(--green-900);
}
.phone-text small {
  font-size: 10.5px;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--green-900);
  border-radius: 2px;
  transition: 0.3s;
}
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 4. Hero ---------- */
.hero {
  background: var(--cream);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
  padding-block: 56px 64px;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  color: var(--green-900);
  margin-bottom: 20px;
}
.hero h1 .accent {
  color: var(--orange);
}
.hero-text {
  color: var(--muted);
  max-width: 440px;
  font-size: 14.5px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 40px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.hero-features li {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hf-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(228, 98, 44, 0.1);
  color: var(--orange);
  border-radius: 9px;
}
.hf-icon .icon {
  font-size: 17px;
}
.hf-text {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--green-900);
}

.hero-visual {
  position: relative;
}
.hero-img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  border-radius: 200px 200px 18px 18px;
  background: linear-gradient(140deg, var(--cream-2), #dfe7de);
}
.hero-script {
  position: absolute;
  top: 46px;
  left: -22px;
  font-family: var(--font-script);
  font-size: 26px;
  line-height: 1.1;
  color: var(--green-900);
  background: var(--cream);
  padding: 10px 16px;
  border-radius: 12px;
  max-width: 170px;
  transform: rotate(-5deg);
}
.hero-badge {
  position: absolute;
  top: 60px;
  right: 34px;
  background: rgba(250, 246, 239, 0.92);
  color: var(--green-900);
  font-family: var(--font-head);
  font-size: 17px;
  line-height: 1.25;
  padding: 16px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* ---------- 5. Services ---------- */
.services-section {
  background: var(--white);
}

.service-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.sc-media {
  height: 165px;
  background: var(--cream-2);
  overflow: hidden;
}
.sc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.service-card:hover .sc-media img {
  transform: scale(1.06);
}
.sc-badge {
  position: absolute;
  top: 140px;
  left: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  border-radius: 11px;
  box-shadow: 0 6px 16px rgba(228, 98, 44, 0.35);
}
.sc-badge .icon {
  font-size: 21px;
}
.sc-body {
  padding: 34px 20px 24px;
}
.sc-body h3 {
  font-size: 17px;
  color: var(--green-900);
}
.sc-body p {
  font-size: 13px;
  color: var(--muted);
  min-height: 60px;
}

/* ---------- Stats ---------- */
.stats-section {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--green-800);
  color: #fff;
}
.stats-media img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}
.stats-content {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 44px 5vw 44px 40px;
}
.stats-script {
  font-family: var(--font-script);
  font-size: 24px;
  line-height: 1.2;
  color: var(--gold);
  margin: 0;
  flex: none;
}
.stats-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  flex: 1;
  text-align: center;
}
.st-icon {
  display: inline-grid;
  place-items: center;
  color: var(--gold);
  margin-bottom: 10px;
}
.st-icon .icon {
  font-size: 26px;
}
.st-value {
  display: block;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 500;
}
.st-label {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- 6. Process ---------- */
.process-section {
  background: var(--cream);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.process-step {
  position: relative;
}
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 33px;
  left: calc(50% + 52px);
  right: calc(-50% + 52px);
  border-top: 1.5px dashed var(--line);
}
.ps-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--green-900);
  border: 1px solid var(--line);
  transition: 0.3s;
}
.ps-icon .icon {
  font-size: 25px;
}
.process-step:hover .ps-icon {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.ps-no {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 8px;
}
.process-step h3 {
  font-size: 16px;
  color: var(--green-900);
}
.process-step p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}

/* ---------- 7. Projects ---------- */
.projects-section {
  background: var(--white);
}
.project-card {
  display: block;
}
.pc-media {
  position: relative;
  height: 190px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-2);
  margin-bottom: 14px;
}
.pc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.project-card:hover .pc-media img {
  transform: scale(1.07);
}
.pc-zoom {
  position: absolute;
  inset: auto 14px 14px auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s;
}
.project-card:hover .pc-zoom {
  opacity: 1;
  transform: translateY(0);
}
.project-card h3 {
  font-size: 15px;
  margin-bottom: 2px;
  color: var(--green-900);
}
.project-card p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}

/* ---------- 8. Testimonials ---------- */
.testimonials-section {
  background: var(--cream);
}
.slider-nav {
  display: flex;
  gap: 10px;
}
.slider-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  transition: 0.25s;
}
.slider-btn svg {
  width: 17px;
  height: 17px;
  fill: var(--green-900);
  transition: fill 0.25s;
}
.slider-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
}
.slider-btn:hover svg {
  fill: #fff;
}

.testi-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.testi-track::-webkit-scrollbar {
  display: none;
}
.testi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  scroll-snap-align: start;
}
.tc-quote {
  color: var(--orange);
}
.tc-quote .icon {
  font-size: 26px;
}
.tc-text {
  font-size: 13.5px;
  color: var(--ink);
  margin: 10px 0 22px;
}
.tc-foot {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream-2);
  flex: none;
}
.tc-person {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  margin-right: auto;
}
.tc-person strong {
  font-size: 13.5px;
  color: var(--green-900);
}
.tc-person small {
  font-size: 11.5px;
  color: var(--muted);
}
.tc-stars {
  color: #f0a500;
  display: flex;
  gap: 2px;
}
.tc-stars .icon {
  font-size: 13px;
}

/* ---------- Brands ---------- */
.brands-section {
  background: var(--white);
}

/* Endless logo marquee. The track holds two identical copies of the
   list, so sliding it exactly -50% lands on a matching frame and the
   loop is invisible. Edges fade out via a mask. */
.brand-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 70px,
    #000 calc(100% - 70px),
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 70px,
    #000 calc(100% - 70px),
    transparent
  );
}
.brands-head {
  margin-bottom: 48px;
}
.brands-head h2 {
  color: var(--gold);
  font-size: clamp(30px, 3.6vw, 42px);
}

.brand-track {
  display: flex;
  width: max-content;
  gap: 36px;
  /* room for the cards to lift on hover without the mask clipping them */
  padding: 16px 0 22px;
  animation: brand-scroll 40s linear infinite;
}
.brand-marquee:hover .brand-track {
  animation-play-state: paused;
}

@keyframes brand-scroll {
  from {
    transform: translateX(0);
  }
  /* half the track = one full copy of the list, plus its trailing gap */
  to {
    transform: translateX(calc(-50% - 18px));
  }
}

.brand-track li {
  position: relative;
  flex: 0 0 200px;
  height: 160px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 28px rgba(29, 59, 42, 0.09);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.brand-track li:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(29, 59, 42, 0.14);
}
.brand-track img {
  max-height: 86px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  /* Some official logos ship as JPG/PNG on a white plate; multiply drops
     that white into the card so every logo sits flush. */
  mix-blend-mode: multiply;
}
.brand-fallback {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  color: var(--green-900);
  text-align: center;
  letter-spacing: 0.01em;
}

@media (prefers-reduced-motion: reduce) {
  .brand-track {
    animation: none;
  }
  .brand-marquee {
    overflow-x: auto;
  }
}

/* ---------- 9. CTA ---------- */
.cta-section {
  padding-block: 0 0;
  background: var(--cream);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: var(--green-800);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px 36px;
  margin-bottom: 80px;
}
.cta-text h2 {
  font-size: 23px;
  margin-bottom: 4px;
}
.cta-text p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- FAQ ---------- */
.faq-section {
  background: var(--cream);
  padding-top: 0;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 15px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--green-900);
}
.faq-sign {
  position: relative;
  width: 13px;
  height: 13px;
  flex: none;
}
.faq-sign::before,
.faq-sign::after {
  content: "";
  position: absolute;
  background: var(--muted);
  transition: transform 0.3s;
}
.faq-sign::before {
  inset: 50% 0 auto 0;
  height: 1.5px;
  transform: translateY(-50%);
}
.faq-sign::after {
  inset: 0 50% 0 auto;
  width: 1.5px;
  transform: translateX(50%);
}
.faq-q[aria-expanded="true"] .faq-sign::after {
  transform: translateX(50%) rotate(90deg);
}
.faq-q[aria-expanded="true"] {
  color: var(--orange);
}
.faq-a {
  padding: 0 18px 16px;
}
.faq-a p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ---------- 10. Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 60px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 44px;
}
.footer-about p {
  font-size: 13px;
  margin: 18px 0 20px;
  max-width: 300px;
}
.footer-col h4 {
  font-size: 15.5px;
  color: #fff;
  margin-bottom: 18px;
}
.footer-links li + li,
.footer-contact li + li {
  margin-top: 10px;
}
.footer-links a {
  font-size: 13px;
  transition:
    color 0.2s,
    padding 0.2s;
}
.footer-links a:hover {
  color: var(--orange);
  padding-left: 4px;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
}
.fc-icon {
  flex: none;
  width: 16px;
  color: var(--orange);
}
.fc-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.fc-lines {   /* two phone numbers, one under the other */
  display: grid;
  gap: 4px;
}
.footer-contact a:hover {
  color: var(--orange);
}

.social-links {
  display: flex;
  gap: 9px;
}
.social-links a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: 0.25s;
}
.social-links svg {
  width: 15px;
  height: 15px;
  fill: #fff;
}
.social-links a:hover {
  background: var(--orange);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
}
.footer-bottom p {
  margin: 0;
}
.footer-legal {
  display: flex;
  gap: 22px;
}
.footer-legal a:hover {
  color: var(--orange);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--orange);
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: 0.3s;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .brand-track li {
    flex-basis: 220px;
    height: 175px;
  }
  .stats-section {
    grid-template-columns: 1fr;
  }
  .stats-media img {
    height: 180px;
    min-height: 0;
  }
  .stats-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 20px;
    gap: 24px;
  }
  .testi-track {
    grid-auto-columns: calc((100% - 24px) / 2);
  }
}

@media (max-width: 900px) {
  .header-inner {
    height: 66px;
  }
  .nav-toggle {
    display: flex;
  }
  .header-phone {
    display: none;
  }
  .main-nav {
    position: fixed;
    inset: 66px 0 auto 0;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 12px 20px 22px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .main-nav.is-open {
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
  }
  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav > ul > li {
    border-bottom: 1px solid var(--line);
  }
  .main-nav > ul > li > a {
    padding: 13px 0;
    justify-content: space-between;
  }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    padding: 0 0 10px 12px;
    display: none;
  }
  .has-dropdown.is-open .dropdown {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-block: 36px 48px;
  }
  .hero-visual {
    order: -1;
  }
  .hero-img {
    height: 340px;
    border-radius: 150px 150px 16px 16px;
  }
  .hero-script {
    left: 0;
    font-size: 22px;
  }
  .hero-text {
    max-width: none;
  }
  .section {
    padding-block: 58px;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-head.centered {
    align-items: center;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 620px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .hero-features {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .stats-list {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .process-steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .process-step:not(:last-child)::after {
    display: none;
  }
  .brand-track li {
    flex-basis: 175px;
    height: 145px;
    padding: 22px;
  }
  .brand-track img {
    max-height: 64px;
  }
  .brand-track {
    gap: 22px;
  }
  .testi-track {
    grid-auto-columns: 88%;
  }
  .cta-inner {
    padding: 26px 22px;
    margin-bottom: 58px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    justify-content: flex-start;
  }
  .sc-body p {
    min-height: 0;
  }
}


/* =========================================================
   11. Contact page
   ========================================================= */

/* ---------- Full-bleed page banner ---------- */
.page-banner {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}
.pb-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pb-overlay {
  position: absolute;
  inset: 0;
  /* darker at the edges so the type stays readable on any photo */
  background:
    linear-gradient(180deg, rgba(20, 30, 24, 0.55), rgba(20, 30, 24, 0.3) 40%, rgba(20, 30, 24, 0.75)),
    radial-gradient(60% 55% at 50% 45%, transparent, rgba(20, 30, 24, 0.45));
}
.pb-inner {
  position: relative;
  z-index: 1;
  padding-block: 90px;
  color: #fff;
}
.page-banner h1 {
  font-size: clamp(34px, 5.6vw, 64px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.pb-tagline {
  font-size: clamp(12px, 1.4vw, 14px);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}
.pb-tagline .dot {
  color: var(--gold);
  margin-inline: 8px;
}
.btn-pill {
  border-radius: 999px;
  padding: 15px 30px;
  background: var(--orange);
  color: #fff;
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing: 0.1em;
}
.btn-pill:hover {
  background: var(--orange-dk);
}

.pb-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: #fff;
  animation: pb-bob 2.2s ease-in-out infinite;
}
.pb-scroll .icon {
  font-size: 20px;
}
.pb-scroll:hover {
  background: rgba(255, 255, 255, 0.15);
}
@keyframes pb-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

/* ---------- Contact channels ---------- */
.channels-section {
  background: var(--white);
}
.channel-card {
  display: block;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.channel-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.ch-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--orange);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(228, 98, 44, 0.16);
}
.ch-icon .icon {
  font-size: 23px;
}
.channel-card h3 {
  font-size: 17px;
  color: var(--green-900);
  margin-bottom: 8px;
}
.ch-line {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 2px;
}
.ch-note {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}

/* ---------- Enquiry form ---------- */
.enquiry-section {
  background: var(--cream);
}
.enquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: start;
}
.enquiry-aside h2 {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--green-900);
}
.enquiry-aside .section-text {
  color: var(--muted);
  font-size: 14px;
}

.promise-list {
  margin: 28px 0;
  display: grid;
  gap: 14px;
}
.promise-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink);
}
.pl-icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: rgba(228, 98, 44, 0.1);
  color: var(--orange);
  border-radius: 8px;
}
.pl-icon .icon {
  font-size: 15px;
}

.aside-call {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--green-800);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px 22px;
}
.ac-icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--gold);
}
.aside-call small {
  display: block;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.72);
}
.aside-call a {
  font-family: var(--font-head);
  font-size: 21px;
}
.aside-call a:hover {
  color: var(--gold);
}

.enquiry-form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--green-900);
  margin-bottom: 7px;
}
.field label span {
  color: var(--orange);
}
.field label small {
  color: var(--muted);
  font-weight: 400;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #9aa79f;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  background: var(--white);
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(228, 98, 44, 0.12);
}
.field.has-error input,
.field.has-error textarea {
  border-color: #d64545;
  background: #fdf5f5;
}
.field-msg {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #d64545;
}

/* native select arrow off, our own chevron on */
.select-wrap {
  position: relative;
}
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}
.select-wrap .icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--muted);
  pointer-events: none;
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.form-note {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  margin: 14px 0 0;
}

/* honeypot -- off-screen rather than display:none, which some bots skip */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  background: #fdf5f5;
  border: 1px solid #f0c9c9;
  color: #b13a3a;
  border-radius: 9px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 22px;
}
.form-success {
  text-align: center;
  padding: 26px 10px;
}
.fs-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  background: rgba(45, 85, 64, 0.1);
  color: var(--green-700);
  border-radius: 50%;
}
.fs-icon .icon {
  font-size: 30px;
}
.form-success h3 {
  font-size: 22px;
  color: var(--green-900);
}
.form-success p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}
.form-success a {
  color: var(--orange);
  font-weight: 500;
}

/* ---------- Map ---------- */
.map-section {
  background: var(--white);
  padding-bottom: 80px;
}
.map-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: stretch;
}
.map-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.map-card h3 {
  font-size: 20px;
  color: var(--green-900);
}
.map-address {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
}
.map-hours {
  margin: 20px 0 22px;
  border-top: 1px solid var(--line);
}
.map-hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.map-hours span {
  color: var(--muted);
}
.map-hours strong {
  color: var(--green-900);
  font-weight: 500;
}
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 380px;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

/* ---------- Contact page responsive ---------- */
@media (max-width: 900px) {
  .page-banner {
    min-height: 440px;
  }
  .pb-inner {
    padding-block: 70px;
  }
  .enquiry-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .map-inner {
    grid-template-columns: 1fr;
  }
  .enquiry-form-wrap {
    padding: 26px 20px;
  }
}

@media (max-width: 620px) {
  .page-banner {
    min-height: 400px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pb-tagline .dot {
    margin-inline: 5px;
  }
}

/* ---------- Split FAQ (accordion left, photo right) ---------- */
.faq-split-section {
  background: var(--cream);
  padding-bottom: 0;
}
.faq-split {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 50px;
  align-items: center;
}
.faq-split-text h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  color: var(--green-900);
  margin-bottom: 6px;
}
.faq-split-text .section-text {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 26px;
}
.faq-list {
  display: grid;
  gap: 12px;
}
/* .faq-item / .faq-q / .faq-a styles are shared with the home page,
   so the existing accordion script drives this list unchanged. */
.faq-split .faq-q {
  padding: 16px 20px;
}
.faq-split .faq-sign {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color 0.25s, background 0.25s;
}
.faq-split .faq-sign::before {
  inset: 50% 9px auto 9px;
}
.faq-split .faq-sign::after {
  inset: 9px 50% 9px auto;
}
.faq-split .faq-q:hover .faq-sign,
.faq-split .faq-q[aria-expanded="true"] .faq-sign {
  border-color: var(--orange);
  background: rgba(228, 98, 44, 0.08);
}
.faq-split .faq-q[aria-expanded="true"] .faq-sign::before,
.faq-split .faq-q[aria-expanded="true"] .faq-sign::after {
  background: var(--orange);
}

.faq-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  align-self: stretch;
  min-height: 420px;
}
.faq-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}
.faq-script {
  position: absolute;
  left: 30px;
  bottom: 40px;
  font-family: var(--font-script);
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
.faq-swoosh {
  display: block;
  width: 150px;
  height: 22px;
  margin-top: 4px;
  color: var(--orange);
}

/* ---------- Full-width CTA band ---------- */
.cta-band {
  background: var(--green-900);
  color: #fff;
  /* The footer is the same dark green, so leave a cream gap below --
     without it the two blocks read as one slab. */
  margin-top: 80px;
  margin-bottom: 70px;
}
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 40px;
}
.cb-text h2 {
  font-size: clamp(22px, 2.8vw, 31px);
  margin-bottom: 6px;
}
.cb-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

@media (max-width: 900px) {
  .faq-split {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .faq-visual {
    order: -1;
    min-height: 300px;
  }
  .faq-visual img {
    min-height: 300px;
  }
  .cta-band {
    margin-top: 58px;
    margin-bottom: 50px;
  }
  .cta-band-inner {
    padding-block: 32px;
  }
}

/* =========================================================
   12. About page
   ========================================================= */

/* ---------- Shared handwritten note (also used on the FAQ) ---------- */
.script-note {
  font-family: var(--font-script);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  color: var(--green-900);
}
.script-swoosh {
  display: block;
  width: 140px;
  height: 20px;
  margin-top: 2px;
  color: var(--orange);
}

/* ---------- Hero ---------- */
.about-hero {
  background: var(--cream);
  overflow: hidden;
}
.about-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
  padding-block: 40px 56px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 26px;
}
.breadcrumb a:hover {
  color: var(--orange);
}
.breadcrumb [aria-current] {
  color: var(--green-900);
  font-weight: 500;
}
.about-hero h1 {
  font-size: clamp(38px, 5vw, 49px);
  color: var(--green-900);
  margin-bottom: 14px;
}
.ah-lead {
  font-family: var(--font-head);
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.3;
  color: var(--green-900);
  margin-bottom: 18px;
}
.ah-text {
  font-size: 14px;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 28px;
}

.ah-visual {
  position: relative;
}
.ah-visual picture {
  display: block;
}
.ah-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: 70% center;   /* keeps the slogan on the wall in view */
  border-radius: var(--radius);
  background: var(--cream-2);
}

/* ---------- Stats strip ---------- */
.about-stats {
  background: var(--cream-2);
  padding-block: 28px;
}
.as-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.as-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.as-icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--orange);
  border: 1px solid rgba(228, 98, 44, 0.35);
  border-radius: 12px;
}
.as-icon .icon {
  font-size: 22px;
}
.as-list strong {
  display: block;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--green-900);
  line-height: 1.1;
}
.as-label {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Our story ---------- */
.story-section {
  background: var(--cream);
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.story-media img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--cream-2);
}
.story-text h2 {
  font-size: clamp(27px, 3.4vw, 38px);
  color: var(--green-900);
  margin-bottom: 8px;
}
.story-lead {
  font-family: var(--font-head);
  font-size: 19px;
  color: var(--green-700);
  margin-bottom: 20px;
}
.story-text p {
  font-size: 13.5px;
  color: var(--muted);
}
.story-text .btn {
  margin-top: 12px;
}

/* ---------- Mission / vision / values ---------- */
.pillars-section {
  background: var(--cream);
  padding-top: 0;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.pillar {
  display: flex;
  gap: 16px;
}
.pillar-icon {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--orange);
  border: 1px solid rgba(228, 98, 44, 0.35);
  border-radius: 12px;
}
.pillar-icon .icon {
  font-size: 23px;
}
.pillar h3 {
  font-size: 18px;
  color: var(--green-900);
  margin-bottom: 8px;
}
.pillar p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* orange ticked list, shared by the pillars and the trust band */
.check-list {
  display: grid;
  gap: 9px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--ink);
}
.check-list .icon {
  flex: none;
  font-size: 16px;
  color: var(--orange);
  margin-top: 2px;
}

/* ---------- Why homeowners trust us ---------- */
.trust-section {
  display: grid;
  grid-template-columns: 300px 1fr 280px;
  align-items: center;
  gap: 40px;
  background: var(--cream-2);
  padding-right: 40px;
}
.trust-media picture {
  display: block;
  height: 100%;
}
.trust-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.trust-body {
  padding-block: 44px;
}
.trust-body h2 {
  font-size: clamp(24px, 3vw, 33px);
  color: var(--green-900);
  margin-bottom: 6px;
}
.trust-lead {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.trust-body .check-list li {
  font-size: 13.5px;
}
.trust-script {
  text-align: left;
}

/* ---------- About responsive ---------- */
@media (max-width: 1080px) {
  .trust-section {
    grid-template-columns: 240px 1fr;
    padding-right: 24px;
  }
  .trust-script {
    grid-column: 2;
    padding-bottom: 36px;
  }
  .trust-body {
    padding-bottom: 10px;
  }
}

@media (max-width: 900px) {
  .about-hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .ah-visual {
    order: -1;
  }
  .ah-visual img {
    height: 320px;
  }
  .as-list {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .story-media img {
    height: 300px;
  }
  /* Mission / vision / values become separate cards, so the three
     blocks read as distinct instead of one long run of text. */
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pillar {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 18px;
  }
  .trust-section {
    grid-template-columns: 1fr;
    gap: 0;
    padding-right: 0;
  }
  .trust-media img {
    min-height: 0;
    height: 260px;
    object-position: center 60%;   /* portrait photo: keep the bucket's logo in the strip */
  }
  .trust-body {
    padding: 30px 20px 0;
  }
  /* The tablet rule pins this to column 2. On a one-column grid that
     silently creates a second column and squeezes the photo into a
     thin strip, so it has to be released here. */
  .trust-script {
    grid-column: auto;
    padding: 16px 20px 34px;
  }
}

@media (max-width: 620px) {
  .about-hero-inner {
    padding-block: 24px 40px;
  }
  .ah-visual img {
    height: 250px;
  }
  .about-hero h1 {
    margin-bottom: 8px;
  }

  /* 2 x 2 stats, stacked icon over number, instead of four long rows */
  .about-stats {
    padding-block: 22px;
  }
  .as-list {
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
  }
  .as-list li {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .as-icon {
    width: 40px;
    height: 40px;
  }
  .as-list strong {
    font-size: 20px;
  }
  .as-label {
    font-size: 11.5px;
  }

  .story-media img {
    height: 230px;
  }
  .story-lead {
    font-size: 17px;
  }

  .pillar {
    gap: 14px;
  }
  .pillar-icon {
    width: 42px;
    height: 42px;
  }

  .trust-body h2 {
    font-size: 24px;
  }
  .trust-script .script-note {
    font-size: 26px;
  }
}

/* =========================================================
   13. Services page
   ========================================================= */

/* ---------- Hero ----------
   The artwork (cream wall on the left, orange brush strokes on the
   right) is the section background. The gradient below is a fallback
   that keeps the same left-to-right feel until the file is in place,
   so the heading never lands on bare white. */
.services-hero {
  background-color: var(--cream);
  background-image: url("../images/services-hero.webp");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.services-hero-inner {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 30px;
  align-items: center;
  min-height: 380px;
  padding-block: 40px 52px;
}
.services-hero h1 {
  font-size: clamp(38px, 5.2vw, 60px);
  color: var(--green-900);
  margin-bottom: 14px;
}
.sh-lead {
  font-family: var(--font-head);
  font-size: clamp(19px, 2.3vw, 27px);
  line-height: 1.3;
  color: var(--green-900);
  margin-bottom: 16px;
}
.sh-text {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 420px;
  margin: 0;
}
.sh-visual {
  display: flex;
  justify-content: flex-end;
  align-self: start;
  padding-top: 10px;
}
.sh-script {
  text-align: right;
  color: var(--green-900);
}
.sh-script .script-swoosh {
  margin-left: auto;
}

/* ---------- Service cards ---------- */
.service-list-section {
  background: var(--cream);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
/* White circular badge, as on the reference, rather than the orange
   square used on the home page. */
.sc-badge.light {
  background: var(--white);
  color: var(--green-900);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(29, 59, 42, 0.14);
}
.service-list-section .service-card {
  background: var(--white);
}
.service-list-section .sc-body p {
  min-height: 56px;
}

/* ---------- Why choose us ---------- */
.why-section {
  display: grid;
  grid-template-columns: minmax(230px, 26%) 1fr;
  align-items: center;
  background: var(--cream);
}
.why-media img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  border-radius: 0 var(--radius) var(--radius) 0;
}
/* Capping the width keeps the handwritten note beside the list instead
   of drifting to the far edge on wide screens. */
.why-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 70px);
  max-width: 920px;
  padding: 44px 40px;
}
.why-body {
  flex: 1;
}
.why-script {
  flex: none;
}
.why-body h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--green-900);
  margin-bottom: 20px;
}
/* filled circular ticks */
.check-list.round .icon {
  width: 22px;
  height: 22px;
  padding: 3px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  margin-top: 1px;
}
.check-list.round li {
  font-size: 13.5px;
  align-items: center;
  gap: 11px;
}
.why-script .script-note {
  color: var(--green-900);
}

/* ---------- Services responsive ---------- */
@media (max-width: 1080px) {
  .why-content {
    padding: 36px 24px;
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .sh-visual {
    justify-content: flex-start;
    padding-top: 0;
  }
  .sh-script {
    text-align: left;
  }
  .sh-script .script-swoosh {
    margin-left: 0;
  }
  .why-section {
    grid-template-columns: 1fr;
  }
  .why-media img {
    min-height: 240px;
    border-radius: 0;
  }
  .why-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 32px 20px 38px;
  }
}

@media (max-width: 620px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .service-list-section .sc-body p {
    min-height: 0;
  }
}

/* =========================================================
   14. Projects page
   ========================================================= */

/* ---------- Page header ---------- */
.projects-head {
  background: var(--cream);
  padding-block: 34px 44px;
}
.ph-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}
.projects-head h1 {
  font-size: clamp(38px, 5vw, 58px);
  color: var(--green-900);
  margin-bottom: 12px;
}
.ph-lead {
  font-family: var(--font-head);
  font-size: clamp(18px, 2.1vw, 25px);
  line-height: 1.3;
  color: var(--green-700);
  margin: 0;
}
.ph-text {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  padding-bottom: 6px;
}

/* ---------- Filter bar ---------- */
.gallery-section {
  background: var(--cream);
  padding-top: 20px;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  color: var(--green-900);
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.filter-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.filter-btn.is-active {
  background: var(--green-900);
  border-color: var(--green-900);
  color: #fff;
}
/* Blog search: match count on each category tab */
.fb-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--green-900);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.filter-btn.is-active .fb-count {
  background: var(--orange);
  color: #fff;
}
.filter-btn.is-empty:not(.is-active) .fb-count {
  opacity: 0.55;
}
.filter-empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding-block: 30px 0;
}

/* ---------- Work cards ---------- */
.work-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(29, 59, 42, 0.06);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(29, 59, 42, 0.13);
}
.wc-media {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: var(--cream-2);
}
.wc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.work-card:hover .wc-media img {
  transform: scale(1.07);
}
.wc-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-900);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
}
.wc-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s;
}
.work-card:hover .wc-zoom {
  opacity: 1;
  transform: translateY(0);
}
.wc-body {
  padding: 18px 20px 22px;
}
.wc-body h3 {
  font-size: 17px;
  color: var(--green-900);
  margin-bottom: 6px;
}
.wc-place {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 4px;
}
.wc-place .icon {
  font-size: 14px;
  color: var(--orange);
}
.wc-meta {
  font-size: 12px;
  color: var(--gold);
  margin: 0;
}

/* ---------- Impact band ---------- */
.impact-band {
  background: var(--green-800);
  color: #fff;
  padding-block: 34px;
}
.impact-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.impact-list strong {
  display: block;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 500;
  color: var(--gold);
}
.impact-list span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Case studies ---------- */
.case-section {
  background: var(--cream);
}
.case-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.case-row + .case-row {
  margin-top: 64px;
}
.case-row.is-reversed .case-media {
  order: 2;
}
.case-media {
  position: relative;
}
.case-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--cream-2);
}
.case-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.case-body h3 {
  font-size: clamp(22px, 2.7vw, 30px);
  color: var(--green-900);
  margin-bottom: 12px;
}
.case-text {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 22px;
}

.case-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin: 0 0 24px;
  padding: 20px 0;
  border-block: 1px solid var(--line);
}
.case-facts dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}
.case-facts dd {
  margin: 0;
  font-size: 13px;
  color: var(--green-900);
  font-weight: 500;
}

.case-quote {
  position: relative;
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  border-left: 3px solid var(--orange);
}
.case-quote .icon {
  font-size: 20px;
  color: var(--orange);
}
.case-quote p {
  font-size: 13.5px;
  color: var(--ink);
  margin: 6px 0 8px;
}
.case-quote cite {
  font-style: normal;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- Projects responsive ---------- */
@media (max-width: 900px) {
  .ph-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }
  .case-row {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .case-row.is-reversed .case-media {
    order: 0;
  }
  .case-row + .case-row {
    margin-top: 48px;
  }
  .case-media img {
    height: 300px;
  }
  .impact-list {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}

@media (max-width: 620px) {
  .case-facts {
    grid-template-columns: 1fr;
  }
  .filter-btn {
    padding: 8px 16px;
    font-size: 12.5px;
  }
}

/* =========================================================
   15. Service detail pages
   ========================================================= */

.container.narrow {
  max-width: 820px;
}

/* ---------- Banner tweaks ---------- */
.service-banner {
  min-height: 420px;
}
.service-banner h1 {
  margin-bottom: 14px;
}
.breadcrumb.on-dark {
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
}
.breadcrumb.on-dark a:hover {
  color: #fff;
}
.breadcrumb.on-dark [aria-current] {
  color: var(--gold);
}

/* ---------- Overview ---------- */
.overview-section {
  background: var(--cream);
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: start;
}
.ov-text h2 {
  font-size: clamp(24px, 3vw, 33px);
  color: var(--green-900);
  margin-bottom: 18px;
}
/* Capping the measure keeps lines readable instead of running the full
   width of a large monitor. */
.ov-text p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 62ch;
}

/* Three benefit cards under the copy, so the column is not just text */
.highlight-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}
.highlight-row li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 18px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.highlight-row li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.hl-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(228, 98, 44, 0.1);
  color: var(--orange);
  border-radius: 10px;
  margin-bottom: 12px;
}
.hl-icon .icon {
  font-size: 19px;
}
.highlight-row strong {
  display: block;
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: 4px;
}
.hl-text {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Quick facts card ---------- */
.ov-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}
/* Price leads the card instead of sitting as the last row of a list */
.ov-price {
  background: var(--green-900);
  color: #fff;
  padding: 20px 24px;
  text-align: center;
}
.ov-price span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2px;
}
.ov-price strong {
  font-family: var(--font-head);
  font-size: 27px;
  font-weight: 600;
  color: var(--gold);
}
.ov-price strong small {
  display: block;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}
.ov-card-title {
  font-size: 16px;
  color: #fff;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.sh-content .hero-buttons {
  margin: 22px 0 0;
}
.ov-card-body {
  padding: 8px 22px 22px;
}
.fact-list {
  margin: 0 0 20px;
}
.fact-list > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.fact-list > div:last-child {
  border-bottom: 0;
}
.fact-icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--orange);
  border-radius: 8px;
}
.fact-icon .icon {
  font-size: 15px;
}
.fact-list dt {
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1px;
}
.fact-list dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--green-900);
  line-height: 1.45;
}
.ov-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green-900);
}
.ov-call .icon {
  font-size: 15px;
  color: var(--orange);
}
.ov-call:hover {
  color: var(--orange);
}
.ov-note {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  margin: 12px 0 0;
}

/* ---------- What's included ---------- */
.included-section {
  background: var(--white);
}
.included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.included-grid li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--ink);
}
.inc-icon {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
}
.inc-icon .icon {
  font-size: 15px;
}

/* ---------- Gallery ---------- */
.work-section {
  background: var(--cream);
}
.shot {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-2);
}
.shot img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s;
}
.shot:hover img {
  transform: scale(1.05);
}

/* ---------- Mini process ---------- */
.mini-process-section {
  background: var(--white);
}
.mini-process-section .process-step h3 {
  font-size: 15px;
  margin: 0;
}

/* ---------- Service FAQ ---------- */
.service-faq-section {
  background: var(--cream);
}
.service-faq-section .faq-list {
  display: grid;
  gap: 12px;
}
.service-faq-section .faq-q {
  padding: 16px 20px;
}

/* ---------- Related services ---------- */
.related-section {
  background: var(--white);
  padding-bottom: 0;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.related-card {
  display: block;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
}
.related-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.rc-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--orange);
  border-radius: 50%;
  margin-bottom: 14px;
  box-shadow: 0 5px 14px rgba(228, 98, 44, 0.16);
}
.rc-icon .icon {
  font-size: 20px;
}
.related-card h3 {
  font-size: 15px;
  color: var(--green-900);
  margin-bottom: 6px;
}
.related-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
}
.rc-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--orange);
}
.related-card:hover .rc-more {
  gap: 11px;
}

/* ---------- Service page responsive ---------- */
@media (max-width: 1080px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .included-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .ov-card {
    position: static;
  }
  .highlight-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 26px;
  }
  .highlight-row li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px;
  }
  .hl-icon {
    margin-bottom: 0;
  }
  .highlight-row strong {
    flex: 1;
    min-width: 140px;
  }
  .hl-text {
    flex-basis: 100%;
  }
  .service-banner {
    min-height: 360px;
  }
  .shot img {
    height: 210px;
  }
}

@media (max-width: 620px) {
  .included-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   16. Header -- phone layout
   ========================================================= */
.nav-mobile-cta {
  display: none;
}

@media (max-width: 620px) {
  /* logo + CTA + menu button do not fit on a phone, and the logo was
     being pushed off the left edge -- the CTA moves into the menu */
  .header-cta {
    display: none;
  }
  .header-inner {
    gap: 12px;
  }
  .nav-mobile-cta {
    display: grid;
    gap: 10px;
    padding-top: 18px;
  }
}

/* =========================================================
   17. Home page -- mobile polish
   ========================================================= */

/* Closed mobile menu: max-height:0 does not clip padding, so the top
   of the first link ("Home") was peeking out under the header on
   every page. Drop the padding and hide it until it is opened --
   visibility also keeps a closed menu out of the tab order. */
@media (max-width: 900px) {
  .main-nav {
    padding-block: 0;
    visibility: hidden;
    transition:
      max-height 0.35s ease,
      padding 0.35s ease,
      visibility 0s linear 0.35s;
  }
  .main-nav.is-open {
    padding-block: 12px 22px;
    visibility: visible;
    transition:
      max-height 0.35s ease,
      padding 0.35s ease,
      visibility 0s;
  }
}

/* Stats band: once it stacks, the list has to span the full width or
   the four numbers bunch up on the left. */
@media (max-width: 1080px) {
  .stats-list {
    width: 100%;
  }
}

@media (max-width: 620px) {
  /* ---------- Hero ---------- */
  .hero-inner {
    padding-block: 24px 44px;
  }
  .hero-img {
    height: 300px;
    border-radius: 130px 130px 16px 16px;
  }
  /* script top-left, badge bottom-right, so the two never collide */
  .hero-script {
    top: 18px;
    left: 8px;
    font-size: 19px;
    padding: 6px 12px;
    max-width: 150px;
  }
  .hero-badge {
    top: auto;
    bottom: 16px;
    right: 14px;
    font-size: 14px;
    padding: 10px 14px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    margin: 22px 0 32px;
  }
  .hero-buttons .btn {
    justify-content: center;
  }

  /* ---------- Stats ---------- */
  .stats-media img {
    height: 160px;
  }
  .stats-content {
    align-items: center;
    text-align: center;
    padding: 30px 20px 34px;
  }
  .stats-script br {
    display: none;
  }
  .stats-list {
    gap: 24px 12px;
  }
  .st-value {
    font-size: 26px;
  }

  /* ---------- Process: vertical timeline ----------
     Icon on the left, text on the right, a dashed line joining the
     icons. Roughly half the scroll of four centred blocks. */
  .process-steps {
    gap: 0;
    max-width: 360px;
    margin-inline: auto;
  }
  .process-step {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 16px;
    text-align: left;
    padding-bottom: 26px;
  }
  .process-step:last-child {
    padding-bottom: 0;
  }
  .ps-icon {
    grid-row: 1 / span 3;
    width: 52px;
    height: 52px;
    margin: 0;
  }
  .ps-icon .icon {
    font-size: 21px;
  }
  .ps-no {
    margin: 2px 0 2px;
  }
  .process-step h3 {
    margin-bottom: 4px;
  }
  .process-step p br {
    display: none;
  }
  .process-step:not(:last-child)::after {
    display: block;
    top: 58px;
    bottom: 6px;
    left: 26px;
    right: auto;
    border-top: 0;
    border-left: 1.5px dashed var(--line);
  }

  /* ---------- Projects: 2 x 2 instead of four tall cards ---------- */
  .projects-section .grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 22px 14px;
  }
  .pc-media {
    height: 140px;
    margin-bottom: 10px;
  }
  .pc-zoom {
    display: none;
  }
  .project-card h3 {
    font-size: 14px;
    line-height: 1.3;
  }
  .project-card p {
    font-size: 11.5px;
  }

  /* ---------- CTA box: inset from the screen edge ---------- */
  .cta-section .cta-inner {
    width: auto;
    margin-inline: 16px;
    padding: 26px 20px;
  }
  .cta-text h2 {
    font-size: 21px;
  }
  .cta-buttons {
    width: 100%;
    flex-direction: column;
  }
  .cta-buttons .btn {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  /* Quick Links and Our Services side by side; logo block and contact
     details keep the full width. Roughly halves the footer height. */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }
  .footer-about,
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   18. Projects page -- mobile polish
   ========================================================= */
@media (max-width: 620px) {
  .projects-head {
    padding-block: 20px 26px;
  }

  /* Filters: one swipeable row instead of wrapping onto two lines.
     Bleeds to the screen edge so it reads as scrollable. */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -20px;
    padding: 2px 20px 4px;
    margin-bottom: 22px;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex: none;
  }

  /* Gallery: compact list cards (photo left, details right) instead of
     nine full-height cards -- about a third of the scroll. */
  .project-grid {
    gap: 14px;
  }
  .work-card {
    display: grid;
    grid-template-columns: 118px 1fr;
  }
  .work-card:hover {
    transform: none;
  }
  .wc-media {
    height: auto;
    min-height: 118px;
  }
  .wc-tag {
    top: 7px;
    left: 7px;
    font-size: 9.5px;
    padding: 3px 8px;
  }
  .wc-zoom {
    display: none;
  }
  .wc-body {
    align-self: center;
    padding: 12px 14px;
  }
  .wc-body h3 {
    font-size: 15.5px;
    margin-bottom: 4px;
  }
  .wc-place {
    font-size: 12px;
    align-items: flex-start;
  }
  .wc-place .icon {
    margin-top: 3px;
  }
  .wc-meta {
    font-size: 11.5px;
  }

  /* Case studies: shorter photo, facts in two columns */
  .case-media img {
    height: 220px;
  }
  .case-body h3 {
    font-size: 22px;
  }
  .case-facts {
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
    padding: 16px 0;
  }
  .case-facts dd {
    font-size: 12.5px;
  }
  .case-quote {
    padding: 16px 18px;
  }
}

/* The filter hides cards with the hidden attribute. Any display value
   set on .work-card (the mobile list layout uses grid) would beat the
   browser default and keep filtered cards visible, so pin it here. */
.work-card[hidden] {
  display: none;
}

@media (max-width: 620px) {
  /* full-width CTA button, matching the home page on phones */
  .cta-band-inner .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   19. Contact page -- mobile polish
   ========================================================= */
@media (max-width: 620px) {
  /* Banner tagline: three chips instead of a sentence that broke
     mid-phrase with a bullet left hanging at the line end. */
  .page-banner .pb-tagline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 26px;
  }
  .pb-tagline .dot {
    display: none;
  }
  .pb-tagline .tl {
    white-space: nowrap;
    font-size: 11.5px;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
  }

  /* Contact channels: compact rows (icon left, details right) instead
     of four tall centred cards. */
  .channels-section .grid-4 {
    gap: 12px;
  }
  .channel-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 14px;
    text-align: left;
    padding: 16px;
  }
  .channel-card:hover {
    transform: none;
  }
  .ch-icon {
    grid-row: span 4;
    align-self: start;
    width: 48px;
    height: 48px;
    margin: 0;
  }
  .ch-icon .icon {
    font-size: 21px;
  }
  .channel-card h3 {
    font-size: 16px;
    margin-bottom: 2px;
  }
  .ch-line {
    font-size: 13px;
    word-break: break-word;
  }
  .ch-note {
    margin-top: 4px;
    font-size: 11.5px;
  }

  /* Map: breathing room above the card, and a shorter embed */
  .map-section {
    padding-top: 50px;
    padding-bottom: 58px;
  }
  .map-card {
    padding: 24px 20px;
  }
  .map-embed,
  .map-embed iframe {
    min-height: 260px;
  }

  /* FAQ photo shorter, so the questions come into view sooner */
  .faq-visual,
  .faq-visual img {
    min-height: 230px;
  }
  .faq-visual img {
    height: 230px;
  }
  .faq-script {
    left: 20px;
    bottom: 22px;
    font-size: 28px;
  }
}

/* =========================================================
   20. Services + service detail -- fixes and mobile polish
   ========================================================= */

/* On services.php the card photo is a link. <a> is inline, so the
   fixed height on .sc-media never applied and the photo's height:100%
   resolved against the whole card -- covering the title, text and
   Learn More link. Affects every screen size, not just phones. */
a.sc-media {
  display: block;
}

@media (max-width: 620px) {
  /* ---------- Services hero ----------
     The artwork's busy right half (armchair, orange wall) landed under
     the paragraph. On phones the text sits on plain cream and the
     photo is pinned as a strip along the bottom, faded in at the top. */
  .services-hero {
    background-image:
      linear-gradient(to bottom, #faf6ef 0, rgba(250, 246, 239, 0) 90px),
      url("../images/services-hero.webp");
    background-size: 100% 280px, auto 280px;
    background-position: center bottom, 84% bottom;
    background-repeat: no-repeat;
  }
  .services-hero-inner {
    padding-block: 22px 250px;
    gap: 18px;
  }
  .sh-text {
    max-width: none;
  }
  .sh-script {
    font-size: 24px;
  }

  /* ---------- Service detail: highlights ---------- */
  .highlight-row li {
    align-items: center;
  }

  /* ---------- What's included: one list, not six boxes ---------- */
  .included-grid {
    gap: 0;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 6px 16px;
  }
  .included-grid li {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .included-grid li:last-child {
    border-bottom: 0;
  }

  /* ---------- Gallery: one wide shot, two below ---------- */
  .work-section .grid-3 {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .work-section .shot:first-child {
    grid-column: 1 / -1;
  }
  .work-section .shot:first-child img {
    height: 190px;
  }
  .work-section .shot img {
    height: 130px;
  }

  /* ---------- Related services: compact link rows ---------- */
  .related-grid {
    gap: 10px;
  }
  .related-card {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    column-gap: 14px;
    padding: 14px 16px;
  }
  .related-card:hover {
    transform: none;
  }
  .rc-icon {
    margin: 0;
  }
  .related-card h3 {
    margin: 0;
    font-size: 15px;
  }
  .related-card p {
    display: none;
  }
  /* keep just the arrow; the whole row is the link */
  .rc-more {
    font-size: 0;
  }
  .rc-more .icon {
    font-size: 17px;
  }
}

@media (max-width: 620px) {
  .why-media img {
    height: 220px;
    min-height: 0;
  }
}

/* =========================================================
   Gallery page
   ========================================================= */

/* Seven menu items plus the phone and CTA no longer fit between the
   hamburger breakpoint (900px) and ~1100px, so the phone number steps
   aside there -- the callback button stays. */
@media (min-width: 901px) and (max-width: 1140px) {
  .header-phone {
    display: none;
  }
  .header-inner {
    gap: 22px;
  }
  .main-nav > ul {
    gap: 20px;
  }
}

.photo-gallery-section {
  background: var(--cream);
  padding-top: 20px;
}

/* Masonry via CSS columns: mixed tall / wide / square crops stack
   without gaps and no JS layout is needed. */
.masonry {
  column-count: 3;
  column-gap: 22px;
}
.gal-item {
  break-inside: avoid;
  margin: 0 0 22px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gal-item[hidden] {
  display: none;
}
.gal-link {
  position: relative;
  display: block;
  overflow: hidden;
}
.gal-link img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}
.gal-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(29, 59, 42, 0);
  transition: background 0.3s;
}
.gal-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green-900);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s;
}
.gal-zoom svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.gal-link:hover img,
.gal-link:focus-visible img {
  transform: scale(1.05);
}
.gal-link:hover::after,
.gal-link:focus-visible::after {
  background: rgba(29, 59, 42, 0.35);
}
.gal-link:hover .gal-zoom,
.gal-link:focus-visible .gal-zoom {
  opacity: 1;
  transform: scale(1);
}
.gal-item figcaption {
  padding: 14px 18px 16px;
}
.gal-item figcaption strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
  color: var(--green-900);
  line-height: 1.3;
}
.gal-item figcaption span {
  font-size: 12.5px;
  color: var(--orange);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 28, 21, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
}
.lightbox[hidden] {
  display: none;
}
.lb-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lb-img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lb-caption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  text-align: center;
}
.lb-close,
.lb-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.lb-close:hover,
.lb-nav:hover {
  background: var(--orange);
}
.lb-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
}
.lb-nav {
  top: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
}
.lb-nav svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.lb-prev {
  left: 18px;
}
.lb-next {
  right: 18px;
}

@media (max-width: 900px) {
  .masonry {
    column-count: 2;
    column-gap: 16px;
  }
  .gal-item {
    margin-bottom: 16px;
  }
}
@media (max-width: 560px) {
  .masonry {
    column-count: 1;
  }
  .lightbox {
    padding: 70px 12px 90px;
  }
  .lb-img {
    max-height: calc(100vh - 200px);
  }
  /* arrows move below the photo so they do not cover it */
  .lb-nav {
    top: auto;
    bottom: 22px;
    margin-top: 0;
  }
  .lb-prev {
    left: calc(50% - 62px);
  }
  .lb-next {
    right: calc(50% - 62px);
  }
}

/* =========================================================
   Blog (blog.php list, post.php article)
   ========================================================= */
.blog-section {
  background: var(--cream);
  padding-top: 40px;
}
.blog-section .filter-bar a {
  display: inline-block;
}
.blog-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.post-meta > span + span::before,
.post-meta > a + span::before {
  content: "\2022";
  margin-right: 14px;
  color: var(--line);
}
.post-cat {
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Featured (newest) post */
.blog-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 34px;
}
.bf-media {
  position: relative;
  display: block;
  min-height: 340px;
  background: var(--cream-2);
  overflow: hidden;
}
.bf-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-featured:hover .bf-media img {
  transform: scale(1.04);
}
.bf-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.bf-body {
  padding: 40px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.bf-body h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.25;
  color: var(--green-900);
  margin-bottom: 14px;
}
.bf-body h2 a:hover,
.blog-card h3 a:hover {
  color: var(--orange);
}
.bf-excerpt {
  color: var(--muted);
  margin: 0 0 24px;
}

/* Cards */
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(29, 59, 42, 0.12);
}
.bc-media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--cream-2);
  overflow: hidden;
}
.bc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bc-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card h3 {
  font-size: 19px;
  line-height: 1.35;
  color: var(--green-900);
  margin: 0 0 10px;
}
.bc-body > p:not(.post-meta) {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
}
.bc-body .link-arrow {
  margin-top: auto;
  align-self: flex-start;
}

.blog-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Article ---------- */
.post-head {
  background: var(--cream);
  padding: 34px 0 40px;
}
.post-head .breadcrumb {
  flex-wrap: wrap;
}
.post-head h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  color: var(--green-900);
  margin: 6px 0 16px;
}
.post-lead {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
}
.post-cover-wrap {
  max-width: 1000px;
  margin-top: -6px;
}
.post-cover {
  width: 100%;
  height: auto;   /* lets aspect-ratio win over the height attribute */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.post-body {
  padding: 40px 0 10px;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink);
}
.post-body h2 {
  font-size: 26px;
  color: var(--green-900);
  margin: 38px 0 12px;
  line-height: 1.3;
}
.post-body h3 {
  font-size: 20px;
  color: var(--green-900);
  margin: 28px 0 10px;
}
.post-body p {
  margin: 0 0 18px;
}
.post-body ul {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
}
.post-body ol {
  margin: 0 0 20px;
  padding-left: 26px;
}
.post-body li {
  margin-bottom: 8px;
}
.post-body ol > li::marker {
  color: var(--orange);
  font-weight: 700;
}
.post-body ul > li {
  position: relative;
  padding-left: 28px;
}
.post-body ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}
.post-body a {
  color: var(--orange);
  text-decoration: underline;
}
.post-body strong {
  color: var(--green-900);
}
.post-body h4 {
  font-size: 17px;
  color: var(--green-900);
  margin: 24px 0 8px;
}
.post-body blockquote {
  margin: 26px 0;
  padding: 6px 0 6px 22px;
  border-left: 4px solid var(--gold);
  font-family: var(--font-head);
  font-size: 1.12em;
  color: var(--green-800);
}
.post-body blockquote p:last-child {
  margin-bottom: 0;
}
.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.post-body::after {   /* contain images floated left / right */
  content: "";
  display: table;
  clear: both;
}
.post-body h2,
.post-body h3,
.post-body h4 {
  clear: both;
}
.post-body figure {
  margin: 28px 0;
}
.post-body figure img {
  display: block;
  margin: 0 auto;
}
.post-body figcaption {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}
/* Image placement chosen in the editor (Insert > Image > Class) */
.post-body .img-left,
.post-body figure:has(> .img-left) {
  float: left;
  max-width: 45%;
  margin: 6px 26px 14px 0;
}
.post-body .img-right,
.post-body figure:has(> .img-right) {
  float: right;
  max-width: 45%;
  margin: 6px 0 14px 26px;
}
.post-body figure:has(> .img-left) img,
.post-body figure:has(> .img-right) img {
  float: none;
  max-width: 100%;
  margin: 0;
}
.post-body .img-center {
  display: block;
  max-width: 60%;
  margin: 24px auto;
}
@media (max-width: 620px) {
  /* phones: no text wrapping, every image full width */
  .post-body .img-left,
  .post-body .img-right,
  .post-body figure:has(> .img-left),
  .post-body figure:has(> .img-right),
  .post-body .img-center {
    float: none;
    max-width: 100%;
    margin: 22px 0;
  }
}
.post-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
.post-body code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--cream-2);
  font-size: 0.9em;
}
.post-body pre {
  margin: 0 0 20px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--cream-2);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}
.post-body pre code {
  padding: 0;
  background: none;
}
.post-body table {
  display: block;   /* scrolls sideways on phones instead of widening the page */
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 22px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}
.post-body caption {
  caption-side: bottom;
  padding-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.post-body th,
.post-body td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.post-body th {
  background: var(--cream);
  color: var(--green-900);
}

/* Author line under the article title */
.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--muted);
}
.post-author img,
.pa-initial {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
}
.post-author img {
  object-fit: cover;
  box-shadow: 0 0 0 3px #fff;
}
.pa-initial {
  display: grid;
  place-items: center;
  background: var(--green-900);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}
.post-author strong {
  color: var(--green-900);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 14px;
}
.post-tags span {
  font-weight: 600;
  color: var(--green-900);
  margin-right: 4px;
}
.post-tags a {
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--green-800);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.post-tags a:hover {
  background: var(--orange);
  color: #fff;
}

/* Dashboard "Preview Post" banner */
.preview-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  padding: 10px 16px;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  text-align: center;
}
.preview-bar button {
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: none;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.preview-bar button:hover {
  background: #fff;
  color: var(--orange);
}

.post-share {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 0 50px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--green-900);
}
.post-share span {
  margin-right: 6px;
}
.post-share a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream-2);
  color: var(--green-900);
  transition: background 0.2s, color 0.2s;
}
.post-share a:hover {
  background: var(--orange);
  color: #fff;
}
.post-share svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.blog-related {
  background: var(--cream);
}
.blog-missing {
  text-align: center;
}
.blog-missing h1 {
  color: var(--green-900);
}

@media (max-width: 900px) {
  .blog-featured {
    grid-template-columns: 1fr;
  }
  .bf-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .bf-body {
    padding: 26px 22px 28px;
  }
}
@media (max-width: 620px) {
  .post-body {
    font-size: 15.5px;
    padding-top: 28px;
  }
  .post-body h2 {
    font-size: 22px;
  }
  .blog-pager {
    flex-wrap: wrap;
  }
}

/* ---------- Blog hero ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.blog-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
}
.bh-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.bh-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 40, 28, 0.96) 0%, rgba(22, 48, 34, 0.88) 45%, rgba(29, 59, 42, 0.45) 100%),
    linear-gradient(0deg, rgba(18, 40, 28, 0.55), transparent 40%);
}
.bh-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 60px;
  align-items: center;
  padding-block: 64px 80px;
}
.blog-hero .breadcrumb.on-dark {
  justify-content: flex-start;
  margin-bottom: 26px;
}
.bh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.bh-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--orange);
}
.blog-hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  color: #fff;
  margin: 0 0 10px;
}
.bh-lead {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 16px;
}
.bh-lead span {
  color: #f39a62;
}
.bh-text {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  margin: 0 0 28px;
}

/* Search */
.bh-search {
  position: relative;
  display: flex;
  max-width: 560px;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.bh-search > svg {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: var(--muted);
  pointer-events: none;
}
.bh-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  padding: 0 14px 0 50px;
  font: 15px var(--font-body);
  color: var(--ink);
}
.bh-search input:focus {
  outline: none;
}
.bh-search:focus-within {
  box-shadow: 0 0 0 3px rgba(198, 154, 92, 0.6), 0 18px 40px rgba(0, 0, 0, 0.25);
}
.bh-search .btn {
  border-radius: 999px;
  padding: 13px 26px;
}

.bh-topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.bh-topics span {
  margin-right: 4px;
}
.bh-topics a {
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
}
.bh-topics a:hover {
  background: var(--orange);
  border-color: var(--orange);
}

/* Frosted info card */
.bh-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 26px 26px 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bh-card ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 18px;
}
.bh-card li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}
.bh-num,
.bh-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  color: var(--gold);
}
.bh-icon .icon {
  width: 24px;
  height: 24px;
  fill: var(--gold);
}
.bh-card-cta {
  display: block;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
}
.bh-card-cta strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f39a62;
  font-weight: 600;
}
.bh-card-cta .icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.2s;
}
.bh-card-cta:hover .icon {
  transform: translateX(3px);
}

.blog-results {
  margin: -6px 0 26px;
  font-size: 14.5px;
  color: var(--muted);
}
.blog-results strong {
  color: var(--green-900);
}
.blog-results a {
  margin-left: 10px;
  color: var(--orange);
  font-weight: 500;
}

@media (max-width: 960px) {
  .bh-inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 44px 56px;
  }
  .bh-card {
    max-width: 560px;
  }
  .bh-card ul {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .bh-card li {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
  }
}
@media (max-width: 560px) {
  .bh-search .btn {
    padding: 12px 18px;
  }
  .bh-search input {
    padding-left: 44px;
    font-size: 14px;
  }
  .bh-search > svg {
    left: 18px;
  }
  .bh-card ul {
    grid-template-columns: 1fr;
  }
  .bh-card li {
    flex-direction: row;
    align-items: center;
  }
}

/* =========================================================
   Legal pages (privacy-policy.php, terms-and-condition.php -- layout in includes/legal-page.php)
   ========================================================= */
.legal-banner {
  min-height: 460px;
}
.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.legal-kicker .icon {
  color: var(--gold);
  font-size: 15px;
}
.legal-banner .pb-tagline {
  margin-bottom: 18px;
}
.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}
.legal-updated .icon {
  color: var(--gold);
}

/* Intro + four "at a glance" promises */
.legal-intro {
  padding-bottom: 40px;
}
.legal-intro .section-head.centered .section-text {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.8;
}
.legal-intro .section-text a {
  color: var(--orange);
  font-weight: 500;
}
.legal-intro .section-text strong {
  color: var(--green-900);
}
.legal-glance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.glance-card {
  position: relative;
  padding: 28px 24px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.glance-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
.glance-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(29, 59, 42, 0.12);
}
.glance-card:hover::after {
  transform: scaleX(1);
}
.glance-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--green-900);
  color: var(--gold);
  font-size: 22px;
}
.glance-card h3 {
  font-size: 18px;
  color: var(--green-900);
  margin-bottom: 8px;
}
.glance-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* Contents sidebar + policy sections */
.legal-section {
  padding-top: 40px;
}
.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 110px;
  padding: 24px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.toc-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 12px 8px;
}
.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.legal-toc a {
  display: flex;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
  border-left: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.legal-toc a span {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  padding-top: 1px;
}
.legal-toc a:hover {
  background: var(--cream);
}
.legal-toc a.is-current {
  background: var(--cream-2);
  border-left-color: var(--orange);
  color: var(--green-900);
  font-weight: 500;
}
.toc-help {
  margin-top: 18px;
  padding: 18px;
  border-radius: 10px;
  background: var(--green-900);
  color: #fff;
}
.toc-help p {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 16px;
}
.toc-help a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--gold);
}
.toc-help a:hover {
  color: #fff;
}

.legal-body {
  display: grid;
  gap: 22px;
}
.legal-block {
  scroll-margin-top: 110px;
  padding: 34px 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.legal-block p {
  margin: 0 0 14px;
  color: #3d4a42;
}
.legal-block p:last-child {
  margin-bottom: 0;
}
.lb-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--line);
}
.lb-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--green-900);
  font-size: 22px;
}
.lb-num {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.lb-head h2 {
  font-size: clamp(20px, 2.2vw, 25px);
  color: var(--green-900);
  margin: 2px 0 0;
}
.lb-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}
.lb-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--cream);
  font-size: 14px;
  line-height: 1.55;
}
.lb-list .icon {
  flex: none;
  margin-top: 2px;
  color: var(--orange);
  font-size: 16px;
}
.legal-block .lb-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: #fbf4e8;
  color: var(--green-900);
  font-size: 14px;
}
.lb-note .icon {
  flex: none;
  margin-top: 3px;
  color: var(--gold);
  font-size: 17px;
}
.lb-note a,
.lc-rows a {
  color: var(--orange);
  font-weight: 500;
}
.lb-note a:hover,
.lc-rows a:hover {
  text-decoration: underline;
}

/* Section 8 -- the contact card */
.legal-contact {
  background: var(--green-900);
  border-color: var(--green-900);
  color: #fff;
}
.legal-contact .lb-head {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}
.legal-contact .lb-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
}
.legal-contact .lb-head h2 {
  color: #fff;
}
.legal-contact p {
  color: rgba(255, 255, 255, 0.82);
}
.legal-contact .lc-name {
  font-family: var(--font-head);
  font-size: 20px;
  color: #fff;
  margin-bottom: 16px;
}
.lc-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 26px;
}
.lc-rows div {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.lc-rows dt {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.lc-rows dd {
  margin: 0;
  font-size: 14.5px;
  overflow-wrap: anywhere;
}
.legal-contact .lc-rows a {
  color: #fff;
}

@media (max-width: 1080px) {
  .legal-glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .legal-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 30px;
  }
}
@media (max-width: 900px) {
  .legal-banner {
    min-height: 400px;
  }
  .legal-layout {
    grid-template-columns: 1fr;
  }
  /* On small screens the contents list sits above the sections. */
  .legal-toc {
    position: static;
  }
  .legal-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 10px;
  }
  .lb-list,
  .lc-rows {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .legal-banner {
    min-height: 360px;
  }
  .legal-glance,
  .legal-toc ol {
    grid-template-columns: 1fr;
  }
  .legal-block {
    padding: 24px 20px;
  }
  .lb-icon {
    width: 42px;
    height: 42px;
    font-size: 19px;
  }
  .toc-help {
    display: none;
  }
}
.legal-intro .section-head .section-text + .section-text {
  margin-top: -16px;
}
