/* ============================================================
   ALEANDRO REIS ADVOCACIA — STYLE.CSS
   Design System Global: Cores, Tipografia, Reset, Utilitários
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS CUSTOM PROPERTIES (TOKENS) ── */
:root {
  /* Palette */
  --color-navy:        #0A1628;
  --color-navy-mid:    #112240;
  --color-navy-light:  #1a3357;
  --color-gold:        #C9A84C;
  --color-gold-light:  #E8C97D;
  --color-gold-pale:   #F5E8C0;
  --color-silver:      #A8B2C0;
  --color-white:       #FFFFFF;
  --color-off-white:   #F7F8FA;
  --color-light-gray:  #EEF1F5;
  --color-mid-gray:    #CDD3DC;
  --color-charcoal:    #3D4A5C;
  --color-text:        #1C2B3A;
  --color-text-muted:  #5E6F82;
  --color-success:     #1DB954;
  --color-whatsapp:    #25D366;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2.5rem;
  --space-2xl:  4rem;
  --space-3xl:  6rem;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;
  --fs-xs:    0.75rem;
  --fs-sm:    0.875rem;
  --fs-base:  1rem;
  --fs-md:    1.125rem;
  --fs-lg:    1.25rem;
  --fs-xl:    1.5rem;
  --fs-2xl:   2rem;
  --fs-3xl:   2.75rem;
  --fs-4xl:   3.5rem;
  --fs-5xl:   4.5rem;

  /* Border Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(10, 22, 40, 0.08), 0 1px 2px rgba(10, 22, 40, 0.06);
  --shadow-md:  0 4px 16px rgba(10, 22, 40, 0.10), 0 2px 4px rgba(10, 22, 40, 0.06);
  --shadow-lg:  0 10px 40px rgba(10, 22, 40, 0.14), 0 4px 8px rgba(10, 22, 40, 0.08);
  --shadow-xl:  0 20px 60px rgba(10, 22, 40, 0.20);
  --shadow-gold: 0 4px 24px rgba(201, 168, 76, 0.25);

  /* Transitions */
  --ease-fast:   0.15s ease;
  --ease-base:   0.25s ease;
  --ease-slow:   0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1280px;
  --container-pad: 1.5rem;
  --header-height: 76px;
}

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  padding: 0;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

address { font-style: normal; }

/* ── FOCUS STYLES (ACCESSIBILITY) ── */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── SECTIONS ── */
.section {
  padding-block: var(--space-3xl);
}

