/* ==========================================================================
   GUILHERME FERNANDES ADVOCACIA - CLEAN LUXURY DESIGN SYSTEM
   ========================================================================== */

/* System fonts fallback + asynchronous Google Fonts in HTML */

:root {
  /* Color Palette - Clean Light Theme */
  --bg-dark: #FFFFFF;
  --bg-surface: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-section-alt: #F1F5F9;
  
  --gold-primary: #C5A059;
  --gold-light: #D4AF37;
  --gold-dark: #9A7635;
  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #C5A059 50%, #9A7635 100%);
  --gold-glow: rgba(197, 160, 89, 0.2);

  --whatsapp-green: #25D366;
  --whatsapp-dark: #128C7E;
  --whatsapp-gradient: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  --whatsapp-glow: rgba(37, 211, 102, 0.35);

  --navy-primary: #0F172A;
  --navy-secondary: #1E293B;

  --text-white: #FFFFFF;
  --text-dark: #0F172A;
  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-gold: #9A7635;

  --border-color: #E2E8F0;
  --border-gold: rgba(197, 160, 89, 0.4);

  /* Typography */
  --font-heading: 'Cinzel', serif;
  --font-subheading: 'Montserrat', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Transitions & Shadows */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
  --shadow-gold: 0 10px 25px -5px rgba(197, 160, 89, 0.3);
  --shadow-green: 0 10px 25px -5px rgba(37, 211, 102, 0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Links & Buttons Reset */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* Typography Helpers */
h1, h2, h3, .heading-serif {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  color: var(--text-dark);
  line-height: 1.25;
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-dark);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

/* Top Bar Header */
.topbar {
  background: #0F172A;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  padding: 0.6rem 0;
  color: #CBD5E1;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-item svg, .topbar-item i {
  color: var(--gold-light);
}

.topbar-welcome {
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Main Navigation - Clean White Matching Logo */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  padding: 0.8rem 0;
}

.navbar.scrolled {
  background: #FFFFFF;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  padding: 0.5rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-primary);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-link:hover, .nav-link.active {
  color: var(--gold-dark);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
  text-align: center;
}

.btn-whatsapp {
  background: var(--whatsapp-gradient);
  color: #FFFFFF;
  box-shadow: var(--shadow-green);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
  color: #FFFFFF;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0F172A;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(197, 160, 89, 0.45);
  color: #0F172A;
}

.btn-outline {
  background: #FFFFFF;
  border: 1.5px solid var(--gold-primary);
  color: var(--navy-primary);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--navy-primary);
  color: #FFFFFF;
  border-color: var(--navy-primary);
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--navy-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile Menu Modal / Drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 1100;
  padding: 2rem 1.5rem;
  box-shadow: -10px 0 30px rgba(0,0,0,0.2);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu.open {
  right: 0;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Hero Section - Clean Light Luxury Overlay */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.96) 100%),
              url('../images/hero_bg.webp') center/cover no-repeat;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.96) 100%),
                url('../images/hero_bg_mobile.webp') center/cover no-repeat;
  }
}

.hero.gestante-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.96) 100%),
              url('../images/gestante_hero.webp') center/cover no-repeat;
}

@media (max-width: 768px) {
  .hero.gestante-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.96) 100%),
                url('../images/gestante_hero_mobile.webp') center/cover no-repeat;
  }
}

.hero-overlay-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 820px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--navy-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 500;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Stats Counter Bar - Clean Cards */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
  padding: 2rem;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  border-radius: 16px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-left: 1rem;
  border-left: 3px solid var(--gold-primary);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy-primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Section General */
.section {
  padding: 6rem 0;
  position: relative;
  background: var(--bg-dark);
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: var(--navy-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Features / Highlights Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.2rem 1.8rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-hover);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  font-family: var(--font-subheading);
  font-weight: 700;
  color: var(--navy-primary);
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* About / Por Que Escolher Section */
.about-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-callout {
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 2.2rem;
  box-shadow: var(--shadow-card);
}

.about-callout h4 {
  color: var(--navy-primary);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-callout p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}

/* Practice Areas Grid */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.solution-card.highlighted {
  border-color: var(--gold-primary);
  background: linear-gradient(145deg, #FFFFFF, rgba(197, 160, 89, 0.08));
  box-shadow: var(--shadow-card);
}

.solution-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-hover);
}

.solution-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.solution-icon {
  font-size: 1.6rem;
  color: var(--gold-dark);
}

.solution-card h3 {
  font-size: 1.2rem;
  font-family: var(--font-subheading);
  font-weight: 700;
  color: var(--navy-primary);
}

.solution-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Lawyer Profile Section */
.profile-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 380px 1fr;
  box-shadow: var(--shadow-hover);
}

.profile-img-wrap {
  position: relative;
  height: 100%;
  min-height: 420px;
}

.profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% 20%;
}

.profile-content {
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-name {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
  color: var(--navy-primary);
}

.profile-role {
  color: var(--gold-dark);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-bio {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.profile-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.cred-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cred-badge svg, .cred-badge i {
  color: var(--gold-dark);
}

/* Office & Map Section */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.location-info {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.location-address {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.location-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.map-container {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  height: 380px;
  box-shadow: var(--shadow-card);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer - Dark Navy Clean Contrast */
.footer {
  background: #0F172A;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  color: #94A3B8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.95rem;
  max-width: 340px;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-subheading);
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748B;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--whatsapp-gradient);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: var(--transition-normal);
  animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.7);
  color: #FFFFFF;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .about-grid, .location-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .profile-card {
    grid-template-columns: 1fr;
  }
  .profile-img-wrap {
    height: 320px;
    min-height: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .nav-links, .nav-actions .btn {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 4rem 0 3rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .profile-content {
    padding: 2rem 1.5rem;
  }
  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 54px;
    height: 54px;
    font-size: 1.7rem;
  }
}
