@import "tailwindcss";

/* --- Design tokens --- */
:root {
  --ink: #211f1c;
  --ivory: #f8f5f0;
  --ivory-deep: #f1ede5;
  --stone: #8a8275;
  --stone-light: #c9c2b4;
  --brass: #c5a46d;
  --brass-dark: #7c5f34;
  --footer-bg: #101828;
  --footer-line: #37332c;
  --footer-text: #fff;
  --shadow-soft: 0 20px 45px -25px rgba(33, 31, 28, 0.35);
  --shadow-lift: 0 30px 60px -25px rgba(33, 31, 28, 0.45);
}

/* --- Global Styles & Typography --- */
/* @import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=Jost:wght@300;400;500;600&display=swap"); */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background-color: var(--ivory);
  line-height: 1.65;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: var(--ink);
}
p {
  font-size: 18px !important;
}

a {
  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

button,
input {
  font-family: inherit;
}

/* Visible keyboard focus, respected everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.section {
  padding: 110px 10%;
  text-align: center;
}

.section h2 {
  font-size: 2.6rem;
  margin-bottom: 40px;
  letter-spacing: 0.3px;
}

/* --- 1. /* --- 1. Hero Header --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  padding: 40px 10%;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 18, 15, 0.55) 0%,
    rgba(20, 18, 15, 0.25) 45%,
    rgba(20, 18, 15, 0.65) 100%
  );
  z-index: 1;
}

.navbar {
  position: fixed; /* Fixed to the top of the screen */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeDown 0.9s ease both;
  padding: 24px 120px;
  background: transparent; /* Initially transparent */
  transition:
    background-color 0.3s ease,
    padding 0.3s ease,
    box-shadow 0.3s ease;
}

.navbar .logo {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  letter-spacing: 3px;
  color: #fff; /* Initial text color */
  transition: color 0.3s ease;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 34px;
}

.nav-links a {
  position: relative;
  color: #fff; /* Initial text color */
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--brass, #c5a880);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* --- Sticky Scrolled State Changes --- */
.navbar.scrolled {
  background: #ffffff; /* White background when scrolled */
  padding: 16px 40px; /* Slightly slimmer header on scroll */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a {
  color: #000000; /* Black text when scrolled */
}

/* Hide burger menu on desktop */
.menu-toggle {
  display: none;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 1150px) {
  .navbar {
    padding: 20px;
  }

  .navbar.scrolled {
    padding: 15px 20px;
  }

  /* Animated Hamburger Button */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
    padding: 0;
  }

  .menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: #fff; /* Initial white lines */
    transition: all 0.3s ease;
  }

  /* Make mobile burger lines turn black when navbar is scrolled */
  .navbar.scrolled .menu-toggle .bar {
    background-color: #000;
  }

  /* Force lines to white if menu drawer opens over black panel */
  .menu-toggle.open .bar {
    background-color: #fff !important;
  }

  /* Transform burger to 'X' when open */
  .menu-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Full screen slide-out mobile drawer */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #111;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 40px 40px 40px;
    gap: 28px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    right: 0;
  }

  /* Force white text inside the dark mobile menu overlay */
  .nav-links a,
  .navbar.scrolled .nav-links a {
    color: #fff;
    font-size: 1rem;
    width: 100%;
    display: block;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-bottom: auto;
  align-self: center;
  text-align: center;
  max-width: 800px;
  margin-top: 15vh;
  animation: fadeUp 1s ease 0.2s both;
}

.hero-content .eyebrow {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--stone-light);
  margin-bottom: 18px;
}

.hero-content h1 {
  font-size: 4.2rem;
  line-height: 1.12;
  margin-bottom: 22px;
  color: #fff;
}

.hero-content p {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
}

.hero-scroll {
  /* Change from relative to absolute positioning */
  position: absolute;
  bottom: 30px; /* Adjusts distance from the very bottom edge */
  left: 50%;
  transform: translateX(-50%); /* Perfectly centers it horizontally */

  z-index: 2;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeIn 1.2s ease 0.6s both;
}

.hero-scroll span {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent);
  animation: pulseLine 2.2s ease-in-out infinite;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulseLine {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.6;
  }
  50% {
    transform: scaleY(0.6);
    opacity: 1;
  }
}

/* --- 2. Our Journey Section --- */
.journey {
  background-color: var(--ivory-deep);
}

