:root {
  --ink: #0f1c46;
  --muted: #616987;
  --green: #0f1c46;
  --green-2: #c8a246;
  --sage: #ddd4be;
  --sand: #e3c774;
  --cream: #faf7f1;
  --white: #fff;
  --line: rgba(15, 28, 70, .12);
  --shadow: 0 20px 55px rgba(15, 28, 70, .12);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
img { display: block; width: 100%; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 9999; padding: 12px 16px; background: var(--white); border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 20px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(15,28,70,.08);
  box-shadow: 0 5px 22px rgba(15,28,70,.07);
  backdrop-filter: blur(16px);
  transition: box-shadow .25s, background .25s;
}
.site-header.is-scrolled { background: rgba(255,255,255,.985); box-shadow: 0 10px 30px rgba(15,28,70,.11); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand-logo-shell { display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; background: rgba(255,255,255,.96); border-radius: 18px; box-shadow: 0 12px 30px rgba(15,28,70,.08); }
.brand-logo { width: clamp(150px, 18vw, 300px); height: auto; }
.footer-logo-shell { padding: 10px 14px; }
.brand-copy { display: grid; min-width: 0; line-height: 1.08; }
.brand-copy strong { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: .98rem; font-weight: 600; white-space: nowrap; }
.brand-copy small { margin-top: 5px; color: var(--green-2); font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 28px; color: var(--ink); font-size: .92rem; font-weight: 700; }
.main-nav a { transition: opacity .2s, color .2s; }
.main-nav a:hover { color: var(--green-2); opacity: 1; }
.nav-cta { padding: 12px 18px; color: var(--green); background: linear-gradient(135deg, #e0c36c, #c8a246); border-radius: 999px; box-shadow: 0 10px 24px rgba(200,162,70,.22); }
.nav-cta:hover { color: var(--green) !important; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; color: var(--ink); background: transparent; cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; }

.hero { position: relative; min-height: 780px; display: grid; align-items: center; color: var(--white); overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: url("assets/hero.jpg") center/cover no-repeat; transform: scale(1.02); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,16,46,.90) 0%, rgba(10,20,60,.72) 46%, rgba(10,20,60,.25) 78%, rgba(10,20,60,.12) 100%); }
.hero-content { position: relative; z-index: 1; padding-top: 150px; padding-bottom: 72px; }
.hero h1 { max-width: 830px; margin: 14px 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 6.25rem); font-weight: 500; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.hero-lead { max-width: 700px; margin: 0 0 34px; color: rgba(255,255,255,.82); font-size: clamp(1.04rem, 2vw, 1.22rem); }
.eyebrow { margin: 0 0 12px; color: var(--green-2); font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: var(--sand); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-weight: 760; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--green); background: linear-gradient(135deg, #e7cd80, #c8a246); box-shadow: 0 14px 28px rgba(200,162,70,.22); }
.button-primary:hover { background: linear-gradient(135deg, #edd48c, #d2ae56); }
.button-ghost { color: var(--white); border-color: rgba(227,199,116,.58); background: rgba(227,199,116,.10); backdrop-filter: blur(12px); }
.button-full { width: 100%; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 48px; color: rgba(255,255,255,.72); font-size: .86rem; }
.hero-trust span { position: relative; padding-left: 20px; }
.hero-trust span::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--sand); }

.section { padding: 112px 0; }
.section-soft { background: var(--cream); }
.section-dark { color: var(--white); background: linear-gradient(135deg, #0f1c46, #14275f); }
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: start; }
h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 4vw, 4rem); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.intro-copy { color: var(--muted); font-size: 1.05rem; }
.intro-copy p:first-child { margin-top: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 32px; }
.section-heading > p { max-width: 430px; margin: 0; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 36px; }
.filter { min-height: 42px; padding: 0 17px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; }
.filter:hover, .filter.is-active { color: var(--white); background: var(--green); border-color: var(--green); }
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.property-card { overflow: hidden; background: var(--white); border: 1px solid rgba(15,28,70,.08); border-radius: var(--radius); box-shadow: 0 10px 35px rgba(15,28,70,.05); transition: transform .25s, box-shadow .25s; }
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.property-card.is-hidden { display: none; }
.property-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #d9ddd9; }
.property-image img { height: 100%; object-fit: cover; transition: transform .5s; }
.property-card:hover .property-image img { transform: scale(1.045); }
.property-location { position: absolute; left: 16px; top: 16px; padding: 8px 12px; color: var(--white); background: rgba(15,28,70,.82); border-radius: 999px; backdrop-filter: blur(10px); font-size: .74rem; font-weight: 700; }
.property-body { padding: 25px; }
.property-type { margin: 0 0 8px; color: var(--green-2); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.property-body h3 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 500; line-height: 1.15; }
.property-body > p:not(.property-type) { min-height: 76px; margin: 0; color: var(--muted); font-size: .92rem; }
.property-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0; padding: 17px 0; border-block: 1px solid var(--line); list-style: none; }
.property-facts li { min-width: 0; }
.property-facts strong, .property-facts span { display: block; }
.property-facts strong { font-size: .88rem; }
.property-facts span { margin-top: 2px; color: var(--muted); font-size: .68rem; line-height: 1.25; }
.card-link { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; color: var(--green); background: transparent; font-weight: 800; cursor: pointer; }
.card-link span { transition: transform .2s; }
.card-link:hover span { transform: translateX(4px); }

.process { overflow: hidden; }
.process-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.process-intro { position: sticky; top: 130px; }
.process-intro > p:not(.eyebrow) { color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--green); font-weight: 800; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 62px 1fr; gap: 20px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.steps > li > span { color: var(--green-2); font-size: .78rem; font-weight: 850; letter-spacing: .12em; }
.steps h3 { margin: 0 0 5px; font-size: 1.17rem; }
.steps p { margin: 0; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: .6fr 1.4fr; gap: 90px; align-items: center; }
.about-mark { display: grid; place-items: center; padding: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 28px; box-shadow: 0 18px 55px rgba(0,0,0,.12); }
.about-mark img { max-width: 100%; height: auto; border-radius: 18px; background: #fff; }
.about-grid p:not(.eyebrow) { max-width: 780px; color: rgba(255,255,255,.72); font-size: 1.05rem; }
.about-points { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.about-points span { padding: 10px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: rgba(255,255,255,.9); font-size: .82rem; }

.financing { padding-block: 80px; }
.financing-card { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 58px; background: linear-gradient(180deg, #fffdf8, #f7f1e3); border: 1px solid rgba(200,162,70,.22); border-radius: 30px; }
.financing-card > div { max-width: 760px; }
.financing-card h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.financing-card p:not(.eyebrow) { color: var(--muted); }
.financing-card .button { flex: 0 0 auto; }

.faq-section { padding-top: 70px; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 25px 44px 25px 0; font-weight: 780; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: -4px 0 25px; color: var(--muted); }

.contact-section { color: var(--white); background: linear-gradient(135deg, #0f1c46, #14275f); }
.contact-direct { display: grid; place-items: center; text-align: center; }
.contact-copy { max-width: 820px; }
.contact-copy p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.contact-phone { display: inline-block; color: var(--white); font-family: Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.35rem); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; margin-top: 30px; }
.contact-note { margin-top: 18px !important; font-size: .82rem; }
.contact-creci { margin: 12px 0 0; color: rgba(255,255,255,.78); font-size: .92rem; letter-spacing: .22em; text-transform: uppercase; }

.site-footer { padding: 64px 0 28px; color: var(--white); background: #0a1538; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 50px; align-items: center; }
.footer-brand .brand-copy small { color: rgba(255,255,255,.55); }
.footer-grid > p { color: rgba(255,255,255,.58); font-size: .88rem; }
.footer-links { display: grid; gap: 8px; text-align: right; font-weight: 700; }
.footer-legal { display: flex; justify-content: space-between; gap: 40px; margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.42); font-size: .7rem; }
.footer-legal p:first-child { max-width: 850px; }

.floating-whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: inline-flex; align-items: center; gap: 9px; min-height: 52px; padding: 0 18px; color: var(--green); background: linear-gradient(135deg, #e6cb7d, #c8a246); border-radius: 999px; box-shadow: 0 14px 30px rgba(15,28,70,.18); font-size: .86rem; }
.floating-whatsapp span { font-size: 1.2rem; }

.project-modal { width: min(1080px, calc(100% - 30px)); max-height: calc(100vh - 30px); padding: 0; border: 0; border-radius: 28px; box-shadow: 0 40px 120px rgba(0,0,0,.32); overflow: auto; }
.project-modal::backdrop { background: rgba(10,17,45,.78); backdrop-filter: blur(6px); }
.modal-close { position: fixed; z-index: 3; width: 44px; height: 44px; margin: 16px 0 0 calc(min(1080px, 100vw - 30px) - 60px); border: 0; border-radius: 50%; color: var(--white); background: rgba(15,28,70,.86); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.modal-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); min-height: 680px; align-items: start; }
.modal-gallery { display: flex; flex-direction: column; gap: 12px; padding: 12px; background: #eceae4; align-self: start; }
.modal-gallery-item { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 0; padding: 10px; border-radius: 20px; background: linear-gradient(180deg, #f7f4ed 0%, #efebe2 100%); overflow: visible; }
.modal-gallery-item img { display: block; width: auto; max-width: 100%; height: auto; max-height: 720px; margin-inline: auto; object-fit: contain; object-position: center; }
.modal-gallery-item.is-featured { min-height: 0; }
.modal-content { padding: 56px 44px 40px; }
.modal-content h2 { font-size: clamp(2.2rem, 4vw, 3.7rem); }
.modal-description { color: var(--muted); }
.modal-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 25px 0; }
.modal-highlight { padding: 13px 10px; background: var(--cream); border-radius: 12px; }
.modal-highlight strong, .modal-highlight span { display: block; }
.modal-highlight strong { font-size: .9rem; }
.modal-highlight span { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.modal-content h3 { margin: 28px 0 10px; }
.modal-list { margin: 0 0 28px; padding-left: 20px; color: var(--muted); }
.modal-list li { margin: 6px 0; }

@media (max-width: 980px) {
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid, .faq-grid { grid-template-columns: 1fr; gap: 55px; }
  .process-intro { position: static; }
  .modal-layout { grid-template-columns: 1fr; }
  .modal-gallery-item img { max-height: 760px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 76px; }
  .brand-copy strong { max-width: 165px; overflow: hidden; text-overflow: ellipsis; font-size: .83rem; }
  .brand-copy small { font-size: .58rem; letter-spacing: .12em; }
  .site-header.is-menu-open { background: var(--white); }
  .site-header.is-menu-open .menu-toggle { color: var(--ink); }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; inset: 76px 14px auto; display: none; padding: 20px; background: var(--white); border: 1px solid rgba(15,28,70,.08); border-radius: 18px; box-shadow: var(--shadow); }
  .site-header.is-menu-open .main-nav { display: grid; }
  .main-nav > a:not(.nav-cta) { color: var(--ink) !important; }
  .nav-cta { text-align: center; }
  .hero { min-height: 720px; }
  .hero-shade { background: linear-gradient(180deg, rgba(10,20,60,.50), rgba(10,20,60,.86)); }
  .hero h1 { font-size: clamp(2.75rem, 14vw, 4.8rem); }
  .hero-trust { gap: 12px 22px; }
  .section { padding: 80px 0; }
  .intro-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-mark { width: min(300px, 75vw); margin-inline: auto; }
  .section-heading { display: grid; align-items: start; }
  .property-grid { grid-template-columns: 1fr; }
  .property-body > p:not(.property-type) { min-height: auto; }
  .financing-card { display: grid; padding: 34px 24px; }
  .footer-grid, .footer-legal { display: grid; grid-template-columns: 1fr; gap: 22px; }
  .footer-links { text-align: left; }
  .floating-whatsapp strong { display: none; }
  .floating-whatsapp { width: 54px; padding: 0; justify-content: center; }
  .modal-content { padding: 42px 24px 28px; }
  .modal-gallery { padding: 8px; gap: 8px; }
  .modal-gallery-item { padding: 6px; border-radius: 14px; }
  .modal-gallery-item img { width: 100%; max-height: none; }
  .modal-highlights { grid-template-columns: 1fr 1fr; }
  .modal-close { right: 26px; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
