/* ============================================================
   S. Figliuolo Advocacia - Main Stylesheet
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  background-color: #efeae8;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .3s; }
ul, ol { list-style: none; }

/* --- Utility --- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }
.gold { color: #c5a44e; }
.gold-bg { background-color: #c5a44e; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;600;700&display=swap');

h1,h2,h3,h4,h5,h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  color: #6f0d3f;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: #6f0d3f;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(111,13,63,.25);
  padding: 8px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  min-height: 70px;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 65px;
  width: auto;
  object-fit: contain;
}

/* --- Navigation --- */
.main-nav ul {
  display: flex;
  gap: 8px;
}

.main-nav a {
  display: block;
  padding: 8px 16px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background .3s, color .3s;
}

.main-nav a:hover,
.main-nav a.active {
  background: #c5a44e;
  color: #fff;
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ============================================================
   HERO / BANNER
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6f0d3f 0%, #3d0722 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(111,13,63,0.7);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 20px;
  max-width: 800px;
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.hero-content p {
  color: rgba(255,255,255,.9);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 30px;
  font-family: 'Montserrat', sans-serif;
}

.hero-content .btn {
  display: inline-block;
  padding: 14px 36px;
  background: #c5a44e;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: transform .3s, box-shadow .3s;
}

.hero-content .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(197,164,78,.4);
}

/* Generic .btn for all contexts */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: #c5a44e;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: transform .3s, box-shadow .3s;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(197,164,78,.4);
  color: #fff;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 80px 0;
}

.section--alt {
  background: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #c5a44e;
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-title p {
  color: #666;
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================================
   QUEM SOMOS
   ============================================================ */
.quem-somos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.quem-somos-grid img {
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(111,13,63,.15);
}

.quem-somos-text h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

.quem-somos-text p {
  margin-bottom: 16px;
  color: #555;
  font-size: 1rem;
}

/* ============================================================
   SERVIÇOS CARDS
   ============================================================ */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.servico-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
  border-bottom: 4px solid #c5a44e;
}

.servico-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(111,13,63,.12);
}

.servico-card img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin: 0 auto 20px;
}

.servico-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.servico-card p {
  color: #666;
  font-size: .9rem;
}

/* ============================================================
   DEPOIMENTOS / TESTIMONIALS
   ============================================================ */
.depoimentos-section {
  background: #6f0d3f;
  padding: 80px 0;
}

.depoimentos-section .section-title h2 {
  color: #fff;
}

.depoimentos-section .section-title p {
  color: rgba(255,255,255,.7);
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform .5s ease;
}

.testimonial-card {
  min-width: 100%;
  padding: 40px;
  text-align: center;
  color: #fff;
}

.testimonial-card .quote-icon {
  font-size: 3rem;
  color: #c5a44e;
  margin-bottom: 20px;
  line-height: 1;
}

.testimonial-card blockquote {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 24px;
  color: rgba(255,255,255,.9);
}

.testimonial-card .author {
  font-weight: 700;
  color: #c5a44e;
  font-size: .95rem;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #c5a44e;
  background: transparent;
  cursor: pointer;
  transition: background .3s;
}

.slider-dots button.active {
  background: #c5a44e;
}

/* ============================================================
   EQUIPE / TEAM
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.team-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: transform .3s;
}

.team-card:hover { transform: translateY(-5px); }

.team-card-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.team-card-body {
  padding: 24px;
}

.team-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.team-card-body .role {
  color: #c5a44e;
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: 'Montserrat', sans-serif;
}

.team-card-body p {
  color: #555;
  font-size: .9rem;
  line-height: 1.7;
}

/* ============================================================
   CLIENTES / CLIENTS
   ============================================================ */
.clientes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px;
  align-items: center;
}

.clientes-grid .client-logo {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: transform .3s, box-shadow .3s;
  min-height: 100px;
}

.clientes-grid .client-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(111,13,63,.1);
}

.clientes-grid .client-logo img {
  max-height: 60px;
  width: auto;
  filter: grayscale(30%);
  transition: filter .3s;
}

.clientes-grid .client-logo:hover img {
  filter: grayscale(0);
}

