/* ==========================================================================
   AVYAH HOMES — MAIN STYLESHEET
   Single consolidated CSS for clean luxury portfolio & services
   ========================================================================== */

:root {
  --primary: #1B2643;
  --cream: #FFEDD7;
  --dark: #000000;
  --light: #FFFFFF;
  --bg-soft: #F9F8F5;
  --line: rgba(27, 38, 67, 0.16);
  --line-light: rgba(255, 255, 255, 0.18);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius: 4px;
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--light);
  color: var(--primary);
  font: 15px/1.65 var(--sans);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, textarea {
  font: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--primary);
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.dark :focus-visible {
  outline-color: var(--cream);
}

/* Theme Utilities */
.dark {
  background: var(--primary);
  color: var(--light);
}

.cream-bg {
  background: var(--cream);
  color: var(--primary);
}

.soft-bg {
  background: var(--bg-soft);
  color: var(--primary);
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 1000;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--cream);
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader img {
  width: 170px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.preloader p {
  font-size: 10px;
  letter-spacing: 0.22em;
  margin-top: 15px;
  opacity: 0.9;
}

.loader {
  width: 160px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.loader i {
  display: block;
  height: 100%;
  background: var(--cream);
  animation: load 1.2s forwards;
}

@keyframes load {
  from { width: 0; }
  to { width: 100%; }
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  z-index: 901;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  color: #fff;
  transition: height 0.4s var(--ease), background 0.4s var(--ease), border 0.4s var(--ease);
}

.header.scrolled {
  height: 68px;
  background: rgba(27, 38, 67, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-light);
}

.logo {
  width: 105px;
  height: 50px;
  object-fit: contain;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 32px;
  margin-right: 32px;
}

.nav a, .header-cta {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav a {
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.35s var(--ease);
}

.nav a:hover::after, .nav a.active::after {
  right: 0;
}

.header-cta {
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 10px 18px;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.header-cta:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.menu {
  display: none;
  color: #fff;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 95;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}

.menu.open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu.open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile {
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 900;
  color: var(--cream);
  transform: translateY(-130%);
  transition: transform 0.6s var(--ease);
  padding: 110px 8vw 40px;
  display: flex;
  flex-direction: column;
}

.mobile.open {
  transform: translateY(0);
}

.mobile nav {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}

.mobile nav a {
  font: 500 clamp(32px, 7vw, 48px)/1.2 var(--serif);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 237, 215, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile nav small {
  font: 10px var(--sans);
  letter-spacing: 0.15em;
}

/* ==========================================================================
   HERO SECTION & PAGE HERO
   ========================================================================== */
.hero {
  height: 100svh;
  min-height: 640px;
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: #fff;
  display: flex;
  z-index: 99;
  align-items: center;
}

.hero-media, .hero-media video, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% center;
}

.hero-media {
  background: url('../assets/images/hero-poster.jpg') 70% center/cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.75), transparent 75%),
              linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  left: 6vw;
  max-width: 820px;
  padding-right: 5vw;
}

.hero h1, .page-hero h1 {
  font-size: clamp(38px, 5.5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 12px 0 20px;
  /* display: flex; */
  justify-content: center;
}

.hero h1 em, .page-hero h1 em, h2 em {
  font-family: var(--serif);
  font-style: italic;
  display: flex;
  justify-content: center;
}
.hero h1 em2 {
  font-family: var(--serif);
  font-style: italic;
  display: flex;
  /* justify-content: center; */
}

.hero-copy {
  max-width: 480px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.7;
}

.page-hero > div:not([class]) {
  text-align: center;
}

.page-hero {
  min-height: 48vh;
  padding: 130px 6vw 48px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line-light);
}

.page-hero p.hero-subtitle {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.7;
}

.cta {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid currentColor;
  padding: 8px 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.cta:hover {
  opacity: 0.75;
  transform: translateX(3px);
}

.hero-bottom {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: 5vw;
  right: 5vw;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 9px;
  letter-spacing: 0.18em;
  opacity: 0.8;
}

.hero-bottom .line {
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  flex: 1;
}

/* ==========================================================================
   TOP-CENTERED SECTION HEADINGS & COMPACT PADDING
   ========================================================================== */
.section-pad {
  padding: 46px 5vw;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 26px;
  padding: 0 2vw;
}

.section-header .eyebrow {
  margin: 0 0 8px;
  opacity: 0.75;
}

.section-header h2 {
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 12px;
}

.section-header p.section-desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(27, 38, 67, 0.72);
  margin: 0 auto;
  max-width: 600px;
}

.dark .section-header p.section-desc {
  color: rgba(255, 255, 255, 0.72);
}

/* Intro 3-Column Pillar Points */
.intro-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.pillar-card {
  border: 1px solid var(--line);
  padding: 26px 22px;
  border-radius: var(--border-radius);
  background: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(27, 38, 67, 0.06);
}

.pillar-card span {
  font-size: 11px;
  letter-spacing: 0.16em;
  opacity: 0.5;
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.pillar-card h3 {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.pillar-card p {
  font-size: 13.5px;
  color: rgba(27, 38, 67, 0.72);
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   SERVICES PAGE STYLES — SINGLE COLUMN & 3-BOX DROPDOWN
   ========================================================================== */
.services-container {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--border-radius);
  padding: 32px 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.dark .service-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-light);
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(27, 38, 67, 0.06);
}

.service-num {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  font-family: var(--serif);
  letter-spacing: -0.01em;
  opacity: 0.7;
}

.dark .service-num {
  color: var(--cream);
}

.service-body h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.service-body p {
  font-size: 14px;
  color: rgba(27, 38, 67, 0.75);
  line-height: 1.7;
}

.dark .service-body p {
  color: rgba(255, 255, 255, 0.75);
}

/* 1. Main service section */
.service-detail-section {
  padding: 55px 5vw 45px;
  position: relative;
  border-bottom: 1px solid rgba(27, 38, 67, 0.1);
  text-align: center;
}

.service-detail-section:last-of-type {
  border-bottom: none;
}

.service-detail-section.soft-bg {
  background: var(--bg-soft);
}

/* 2. Single Column Header & Description */
.service-single-header {
  max-width: 880px;
  margin: 0 auto 20px;
  text-align: center;
}

.service-single-header .eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--cream);
  margin-bottom: 12px;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(27, 38, 67, 0.1);
}

.service-single-header h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 14px;
}

.service-single-header .service-desc {
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(27, 38, 67, 0.85);
  margin: 0 auto;
}

/* 3. View More Dropdown Toggle Button */
.service-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 24px;
  padding: 9px 22px;
  background: #ffffff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: 0 2px 10px rgba(27, 38, 67, 0.05);
}

