body.loading {
  overflow: hidden;
}

#preloader {
  position: fixed;
  inset: 0;
  background: #3B2000; /* Dark Brown requested */
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  opacity: 0;
  animation: fadeInPreloader 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.3s;
}

.preloader-content .logo-final-tagline {
  opacity: 0;
  animation: slideUpTagline 1s cubic-bezier(0.4, 0, 0.2, 1) forwards 1s;
}

@keyframes fadeInPreloader {
  from { 
    opacity: 0; 
    transform: scale(0.95) translateY(10px); 
  }
  to { 
    opacity: 1; 
    transform: scale(1) translateY(0); 
  }
}

@keyframes slideUpTagline {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

:root {
  --theme: #B8960C;       /* Your suggested Gold */
  --theme-dark: #8b6a23;
  --ink: #3d2b1f;         /* Luxurious Deep Brown */
  --muted: #686868;
  --paper: #ffffff;
  --soft: #fcfaf5;        /* Warm cream background for real estate */
  --line: #e7dfcb;
  --footer: #111111;
  font-family: "Playfair Display", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video,
iframe {
  display: block;
  max-width: 100%;
}

.topbar {
  min-height: 44px;
  padding: 10px clamp(18px, 5vw, 90px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #f8f4e8;
  background: #141414;
  font-size: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 86px;
  padding: 12px clamp(18px, 5vw, 90px);
  display: flex;
  align-items: center;
  gap: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
}

.logo-final-component {
  display: flex;
  align-items: center;
  gap: 20px; /* More breathing room */
}

.logo-final-icon {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-svg-v3 {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-final-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.logo-final-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.5px;
  line-height: 1.1;
  font-family: "Playfair Display", serif;
}

.logo-final-tagline {
  font-size: 11px; /* Slightly smaller for refinement */
  color: #B8960C;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.2px;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.logo-dark-mode .logo-final-title {
  color: #fff;
}

.logo-dark-mode .logo-final-tagline {
  color: #D4AF37;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.7vw, 24px);
  color: #222;
  font-weight: 700;
  font-size: 15px;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--theme-dark);
}

.header-cta,
.button-link,
.joint-section a,
.cta-strip a,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  color: #fff;
  background: var(--theme);
  border: 0;
  border-radius: 4px;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.hero-section {
  position: relative;
  min-height: calc(100svh - 130px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #111 url("assets/North-Chennai-Houses-1.jpeg") center / cover;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.54));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 36px));
  padding: clamp(46px, 8vw, 86px) 18px;
  color: #fff;
  text-align: center;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.54);
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 86px);
  font-weight: 700;
  line-height: 1.02;
}

.hero-content p {
  margin: 22px 0 0;
  color: #fff4d4;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 600;
}

.hero-cta {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  color: #111;
  background: #fff;
  border-radius: 4px;
  font-weight: 900;
  text-shadow: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.section {
  padding: clamp(64px, 8vw, 110px) clamp(18px, 5vw, 90px);
}

.section-heading {
  max-width: 830px;
  margin-bottom: 36px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading p,
.section-copy > p:first-child,
.contact-details > p {
  margin: 0 0 10px;
  color: var(--theme-dark);
  font-weight: 800;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

.projects-section {
  position: relative;
  background: var(--soft);
}

.project-grid,
.testimonial-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.project-card,
.testimonial-grid article,
.blog-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.08);
}

.project-card img,
.blog-grid img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
}

.project-card div,
.blog-grid article {
  padding: 24px;
}

.project-card h3,
.testimonial-grid h3,
.blog-grid h3 {
  margin: 0 0 8px;
  font-size: 23px;
}

.project-card .location {
  margin: 0 0 16px;
  color: var(--theme-dark);
  font-weight: 800;
}

.project-card ul,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-card li,
.check-list li {
  padding: 7px 0;
  color: #333;
  border-bottom: 1px solid #f0ead9;
}

.project-card a,
.blog-grid a {
  display: inline-block;
  margin-top: 18px;
  color: var(--theme-dark);
  font-weight: 800;
}

.split-section,
.inclusive-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
}

.image-pair img,
.inclusive-media img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.14);
}

.section-copy p,
.inclusive-copy p,
.joint-section p,
.section-heading span,
.contact-details span,
.site-footer p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}



.inclusive-section {
  background: #fff;
}

.inclusive-copy h3 {
  margin: 28px 0 12px;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--theme);
}

