/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --navy:        #1a2942;
  --navy-dark:   #111d30;
  --navy-light:  #243452;
  --gold:        #c9a84c;
  --gold-light:  #d9bc72;
  --white:       #ffffff;
  --gray-light:  #f8f8f8;
  --gray-mid:    #e0e0e0;
  --text:        #2c2c2c;
  --text-muted:  #666666;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lato', Arial, sans-serif;

  --section-pad: 5rem 0;
  --container:   1200px;
  --transition:  0.3s ease;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 8px 24px rgba(0,0,0,0.12);
  --shadow-lg:   0 16px 40px rgba(0,0,0,0.16);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* =========================================================
   UTILITIES
   ========================================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section        { padding: var(--section-pad); }
.section--gray  { background: var(--gray-light); }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto 0;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
}
.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn--secondary:hover {
  background: var(--white);
  color: var(--navy);
}

.btn--full { width: 100%; justify-content: center; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.35); }

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

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
}
.nav__links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav__links a:hover,
.nav__links a.active { color: var(--gold); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.85;
}

.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__photo { display: flex; justify-content: center; align-items: center; }

/* Photo placeholders */
.photo-placeholder {
  border: 2px dashed rgba(255,255,255,0.25);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
  text-align: center;
  background: rgba(255,255,255,0.04);
}
.photo-placeholder svg { opacity: 0.4; }

.photo-placeholder--hero {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
}

.hero__img {
  width: 100%;
  max-width: 420px;
  border-radius: 6px;
  object-fit: cover;
  object-position: top;
}

.photo-placeholder--sobre {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 5;
  border-color: var(--gray-mid);
  color: var(--text-muted);
  background: var(--gray-light);
}
.photo-placeholder--sobre svg { opacity: 0.3; color: var(--navy); }

/* =========================================================
   ÁREAS DE ATUAÇÃO — CARDS
   ========================================================= */
.areas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  border-top: 4px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--gold);
}

.card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  color: var(--gold);
}
.card__icon svg { width: 100%; height: 100%; }

.card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* =========================================================
   SOBRE O ADVOGADO
   ========================================================= */
.sobre__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.sobre__photo { display: flex; justify-content: center; }

.sobre__img {
  width: 100%;
  max-width: 400px;
  border-radius: 6px;
  object-fit: cover;
  object-position: top;
}

.sobre .section-divider { margin-left: 0; }

.sobre__bio {
  margin: 1.5rem 0;
  color: var(--text);
  line-height: 1.9;
}

.sobre__credentials {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.sobre__credentials li {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.4rem;
}
.sobre__credentials strong { color: var(--navy); min-width: 110px; }

/* =========================================================
   DEPOIMENTOS
   ========================================================= */
.depoimentos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: var(--white);
  border-radius: 6px;
  padding: 2rem;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.testimonial__stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.testimonial__text {
  color: var(--text);
  font-style: italic;
  line-height: 1.85;
  flex: 1;
  margin-bottom: 1.5rem;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-mid);
  flex-shrink: 0;
}

.testimonial__author strong { display: block; color: var(--navy); font-size: 0.9rem; }
.testimonial__author span  { color: var(--text-muted); font-size: 0.8rem; }

/* =========================================================
   FORMULÁRIO DE CONTATO
   ========================================================= */
.contato__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contato__info .section-divider { margin-left: 0; }
.contato__info > p { color: var(--text-muted); margin: 1.5rem 0; }

.contato__details { display: flex; flex-direction: column; gap: 1rem; }
.contato__details li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.contato__details svg { color: var(--gold); flex-shrink: 0; }
.contato__details a:hover { color: var(--gold); }

.form { display: flex; flex-direction: column; gap: 1.25rem; }

.form__group { display: flex; flex-direction: column; gap: 0.4rem; }
.form__group label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy);
  text-transform: uppercase;
}
.form__group input,
.form__group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.18);
}
.form__group textarea {
  resize: vertical;
  min-height: 130px;
}

.form__feedback {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  font-size: 0.92rem;
  text-align: center;
}
.form__feedback--success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.form__feedback--error {
  display: block;
  background: #fce4ec;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--navy-dark);
  padding: 3rem 0 2rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 2rem;
  margin-bottom: 1.5rem;
}

.footer__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 600;
}
.footer__oab { color: var(--gold); font-size: 0.85rem; margin-top: 0.25rem; }

.footer__nav  { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer__nav a {
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--gold); }

.footer__copy {
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}

/* =========================================================
   WHATSAPP FLOATING BUTTON
   ========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.6);
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.4;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.4; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* =========================================================
   RESPONSIVE — TABLET 768px
   ========================================================= */
@media (max-width: 768px) {
  :root { --section-pad: 3.5rem 0; }

  /* Nav mobile */
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy-dark);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav__links.active { display: flex; }
  .nav__links li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav__links a { display: block; padding: 0.9rem 0; font-size: 0.95rem; }

  /* Hero */
  .hero__content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .hero__ctas { justify-content: center; }
  .hero__photo { order: -1; }
  .photo-placeholder--hero {
    max-width: 200px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    margin: 0 auto;
  }

  .hero__img {
    max-width: 240px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    margin: 0 auto;
  }

  /* Sobre */
  .sobre__grid { grid-template-columns: 1fr; gap: 2rem; }
  .sobre__photo { justify-content: center; }
  .sobre .section-divider { margin-left: auto; margin-right: auto; }
  .sobre__text { text-align: center; }
  .sobre__credentials li { justify-content: center; }

  /* Contato */
  .contato__grid { grid-template-columns: 1fr; gap: 2rem; }
  .contato__info .section-divider { margin-left: auto; margin-right: auto; }
  .contato__info { text-align: center; }
  .contato__details { align-items: center; }

  /* Footer */
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__nav { justify-content: center; }
  .footer__brand { text-align: center; }
}

/* =========================================================
   RESPONSIVE — MOBILE 480px
   ========================================================= */
@media (max-width: 480px) {
  .hero__title { font-size: 2.2rem; }
  .hero__ctas  { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .whatsapp-float { bottom: 1.25rem; right: 1.25rem; width: 52px; height: 52px; }
}
