:root {
  /* Dunna Invest brand tokens — see BRAND.md.
     gold #D6BD94 primary, navy #012440 backgrounds/text, graphite #202020.
     --gold-deep is a derived darker gold for legible interactive accents on light bg. */
  --sand: #f4f1ea;
  --paper: #fffdfa;
  --ink: #012440;         /* brand navy — primary text/deep */
  --muted: #5a6b78;       /* navy-tinted gray */
  --line: #dedbd2;
  --teal: #012440;        /* brand navy */
  --teal-dark: #01182b;   /* deeper navy for gradients/overlays */
  --orange: #b8975a;      /* gold-deep (derived) — interactive accent */
  --orange-soft: #d6bd94; /* brand gold */
  --shadow: 0 18px 42px rgba(1, 36, 64, 0.12);
  --serif: "Alexandria", ui-sans-serif, system-ui, sans-serif; /* display */
  --sans: "Arial Rounded MT Bold", "Arial Rounded MT", "Varela Round", Arial, sans-serif; /* rounded body */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* O header e `position: fixed` (132px no desktop, 84px no mobile). Sem esta
     folga o alvo de qualquer ancora (#contato, #interesse, #book) para embaixo
     da barra e o usuario ve a secao anterior. */
  scroll-padding-top: 148px;
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 96px;
  }
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 132px;
  padding: 0 34px;
  background: rgba(246, 244, 238, 0.86);
  border-bottom: 1px solid rgba(18, 63, 72, 0.08);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(246, 244, 238, 0.94);
  box-shadow: 0 10px 32px rgba(5, 35, 41, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  color: var(--orange);
  font-family: var(--sans);
  font-size: 1.35rem;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  justify-content: center;
  color: #1b3a52;
  font-size: 1.05rem;
  font-weight: 400;
}

.site-nav a,
.text-link,
.property-body a {
  transition: color 160ms ease;
}

.site-nav a:hover,
.text-link:hover,
.property-body a:hover {
  color: var(--orange);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 400;
}

.header-cta {
  justify-self: end;
  min-height: 42px;
  padding: 0 23px;
  background: var(--orange);
  color: white;
  box-shadow: 0 10px 26px rgba(184, 151, 90, 0.24);
}

.menu-button {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 30;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(18, 63, 72, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms ease, opacity 160ms ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Inline SVG icon system (replaces text glyphs/emoji) ─────────────── */
.ico {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico-fill {
  fill: currentColor;
  stroke: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}


.hero {
  position: relative;
  min-height: 860px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--teal-dark);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
  animation: slow-drift 16s ease-in-out infinite alternate;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(1, 18, 32, 0.72) 0%, rgba(1, 28, 48, 0.56) 42%, rgba(1, 28, 48, 0.1) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(1, 16, 32, 0.68));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 48px));
  margin-left: clamp(24px, 9vw, 156px);
  padding: 140px 0 96px;
  color: white;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--orange-soft);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(2.3rem, 4.6vw, 4.2rem);
  font-weight: 300;
}

h1 em {
  display: block;
  margin-top: 0.3em;
  color: var(--orange);
  font-style: italic;
  font-weight: 300;
}

.hero-content h1 {
  font-size: clamp(2rem, 3.6vw, 3.3rem);
  font-weight: 600;
}

.hero-content h1 em {
  font-weight: 600;
}

.hero-copy {
  max-width: 590px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.8vw, 1.24rem);
  font-weight: 300;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 54px;
  padding: 0 27px;
  border: 1px solid transparent;
  text-align: center;
}

.button.primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 16px 32px rgba(184, 151, 90, 0.25);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.ticker {
  overflow: hidden;
  background: var(--teal);
  color: white;
  padding: 16px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}

.ticker span {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  margin-right: 36px;
}


.section {
  padding: clamp(78px, 10vw, 134px) clamp(24px, 8vw, 150px);
}

.about {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(380px, 1.1fr);
  gap: clamp(52px, 9vw, 116px);
  align-items: center;
  background: var(--paper);
}

.section-copy h2,
.listing-heading h2,
.center-heading h2,
.contact h2 {
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  font-weight: 700;
}

.section-copy p:not(.eyebrow) {
  max-width: 640px;
  color: #4a5a66;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feature-card,
.quote-card,
.property-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 168px;
  padding: 30px;
}

.feature-card .icon {
  display: block;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 1.8rem;
}

.feature-card h3,
.property-card h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.4rem;
}

.property-card h3 {
  font-size: 1.12rem;
}

.feature-card p,
.property-card p {
  color: var(--muted);
}