/* ── SECTION HEADER ── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  background: rgba(201, 168, 76, 0.10);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  border: 1px solid rgba(201, 168, 76, 0.25);
}

.tag-light {
  color: var(--color-gold-light);
  background: rgba(201, 168, 76, 0.15);
  border-color: rgba(201, 168, 76, 0.30);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--fs-2xl), 3.5vw, var(--fs-3xl));
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  transition: all var(--ease-base);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, #b8934a 100%);
  color: var(--color-navy);
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
  box-shadow: 0 6px 30px rgba(201, 168, 76, 0.40);
  transform: translateY(-2px);
  color: var(--color-navy);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.30);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.60);
  transform: translateY(-2px);
  color: var(--color-white);
}

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

.btn-outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-full { width: 100%; }

.btn-sm {
  font-size: var(--fs-xs);
  padding: 0.5rem 1.25rem;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: var(--color-white) !important;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2de070 0%, #25D366 100%);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.50);
  color: var(--color-white);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-icon-sm {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--ease-base);
}

.btn:hover .btn-icon-sm {
  transform: translateY(2px);
}

/* ── HEADER / NAV ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 22, 40, 0.0);
  backdrop-filter: blur(0px);
  transition: background var(--ease-slow), backdrop-filter var(--ease-slow), box-shadow var(--ease-slow);
}

.site-header.scrolled {
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.15), var(--shadow-lg);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  flex-shrink: 0;
  transition: opacity var(--ease-fast);
}
.logo-link:hover { opacity: 0.85; }

.logo-img { height: 42px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-item {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.80);
  transition: color var(--ease-fast);
  position: relative;
  padding-bottom: 2px;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--ease-base);
  border-radius: var(--radius-full);
}

.nav-item:hover,
.nav-item.active {
  color: var(--color-white);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.5rem;
  background: var(--color-gold);
  color: var(--color-navy) !important;
  border-radius: var(--radius-full);
  font-weight: 700;
  transition: all var(--ease-base) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--color-gold-light) !important;
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1100;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: var(--radius-full);
  transition: all var(--ease-base);
}

.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.75);
  padding-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo { margin-bottom: var(--space-md); filter: brightness(0) invert(1); }

.footer-tagline {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.60);
  transition: all var(--ease-base);
}

.social-link svg { width: 18px; height: 18px; }

.social-link:hover {
  background: var(--color-gold);
  color: var(--color-navy);
  transform: translateY(-3px);
}

.footer-nav-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-lg);
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-nav-links a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--ease-fast);
}

.footer-nav-links a:hover { color: var(--color-white); }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.60);
}

.contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-gold);
  margin-top: 3px;
}

.contact-item a {
  color: rgba(255,255,255,0.60);
  transition: color var(--ease-fast);
}

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

.footer-bottom {
  background: rgba(0,0,0,0.20);
  padding: var(--space-lg) 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-copy,
.footer-oab {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.35);
}

/* ── WHATSAPP FLOAT BUTTON ── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: var(--color-white);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: all var(--ease-base);
  text-decoration: none;
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  animation: whatsapp-pulse 2.5s ease-in-out infinite;
}

@keyframes whatsapp-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 40px rgba(37, 211, 102, 0.55);
  color: var(--color-white);
}

.whatsapp-float-label {
  display: inline;
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--color-navy-mid);
  border-top: 1px solid rgba(201, 168, 76, 0.20);
  padding: var(--space-lg) var(--container-pad);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}

.cookie-content {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.cookie-content p {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.70);
  flex: 1;
}

.cookie-content a {
  color: var(--color-gold);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* ── FORMS (GLOBAL) ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-label {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

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

.form-input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  color: var(--color-white);
  font-size: var(--fs-sm);
  transition: all var(--ease-base);
  appearance: none;
}

.form-input::placeholder { color: rgba(255,255,255,0.35); }

.form-input:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-select { cursor: pointer; }
.form-select option { background: var(--color-navy-mid); color: var(--color-white); }

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

.form-privacy {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.40);
  text-align: center;
  margin-top: var(--space-sm);
}

.form-privacy-link {
  color: var(--color-gold);
  text-decoration: underline;
}

/* ── UTILITIES ── */
.text-gold { color: var(--color-gold); }
.text-navy { color: var(--color-navy); }
.text-muted { color: var(--color-text-muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── RESPONSIVE — MOBILE ── */
@media (max-width: 768px) {
  :root {
    --container-pad: 1.25rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    background: var(--color-navy);
    justify-content: center;
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform var(--ease-slow), visibility 0s var(--ease-slow);
    z-index: 1050;
    padding: var(--space-3xl);
    visibility: hidden;
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--ease-slow), visibility 0s;
  }

  .nav-item {
    font-size: var(--fs-lg);
    color: rgba(255,255,255,0.85);
  }

  .nav-cta {
    font-size: var(--fs-base) !important;
    padding: 0.8rem 1.8rem !important;
  }

  .hamburger { display: flex; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-float {
    bottom: 1.25rem;
    right: 1rem;
    left: 1rem;
    justify-content: center;
    padding: 0.9rem;
    border-radius: var(--radius-full);
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .whatsapp-float-label { display: none; }
  .whatsapp-float {
    right: 1.25rem;
    left: auto;
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
