/* =========================================================
   ARNOLD CONSULTORIA IMOBILIÁRIA — CORE STYLESHEET
   Design tokens derived from the official Brandbook v1.0
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  /* PRIMARY / GOLD */
  --color-primary: #715b39;
  --color-primary-container: #bfa37c;
  --color-on-primary: #ffffff;
  --color-inverse-primary: #e0c299;
  --color-primary-fixed: #fddeb3;

  /* SECONDARY / TERTIARY */
  --color-secondary: #5f5e5e;
  --color-tertiary: #5e5e5e;

  /* SURFACE SYSTEM */
  --color-surface: #fbf9f4;
  --color-surface-dim: #dbdad5;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-low: #f5f3ee;
  --color-surface-container: #f0eee9;
  --color-surface-container-high: #eae8e3;
  --color-surface-container-highest: #e4e2dd;
  --color-on-surface: #1b1c19;
  --color-on-surface-variant: #4d463c;
  --color-inverse-surface: #30312e;

  /* OUTLINE / ERROR */
  --color-outline: #7f766a;
  --color-outline-variant: #d0c5b8;
  --color-error: #ba1a1a;

  /* SEMANTIC ALIASES */
  --gold: #bfa37c;
  --gold-dark: #715b39;
  --gold-light: #e0c299;
  --gold-pale: #fddeb3;
  --charcoal: #1b1c19;
  --charcoal-mid: #4d463c;
  --cream: #fbf9f4;
  --cream-card: #ffffff;
  --grey-border: #d0c5b8;

  /* TYPOGRAPHY */
  --font-base: 'Manrope', sans-serif;

  /* RADIUS */
  --radius-sm: 0.125rem;
  --radius: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  /* SPACING */
  --container-max: 1280px;
  --gutter: 24px;
  --margin-mobile: 16px;
  --margin-desktop: 64px;
  --stack-sm: 8px;
  --stack-md: 16px;
  --stack-lg: 32px;

  /* ELEVATION */
  --shadow-card: 0 4px 20px rgba(27, 28, 25, 0.08);
  --shadow-card-hover: 0 8px 32px rgba(27, 28, 25, 0.14);
  --shadow-modal: 0 16px 48px rgba(27, 28, 25, 0.20);

  /* MOTION */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--margin-desktop);
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 var(--margin-mobile);
  }
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #242D4C;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .15s var(--ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--gold);
  color: #fff;
}

.btn-primary:hover {
  background: #a8896a;
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}

.btn-secondary:hover {
  background: rgba(27, 28, 25, .05);
}

.btn-ghost-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn-ghost-gold:hover {
  background: rgba(191, 163, 124, .12);
}

.btn-inverted {
  background: #fff;
  color: var(--charcoal);
}

.btn-inverted:hover {
  background: var(--gold-pale);
}

.btn-lg {
  padding: 17px 38px;
  font-size: 13px;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  line-height: 1.4;
}

.badge-sale {
  background: var(--charcoal);
  color: var(--gold);
}

.badge-launch {
  background: var(--gold);
  color: #fff;
}

.badge-reserved {
  background: var(--gold-pale);
  color: var(--gold-dark);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .8;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
  padding: 22px 0;
}

.site-header.scrolled {
  background: rgba(251, 249, 244, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--grey-border);
  padding: 14px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 90px;
  transition: filter .3s var(--ease);
}

.nav.on-dark .nav-logo img {
  filter: brightness(0) invert(1);
}

.site-header.scrolled .nav.on-dark .nav-logo img {
  filter: none;
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal-mid);
  transition: color .2s var(--ease);
  position: relative;
}

.nav.on-dark .nav-links a {
  color: rgba(255, 255, 255, .85);
}

.site-header.scrolled .nav.on-dark .nav-links a {
  color: var(--charcoal-mid);
}

.nav-links a:hover {
  color: var(--gold);
}