.results {
  background: var(--teal);
  color: white;
  padding: clamp(82px, 10vw, 126px) clamp(24px, 12vw, 180px);
}

.results h2 {
  max-width: 680px;
  margin-bottom: 58px;
  font-size: clamp(2.1rem, 3.6vw, 3.6rem);
  font-weight: 500;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stats div {
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  padding-top: 22px;
}

.stats strong {
  display: block;
  color: var(--orange);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
  line-height: 1.05;
  white-space: nowrap;
}

.stats span {
  color: #ffffff;
}

.testimonials {
  background: var(--sand);
}

.center-heading {
  max-width: 760px;
  margin: 0 auto 58px;
  text-align: center;
}

.testimonial-grid,
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.property-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-card {
  padding: 30px;
}

/* ---- Time Dunna ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.team-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.team-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 22%;
}

.team-body {
  padding: 24px 26px 28px;
}

.team-body h3 {
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.team-role {
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.team-body p:last-child {
  color: var(--muted);
  font-size: 0.96rem;
}

.stars {
  display: block;
  margin-bottom: 18px;
  color: var(--orange);
  letter-spacing: 0.12em;
}

.quote-card p {
  color: #012440;
  font-size: 1.08rem;
}

.quote-card footer {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.quote-card strong {
  display: block;
  color: var(--ink);
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e5d3bd, #f9efe3);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 400;
}

.listings {
  background: var(--paper);
}

.listing-heading {
  display: flex;
  gap: 32px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 42px;
}

.listing-heading h2 {
  max-width: 860px;
  margin-bottom: 0;
}

.text-link {
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 400;
}

.property-card {
  position: relative;
  overflow: hidden;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(18, 63, 72, 0.16);
}

.property-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.property-card:hover img {
  transform: scale(1.07);
}

/* Whole-card stretched link — every spot navigates to the property page */
.property-card .card-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
}

/* Keep CTA visually reactive even though the cover captures the click */
.property-card:hover .property-body > strong,
.property-card:hover .property-body a {
  color: var(--orange);
}

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.88);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 400;
  backdrop-filter: blur(10px);
}

.property-body {
  display: grid;
  gap: 14px;
  padding: 24px 26px 28px;
}

.property-body > strong {
  color: var(--orange);
  font-family: var(--serif);
  font-size: 1.02rem;
}

.property-body dl {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 2px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.property-body dt {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.property-body dd {
  margin: 0;
  color: #4a5a66;
  font-weight: 400;
}

.property-body a {
  width: fit-content;
  color: var(--ink);
  font-weight: 400;
}

.contact {
  background: var(--teal);
  color: white;
  padding: clamp(76px, 9vw, 120px) 24px;
  text-align: center;
}

.contact-inner {
  max-width: 820px;
  margin: 0 auto;
}

.contact p:not(.eyebrow) {
  margin: 0 auto 32px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.16rem;
}

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

.footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 48px;
  padding: 62px clamp(24px, 12vw, 180px) 28px;
  background: var(--teal-dark);
  color: rgba(255, 255, 255, 0.74);
}

.footer .brand,
.footer h2 {
  color: white;
}

.footer h2 {
  margin-bottom: 16px;
  font-family: var(--sans);
  font-size: 1rem;
}

.footer a:not(.brand),
.footer p {
  display: block;
  margin: 0 0 8px;
}

.footer small {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slow-drift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }

  .site-nav {
    position: fixed;
    top: 132px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 10px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 690px;
  }

  .about,
  .testimonial-grid,
  .team-grid,
  .property-grid,
  .stats,
  .footer {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listing-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (min-width: 981px) {
  .menu-button {
    display: none;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 1.08rem;
  }

  .hero {
    min-height: 660px;
  }

  .hero-content {
    width: auto;
    max-width: none;
    margin: 0 20px;
  }

  .hero-copy {
    max-width: 100%;
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 3.25rem);
  }

  h1 em {
    max-width: 9ch;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 70px 20px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .quote-card {
    padding: 24px;
  }

  .results {
    padding: 72px 20px;
  }
}

/* ── Property detail pages (imoveis/<slug>.html) ─────────────────────── */
.detail-main {
  padding-top: 132px;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--teal-dark);
}

.detail-hero .hero-media {
  background-position: center;
  background-size: cover;
}

.detail-hero .hero-shade {
  background:
    linear-gradient(180deg, rgba(1, 18, 32, 0.15) 0%, rgba(1, 18, 32, 0.78) 100%);
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) clamp(24px, 8vw, 80px);
  color: white;
}

