/* Header layout - logo 280px fixed width (80% of original 350px) */
header.main-header .brand {
  width: 280px !important;
  height: auto !important;
}

header.main-header .brand img {
  width: 280px !important;
  height: auto !important;
}

body.scrolled:not(.nav-open) header.main-header .brand {
  height: auto !important;
}

body.scrolled:not(.nav-open) header.main-header .brand img {
  width: 200px !important;
}

@media screen and (max-width: 640px) {
  header.main-header .brand {
    width: auto !important;
    padding: 5px 0 !important;
  }
  header.main-header .brand img {
    width: 176px !important;
  }
  header.main-header nav.main-nav .nav-items .nav-item {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
  header.main-header nav.main-nav .nav-items li {
    margin-bottom: 0.25rem !important;
  }
}

/* Navigation - flexible */
header.main-header nav.main-nav {
  flex: 1 !important;
}

@media screen and (max-width: 1024px) {
  header.main-header .brand {
    width: auto !important;
  }
  header.main-header nav.main-nav {
    width: auto !important;
  }
}

/* Hide Projects label and filter buttons */
#work > .grid.pb-2 {
  display: none !important;
}

/* Homepage portfolio: clear the fixed ~119px header so the first row isn't cut off */
#work {
  padding-top: 140px !important;
}
@media screen and (max-width: 900px) { #work { padding-top: 108px !important; } }
@media screen and (max-width: 640px) { #work { padding-top: 86px !important; } }

.content > section:first-child {
  margin-top: 5rem !important;
}

/* Portfolio grid - 2.5px margins */
.grid.masonry.gallery {
  margin-right: -2.5px !important;
}

.grid.masonry.gallery .item {
  padding: 1.25px !important;
  margin-left: 0 !important;
}

/* Consistent thumbnail height */
a.thumb img {
  height: 320px !important;
  width: 100% !important;
  object-fit: cover !important;
}

/* Fix hover overlay to match thumbnail size */
a.thumb .caption {
  margin: 2.5px !important;
}

/* Portfolio item spacing - balance below titles */
.grid.masonry.gallery .item .caption {
  padding-bottom: 15px !important;
}

/* Custom footer styles */
footer {
  background: transparent !important;
  color: #333 !important;
}

footer a {
  color: #333 !important;
}

footer a:hover {
  color: #88AC2E !important;
}

/* Footer icons */
.footer-icons {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 20px !important;
}

.footer-icons a {
  color: #333 !important;
  transition: color 0.2s ease !important;
}

.footer-icons a:hover {
  color: #88AC2E !important;
}

.footer-icons svg {
  display: block !important;
}

/* Mobile footer adjustments */
@media screen and (max-width: 640px) {
  footer .grid {
    display: block !important;
  }
  footer .col-6 {
    width: 100% !important;
    text-align: left !important;
    margin-bottom: 1rem !important;
  }
  footer .col-6.text-right {
    text-align: left !important;
  }
  .footer-icons {
    justify-content: flex-start !important;
  }
  footer .col-6 span.text-dark,
  footer .secondary-nav,
  footer .secondary-nav li,
  footer .secondary-nav li a,
  footer .secondary-nav li span {
    font-size: 14px !important;
  }
  footer .secondary-nav {
    padding-left: 0 !important;
    margin: 0 !important;
  }
  footer .secondary-nav li {
    display: block !important;
    margin-bottom: 0.25rem !important;
    list-style: none !important;
  }
}

/* Project gallery - CSS Grid with featured first image */
.project-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2.5px !important;
  width: 100% !important;
}

.project-gallery a {
  display: block !important;
}

.project-gallery a:first-child {
  grid-column: 1 / -1 !important;
}

.project-gallery a:first-child img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

.project-gallery a:not(:first-child) img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  aspect-ratio: 4/3 !important;
  display: block !important;
}

