/* Elementor-ready tokens (hex only — paste these into Site Settings > Global Colors) */
:root {
  --background: #F4F1EC;
  --foreground: #3D3933;
  --card: #FAF8F4;
  --card-foreground: #3D3933;
  --primary: #2F2C27;
  --primary-foreground: #F6F3EE;
  --secondary: #EDE9E3;
  --secondary-foreground: #2F2C27;
  --muted: #EDE9E3;
  --muted-foreground: #8A847A;
  --accent: #D8B172;
  --accent-foreground: #2A2722;
  --accent-soft: #E8D4B0;
  --border: #E0DBD4;
  --bh-content: 1280px;
  --bh-section-gap: 120px;
}

/* Custom Font Styles & Fallbacks */
html {
  overflow-x: clip;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  overflow-x: clip;
  background-color: var(--background);
  color: var(--foreground);
  font-weight: 400;
  letter-spacing: 0;
}

#header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  overflow: visible;
  background-color: var(--background);
  transition: background-color 0.35s ease;
}

#header > div,
.site-nav {
  overflow: visible;
}

.site-topbar {
  overflow: hidden;
  background-color: var(--primary);
  color: var(--primary-foreground);
  max-height: 4rem;
  opacity: 1;
  transition: max-height 0.4s ease, opacity 0.35s ease, padding 0.4s ease;
}

#header.is-scrolled .site-topbar {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* Home 2: full house under a clear header; header turns white on scroll */
body.has-overlay-header .site-topbar {
  max-height: 0;
  opacity: 0;
  padding: 0;
  pointer-events: none;
}

body.has-overlay-header #header {
  background-color: transparent;
}

body.has-overlay-header .site-nav {
  background-color: transparent !important;
  border-bottom-color: transparent !important;
}

body.has-overlay-header .nav-link {
  color: #ffffff !important;
}

body.has-overlay-header .nav-link:hover,
body.has-overlay-header .nav-link.is-active {
  color: #d8b172 !important;
}

body.has-overlay-header #mobile-menu-btn {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

body.has-overlay-header #header.is-scrolled {
  background-color: #ffffff;
}

body.has-overlay-header #header.is-scrolled .site-nav {
  background-color: #ffffff !important;
  border-bottom-color: var(--border) !important;
}

body.has-overlay-header #header.is-scrolled .nav-link {
  color: var(--muted-foreground) !important;
}

body.has-overlay-header #header.is-scrolled .nav-link:hover,
body.has-overlay-header #header.is-scrolled .nav-link.is-active {
  color: var(--foreground) !important;
}

body.has-overlay-header #header.is-scrolled #mobile-menu-btn {
  color: var(--foreground);
  border-color: var(--border);
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 0;
}

.site-logo {
  display: block;
  height: 2.6rem;
  width: auto;
  max-width: 11.5rem;
  object-fit: contain;
  object-position: left center;
  border-radius: 0 !important;
}

.site-logo-footer {
  height: 3rem;
  max-width: 13rem;
}

@media (min-width: 640px) {
  .site-logo {
    height: 3rem;
    max-width: 13.5rem;
  }
}

h1, h2, blockquote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  letter-spacing: 0.01em;
}

h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

p {
  font-weight: 400;
  line-height: 1.7;
}

.eyebrow {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-foreground);
  font-size: 0.6875rem;
  font-weight: 500;
}

/* Custom Spacing Classes */
.section-y {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .section-y {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}
@media (min-width: 1280px) {
  .section-y {
    padding-top: 8.5rem;
    padding-bottom: 8.5rem;
  }
}

.after-hero {
  padding-top: 6rem;
}
@media (min-width: 768px) {
  .after-hero {
    padding-top: 9rem;
  }
}
@media (min-width: 1280px) {
  .after-hero {
    padding-top: 11.5rem;
  }
}

/* Full Fairfax photo — never cropped */
.hero-uncropped-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  border-radius: 0;
}

/* Home 2 banner — full-screen house, text on the photo */
.hero-cine {
  position: relative;
  height: 100svh;
  min-height: 36rem;
  overflow: hidden;
  background: #0c0e10;
}

.hero-cine .hero-uncropped-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-cine-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 10, 12, 0.28) 0%, rgba(8, 10, 12, 0.18) 42%, rgba(8, 10, 12, 0.48) 100%),
    radial-gradient(ellipse 55% 50% at 50% 48%, rgba(8, 10, 12, 0.38) 0%, transparent 72%);
}

