*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:     #1a1a18;
  --cream:   #f5f2ec;
  --gold:    #b8933f;
  --gold-lt: #d4aa5a;
  --muted:   #7a7568;
  --border:  rgba(26,26,24,.1);
  --ff-head: 'Cormorant Garamond', Georgia, serif;
  --ff-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 7rem; }

img { max-width: 100%; height: auto; }

a:focus-visible,
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 5vw;
  background: rgba(245,242,236,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  animation: fadeDown .8s ease both;
}

.nav-logo {
  font-family: var(--ff-head);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
  text-decoration: none;
}

.nav-logo span { color: var(--gold); }

.nav-logo img,
.nav-logo-img { height: 100px; width: auto; object-fit: contain; display: block; }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }

.nav-links a {
  font-size: 0.96rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .25s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

/* MENU MOBILE (botão hambúrguer) */
.nav-toggle {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform .3s, opacity .3s;
}

nav.open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* FOOTER */
footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.05rem 5vw;
  background: rgba(245,242,236,.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  font-family: var(--ff-body);
  font-size: 0.96rem;
  color: var(--muted);
}

.footer-phrase {
  font-family: var(--ff-head);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: .02em;
}

.footer-copy {
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--muted);
  justify-self: end;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  justify-self: center;
}

.footer-socials a {
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: opacity .25s;
}

.footer-socials a:hover { opacity: .75; }

.footer-socials-label { font-size: .9rem; color: #8B6F4E; margin-right: .5rem; }

.footer-socials a[aria-label="LinkedIn"]  { color: #0077B5; }
.footer-socials a[aria-label="Instagram"] { color: #E4405F; }
.footer-socials a[aria-label="Lattes"]    { color: #2777BC; }

.footer-socials svg { width: 1.43rem; height: 1.43rem; }

/* WHATSAPP FAB */
.whats-fab {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 200;
  width: 3.4rem; height: 3.4rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.45);
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
}

.whats-fab:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,.6); }
.whats-fab svg { width: 1.7rem; height: 1.7rem; }

/* RESPONSIVO */
@media (max-width: 1024px) {
  html { scroll-padding-top: 5rem; }
  nav { padding: .5rem 5vw; }
  .nav-logo img,
  .nav-logo-img { height: 60px; }
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: .5rem 5vw 1rem;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(26,26,24,.08);
  }

  nav.open .nav-links { display: flex; }

  .nav-links a {
    display: block;
    padding: .9rem 0;
    font-size: .85rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child a { border-bottom: 0; }
}

@media (max-width: 700px) {
  footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: .8rem;
    padding: 1.5rem 5vw 5.5rem; /* espaço para o botão do WhatsApp */
  }
  .footer-copy { justify-self: center; }
  .footer-socials { flex-wrap: wrap; justify-content: center; }

  .whats-fab { bottom: 1.2rem; right: 1.2rem; }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-1rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(2rem); }
  to   { opacity: 1; transform: translateY(0); }
}
