/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --color-bg:           #ffffff;
  --color-bg-alt:       #f7f6f4;
  --color-text:         #1a1a1a;
  --color-text-muted:   #666666;
  --color-accent:       #2c5f2e;   /* deep green — park / garden */
  --color-accent-light: #e8f0e8;
  --color-border:       #e0ddd8;
  --color-hero-overlay: rgba(0, 0, 0, 0.42);

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --radius:     6px;
  --max-width:  1100px;
  --section-pad: clamp(3rem, 6vw, 5rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px; /* account for sticky header */
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-address {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   Language Switcher
   ============================================================ */
.lang-switcher {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.lang-btn {
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
}

.lang-btn:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.lang-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ============================================================
   Hero
   ============================================================ */
#hero {
  position: relative;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-hero-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 2rem;
  color: #fff;
}

.hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.75rem;
}

.hero-address {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.hero-location {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.hero-price {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  background: var(--color-accent);
  padding: 0.35rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.hero-teaser {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  max-width: 60ch;
  opacity: 0.88;
  line-height: 1.55;
}

/* ============================================================
   Sections — shared
   ============================================================ */
.section {
  padding: var(--section-pad) 1.5rem;
}

.section--alt {
  background: var(--color-bg-alt);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 3rem;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* ============================================================
   Option banner
   ============================================================ */
.option-banner {
  background: #b45309;
  color: #fff;
  text-align: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: sticky;
  top: 64px;
  z-index: 99;
  margin-top: 64px;
}

.option-banner__badge {
  background: #fff;
  color: #b45309;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ============================================================
   Top CTA strip
   ============================================================ */
.top-cta {
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.65rem 1.5rem;
  font-size: 0.85rem;
}

.top-cta__links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.top-cta__link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.92;
  transition: opacity 0.15s;
}

.top-cta__link:hover {
  opacity: 1;
}

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

.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
}

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

.gallery-grid a:hover img {
  transform: scale(1.05);
}

/* ============================================================
   Description
   ============================================================ */
.intro-text {
  font-size: 1.075rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 1.75rem;
  max-width: 72ch;
  line-height: 1.6;
}

.desc-text {
  max-width: 72ch;
  color: var(--color-text);
}

.desc-text p {
  margin-bottom: 1.1rem;
}

.desc-text p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Key Facts Table
   ============================================================ */
.facts-table {
  display: grid;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 700px;
}

.fact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--color-border);
}

.fact-row:last-child {
  border-bottom: none;
}

.fact-row dt,
.fact-row dd {
  padding: 0.7rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.fact-row dt {
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border-right: 1px solid var(--color-border);
}

.fact-row--epc dt {
  font-weight: 700;
  color: var(--color-text);
}

.epc-badge {
  display: inline-block;
  padding: 0.15rem 0.65rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
}

.epc-a {
  background: #00b050;
  color: #fff;
}

/* ============================================================
   Location
   ============================================================ */
.location-text {
  max-width: 72ch;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ============================================================
   Floor Plans
   ============================================================ */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.plans-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #fff;
  text-decoration: none;
  transition: box-shadow 0.2s;
}

.plans-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.plans-item img {
  width: 100%;
  height: auto;
  display: block;
}

.plans-label {
  display: block;
  text-align: center;
  padding: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}

@media (max-width: 600px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Map
   ============================================================ */
.map-wrapper {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16 / 7;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 600px) {
  .map-wrapper {
    aspect-ratio: 4 / 3;
  }
}

/* ============================================================
   Downloads
   ============================================================ */
.download-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 600px;
}

.download-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  background: var(--color-bg);
  transition: background 0.15s, border-color 0.15s;
}

.download-link:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent);
}

.download-icon {
  width: 1.75rem;
  height: 1.75rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

/* ============================================================
   Contact
   ============================================================ */
.contact-intro {
  margin-bottom: 1.75rem;
  max-width: 60ch;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: opacity 0.15s, transform 0.15s;
}

.contact-link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.contact-link--email {
  background: var(--color-accent);
  color: #fff;
}

.contact-link--phone {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.contact-icon {
  font-size: 1.1rem;
}

/* ============================================================
   Offer CTA
   ============================================================ */
.offer-cta {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.offer-cta__text strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--color-accent);
}

.offer-cta__text p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
}

.offer-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.offer-cta__btn:hover {
  opacity: 0.85;
}

@media (max-width: 600px) {
  .offer-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .offer-cta__btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

/* ============================================================
   Responsive — Tablet
   ============================================================ */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .facts-table {
    max-width: 100%;
  }
}

/* ============================================================
   Responsive — Mobile
   ============================================================ */
@media (max-width: 600px) {
  .header-address {
    display: none;
  }

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

  /* Stack label / value vertically on small screens */
  .fact-row {
    grid-template-columns: 1fr;
  }

  .fact-row dt {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.4rem;
  }

  .fact-row dd {
    padding-top: 0.4rem;
  }

  .contact-links {
    flex-direction: column;
  }

  .contact-link {
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