@media screen and (max-width: 1024px) {
  .project-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media screen and (max-width: 640px) {
  .project-gallery {
    grid-template-columns: 1fr !important;
  }
}

/* Reviews carousel */
.reviews-section {
  overflow: hidden !important;
}

.reviews-title {
  text-align: left !important;
  margin-bottom: 2rem !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #2c3a2e !important;   /* ink, not green — unify section titles; green stays an accent */
}

.reviews-carousel {
  width: 100% !important;
  overflow: hidden !important;
  position: relative !important;
}

.reviews-track {
  display: flex !important;
  gap: 20px !important;
  animation: scroll-reviews 60s linear infinite !important;
  width: max-content !important;
}

.reviews-track:hover {
  animation-play-state: paused !important;
}

.review-card {
  flex-shrink: 0 !important;
  width: 300px !important;
  background: #f9f9f9 !important;
  border-radius: 8px !important;
  padding: 24px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

.review-stars {
  color: #f4b400 !important;
  font-size: 1.25rem !important;
  margin-bottom: 12px !important;
  letter-spacing: 2px !important;
}

.review-text {
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  color: #444 !important;
  margin-bottom: 12px !important;
}

.review-author {
  font-size: 0.9rem !important;
  color: #666 !important;
  font-style: italic !important;
  margin: 0 !important;
}

@keyframes scroll-reviews {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Accessibility: respect reduced-motion — stop the auto-scroll marquee */
@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none !important; }
}

/* About section - align image to top */
#about .grid {
  align-items: flex-start !important;
}

/* Project page hero - reduced vertical height (50% of original) */
.content > section.hero {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
  min-height: auto !important;
}



/* TBD Section header */
.tbd-header {
  text-align: center !important;
}

.tbd-header h3 {
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
}

/* Placeholder boxes for missing projects */
.placeholder-img {
  width: 100%;
  height: 320px;
  background-color: #1a1a1a;
}

/* Fix anchor scroll offset for fixed header */
#about-us, #contact-us {
  scroll-margin-top: 150px !important;
  padding-top: 20px !important;
}

/* Process Page Gallery Rows */
.process-gallery {
  margin-bottom: 3rem !important;
}

.process-row {
  display: grid !important;
  gap: 10px !important;
  margin-bottom: 45px !important;
}

.process-row.cols-2 {
  grid-template-columns: repeat(2, 1fr) !important;
}

.process-row.cols-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}

.process-row a {
  display: block !important;
  overflow: hidden !important;
}

.process-row img {
  width: 100% !important;
  height: 280px !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.3s ease !important;
}

/* Taller height for 2-column rows (more square) */
.process-row.cols-2 img {
  height: 420px !important;
}

/* Master Plans row - first image full height, second matches */
.process-row.master-plans {
  align-items: stretch !important;
}

.process-row.master-plans a {
  display: flex !important;
}

.process-row.master-plans img {
  height: auto !important;
  width: 100% !important;
  object-fit: cover !important;
}

.process-row a:hover img {
  transform: scale(1.02) !important;
}

.process-row-label {
  text-align: center !important;
  font-size: 0.85rem !important;
  color: #000 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin-bottom: 12px !important;
  margin-top: 0 !important;
}

.process-row-label:first-of-type {
  margin-top: 0 !important;
}