.service-toggle-btn:hover {
  background: var(--primary);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(27, 38, 67, 0.15);
}

.service-toggle-btn .chevron {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
  margin-left: 2px;
  margin-top: -3px;
}

.service-toggle-btn.is-active {
  background: var(--primary);
  color: var(--cream);
}

.service-toggle-btn.is-active .chevron {
  transform: rotate(-135deg);
  margin-top: 3px;
}

/* 4. Expandable Drawer Container */
.service-expandable-drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  margin-bottom: 0;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.service-expandable-drawer.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-bottom: 24px;
}

.service-drawer-inner {
  overflow: hidden;
  text-align: left;
}

/* 5. 3-Box Grid */
.service-3boxes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 4px 2px 10px;
  text-align: left;
}

.service-box-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 22px;
  box-shadow: 0 4px 18px rgba(27, 38, 67, 0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.service-box-card:hover {
  border-color: rgba(27, 38, 67, 0.32);
  box-shadow: 0 8px 24px rgba(27, 38, 67, 0.07);
}

.service-box-card h3 {
  font-size: 17.5px;
  font-weight: 600;
  font-family: var(--serif);
  color: var(--primary);
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(27, 38, 67, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-box-card h3::before {
  content: '✦';
  font-size: 12px;
  color: var(--primary);
  opacity: 0.7;
}

.service-box-card .eyebrow-mini {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.65;
  margin-bottom: 4px;
  display: block;
}

.service-box-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.service-box-card li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(27, 38, 67, 0.85);
}

.service-box-card li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.7;
  box-shadow: 0 0 0 2px rgba(27, 38, 67, 0.08);
}

.service-box-card li strong {
  color: var(--primary);
  font-weight: 600;
}

.service-box-card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(27, 38, 67, 0.82);
  margin: 0;
}

.service-box-card p + p {
  margin-top: 8px;
}

/* Process flow step pills */
.service-box-card .service-process-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}

.service-box-card .service-step-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  background: var(--cream);
  border: 1px solid rgba(27, 38, 67, 0.12);
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.service-box-card .service-step-arrow {
  color: rgba(27, 38, 67, 0.4);
  font-weight: 700;
  font-size: 12px;
}

/* 6. Videos Grid — 4 videos directly underneath */
.service-videos-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-video-card {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(27, 38, 67, 0.15);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(27, 38, 67, 0.08);
}

.service-video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 5px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(27, 38, 67, 0.14);
  border-radius: 8px;
}

.service-video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-video-card span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 8px 10px;
  background: rgba(27, 38, 67, 0.9);
  color: var(--cream);
  border: 1px solid rgba(255, 237, 215, 0.25);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 992px) {
  .service-detail-section {
    padding: 42px 5vw 35px;
  }

  .service-3boxes-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-videos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .service-detail-section {
    padding: 35px 5vw 28px;
  }

  .service-single-header h2 {
    font-size: 26px;
  }

  .service-single-header .service-desc {
    font-size: 14.5px;
  }

  .service-box-card {
    padding: 18px 16px;
  }

  .service-videos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .service-video-card span {
    font-size: 9px;
    padding: 6px 8px;
    left: 6px;
    right: 6px;
    bottom: 6px;
  }
}

/* ==========================================================================
   CATEGORIZED GALLERY STYLES
   ========================================================================== */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1000px;
  margin: 0 auto 36px;
  padding: 0 2vw;
}

.gallery-filter-btn {
  padding: 8px 18px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.gallery-filter-btn:hover, .gallery-filter-btn.active {
  background: var(--primary);
  color: var(--cream);
  border-color: var(--primary);
}

.dark .gallery-filter-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-light);
  color: #fff;
}

.dark .gallery-filter-btn:hover, .dark .gallery-filter-btn.active {
  background: var(--cream);
  color: var(--primary);
  border-color: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.gallery-card {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--border-radius);
  background: #000;
  cursor: zoom-in;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.gallery-card.hidden {
  display: none !important;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 11px;
  background: rgba(27, 38, 67, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--cream);
  border-radius: 2px;
  border: 1px solid rgba(255, 237, 215, 0.25);
  z-index: 2;
}

.gallery-card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 26px 14px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}

/* ==========================================================================
   WHILE CONSTRUCTION VS AFTER CONSTRUCTION SECTION
   ========================================================================== */
.construction-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.construction-card {
  position: relative;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--border-radius);
  cursor: zoom-in;
  background: #000;
}

.dark .construction-card {
  border-color: var(--line-light);
}

.construction-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.construction-card:hover img {
  transform: scale(1.03);
}

.construction-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(27, 38, 67, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFEDD7;
  padding: 8px 16px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid rgba(255, 237, 215, 0.3);
  border-radius: 2px;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   UNIFORM CAROUSEL COMPONENT
   ========================================================================== */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  overflow: hidden;
  user-select: none;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  border-radius: var(--border-radius);
}

