/* ============================================
   MORAIS MARIANO ADVOCACIA — Design System
   Premium Minimalist | Agronegócio
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #021C0D;
  --color-gold: #9F752D;
  --color-gold-light: #DFC990;
  --color-bg: #F4F4F4;
  --color-white: #FFFFFF;
  --color-text: #333333;
  --color-text-light: #666666;

  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Josefin Sans', 'Helvetica Neue', sans-serif;

  --header-height: 80px;
  --section-padding: 120px 0;
  --section-padding-mobile: 72px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  --transition-fast: 0.3s ease;
  --transition-medium: 0.6s ease;
  --transition-slow: 1s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
}

/* --- Section Label (WBA style) --- */
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.section-label::after {
  content: '';
  width: 40px;
  height: 1px;
  background-color: var(--color-gold);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background-color: var(--color-gold);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-primary:hover {
  background-color: var(--color-gold-light);
  transform: translateY(-2px);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background-color: transparent;
  color: var(--color-gold);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--color-gold);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 48px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.header.scrolled {
  background-color: var(--color-primary);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header__logo img {
  height: 40px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header__nav a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-white);
  position: relative;
  padding: 4px 0;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: width var(--transition-fast);
}

.header__nav a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.header__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.header__toggle span {
  display: block;
  width: 28px;
  height: 1.5px;
  background-color: var(--color-white);
  transition: all var(--transition-fast);
}

.header__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__toggle.active span:nth-child(2) {
  opacity: 0;
}

.header__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-primary);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-white);
  letter-spacing: 0.05em;
}

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

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(2, 28, 13, 0.7) 0%,
    rgba(2, 28, 13, 0.55) 50%,
    rgba(2, 28, 13, 0.8) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero__content h1 {
  color: var(--color-white);
  margin-bottom: 24px;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.hero__subline {
  display: block;
  margin-top: 18px;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.hero__content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* ============================================
   SOBRE O ESCRITORIO
   ============================================ */
.sobre {
  padding: var(--section-padding);
  background-color: var(--color-bg);
}

.sobre .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.sobre__text h2 {
  margin-bottom: 24px;
}

.sobre__text p {
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.9;
}

.sobre__image {
  position: relative;
  overflow: hidden;
}

.sobre__image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.sobre__image--logo {
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
}

.sobre__image--logo img {
  width: auto;
  max-width: 70%;
  height: auto;
  max-height: 60%;
  object-fit: contain;
}

.sobre__image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 1px solid var(--color-gold);
  z-index: -1;
}

/* ============================================
   O ADVOGADO
   ============================================ */
.advogado {
  padding: var(--section-padding);
  background-color: var(--color-white);
}

.advogado .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.advogado__image {
  position: relative;
}

.advogado__image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center top;
}

.advogado__image::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-gold-light);
  z-index: -1;
}

.advogado__text h2 {
  margin-bottom: 24px;
}

.advogado__text p {
  color: var(--color-text-light);
  line-height: 1.9;
}

.advogado__text .oab-badge {
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 24px;
  padding: 6px 16px;
  background-color: var(--color-gold);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.advogado__quote {
  margin-top: 32px;
  padding: 24px 0 24px 24px;
  border-left: 2px solid var(--color-gold);
}

.advogado__quote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--color-primary);
  margin-bottom: 0;
}

/* ============================================
   SERVICOS (Cards)
   ============================================ */
.servicos {
  padding: var(--section-padding);
  background-color: var(--color-bg);
}

.servicos .section-header {
  text-align: center;
  margin-bottom: 64px;
}

.servicos .section-header .section-label {
  justify-content: center;
}

.servicos .section-header .section-label::after {
  display: none;
}

.servicos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.servico-card {
  background-color: var(--color-white);
  padding: 48px 36px;
  border: 1px solid #E8E8E8;
  transition: all var(--transition-fast);
}

.servico-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(2, 28, 13, 0.08);
  border-color: var(--color-gold-light);
}

.servico-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--color-gold);
}

.servico-card__icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.servico-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.servico-card p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================
   DIFERENCIAIS
   ============================================ */
.diferenciais {
  padding: var(--section-padding);
  background-color: var(--color-primary);
}

.diferenciais .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.diferenciais__text .section-label {
  color: var(--color-gold-light);
}

.diferenciais__text .section-label::after {
  background-color: var(--color-gold-light);
}

.diferenciais__text h2 {
  color: var(--color-white);
  margin-bottom: 48px;
}

.diferenciais__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.diferencial-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.diferencial-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-gold);
  margin-top: 2px;
}

.diferencial-item__icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.diferencial-item p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.diferenciais__image {
  position: relative;
}

.diferenciais__image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* ============================================
   CTA INTERMEDIARIO
   ============================================ */
.cta-section {
  padding: var(--section-padding);
  background-color: var(--color-white);
  text-align: center;
}

.cta-section h2 {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

.cta-section .divider {
  width: 60px;
  height: 1px;
  background-color: var(--color-gold);
  margin: 0 auto 40px;
}

/* ============================================
   LOCALIZACAO
   ============================================ */
.localizacao {
  padding: var(--section-padding);
  background-color: var(--color-bg);
}

.localizacao .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.localizacao__text h2 {
  margin-bottom: 24px;
}

.localizacao__text p {
  color: var(--color-text-light);
  line-height: 1.8;
}

.localizacao__text address {
  font-style: normal;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #E0E0E0;
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.localizacao__map {
  height: 400px;
  background-color: #E0E0E0;
  overflow: hidden;
}

.localizacao__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   RODAPE
   ============================================ */
.footer {
  background-color: var(--color-primary);
  padding: 64px 48px 32px;
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: start;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-style: italic;
  color: var(--color-gold-light);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.footer__col p,
.footer__col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 2;
}

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

.footer__logo {
  text-align: center;
}

.footer__logo img {
  height: 60px;
  width: auto;
  margin: 0 auto;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.footer__social a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

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

.footer__social svg {
  width: 20px;
  height: 20px;
}

.footer__bottom {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-top: 24px;
  text-align: center;
}

.footer__bottom p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  line-height: 1.8;
}

/* ============================================
   WHATSAPP FLUTUANTE
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 998;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: var(--color-white);
}

/* ============================================
   ANIMACOES (Fade-in)
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-medium), transform var(--transition-medium);
}

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


.fade-in-delay-1 { transition-delay: 0.15s; }
.fade-in-delay-2 { transition-delay: 0.3s; }
.fade-in-delay-3 { transition-delay: 0.45s; }
.fade-in-delay-4 { transition-delay: 0.6s; }

/* ============================================
   RESPONSIVO
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .header {
    padding: 0 24px;
  }

  .header__nav {
    display: none;
  }

  .header__toggle {
    display: flex;
  }

  .sobre .container,
  .advogado .container,
  .diferenciais .container,
  .localizacao .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .servicos__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__logo {
    order: -1;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .hero__content h1 {
    font-size: 1.75rem;
  }

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

  .servico-card {
    padding: 36px 28px;
  }

  .advogado__image img,
  .sobre__image img {
    height: 350px;
  }

  .diferenciais__image {
    display: none;
  }

  .localizacao__map {
    height: 300px;
  }

  .footer {
    padding: 48px 24px 24px;
  }

  .footer__content {
    gap: 36px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero__content h1 {
    font-size: 1.5rem;
  }

  .btn-primary {
    padding: 14px 28px;
    font-size: 0.8rem;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}
