/* ============================================
   VILANA GARDENS — Luxury Real Estate Website
   Style: Inspired by bioscasa.com
   Palette: Warm earth tones, taupe, cream
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --taupe: #7d6450;
  --taupe-dark: #5a4638;
  --taupe-light: #b6875c;
  --cream: #e7e2de;
  --off-white: #f5f2ef;
  --white: #ffffff;
  --charcoal: #2c2420;
  --gold: #c9a96e;
  --gold-light: #ddc08a;
  --text: #3a3028;
  --text-light: #7a6e64;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--taupe-dark);
}

a { color: var(--taupe); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header / Navigation --- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(44, 36, 32, 0.92);
  backdrop-filter: blur(12px);
  transition: background 0.4s, padding 0.4s;
  padding: 18px 0;
}

header.scrolled {
  background: rgba(44, 36, 32, 0.97);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo img {
  height: 36px;
  width: auto;
  transition: height 0.4s;
}

header.scrolled .logo img { height: 28px; }

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

nav a {
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  padding-bottom: 4px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

nav a:hover { color: var(--gold); }
nav a:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.55);
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero.loaded .hero-bg { transform: scale(1); }

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
  padding: 0 24px;
}

.hero-logo {
  width: 280px;
  margin: 0 auto 32px;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 3px;
  color: var(--cream);
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.4s;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--charcoal);
}

/* --- Section shared --- */
.section {
  padding: 100px 0;
}

.section-title {
  font-size: 42px;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.section-subtitle {
  text-align: center;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 60px;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 24px auto 0;
}

/* --- The Estate --- */
.estate-section { background: var(--white); }

.estate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.estate-text p {
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--text-light);
}

.estate-text .architect-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--taupe-dark);
  font-style: italic;
  margin-bottom: 8px;
}

.estate-img {
  border-radius: 2px;
  overflow: hidden;
}

.estate-img img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform 0.6s;
}

.estate-img:hover img { transform: scale(1.03); }

/* Estate features */
.estate-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.estate-feature {
  text-align: center;
  padding: 30px 20px;
}

.estate-feature .icon {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 16px;
}

.estate-feature h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--taupe-dark);
}

.estate-feature p {
  font-size: 13px;
  color: var(--text-light);
}

/* --- Properties --- */
.properties-section { background: var(--off-white); }

.property-card {
  background: var(--white);
  margin-bottom: 80px;
  overflow: hidden;
}

.property-card:last-child { margin-bottom: 0; }

.property-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 500px;
}

.property-card:nth-child(even) .property-header {
  grid-template-columns: 1fr 1.2fr;
}

.property-card:nth-child(even) .property-gallery { order: 2; }
.property-card:nth-child(even) .property-info { order: 1; }

/* Gallery / Slideshow */
.property-gallery {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.property-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.property-gallery img.active { opacity: 1; }

.gallery-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.gallery-btn {
  width: 40px;
  height: 40px;
  background: rgba(44, 36, 32, 0.7);
  border: none;
  color: var(--cream);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.gallery-btn:hover { background: rgba(44, 36, 32, 0.95); }

.gallery-counter {
  position: absolute;
  bottom: 24px;
  left: 20px;
  color: var(--white);
  font-size: 12px;
  letter-spacing: 2px;
  background: rgba(44, 36, 32, 0.6);
  padding: 6px 14px;
  z-index: 5;
}

/* Property Info */
.property-info {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.property-badge {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.property-name {
  font-size: 34px;
  margin-bottom: 20px;
  color: var(--taupe-dark);
}

.property-specs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--cream);
}

.property-spec {
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.property-spec .spec-icon { color: var(--gold); font-size: 16px; }

.property-description {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.8;
}

.property-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--taupe-dark);
  font-style: italic;
  margin-bottom: 24px;
}

.property-cta {
  display: inline-block;
  padding: 12px 32px;
  background: var(--taupe);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background 0.3s;
  align-self: flex-start;
}

.property-cta:hover {
  background: var(--taupe-dark);
  color: var(--white);
}

/* --- Amenities --- */
.amenities-section {
  background: var(--taupe-dark);
  color: var(--cream);
}

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

.amenities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.amenities-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.amenities-images img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.amenities-images img:first-child {
  grid-column: 1 / -1;
  height: 300px;
}

.amenities-list {
  list-style: none;
  display: grid;
  gap: 20px;
}

.amenities-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 15px;
}

