@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --verde:       #2d5a30;
  --verde-deep:  #1a3a1c;
  --ouro:        #b8965a;
  --ouro-claro:  #d4b07e;
  --crema:       #f7f3ed;
  --cinza-escuro:#1c1c1c;
  --cinza-mid:   #4a4a4a;
  --cinza-leve:  #f0ede8;
  --branco:      #ffffff;
  --sombra-s:    0 2px 12px rgba(0,0,0,.08);
  --sombra-m:    0 8px 32px rgba(0,0,0,.12);
  --sombra-l:    0 20px 60px rgba(0,0,0,.16);
  --radius:      12px;
  --t-serif:     'Cormorant Garamond', Georgia, serif;
  --t-sans:      'DM Sans', sans-serif;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  font-family: var(--t-sans);
  background-color: var(--crema);
  color: var(--cinza-escuro);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display:block; max-width:100%; height: auto; }
a { text-decoration: none; color: inherit; background: transparent; }
button { cursor: pointer; background: transparent; border: none; }
button:focus { outline: 2px solid var(--ouro); outline-offset: 2px; }

/* ─── ACCESSIBILITY ─────────────────────────────────────── */
button:active { opacity: 0.85; }
a:focus-visible { outline: 2px solid var(--ouro); outline-offset: 2px; border-radius: 2px; }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 2px; }

/* Respeitar preferências de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Tema escuro - respeitar preferências do sistema */
@media (prefers-color-scheme: dark) {
  :root {
    --crema: #1a1a1a;
  }
}

/* ─── VIDEO ──────────────────────────────────────────── */
video { display: block; }
video::-webkit-media-controls { display: none !important; }

/* ─── SMOOTHSCROLL FALLBACK ──────────────────────────── */
@supports not (scroll-behavior: smooth) {
  html { scroll-behavior: auto; }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--verde);
  color: var(--branco);
  border: none;
  padding: .8rem 1.8rem;
  font-family: var(--t-sans);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: background .25s, transform .2s, box-shadow .25s;
}
.btn-primary:hover {
  background: var(--verde-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45,90,48,.25);
}

.btn-ghost {
  display: inline-block;
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.45);
  padding: .8rem 1.8rem;
  font-family: var(--t-sans);
  font-size: .88rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.7);
}

/* ─── SECTION COMMON ─────────────────────────────────────── */
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-label {
  font-family: var(--t-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ouro);
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--t-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--cinza-escuro);
  line-height: 1.2;
  margin-bottom: 1rem;
}
h2 em {
  font-style: italic;
  color: var(--verde);
}

.section-sub {
  font-size: 1rem;
  color: var(--cinza-mid);
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* ─── HEADER ─────────────────────────────────────────────── */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background .35s, box-shadow .35s, padding .35s;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2rem;
  transition: padding .3s;
}

header.scrolled .header-inner {
  padding: .9rem 2rem;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,58,28,.0);
  backdrop-filter: blur(0px);
  transition: background .35s, backdrop-filter .35s;
  z-index: -1;
}

header.scrolled::before {
  background: rgba(26,58,28,.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.07), var(--sombra-m);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.logo {
  height: 42px;
  width: auto;
  filter: brightness(1.1);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--t-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--branco);
  line-height: 1.2;
  letter-spacing: .01em;
}

.brand-since {
  font-size: .7rem;
  color: var(--ouro-claro);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: .1rem;
}

header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

header nav a {
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s;
  position: relative;
}
header nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ouro);
  transition: width .3s;
}
header nav a:hover { color: var(--branco); }
header nav a:hover::after { width: 100%; }

.btn-header {
  background: var(--ouro);
  color: var(--verde-deep);
  border: none;
  padding: .6rem 1.4rem;
  font-family: var(--t-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: background .25s, transform .2s;
}
.btn-header:hover {
  background: var(--ouro-claro);
  transform: translateY(-1px);
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--branco);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--verde-deep);
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  gap: .5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.mobile-menu.open {
  display: flex;
  max-height: 400px;
}
.mobile-menu a {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  padding: .6rem 0;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-menu .btn-header {
  margin-top: .5rem;
  text-align: center;
}

/* ─── BANNER ─────────────────────────────────────────────── */
.banner {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100vw;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.banner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(10,28,12,.82) 0%,
    rgba(26,58,28,.6) 50%,
    rgba(10,20,10,.4) 100%
  );
}