.hero-cine-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7.5rem 1.5rem 3rem;
  text-align: center;
  color: #fff;
  will-change: transform, opacity;
}

.hero-cine-copy h1,
.hero-cine-copy p,
.hero-cine-copy .eyebrow {
  color: #fff;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.7);
}

.hero-cine-copy > * {
  animation: h2-hero-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-cine-copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero-cine-copy > *:nth-child(3) { animation-delay: 0.2s; }
.hero-cine-copy > *:nth-child(4) { animation-delay: 0.28s; }
.hero-cine-copy > *:nth-child(5) { animation-delay: 0.36s; }

@keyframes h2-hero-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-cine-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 640px) {
  .hero-cine-actions {
    flex-direction: row;
  }
}

.modern-bento {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 1024px) {
  .modern-bento {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
  }

  .modern-bento-main {
    grid-row: span 2;
  }
}

.modern-photo-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 22rem;
}

.modern-photo-card img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.modern-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 10, 12, 0.12) 0%, rgba(8, 10, 12, 0.2) 40%, rgba(8, 10, 12, 0.82) 100%);
  transition: background 0.45s ease;
}

.modern-photo-card:hover img {
  transform: scale(1.07);
}

.modern-photo-card:hover::after {
  background: linear-gradient(180deg, rgba(8, 10, 12, 0.22) 0%, rgba(8, 10, 12, 0.38) 42%, rgba(8, 10, 12, 0.9) 100%);
}

.modern-photo-card-main,
.modern-photo-card-main img {
  min-height: 28rem;
}

@media (min-width: 1024px) {
  .modern-photo-card-main,
  .modern-photo-card-main img {
    min-height: 100%;
    height: 100%;
  }

  .modern-photo-card,
  .modern-photo-card img {
    min-height: 20rem;
  }
}

.modern-photo-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.5rem 1.35rem 1.6rem;
  color: #fff;
  transform: translateY(0);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.modern-photo-meta h3,
.modern-photo-meta p {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.modern-photo-card:hover .modern-photo-meta {
  transform: translateY(-6px);
}

.modern-split {
  display: grid;
}

@media (min-width: 1024px) {
  .modern-split {
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 36rem;
  }

  .modern-split.reverse {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .modern-split.reverse .modern-split-photo {
    order: 2;
  }
}

.modern-split-photo {
  position: relative;
  overflow: hidden;
}

.modern-split-photo img {
  display: block;
  width: 100%;
  height: 24rem;
  object-fit: cover;
  border-radius: 0;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.modern-split-photo:hover img {
  transform: scale(1.06);
}

.modern-split-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 10, 12, 0.62) 100%);
  pointer-events: none;
}

.modern-split-label {
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

@media (min-width: 1024px) {
  .modern-split-photo,
  .modern-split-photo img {
    height: 100%;
    min-height: 38rem;
  }
}

.modern-split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: #fff;
}

@media (min-width: 1024px) {
  .modern-split-copy {
    padding: 4rem 3.5rem;
  }
}

.modern-steps {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .modern-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .modern-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.modern-step {
  position: relative;
}

.modern-step-media {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
}

.modern-step-media img {
  display: block;
  width: 100%;
  height: 22rem;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.modern-step:hover .modern-step-media img {
  transform: scale(1.07);
}

.modern-step-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 12, 0.08) 20%, rgba(8, 10, 12, 0.82) 100%);
  transition: background 0.45s ease;
}

.modern-step:hover .modern-step-media::after {
  background: linear-gradient(180deg, rgba(8, 10, 12, 0.22) 10%, rgba(8, 10, 12, 0.88) 100%);
}

.modern-step-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.4rem 1.25rem 1.5rem;
  color: #fff;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.modern-step:hover .modern-step-meta {
  transform: translateY(-6px);
}

.modern-step-meta h3,
.modern-step-meta p:not(.eyebrow) {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

@media (min-width: 1100px) {
  .modern-step-media,
  .modern-step-media img {
    height: 26rem;
    min-height: 26rem;
  }
}

/* Home 2 Our Services — featured listing, no carousel */
.h2-services-head {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .h2-services-head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 4rem;
  }
}

