/* Root variables for theme */
:root {
  --primary-color: #d4af37; /* gold */
  --secondary-color: #f4f3ef; /* bone white */
  --dark-bg: #0b0e11; /* near black */
  --text-color: #f7f7f7;
  --transition-speed: 0.3s;
}

/* Ensure the hero image fits within the viewport on narrow screens.
   On small mobile devices the background photo previously cropped the
   house; by switching to `contain` sizing and aligning to the top we
   show the entire property image in portrait mode. */
@media (max-width: 768px) {
  #hero {
    background-size: contain;
    background-position: top;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--dark-bg);
  color: var(--secondary-color);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.navbar .logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--primary-color);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-speed);
}

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

/* Hero */
#hero {
  height: 100vh;
  background-image: linear-gradient(rgba(11, 14, 17, 0.6), rgba(11, 14, 17, 0.7)), url('exterior.png');
    background-image: url('exterior.png');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background var(--transition-speed), color var(--transition-speed);
}

.btn.primary {
  background-color: var(--primary-color);
  color: var(--dark-bg);
}

.btn.primary:hover {
  background-color: #b99a2c;
}

.btn.secondary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn.secondary:hover {
  background-color: var(--primary-color);
  color: var(--dark-bg);
}

.section {
  padding: 4rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.in-view {
  opacity: 1;
  transform: none;
}

.section h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.overview p {
  margin-bottom: 2rem;
  text-align: center;
}

.spec-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.spec-list li {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

/* Amenities */
.amenities .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.amenity {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--secondary-color);
}

.amenity svg {
  width: 32px;
  height: 32px;
  margin-bottom: 0.5rem;
  fill: var(--primary-color);
}

.amenity span {
  font-weight: 500;
}

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

.gallery-grid img {
  width: 100%;
  height: 200px;
  border-radius: 4px;
  object-fit: cover;
}

/* Plans */
.plans-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.plan {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 4px;
  width: 100%;
  max-width: 500px;
}

.plan img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.plan h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

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

.plan ul li {
  margin-bottom: 0.5rem;
}

/* Timeline */
.timeline-list {
  list-style: none;
  padding-left: 0;
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline-list::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
  background: rgba(212, 175, 55, 0.3);
}

.timeline-list li {
  position: relative;
  padding: 1.5rem 1rem 1.5rem 1rem;
  width: 50%;
}

.timeline-list li:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: 2rem;
}

.timeline-list li:nth-child(even) {
  left: 50%;
  padding-left: 2rem;
}

.timeline-list li::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  right: -8px;
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
}

.timeline-list li:nth-child(even)::before {
  left: -8px;
  right: auto;
}

.milestone-date {
  display: block;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.milestone-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--secondary-color);
}

.milestone-desc {
  font-size: 0.9rem;
  color: var(--secondary-color);
}

/* Forms */
.form-section p {
  text-align: center;
  margin-bottom: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 4px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary-color);
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-grid textarea {
  resize: vertical;
  min-height: 120px;
}

.form-section button.btn {
  display: block;
  margin: 0 auto;
}

/* Footer */
.footer {
  background: #080b0e;
  padding: 2rem 0;
  color: var(--secondary-color);
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-left h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

.footer-right p {
  margin: 0.3rem 0;
}

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

.footer a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
  }
  .timeline-list li {
    width: 100%;
    left: 0 !important;
    text-align: left;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .timeline-list::before {
    left: 1rem;
  }
  .timeline-list li::before {
    left: 0;
    right: auto;
  }
}
