/* ============================================================
   CSF ADVOGADOS — Identidade Visual Cláudia da Silva Ferreira
   Cores: #06253F (Azul Petróleo) · #B6985C (Dourado) · #EFEAD6 (Creme) · #000000
   Fontes: Times New Roman (títulos) · Corbel (corpo)
   ============================================================ */

:root {
  --petrol:    #06253F;
  --petrol-lt: #0a3357;
  --petrol-dk: #041a2e;
  --gold:      #B6985C;
  --gold-lt:   #c9ae7a;
  --gold-dk:   #9a7d3f;
  --cream:     #EFEAD6;
  --cream-dk:  #E0D8BA;
  --black:     #000000;
  --white:     #FFFFFF;
  --body-txt:  #5a6475;
  --border:    #DDD8C4;
}

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: Corbel, 'Gill Sans', Calibri, Candara, 'Segoe UI', Arial, sans-serif;
  color: var(--body-txt);
  background: #fff;
  overflow-x: hidden;
}
a   { text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Heading font ─────────────────────────────────────────── */
h1, h2, h3, h4, .font-serif {
  font-family: 'Times New Roman', Times, Georgia, serif;
}

/* ============================================================
   HEADER
   ============================================================ */
#header {
  background: #fff;
  border-bottom: 1px solid var(--cream-dk);
  transition: box-shadow .3s;
}
#header.scrolled {
  box-shadow: 0 2px 24px rgba(6,37,63,.1);
}

/* ── Logo ────────────────────────────────────────────────── */
.csf-logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.header-logo {
  height: 120px;
  width: auto;
  display: block;
}
.footer-logo-img {
  height: 56px;
  width: auto;
  display: block;
}

/* ── Nav links ───────────────────────────────────────────── */
.nav-link {
  font-family: Corbel, sans-serif;
  font-size: .875rem;
  font-weight: 600;
  color: var(--petrol);
  position: relative;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  transition: color .2s;
}
.nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .3s;
}
.nav-link:hover           { color: var(--gold); }
.nav-link:hover::after    { width: 100%; }

/* dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px); left: 0;
  background: #fff;
  border: 1px solid var(--cream-dk);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(6,37,63,.12);
  padding: .5rem 0;
  min-width: 180px;
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 100;
  list-style: none;
}
.group:hover .nav-dropdown,
.group:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-item {
  display: block;
  padding: .65rem 1.25rem;
  font-size: .85rem;
  color: var(--petrol);
  font-family: Corbel, sans-serif;
  transition: color .2s, background .2s;
}
.dropdown-item:hover { color: var(--gold); background: var(--cream); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--petrol);
  color: #fff;
  font-family: Corbel, sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 4px;
  transition: background .25s, transform .2s, box-shadow .25s;
}
.btn-primary:hover {
  background: var(--petrol-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6,37,63,.28);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--petrol);
  color: var(--petrol);
  font-family: Corbel, sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 4px;
  padding: .65rem 1.5rem;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-outline:hover { background: var(--petrol); color: #fff; }

/* ── Section label ───────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: Corbel, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(182,152,92,.1);
  border: 1px solid rgba(182,152,92,.35);
  padding: 4px 14px;
  border-radius: 100px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, #fff 0%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; top: -100px; right: -60px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(182,152,92,.07) 0%, transparent 70%);
  pointer-events: none;
}

/* hero logo */
.hero-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: 2px solid var(--gold);
  border-radius: 24px;
  padding: 56px 64px;
  box-shadow: 0 30px 80px rgba(6,37,63,.12);
}
.hero-logo-img {
  width: 320px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* floating cards */
.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--cream-dk);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 12px 40px rgba(6,37,63,.14);
}
.float-card-1 {
  bottom: 50px; left: -32px;
  animation: floatA 4s ease-in-out infinite;
}
.float-card-2 {
  top: 40px; right: -24px;
  border: none;
  animation: floatB 4s ease-in-out infinite 1.2s;
}
.float-icon {
  width: 38px; height: 38px;
  background: rgba(182,152,92,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

@keyframes floatA { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes floatB { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)}  }

/* hero stats */
.hero-stat  { display: flex; align-items: center; gap: 4px; }
.hero-stat span {
  font-size: .83rem; font-weight: 700;
  color: var(--petrol); letter-spacing: .02em;
  font-family: Corbel, sans-serif;
}
.stat-divider { width: 1px; height: 18px; background: var(--cream-dk); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-img {
  width: 100%; max-width: 480px;
  height: 520px;
  object-fit: cover; object-position: center;
  border-radius: 20px;
  border: 3px solid var(--gold);
  box-shadow: 0 20px 60px rgba(6,37,63,.16);
}
.about-years-badge {
  position: absolute;
  bottom: -20px; right: 24px;
  background: #fff;
  border: 1px solid var(--cream-dk);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(6,37,63,.12);
  animation: floatA 5s ease-in-out infinite;
}

/* practice tags */
.practice-tag {
  display: flex; align-items: center;
  background: #fff;
  border: 1px solid var(--cream-dk);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: .8rem; font-weight: 700;
  color: var(--petrol);
  font-family: Corbel, sans-serif;
  letter-spacing: .03em;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  cursor: default;
}
.practice-tag:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(182,152,92,.15);
  transform: translateY(-2px);
}

/* ============================================================
   LAWYERS
   ============================================================ */
.lawyer-card {
  background: #fff;
  border: 1px solid var(--cream-dk);
  border-radius: 16px;
  overflow: hidden;
  padding-bottom: 1.5rem;
  transition: box-shadow .3s, transform .3s;
}
.lawyer-card:hover {
  box-shadow: 0 20px 50px rgba(6,37,63,.12);
  transform: translateY(-4px);
}
.lawyer-img-wrap { position: relative; overflow: hidden; }
.lawyer-img {
  width: 100%; height: 340px;
  object-fit: cover; object-position: top;
  transition: transform .4s;
}
.lawyer-card:hover .lawyer-img { transform: scale(1.04); }

.available-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(6,37,63,.12);
  border: 1px solid rgba(6,37,63,.25);
  color: var(--petrol);
  font-size: .68rem; font-weight: 700;
  font-family: Corbel, sans-serif;
  padding: 3px 10px; border-radius: 100px; letter-spacing: .06em;
}