.carousel-track-kitchen {
  display: flex;
  justify-content: center;
  gap: 16px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* =========================================
   BUILDING LAYOUT SECTION
========================================= */

.building-layout-section {
  overflow: hidden;
}

.building-layout-wrapper {
  width: 100%;
  margin-top: 40px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.building-layout-card {
  position: relative;

  width: min(850px, 100%);

  margin: 0 auto;
  padding: 0;

  border: 0;
  background: transparent;

  cursor: zoom-in;
  overflow: hidden;
}

.building-layout-image {
  display: block;

  width: 100%;
  height: auto;

  max-height: 480px;

  object-fit: contain;

  margin: 0 auto;

  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.building-layout-card:hover .building-layout-image {
  transform: scale(1.025);
}

.building-layout-label {
  position: absolute;

  right: 18px;
  bottom: 18px;

  padding: 11px 16px;

  background: rgba(20, 20, 20, 0.82);
  color: #fff;

  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;

  letter-spacing: 0.12em;

  backdrop-filter: blur(10px);

  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.building-layout-card:hover .building-layout-label {
  transform: translateY(-3px);
  background: rgba(20, 20, 20, 0.95);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

  .building-layout-card {
    width: min(760px, 92%);
  }

  .building-layout-image {
    max-height: 450px;
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 639px) {

  .building-layout-wrapper {
    margin-top: 28px;
  }

  .building-layout-card {
    width: 92%;
  }

  .building-layout-image {
    width: 100%;
    height: auto;
    max-height: 420px;
  }

  .building-layout-label {
    right: 10px;
    bottom: 10px;

    padding: 8px 11px;

    font-size: 8px;
  }

}

@media (max-width: 768px) {
  .carousel-track-kitchen {
    justify-content: flex-start;
  }
  
  .carousel-track-kitchen > * {
    flex: 0 0 100%;
    width: 100%;
  }

}
@media (max-width: 992px) {
    .mobile {
      display: flex;
    }
}
.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 calc(33.333% - 11px);
  min-width: 280px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: #000;
  cursor: zoom-in;
  aspect-ratio: 16 / 11;
}

.dark .carousel-slide {
  border-color: var(--line-light);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.carousel-slide:hover img {
  transform: scale(1.04);
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 14px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  pointer-events: none;
}

/* Carousel Nav Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(27, 38, 67, 0.88);
  color: var(--cream);
  border: 1px solid rgba(255, 237, 215, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.dark .carousel-btn {
  background: rgba(255, 237, 215, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.carousel-btn:hover {
  background: var(--cream);
  color: var(--primary);
  border-color: var(--cream);
  transform: translateY(-50%) scale(1.08);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

/* Carousel Dots Indicator */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(27, 38, 67, 0.22);
  border: 0;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.carousel-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary);
}

.dark .carousel-dot {
  background: rgba(255, 255, 255, 0.28);
}

.dark .carousel-dot.active {
  background: var(--cream);
}

/* ==========================================================================
   PRESERVED HOMEPAGE ANIMATION SECTIONS (DO NOT MODIFY LOGIC)
   ========================================================================== */
.circle-section {
  height: 100vh;
  background: var(--primary);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.circle-eyebrow {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cream);
  opacity: 0.65;
}

.circle-eyebrow::after {
  content: '';
  display: block;
  width: 1px;
  height: 34px;
  background: rgba(255, 237, 215, 0.4);
  margin: 14px auto 0;
  animation: circleScrollHint 1.8s ease-in-out infinite;
}

.circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--primary);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: circlePulse 2.8s ease-in-out infinite;
}

.circle span {
  transition: opacity 0.25s var(--ease);
}

.circle-reveal {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 8vw;
  opacity: 0;
  pointer-events: none;
}

.circle-reveal h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--primary);
}

.circle-reveal h2 em {
  font-family: var(--serif);
}

@keyframes circlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 237, 215, 0.3); }
  50% { box-shadow: 0 0 32px 12px rgba(255, 237, 215, 0.14); }
}

@keyframes circleScrollHint {
  0% { opacity: 0; transform: translateY(-6px); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* 03 SIGNATURE PROJECT SPLIT SECTION */
.split {
  height: 100vh;
  min-height: 620px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.split-img {
  position: absolute;
  top: 12%;
  bottom: 12%;
  width: 40%;
  overflow: hidden;
  border: 1px solid var(--line);
}

.split-left {
  left: 0;
}

.split-right {
  right: 0;
}

.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crop-right {
  object-position: 82% center !important;
}

.split-center {
  position: absolute;
  z-index: 2;
  width: min(470px, 70vw);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.split-center h2 {
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 10px 0 16px;
}

.split-center p:not(.eyebrow) {
  color: rgba(27, 38, 67, 0.72);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ==========================================================================
   SPECIFICATIONS / QUALITY STANDARDS
   ========================================================================== */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.spec-card {
  border: 1px solid var(--line);
  padding: 28px 22px;
  border-radius: var(--border-radius);
  background: #fff;
  transition: transform 0.3s var(--ease);
}

.dark .spec-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-light);
}

.spec-card:hover {
  transform: translateY(-3px);
}

.spec-card span {
  font-size: 11px;
  letter-spacing: 0.16em;
  opacity: 0.5;
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

.spec-card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.spec-card p {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(27, 38, 67, 0.72);
  margin: 0;
}

.dark .spec-card p {
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   TEXT RUNNING MARQUEE ("BUILT WITH TRUSTED BRANDS ✦ AVYAH HOMES")
   ========================================================================== */
.text-marquee {
  overflow: hidden;
  background: var(--cream);
  padding: 20px 0;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  /* -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); */
  /* mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); */
}

.text-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--primary);
  animation: textMarqueeLoop 24s linear infinite;
  will-change: transform;
}

.text-track span {
  display: inline-block;
}

@keyframes textMarqueeLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   BRAND CONTINUOUS MARQUEE (SMALL, COLORED, NO HOVER CHANGE)
   ========================================================================== */
.brand-marquee-section {
  padding: 34px 0 30px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.brand-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: brandMarquee 26s linear infinite;
  will-change: transform;
}

/* Small, Colored, No Hover State */
.brand-card {
  width: 135px;
  height: 64px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  flex-shrink: 0;
  /* No hover transition/effects */
}

.brand-card img {
  max-width: 90px;
  max-height: 40px;
  object-fit: contain;
  filter: none; /* Fully colored */
  opacity: 1;
}

@keyframes brandMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   CONTACT / PRIVATE SITE VISIT SECTION
   ========================================================================== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5vw;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.contact-info h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 16px;
  font-family: var(--serif);
}

.contact-info p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin-bottom: 20px;
}

.phone-link {
  font: 26px var(--serif);
  color: var(--cream);
  display: inline-block;
  margin: 10px 0 20px;
  transition: opacity 0.3s;
}

.phone-link:hover {
  opacity: 0.8;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
  border-top: 1px solid var(--line-light);
  padding-top: 24px;
}

.field {
  position: relative;
  border-bottom: 1px solid var(--line-light);
  padding-top: 14px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  position: absolute;
  top: 14px;
  left: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  transition: all 0.3s var(--ease);
}

.field input, .field textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 0 10px;
  color: #fff;
}

