#page-wrapper {
  width: 100%;
  max-width: 100% !important; /* Overrides any other max-width */
  margin: 0;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

:root {
  --accent: #bedeec;
  --text: #000000;
  --muted: #9c9c9c;
}

body {
  color: var(--text);
  background: #fafafa;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--text);
}

a.btn-accent,
.btn-accent {
  background-color: var(--accent);
  color: #000;
  border: none;
}
a.btn-accent:hover {
  background-color: darken(var(--accent), 10%);
}

section {
  padding: 4rem 0;
}

.lead {
  color: var(--muted);
}

hr.accent {
  border: 0;
  height: 2px;
  background: var(--accent);
  max-width: 60px;
  margin: 1.5rem auto;
}

/* body {
  position: relative;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url("/assets/real-estate.svg") repeat center center;
  background-size: cover;
  opacity: 0.1; 
  z-index: -1;
  pointer-events: none;
  filter: grayscale(100%) contrast(150%);
} */

footer a {
  text-decoration: none;
}

.navbar-nav .nav-link {
  display: inline-block;
  position: relative;
  padding: 0.5rem 0;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 90%;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after,
.navbar-nav .nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.social-link {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.2s ease;
}

.social-link.whatsapp:hover,
.social-link.whatsapp:focus,
.social-link.whatsapp:active {
  color: #25d366;
}

.social-link.facebook:hover,
.social-link.facebook:focus,
.social-link.facebook:active {
  color: #1877f2;
}

.social-link.instagram:hover,
.social-link.instagram:focus,
.social-link.instagram:active {
  color: #e4405f;
}

.social-link.phone:hover,
.social-link.phone:focus,
.social-link.phone:active {
  color: #0d6efd;
}

.navbar-light .navbar-toggler-icon {
  background-image: none;
}

.navbar-toggler-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  color: #000;
}

.navbar-toggler-icon .bar {
  display: block;
  width: 100%;
  color: #000;

  height: 2px;
  background-color: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-toggler:not(.collapsed) .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.navbar-toggler:not(.collapsed) .bar:nth-child(2) {
  opacity: 0;
}
.navbar-toggler:not(.collapsed) .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.navbar-toggler {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0.7rem;
  color: #000;
}

.navbar-toggler-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 24px;
  height: 18px;
  color: #000;
}

.navbar-nav .nav-link {
  display: inline-block !important;
  width: auto !important;
  position: relative;
  padding: 0.5rem 0;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 5%;
  bottom: -2px;
  width: 90%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: 1px solid var(--muted) !important;
  background: transparent !important;
  border-radius: 0.375rem !important;
  padding: 0.5rem 0.75rem !important;
}

.navbar-toggler:hover,
.navbar-toggler:focus,
.navbar-toggler:active {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Hero */
.hero-heading {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark);
}
.lead {
  font-size: 1.125rem;
  color: #555;
}

/* Buttons */
.btn-accent {
  background-color: var(--accent);
  color: #000;
  border: none;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
}
.btn-accent:hover {
  background-color: darken(var(--accent), 10%);
}
.btn-outline-accent {
  background: transparent !important;
  color: var(--text) !important;
  border: 1px solid var(--text) !important;
  padding: 0.5rem 1.4rem;
  font-weight: 600;
}
.btn-outline-accent:hover {
  background: transparent !important;
  color: #000;
}

/* Project strip */
.project-strip {
  background: var(--light-bg);
}
.circle {
  flex: 0 0 240px;
  width: 240px;
  height: 240px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.circle-img {
  background-size: cover;
  background-position: center;
}
.circle-arrow {
  /* translucent white fill */
  background: #bedeec77;
  /* subtle white outline */
  border: 1px solid #bedeec94;
  /* match your card’s blur */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* lift it off the page */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  /* keep the rounded ends you already have */
  border-radius: 1rem; /* or 50% for a perfect circle */
  /* ensure your icon is legible */
  color: var(--text);
}

/* Optional: on hover, brighten a bit */
.circle-arrow:hover {
  background: #bedeec77;
  border-color: #bedeec94;
}
.circle.circle-arrow {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
}

@media screen and (max-width: 768px) {
  .circle {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
  }
  .circle.circle-arrow {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
  }
}

.project-strip .container {
  padding-left: 0; /* let it start at the very left */
  padding-right: 0;
}
.project-strip .overflow-auto {
  -webkit-overflow-scrolling: touch;
}

/* Utility: hide scrollbar */
.project-strip .overflow-auto::-webkit-scrollbar {
  display: none;
}
.project-strip .overflow-auto {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#hero-carousel {
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 768px) {
  #hero-carousel {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

#hero-carousel {
  transform: skewY(-5deg);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2rem 0;
}

#hero-carousel .circle {
  transform: skewY(5deg);
  transform-origin: center center;
}