.h2-feature {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .h2-feature {
    grid-template-columns: 1.45fr 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 38rem;
  }

  .h2-feature-main {
    grid-row: span 2;
  }
}

.h2-home {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 16rem;
}

.h2-home img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.h2-home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 10, 12, 0.08) 25%, rgba(8, 10, 12, 0.8) 100%);
  transition: background 0.45s ease;
}

.h2-home:hover img {
  transform: scale(1.07);
}

.h2-home:hover::after {
  background: linear-gradient(180deg, rgba(8, 10, 12, 0.2) 15%, rgba(8, 10, 12, 0.88) 100%);
}

.h2-feature-main,
.h2-feature-main img {
  min-height: 22rem;
}

@media (min-width: 1024px) {
  .h2-feature-main,
  .h2-feature-main img {
    height: 100%;
    min-height: 100%;
  }

  .h2-home,
  .h2-home img {
    min-height: 18.5rem;
  }
}

.h2-home-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.25rem 1.35rem;
  color: #fff;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.h2-home:hover .h2-home-cap {
  transform: translateY(-6px);
}

.h2-home-cap span {
  display: block;
  margin-top: 0.4rem;
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.h2-row {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .h2-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.h2-ideas {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .h2-ideas {
    grid-template-columns: 1fr 1fr;
  }

  .h2-ideas-main {
    grid-column: span 2;
  }
}

@media (min-width: 1100px) {
  .h2-ideas {
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .h2-ideas-main {
    grid-column: 1;
    grid-row: span 2;
  }
}

@media (min-width: 1100px) {
  .h2-ideas-main,
  .h2-ideas-main img {
    min-height: 100%;
    height: 100%;
  }
}

.h2-blog {
  display: block;
  color: inherit;
}

.h2-blog-media {
  overflow: hidden;
}

.h2-blog img {
  display: block;
  width: 100%;
  height: 20rem;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.h2-blog:hover img {
  transform: scale(1.05);
}

.h2-blog-cap {
  padding: 1.35rem 0 0;
}

.h2-blog-cap p {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a8173;
}

.h2-blog-cap h3 {
  margin: 0.75rem 0 0;
  font-size: 1.35rem;
  line-height: 1.25;
  color: #2f2c27;
}

@media (min-width: 768px) {
  .h2-blog img {
    height: 24rem;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.home2-service .home2-tile-shade {
  transition: background 0.45s ease;
}

.home2-service:hover .home2-tile-shade {
  background: linear-gradient(180deg, rgba(10, 12, 14, 0.22) 10%, rgba(10, 12, 14, 0.82) 100%);
}

.home2-service .home2-tile-copy {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.home2-service:hover .home2-tile-copy {
  transform: translateY(-8px);
}

.home2-tile-copy h3,
.home2-tile-copy p,
.home2-tile-copy .eyebrow {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .hero-cine-copy > *,
  [data-reveal],
  .modern-photo-card img,
  .h2-home img,
  .modern-step-media img,
  .modern-split-photo img,
  .h2-blog img,
  .home2-service img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  [data-reveal] {
    opacity: 1;
  }
}

.home-big-photo {
  display: block;
  width: 100%;
  height: 26rem;
  object-fit: cover;
  border-radius: 0;
}

@media (min-width: 768px) {
  .home-big-photo {
    height: 36rem;
  }
}

@media (min-width: 1100px) {
  .home-big-photo {
    height: 46rem;
  }
}

.home-xl-photo {
  display: block;
  width: 100%;
  height: 32rem;
  object-fit: cover;
  border-radius: 0;
}

@media (min-width: 768px) {
  .home-xl-photo {
    height: 44rem;
  }
}

@media (min-width: 1100px) {
  .home-xl-photo {
    height: 54rem;
  }
}

.home2-service {
  position: relative;
  display: block;
  min-height: 26rem;
  overflow: hidden;
}

.home2-service img {
  width: 100%;
  height: 100%;
  min-height: 26rem;
  object-fit: cover;
  transition: transform 0.8s ease;
  border-radius: 0;
}

.home2-service:hover img {
  transform: scale(1.04);
}

@media (min-width: 768px) {
  .home2-service,
  .home2-service img {
    min-height: 34rem;
  }
}

@media (min-width: 1100px) {
  .home2-service,
  .home2-service img {
    min-height: 42rem;
  }
}

.home2-process,
.home2-process img {
  min-height: 24rem;
}

@media (min-width: 1024px) {
  .home2-process,
  .home2-process img {
    min-height: 32rem;
  }
}

/* Custom Overlays for Hero & Testimonials */
.hero-full-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay-dark {
  position: absolute;
  inset: 0;
  background-color: rgba(12, 14, 16, 0.32) !important;
  z-index: 1;
  pointer-events: none;
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    ellipse 70% 55% at 50% 48%,
    rgba(10, 12, 14, 0.62) 0%,
    rgba(10, 12, 14, 0.22) 70%,
    rgba(10, 12, 14, 0.28) 100%
  ) !important;
  z-index: 1;
  pointer-events: none;
}

#top h1,
#top p,
#top .eyebrow {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

#top h1 {
  color: #ffffff;
}

.testimonial-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(25, 27, 26, 0.8) !important;
  z-index: 1;
  pointer-events: none;
}

.g-reviews-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.g-reviews-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.g-reviews-brand svg {
  width: 1.85rem;
  height: 1.85rem;
}

.g-reviews-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  margin-top: 0.85rem;
  color: #fbbc04;
}

.g-reviews-stars svg {
  width: 1.1rem;
  height: 1.1rem;
}

.g-reviews-score {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #6b645a;
}

.g-reviews {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.75rem;
}

@media (min-width: 900px) {
  .g-reviews {
    grid-template-columns: repeat(3, 1fr);
  }
}

.g-review {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6e0d6;
  padding: 1.5rem 1.4rem 1.45rem;
}

.g-review-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.g-review-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  background: #1a73e8;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: Inter, sans-serif;
}

.g-review-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #2f2c27;
  font-family: Inter, sans-serif;
}

.g-review-meta {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: #8a8173;
}

.g-review-g {
  margin-left: auto;
  width: 1.15rem;
  height: 1.15rem;
}

.g-review-stars {
  display: flex;
  gap: 0.12rem;
  margin-top: 0.85rem;
  color: #fbbc04;
}

.g-review-stars svg {
  width: 0.95rem;
  height: 0.95rem;
}

.g-review p {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #3d3933;
  flex: 1;
}

/* Ensure hero content is positioned above the overlay for readability */
#top > div.relative {
  z-index: 10;
}