.amenities-list .amenity-icon {
  color: var(--gold);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.amenities-list .amenity-text strong {
  display: block;
  color: var(--white);
  margin-bottom: 2px;
}

.amenities-list .amenity-text span {
  font-size: 13px;
  color: var(--cream);
  opacity: 0.8;
}

/* --- Neighborhood --- */
.neighborhood-section { background: var(--white); }

.neighborhood-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.neighborhood-text p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.neighborhood-map {
  width: 100%;
  height: 400px;
  border: none;
  filter: grayscale(20%) sepia(10%);
}

/* --- Schools --- */
.schools-section { background: var(--off-white); }

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

.school-card {
  background: var(--white);
  padding: 36px 30px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.school-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(125, 100, 80, 0.1);
}

.school-distance {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.school-name {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--taupe-dark);
}

.school-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- Relocation Partners --- */
.relocation-section {
  background: var(--taupe);
  color: var(--white);
}

.relocation-section .section-title { color: var(--white); }

.relocation-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.relocation-content p {
  font-size: 15px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.relocation-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 50px 0;
  text-align: center;
}

.relocation-benefit h4 {
  color: var(--gold-light);
  font-size: 18px;
  margin-bottom: 8px;
}

.relocation-benefit p {
  font-size: 13px;
  opacity: 0.8;
}

.relocation-cta {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid var(--white);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.4s;
}

.relocation-cta:hover {
  background: var(--white);
  color: var(--taupe);
}

/* --- Contact --- */
.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-info h3 {
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--taupe-dark);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 15px;
}

.contact-detail .contact-icon {
  color: var(--gold);
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.contact-detail a { color: var(--text); }
.contact-detail a:hover { color: var(--gold); }

.contact-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 40px;
  background: var(--taupe);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background 0.3s;
}

.contact-cta:hover { background: var(--taupe-dark); color: var(--white); }

.contact-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Contact Form */
.contact-form-wrapper form { display: flex; flex-direction: column; gap: 20px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  padding: 12px 16px;
  border: 1px solid var(--cream);
  background: var(--off-white);
  color: var(--text);
  transition: border-color 0.3s;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--taupe-light);
}

.form-group textarea { resize: vertical; }

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237d6450' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

form .contact-cta {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}

.contact-info-side { display: flex; flex-direction: column; justify-content: center; }

.contact-info-side h3 {
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--taupe-dark);
}

.contact-image-small {
  margin-top: 30px;
  overflow: hidden;
}

.contact-image-small img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Success message after form submit */
.form-success {
  text-align: center;
  padding: 40px;
}

.form-success h3 {
  font-size: 28px;
  color: var(--taupe-dark);
  margin-bottom: 12px;
}

.form-success p {
  color: var(--text-light);
  font-size: 15px;
}

/* --- Footer --- */
footer {
  background: var(--charcoal);
  color: var(--cream);
  text-align: center;
  padding: 40px 0;
}

footer .footer-logo { height: 28px; margin: 0 auto 16px; }
footer p { font-size: 12px; opacity: 0.6; letter-spacing: 1px; }

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 14, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  color: var(--cream);
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cream);
  font-size: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px;
  z-index: 10;
  transition: color 0.3s;
}

.lightbox-nav:hover { color: var(--gold); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 2px;
}

/* --- Scroll to top --- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--taupe);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--taupe-dark); }

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .estate-grid,
  .neighborhood-grid,
  .contact-grid,
  .amenities-grid { grid-template-columns: 1fr; }

  .property-header,
  .property-card:nth-child(even) .property-header {
    grid-template-columns: 1fr;
  }

  .property-gallery { min-height: 400px; }
  .property-card:nth-child(even) .property-gallery { order: 0; }
  .property-card:nth-child(even) .property-info { order: 0; }

  .schools-grid { grid-template-columns: repeat(2, 1fr); }
  .estate-features { grid-template-columns: repeat(2, 1fr); }
  .relocation-benefits { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(44, 36, 32, 0.97);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
  }

  nav ul.open { display: flex; }

  .hamburger { display: flex; }

  .hero-tagline { font-size: 18px; }
  .hero-logo { width: 200px; }
  .section-title { font-size: 32px; }
  .section { padding: 70px 0; }

  .property-info { padding: 36px 24px; }
  .property-gallery { min-height: 300px; }

  .schools-grid { grid-template-columns: 1fr; }
  .estate-features { grid-template-columns: 1fr; }

  .estate-img img { height: 300px; }
  .form-row { grid-template-columns: 1fr; }
  .amenities-images img:first-child { height: 220px; }
  .amenities-images img { height: 160px; }
}
