/* ============================================================
   Carreiro & Souza Advocacia — folha de estilos
   Paleta: azul-marinho profundo + dourado latão (elegância jurídica)
   Mobile-first — breakpoints em 700px e 1000px
   ============================================================ */

:root{
  --bg:            #060d1a;
  --bg-alt:        #0b1930;
  --surface:       #10213c;
  --surface-2:     #142a4b;
  --border:        rgba(184, 150, 96, 0.22);
  --border-soft:   rgba(255, 255, 255, 0.08);

  --gold:          #b6905c;
  --gold-light:    #d9bd8b;
  --gold-dim:      rgba(182, 144, 92, 0.14);

  --text:          #eef1f6;
  --text-muted:    #a9b6cc;
  --text-faint:    #6f7f9c;

  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --container: 1180px;

  --header-h: 64px;
}

/* ---------- reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3{ font-family: var(--font-display); font-weight:600; margin:0; color:#fff; }
p{ margin:0; }
button{ font-family: inherit; }

.icon{ width:18px; height:18px; flex-shrink:0; }

/* subtle focus ring for accessibility */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* ---------- layout helpers ---------- */
.section-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px;
}
.eyebrow{
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
  font-weight: 600;
}
.eyebrow.center{ text-align:center; }
.section-title{
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: 0.01em;
}
.section-title.center{ text-align:center; }
.section-lead{
  max-width: 620px;
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 16px;
}
.section-lead.center{ margin-left:auto; margin-right:auto; text-align:center; }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content:center;
  gap:8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
  border: 1px solid transparent;
  cursor:pointer;
}
.btn-solid{
  background: var(--gold);
  color: #10182a;
}
.btn-solid:hover{ background: var(--gold-light); transform: translateY(-1px); }
.btn-ghost{
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold-light); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position: fixed;
  top:0; left:0; right:0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(6, 13, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled{
  background: rgba(6, 13, 26, 0.97);
  border-bottom-color: var(--border);
}
.header-inner{
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display:flex;
  align-items:center;
  justify-content: space-between;
}

.logo{ display:flex; align-items:center; gap:10px}
.logo-mark{
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-light);
  border: 1px solid var(--border);
  width: 40px; height: 40px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 50%;
  flex-shrink:0;
}
.logo-mark .logo-amp{ color: var(--gold); font-weight:400; margin: 0 1px; }
.logo-text{
  font-family: var(--font-display);
  font-size: 18px;
  color:#fff;
  line-height:1.1;
  display:flex;
  flex-direction:column;
}
.logo-text em{ font-style: normal; color: var(--gold-light); }
.logo-text small{
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 2px;
}

/* nav — mobile drawer */
.main-nav{
  position: fixed;
  top: var(--header-h);
  right: -100%;
  width: min(78vw, 320px);
  height: calc(100vh - var(--header-h));
  background: var(--bg-alt);
  border-left: 1px solid var(--border);
  display:flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 8px;
  transition: right .35s ease;
  z-index: 100;
}
.main-nav.open{ right: 0; }
.nav-link{
  padding: 16px 20px;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: background .2s ease, color .2s ease;
}
.nav-link:hover, .nav-link.active{
  color: var(--gold-light);
  background: var(--gold-dim);
}

.nav-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity:0;
  pointer-events:none;
  transition: opacity .3s ease;
  z-index: 90;
}
.nav-overlay.visible{ opacity:1; pointer-events:auto; }

