/* ═══════════════════════════════════════════════════════════════════════════
   FRANCO & XAVIER ADVOGADOS — STYLESHEET
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --gold: #d4af37;
  --gold-dark: #b8941f;
  --dark: #1a1a1a;
  --light: #f5f5f5;
  --text: #333;
  --text-light: #666;
  --border: #e0e0e0;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Jost', sans-serif;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: white;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ═══ TOPBAR ═══ */
.topbar {
  background: var(--dark);
  color: white;
  font-size: 13px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.tb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.tb-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tb-right a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

.tb-right a:hover {
  color: white;
}

.tb-sep {
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .topbar {
    font-size: 11px;
  }
  .tb-inner {
    flex-direction: column;
    gap: 10px;
  }
  .tb-right {
    width: 100%;
    justify-content: center;
  }
}

/* ═══ HEADER ═══ */
.header {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all var(--transition);
}

.header.scroll {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hd-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
}

.logo-emblem {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--serif);
  letter-spacing: 1px;
}

.logo-sub {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-light);
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 30px;
  flex: 1;
}

.nav-a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}

.nav-a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-a:hover::after,
.nav-a.active::after {
  width: 100%;
}

.nav-a:hover {
  color: var(--gold);
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
}

.burger span {
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .hd-inner {
    gap: 15px;
  }
}

/* ═══ MOBILE MENU ═══ */
.mob {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 200;
  flex-direction: column;
  padding: 60px 20px 20px;
  gap: 20px;
}

.mob.open {
  display: flex;
}

.mob-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.mob nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mob a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mob a:hover {
  color: var(--gold);
}

/* ═══ HERO ═══ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-texture {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(212, 175, 55, 0.03) 2px,
      rgba(212, 175, 55, 0.03) 4px
    );
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
}

.hero-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.05) 50%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
}

.ey-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.hero-h1 {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
}

.h1-serif {
  display: block;
}

.h1-gold {
  color: var(--gold);
}

.hero-p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 14px 32px !important;
  font-size: 15px !important;
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  transition: all var(--transition);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--dark);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
}

.ht-item {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.ht-val {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
}

.ht-sym {
  font-size: 20px;
  color: var(--gold);
}

.ht-label {
  font-size: 12px;
  color: var(--text-light);
  display: block;
  margin-top: 5px;
}

.ht-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

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

.hv-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  max-width: 350px;
  width: 100%;
}

.hvc-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.hvc-line {
  height: 2px;
  background: var(--gold);
  width: 40px;
  margin-bottom: 20px;
}

.hvc-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hvci {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.hvci-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.hvc-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-light);
}

.hvcf-dot {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.hero-scroll-ind {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll-ind span {
  display: block;
  width: 20px;
  height: 30px;
  border: 2px solid var(--gold);
  border-radius: 10px;
  position: relative;
  animation: scroll 2s infinite;
}

.hero-scroll-ind span::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 6px;
  background: var(--gold);
  border-radius: 1px;
  animation: scroll-dot 2s infinite;
}

@keyframes scroll {
  0%, 20%, 50%, 80%, 100% {
    opacity: 1;
  }
  40% {
    opacity: 0.5;
  }
}

@keyframes scroll-dot {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px;
  }
  .hero-h1 {
    font-size: 36px;
  }
  .hero-trust {
    flex-direction: column;
    gap: 20px;
  }
  .ht-sep {
    display: none;
  }
}

/* ═══ MANIFESTO ═══ */
.manifesto {
  background: var(--dark);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.mf-inner {
  max-width: 800px;
  margin: 0 auto;
}

.mf-quote {
  font-family: var(--serif);
  font-size: 80px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 20px;
}

.mf-text {
  font-size: 20px;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.mf-autor {
  display: block;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ═══ SECTION HEAD ═══ */
.sec-head {
  text-align: center;
  margin-bottom: 60px;
}

.s-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 15px;
  font-weight: 600;
}

.s-tag-light {
  color: var(--gold);
}

.s-h2 {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--dark);
}

.s-h2 em {
  font-style: italic;
  color: var(--gold);
}

.s-h2-light {
  color: white;
}

.s-h2-light em {
  color: var(--gold);
}

.s-sub {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ═══ ATUAÇÃO ═══ */
.atuacao {
  padding: 100px 20px;
  background: white;
}

.atu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.atu-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.atu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.atu-card:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.atu-card:hover::before {
  transform: scaleX(1);
}

.ac-num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 15px;
}

.ac-icon {
  font-size: 36px;
  margin-bottom: 15px;
}

.atu-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--dark);
}

