/* ===================== DESIGN TOKENS ===================== */
:root {
  --bg:        #ffffff;
  --bg-soft:   #f6f4f1;
  --ink:       #1c2522;
  --ink-2:     #2a3531;
  --text:      #3a423f;
  --muted:     #79827d;
  --accent:    #b07d4f;
  --accent-dk: #946239;
  --line:      #e8e2da;
  --on-dark:   #eef0ec;
  --on-dark-dim:#aab2ac;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 18px 50px rgba(28, 37, 34, 0.10);
  --shadow-sm: 0 8px 24px rgba(28, 37, 34, 0.08);
  --header-h:  74px;
  --maxw:      1200px;
  --ease:      cubic-bezier(.4, 0, .2, 1);
}

/* ===================== RESET / PAGE SHELL ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Scrolling page: intro on the background, then the floating window, then footer */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ===================== HELPERS ===================== */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.view-pad  { padding-top: 80px; padding-bottom: 84px; }
.center    { text-align: center; }
.narrow    { max-width: 760px; margin-inline: auto; }
.muted     { color: var(--muted); }
.view-head { margin-bottom: 40px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.eyebrow.light { color: #e7c9ab; }
.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.15; font-weight: 800;
  color: var(--ink); margin: 0 0 18px; letter-spacing: -0.01em;
}
.lead { font-size: 1.08rem; color: var(--text); margin: 0 0 22px; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: transform .18s var(--ease), background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(176,125,79,.32); }
.btn-accent:hover { background: var(--accent-dk); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn.full { width: 100%; }

/* ===================== HEADER ===================== */
.site-header { position: sticky; top: 0; flex: 0 0 auto; background: var(--ink); box-shadow: 0 2px 14px rgba(0,0,0,.18); z-index: 40; }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; background: none; border: none; padding: 0; }
.brand-mark { color: var(--accent); font-size: 1.05rem; }
.brand-name { font-weight: 600; font-size: 1.22rem; letter-spacing: .02em; }
.brand-name strong { font-weight: 800; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-btn {
  position: relative; background: none; border: none; color: var(--on-dark-dim);
  font-weight: 600; font-size: .94rem; padding: 8px 14px; border-radius: 8px;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-btn:hover { color: #fff; }
.nav-btn.is-active { color: #fff; }
.nav-btn.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 1px;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.nav-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.header-tools { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; align-items: center; gap: 2px; background: rgba(255,255,255,.06); border-radius: 999px; padding: 3px; }
.lang-btn {
  background: none; border: none; color: var(--on-dark-dim);
  font-weight: 700; font-size: .8rem; padding: 5px 9px; border-radius: 999px;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.lang-btn:hover { color: #fff; }
.lang-btn.is-active { color: #fff; background: var(--accent); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }

/* ===================== INTRO LEAD (initial info, after the hero) ===================== */
.intro-lead { padding: 80px 0 84px; background: var(--bg); }
.intro-hint { margin: 22px 0 0; font-size: .95rem; font-weight: 600; letter-spacing: .01em; }

/* ===================== FLOATING WINDOW (swappable content) ===================== */
/* .stage = full-width band that holds the background the card pops from */
.stage {
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  padding: 84px 26px;
  background: linear-gradient(180deg, #f3efe9 0%, #ece4da 100%);
}
/* .window = the distinct, framed card that floats on top of the stage */
.window {
  width: 100%;
  max-width: 1120px;
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(28, 37, 34, 0.18), 0 6px 18px rgba(28, 37, 34, 0.08);
  overflow: hidden;            /* clips views/media to the rounded corners */
}
/* .window-body = wrapper for the swappable views */
.window-body { position: relative; }

/* Views: only the active one shows, with a soft fade-in */
.view[hidden] { display: none; }
.view.is-active { display: block; animation: viewIn .4s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- HERO / START (full-width, on the background) ---------- */
.hero-intro { position: relative; min-height: 74vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,27,24,.84) 0%, rgba(20,27,24,.55) 45%, rgba(20,27,24,.12) 100%); }
.hero-content { position: relative; max-width: 720px; padding-top: 64px; padding-bottom: 64px; }
.hero-title { color: #fff; font-size: clamp(2.1rem, 4.8vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 20px; }
.hero-sub { color: #e9ece8; font-size: 1.14rem; max-width: 560px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.stats-strip { background: var(--ink-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 44px 16px; border-right: 1px solid rgba(255,255,255,.08); }
.stat:last-child { border-right: none; }
.stat-num { font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-label { color: var(--on-dark-dim); font-size: .92rem; margin-top: 8px; }

/* ---------- ABOUT view ---------- */
.feature-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.feature-media img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin: 0 0 26px; }
.highlights li { position: relative; padding-left: 26px; color: var(--text); font-weight: 500; font-size: .98rem; }
.highlights li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(176,125,79,.16); }

/* ---------- GALLERY view ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { position: relative; padding: 0; border: none; background: #ddd; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; text-align: left;
  color: #fff; font-size: .86rem; font-weight: 600; background: linear-gradient(transparent, rgba(20,27,24,.78));
  opacity: 0; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.gallery-item:hover .gallery-cap, .gallery-item:focus-visible .gallery-cap { opacity: 1; transform: translateY(0); }

/* ---------- PLANS view ---------- */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.tab { background: #fff; border: 1.5px solid var(--line); color: var(--text); padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: .92rem; transition: all .2s var(--ease); }
.tab:hover { border-color: var(--accent); color: var(--accent); }
.tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab-panel { display: none; animation: viewIn .35s var(--ease); }
.tab-panel.is-active { display: block; }
.plan-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan-figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.plan-figure.single { max-width: 860px; margin: 0 auto; }
.plan-figure img { width: 100%; height: 440px; object-fit: contain; border-radius: var(--radius-sm); background: #faf9f7; cursor: zoom-in; transition: opacity .2s var(--ease); }
.plan-figure img:hover { opacity: .9; }
/* 3D plans rotated a quarter-turn; square box keeps the whole image visible after the turn. */
.plan-figure img.is-rotated { height: auto; aspect-ratio: 1 / 1; transform: rotate(270deg); }
.plan-figure figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-weight: 600; font-size: .9rem; }

/* ---------- LOCATION view ---------- */
.location-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.loc-list { display: grid; gap: 10px; }
.loc-list li { position: relative; padding-left: 28px; font-weight: 500; }
.loc-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.map-embed { position: relative; min-height: 360px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--bg-soft); }
.map-embed iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
.map-link { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--bg); color: var(--text); font-weight: 600; font-size: .85rem; text-decoration: none; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: color .2s var(--ease); }
.map-link:hover { color: var(--accent); }
.map-pin-sm { width: 16px; height: 16px; fill: var(--accent); }
.map-pin { width: 44px; height: 44px; fill: var(--accent); }

/* Click-to-load overlay (shown until the visitor consents to the Google map) */
.map-consent { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: var(--bg-soft); }
.map-consent .map-notice { max-width: 360px; margin: 0; color: var(--muted); font-weight: 500; font-size: .95rem; line-height: 1.5; }
.map-consent.is-hidden { display: none; }

/* ---------- Cookie consent bar ---------- */
.cookie-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 200;
  width: min(720px, calc(100% - 32px));
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 16px 20px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(28, 37, 34, 0.18);
}
.cookie-bar[hidden] { display: none; }
.cookie-text { margin: 0; flex: 1 1 260px; color: var(--text); font-size: .9rem; line-height: 1.5; }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-btn { padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .88rem; border: 1.5px solid transparent; transition: transform .18s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.cookie-btn:hover { transform: translateY(-2px); }
.cookie-accept { background: var(--accent); color: #fff; }
.cookie-accept:hover { background: var(--accent-dk); }
.cookie-decline { background: transparent; color: var(--muted); border-color: var(--line); }
.cookie-decline:hover { color: var(--text); border-color: var(--muted); }

/* Honeypot anti-spam field — visually hidden, off the tab order, ignored by users. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- CONTACT view ---------- */
.contact-grid { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.agent-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; text-align: center; box-shadow: var(--shadow-sm); }
.agent-photo { width: 130px; height: 130px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow-sm); }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; }
.agent-name { margin: 0; font-size: 1.4rem; color: var(--ink); font-weight: 800; }
.agent-role { margin: 4px 0 16px; color: var(--muted); font-size: .92rem; }
.agent-phone { display: block; font-size: 1.18rem; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.agent-email { display: block; color: var(--muted); font-size: .92rem; word-break: break-all; }

.contact-form { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; font: inherit; color: var(--text); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; }
.form-status { margin: 14px 0 0; font-weight: 700; font-size: .94rem; min-height: 1.2em; }
.form-status.ok { color: #2e7d4f; }
.form-status.err { color: #c0392b; }

/* ===================== FOOTER ===================== */
.site-footer { flex: 0 0 auto; background: var(--ink); color: var(--on-dark-dim); padding: 18px 0; z-index: 40; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-brand { color: #fff; font-size: 1.05rem; }
.footer-copy { margin: 0; font-size: .88rem; }

/* ===================== LIGHTBOX ===================== */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(15, 20, 18, .92); padding: 5vh 4vw; }
.lightbox.open { display: flex; animation: viewIn .25s var(--ease); }
.lb-img { max-width: 92vw; max-height: 88vh; width: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
/* Rotated plan in the lightbox: swap the max bounds so the quarter-turn still fits the viewport. */
.lb-img.lb-rotated { transform: rotate(270deg); max-width: 88vh; max-height: 92vw; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: none; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background-color .2s var(--ease); }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 22px; right: 22px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1040px) {
  .main-nav { gap: 0; }
  .nav-btn { padding: 8px 10px; font-size: .9rem; }
}
@media (max-width: 980px) {
  .feature-grid, .location-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .feature-media img { height: 340px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .agent-card { max-width: 380px; margin: 0 auto; }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 8px 16px 16px; box-shadow: 0 14px 30px rgba(0,0,0,.3);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease); z-index: 45;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-btn { padding: 13px 10px; text-align: left; font-size: 1rem; }
  .nav-btn.is-active::after { display: none; }
  .nav-btn.is-active { background: rgba(255,255,255,.07); }
}
@media (max-width: 600px) {
  .stage { padding: 36px 12px; }
  .window { border-radius: 16px; }
  .intro-lead { padding: 52px 0; }
  .view-pad { padding-top: 52px; padding-bottom: 52px; }
  .hero-intro { min-height: 70vh; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  /* Plans on mobile: trim the framing so the pictures sit close together
     and stop the fixed height from letterboxing big empty bands top & bottom. */
  .plan-pair { grid-template-columns: 1fr; gap: 10px; }
  .plan-figure { padding: 6px; }
  .plan-figure img { height: auto; background: transparent; }
  .plan-figure figcaption { margin-top: 8px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { justify-content: center; text-align: center; }
  .cookie-actions { flex: 1 1 100%; }
  .cookie-btn { flex: 1; }
}

/* ===================== MOTION PREFERENCES ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