.features-section {
  /* background: #fafafa; */
}
.feature-title {
  position: relative;
  font-weight: 600;
  margin-bottom: 1rem;
}
.feature-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  /* background: var(--accent); */
  margin-top: 0.5rem;
}
.feature-copy {
  color: #555;
  line-height: 1.6;
  font-size: 1rem;
}
.features-section img {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}
.features-section img:hover {
  transform: scale(1.02);
}
@media (max-width: 767px) {
  .features-section .feature-title {
    text-align: center;
  }
  .features-section .feature-copy {
    text-align: center;
  }
}
.feature-heading {
  font-size: 2.75rem; /* nice big type */
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text);
}

.feature-copy.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 600px;
}

@media (max-width: 767px) {
  .feature-heading {
    font-size: 2rem;
    text-align: center;
  }
  .feature-copy.lead {
    text-align: center;
  }
}

.features-section .img-container {
  max-width: 80%; /* shrink the image frame to 80% of the column */
  margin: 0 auto; /* center on smaller viewports if you like */
  overflow: hidden; /* important to clip the zoom */
}

/* 2) Make the img take 100% of that container */
.features-section .feature-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease-in-out;
}

/* 3) On hover, scale up a tad */
.features-section .img-container:hover .feature-img {
  transform: scale(1.05);
}

.feature-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

/* Copy under title */
.feature-copy {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Container to cap image width & hide overflow */
.img-container {
  max-width: 300px;
  margin: 0 auto; /* center on mobile */
  overflow: hidden;
}

/* Small image + smooth zoom on hover */
.feature-img {
  width: 100%;
  transition: transform 0.3s ease;
  /* height: auto; */

  display: block;
}
.feature-img:hover {
  transform: scale(1.1);
}

/* On mobile, shrink title & image further */
@media (max-width: 767px) {
  .feature-title {
    font-size: 2rem;
    text-align: center;
  }
  .img-container {
    max-width: 100%;
  }
}

.features-section .feature-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* fluid image */
.features-section .feature-img {
  display: block;
  width: 100%;
  height: auto;
}

/* pop-out card */
.features-section .feature-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-110%, -50%);
  width: 350px; /* card width */
  padding: 2rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

/* mobile: card below image */
@media (max-width: 768px) {
  .features-section .feature-card {
    position: static;
    transform: none;
    margin: 1.5rem auto 0;
    width: auto;
    max-width: 100%;
  }
}

.feature-wrapper,
.img-container {
  overflow: hidden;
  position: relative; /* if not already */
}

/* 2) Your zoom effect on the image */
.feature-img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease-in-out;
}

.feature-img:hover {
  transform: scale(1.05);
}
.features-section .feature-card {
  /* size & positioning as before */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-110%, -50%);
  width: 350px;
  padding: 2rem;
  z-index: 1;

  /* glassmorphism! */
  background: rgba(202, 235, 247, 0.735); /* semi-transparent white */
  border: 1px solid rgba(255, 255, 255, 0.735); /* subtle highlight edge */
  border-radius: 0.75rem;
  backdrop-filter: blur(10px); /* main blur */
  -webkit-backdrop-filter: blur(10px); /* Safari support */

  /* optional lift */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* mobile: undo absolute */
@media (max-width: 768px) {
  .features-section .feature-card {
    position: static;
    transform: none;
    margin: 1.5rem auto 0;
    width: auto;
    max-width: 100%;
  }
}

/* 1) Base wrapper: allow the card to overflow on desktop */
.features-section .feature-wrapper {
  position: relative;
  overflow: visible;
}

/* 2) Base card (desktop) */
.features-section .feature-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-110%, -50%);
  width: 350px;
  padding: 2rem;
  background: rgba(202, 235, 247, 0.735);
  border: 1px solid rgba(255, 255, 255, 0.735);
  border-radius: 0.75rem;
  backdrop-filter: blur(10px);
  z-index: 1;
}

