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

:root {
  --black: #000000;
  --white: #ffffff;
  --gray: #6b6b6b;
  --gray-light: #e5e5e5;
  --gray-bg: #f7f7f7;
  --beige: #d4af37;
  --beige-dark: #aa8c2c;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ============ TYPOGRAPHY HELPERS ============ */
.section__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--beige);
  font-weight: 500;
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section__text {
  color: var(--gray);
  font-size: 1.0625rem;
  margin-top: 1.25rem;
  max-width: 52ch;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}
.btn--sm { padding: 0.65rem 1.25rem; font-size: 0.8rem; }
.btn--dark { background: var(--beige); color: var(--black); border-color: var(--beige); }
.btn--dark:hover { background: transparent; color: var(--beige-dark); border-color: var(--beige-dark); }
.btn--light { background: var(--beige); color: var(--black); border-color: var(--beige); }
.btn--light:hover { background: transparent; color: var(--beige); border-color: var(--beige); }
.btn--outline-light { background: transparent; color: var(--white); border-color: var(--beige); }
.btn--outline-light:hover { background: var(--beige); color: var(--black); border-color: var(--beige); }

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
  padding: 1.5rem 0;
}
.header.is-scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  padding: 0.9rem 0;
  box-shadow: 0 1px 0 var(--gray-light);
}
.header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo { display: flex; align-items: baseline; gap: 0.5rem; text-decoration: none; color: var(--white); transition: color 0.4s var(--ease); }
.header.is-scrolled .header__logo { color: var(--black); }
.header__logo-mark { font-family: var(--font-serif); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.05em; }
.header__logo-text { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  color: var(--white);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.4s var(--ease), opacity 0.3s;
}
.header.is-scrolled .nav__link { color: var(--black); }
.nav__link::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--beige);
  transition: width 0.35s var(--ease);
}
.nav__link:hover::after { width: 100%; }

.lang-switch {
  background: none; border: none; cursor: pointer;
  color: inherit; font: inherit;
  display: flex; align-items: center; gap: 0.25rem;
  font-size: 0.8rem; letter-spacing: 0.05em;
}
.header__logo, .nav__link, .lang-switch { color: var(--white); }
.header.is-scrolled .lang-switch { color: var(--black); }
.lang-switch__option { opacity: 0.5; transition: opacity 0.3s; }
.lang-switch__option.is-active { opacity: 1; font-weight: 600; }
.lang-switch__sep { opacity: 0.4; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--white); transition: all 0.3s var(--ease); }
.header.is-scrolled .nav-toggle span { background: var(--black); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
}
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.45) 100%); }
.hero__content { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.hero__eyebrow { color: var(--beige); font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 1.5rem; opacity: 0.85; }
.hero__title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.08; max-width: 16ch; letter-spacing: -0.01em; text-wrap: balance; color: white; }
.hero__subtitle { margin-top: 1.5rem; font-size: clamp(1rem, 2vw, 1.25rem); max-width: 48ch; color: var(--gray-light); }
.hero__cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); width: 26px; height: 44px; border: 1px solid var(--beige); border-radius: 14px; z-index: 2; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 3px; height: 8px; background: var(--beige); border-radius: 2px; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translate(-50%, 16px); } }

/* ============ PARALLAX ============ */
.parallax {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.parallax-img {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ============ SECTION GENERIC ============ */
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section__head { margin-bottom: 3.5rem; }
.section__head--light .section__eyebrow { color: var(--white); }
.section__head--light .section__title { color: var(--beige); }

/* ============ ÁREAS ============ */
.areas__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.card {
  border: 1px solid var(--gray-light);
  padding: 2.5rem 2rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  background: var(--white);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -28px rgba(0,0,0,0.35); border-color: var(--beige-dark); }
.card__num { font-family: var(--font-serif); font-size: 0.95rem; color: var(--beige-dark); letter-spacing: 0.1em; }
.card__title { font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; margin: 1rem 0 0.75rem; }
.card__text { color: var(--gray); font-size: 0.98rem; }
.areas__cta { margin-top: 3rem; text-align: center; }

/* ============ SPLIT (Diferencial / Sobre / Contato) ============ */
.split__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { min-height: 460px; height: 100%; }
.split__body { padding: 1rem 0; }

.checklist { list-style: none; margin-top: 2rem; display: grid; gap: 1rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--black); font-weight: 400; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--beige-dark); border-bottom: 2px solid var(--beige-dark); transform: rotate(-45deg); }

