/* =============================================
   GOMES & MEDEIROS ADVOGADOS ASSOCIADOS - Stylesheet
   Cores extraídas da logo oficial: #0b1d45 (navy) | #cbb886 (dourado) | #ede2d1 (bege) | #ffffff
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:    #0b1d45;
  --navy-deep: #071330;
  --gold:    #cbb886;
  --gold-deep: #ab8a55;
  --beige:   #f7f1e7;
  --beige-deep: #ede2d1;
  --white:   #ffffff;
  --gold-light: #ddcda6;
  --ink:     #2b2a28;
  --muted:   #6f6a60;
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  /* aliases mantidos por compatibilidade */
  --dark: var(--navy);
  --dark-deep: var(--navy-deep);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

/* ---- UTIL ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 18px;
}

.section-tag.accent { color: var(--gold-deep); }
.section-tag.on-dark { color: var(--gold); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 40px;
}

.section-title.dark  { color: var(--navy); }
.section-title.light { color: var(--white); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 12px 22px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: none;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-large {
  font-size: 14px;
  padding: 16px 32px;
}

/* ---- TOP BANNER ---- */
.top-banner {
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 10px 16px;
}

/* ---- HEADER ---- */
.header {
  background: var(--navy);
  border-bottom: 1px solid #1b3563;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #b9c4dd;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav a:hover { color: var(--gold); }

/* ---- HERO ---- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--beige) 0%, var(--white) 55%);
  padding: 90px 0 100px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 16px;
  margin-top: 16px;
}

.hero-subtitle {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--gold-deep);
  margin-bottom: 28px;
}

.hero-desc {
  color: var(--muted);
  font-size: 17px;
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 32px;
}

.hero-badges span {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-badges span::before {
  content: '·';
  color: var(--gold-deep);
  font-size: 18px;
  line-height: 1;
}

.hero-media {
  position: relative;
}

.hero-media::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 24px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--gold);
  border-radius: 8px;
  z-index: 1;
}

.hero-media img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 30px 60px -20px rgba(11, 29, 69, 0.35);
}

/* ---- UM SO ESCRITORIO, TODAS AS FRENTES ---- */
.problem {
  background: var(--beige);
  padding: 90px 0;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.problem-card {
  background: var(--white);
  border: 1px solid var(--beige-deep);
  border-radius: 6px;
  padding: 28px 24px;
  font-size: 15px;
  color: #444;
  line-height: 1.6;
}

.problem-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 780px;
}

/* ---- FAIXA DE FOTO / CITAÇÃO ---- */
.photo-band {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('img/socios-gomes-medeiros.jpg');
  background-size: cover;
  background-position: center 30%;
}

.photo-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 19, 48, 0.9), rgba(11, 29, 69, 0.6));
}

.photo-band-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-align: center;
  padding: 90px 24px;
}

.photo-band blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.45;
  color: var(--white);
  margin-bottom: 24px;
}

.photo-band cite {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---- QUEM SOMOS ---- */
.about {
  background: var(--white);
  padding: 90px 0;
}

.about-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  max-width: 780px;
  margin-bottom: 40px;
}

.about-desc strong { color: var(--navy); }

.socios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.socio-card {
  background: var(--beige);
  border: 1px solid var(--beige-deep);
  border-radius: 6px;
  padding: 28px 26px;
}

.socio-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 6px;
}

.socio-role {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}

.socio-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.socio-bios {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.socio-bio {
  background: var(--beige);
  border: 1px solid var(--beige-deep);
  border-radius: 6px;
  padding: 0 26px;
}

.socio-bio summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.socio-bio summary::-webkit-details-marker { display: none; }

.socio-bio summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 400;
  color: var(--gold-deep);
  transition: transform 0.2s;
}

.socio-bio[open] summary::after { transform: rotate(45deg); }

.socio-bio-text {
  border-top: 1px solid var(--beige-deep);
  padding: 22px 0 26px;
  max-width: 720px;
}

.socio-bio-text p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.socio-bio-text p + p { margin-top: 14px; }

.socio-bio-text .socio-bio-signature {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--beige-deep);
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--gold-deep);
}

/* ---- COMO FUNCIONA ---- */
.steps {
  background: var(--beige);
  padding: 90px 0;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--beige-deep);
}

.step:last-child { border-bottom: none; }

.step-num {
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  min-width: 80px;
  text-align: center;
}

.step-content h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 12px;
}