@media (max-width: 768px) {
  .features-section,
  .feature-card .feature-wrapper {
    overflow: hidden;
  }

  .features-section .feature-card {
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    padding: 1rem;
  }
}

.hero-heading,
.feature-title {
  overflow: hidden;
}

.hero-heading {
  text-align: center;
}

.char {
  display: inline-block;
}

/* 1) Make sure the wrapper clips and has rounded corners */
.features-section {
  overflow: hidden; /* ⬅️ clip the child */
}

/* 2) Remove any rounding on the <img> itself (so it doesn’t fight the wrapper) */
.features-section .feature-wrapper .feature-img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease; /* smooth zoom */
}

/* 3) Zoom the image when hovering the wrapper */
.features-section .feature-wrapper:hover .feature-img {
  transform: scale(1.05);
}

html {
  /* Minimum 14px, scales with viewport (1.5vw), caps at 18px */
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
}

/* 2. Fluid headings with clamp() */
/* Hero heading: from 2rem up to 4rem, depending on viewport width */
.hero-heading {
  font-size: clamp(2rem, 6vw, 4rem);
}

/* Feature titles: smaller scale */
.feature-title {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
}

/* Paragraph “lead” text: 1rem up to 1.25rem */
.lead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

/* 3. Optional media-queries for fine-tuning */
@media (max-width: 576px) {
  /* On very narrow screens, you might want extra breathing room */
  .hero-heading {
    line-height: 1.2;
  }
  .lead {
    line-height: 1.6;
  }
}

@media (min-width: 1200px) {
  /* On very wide screens, you can bump things up further */
  .hero-heading {
    font-size: 4.5rem;
  }
  .feature-title {
    font-size: 3rem;
  }
}

.glass-card {
  position: relative;
  z-index: 1;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.svg-bg {
  position: absolute;
  bottom: 0;
  left: 50%; /* anchor midpoint */
  transform: translateX(-50%); /* shift back by half its own width */
  width: 80vw; /* or whatever width you prefer */
  max-width: 600px; /* optional cap */
  height: auto;
  overflow: visible;
  pointer-events: none;
  opacity: 0.1;
  z-index: 0;
  display: block; /* ensure transform works */
}
.svg-bg .bg-svg-img {
  width: 100%;
  height: auto;
  display: block;
}

.gradient-bg {
  position: fixed !important;
  top: 0;
  left: 0;

  width: 100%;
  height: 45vh; /* one third of viewport height */

  pointer-events: none; /* clicks pass through */
  z-index: -11;
  background: linear-gradient(
    to bottom,
    rgba(190, 222, 236, 0.6) 0%,
    /* strong accent at very top */ rgba(190, 222, 236, 0.3) 30%,
    rgba(190, 222, 236, 0.1) 60%,
    transparent 100% /* fully clear by 33vh (100% of this div) */
  );
}

@media (max-width: 576px) {
  section.py-5 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.hero-heading .char,
.feature-title .char {
  opacity: 0;
  visibility: hidden;
  filter: blur(10px);
}

/* grid helper */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.gap-4 {
  gap: 2rem;
}

/* card */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  text-decoration: none;
}
.project-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}
.project-card:hover img {
  transform: scale(1.05);
}
.project-card h3 {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.video-text h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
}
.video-text .lead {
  font-size: 1.125rem;
  color: #555;
  line-height: 1.5;
}

/* 16:9 responsive iframe */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.underline-pencil {
  position: relative;
  display: inline-block;
  line-height: 1;
}

.underline-svg {
  position: absolute;
  left: 0;
  bottom: -0.35em; /* nudge both lines just under the letters */
  width: 100%;
  height: 0.8em; /* tall enough for two strokes */
  pointer-events: none;
}

.underline-svg .underline-path {
  stroke: var(--accent) !important;
}

#callback-form .form-floating > label {
  transform-origin: top left;
}

/* 2. Move the label up more when it’s floated */
#callback-form .form-floating .form-control:focus ~ label,
#callback-form .form-floating .form-control:not(:placeholder-shown) ~ label {
  /* 
    default Bootstrap uses 
      transform: scale(0.85) translateY(-0.5rem);
    we’ll increase the negative Y to pull it higher 
  */
  transform: scale(0.85) translateY(-1rem);
}