.banner-content {
  position: relative;
  z-index: 2;
  padding: 2rem 2rem 2rem clamp(2rem, 8vw, 9rem);
  max-width: 700px;
  animation: fadeUp .9s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

.banner-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ouro-claro);
  border: 1px solid rgba(184,150,90,.4);
  border-radius: 2px;
  padding: .35rem .9rem;
  margin-bottom: 1.6rem;
  background: rgba(184,150,90,.1);
  backdrop-filter: blur(6px);
}

.banner-title {
  font-family: var(--t-serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--branco);
  line-height: 1.1;
  margin-bottom: 1.3rem;
  letter-spacing: -.01em;
}
.banner-title em {
  font-style: italic;
  color: var(--ouro-claro);
}

.banner-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  margin-bottom: 2.2rem;
  max-width: 480px;
}

.banner-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.banner-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.5);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: .4; }
  50%      { opacity: 1; }
}

/* ─── CREDENCIAIS BAR ────────────────────────────────────── */
.credenciais-bar {
  background: var(--verde-deep);
  border-top: 1px solid rgba(184,150,90,.2);
  border-bottom: 1px solid rgba(184,150,90,.2);
}

.credenciais-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.cred-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .8rem 3rem;
  text-align: center;
}

.cred-number {
  font-family: var(--t-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ouro);
  line-height: 1;
}
.cred-number sup {
  font-size: 1rem;
  vertical-align: super;
}

.cred-label {
  font-size: .72rem;
  color: rgba(255,255,255,.6);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: .3rem;
}

.cred-divider {
  width: 1px;
  height: 40px;
  background: rgba(184,150,90,.25);
}

/* ─── QUEM SOMOS ─────────────────────────────────────────── */
.quem-somos { background: var(--crema); }

.qs-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 5rem;
  align-items: center;
}

.qs-text h2 { margin-bottom: 1.4rem; }

.qs-text p {
  color: var(--cinza-mid);
  font-size: .97rem;
  margin-bottom: 1rem;
  line-height: 1.75;
}

.qs-highlights {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--branco);
  border-radius: var(--radius);
  border-left: 3px solid var(--verde);
  box-shadow: var(--sombra-s);
}

.highlight-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.highlight-item strong {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--cinza-escuro);
}

.highlight-item span {
  font-size: .8rem;
  color: var(--cinza-mid);
}

/* QS IMAGE */
.qs-image-block { position: relative; }

.qs-image-frame {
  position: relative;
  background: var(--verde-deep);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sombra-l);
}

.qs-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184,150,90,.15), transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.qs-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.qs-image-placeholder svg {
  width: 100%;
  height: 100%;
}

.qs-badge-float {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  background: var(--ouro);
  color: var(--verde-deep);
  padding: .8rem 1.2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--sombra-m);
}
.qs-badge-float strong {
  display: block;
  font-family: var(--t-serif);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}
.qs-badge-float span {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ─── SERVIÇOS ───────────────────────────────────────────── */
.servicos { background: var(--verde-deep); }
.servicos .section-label { color: var(--ouro); }
.servicos h2 { color: var(--branco); }
.servicos h2 em { color: var(--ouro-claro); }
.servicos .section-sub { color: rgba(255,255,255,.6); }

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.servico-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: transform .3s, border-color .3s, background .3s;
}
.servico-card:hover {
  transform: translateY(-6px);
  border-color: rgba(184,150,90,.4);
  background: rgba(255,255,255,.07);
}

.servico-card.destaque {
  border-color: rgba(184,150,90,.35);
  background: rgba(184,150,90,.06);
}

.card-label-top {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ouro);
  background: rgba(184,150,90,.15);
  padding: .25rem .6rem;
  border-radius: 2px;
}