.step-content p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 640px;
}

/* ---- ÁREAS DE ATUAÇÃO ---- */
.areas {
  background: var(--white);
  padding: 90px 0;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.area-card {
  background: var(--white);
  border: 1px solid var(--beige-deep);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -12px rgba(11, 29, 69, 0.18);
}

.area-photo {
  position: relative;
  height: 190px;
}

.area-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.area-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 29, 69, 0) 50%, rgba(11, 29, 69, 0.45) 100%);
}

.area-icon {
  position: absolute;
  bottom: -22px;
  left: 24px;
  width: 46px;
  height: 46px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--navy);
  box-shadow: 0 8px 18px -6px rgba(11, 29, 69, 0.4);
  z-index: 2;
}

.area-body {
  padding: 36px 26px 30px;
}

.area-body h3 {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.area-body > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.area-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.area-list li {
  font-size: 13px;
  color: #444;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.area-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 12px;
}

/* ---- FAQ ---- */
.faq {
  background: var(--beige);
  padding: 90px 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--beige-deep);
  border-radius: 8px;
  padding: 0 24px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 400;
  color: var(--gold-deep);
  transition: transform 0.2s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* ---- LOCALIZAÇÃO & CONTATO ---- */
.contact {
  position: relative;
  padding: 100px 0;
  background-image: url('img/contato-bg.jpg');
  background-size: cover;
  background-position: center;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 48, 0.93), rgba(11, 29, 69, 0.85));
}

.contact .container {
  position: relative;
  z-index: 2;
}

.contact .section-title { margin-bottom: 16px; }

.contact-intro {
  color: #c7cee3;
  font-size: 15px;
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 44px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 44px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 24px 26px;
  backdrop-filter: blur(6px);
}

.contact-card h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.contact-card p,
.contact-card a {
  font-size: 14px;
  line-height: 1.7;
  color: var(--white);
  text-decoration: none;
}

.contact-card a:hover { color: var(--gold); }

.map-frame {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  line-height: 0;
}

.map-frame iframe {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
}

/* ---- CTA FINAL ---- */
.cta-final {
  background: var(--navy);
  padding: 100px 0;
  text-align: center;
}

.cta-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-title em {
  color: var(--gold);
  font-style: italic;
}

.cta-desc {
  color: #aab2c6;
  font-size: 14px;
  margin-bottom: 40px;
}

/* ---- PAGINAS LEGAIS ---- */
.legal {
  background: var(--white);
  padding: 64px 0 90px;
}

.legal .container {
  max-width: 760px;
}

.legal h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 40px;
}

.legal h2 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  font-weight: 600;
  margin: 36px 0 12px;
}

.legal p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal ul {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 14px;
}

.legal li {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal a { color: var(--gold-deep); }

.legal strong { color: var(--ink); }

/* ---- FOOTER ---- */
.footer {
  background: var(--navy-deep);
  border-top: 1px solid #102347;
  padding: 48px 0 0;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}

.footer-logo img {
  height: 36px;
  width: auto;
  display: block;
  opacity: 0.85;
}

.footer-info p {
  font-size: 13px;
  color: #7c869c;
  line-height: 1.8;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-nav a,
.footer-links a {
  font-size: 12px;
  color: #69728a;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover,
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid #102347;
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 11px;
  color: #4a5268;
  letter-spacing: 0.04em;
}

/* ---- RESPONSIVO ---- */
@media (max-width: 900px) {
  .nav { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-media { order: -1; }

  .hero-media::before { display: none; }

  .socios-grid {
    grid-template-columns: 1fr;
  }

  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero { padding: 48px 0 56px; }

  .problem,
  .photo-band,
  .about,
  .steps,
  .areas,
  .faq,
  .contact { padding: 60px 0; }

  .photo-band { min-height: 320px; }
  .photo-band-content { padding: 56px 24px; }

  .cta-final { padding: 64px 0; }

  .btn-large {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 16px 20px;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .areas-grid {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    gap: 12px;
  }

  .step-num {
    font-size: 48px;
    min-width: auto;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .header-inner {
    gap: 12px;
  }

  .logo img {
    height: 32px;
  }
}

/* ---- WHATSAPP FLUTUANTE ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 14px 22px 14px 18px;
  border-radius: 50px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

@media (max-width: 480px) {
  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float {
    padding: 16px;
    border-radius: 50%;
    bottom: 20px;
    right: 20px;
  }
}