.underline-text {
  font-style: italic;
  position: relative;
  display: inline-block;
  line-height: 1.2;
  text-decoration: none;
  color: var(--text);
  transition: color 0.3s ease;
}
.underline-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;

  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.underline-text:hover,
.underline-text:focus {
  color: var(--accent);
  background: (var(--muted));
}
.underline-text:hover::after,
.underline-text:focus::after {
  /* transform: scaleX(1); */
}

.form-feedback {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  min-height: 1.2em; /* reserve space so layout doesn’t jump */
  transition: opacity 0.2s;
  opacity: 0;
  text-align: center;
}
.form-feedback.success {
  color: #28a745; /* green */
  opacity: 1;
}
.form-feedback.error {
  color: #dc3545; /* red */
  opacity: 1;
}

.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  transform-style: preserve-3d;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
  /* cursor: pointer; */
}

/* 2) Enhanced hover shadow */
.card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  background-color: var(--accent);
}

/* 3) Icon circle stays flat inside */
.card .icon-circle {
  transform-style: preserve-3d;
}

.feature-title.dashed {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-title.dashed::before,
.feature-title.dashed::after {
  content: "";
  flex: 1;
  border-bottom: 1px dashed var(--muted);
  margin: 0 0.75rem;
}

.thumb {
  width: 100%;
  max-width: 400px; /* adjust to taste */
  margin: 0 auto; /* center under the column */
  display: block;
}

#phone-float {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 1000;
}

/* make the .btn-accent into a perfect circle and center the icon */
#phone-float .btn-accent {
  width: 56px;
  height: 56px;
  padding: 0; /* remove default padding */
  border-radius: 50%; /* circle */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: filter 0.2s ease;
}

/* hover-darken effect (using brightness since darken() isn’t standard CSS) */
#phone-float .btn-accent:hover {
  filter: brightness(0.9);
}

/* adjust icon size if you like */
#phone-float .bi-telephone {
  font-size: 1.25rem;
}

#galleryModal .carousel-item img {
  max-height: calc(100vh - 56px); /* leave room for close button */
  object-fit: contain;
}

.thumb {
  width: 300px; /* pick whatever width you like */
  height: 200px; /* pick whatever height you like */
  object-fit: cover; /* “cover” will crop/zoom so it fills the box */
}

video.thumb:fullscreen {
  object-fit: contain; /* show the whole video, letter-boxed if needed */
}

/* WebKit (Safari/old Chrome) */
video.thumb:-webkit-full-screen {
  object-fit: contain;
}

/* Firefox */
video.thumb:-moz-full-screen {
  object-fit: contain;
}

.hyperlink {
  position: relative; /* make ::after position itself relative to the link */
  display: inline-block; /* so width/positioning works reliably */
  text-decoration: none;
  cursor: pointer;
  color: #000;
}

.hyperlink::after {
  transition: transform 0.2s ease;
}

.hyperlink:hover::after,
.hyperlink:focus::after {
  transform: translateX(-50%) scaleX(1);
}

.hyperlink-bottom {
  position: relative; /* make ::after position itself relative to the link */
  display: inline-block; /* so width/positioning works reliably */
  text-decoration: none;
  cursor: pointer;
  color: #000;
}

.hyperlink-bottom::after {
  background: currentColor;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.hyperlink-bottom:hover::after,
.hyperlink-bottom:focus::after {
  transform: translateX(-50%) scaleX(1);
}

.project-card-enhanced {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
}

.project-card-enhanced:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.card-img-top-wrapper {
  position: relative;
  overflow: hidden; /* Ensures image zoom doesn't break card corners */
  height: 200px; /* Fixed height for uniform look */
}

.project-card-enhanced .card-img-top {
  transition: transform 0.3s ease;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the area without distortion */
}

.project-card-enhanced:hover .card-img-top {
  transform: scale(1.05);
}

.project-status {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4em 0.8em;
  border-radius: 5px;
}

.project-card-enhanced .card-body {
  flex-grow: 1; /* Allows the body to take up available space */
}

.project-card-enhanced .card-footer {
  padding-top: 0;
}

/* Ensure footer is always at the bottom */
.project-card-enhanced .card-footer {
  margin-top: auto;
}

/* 1. Main Container & Typography */
.apple-inspired-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-title-section {
  padding: 4rem 0 3rem 0;
}

h1.main-headline {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #1d1d1f; /* Apple's dark gray/black */
  letter-spacing: -0.02em;
}

p.main-subheadline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #6e6e73; /* Apple's muted text gray */
  line-height: 1.5;
  margin-top: 1rem;
}