.field:focus-within label, .field.filled label {
  transform: translateY(-16px);
  font-size: 8.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
}

.field:focus-within {
  border-color: var(--cream);
}

.submit-btn {
  grid-column: 1 / -1;
  background: var(--cream);
  color: var(--primary);
  padding: 13px 28px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  justify-self: start;
  margin-top: 6px;
}

.submit-btn:hover {
  background: #fff;
  transform: translateY(-2px);
}

.form-status {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--cream);
  margin-top: 8px;
}

/* ==========================================================================
   COMPACT FOOTER (NO VACANT SPACES)
   ========================================================================== */
.footer {
  background: #111a30;
  color: #fff;
  padding: 34px 5vw 20px;
  border-top: 1px solid var(--line-light);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4vw;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  align-items: start;
}

.footer-brand img {
  width: 120px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 12px;
  line-height: 1.6;
  opacity: 0.75;
}

.footer-col h4 {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.85;
}

.footer-col p, .footer-col a {
  font-size: 12px;
  line-height: 1.8;
  opacity: 0.72;
  display: block;
  transition: opacity 0.3s;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--cream);
}

.footer-col .phone {
  font-size: 17px;
  color: var(--cream);
  opacity: 1;
  font-family: var(--serif);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(7, 16, 38, 0.95);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vw;
}

.lightbox.open {
  display: flex;
}

.lightbox-frame {
  width: min(1240px, 94vw);
  height: min(84vh, 840px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox-frame img, .lightbox-frame video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain !important;
  border: 1px solid var(--line-light);
  border-radius: var(--border-radius);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75);
  display: block;
}