.detail-back {
  display: inline-block;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 400;
}

.detail-hero-content h1 {
  margin-bottom: 12px;
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.detail-location {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
}

.detail-tagline {
  max-width: 46ch;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.6;
}

.detail-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.detail-seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: var(--orange-soft);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.detail-price {
  display: inline-block;
  margin-right: 16px;
  color: var(--orange-soft);
  font-weight: 400;
  font-size: 1.2rem;
}

.detail-wrap {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 8vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

.detail-gallery {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 clamp(24px, 8vw, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.detail-gallery img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.detail-section h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin-bottom: 18px;
}

.detail-section p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 62ch;
}

.detail-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.detail-features li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
}

.detail-features li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--orange);
}

.detail-aside {
  position: sticky;
  top: 128px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.detail-aside h3 {
  font-family: var(--serif);
  margin-bottom: 16px;
}

.detail-specs {
  margin: 0 0 24px;
}

.detail-specs > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.detail-specs dt {
  color: var(--muted);
  font-weight: 400;
}

.detail-specs dd {
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  text-align: right;
}

.detail-region {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.98rem;
}

.lead-form {
  display: grid;
  gap: 12px;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

.lead-form button {
  min-height: 50px;
  border: none;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}

.lead-form small {
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .detail-wrap {
    grid-template-columns: 1fr;
  }
  .detail-aside {
    position: static;
  }
}

/* ── Logo image in header/footer ─────────────────────────────────────── */
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

.footer .brand-logo {
  height: 38px;
}

/* ── Empreendimentos dropdown (hover desktop / click mobile) ──────────── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-dropdown-toggle .caret {
  font-size: 0.7em;
  transition: transform 160ms ease;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin-top: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  z-index: 40;
}

.nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--ink);
  font-weight: 400;
  white-space: nowrap;
}

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

/* Desktop: reveal on hover */
@media (min-width: 981px) {
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-dropdown:hover .caret {
    transform: rotate(180deg);
  }
}

/* Mobile: reveal on click (inline inside the drawer) */
@media (max-width: 980px) {
  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin: 4px 0 4px 12px;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
  }
  .nav-dropdown:not(.is-open) .nav-dropdown-menu {
    display: none;
  }
  .nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-dropdown.is-open .caret {
    transform: rotate(180deg);
  }
}

/* ── Gap between detail hero and gallery ─────────────────────────────── */
.detail-gallery {
  margin-top: clamp(28px, 5vw, 56px);
}

/* ── Destination "Conheça <cidade>" section (detail pages) ───────────── */
.location-section {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 8vw, 80px) clamp(40px, 6vw, 72px);
}

.location-head {
  max-width: 760px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  text-align: center;
}

.location-head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
}

.location-head p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.location-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.location-gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* First image spans full width when there are 3+ photos, for a hero feel */
.location-gallery img:first-child:nth-last-child(n + 3) {
  grid-column: 1 / -1;
  height: clamp(280px, 42vw, 460px);
}

/* ── Property photo carousel (detail pages) ──────────────────────────── */
.detail-carousel {
  position: relative;
  width: min(1100px, 100%);
  margin: clamp(28px, 5vw, 56px) auto 0;
  padding: 0 clamp(24px, 8vw, 80px);
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform 550ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  margin: 0;
}

.carousel-slide img {
  width: 100%;
  height: clamp(320px, 46vw, 560px);
  object-fit: cover;
  display: block;
}

.carousel-arrow {
  position: absolute;
  top: calc(50% - 22px);
  z-index: 2;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(1, 36, 64, 0.55);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 160ms ease;
}

.carousel-arrow:hover {
  background: var(--orange);
}

.carousel-arrow.prev {
  left: clamp(30px, 9vw, 92px);
}

.carousel-arrow.next {
  right: clamp(30px, 9vw, 92px);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: background 160ms ease, width 160ms ease;
}

.carousel-dot.is-active {
  width: 26px;
  background: var(--orange);
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition: none;
  }
}


/* ── Icon placement in existing components ───────────────────────────── */
.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ticker .ico {
  color: var(--orange-soft);
}

.stars {
  display: inline-flex;
  gap: 4px;
  font-size: 1.1rem;
}

.detail-back,
.detail-region,
.footer .contact-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.detail-seal .ico,
.button .ico,
.text-link .ico,
.property-body a .ico,
.lead-form button .ico,
.nav-dropdown-toggle .ico {
  width: 0.95em;
  height: 0.95em;
}

.carousel-arrow .ico {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 2;
}

