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

:root {
  --color-sand: #d4b896;
  --color-sand-light: #f5efe6;
  --color-sea: #5a8a9a;
  --color-sea-dark: #3d6b7a;
  --color-text: #3a3a3a;
  --color-text-light: #6b6b6b;
  --color-white: #ffffff;
  --color-bg-alt: #faf8f5;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
}

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

a:hover {
  color: var(--color-sea-dark);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-white);
  font-weight: bold;
}

.nav.scrolled .nav-logo {
  color: var(--color-text);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--color-white);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.nav.scrolled .nav-menu a {
  color: var(--color-text);
}

.nav-menu a:hover {
  color: var(--color-sand);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: background 0.3s;
}

.nav.scrolled .nav-toggle span {
  background: var(--color-text);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* TODO: replace with actual background image */
  background: linear-gradient(135deg, var(--color-sea) 0%, var(--color-sea-dark) 50%, var(--color-sand) 100%);
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  padding: 0 2rem;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  font-weight: normal;
  letter-spacing: 0.02em;
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--color-sand);
  color: var(--color-white);
  font-size: 1rem;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: background 0.3s, transform 0.2s;
}

.btn:hover {
  background: var(--color-sea);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* ===== Sections ===== */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-alt {
  max-width: 100%;
  background: var(--color-bg-alt);
}

.section-alt > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: normal;
  color: var(--color-text);
}

/* ===== Gallery Carousel ===== */
.gallery-carousel {
  max-width: 900px;
  margin: 0 auto;
}

.slide-placeholder {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, var(--color-sand-light) 0%, #e8ddd0 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-text-light);
}

.gallery-carousel .swiper-button-prev,
.gallery-carousel .swiper-button-next {
  color: var(--color-sea);
}

.gallery-carousel .swiper-pagination-bullet-active {
  background: var(--color-sea);
}

/* ===== Property Grid ===== */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}

.property-card {
  background: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.property-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--color-sea-dark);
}

.property-card p {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== Contact ===== */
.contact-container {
  text-align: center;
}

.contact-intro {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
}

.contact-icon {
  width: 28px;
  height: 28px;
  color: var(--color-sea);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.contact-item a {
  font-size: 1.1rem;
  color: var(--color-text);
}

.contact-item a:hover {
  color: var(--color-sea);
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 2rem;
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    color: var(--color-text);
    font-size: 1.1rem;
  }

  .contact-methods {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .property-grid {
    padding: 0;
  }
}
