/* ==========================================================================
   General / shared styling used across all KE Property pages.
   Page-specific styling (layout differences, unique sections, and any
   overrides of the rules below) lives in each page's own stylesheet.
   ========================================================================== */

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

:root {
  --primary: #b8ad98;
  --primary-dark: #a39780;
  --primary-light: #d4cdc0;
  --cream: #f8f6f3;
  --charcoal: #2d2d2d;
  --soft-gray: #6b6b6b;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--charcoal);
  line-height: 1.6;
  background: var(--cream);
  overflow-x: hidden;
  touch-action: manipulation;
}

a {
  outline-offset: 4px;
}

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

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(248, 246, 243, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(184, 173, 152, 0.2);
}

nav .container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.05em;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo {
  height: 70px;
  width: auto;
}

.logo span {
  font-size: 0.62rem;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--primary-dark);
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--soft-gray);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Only rendered for the mobile dropdown (see the 1200px breakpoint
   below) - on desktop the standalone .nav-cta button already covers
   this, so this duplicate stays hidden. */
.nav-links-cta {
  display: none;
}

/* Hamburger toggle - hidden until the 1200px breakpoint hides the
   inline nav-links and this becomes the only way to reach them. */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.book-btn {
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 2rem;
  border: none;
  cursor: pointer;
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border-radius: 4px;
}

.book-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(184, 173, 152, 0.3);
}

.book-btn.ghost {
  background: transparent;
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
}

.book-btn.ghost:hover {
  background: var(--charcoal);
  color: var(--cream);
}

@media (max-width: 1200px) {
  .nav-toggle {
    display: flex;
  }

  /* The standalone CTA is replaced by the copy inside the dropdown
     (.nav-links-cta) once the inline nav-links are gone. */
  .nav-cta {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(184, 173, 152, 0.2);
    padding: 0 2rem;
    gap: 1.25rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height 0.3s ease,
      opacity 0.2s ease,
      padding 0.3s ease;
  }

  .nav-links.open {
    max-height: 400px;
    opacity: 1;
    padding: 1.5rem 2rem;
  }

  .nav-links-cta {
    display: block;
    margin-top: 0.25rem;
  }

  .nav-links-cta .book-btn {
    width: 100%;
    text-align: center;
    /* .nav-links a's color would otherwise win here (higher
       specificity than .book-btn alone) and grey out the button text. */
    color: var(--white);
  }
}

@media (max-width: 900px) {
  nav .container {
    padding: 0.9rem 1rem;
  }

  .nav-links {
    padding: 0 1rem;
  }

  .nav-links.open {
    padding: 1.25rem 1rem;
  }
}

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cream) 0%, #e8e3da 100%);
  overflow: hidden;
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(184, 173, 152, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(184, 173, 152, 0.15) 0%,
      transparent 50%
    );
  animation: pulse 20s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

.hero-content {
  text-align: center;
  z-index: 10;
  max-width: 900px;
  padding: 0 2rem;
  animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--primary-dark);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
  font-size: 5rem;
}

.hero h1 span {
  font-weight: 600;
  color: var(--primary);
}

.hero p {
  font-size: 1.3rem;
  color: var(--soft-gray);
  margin-bottom: 3rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Shared section basics */
.features {
  padding: 8rem 2rem;
  background: var(--white);
}

.gallery {
  padding: 8rem 2rem;
  background: var(--cream);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h1,
.section-header h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--soft-gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.feature-card {
  text-align: center;
  padding: 2.5rem;
  background: var(--cream);
  border-radius: 16px;
  transition: all 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(184, 173, 152, 0.15);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 2rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  transform: rotate(360deg);
  background: var(--primary-dark);
}

.feature-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.feature-card p {
  color: var(--soft-gray);
  font-size: 1rem;
  line-height: 1.8;
}

/* Dark (amenities / investment focus) Section */
.amenities {
  padding: 8rem 2rem;
  background: var(--charcoal);
  color: var(--cream);
}

.amenities .section-header h2 {
  color: var(--cream);
}

.amenities .section-header p {
  color: rgba(248, 246, 243, 0.7);
}

.amenities-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(184, 173, 152, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.amenity-item:hover {
  background: rgba(184, 173, 152, 0.2);
  transform: translateX(10px);
}

.amenity-check {
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.amenity-item span {
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

/* CTA Section */
.cta {
  padding: 10rem 2rem;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 10;
}

.cta h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 4rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

/* Each page sets its own .cta .book-btn color */
.cta .book-btn {
  background: var(--white);
  font-size: 1.1rem;
  padding: 1.2rem 3rem;
}

.cta .book-btn:hover {
  background: var(--cream);
  transform: translateY(-4px);
}

/* Shared form layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Footer */
footer {
  background: var(--charcoal);
  color: rgba(248, 246, 243, 0.7);
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 1rem;
}

.footer-brand p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-section h4 {
  color: var(--cream);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: rgba(248, 246, 243, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(184, 173, 152, 0.2);
  text-align: center;
  font-size: 0.9rem;
  padding-top: 1.5rem;
}