/* ── Mobile header: bigger logo, compact bar, hamburger drawer ───────── */
@media (max-width: 980px) {
  .site-header {
    min-height: 84px;
    padding: 0 18px;
  }

  .brand-logo {
    height: 52px;
  }

  .site-nav {
    top: 84px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }

  .site-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    height: 48px;
  }
}

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

/* ── "Construa seu lar com a Dunna Invest" — house-model gallery ──────── */
.build-section {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
}

.build-head {
  max-width: 760px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  padding: 0 clamp(24px, 8vw, 80px);
  text-align: center;
}

.build-head h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
}

.build-head p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

/* Reuses .detail-carousel; the head already supplies the top spacing. */
.build-carousel {
  margin-top: 0;
}

.location-credits {
  margin: 18px auto 0;
  max-width: 900px;
  padding: 0 20px;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  opacity: 0.75;
}

/* ── Ajustes do hero pedidos pela cliente (2026-08-17) ────────────────── */

/* Logo maior no header e no rodapé. O header tem 132px de altura, entao
   64px cabe sem alterar o layout da barra. */
.brand-logo {
  height: 64px;
}

.footer .brand-logo {
  height: 60px;
}

/* Primeira linha do titulo em caixa alta, com letter-spacing um pouco maior
   para compensar a perda de ritmo das minusculas. */
.hero-content h1 .hero-line-caps {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.012em;
}

/* Segunda linha sai do italico, mantendo a cor dourada que a diferencia. */
.hero-content h1 em {
  font-style: normal;
}

/* Paragrafo do hero justificado. hyphens evita rios de espaco em branco nas
   larguras estreitas, onde o justificado abre buracos entre as palavras. */
.hero-copy {
  text-align: justify;
  hyphens: auto;
}

/* No mobile a coluna fica estreita demais para justificar sem deformar. */
@media (max-width: 640px) {
  .hero-copy {
    text-align: left;
    hyphens: manual;
  }

  .brand-logo {
    height: 52px;
  }
}

/* ── Card orfao na grade de empreendimentos ───────────────────────────── */
/* A grade tem duas colunas, entao um numero impar de cards deixa o ultimo
   sozinho na linha. Nesse caso ele ocupa a linha inteira e vira destaque.
   A imagem precisa de outro aspect-ratio: mantida em 4/3, com o dobro da
   largura ela ficaria alta demais. Vale so acima de 980px, que e onde a
   grade deixa de ser de coluna unica. */
@media (min-width: 981px) {
  .property-grid > .property-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .property-grid > .property-card:last-child:nth-child(odd) img {
    aspect-ratio: 21 / 8;
  }
}

/* ── Casas conceito ───────────────────────────────────────────────────── */
/* Secao da home (#casas-conceito): galeria de tipologias + um card por
   projeto com ficha. Vem depois dos empreendimentos, porque o lead chega
   pelo lote e so entao quer ver o que da para construir nele. */
.concepts {
  background: var(--paper);
}

.concepts-intro {
  max-width: 720px;
  margin: 0 0 clamp(28px, 4vw, 44px);
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

/* Tres colunas fixas, nao auto-fit: com as fotos em altura livre e o numero de
   colunas que decide quais proporcoes caem lado a lado, e a ordem da lista em
   js/properties.js foi montada para tres. */
.concepts-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 16px;
}

@media (max-width: 900px) {
  .concepts-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Altura livre: as paginas dos books tem proporcoes diferentes entre si, e
   qualquer altura fixa aqui obriga a escolher entre cortar a fachada (`cover`)
   ou emoldurar a foto com tarjas de fundo (`contain`). Com altura automatica a
   foto aparece inteira, ocupando a largura da celula. */
.concepts-gallery img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* A primeira imagem abre a galeria em largura total, como na secao de destino.
   Ela e panoramica por escolha da lista: uma foto quadrada nessa posicao viraria
   um bloco alto demais. */
.concepts-gallery img:first-child {
  grid-column: 1 / -1;
}

.concepts-projects {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  margin-top: clamp(40px, 6vw, 72px);
}

.concept-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.9fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--sand);
}

/* Primeira foto do projeto em destaque, as demais em tira embaixo. */
.concept-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 12px;
}

.concept-photos img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.concept-photos img:first-child {
  grid-column: 1 / -1;
}

.concept-body h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 700;
}

.concept-body p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

.concept-body dl {
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}