.servico-icon {
  width: 54px;
  height: 54px;
  background: rgba(184,150,90,.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ouro);
  margin-bottom: 1.5rem;
}

.servico-card h3 {
  font-family: var(--t-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--branco);
  margin-bottom: .8rem;
}

.servico-card p {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.servico-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ouro);
  border: 1px solid rgba(184,150,90,.35);
  padding: .25rem .7rem;
  border-radius: 2px;
}

.servicos-cta { text-align: center; }

/* ─── EQUIPE ─────────────────────────────────────────────── */
.nossa-equipe { background: var(--crema); }

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.membro-card {
  background: var(--branco);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sombra-s);
  transition: transform .35s, box-shadow .35s;
}
.membro-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-l);
}

.membro-foto {
  overflow: hidden;
  height: 340px;
  background: var(--cinza-leve);
}
.membro-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .5s ease;
}
.membro-card:hover .membro-foto img { transform: scale(1.04); }

.membro-info {
  padding: 1.4rem 1.6rem;
  border-top: 3px solid var(--verde);
}

.membro-cargo {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ouro);
  margin-bottom: .4rem;
}

.membro-info h3 {
  font-family: var(--t-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cinza-escuro);
  margin-bottom: .3rem;
}

.membro-crmv {
  font-size: .78rem;
  color: var(--cinza-mid);
}

/* ─── CONTATO ────────────────────────────────────────────── */
.contato {
  background: linear-gradient(160deg, var(--verde-deep) 0%, #1f3d22 100%);
}
.contato .section-label { color: var(--ouro); }
.contato h2 { color: var(--branco); }
.contato h2 em { color: var(--ouro-claro); }

.contato-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contato-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color .3s, background .3s;
}
.contato-card:hover {
  border-color: rgba(184,150,90,.35);
  background: rgba(255,255,255,.08);
}

.contato-icon {
  width: 48px;
  height: 48px;
  background: rgba(184,150,90,.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ouro);
  margin-bottom: 1.2rem;
}

.contato-card h3 {
  font-family: var(--t-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--branco);
  margin-bottom: 1rem;
}

.contato-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.contato-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: .55rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: .88rem;
}
.contato-list li span {
  color: rgba(255,255,255,.5);
  font-size: .8rem;
}
.contato-list li a {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  transition: color .2s;
}
.contato-list li a:hover { color: var(--ouro-claro); }

.contato-address {
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.btn-map {
  font-size: .8rem;
  font-weight: 500;
  color: var(--ouro);
  letter-spacing: .05em;
  transition: color .2s;
}
.btn-map:hover { color: var(--ouro-claro); }

.contato-card p {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  line-height: 1.65;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--cinza-escuro);
  border-top: 1px solid rgba(184,150,90,.15);
  padding: 2rem;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--t-serif);
  font-size: 1rem;
  color: rgba(255,255,255,.7);
}

.footer-logo { height: 32px; filter: brightness(1.1); }

.footer-divider { display: none; }

.footer-copy {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}
.footer-copy strong { color: rgba(255,255,255,.6); font-weight: 500; }

/* ─── RESPONSIVO ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .qs-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .qs-image-block { max-width: 400px; margin: 0 auto; }
  .servicos-grid { grid-template-columns: repeat(2, 1fr); }
  .equipe-grid { grid-template-columns: repeat(2, 1fr); }
  .contato-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  header nav { display: none; }

  .banner { height: 90vh; }
  .banner-content { padding: 2rem; }

  .cred-item { padding: .8rem 1.5rem; }
  .cred-divider { display: none; }
  .credenciais-inner { gap: 1rem; }

  .servicos-grid { grid-template-columns: 1fr; }
  .equipe-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .contato-grid { grid-template-columns: 1fr; }

  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .section-inner { padding: 4rem 1.25rem; }
  .banner { height: 85vh; }
  .banner-title { font-size: 2.4rem; }
  .banner-scroll-indicator { display: none; }
  h2 { font-size: 2rem; }
}