/* ============ MVV ============ */
.mvv { position: relative; color: var(--white); }
.mvv__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.82); }
.mvv__content { position: relative; z-index: 2; }
.mvv__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.mvv__card { border: 1px solid rgba(255,255,255,0.2); padding: 2.5rem 2rem; transition: background 0.4s var(--ease); }
.mvv__card:hover { background: rgba(205,184,158,0.08); border-color: rgba(205,184,158,0.35); }
.mvv__card h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; margin-bottom: 1rem; color: var(--beige); }
.mvv__card p { color: var(--gray-light); }
.mvv__values { list-style: none; display: grid; gap: 0.6rem; }
.mvv__values li { padding-left: 1.25rem; position: relative; color: var(--gray-light); }
.mvv__values li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; background: var(--beige); border-radius: 50%; }

/* ============ CONTATO ============ */
.contato { background: var(--gray-bg); }
.contact-list { list-style: none; margin: 2rem 0; display: grid; gap: 1.5rem; }
.contact-list li { display: grid; gap: 0.25rem; }
.contact-list__label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray); }
.contact-list a, .contact-list span:not(.contact-list__label) { font-size: 1.1rem; color: var(--black); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.split__map { min-height: 420px; height: 100%; }
.split__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(1) contrast(1.1); }

/* ============ CTA FINAL ============ */
.cta-final { position: relative; padding: clamp(5rem, 12vw, 10rem) 0; text-align: center; color: var(--white); }
.cta-final__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); }
.cta-final__content { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.cta-final h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 2rem; text-wrap: balance; color: white; }

/* ============ FOOTER ============ */
.footer { background: var(--black); color: var(--gray-light); padding: 4rem 0 2rem; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: start; }
.footer__logo { font-family: var(--font-serif); font-weight: 700; font-size: 1.6rem; color: var(--white); display: block; margin-bottom: 0.75rem; }
.footer__brand p { color: var(--gray); max-width: 36ch; }
.footer__col { display: grid; gap: 0.6rem; }
.footer__col a { color: var(--gray-light); text-decoration: none; font-size: 0.95rem; }
.footer__col a:hover { color: var(--white); }
.footer__legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2rem; padding-top: 1.5rem; font-size: 0.8rem; color: var(--gray); }

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.5);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.whatsapp-float:hover { transform: scale(1.08); background: #1f1f1f; }

/* ============ COOKIE ============ */
.cookie {
  position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 95;
  max-width: 360px; background: var(--white); color: var(--black);
  border: 1px solid var(--gray-light); padding: 1.25rem;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.3);
  display: none; gap: 0.75rem; flex-direction: column;
}
.cookie.is-visible { display: flex; }
.cookie p { font-size: 0.82rem; color: var(--gray); line-height: 1.5; }

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }


#sobre .split__inner {
    display: flex;
    align-items: center;
    gap: 48px;
  }

  #sobre .split__body,
  #sobre .split__media {
    flex: 1 1 50%;
    min-width: 0;
    min-height: 0;
    height: auto;
  }

  #sobre .split__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
  }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .areas__grid, .mvv__grid { grid-template-columns: 1fr; }
.split__inner { grid-template-columns: 1fr; }
.split--reverse .split__media { order: 0; }

/* mostra a imagem inteira no mobile, sem cortar */
.split__media, .parallax-img {
  min-height: 0;
  aspect-ratio: 4 / 3;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--gray-bg);
}

/* parallax fixed costuma falhar no mobile, JS desativa */
.parallax { background-attachment: scroll; }

  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: var(--white); flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 2rem; padding: 2rem 2.5rem;
    transform: translateX(100%); transition: transform 0.45s var(--ease);
    box-shadow: -10px 0 40px -20px rgba(0,0,0,0.4);
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { color: var(--black); font-size: 1rem; }
  .lang-switch { color: var(--black); }
  .nav-toggle { display: flex; z-index: 101; }
  .header.is-menu-open .nav-toggle span { background: var(--black); }
  .header.is-menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.is-menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .header.is-menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .footer__inner { grid-template-columns: 1fr; }
  .cookie { left: 1rem; right: 1rem; max-width: none; }

  /* Sobre: empilha texto e imagem no mobile */
  #sobre .split__inner {
    flex-direction: column;
    gap: 2rem;
  }
  #sobre .split__body,
  #sobre .split__media {
    flex: 1 1 100%;
    width: 100%;
  }
  #sobre .split__media {
    aspect-ratio: auto;
    min-height: 0;
    background: none;
  }
}

/* Telas médias: 2 colunas para grids de cards (entre 641px e 1100px) */
@media (max-width: 1100px) and (min-width: 641px) {
  .areas__grid, .mvv__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .parallax { background-attachment: scroll; }
}