/* Sweep Button Hover Animation */
.nav-quote-btn {
  background: #FFFFFF73 !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid #d8b172 !important;
  border-radius: 0 !important;
  overflow: hidden;
}

a.nav-quote-btn:hover,
a.nav-quote-btn:focus-visible {
  border-color: #d8b172 !important;
  color: #000000 !important;
}

.btn-sweep {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  transition: color 0.45s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-sweep::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #d8b172 !important;
  z-index: -1;
  transform: translateX(-101%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-sweep:hover::before,
.btn-sweep:focus-visible::before {
  transform: translateX(0);
}

.btn-sweep:hover,
.btn-sweep:focus-visible {
  color: #000000 !important;
  border-color: #d8b172 !important;
}

@media (hover: none) {
  .btn-sweep::before {
    transition: none;
  }
  .btn-sweep:hover::before {
    transform: translateX(-100%);
  }
}

/* Underline Link Animation */
.link-underline {
  position: relative;
}

.link-underline::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-underline:hover::after {
  transform: scaleX(1);
}

/* Fixed Background Layouts (CSS Parallax) */
.parallax-bg-wrapper {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  clip-path: inset(0); /* Clips the fixed child to the section's boundaries */
}

.parallax-bg {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  z-index: -1;
  transform: none !important; /* Keep the image stationary relative to viewport */
}

.parallax-bg img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* FAQ Accordion Transitions */
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-panel-content {
  overflow: hidden;
}

/* Mobile menu — drops under the header, page stays visible below */
.mobile-menu-drawer {
  display: grid;
  grid-template-rows: 0fr;
  background: #fff;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.32, 1);
}

.mobile-menu-drawer.open {
  grid-template-rows: 1fr;
}

.mobile-menu-links {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 1.5rem;
}

.mobile-menu-drawer.open .mobile-menu-links {
  padding: 0.35rem 1.5rem 1.75rem;
}

body.menu-open #header {
  background-color: #fff;
}

body.menu-open .site-nav {
  background-color: #fff !important;
  border-bottom-color: transparent !important;
}

body.menu-open.has-overlay-header #header,
body.menu-open.has-overlay-header .site-nav {
  background-color: #fff !important;
}

body.menu-open.has-overlay-header #mobile-menu-btn {
  color: #2f2c27;
  border-color: #d8cfc3;
}