/* 2. Project Module (Card) */
.project-module {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Pushes text to the bottom */
  position: relative;
  background-color: #f5f5f7; /* Apple's light gray */
  border-radius: 24px;
  min-height: 500px;
  padding: 2.5rem;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-module:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* 3. Text content inside the module */
.project-text {
  text-align: center;
  position: relative;
  z-index: 2;
}

.project-status-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0.25rem 0 0.5rem 0;
}

.project-description {
  font-size: 1rem;
  color: #6e6e73;
  line-height: 1.5;
  max-width: 350px; /* Constrain line length for readability */
  margin-left: auto;
  margin-right: auto;
}

/* 4. Image Container */
.project-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.project-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crucial for filling the container */
  transition: transform 0.5s ease;
}

.project-module:hover .project-image-container img {
  transform: scale(1.05);
}

/* Make text readable by adding a gradient overlay on the image */
.project-image-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background: linear-gradient(
    to top,
    rgba(245, 245, 247, 1) 25%,
    rgba(245, 245, 247, 0) 100%
  );
  z-index: 1;
}

/* 5. CTA module variant */
.project-module-cta {
  background-color: #fff;
  border: 1px solid #d2d2d7;
}
.project-module-cta:hover {
  border-color: transparent;
}
.project-module-cta .project-image-container::after {
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1) 25%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .project-module {
    min-height: 450px;
    padding: 2rem;
  }
}

@media (max-width: 767px) {
  .row > * {
    /* Prevent horizontal scroll on mobile if gutters cause overflow */
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-top: var(--bs-gutter-y);
  }
  .project-grid .row {
    --bs-gutter-x: 1.25rem;
  }
}

.hero-image-wrapper {
  padding: 0 1rem;
}
#hero-image {
  border-radius: 24px; /* Large, continuous corners */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  max-height: 70vh;
  object-fit: cover;
}

/* 2. General Section Styles (from previous version, still needed) */
.section-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 0.5rem;
}
.section-lead-text {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: #6e6e73;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Styles for Headlines, Amenities, Videos, Location, and CTA are mostly the same */
/* Ensure these styles from the previous answer are in your CSS file */
.amenities-grid .col-6 {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.5rem;
}
.amenities-grid i {
  font-size: 2.5rem;
  color: #0071e3;
}
.amenities-grid span {
  font-size: 0.9rem;
  color: #1d1d1f;
  font-weight: 500;
}
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.location-module {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}
.location-highlights-col {
  padding: 3rem;
  background-color: #fff;
}
.location-highlights-col ul li {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.location-highlights-col ul li:last-child {
  margin-bottom: 0;
}
.location-highlights-col ul li i {
  font-size: 1.75rem;
  color: #0071e3;
  min-width: 32px;
}
.location-highlights-col ul li strong {
  display: block;
  font-size: 1.25rem;
  color: #1d1d1f;
}
.location-highlights-col ul li span {
  font-size: 1rem;
  color: #6e6e73;
}
.location-map-col {
  height: 450px;
}
.location-map-col iframe {
  height: 100%;
  filter: grayscale(80%);
}
@media (max-width: 991px) {
  .location-map-col {
    height: 350px;
  }
}
.cta-section-dark {
  background-color: #1d1d1f;
}
.btn-pill {
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1rem;
}

li i,
.amenities-grid i {
  color: #000 !important;
}

/* 1. Tab Buttons */
.nav-pills .nav-link {
  color: var(--text);
  border: 1px solid #d2d2d7; /* A subtle gray border */
  margin: 0 5px 10px 5px; /* Add bottom margin for wrapping on mobile */
  border-radius: 50px; /* Pill shape */
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}

.nav-pills .nav-link:hover {
  border-color: var(--text);
}

/* 2. Uniform Media Item Wrapper */
.media-item-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  border-radius: 1rem; /* Consistent rounded corners */
  background-color: #f5f5f7; /* Light gray background for loading */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.media-item-wrapper img,
.media-item-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* This is key: it makes all media fill the box */
}

/* 3. Caption for Feature Images */
.media-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 2;
}

.features-section-refined {
  padding: 6rem 0;
  overflow-x: hidden; /* Prevents scrollbars from animation */
}