.nav-toggle{
  width: 40px; height: 40px;
  background:transparent;
  border:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  cursor:pointer;
  z-index: 101;
}
.nav-toggle span{
  width: 22px; height: 2px;
  background: var(--gold-light);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO — discreto
   ============================================================ */
.hero{
  position: relative;
  padding: calc(var(--header-h) + 72px) 24px 72px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(182,144,92,0.07), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--border-soft);
}
.hero-ornament{
  position:absolute;
  top: -40%;
  right: -20%;
  width: 520px; height: 520px;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.hero-ornament::after{
  content:"";
  position:absolute;
  inset: 60px;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.hero-inner{
  position:relative;
  max-width: 640px;
  margin: 0 auto;
  text-align:center;
}
.hero h1{
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1.18;
  margin-top: 6px;
}
.hero h1 em{ font-style: normal; color: var(--gold-light); }
.hero-sub{
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 20px;
  max-width: 480px;
  margin-left:auto; margin-right:auto;
}
.hero-actions{
  margin-top: 32px;
  display:flex;
  flex-direction:column;
  gap: 12px;
  align-items:center;
}

/* ============================================================
   APRESENTAÇÃO
   ============================================================ */
.apresentacao{ background: var(--bg); }

.socios-grid{
  margin-top: 48px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.socio-card{
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align:center;
  transition: border-color .25s ease, transform .25s ease;
}
.socio-card:hover{
  border-color: var(--border);
  transform: translateY(-2px);
}

.socio-photo{
  width: 108px; height: 108px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display:flex; align-items:center; justify-content:center;
  background: var(--gold-dim);
  border: 1px solid var(--border);
}
.socio-photo-img{
  width: 108px; height: 108px;
  border-radius: 50%;
  object-fit: cover;
}
.socio-initials{
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold-light);
  font-weight: 600;
}

.socio-nome{ font-size: 24px; }
.socio-oab{
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-top: 6px;
}
.socio-bio{
  color: var(--text-muted);
  font-size: 14.5px;
  margin-top: 18px;
  line-height: 1.7;
}

.socio-contatos{
  margin-top: 24px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  border-top: 1px solid var(--border-soft);
  padding-top: 20px;
}
.contato-link{
  display:flex;
  align-items:center;
  justify-content:left;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color .2s ease;
}
.contato-link .icon{ color: var(--gold); width:15px; height:15px; }
.contato-link:hover{ color: var(--gold-light); }

.socio-whatsapp{
  display:inline-block;
  margin-top: 20px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease;
}
.socio-whatsapp:hover{ color:#fff; border-color: var(--gold-light); }

/* ============================================================
   CONTATO
   ============================================================ */
.contato{ background: var(--bg-alt); border-top: 1px solid var(--border-soft); }

.contato-grid{
  margin-top: 44px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.contato-info{
  display:flex;
  flex-direction:column;
  gap: 22px;
}
.info-item .info-label{
  display:block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 6px;
  font-weight:600;
}
.info-item p{ color: var(--text-muted); font-size: 15px; }
.info-item a{ color: var(--text); transition: color .2s ease; }
.info-item a:hover{ color: var(--gold-light); }

.btn-urgente{ margin-top: 6px; align-self: flex-start; }

.contato-mapa{
  border-radius: var(--radius-md);
  overflow:hidden;
  border: 1px solid var(--border-soft);
  min-height: 600px;
}
.contato-mapa iframe{
  width:100%; height:100%;
  min-height: 600px;
  border:0;
  filter: grayscale(0.25) contrast(1.05);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
  padding: 40px 24px calc(40px + 74px); /* espaço extra p/ CTA fixo no mobile */
}
.footer-inner{
  max-width: var(--container);
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 20px;
  text-align:center;
}
.footer-logo{ flex-direction:column; }
.footer-cta{
  display:none; /* CTA fixo cuida do mobile; no footer só aparece no desktop */
  align-items:center;
  gap:8px;
  font-size: 13px;
  letter-spacing:0.05em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
}
.footer-cta:hover{ border-color: var(--gold); color:#fff; }
.footer-cta .icon{ width:15px; height:15px; }

.copyright{
  font-size: 12px;
  color: var(--text-faint);
  max-width: 480px;
  line-height: 1.6;
}

/* ============================================================
   CTA FIXO DE PLANTÃO (mobile-first: barra fixa inferior)
   ============================================================ */
.plantao-fixo{
  position: fixed;
  left:0; right:0; bottom:0;
  z-index: 95;
  height: 58px;
  background: var(--gold);
  color: #10182a;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.35);
}
.plantao-fixo .icon{ color:#10182a; }
.plantao-fixo:hover{ background: var(--gold-light); }

/* ============================================================
   BREAKPOINT — tablet / 700px
   ============================================================ */
@media (min-width: 700px){
  .hero-actions{ flex-direction: row; justify-content:center; }
  .socios-grid{ grid-template-columns: repeat(2, 1fr); }
  .contato-mapa{ min-height: 340px; }
  .contato-mapa iframe{ min-height: 340px; }
}

/* ============================================================
   BREAKPOINT — desktop / 1000px
   ============================================================ */
@media (min-width: 1000px){
  :root{ --header-h: 76px; }

  .header-inner{ padding: 0 40px; }

  .main-nav{
    position: static;
    flex-direction: row;
    width:auto;
    height:auto;
    background: none;
    border-left: none;
    padding: 0;
    gap: 4px;
  }
  .nav-toggle{ display:none; }
  .nav-overlay{ display:none; }

  .hero{ padding: calc(var(--header-h) + 110px) 24px 110px; }
  .hero-ornament{ width: 640px; height: 640px; }

  .section-inner{ padding: 96px 40px; }

  .contato-grid{ grid-template-columns: 1fr 1.1fr; align-items:start; }
  .contato-info{ padding-top: 12px; }

  .footer-inner{ flex-direction: row; justify-content: space-between; text-align:left; }
  .footer-logo{ flex-direction:row; }
  .footer-cta{ display:inline-flex; }
  .copyright{ text-align:right; }

  /* No desktop o CTA fixo vira um botão flutuante discreto no canto */
  .site-footer{ padding-bottom: 56px; }
  .plantao-fixo{
    left:auto;
    right: 32px;
    bottom: 28px;
    height:auto;
    width:auto;
    padding: 14px 22px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  }
}

/* Respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


/*==============================
BANNER PRINCIPAL
===============================*/

.hero{

    position:relative;

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;

    text-align:left;

    overflow:hidden;

    background-image:url("../images/banner.jpg");

    background-size:cover;

    background-position:center;

    background-repeat:no-repeat;

}

.hero-overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(
        90deg,
        rgba(4,8,18,.78),
        rgba(4,8,18,.58),
        rgba(4,8,18,.35)
    );

}

.hero-inner{

    position:relative;

    z-index:2;

    width:100%;

    max-width:1180px;

    padding:0 40px;

}

.hero h1{

    max-width:720px;

    font-size:clamp(42px,6vw,74px);

    line-height:1.15;

    margin-bottom:25px;

}

.hero h1 span{

    color:#d9bd8b;

}

.hero-sub{

    max-width:650px;

    font-size:20px;

    line-height:1.8;

    color:#f3f3f3;

    margin-bottom:40px;

}

.hero-actions{

    display:flex;

    flex-wrap:wrap;

    gap:20px;

}

@media(max-width:900px){

.hero{

text-align:center;

}

.hero-inner{

padding:0 25px;

}

.hero h1{

font-size:42px;

}

.hero-sub{

font-size:17px;

}

.hero-actions{

justify-content:center;

}

}

.areas{

background:#091322;

padding:90px 0;

}

.areas-grid{

margin-top:50px;

display:grid;

grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

gap:25px;

}

.area-card{

background:#11233f;

padding:35px;

text-align:center;

border:1px solid rgba(182,144,92,.18);

font-size:22px;

font-family:var(--font-display);

transition:.3s;

}

.area-card:hover{

transform:translateY(-8px);

border-color:#b6905c;

}

.cta-final{

background:#b6905c;

text-align:center;

}

.cta-final h2{

color:#091322;

font-size:48px;

margin-bottom:20px;

}

.cta-final p{

max-width:700px;

margin:auto;

margin-bottom:35px;

color:#091322;

font-size:20px;

}