body.menu-open .menu-icon-open {
  display: none;
}

body.menu-open .menu-icon-close {
  display: block;
}

@media (min-width: 1280px) {
  .mobile-menu-drawer {
    display: none !important;
  }
}

.mobile-menu-links > a,
.mobile-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.05rem 0;
  border: 0;
  background: none;
  color: #2f2c27;
  font-family: Inter, sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  line-height: 1.2;
}

.mobile-menu-links > a:hover,
.mobile-accordion-btn:hover {
  color: #d8b172;
}

.mobile-accordion-btn::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.75rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.mobile-accordion-btn[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

.mobile-accordion-panel {
  display: none;
  flex-direction: column;
  padding: 0 0 0.5rem 0.15rem;
}

.mobile-accordion-panel.open {
  display: flex;
}

.mobile-accordion-panel a {
  padding: 0.55rem 0;
  color: #6b645a;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mobile-accordion-panel a:hover {
  color: #2f2c27;
}

.mobile-menu-footer {
  display: none;
}

/* Desktop dropdown / mega menu */
.nav-item {
  position: relative;
}

.nav-item > .nav-link {
  display: inline-flex;
  align-items: center;
  padding-bottom: 0.35rem;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: -0.75rem;
  right: -0.75rem;
  top: 100%;
  height: 1.15rem;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 15.5rem;
  margin-top: 0.35rem;
  padding: 0.75rem 0;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(24, 20, 16, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}

.dropdown.mega {
  display: grid;
  grid-template-columns: repeat(4, minmax(10.5rem, 1fr));
  gap: 1.25rem;
  min-width: 46rem;
  max-width: calc(100vw - 2rem);
  left: auto;
  right: 0;
  padding: 1.5rem;
  transform: translateY(8px);
}

.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-item:hover > .dropdown:not(.mega),
.nav-item:focus-within > .dropdown:not(.mega) {
  transform: translateX(-50%) translateY(0);
}

.nav-item:hover > .dropdown.mega,
.nav-item:focus-within > .dropdown.mega {
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.55rem 1.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color 0.25s ease, background-color 0.25s ease, padding-left 0.25s ease;
}

.dropdown-link:hover,
.dropdown-link.is-active {
  color: var(--foreground);
  background-color: var(--secondary);
  padding-left: 1.4rem;
}

.mega .dropdown-link {
  padding-left: 0;
}

.mega .dropdown-link:hover,
.mega .dropdown-link.is-active {
  padding-left: 0.35rem;
  background: transparent;
}

.mega-title {
  margin-bottom: 0.65rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.nav-link.is-active {
  color: var(--foreground);
}

/* Inner page hero banner — consistent height, full cover photo, no crop offset */
.page-hero {
  position: relative;
  min-height: 32rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-hero .parallax-bg,
.page-hero .hero-full-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
}

.page-hero .parallax-bg img,
.page-hero img.hero-full-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.page-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 8rem 0 3.25rem;
}

.page-hero-content h1 {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
  font-size: clamp(2.15rem, 4.2vw, 3.4rem) !important;
  line-height: 1.12 !important;
}

.page-hero-content p {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

@media (min-width: 768px) {
  .page-hero {
    min-height: 38rem;
  }
}

@media (min-width: 1100px) {
  .page-hero {
    min-height: 42rem;
  }
}

.cta-band {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* About section left image */
.about-image-col {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--secondary);
}

.about-image {
  display: block;
  width: 100%;
  height: 22rem;
  object-fit: cover;
  object-position: 35% center;
}

@media (min-width: 640px) {
  .about-image {
    height: 32rem;
  }
}

@media (min-width: 1024px) {
  .about-image-col {
    width: 50%;
    min-height: 100%;
  }

  .about-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-position: 32% center;
  }
}

/* Our Services tabs + large house showcase */
.services-tab {
  min-width: 10.5rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  border-radius: 2.5rem;
  cursor: pointer;
  font-family: Inter, sans-serif;
  transition: background 0.25s ease, color 0.25s ease;
}

.services-tab.is-active {
  background: var(--primary);
  color: #fff;
}

.services-carousel-wrap {
  position: relative;
}

.services-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.25rem 0 0.5rem;
  scrollbar-width: none;
}

.services-track::-webkit-scrollbar {
  display: none;
}

.services-track.hidden {
  display: none;
}

.services-card {
  position: relative;
  flex: 0 0 88%;
  height: 28rem;
  overflow: hidden;
  border-radius: 1.5rem;
  scroll-snap-align: start;
  color: #fff;
  box-shadow: 0 18px 50px rgba(24, 20, 16, 0.16);
}

.services-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.services-card:hover img {
  transform: scale(1.04);
}

.services-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 20, 19, 0.78) 0%, rgba(18, 20, 19, 0.15) 48%, transparent 70%);
}