.feature-row-refined {
  margin-bottom: 6rem;
}
.feature-row-refined:last-child {
  margin-bottom: 0;
}

.feature-text-card {
  background-color: #ffffff;
  padding: 2.5rem;
  border-radius: 1.5rem; /* 24px */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.feature-title-refined {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1d1d1f;
}

.feature-copy-refined {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #6e6e73;
}

.section-headline {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.01em;
}
.section-subheadline {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: #6e6e73;
  line-height: 1.6;
  max-width: 650px;
  margin-top: 0.5rem;
}

/* --- 4. Featured Properties Section --- */
.featured-properties-section {
  padding: 6rem 0;
  background-color: #f9f9f9;
}
.property-module {
  display: block;
  background-color: #fff;
  border-radius: 1.5rem; /* 24px */
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.property-module:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.property-image-wrapper {
  position: relative;
  height: 250px;
}
.property-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.property-status {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 0.375rem;
  backdrop-filter: blur(5px);
}
.property-status.hot {
  background-color: #0071e3; /* Apple's blue */
}
.property-details {
  padding: 1.5rem;
}
.property-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 0.5rem;
}
.property-location {
  color: #6e6e73;
  margin-bottom: 1rem;
}
.property-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1d1d1f;
}

/* --- 5. Why Choose Us? Section --- */
.why-choose-us-section {
  padding: 6rem 0;
}
.benefit-item {
  text-align: center;
}
.benefit-icon {
  font-size: 3rem;
  color: #0071e3; /* Apple's blue */
  margin-bottom: 1rem;
}
.benefit-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.benefit-copy {
  color: #6e6e73;
  line-height: 1.6;
}

/* --- 6. Testimonials Section --- */
.testimonial-section {
  padding: 6rem 0;
  background-color: #f9f9f9;
}
.testimonial-card {
  max-width: 750px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}
.testimonial-quote {
  padding-left: 1%;
  padding-right: 1%;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.5;
  font-style: italic;
  color: #1d1d1f;
  border-left: none;
  margin-bottom: 2rem;
}
.testimonial-author {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}
.author-info {
  text-align: left;
}
.author-name {
  font-weight: 600;
  color: #1d1d1f;
}
.author-title {
  color: #6e6e73;
  font-size: 0.9rem;
}
/* Custom Carousel Controls */
#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
  width: auto;
  opacity: 1;
}
#testimonialCarousel .carousel-control-prev i,
#testimonialCarousel .carousel-control-next i {
  font-size: 2.5rem;
  color: #6e6e73;
  transition: color 0.2s ease;
}
#testimonialCarousel .carousel-control-prev:hover i,
#testimonialCarousel .carousel-control-next:hover i,
.benefit-icon:hover i {
  color: #1d1d1f;
}

.benefit-icon i {
  color: #000;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopping {
  overflow: hidden;
}

/* --- Cinematic Video Section --- */
.cinematic-wrapper {
  height: 300vh;
  position: relative;
  z-index: 1; /* This is Layer 1 */
}
.cinematic-sticky-container {
  height: 100vh;
  width: 100%;
  position: sticky;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.cinematic-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: brightness(1.2) contrast(1.1);
}
.cinematic-text-overlay {
  position: relative;
  z-index: 10;
  color: #000000;
  text-align: center;
  max-width: 650px;
  padding: 2rem;
  opacity: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}
.cinematic-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
}
.cinematic-subheadline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-top: 1rem;
}

/* --- The Main Content Wrapper (The Fix) --- */
.main-content-wrapper {
  position: relative;
  z-index: 2; /* This is Layer 2, guaranteed to be on top */
  background-color: #f9f9f9; /* Ensures it's opaque */
}

/* --- Styling for sections inside the wrapper --- */
.static-feature-section {
  padding: 6rem 0;
  /* No z-index or background needed here anymore */
}
.static-text-card {
  text-align: left;
}
.static-headline {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #1d1d1f;
}
.static-subheadline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #6e6e73;
  margin-top: 1rem;
  line-height: 1.6;
}

/* Ensure other sections also have a transparent background so the wrapper's color shows through */
.why-choose-us-section,
.testimonial-section,
.about-section {
  background-color: transparent; /* Or set to the same #f9f9f9 */
}

