@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --navy: #0d1b2a;
  --navy-light: #1a2e45;
  --white: #ffffff;
  --gray: #4a4a4a;
  --gray-light: #f7f7f7;
  --gray-mid: #c8c8c8;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* HEADER */
header {
  background: var(--navy);
  padding: 0 5%;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.logo span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}

nav {
  display: flex;
  gap: 2.2rem;
}

nav a {
  color: rgba(255,255,255,0.6);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

nav a:hover,
nav a.active {
  color: var(--white);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}

.hamburger:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(201,168,76,0.4);
}

.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* HERO */
.hero {
  background: url('../img/Capa.png') center center / cover no-repeat;
  color: var(--white);
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,15,23,0.72) 0%, rgba(8,15,23,0.62) 60%, rgba(8,15,23,0.80) 100%);
  pointer-events: none;
}

.hero-inner {
  max-width: 700px;
  width: 100%;
  position: relative;
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2rem;
}

.hero-desc {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2.8rem;
  line-height: 1.85;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 2rem;
  opacity: 0.6;
}

.btn {
  display: inline-block;
  padding: 13px 34px;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--gold);
  margin-left: 1rem;
}

.btn-outline:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* SECTIONS */
section {
  padding: 80px 5%;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.section-line {
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 2.2rem;
  opacity: 0.7;
}

/* AREAS */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.area-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-top: 2px solid var(--navy);
  padding: 2rem 1.6rem;
  transition: box-shadow 0.25s, transform 0.2s;
}

.area-card:hover {
  box-shadow: 0 8px 28px rgba(13,27,42,0.09);
  transform: translateY(-3px);
}

.area-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.7rem;
}

.area-card p {
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.65;
}

/* SOBRE PREVIEW */
.sobre-preview {
  background: var(--gray-light);
}

.sobre-preview .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.foto-perfil {
  width: 100%;
  max-width: 340px;
  display: block;
  object-fit: cover;
  object-position: top;
  border-bottom: 3px solid var(--gold);
  border-radius: 6px;
}

/* FAQ */
.faq-list {
  margin-top: 1.5rem;
}

.faq-item {
  border-bottom: 1px solid #e8e8e8;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.2rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  font-weight: 400;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--gold);
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.25s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 0 1.2rem;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.75;
}

.faq-item.open .faq-answer {
  display: block;
}

/* CONTATO */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-top: 2rem;
}

.contato-info p {
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--gray);
  line-height: 1.6;
}

.contato-info strong {
  font-weight: 500;
  color: var(--navy);
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.map-container {
  margin-top: 1.8rem;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: 2px solid var(--gold);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-field {
  position: relative;
  margin-bottom: 1.4rem;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid #d0d0d0;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--navy);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}

form input::placeholder,
form textarea::placeholder {
  color: #aaa;
  font-weight: 300;
}

form select {
  color: #aaa;
  cursor: pointer;
}

form select.filled {
  color: var(--navy);
}

form input:focus,
form textarea:focus,
form select:focus {
  border-bottom-color: var(--navy);
}

form textarea {
  resize: none;
  min-height: 100px;
  padding-top: 10px;
}

.form-submit {
  margin-top: 0.5rem;
}

form button[type="submit"] {
  align-self: flex-start;
}

.form-success {
  display: none;
  padding: 14px 0;
  font-size: 0.88rem;
  font-weight: 400;
  color: #2e7d32;
  border-bottom: 1px solid #a5d6a7;
}

/* SOBRE PAGE */
.sobre-principal {
  padding-top: 70px;
  padding-bottom: 70px;
}

.sobre-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 5rem;
  align-items: start;
}

.sobre-foto-wrap {
  position: sticky;
  top: 90px;
}

.sobre-foto-wrap .foto-perfil {
  width: 100%;
  max-width: 300px;
}

.sobre-foto-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e8e8e8;
}

.sobre-nome {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.sobre-oab-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.sobre-text p {
  margin-bottom: 1.3rem;
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.85;
}

.sobre-text .oab {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
}

/* FAQ PAGE */
.faq-page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 5rem;
  align-items: start;
}

.faq-page-intro {
  position: sticky;
  top: 90px;
}

.faq-page-intro p {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--gray);
}