.lawyer-social {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex; justify-content: center; gap: 10px;
  padding: 18px;
  background: linear-gradient(to top, rgba(6,37,63,.88), transparent);
  opacity: 0; transition: opacity .3s;
}
.lawyer-card:hover .lawyer-social { opacity: 1; }

.social-icon {
  width: 34px; height: 34px;
  background: var(--cream);
  color: var(--petrol);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem;
  transition: background .2s, color .2s, transform .2s;
}
.social-icon:hover { background: var(--gold); color: #fff; transform: scale(1.1); }

/* ============================================================
   REVIEWS
   ============================================================ */
.review-card {
  background: #fff;
  border: 1px solid var(--cream-dk);
  border-radius: 16px;
  padding: 2rem;
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.review-card:hover {
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(6,37,63,.08);
  transform: translateY(-4px);
}
.reviewer-avatar {
  width: 40px; height: 40px;
  background: var(--petrol);
  color: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Times New Roman', serif;
  font-weight: 700; font-size: 1rem;
  flex-shrink: 0;
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-img {
  width: 100%; height: 500px;
  object-fit: cover; object-position: center;
  border-radius: 20px;
  border: 3px solid var(--gold);
  box-shadow: 0 20px 60px rgba(6,37,63,.16);
}
.check-icon {
  width: 22px; height: 22px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   SERVICES
   ============================================================ */
.service-card {
  background: #fff;
  border: 1px solid var(--cream-dk);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
}
.service-card:hover {
  box-shadow: 0 20px 50px rgba(6,37,63,.12);
  transform: translateY(-6px);
}
.service-img-wrap { position: relative; overflow: hidden; }
.service-img { width: 100%; height: 220px; object-fit: cover; transition: transform .4s; }
.service-card:hover .service-img { transform: scale(1.05); }

.service-tag {
  position: absolute; bottom: 14px; left: 14px;
  background: var(--gold);
  color: var(--petrol-dk);
  font-size: .68rem; font-weight: 700;
  font-family: Corbel, sans-serif;
  padding: 4px 12px; border-radius: 100px; letter-spacing: .05em;
}
.service-body { padding: 1.5rem; }

/* ============================================================
   PRACTICE AREAS
   ============================================================ */
.pa-card {
  background: var(--cream);
  border: 1px solid var(--cream-dk);
  border-radius: 16px;
  padding: 2rem; text-align: center;
  transition: background .3s, border-color .3s, transform .3s, box-shadow .3s;
  cursor: default;
}
.pa-card:hover {
  background: var(--petrol);
  border-color: var(--petrol);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(6,37,63,.25);
}
.pa-card:hover h3                { color: var(--cream); }
.pa-card:hover p                  { color: rgba(239,234,214,.6); }
.pa-card:hover a                  { color: var(--gold); }
.pa-card:hover .pa-icon           { background: rgba(255,255,255,.1); }
.pa-card:hover .pa-icon i         { color: var(--gold-lt); }

.pa-icon {
  width: 70px; height: 70px;
  background: rgba(182,152,92,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  transition: background .3s;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
  background: #fff;
  border: 1px solid var(--cream-dk);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq-item.open {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(182,152,92,.12);
}
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.5rem;
  text-align: left;
  font-family: Corbel, 'Gill Sans', sans-serif;
  font-size: .93rem; font-weight: 700;
  color: var(--petrol);
  background: transparent; border: none; cursor: pointer;
  transition: color .2s;
}
.faq-q:hover { color: var(--gold); }
.faq-item.open .faq-q { color: var(--gold); }
.faq-icon {
  width: 28px; height: 28px;
  background: rgba(182,152,92,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); flex-shrink: 0;
  transition: transform .35s, background .25s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(182,152,92,.2); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p {
  padding: 0 1.5rem 1.2rem;
  font-size: .87rem; line-height: 1.75;
  color: var(--body-txt);
  font-family: Corbel, sans-serif;
}
.faq-item.open .faq-a { max-height: 300px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-section { background: var(--petrol-dk); color: #fff; position: relative; }

.footer-watermark {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Times New Roman', serif;
  font-size: clamp(100px, 18vw, 220px);
  font-weight: 700;
  color: rgba(239,234,214,.04);
  letter-spacing: .08em;
  pointer-events: none; user-select: none;
  white-space: nowrap;
}

/* footer logo */
.footer-logo {
  display: flex; align-items: center;
}

.footer-heading {
  font-family: 'Times New Roman', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--cream); margin-bottom: 1.2rem;
  letter-spacing: .03em;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .75rem; }
.footer-links a,
.footer-links span {
  font-family: Corbel, sans-serif;
  color: #94a3b8; font-size: .87rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }

.footer-social {
  width: 36px; height: 36px;
  background: rgba(239,234,214,.07);
  border: 1px solid rgba(239,234,214,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.footer-social:hover {
  background: var(--gold); border-color: var(--gold);
  color: var(--petrol-dk); transform: translateY(-2px);
}
.footer-bottom-link {
  font-family: Corbel, sans-serif;
  font-size: .8rem; color: #64748b; transition: color .2s;
}
.footer-bottom-link:hover { color: var(--gold); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   SCROLLBAR
   ============================================================ */
/* ── WhatsApp floating button ─────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.75rem;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,.55);
}
.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: #25D366;
  color: #fff;
  font-size: .78rem;
  font-family: Corbel, sans-serif;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

::-webkit-scrollbar         { width: 5px; }
::-webkit-scrollbar-track   { background: var(--cream); }
::-webkit-scrollbar-thumb   { background: var(--gold); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-lt); }

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--cream);
  border: 1px solid var(--cream-dk);
  border-radius: 100px;
  padding: 4px 6px;
}
.lang-btn {
  background: transparent;
  border: none;
  border-radius: 50%;
  padding: 3px;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, opacity .2s;
  line-height: 1;
  opacity: .5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-btn .fi {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: block;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1.5px rgba(6,37,63,.15);
}
.lang-btn:hover {
  transform: scale(1.15);
  opacity: 1;
}
.lang-btn.active {
  opacity: 1;
}
.lang-btn.active .fi {
  box-shadow: 0 0 0 2.5px var(--petrol);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-img  { height: 460px; max-width: 380px; }
  .about-img { height: 420px; }
  .why-img   { height: 400px; }
}
@media (max-width: 768px) {
  .about-years-badge { display: none; }
  .hero-img  { max-width: 100%; border-radius: 16px; }
  .about-img { max-width: 100%; }
  .csf-monogram { font-size: 1.8rem; }
  .csf-name     { font-size: .56rem; }
}