.lightbox-caption {
  position: absolute;
  left: 4vw;
  bottom: 24px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  color: var(--cream);
  border: 1px solid rgba(255, 237, 215, 0.35);
  background: rgba(27, 38, 67, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  border-radius: 50%;
  transition: all 0.3s var(--ease);
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: var(--cream);
  color: var(--primary);
}

.lightbox-close {
  right: 24px;
  top: 24px;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

/* Scroll Progress Line */
.progress {
  position: fixed;
  right: 14px;
  top: 45%;
  height: 100px;
  width: 2px;
  background: rgba(27, 38, 67, 0.15);
  z-index: 80;
  border-radius: 1px;
}

.progress i {
  display: block;
  height: 0;
  background: var(--primary);
  border-radius: 1px;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
  .nav, .header-cta {
    display: none;
  }
  .menu {
    display: flex;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .carousel-slide {
    flex: 0 0 calc(50% - 8px);
  }
  .intro-pillars, .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .construction-comparison {
    grid-template-columns: 1fr;
  }
  .contact-container {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .split-center {
    background: rgba(255, 237, 215, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 24px 20px;
    border-radius: 2px;
    box-shadow: 0 0 35px 15px rgba(255, 237, 215, 0.95);
  }
}

@media (max-width: 640px) {
  .section-pad {
    padding: 36px 4vw;
  }
  .hero {
    height: 80svh;
    min-height: 480px;
  }
  .hero-content {
    left: 4vw;
    right: 4vw;
  }
  .hero h1, .page-hero h1 {
    font-size: clamp(32px, 9vw, 46px);
  }
  .section-header h2 {
    font-size: clamp(24px, 7vw, 34px);
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
  }
  .intro-pillars, .specs-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    grid-template-columns: 50px 1fr;
    padding: 22px 18px;
    gap: 16px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .lightbox-prev, .lightbox-next {
    top: auto;
    bottom: 24px;
  }
  .lightbox-prev {
    left: calc(50% - 54px);
  }
  .lightbox-next {
    right: calc(50% - 54px);
  }
  .lightbox-caption {
    bottom: 80px;
    text-align: center;
    left: 4vw;
    right: 4vw;
  }
  .progress {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .brand-track, .text-track {
    animation: none !important;
  }
  .preloader {
    transition: none !important;
  }
  .circle, .circle-eyebrow::after {
    animation: none !important;
  }
  .circle-reveal {
    position: static !important;
    opacity: 1 !important;
    padding: 40px 6vw 0 !important;
  }
  .circle-eyebrow {
    display: none !important;
  }
}




/* ============================================================
   AVYAH HOMES
   GALLERY PAGE
   COMPLETE GALLERY CSS
============================================================ */


/* ============================================================
   PAGE HERO
============================================================ */

.gallery-page-hero {
  min-height: 62vh;
}


/* ============================================================
   GALLERY WRAPPER
============================================================ */

.gallery-sections {
  background: #f5f3ee;
}


/* ============================================================
   CATEGORY SECTION
============================================================ */

.gallery-category-section {
  padding: 48px 0 58px;
  overflow: hidden;
}

.gallery-category-section:nth-child(even) {
  background: #efede7;
}

.gallery-category-inner {
  width: min(1400px, calc(100% - 80px));
  margin: 0 auto;
}


/* ============================================================
   CATEGORY HEADER
============================================================ */

.gallery-category-header {
  display: flex;
  align-items: center;
  flex-direction: column  ;
  justify-content: center;

  gap: 40px;

  margin-bottom: 26px;
}


.gallery-category-copy {
  max-width: 650px;
  text-align: center;
  margin: 0 auto;
}


.gallery-category-copy .eyebrow {
  margin-bottom: 8px;
}


.gallery-category-copy h2 {
  margin: 0 0 12px;

  font-size: clamp(34px, 3.5vw, 52px);

  line-height: .98;

  letter-spacing: -.045em;
}


.gallery-category-copy h2 em {
  font-family: "Playfair Display", serif;

  font-weight: 500;
}


.gallery-category-copy .section-desc {
  max-width: 540px;

  margin: 0;

  font-size: 13px;

  line-height: 1.55;

  color: rgba(27, 38, 67, .68);
}


/* ============================================================
   CAROUSEL CONTROLS
============================================================ */

.gallery-carousel-controls {
  display: flex;

  gap: 8px;

  flex-shrink: 0;
}


.gallery-carousel-controls button {
  width: 44px;
  height: 44px;

  padding: 0;

  border: 1px solid rgba(27, 38, 67, .2);

  background: transparent;

  color: #1b2643;

  display: grid;
  place-items: center;

  cursor: pointer;

  font-family: inherit;

  font-size: 17px;

  transition:
    background .25s ease,
    color .25s ease,
    transform .25s ease,
    opacity .25s ease;
}


.gallery-carousel-controls button:hover {
  background: #1b2643;

  color: #fff;

  transform: translateY(-2px);
}


.gallery-carousel-controls button:disabled {
  opacity: .35;

  cursor: default;

  transform: none;
}


/* ============================================================
   CAROUSEL
============================================================ */

.gallery-carousel {
  width: 100%;

  position: relative;
}


.gallery-carousel-viewport {
  width: 100%;

  overflow: hidden;
}


.gallery-carousel-track {
  display: flex;

  gap: 16px;

  width: max-content;

  will-change: transform;

  transition:
    transform .55s cubic-bezier(.16, 1, .3, 1);
}


/* ============================================================
   CAROUSEL SLIDES
============================================================ */

.gallery-carousel-slide {

  position: relative;

  flex: 0 0 calc((100vw - 80px - 32px) / 3);
  width: calc((100vw - 80px - 32px) / 3);

  min-width: 0;

  margin: 0;

  padding: 0;

  border: 0;

  outline: none;

  background: transparent;

  color: inherit;

  text-align: left;

  font: inherit;

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;
}


/* ============================================================
   IMAGE WRAPPER
============================================================ */

.gallery-image-wrap {

  position: relative;

  width: 100%;
  aspect-ratio: 1.35 / 1;

  overflow: hidden;

  background: #dedbd4;
}


.gallery-image-wrap img {

  display: block;

  width: 100%;

  height: 100%;

  object-fit: cover;

  object-position: center;

  transform: scale(1);

  transition:
    transform .7s cubic-bezier(.16, 1, .3, 1);
}


.gallery-carousel-slide:hover
.gallery-image-wrap img {

  transform: scale(1.045);

}


/* ============================================================
   IMAGE NUMBER
============================================================ */

.gallery-image-number {

  position: absolute;

  z-index: 3;

  top: 12px;
  left: 12px;

  width: 32px;
  height: 32px;

  display: grid;

  place-items: center;

  background: rgba(255, 255, 255, .92);

  color: #1b2643;

  font-family: "DM Sans", sans-serif;

  font-size: 10px;

  font-weight: 600;

  letter-spacing: .08em;

  pointer-events: none;
}


/* ============================================================
   IMAGE CAPTION
============================================================ */

.gallery-slide-caption {

  display: block;

  width: 100%;

  padding-top: 9px;

  color: rgba(27, 38, 67, .65);

  font-size: 11px;

  font-weight: 500;

  letter-spacing: .045em;

  line-height: 1.3;

  text-transform: uppercase;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}


/* ============================================================
   CAROUSEL FOOTER
============================================================ */

.gallery-carousel-footer {

  display: flex;

  align-items: center;

  justify-content: space-between;

  min-height: 20px;

  margin-top: 17px;
}


/* ============================================================
   DOTS
============================================================ */

.gallery-carousel-dots {

  display: flex;

  align-items: center;

  gap: 7px;

  min-height: 7px;
}


.gallery-carousel-dot {

  display: block;

  width: 6px;
  height: 6px;

  padding: 0;

  border: 0;

  border-radius: 50%;

  background: rgba(27, 38, 67, .2);

  cursor: pointer;

  transition:
    width .3s ease,
    background .3s ease,
    border-radius .3s ease;
}


.gallery-carousel-dot.active {

  width: 26px;

  border-radius: 8px;

  background: #1b2643;
}


/* ============================================================
   IMAGE COUNTER
============================================================ */

.gallery-carousel-count {

  color: rgba(27, 38, 67, .48);

  font-size: 10px;

  font-weight: 500;

  letter-spacing: .12em;
}


.gallery-current {

  color: #1b2643;

  font-weight: 600;
}


/* ============================================================
   EMPTY GALLERY
============================================================ */

.gallery-empty {

  min-height: 45vh;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-direction: column;

  padding: 80px 30px;

  text-align: center;
}


.gallery-empty h2 {

  margin: 12px 0;

  font-size: clamp(38px, 5vw, 65px);

  line-height: 1;

  letter-spacing: -.04em;
}


.gallery-empty h2 em {

  font-family: "Playfair Display", serif;

  font-weight: 500;
}


.gallery-empty p {

  max-width: 500px;

  margin: 0;

  color: rgba(27, 38, 67, .6);

  font-size: 14px;

  line-height: 1.6;
}


/* ============================================================
   DESKTOP
============================================================ */

@media (min-width: 1200px) {

  .gallery-category-section {
    padding: 42px 0 52px;
  }


  .gallery-category-header {
    margin-bottom: 24px;
  }


  .gallery-category-copy h2 {
    font-size: clamp(34px, 3vw, 48px);
  }


  .gallery-image-wrap {
    aspect-ratio: 1.4 / 1;
  }

}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 991px) {

  .gallery-page-hero {
    min-height: 58vh;
  }


  .gallery-category-section {
    padding: 42px 0 50px;
  }


  .gallery-category-inner {
    width: calc(100% - 48px);
  }


  .gallery-category-header {
    gap: 25px;

    margin-bottom: 23px;
  }


  .gallery-category-copy {
    max-width: 600px;
  }


  .gallery-category-copy h2 {
    font-size: clamp(32px, 5vw, 45px);
  }


  .gallery-category-copy .section-desc {
    font-size: 12px;

    max-width: 480px;
  }


  .gallery-carousel-track {
    gap: 16px;
  }


  /*
    Two equal columns
  */

  .gallery-carousel-slide {

    flex: 0 0 calc(
      (100vw - 48px - 16px) / 2
    );

    width: calc(
      (100vw - 48px - 16px) / 2
    );

  }


  .gallery-image-wrap {
    aspect-ratio: 1.3 / 1;
  }


  .gallery-carousel-controls button {
    width: 42px;
    height: 42px;
  }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 639px) {

  .gallery-page-hero {
    min-height: 58vh;
  }


  .gallery-category-section {
    padding: 3px 0 42px;
  }


  .gallery-category-inner {
    width: calc(100% - 32px);

  }


  /*
    Stack heading and controls
  */

  .gallery-category-header {

    display: block;

    margin-bottom: 20px;

  }


  .gallery-category-copy {
    max-width: none;
  }


  .gallery-category-copy .eyebrow {
    margin-bottom: 6px;
  }


  .gallery-category-copy h2 {

    margin: 0 0 9px;

    font-size: clamp(
      31px,
      9.5vw,
      42px
    );

    line-height: .98;

  }


  .gallery-category-copy .section-desc {

    max-width: none;

    font-size: 12px;

    line-height: 1.5;

  }


  /*
    Controls below heading
  */

  .gallery-carousel-controls {

    margin-top: 16px;

    gap: 7px;

  }


  .gallery-carousel-controls button {

    width: 40px;
    height: 40px;

    font-size: 15px;

  }


  /*
    Mobile carousel
    ONE IMAGE ONLY
  */

  .gallery-carousel-track {

    gap: 12px;

  }


    .gallery-carousel-slide {
    flex: 0 0 calc(100vw - 32px);
    width: calc(100vw - 32px);
  }

  


  .gallery-image-wrap {

    width: 100%;

    aspect-ratio: 1.25 / 1;

  }


  .gallery-image-number {

    top: 10px;
    left: 10px;

    width: 30px;
    height: 30px;

    font-size: 9px;

  }


  .gallery-slide-caption {

    padding-top: 8px;

    font-size: 10px;

  }


  .gallery-carousel-footer {

    margin-top: 13px;

  }


  .gallery-carousel-dot {

    width: 5px;
    height: 5px;

  }


  .gallery-carousel-dot.active {

    width: 22px;

  }


  .gallery-carousel-count {

    font-size: 9px;

  }

}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 380px) {

  .gallery-carousel-slide {
    flex: 0 0 calc(100vw - 24px);
    width: calc(100vw - 24px);
  }
  
  .gallery-category-section {

    padding: 30px 0 38px;

  }


  .gallery-category-inner {

    width: calc(100% - 24px);

  }


  .gallery-category-copy h2 {

    font-size: 30px;

  }


  .gallery-category-copy .section-desc {

    font-size: 11px;

  }


  .gallery-image-wrap {

    aspect-ratio: 1.18 / 1;

  }

}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

  .gallery-carousel-track,
  .gallery-image-wrap img,
  .gallery-carousel-dot,
  .gallery-carousel-controls button {

    transition: none !important;

  }

}



/* ==========================================================================
   LEAD POPUP
   ========================================================================== */
.lead-popup {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--primary);
}

.lead-popup.open {
  display: flex;
}

.lead-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 17, 32, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lead-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  min-height: 560px;
  max-height: calc(100svh - 48px);
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 237, 215, 0.42);
  border-radius: 8px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
}