/* CONTATO INFO */
.contato-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #f0f0f0;
}

.contato-item:last-of-type {
  border-bottom: none;
}

.contato-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.contato-valor {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--gray);
}

.contato-link {
  color: var(--navy);
  font-weight: 400;
  transition: color 0.2s;
}

.contato-link:hover {
  color: var(--gold);
}

/* PAGE HERO (internas) */
.page-hero {
  background: var(--navy);
  padding: 28px 5%;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.page-hero .section-inner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.page-hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.page-hero-sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.8rem;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
}

/* CTA SECTION */
.cta-section {
  background: var(--navy);
  text-align: center;
  padding: 70px 5%;
}

.cta-section .section-title {
  color: var(--white);
}

.cta-section p {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto 2.2rem;
}

/* ANIMACOES */
.animate {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.delay-1 { transition-delay: 0.1s; }
.animate.delay-2 { transition-delay: 0.2s; }
.animate.delay-3 { transition-delay: 0.3s; }
.animate.delay-4 { transition-delay: 0.4s; }

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* FOOTER */
footer {
  background: #080f17;
  color: rgba(255,255,255,0.4);
  padding: 50px 5%;
  text-align: center;
}

footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

footer .footer-name {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

footer .footer-oab {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

footer p {
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.9;
}

footer .footer-divider {
  width: 30px;
  height: 1px;
  background: rgba(201,168,76,0.3);
  margin: 1.5rem auto;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

footer .footer-links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}

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

.sobre-foto-eyebrow {
  display: none;
}

.sobre-foto-titulo {
  display: none;
}

.sobre-desktop-only {
  display: block;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: #25d366;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  animation: pulse-breath 3s ease-in-out infinite;
}

@keyframes pulse-breath {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(37,211,102,0.35); }
  50%       { transform: scale(1.07); box-shadow: 0 6px 22px rgba(37,211,102,0.5); }
}

.whatsapp-float:hover {
  animation: none;
  transform: scale(1.12);
  box-shadow: 0 6px 22px rgba(37,211,102,0.55);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 12px;
    right: 12px;
    background: rgba(13, 27, 42, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1.6rem 1.8rem;
    gap: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
  }

  nav a:last-child {
    border-bottom: none;
  }

  .hamburger {
    display: flex;
  }

  section {
    padding: 50px 5%;
  }

  .sobre-principal {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .hero {
    min-height: calc(100svh - 68px);
    padding: 50px 5%;
  }

  .hero h1 {
    font-size: clamp(1.2rem, 5vw, 1.9rem);
    white-space: nowrap;
  }

  .hero-desc {
    font-size: 0.93rem;
  }

  .hero-inner .btn,
  .hero-inner .btn-outline {
    display: block;
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-top: 0.8rem;
  }

  .sobre-preview .section-inner,
  .contato-grid,
  .sobre-content,
  .faq-page-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sobre-preview .section-inner {
    gap: 1.5rem;
  }

  .sobre-foto-wrap {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.2rem;
    width: 100%;
  }

  .sobre-foto-wrap .foto-perfil {
    width: 150px;
    max-width: 150px;
    height: 190px;
    object-fit: cover;
    object-position: top;
    border-bottom: 3px solid var(--gold);
    flex-shrink: 0;
    margin: 0;
  }

  .sobre-foto-info {
    text-align: left;
    border-top: none;
    padding-top: 0;
    border-left: none;
    padding-left: 0;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 0.8rem;
    height: 190px;
  }

  .sobre-foto-eyebrow {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 0.8rem;
    margin-bottom: 0.3rem;
  }

  .sobre-foto-titulo {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--navy);
    line-height: 1.3;
  }

  .sobre-desktop-only {
    display: none;
  }

  .faq-page-intro {
    position: static;
  }

  .faq-list {
    margin-top: 0;
  }

  form input,
  form textarea,
  form select {
    font-size: 1rem;
  }

  form button[type="submit"] {
    width: 100%;
    text-align: center;
    align-self: stretch;
  }

  .map-container {
    height: 180px;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .cta-section {
    padding: 50px 5%;
  }

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