/* ============================================================
   CONTATO / CONTACT
   ============================================================ */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contato-info {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

.contato-info h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.contato-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: .95rem;
  color: #555;
}

.contato-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #6f0d3f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.contato-item a {
  color: #6f0d3f;
  font-weight: 600;
}

.contato-item a:hover {
  color: #c5a44e;
}

/* --- Contact Form --- */
.contato-form {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

.contato-form h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: .85rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0d8d2;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: .95rem;
  transition: border-color .3s;
  background: #faf8f6;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c5a44e;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  display: inline-block;
  padding: 14px 40px;
  background: #6f0d3f;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background .3s, transform .3s;
}

.btn-submit:hover {
  background: #c5a44e;
  transform: translateY(-2px);
}

/* ============================================================
   SERVIÇOS DETAIL PAGE
   ============================================================ */
.servico-detail {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  border-left: 5px solid #c5a44e;
}

.servico-detail h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #6f0d3f;
}

.servico-detail ul {
  columns: 2;
  column-gap: 40px;
}

.servico-detail ul li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: .93rem;
  color: #555;
  break-inside: avoid;
}

.servico-detail ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: #c5a44e;
  border-radius: 50%;
}

/* ============================================================
   DIFERENCIAIS
   ============================================================ */
.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.diferencial-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: transform .3s;
}

.diferencial-card:hover { transform: translateY(-5px); }

.diferencial-card .icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6f0d3f, #c5a44e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.5rem;
}

.diferencial-card h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.diferencial-card p {
  color: #666;
  font-size: .88rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #6f0d3f;
  color: #fff;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #c5a44e;
  font-size: 1rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p,
.footer-col a {
  color: rgba(255,255,255,.8);
  font-size: .88rem;
  line-height: 1.8;
}

.footer-col a:hover {
  color: #c5a44e;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
  font-size: 1rem;
}

.footer-social a:hover {
  background: #c5a44e;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: .82rem;
  color: rgba(255,255,255,.6);
}

.footer-logo img {
  height: 50px;
  margin-bottom: 16px;
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  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,.4);
  transition: transform .3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #6f0d3f;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform .3s, opacity .3s;
  box-shadow: 0 4px 12px rgba(111,13,63,.3);
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: #c5a44e;
}

/* ============================================================
   LP / LANDING PAGE STYLES
   ============================================================ */
.lp-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6f0d3f 0%, #3d0722 100%);
  text-align: center;
  padding: 60px 20px;
}

.lp-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.lp-hero p {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.lp-cta-btn {
  display: inline-block;
  padding: 16px 44px;
  background: #c5a44e;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: transform .3s, box-shadow .3s;
}

.lp-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(197,164,78,.4);
}

/* --- Pilares Grid --- */
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.pilar-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  border-top: 4px solid #c5a44e;
}

.pilar-card h4,
.pilar-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #6f0d3f;
}

.pilar-card p {
  font-size: .88rem;
  color: #666;
}

/* --- FAQ Accordion --- */
.faq-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 24px;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: #6f0d3f;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: #c5a44e;
  transition: transform .3s;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.faq-answer-inner {
  padding: 0 24px 18px;
  color: #555;
  font-size: .9rem;
  line-height: 1.7;
}

/* --- Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.step-card {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6f0d3f, #c5a44e);
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step-card p {
  font-size: .85rem;
  color: #666;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .quem-somos-grid,
  .contato-grid {
    grid-template-columns: 1fr;
  }

  .servico-detail ul {
    columns: 1;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #6f0d3f;
    padding: 80px 30px 30px;
    transition: right .3s;
    z-index: 1001;
    box-shadow: -4px 0 20px rgba(0,0,0,.2);
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    padding: 12px 16px;
    font-size: .95rem;
  }

  .menu-toggle {
    display: flex;
    z-index: 1002;
  }

  .hero-section {
    min-height: 60vh;
  }

  .section {
    padding: 50px 0;
  }

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

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

  .clientes-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .whatsapp-float, .back-to-top, .site-footer { display: none; }
  body { background: #fff; }
}