.concept-body dl > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.6fr) 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.concept-body dt {
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.concept-body dd {
  margin: 0;
  font-weight: 500;
}

.concepts-credits {
  margin: clamp(24px, 3vw, 36px) 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .concept-card {
    grid-template-columns: 1fr;
  }

  .concept-body dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Link da secao "construa seu lar" (paginas de imovel) para as casas conceito. */
.build-link {
  margin: clamp(20px, 3vw, 32px) 0 0;
  text-align: center;
}

/* No mobile o respiro entre as fotos encolhe; as duas colunas ja vem da regra
   de 900px. Em coluna unica as 13 fotos empilhadas viravam metros de rolagem. */
@media (max-width: 640px) {
  .concepts-gallery {
    gap: 10px;
  }
}

/* ── Header: nav encostando na logo (2026-08-20) ──────────────────────── */
/* O grid do header e 1fr auto 1fr: quando o menu central cresce, ele empurra
   as colunas laterais abaixo do conteudo e passa por cima da logo. A logo
   nao muda de tamanho — quem cede e a tipografia do menu, que encolhe por
   clamp ate a barra caber. */
@media (min-width: 861px) {
  .site-header {
    column-gap: clamp(12px, 2vw, 32px);
    padding: 0 clamp(16px, 2.4vw, 34px);
  }

  .site-nav {
    gap: clamp(12px, 2.2vw, 40px);
    font-size: clamp(0.82rem, 1.05vw, 1.05rem);
    white-space: nowrap;
  }

  .header-cta {
    padding: 0 clamp(14px, 1.6vw, 23px);
    font-size: clamp(0.82rem, 1.05vw, 1rem);
    white-space: nowrap;
  }
}

/* ── Book CTA: download com captura de lead (2026-08-20) ──────────────── */
/* Bloco de destaque em navy: e o unico fundo escuro do corpo da pagina de
   imovel, entao ele para o scroll sem precisar de nenhum recurso extra. */
.book-cta {
  margin: 64px auto;
  padding: 0 24px;
  max-width: 1200px;
}

.book-cta-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 28px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(214, 189, 148, 0.22), transparent 58%),
    linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  box-shadow: 0 26px 60px rgba(1, 36, 64, 0.28);
  color: var(--paper);
}

.book-cta .eyebrow {
  color: var(--orange-soft);
}

.book-cta h2 {
  margin: 6px 0 14px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.18;
  color: var(--paper);
}

.book-cta-copy p {
  margin: 0;
  color: rgba(255, 253, 250, 0.78);
  line-height: 1.6;
}

.book-cta-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
}

.book-cta-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 253, 250, 0.9);
}

.book-cta-list .ico {
  flex: none;
  color: var(--orange-soft);
}

/* O formulario fica num cartao claro sobre o navy — o contraste ja diz onde
   clicar, sem precisar de outra cor de destaque. */
.book-form {
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(1, 24, 43, 0.24);
}

.book-form label {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.book-form input {
  background: var(--sand);
}

.book-form button {
  margin-top: 4px;
}

.book-form.is-sent button {
  background: var(--teal);
}

@media (max-width: 900px) {
  .book-cta {
    margin: 44px auto;
    padding: 0 16px;
  }

  .book-cta-inner {
    grid-template-columns: 1fr;
  }
}

/* ── Casas conceito: cabecalho e texto de apoio centralizados ──────────── */
/* Pedido da cliente (2026-08-28): a secao das casas e a unica da home cujo
   texto de apoio e um argumento, nao uma legenda de grade. Centralizado ele
   le como abertura de secao; alinhado a esquerda competia com o link ao lado.
   Regra do arquivo: bloco novo vai no FIM, senao o de baixo ganha por ordem. */
#casas-conceito .listing-heading {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

#casas-conceito .concepts-intro {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

/* ── Galeria de destino: tres colunas fixas ────────────────────────────── */
/* Era `auto-fit, minmax(260px, 1fr)`, entao o numero de colunas variava com a
   largura da tela e a ultima linha abria buraco quando a conta nao fechava.
   Com tres colunas fixas a conta e sempre a mesma: a primeira foto ocupa a
   linha inteira e as demais vem em multiplos de 3. Cada galeria em
   js/properties.js segue 1 + 3n. Pedido da cliente (2026-08-28). */
@media (min-width: 861px) {
  .location-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── Ficha de casa conceito com exatamente 3 fotos ─────────────────────── */
/* A grade e de 3 colunas com a primeira foto em linha cheia, entao 1 + 3n
   fecha. A ficha da Casa 380 m2 so tem 3 renders no material da ARK, e as
   duas restantes deixavam um buraco na ultima linha. Com duas colunas as
   duas fecham a linha. Vale para qualquer ficha de 3 fotos. */
.concept-photos:has(img:nth-child(3):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