.lead-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(27, 38, 67, 0.18);
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.lead-popup__close:hover {
  background: var(--cream);
  transform: translateY(-1px);
}

.lead-popup__media {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--primary);
}

.lead-popup__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead-popup__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58)),
    linear-gradient(90deg, rgba(27, 38, 67, 0.34), transparent 60%);
}

.lead-popup__media-copy {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 100px;
  color: #fff;
}

.lead-popup__media-copy span {
  display: block;
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}

.lead-popup__media-copy strong {
  display: block;
  max-width: 260px;
  font: 500 34px/1.04 var(--serif);
}

.lead-popup__content {
  min-height: 560px;
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  padding: 54px 44px 40px;
  background:
    linear-gradient(180deg, rgba(255, 237, 215, 0.52), rgba(255, 255, 255, 0) 42%),
    #fff;
}

.lead-popup__step[hidden] {
  display: none !important;
}

.lead-popup__content .eyebrow {
  margin-bottom: 10px;
  color: rgba(27, 38, 67, 0.62);
}

.lead-popup__content h2 {
  margin: 0 0 12px;
  font: 500 clamp(30px, 4vw, 46px)/1.05 var(--serif);
  letter-spacing: 0;
}

.lead-popup__intro {
  max-width: 430px;
  margin: 0 0 24px;
  color: rgba(27, 38, 67, 0.7);
  font-size: 14px;
  line-height: 1.65;
}

.lead-popup__options {
  display: grid;
  gap: 14px;
}