.nav.on-dark .nav-links a:hover {
  color: var(--gold-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}


/* Hamburger button — hidden on desktop, shown via media query */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: .3s;
}

.nav.on-dark .nav-toggle span {
  background: #fff;
}

.site-header.scrolled .nav.on-dark .nav-toggle span {
  background: var(--charcoal);
}


@media (max-width: 940px) {
  .site-header {
    padding: 14px 0;
  }

  .site-header.scrolled {
    padding: 10px 0;
  }

  .nav-logo img {
    height: 60px;
  }

  .footer-brand img {
    height: 70px;
  }

  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: rgba(27,28,25,.07);
    border: 1px solid rgba(27,28,25,.15);
    border-radius: var(--radius);
    cursor: pointer;
    width: 40px;
    height: 40px;
    transition: background .2s;
  }

  .nav-toggle:hover {
    background: rgba(27,28,25,.14);
  }

  .nav.on-dark .nav-toggle {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.18);
  }

  .nav.on-dark .nav-toggle:hover {
    background: rgba(255,255,255,.16);
  }

  .site-header.scrolled .nav.on-dark .nav-toggle {
    background: rgba(27,28,25,.07);
    border-color: rgba(27,28,25,.15);
  }
}

@media (max-width: 768px) {
  .nav-logo img {
    height: 48px;
  }

  .footer-brand img {
    height: 56px;
  }
}

/* Mobile menu — premium side panel */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1099;
  background: rgba(20, 21, 18, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .35s var(--ease);
}

.mobile-menu-overlay.open {
  opacity: 1;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  width: min(360px, 88vw);
  background: var(--charcoal);
  color: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .42s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Menu header */
.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}

.mobile-menu__logo img {
  height: 44px;
  filter: brightness(0) invert(1);
  opacity: .9;
}

.mobile-menu .close {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.75);
  font-size: 20px;
  cursor: pointer;
  transition: background .2s, color .2s;
  line-height: 1;
  flex-shrink: 0;
}

.mobile-menu .close:hover {
  background: rgba(191,163,124,.2);
  color: var(--gold-light);
}

/* Nav links */
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 0;
}

.mobile-menu a:not(.btn) {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,.72);
  border-left: 3px solid transparent;
  transition: color .22s, background .22s, border-color .22s;
}

.mobile-menu a:not(.btn):hover {
  color: #fff;
  background: rgba(255,255,255,.05);
  border-left-color: var(--gold);
}

/* CTA footer area */
.mobile-menu__footer {
  padding: 24px 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}

.mobile-menu .btn {
  width: 100%;
  justify-content: center;
  font-size: 13px;
  padding: 16px 24px;
}

/* Tagline below CTA */
.mobile-menu__tagline {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  text-align: center;
  line-height: 1.5;
}



/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, .7);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 72px 0 56px;
}

.footer-top>div {
  min-width: 0;
}

.footer-brand {
  width: auto;
}

.footer-brand img {
  height: 90px;
  filter: brightness(0) invert(1);
  opacity: .92;
  margin-bottom: 18px;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .5);
  max-width: 260px;
  overflow-wrap: break-word;
  margin-bottom: 28px;
}

.footer-office-title {
  margin-bottom: 10px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
  max-width: 100%;
}

.footer-links a svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-links a .nowrap {
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--gold);
}

.places {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.places li {
  font-size: 14px;
  color: rgba(255, 255, 255, .55);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow-wrap: break-word;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .6);
  transition: .2s;
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1100px) {
  .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    padding: 48px 0 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- Photo placeholder (swap with real <img>) ---------- */
.photo-ph {
  background:
    linear-gradient(135deg, rgba(113, 91, 57, .18), rgba(27, 28, 25, .55)),
    linear-gradient(160deg, #6b6258 0%, #423d36 55%, #2a2825 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .55);
}

.photo-ph::after {
  content: attr(data-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius-full);
}

.photo-ph svg {
  position: absolute;
  width: 56px;
  height: 56px;
  opacity: .14;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}