.services-card-meta {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1;
}

.services-card-tag {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(216, 177, 114, 0.85);
  color: #d8b172;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: Inter, sans-serif;
}

.services-card-meta span {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
}

.services-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.services-prev { left: -0.4rem; }
.services-next { right: -0.4rem; }

@media (min-width: 768px) {
  .services-card {
    flex-basis: 70%;
    height: 34rem;
  }

  .services-card-meta span {
    font-size: 2.25rem;
  }
}

@media (min-width: 1100px) {
  .services-card {
    flex-basis: calc(50% - 0.75rem);
    height: 40rem;
  }

  .services-track {
    gap: 1.75rem;
  }

  .services-prev { left: -0.75rem; }
  .services-next { right: -0.75rem; }
}

/* Demo homepage 2 — mosaic of large house photos */
.home2-mosaic {
  display: grid;
  gap: 0.75rem;
}

.home2-tile {
  position: relative;
  display: block;
  min-height: 22rem;
  overflow: hidden;
  border-radius: 0;
}

.home2-tile img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0;
}

.home2-tile:hover img {
  transform: scale(1.05);
}

.home2-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 14, 0.08) 20%, rgba(10, 12, 14, 0.72) 100%);
}

.home2-tile-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.75rem;
}

@media (min-width: 768px) {
  .home2-mosaic {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: 22rem 22rem;
    min-height: 44rem;
  }

  .home2-tile-wide {
    grid-row: span 2;
    min-height: 44rem;
  }

  .home2-tile-wide img {
    min-height: 44rem;
  }
}

.home2-feature {
  position: relative;
  display: block;
  min-height: 28rem;
  overflow: hidden;
  border-radius: 0;
}

.home2-feature img {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0;
}

.home2-feature:hover img {
  transform: scale(1.05);
}

@media (min-width: 1024px) {
  .home2-feature,
  .home2-feature img {
    min-height: 36rem;
  }
}

/* Demo homepage 3 — full-width alternating house + service bands */
.home3-split {
  min-height: 100vh;
}

.home3-split-photo,
.home3-split-photo img {
  min-height: 28rem;
}

.home3-split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

@media (min-width: 1024px) {
  .home3-split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    min-height: 100vh;
  }

  .home3-split-photo,
  .home3-split-photo img {
    min-height: 100%;
  }
}

.home3-band {
  position: relative;
  min-height: 36rem;
  overflow: hidden;
}

.home3-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.home3-band-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 14, 16, 0.72) 0%, rgba(12, 14, 16, 0.28) 55%, rgba(12, 14, 16, 0.18) 100%);
}

.home3-band.reverse .home3-band-shade {
  background: linear-gradient(270deg, rgba(12, 14, 16, 0.72) 0%, rgba(12, 14, 16, 0.28) 55%, rgba(12, 14, 16, 0.18) 100%);
}

.home3-band-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 32rem;
  align-items: flex-end;
  padding: 3rem 1.5rem;
}

@media (min-width: 768px) {
  .home3-band,
  .home3-band-copy {
    min-height: 42rem;
  }

  .home3-band-copy {
    padding: 4.5rem 3rem;
  }

  .home3-band.reverse .home3-band-copy {
    justify-content: flex-end;
    text-align: right;
  }
}

@media (min-width: 1100px) {
  .home3-band,
  .home3-band-copy {
    min-height: 52rem;
  }
}