.lead-option {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px 16px;
  padding: 20px;
  text-align: left;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(27, 38, 67, 0.14);
  border-radius: 8px;
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.lead-option:hover {
  transform: translateY(-2px);
  border-color: rgba(27, 38, 67, 0.34);
  background: #fff;
  box-shadow: 0 14px 34px rgba(27, 38, 67, 0.1);
}

.lead-option span {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lead-option strong {
  align-self: end;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}

.lead-option small {
  max-width: 340px;
  color: rgba(27, 38, 67, 0.65);
  font-size: 12px;
  line-height: 1.55;
}

.lead-popup__step--form.form-grid {
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
  border-top: 0;
  padding-top: 0;
}

.lead-popup__back,
.lead-popup__selected {
  grid-column: 1 / -1;
}

.lead-popup__back {
  justify-self: start;
  color: rgba(27, 38, 67, 0.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead-popup__back:hover {
  color: var(--primary);
}

.lead-popup__selected {
  margin: 2px 0 2px;
  padding: 12px 14px;
  background: rgba(27, 38, 67, 0.06);
  border: 1px solid rgba(27, 38, 67, 0.12);
  border-radius: 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead-popup .field {
  border-bottom-color: rgba(27, 38, 67, 0.22);
}

.lead-popup .field label {
  color: rgba(27, 38, 67, 0.58);
}

.lead-popup .field input,
.lead-popup .field textarea {
  color: var(--primary);
}

.lead-popup .field:focus-within {
  border-color: var(--primary);
}

.lead-popup .field:focus-within label,
.lead-popup .field.filled label {
  color: var(--primary);
}

.lead-popup .submit-btn {
  justify-self: stretch;
  border-radius: 4px;
  background: var(--primary);
  color: var(--cream);
}

.lead-popup .submit-btn:hover {
  background: #111a30;
}

.lead-popup .form-status {
  color: var(--primary);
  line-height: 1.5;
}

@media (max-width: 840px) {
  .lead-popup {
    padding: 14px;
  }

  .lead-popup__dialog {
    grid-template-columns: 1fr;
    min-height: 0;
    max-height: calc(100svh - 28px);
  }

  .lead-popup__media {
    min-height: 210px;
    height: 32svh;
    max-height: 280px;
  }

  .lead-popup__media-copy {
    left: 22px;
    right: 68px;
    bottom: 20px;
  }

  .lead-popup__media-copy strong {
    font-size: 28px;
  }

  .lead-popup__content {
    min-height: 0;
    max-height: calc(68svh - 28px);
    padding: 30px 22px 26px;
  }

  .lead-popup__step--form.form-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 420px) {
  .lead-popup {
    padding: 0;
  }

  .lead-popup__dialog {
    width: 90%;
    height: 90svh;
    max-height: none;
    border-radius: 15px;
  }

  .lead-popup__content {
    max-height: none;
    padding: 0px 18px 28px;
  }

  .lead-option {
    grid-template-columns: 36px 1fr;
    padding: 16px;
  }

  .lead-option span {
    width: 36px;
    height: 36px;
  }
}






/* =========================================================
   AVYAH — FOR BUILDERS PAGE
   COMPACT / OUTLINED BOX LAYOUT
========================================================= */


/* =========================================================
   PAGE WRAPPER
========================================================= */

.builders-page {
  background: var(--light);
  color: var(--primary);
}

.builders-page main {
  overflow: hidden;
}


/* =========================================================
   GLOBAL BUILDERS SECTION
========================================================= */

.builders-page section {
  margin: 0;
}

.builders-page .section-pad {
  padding: 15px 5vw;
}


/* =========================================================
   GLOBAL SECTION HEADINGS
========================================================= */

.builders-page .section-header,
.builders-page .builders-intro-grid > div:first-child,
.builders-page .builders-why-heading,
.builders-page .builders-project-heading {
  width: 100%;
  max-width: 850px;
  margin: 0 auto 20px;
  text-align: center;
}

.builders-page .eyebrow {
  display: inline-block;
  margin-bottom: 10px;
}

.builders-page h2 {
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0;
}

.builders-page h2 em {
  font-family: var(--serif);
  font-weight: 500;
}

.builders-page .section-header > p:last-child {
  margin: 14px auto 0;
}


/* =========================================================
   HERO
========================================================= */

.builders-hero {
  min-height: auto;
  padding: 120px 5vw 55px;
  background: var(--primary);
  color: var(--light);
}

.builders-hero-grid {
  width: min(1100px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.builders-hero-copy {
  text-align: center;
  max-width: 900px;
  margin: auto;
}

.builders-hero-copy .eyebrow {
  color: var(--cream);
}

.builders-hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.builders-hero-copy h1 em {
  font-family: var(--serif);
  font-weight: 500;
}

.builders-hero-copy .hero-subtitle {
  max-width: 680px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.8;
}

.builders-hero-copy .cta {
  margin-top: 24px;
}


/* HERO INFO BOX */

.builders-hero-stat {
  width: min(680px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line-light);
  padding: 20px 24px;
  text-align: center;
}

.builders-stat-number {
  display: block;
  font: 500 42px/1 var(--serif);
  color: var(--cream);
  margin-bottom: 8px;
}

.builders-hero-stat p {
  max-width: 500px;
  margin: auto;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.builders-stat-line {
  display: none;
}

.builders-hero-stat small {
  display: block;
  margin-top: 10px;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.5);
}


/* =========================================================
   INTRO
========================================================= */

.builders-intro {
  padding-top: 55px;
  padding-bottom: 55px;
}

.builders-intro-grid {
  width: min(1100px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.builders-intro-grid > div {
  border: 1px solid var(--line);
  padding: 8px;
  text-align: center;
}

.builders-intro-grid > div:first-child {
  max-width: 100%;
  margin: 0;
  border: none;
}

.builders-intro-copy {
  max-width: 100%;
}

.builders-intro-copy p {
  max-width: 760px;
  margin: auto;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(27, 38, 67, 0.75);
}

.builders-intro-copy p + p {
  margin-top: 12px;
}


/* =========================================================
   EXECUTION
========================================================= */

.builders-execution {
  background: var(--bg-soft);
  padding-top: 55px;
  padding-bottom: 55px;
}

.builders-execution .section-header {
  margin-bottom: 20px;
}

.builders-service-grid {
  width: min(1100px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.builder-service-card {
  border: 1px solid var(--line);
  background: var(--light);
  padding: 28px;
  transition:
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.builder-service-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.builder-service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.builder-service-number {
  font: 500 32px/1 var(--serif);
}

.builder-service-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.builder-service-card h3 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.builder-service-card h3 em {
  font-family: var(--serif);
  font-weight: 500;
}

.builder-service-desc {
  margin: 0 0 20px;
  color: rgba(27, 38, 67, 0.72);
  font-size: 14px;
  line-height: 1.75;
}


/* SERVICE LIST */

.builder-list {
  border: 1px solid var(--line);
}

.builder-list span {
  position: relative;
  display: block;
  padding: 9px 14px 9px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: rgba(27, 38, 67, 0.78);
}

.builder-list span:last-child {
  border-bottom: none;
}

.builder-list span::before {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border-radius: 50%;
}


/* =========================================================
   WHY AVYAH
========================================================= */

.builders-why {
  padding-top: 55px;
  padding-bottom: 55px;
}

.builders-why-layout {
  width: min(1100px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.builders-why-heading {
  max-width: 100%;
  /* border: 1px solid var(--line); */
  /* padding: 28px; */
}

.builders-why-heading > p:last-child {
  max-width: 680px;
  margin: 14px auto 0;
  color: rgba(27, 38, 67, 0.72);
  line-height: 1.75;
}


/* BENEFITS */

.builders-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.builder-benefit {
  min-height: 220px;
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.builder-benefit:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.builder-benefit > span {
  display: block;
  margin-bottom: auto;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(27, 38, 67, 0.5);
}

.builder-benefit h3 {
  margin: 30px 0 10px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
}

.builder-benefit p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(27, 38, 67, 0.7);
}


/* =========================================================
   HOW WE WORK
========================================================= */

.builders-process {
  padding-top: 55px;
  padding-bottom: 55px;
  background: var(--primary);
  color: var(--light);
}

.builders-process .section-header {
  margin-bottom: 20px;
}

.builders-process .eyebrow {
  color: var(--cream);
}

.builders-process .section-header h2 {
  color: var(--light);
}

.builders-process-list {
  width: min(1100px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.builder-process-item {
  min-height: 200px;
  border: 1px solid var(--line-light);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition:
    background 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.builder-process-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-3px);
}

.builder-process-number {
  font: 500 30px/1 var(--serif);
  color: var(--cream);
}

.builder-process-item > div {
  margin-top: auto;
}

.builder-process-item h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 500;
}

.builder-process-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.68);
}


/* =========================================================
   WHO WE WORK WITH
========================================================= */

.builders-clients {
  padding-top: 55px;
  padding-bottom: 55px;
  background: var(--bg-soft);
}

.builders-clients .section-header {
  margin-bottom: 20px;
}

.builders-client-grid {
  width: min(1100px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.builders-client-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--light);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.builders-client-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.builders-client-card > span {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(27, 38, 67, 0.5);
}

.builders-client-card h3 {
  margin: auto 0 10px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
}

.builders-client-card p {
  margin: 0;
  color: rgba(27, 38, 67, 0.7);
  font-size: 13px;
  line-height: 1.7;
}


/* =========================================================
   PROJECT TYPES
========================================================= */

.builders-project-types {
  padding-top: 55px;
  padding-bottom: 55px;
}

.builders-project-heading {
  max-width: 850px;
  margin-bottom: 20px;
}

.builders-project-list {
  width: min(1100px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.builders-project-item {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 18px;
  align-items: start;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.builders-project-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.builders-project-item > span {
  font: 500 24px/1 var(--serif);
  color: rgba(27, 38, 67, 0.55);
}

.builders-project-item h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
}

.builders-project-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(27, 38, 67, 0.7);
}


/* =========================================================
   FINAL CTA
========================================================= */

.builders-final-cta {
  padding: 55px 5vw;
  background: var(--cream);
}

.builders-final-inner {
  width: min(850px, 100%);
  margin: auto;
  padding: 45px 28px;
  border: 1px solid rgba(27, 38, 67, 0.2);
  text-align: center;
}

.builders-final-inner h2 {
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.builders-final-inner h2 em {
  font-family: var(--serif);
  font-weight: 500;
}

.builders-final-inner > p:not(.eyebrow) {
  max-width: 580px;
  margin: auto;
  color: rgba(27, 38, 67, 0.75);
  line-height: 1.75;
  font-size: 14px;
}

.builders-main-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 45px;
  margin-top: 22px;
  padding: 15px 20px;
  min-width: 280px;
  background: var(--primary);
  color: var(--light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    transform 0.3s var(--ease);
}

.builders-main-cta:hover {
  transform: translateY(-3px);
}

.builders-main-cta strong {
  font-size: 18px;
  font-weight: 400;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

  .builders-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .builders-process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .builders-client-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  .builders-page .section-pad,
  .builders-hero,
  .builders-final-cta {
    padding-left: 20px;
    padding-right: 20px;
  }

  .builders-page .section-pad {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .builders-hero {
    padding-top: 120px;
    padding-bottom: 42px;
  }

  .builders-hero-copy h1 {
    font-size: 42px;
  }

  .builders-hero-copy .hero-subtitle {
    font-size: 14px;
  }

  .builders-service-grid,
  .builders-benefits-grid,
  .builders-process-list,
  .builders-client-grid,
  .builders-project-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .builders-intro-grid,
  .builders-why-layout {
    gap: 14px;
  }

  .builder-service-card,
  .builders-intro-grid > div,
  .builders-why-heading,
  .builder-benefit,
  .builder-process-item,
  .builders-client-card,
  .builders-project-item {
    padding: 22px;
  }

  .builder-service-card h3 {
    font-size: 34px;
  }

  .builder-benefit,
  .builder-process-item,
  .builders-client-card,
  .builders-project-item {
    min-height: 180px;
  }

  .builders-final-cta {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .builders-final-inner {
    padding: 35px 20px;
  }

  .builders-main-cta {
    width: 100%;
  }

}