.stats-band div {
  padding: 46px 28px;
  color: #fff;
  background: #1b1b1b;
  text-align: center;
}

.stats-band strong {
  display: block;
  color: var(--theme);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
}

.stats-band span {
  display: block;
  margin-top: 12px;
  font-weight: 800;
}

.joint-section {
  padding: clamp(58px, 7vw, 86px) clamp(18px, 5vw, 90px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #fff;
  background: linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.72)), url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80") center / cover;
}

.joint-section div {
  max-width: 880px;
}

.joint-section p {
  color: #f5ecd2;
}

.testimonials-section {
  background: var(--soft);
}

.testimonial-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.testimonial-grid article {
  padding: 22px;
}

.testimonial-grid img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 18px;
}

.testimonial-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.instagram-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.blog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.blog-grid span {
  display: inline-block;
  margin: 18px 0 10px;
  color: var(--theme-dark);
  font-weight: 800;
}

.cta-strip {
  margin: 0 clamp(18px, 5vw, 90px) -64px;
  position: relative;
  z-index: 1;
  padding: clamp(34px, 5vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  background: var(--theme);
  border-radius: 8px;
  overflow: hidden;
}

.cta-strip a {
  color: #fff;
  background: #111;
}

.contact-section {
  padding-top: 128px;
  background: #f8f8f8;
}

.contact-details a,
.contact-details span {
  display: block;
  margin-top: 18px;
}

.contact-details a {
  color: var(--theme-dark);
  font-weight: 800;
}

.contact-form {
  padding: 30px;
  display: grid;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.08);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #282828;
  font-weight: 800;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  font: inherit;
}

.contact-form button {
  width: max-content;
}

.form-note {
  margin: 0;
  color: var(--theme-dark);
  font-weight: 800;
}

.floating-button,
.floating-call {
  position: fixed;
  z-index: 30;
  border: 0;
  border-radius: 4px;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.floating-button {
  right: 20px;
  bottom: 24px;
  min-height: 48px;
  padding: 0 18px;
  background: var(--theme);
  cursor: pointer;
}

.floating-call {
  left: 20px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: #111;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
}

.modal.is-visible {
  display: grid;
}

.modal-panel {
  width: min(520px, 100%);
  padding: 28px;
  background: #fff;
  border-radius: 8px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: #111;
  color: #fff;
  border-radius: 4px;
  padding: 9px 12px;
  cursor: pointer;
}





.site-footer {
  padding: 110px clamp(18px, 5vw, 90px) 34px;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 1.3fr;
  gap: 34px;
  color: #fff;
  background: var(--footer);
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand {
  display: block;
  margin-bottom: 25px;
}

.site-footer h3 {
  margin: 0 0 18px;
  color: #fff;
}

.site-footer a {
  display: block;
  margin: 10px 0;
  color: #e9d491;
}

.site-footer p {
  color: #cfcfcf;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

@media (max-width: 1100px) {
  .project-grid,
  .blog-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .instagram-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar {
    display: none;
  }

  .site-header {
    min-height: 76px;
  }

  .menu-toggle {
    margin-left: auto;
    display: inline-flex;
    min-height: 42px;
    padding: 0 14px;
    align-items: center;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 4px;
    font-weight: 800;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 18px;
    background: #fff;
    border-top: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .hero-section {
    min-height: calc(100svh - 76px);
    align-items: center;
    background-position: center;
  }

  .hero-content {
    width: min(520px, calc(100% - 28px));
    padding: 24px 0;
  }

  .hero-content h1 {
    font-size: clamp(34px, 9vw, 52px);
  }

  .hero-content p {
    font-size: clamp(18px, 5vw, 28px);
    line-height: 1.25;
  }

  .split-section,
  .inclusive-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .stats-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .joint-section,
  .cta-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-inline: 14px;
    gap: 12px;
  }

  .logo-final-icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    background-size: 420%;
    background-position: 12% 50%;
  }

  .logo-final-title {
    font-size: 18px;
  }

  .logo-final-tagline {
    font-size: 9px;
  }

  .project-grid,
  .blog-grid,
  .testimonial-grid,
  .instagram-grid,
  .stats-band,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 56px;
  }

  .hero-section {
    min-height: calc(100svh - 76px);
    background-image: url("https://images.unsplash.com/photo-1600566753376-12c8ab7fb75b?auto=format&fit=crop&w=900&q=80");
  }

  .contact-form {
    padding: 22px;
  }

  .cta-strip {
    margin-bottom: -44px;
  }
}