.logo {
  margin-right: 10px;
  width: 40px; /* Adjust as needed */
  height: auto;
  display: block;
  margin: 0 auto; /* Center the logo */
}

.lazy-bg {
  background-size: cover;
  background-position: center;
  /* Add a transition for a smooth fade-in effect later */
  transition: background-image 0.4s ease-in-out;
}

header {
  position: relative;
  z-index: 10;
}

.media-item-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (divides 9 by 16) */
  background-color: #e9ecef; /* A light placeholder background */
}

.media-item-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Exit-Intent Popup Styles */
.exit-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.exit-popup-overlay.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

.exit-popup-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 450px;
  width: 90%;
  position: relative;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.exit-popup-overlay.visible .exit-popup-content {
  transform: scale(1);
}

.exit-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #888;
  cursor: pointer;
}

body.no-scroll {
  overflow: hidden !important;
  scroll: hidden !important; /* Prevents scrolling */
}

html.no-scroll,
body.no-scroll {
  overflow: hidden;
}

/* ADD THIS NEW CSS */
.simple-video-section {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem;
  background-color: #000; /* Fallback color */
}

.simple-video-section video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
  opacity: 0.5; /* Makes text more readable */
  filter: blur(1px);
}

.video-text-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 700px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-text-content h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #fff;
}

.video-text-content p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-top: 1rem;
  color: #fff;
  opacity: 0.9;
}

.time-sensitive-offer {
  font-weight: 500;
  color: #15576f; /* A color that matches your theme */
  background-color: rgba(27, 93, 141, 0.08); /* A light, subtle background */
  border-radius: 8px;
  padding: 0.75rem 1rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(27, 93, 141, 0.15);
}

.circle-img {
  position: relative; /* Required for positioning the child tag */
  overflow: visible; /* Allow the tag to sit outside the circle if needed */
}

.scarcity-tag {
  position: absolute;
  top: -10px; /* Position it slightly above the circle */
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.proof-notification {
  position: fixed;
  width: auto;
  min-width: 150px;
  bottom: 20px;
  left: 50%; /* Change: Moves the left edge to the center */
  z-index: 1000;

  /* Change: This now centers it horizontally AND handles the slide-up animation */
  transform: translateX(-50%) translateY(150%);

  /* The rest of the styles are the same */
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  padding: 12px 16px;
  transition: transform 0.5s ease-in-out;
  border: 1px solid #eee;
}

/* This rule also needs a small update */
.proof-notification.visible {
  transform: translateX(-50%) translateY(0); /* Centers it and brings it into view */
}

.proof-icon {
  color: #15576f; /* Success green color */
  font-size: 1.5rem;
  margin-right: 12px;
}

.proof-text {
  font-size: 0.9rem;
  color: #333;
}

#countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  min-width: 60px;
}

.time-block span:first-child {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.time-block span:last-child {
  font-size: 0.7rem;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Styling for the new Project Preview Section */

/* Active state for the selected project button */
#project-selector .btn.active {
  background-color: var(--accent) !important;
  color: var(--text) !important;
  font-weight: 700;
}

/* Styling for the preview container */
#project-preview-container {
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  opacity: 0;
  transform: translateY(20px);
}

#project-preview-container.visible {
  opacity: 1;
  transform: translateY(0);
  max-height: 1000px; /* A large value to allow content to expand */
}

.preview-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.preview-amenities ul {
  list-style: none;
  padding: 0;
}

.preview-amenities li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  color: #6e6e73;
}

.preview-amenities i {
  color: #1a5d8d;
}

.preview-amenities {
  display: flex;
  justify-content: center;
}

.media-item-wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  /* This over-scales the height, effectively cropping the black bars */
  height: 130%;
  transform: translate(-50%, -50%);
  border: none;
}

/* Updated styles for the preview amenities */
.amenity-item-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.amenity-item-preview i {
  font-size: 2rem; /* Slightly larger icon */
  color: #000; /* Change to black */
}

.amenity-item-preview span {
  font-size: 0.9rem;
  color: #000; /* Change to black */
  font-weight: 500;
}

.form-wrapper {
  border: 0.5px solid black;
  border-radius: 8px;
  padding: 0.8rem;
  place-items: center;
  /* width: 60%; */
  width: fit-content;
  margin: auto;
  /* shadow */
  box-shadow: 0 8px 8px rgba(40, 50, 61, 0.1);
}
