/* ===== CSS Variables ===== */
:root {
  --background: #faf8f5;
  --foreground: #3d3428;
  --card: #ffffff;
  --primary: #a0714a;
  --primary-foreground: #faf8f5;
  --secondary: #f3efe9;
  --secondary-foreground: #5a4d3d;
  --muted: #e8e2d9;
  --muted-foreground: #7a6d5c;
  --border: #ddd5c9;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  --radius: 0.5rem;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* ===== Utilities ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hidden {
  display: none !important;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.btn-lg {
  padding: 1rem 2rem;
}

.btn-full {
  width: 100%;
}

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

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

.btn-outline {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary-foreground);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.btn-white {
  background-color: var(--primary-foreground);
  color: var(--primary);
}

.btn-white:hover {
  background-color: rgba(250, 248, 245, 0.9);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--primary-foreground);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ===== Section Styles ===== */
.section-label {
  color: var(--primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.section-label-light {
  color: rgba(250, 248, 245, 0.8);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 5vw, 3rem);
  color: var(--foreground);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-title-light {
  color: var(--primary-foreground);
}

.section-description {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
}

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

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(250, 248, 245, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color var(--transition);
}

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

.menu-toggle {
  display: block;
  padding: 0.5rem;
  color: var(--foreground);
}

.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-nav {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav a {
  color: var(--muted-foreground);
  transition: color var(--transition);
}

.mobile-nav a:hover {
  color: var(--foreground);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .mobile-nav {
    display: none !important;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(61, 52, 40, 0.4);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  padding: 0 1.5rem;
  text-align: center;
}

.hero-location {
  color: rgba(250, 248, 245, 0.8);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 500;
  color: var(--primary-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: rgba(250, 248, 245, 0.9);
  margin-bottom: 1rem;
}

.hero-description {
  color: rgba(250, 248, 245, 0.8);
  font-size: clamp(1rem, 2vw, 1.125rem);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-mouse {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid rgba(250, 248, 245, 0.5);
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.scroll-wheel {
  width: 0.25rem;
  height: 0.75rem;
  background-color: rgba(250, 248, 245, 0.5);
  border-radius: 0.25rem;
  animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(0.5rem); opacity: 0.5; }
}

/* ===== About ===== */
.about {
  padding: 6rem 0;
  background-color: var(--background);
}

.about-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-text-secondary {
  color: var(--muted-foreground);
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Apartments ===== */
.apartments {
  padding: 6rem 0;
  background-color: var(--secondary);
}

.apartments-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.apartment-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
}

.apartment-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.apartment-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61, 52, 40, 0.6), transparent);
}

.apartment-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}

.apartment-card-content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--primary-foreground);
}

.apartment-card-content p {
  color: rgba(250, 248, 245, 0.8);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .apartments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .apartment-card:last-child {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .apartments-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .apartment-card:last-child {
    grid-column: span 1;
  }
}

/* ===== Amenities Grid ===== */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.amenity-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background-color: var(--card);
  border-radius: var(--radius);
}

.amenity-item svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.amenity-item span {
  font-size: 0.875rem;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .amenities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .amenities-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ===== Features ===== */
.features {
  padding: 6rem 0;
  background-color: var(--background);
}

.features-grid {
  display: grid;
  gap: 2rem;
}

.feature-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background-color: var(--secondary);
  border-radius: var(--radius);
}

.feature-icon {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  background-color: rgba(160, 113, 74, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

.feature-content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.feature-content p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Gallery ===== */
.gallery {
  padding: 6rem 0;
  background-color: var(--secondary);
}

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

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

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

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: transparent;
  transition: background-color var(--transition);
}

.gallery-item:hover::after {
  background-color: rgba(61, 52, 40, 0.2);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(61, 52, 40, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--primary-foreground);
  padding: 0.5rem;
  transition: opacity var(--transition);
}

.lightbox-close:hover {
  opacity: 0.8;
}

.lightbox-close svg {
  width: 2rem;
  height: 2rem;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-foreground);
  padding: 0.5rem;
  transition: opacity var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 0.8;
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-prev svg,
.lightbox-next svg {
  width: 2.5rem;
  height: 2.5rem;
}

.lightbox-content {
  max-width: 80%;
  max-height: 80%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

/* ===== Location ===== */
.location {
  padding: 6rem 0;
  background-color: var(--background);
}

.location-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

.location-text {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

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

.nearby-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background-color: var(--secondary);
  border-radius: var(--radius);
}

.nearby-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

.nearby-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.nearby-distance {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.location-image {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
}

.location-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .location-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Booking ===== */
.booking {
  padding: 6rem 0;
  background-color: var(--primary);
}

.booking-content {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.booking-text {
  color: rgba(250, 248, 245, 0.8);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.booking-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .booking-buttons {
    flex-direction: row;
  }
}

/* ===== Footer ===== */
.footer {
  background-color: var(--foreground);
  color: var(--primary-foreground);
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: var(--primary-foreground);
  margin-bottom: 1rem;
  display: block;
}

.footer-brand p {
  color: rgba(250, 248, 245, 0.7);
  line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a,
.footer-contact li,
.footer-contact a {
  color: rgba(250, 248, 245, 0.7);
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--primary-foreground);
}

.footer-bottom {
  border-top: 1px solid rgba(250, 248, 245, 0.2);
  padding-top: 2rem;
  text-align: center;
  color: rgba(250, 248, 245, 0.5);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