@media screen and (max-width: 768px) {
  .process-row.cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media screen and (max-width: 480px) {
  .process-row.cols-2,
  .process-row.cols-3 {
    grid-template-columns: 1fr !important;
  }
}

/* Gallery FOUC fix: hide masonry until Isotope finishes layout */
.masonry {
  opacity: 0;
  transition: opacity .25s ease-out;
  min-height: 600px;
}
.masonry.is-laid-out {
  opacity: 1;
}
.item-sizer {
  position: absolute !important;
  visibility: hidden;
  pointer-events: none;
}
/* ============================================================ */
/* 2026-05-05: Nav "Call Now" button + tighten wrap behavior    */
/* ============================================================ */

/* Nav "Call Now" — stylized green button, stands out vs. text links */
/* Vertically center text links + button so the bigger button doesn't push the text up */
header.main-header nav.main-nav ul {
  align-items: center !important;
}
header.main-header {
  align-items: center;
}
.main-nav .nav-cta {
  display: inline-flex;
  align-items: center;
}
.main-nav .nav-call-now {
  background: #88AC2E;
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
  margin-left: 0.5rem;
  line-height: 1;
}
.main-nav .nav-call-now:hover {
  background: #7a9a28;
  transform: translateY(-1px);
}

/* Tighten nav wrap at narrower widths so items stay on one line */
@media (max-width: 1200px) {
  .main-nav .nav-items > li > .nav-item {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
    font-size: 0.92rem;
  }
}
@media (max-width: 1000px) {
  .main-nav .nav-items > li > .nav-item {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    font-size: 0.88rem;
    letter-spacing: -0.01em;
  }
}

/* ============================================================ */
/* 2026-05-06: Mobile nav — phone left of hamburger, one row    */
/* ============================================================ */

/* Closed state: phone + hamburger inline, phone on left */
@media screen and (max-width: 1024px) {
  body:not(.nav-open) nav.main-nav ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
  }
  body:not(.nav-open) nav.main-nav ul li.nav-cta {
    order: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body:not(.nav-open) nav.main-nav ul li.nav-trigger {
    order: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* Open state: column so expanded nav items stack naturally */
  body.nav-open nav.main-nav ul {
    display: block !important;
  }
}

/* ============================================================ */
/* 2026-05-28: Premium footer redesign + service-card polish     */
/* ============================================================ */
.site-footer {
  background: #f7f6f3 !important;   /* beat the generic `footer { transparent !important }` rule */
  color: #5b5b55 !important;
  border-top: 1px solid #e7e5e0;
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
  font-family: 'Karla', Helvetica, Arial, sans-serif;
}
.site-footer .footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.site-footer .footer-cols {
  display: flex; flex-wrap: wrap; gap: 3rem; justify-content: space-between;
}
.site-footer .footer-col { flex: 1 1 180px; min-width: 160px; }
.site-footer .footer-brand { flex: 2 1 320px; max-width: 360px; }
.site-footer .footer-logo { height: auto; max-width: 210px; margin-bottom: 1rem; }
.site-footer .footer-tagline { color: #5b5b55; font-size: 0.9rem; line-height: 1.65; margin: 0 0 1rem; }
.site-footer .footer-houzz { color: #88AC2E; font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.site-footer .footer-houzz:hover { color: #7a9a28; }
.site-footer h4 {
  font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: #2c2c28; margin: 0 0 0.9rem; font-weight: 700;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.5rem; color: #5b5b55; font-size: 0.9rem; }
.site-footer ul li a { color: #5b5b55; text-decoration: none; transition: color 0.15s; }
.site-footer ul li a:hover { color: #88AC2E; }
.site-footer .footer-serving {
  border-top: 1px solid #e7e5e0; margin-top: 2.75rem; padding-top: 1.5rem;
  text-align: center; font-size: 0.82rem; color: #7a7a72; line-height: 1.95;
}
.site-footer .footer-serving strong { color: #2c2c28; }
.site-footer .footer-serving a { color: #88AC2E; text-decoration: none; }
.site-footer .footer-serving a:hover { text-decoration: underline; }
.site-footer .footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #e7e5e0;
  font-size: 0.78rem; color: #9a9a92;
}
.site-footer .footer-bottom a { color: #88AC2E; text-decoration: none; }
@media (max-width: 640px) {
  .site-footer { padding-top: 2.5rem; margin-top: 2.5rem; }
  .site-footer .footer-cols { gap: 2rem; }
  .site-footer .footer-bottom { justify-content: center; text-align: center; }
}

/* Service cards: content-height boxes (no dead space) + lift + clear row spacing */
section.pv-4 .grid > div[class*="col-"] { margin-bottom: 1.75rem !important; }
section.pv-4 .grid > div[class*="col-"] > div {
  box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: box-shadow 0.18s, transform 0.18s;
}
section.pv-4 .grid > div[class*="col-"] > div:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.09); transform: translateY(-2px);
}



/* ============================================================ */
/* 2026-06-04 (v2): SEO landing-page DESIGN SYSTEM               */
/* Cohesive type scale + spacing rhythm + components for the     */
/* generated services / service-area pages. Page-scoped classes  */
/* (.seo-hero, .seo-prose, .band, .svc-*, .fp-*, .cta-*) so the   */
/* homepage / portfolio is untouched. Replaces the earlier       */
/* incremental pass.                                             */
/* ============================================================ */

/* --- Section rhythm: every major block is a .band --- */
.band { padding: clamp(2.75rem, 6vh, 5rem) 1.5rem; }
.band--tint { background: #f7f6f3; }
.band--rel  { padding-top: 1.6rem; padding-bottom: 1.6rem; }
.band--cta  { background: #f7f6f3; border-top: 1px solid #eceae4; }
.band__narrow { max-width: 760px; margin: 0 auto; }

/* --- Consistent section header (eyebrow + title), used everywhere --- */
.sec-head { text-align: center; margin: 0 auto clamp(1.75rem, 4vh, 2.6rem); max-width: 760px; }
.sec-eyebrow {
  display: block; text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.72rem; font-weight: 700; color: #88AC2E; margin-bottom: 0.55rem;
}
.sec-title {
  font-size: clamp(1.6rem, 2.8vw, 2.05rem) !important;
  font-weight: 500 !important; color: #2c3a2e !important;
  letter-spacing: -0.015em !important; line-height: 1.2 !important; margin: 0 !important;
  padding-bottom: 0 !important;
}

/* --- Hero (fixed: was flex-collapsing the container -> H1 wrapped) --- */
.content > section.hero.seo-hero {
  padding: clamp(3rem, 8vh, 5.5rem) 1.5rem clamp(2.25rem, 5vh, 3.5rem) !important;
  min-height: 0 !important;
  display: block !important;
  border-bottom: 1px solid #eceae4;
  background: #fff;
  text-align: center;
}
.seo-hero__inner { max-width: 940px; margin: 0 auto; }
.seo-hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.25rem) !important;
  font-weight: 300 !important; letter-spacing: -0.02em !important;
  line-height: 1.08 !important; margin: 0 0 1.05rem !important; color: #1f2a22 !important;
  text-wrap: balance;
}
.seo-hero__sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem) !important;
  line-height: 1.55 !important; color: #5b5b55 !important;
  max-width: 680px !important; margin: 0 auto !important;
}

/* --- Long-form prose: editorial measure, calm rhythm --- */
.seo-prose { max-width: 720px; margin: 0 auto; }
.seo-prose p, .seo-prose li { color: #454545; font-size: 1.12rem; line-height: 1.75; margin: 0 0 1.35rem; }
.seo-prose p:last-child { margin-bottom: 0; }
.seo-prose h3 {
  color: #2c3a2e; font-size: clamp(1.35rem, 2.1vw, 1.55rem); font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.3; margin: 2.75rem 0 0.85rem; padding-bottom: 0 !important;
}
.seo-prose > :first-child { margin-top: 0; }
.seo-prose strong { color: #2c3a2e; font-weight: 600; }
.seo-prose a, .seo-prose a:visited { color: #6f8f2e; border-bottom: 1px solid rgba(111,143,46,0.35); }

/* --- Card grid (services + service areas): constrained + balanced --- */
.svc-grid {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.svc-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: #fff; border: 1px solid #e7e5e0; border-radius: 8px;
  padding: 1.6rem 1.5rem;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.svc-card:hover { box-shadow: 0 12px 28px rgba(31,42,34,0.10); transform: translateY(-3px); border-color: #d9d6cf; }
.svc-card__title { font-size: 1.12rem; font-weight: 600; color: #2c3a2e; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.svc-card__blurb { font-size: 0.95rem; line-height: 1.6; color: #6b6b63; flex: 1 1 auto; }
.svc-card__cta { margin-top: 1.1rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #88AC2E; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* --- Featured projects (real photo cards) --- */
.fp-grid { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.fp-card { display: block; text-decoration: none; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.06); transition: box-shadow .18s ease, transform .18s ease; }
.fp-card:hover { box-shadow: 0 12px 28px rgba(31,42,34,0.11); transform: translateY(-3px); }
.fp-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; background-size: cover; background-position: center; background-color: #e7e5e0; }
.fp-title { display: block; padding: 0.9rem 1.05rem; font-size: 0.95rem; font-weight: 600; color: #2c3a2e; }
@media (max-width: 900px) { .fp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fp-grid { grid-template-columns: 1fr; } }

/* --- FAQ --- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { padding: 1.35rem 0; border-bottom: 1px solid #eceae4; }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { margin: 0 0 0.45rem !important; font-size: 1.1rem !important; font-weight: 600 !important; color: #2c3a2e !important; letter-spacing: -0.005em !important; line-height: 1.35 !important; padding-bottom: 0 !important; }
.faq-item p  { margin: 0 !important; color: #545450 !important; font-size: 1.02rem !important; line-height: 1.65 !important; }

/* --- Related links strip (Services we offer / Service areas) --- */
.rel-wrap { text-align: center; }
.rel-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem 0.6rem; margin-top: 0.9rem; }
.rel-link {
  font-size: 0.9rem; color: #4a5a44; text-decoration: none;
  padding: 0.42rem 0.9rem; border: 1px solid #e0ddd5; border-radius: 999px; background: #fff;
  transition: border-color .15s, color .15s, background .15s;
}
.rel-link:hover { border-color: #88AC2E; color: #2c3a2e; background: #f3f6ea; }

/* --- CTA / contact --- */
.band--cta .cta-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.cta-sub { font-size: 1.08rem !important; line-height: 1.6 !important; color: #545450 !important; max-width: 600px; margin: 0 auto 0.5rem !important; }
.cta-sub a { color: #6f8f2e; font-weight: 600; }
.cta-trust { font-size: 0.8rem !important; color: #8a8a80 !important; letter-spacing: 0.01em; margin: 0 0 1.9rem !important; }
.cta-card { background: #fff; border: 1px solid #e7e5e0; border-radius: 12px; padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 4px 18px rgba(31,42,34,0.05); text-align: left; max-width: 620px; margin: 0 auto; }
.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .cta-row { grid-template-columns: 1fr; } }
.cta-field { margin-bottom: 1rem; }
.cta-field label { display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: #6b6b63; margin-bottom: 0.4rem; }
.cta-field input, .cta-field textarea { width: 100%; box-sizing: border-box; border: 1px solid #d9d6cf; border-radius: 6px; padding: 0.7rem 0.85rem; font-size: 1rem; font-family: inherit; color: #2c3a2e; background: #fcfcfb; }
.cta-field input:focus, .cta-field textarea:focus { outline: none; border-color: #88AC2E; box-shadow: 0 0 0 3px rgba(136,172,46,0.12); }
.cta-field textarea { min-height: 120px; resize: vertical; }
.cta-btn { display: inline-block; background: #88AC2E !important; color: #fff !important; border: 0 !important; border-radius: 6px !important; padding: 0.8rem 2.1rem !important; font-weight: 700 !important; font-size: 0.95rem !important; cursor: pointer; letter-spacing: 0.02em; transition: background .15s; }
.cta-btn:hover { background: #7a9a28 !important; }
.cta-success { text-align: center; padding: 1.5rem 0; }
.cta-success h3 { color: #4a7c59 !important; }

@media (max-width: 640px) {
  .seo-prose p, .seo-prose li { font-size: 1.05rem; line-height: 1.72; }
  .band { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* ============================================================ */
/* 2026-06-04 batch 2: footer 4-col (Service Areas column split 2-up) */
/* ============================================================ */
.site-footer .footer-col--areas { flex: 1.6 1 250px; }
.site-footer .footer-areas { columns: 2; column-gap: 1.75rem; }
.site-footer .footer-areas li { break-inside: avoid; }
.site-footer .footer-h4-2 { margin-top: 1.6rem; }
@media (max-width: 640px) {
  .site-footer .footer-areas { columns: 2; }
}

/* ============================================================ */
/* 2026-06-04 batch 3: footer 3-col (Contact merged into brand) + nav fit + phone bold */
/* ============================================================ */
.site-footer .footer-contact { margin-top: 1.6rem; }

/* Phone CTA must ALWAYS be bold (was inconsistent page to page) */
.main-nav .nav-call-now,
header.main-header .nav-call-now,
header.main-header .nav-items .nav-call-now { font-weight: 700 !important; }

/* Medium-desktop nav (1025-1300px, above the hamburger): shrink logo, tighten spacing,
   and drop "Process" so the items stop running over the logo. */
@media screen and (min-width: 1025px) and (max-width: 1300px) {
  header.main-header .brand img { width: 200px !important; }
  body.scrolled:not(.nav-open) header.main-header .brand img { width: 172px !important; }
  .main-nav .nav-items > li > .nav-item {
    padding-left: 0.4rem !important; padding-right: 0.4rem !important;
    font-size: 0.84rem !important; letter-spacing: -0.01em !important;
  }
  .main-nav .nav-call-now { padding: 8px 12px !important; font-size: 0.82rem !important; margin-left: 0.3rem !important; }
  .main-nav .nav-items > li:has(> a[href$="our-process"]) { display: none !important; }
}

/* ============================================================ */
/* 2026-06-04 batch 4 (QA): universal fixed-header clearance     */
/* Header is position:fixed (~119px desktop / ~64px mobile). Reserve that space on  */
/* the body so NO page's top content hides under the nav, then neutralize the old   */
/* per-section offsets that used to (inconsistently) compensate.                    */
/* ============================================================ */
body { padding-top: 132px !important; }
@media screen and (max-width: 1024px) { body { padding-top: 74px !important; } }
@media screen and (max-width: 640px)  { body { padding-top: 66px !important; } }

.content > section:first-child { margin-top: 0 !important; }

#work { padding-top: 12px !important; }
@media screen and (max-width: 900px) { #work { padding-top: 10px !important; } }

/* Heroes: clearance is on the body now; keep only modest internal breathing room */
.content > section.hero.seo-hero { padding-top: clamp(2rem, 3.5vh, 3.25rem) !important; }
.content > section.hero:not(.seo-hero) { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }

/* batch 4 refinement: tighten static-hero gap + safer mobile clearance */
.content > section.hero:not(.seo-hero) { padding-top: 1rem !important; }
@media screen and (max-width: 1024px) { body { padding-top: 78px !important; } }
@media screen and (max-width: 640px)  { body { padding-top: 70px !important; } }

/* batch 4 mobile clearance bump (homepage masonry is the binding case) */
@media screen and (max-width: 1024px) { body { padding-top: 86px !important; } }
@media screen and (max-width: 640px)  { body { padding-top: 82px !important; } }

/* ============================================================ */
/* 2026-06-05: Mobile polish — slim side frame, full-width        */
/* contact box, tighter footer with Services beside Explore.      */
/* CSS-only; loads after main.css so these win.                   */
/* ============================================================ */

/* --- Fix 1: cut the compounding L/R frame (~70%) on mobile ---
   main.css gives header.main-header + .content 2rem each at <=1024,
   and .band adds 1.25rem inside .content. Reduce the stack so the
   nav stops packing and the portfolio grid gets its width back. */
@media screen and (max-width: 1024px) {
  header.main-header { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
  .content { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
}
@media screen and (max-width: 640px) {
  header.main-header { padding-left: 0.6rem !important; padding-right: 0.6rem !important; }
  /* nav + gallery want tight; body copy gets a touch more breathing room (~0.85rem) */
  .content { padding-left: 0.85rem !important; padding-right: 0.85rem !important; }
  .band { padding-left: 0.6rem !important; padding-right: 0.6rem !important; }
}

/* --- Fix 2: "Get in Touch" card full-width with a fixed cushion ---
   replaces clamp(1.5rem,3vw,2.25rem) so text never kisses the border. */
@media screen and (max-width: 640px) {
  .cta-card { max-width: none !important; width: 100% !important; padding: 1.35rem !important; }
}

/* --- Fix 3: footer tighter; Services beside Explore (multicol) ---
   middle .footer-col has no distinguishing class -> target via :not().
   break-before pushes the "Explore" group into the 2nd column. */
@media screen and (max-width: 640px) {
  .site-footer { padding-top: 2rem !important; margin-top: 2rem !important; }
  .site-footer .footer-cols { gap: 1.75rem !important; }
  /* Services | Explore side-by-side, matching the 2-up Service Areas list.
     Grid PLACEMENT of the flat h4/ul siblings (column-count + break-before did
     not render reliably on mobile Safari/Chrome). */
  .site-footer .footer-col:not(.footer-brand):not(.footer-col--areas) {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.25rem;
    align-content: start;
  }
  .site-footer .footer-col:not(.footer-brand):not(.footer-col--areas) > h4:nth-of-type(1) { grid-column: 1; grid-row: 1; }
  .site-footer .footer-col:not(.footer-brand):not(.footer-col--areas) > ul:nth-of-type(1) { grid-column: 1; grid-row: 2; }
  .site-footer .footer-col:not(.footer-brand):not(.footer-col--areas) > h4:nth-of-type(2) { grid-column: 2; grid-row: 1; }
  .site-footer .footer-col:not(.footer-brand):not(.footer-col--areas) > ul:nth-of-type(2) { grid-column: 2; grid-row: 2; }
  .site-footer .footer-h4-2 { margin-top: 0 !important; }
}