.atu-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ═══ PROCESSO ═══ */
.processo {
  padding: 100px 20px;
  background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
}

.proc-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.ps-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px;
  position: relative;
  transition: all var(--transition);
}

.ps-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--gold);
}

.psi-num {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 15px;
}

.psi-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark);
}

.psi-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.psi-arrow {
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--gold);
  opacity: 0.3;
}

@media (max-width: 768px) {
  .psi-arrow {
    display: none;
  }
}

/* ═══ SERVIÇOS ═══ */
.servicos {
  padding: 100px 20px;
  background: white;
}

.srv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.srv-card {
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 35px;
  text-align: center;
  transition: all var(--transition);
}

.srv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
}

.srv-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.srv-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--dark);
}

.srv-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ═══ ESCRITÓRIO ═══ */
.escritorio {
  padding: 100px 20px;
  background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
}

.esc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.esc-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: all var(--transition);
}

.esc-card:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.esc-icon {
  font-size: 36px;
  margin-bottom: 15px;
}

.esc-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark);
}

.esc-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ═══ CTA FINAL ═══ */
.cta-final {
  position: relative;
  padding: 80px 20px;
  overflow: hidden;
}

.ctaf-inner {
  position: relative;
  z-index: 1;
}

.ctaf-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--dark) 0%, #2a2a2a 100%);
  z-index: 0;
}

.ctaf-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ctaf-text {
  color: white;
}

.ctaf-btns {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (max-width: 768px) {
  .ctaf-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ═══ CONTATO ═══ */
.contato {
  padding: 100px 20px;
  background: white;
}

.ct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.ct-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.ct-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ct-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  padding: 10px;
  border-radius: 4px;
}

.ct-item:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
}

.cti-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 5px;
}

.ct-item strong {
  display: block;
  font-weight: 600;
  margin-bottom: 3px;
}

.ct-item span {
  font-size: 14px;
  color: var(--text-light);
}

.ct-oab {
  background: rgba(212, 175, 55, 0.1);
  border-left: 3px solid var(--gold);
  padding: 15px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}

.ct-form {
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
}

.ct-form h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--dark);
}

.fg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.fg {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fg label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.fg input,
.fg select,
.fg textarea {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 14px;
  transition: all var(--transition);
}

.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.btn-full {
  width: 100% !important;
  margin-top: 10px;
}

.form-note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 15px;
  text-align: center;
}

@media (max-width: 768px) {
  .ct-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .fg-row {
    grid-template-columns: 1fr;
  }
}

/* ═══ FOOTER ═══ */
.footer {
  background: var(--dark);
  color: white;
}

.ft-top {
  padding: 60px 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.ft-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.ft-brand {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ft-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.ft-oab {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.ft-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  color: white;
}

.ft-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ft-col a,
.ft-col span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition);
}

.ft-col a:hover {
  color: var(--gold);
}

.ft-bottom {
  padding: 30px 20px;
  background: rgba(0, 0, 0, 0.3);
}

.ft-bot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.ft-bot-inner p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.ft-disclaimer {
  font-style: italic;
}

@media (max-width: 768px) {
  .ft-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .ft-bot-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ═══ WHATSAPP FLOAT ═══ */
.waf {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all var(--transition);
  z-index: 50;
}

.waf:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.waf span {
  display: none;
}

@media (max-width: 768px) {
  .waf {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
}

/* ═══ REVEAL ANIMATION ═══ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ UTILITIES ═══ */
@media (max-width: 768px) {
  .s-h2 {
    font-size: 28px;
  }
  .hero-h1 {
    font-size: 32px;
  }
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