.journey .subheading {
  display: block;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 4px;
  color: var(--brass);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.journey-container {
  max-width: 700px;
  margin: 0 auto;
}

.journey-img {
  height: 380px;
  margin-bottom: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.journey-img img {
  height: 100%;
  transition: transform 0.7s ease;
}

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

.journey-text {
  font-style: italic;
  color: var(--stone);
  font-size: 1.15rem;
  font-family: "Playfair Display", serif;
}

/* --- 3. Luxury Residences Section --- */
.residences {
  background-color: #fff;
}

.residence-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.residence-featured {
  padding-right: 20px;
}

.residence-featured .tag {
  background-color: var(--brass);
  color: #fff;
  font-size: 0.9rem;
  padding: 4px 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 18px;
}

.residence-featured h3 {
  font-size: 2.1rem;
  margin-bottom: 16px;
}

.residence-featured p {
  color: var(--stone);
  font-size: 0.98rem;
  margin-bottom: 28px;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  background-color: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.btn:hover {
  background-color: transparent;
  color: var(--ink);
}

.residence-img {
  height: 420px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.residence-img img {
  height: 100%;
  transition: transform 0.7s ease;
}

.residence-img:hover img {
  transform: scale(1.06);
}

.residence-specs ul {
  list-style: none;
}

.residence-specs li {
  margin-bottom: 20px;
  font-size: 0.95rem;
  border-bottom: 1px solid #ece7de;
  padding-bottom: 14px;
}

.residence-specs strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--brass-dark);
  margin-bottom: 4px;
}

/* --- 4. Instagram Feed Section --- */
.instagram {
  background-color: var(--ivory-deep);
}

.instagram .insta-handle {
  color: var(--brass);
  margin-top: -30px;
  margin-bottom: 44px;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

.insta-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.insta-gallery a {
  display: block;
  overflow: hidden;
  position: relative;
}

.insta-gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(33, 31, 28, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.insta-gallery a:hover::after {
  opacity: 1;
}

.insta-gallery img {
  height: 260px;
  transition: transform 0.5s ease;
}

.insta-gallery a:hover img {
  transform: scale(1.08);
}

/* --- 5. Real Estate Insights Section --- */
.insights {
  background-color: #fff;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px;
  text-align: left;
}

.insights-grid .card {
  background-color: #fff;
}

.insights-grid .card .insight-img {
  height: 300px;
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.insights-grid .card .insight-img img {
  height: 100%;
  transition: transform 0.6s ease;
}

.insights-grid .card:hover .insight-img img {
  transform: scale(1.05);
}

.insights-grid .card .tag-eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
}

.insights-grid .card h4 {
  font-size: 1.45rem;
  color: var(--ink);
  font-weight: 400;
}

/* --- 6. Footer Section --- */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 90px 10% 44px;
}

.footer a {
  color: var(--footer-text);
  text-decoration: none;
}

.footer a:hover {
  color: var(--brass);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid var(--footer-line);
  padding-bottom: 54px;
  margin-bottom: 44px;
}

.footer-top .footer-col:first-child {
  text-align: left;
}
.footer-top .footer-col:last-child {
  text-align: right;
}

.footer-top h5 {
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Jost", sans-serif;
}

.footer-top .brand h3 {
  font-size: 2.1rem;
  color: #fff;
  letter-spacing: 4px;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  text-align: center;
}

.footer-bottom .footer-col:first-child {
  text-align: left;
}
.footer-bottom .footer-col:last-child {
  text-align: right;
}

.footer-bottom p {
  font-size: 0.98rem;
}

.footer-bottom .brand h3 {
  font-size: 2.1rem;
  color: #fff;
  letter-spacing: 4px;
}

.footer-newsletter {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.footer-newsletter label {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 22px;
}

.input-group {
  display: flex;
}

.input-group input {
  flex: 1;
  padding: 16px;
  border: 1px solid var(--footer-line);
  background-color: transparent;
  color: #fff;
  font-family: inherit;
}

.input-group input::placeholder {
  color: var(--stone-light);
}

.input-group button {
  background-color: var(--brass);
  color: #fff;
  border: none;
  padding: 0 32px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  transition: background-color 0.3s ease;
}

.input-group button:hover {
  background-color: var(--brass-dark);
}

.footer-bottom {
  text-align: center;
  font-size: 0.78rem;
  color: var(--stone);
  margin-top: 44px;
  letter-spacing: 0.5px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .residence-grid {
    grid-template-columns: 1fr;
  }
  .insights-grid {
    grid-template-columns: 1fr;
  }
  .insta-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center !important;
  }
  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center !important;
  }
  .hero-content h1 {
    font-size: 2.9rem;
  }
  .section {
    padding: 90px 8%;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
  .hero-content h1 {
    font-size: 2.3rem;
  }
  .section h2 {
    font-size: 2rem;
  }
  .input-group {
    flex-direction: column;
    gap: 10px;
  }
  .input-group button {
    padding: 14px;
  }
}

/* --- Gallery Section --- */
.gallery {
  background-color: #fff;
}

.gallery .subheading {
  display: block;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 4px;
  color: var(--brass);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  display: block;
  width: 100%;
  height: 320px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(33, 31, 28, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img {
  height: 100%;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* --- Lightbox --- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 1000;
  padding: 40px;
  animation: fadeIn 0.25s ease both;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.lightbox-content img {
  max-height: 80vh;
  width: auto;
  margin: 0 auto;
  box-shadow: var(--shadow-lift);
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 34px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease;
  flex-shrink: 0;
}

.lightbox-nav:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-item {
    height: 220px;
  }
  .lightbox-overlay {
    padding: 20px;
    gap: 12px;
  }
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  .lightbox-close {
    top: 16px;
    right: 16px;
  }
}

.gallery-item {
  position: relative; /* anchors the overlay */
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 15, 0.72);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.3s ease;
}

.gallery-item-more:hover .gallery-item-overlay {
  background: rgba(20, 18, 15, 0.85);
}

.gallery-item-overlay-count {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  line-height: 1;
}

.gallery-item-overlay-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stone-light);
}

.lightbox-counter {
  margin-top: 14px;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  color: var(--stone-light);
}
