/* ===== BCC Advogados - Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --navy: #1B2A4A;
  --navy-dark: #101D35;
  --navy-darker: #0A1425;
  --gold: #C4A265;
  --gold-light: #D9BC82;
  --gold-dark: #A8874D;
  --text: #333;
  --text-light: #6B7280;
  --bg: #fff;
  --bg-alt: #F5F5F3;
  --border: #E5E5E5;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; line-height: 1.3; }

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

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

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

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 20px 0; transition: all 0.4s ease;
}
.navbar.scrolled {
  background: rgba(10, 20, 37, 0.97);
  padding: 12px 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.nav-logo-img { height: 40px; width: auto; filter: invert(1) brightness(2); transition: var(--transition); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.nav-links { display: flex; list-style: none; gap: 32px; }
.nav-links a {
  color: rgba(255,255,255,0.8); font-size: 0.85rem; font-weight: 400;
  letter-spacing: 0.05em; text-transform: uppercase; position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
  background: var(--gold); transition: width 0.3s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: transparent; border: 1px solid var(--gold); color: var(--gold);
  padding: 10px 24px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; font-family: var(--font-body); transition: var(--transition);
}
.nav-cta:hover { background: var(--gold); color: var(--navy-dark); }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; transition: var(--transition); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center; overflow: hidden;
  background: var(--navy-darker);
}
.hero-bg {
  position: absolute; inset: 0; background: url('../img/hero-bg.png') center/cover no-repeat;
  opacity: 0.7;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,37,0.4) 0%, rgba(10,20,37,0.7) 100%); }

.hero-content { position: relative; z-index: 2; padding: 0 24px; }

.hero-logo-img {
  max-width: clamp(300px, 50vw, 600px); height: auto; margin: 0 auto 40px;
  filter: invert(1) brightness(2);
}

.hero-tagline {
  font-family: var(--font-accent); font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(255,255,255,0.75); font-weight: 300; font-style: italic;
  max-width: 600px; margin: 0 auto 48px;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold); color: var(--navy-dark); padding: 14px 36px;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-family: var(--font-body); font-weight: 500; border: none; cursor: pointer;
  transition: var(--transition); display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(196,162,101,0.3); }

.btn-secondary {
  background: transparent; color: #fff; padding: 14px 36px; border: 1px solid rgba(255,255,255,0.3);
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-family: var(--font-body); font-weight: 400; cursor: pointer; transition: var(--transition);
  display: inline-block;
}
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.05); }

.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.4); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ===== SECTIONS COMMON ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-dark); color: #fff; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 16px; display: block;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 16px; }
.section-line { width: 60px; height: 2px; background: var(--gold); margin: 0 auto; }

/* Google Rating Badge */
.google-rating { margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.google-stars { color: #FBBC04; font-size: 1.2rem; letter-spacing: 2px; }
.google-score { color: var(--gold-light); font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; }
.google-count { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* ===== ABOUT / MISSION ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-text p { margin-bottom: 20px; color: var(--text-light); font-size: 1rem; line-height: 1.8; }
.about-text p:first-child::first-letter {
  font-family: var(--font-heading); font-size: 3.5rem; float: left; line-height: 1;
  margin-right: 12px; color: var(--navy); font-weight: 600;
}

.mission-box {
  background: var(--navy-dark); color: #fff; padding: 40px; position: relative;
}
.mission-box::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--gold), transparent);
}
.mission-box h3 { font-size: 1.3rem; margin-bottom: 16px; color: var(--gold-light); }
.mission-box p { color: rgba(255,255,255,0.75); font-size: 0.95rem; line-height: 1.8; font-style: italic; }

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
.value-card {
  padding: 28px; border: 1px solid var(--border); transition: var(--transition);
  position: relative; overflow: hidden;
}
.value-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform 0.4s ease;
}
.value-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.value-card:hover::before { transform: scaleX(1); }
.value-icon { font-size: 1.8rem; margin-bottom: 12px; }
.value-card h4 { font-size: 1rem; margin-bottom: 8px; color: var(--navy); }
.value-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

/* ===== AREAS ===== */
.areas-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-bottom: 48px; }
.area-card {
  padding: 36px 28px; text-align: center; background: var(--bg);
  border: 1px solid var(--border); transition: var(--transition);
  position: relative; overflow: hidden;
}
.area-card::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.area-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); border-color: transparent; }
.area-card:hover::after { transform: scaleX(1); }
.area-icon { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.area-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--navy); }
.area-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

.partnership-label {
  text-align: center; margin-bottom: 32px; font-family: var(--font-body);
  font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-light);
}
.areas-partnership { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.area-card.partner { border-style: dashed; }
.area-card.partner .area-badge {
  position: absolute; top: 12px; right: 12px; background: var(--gold); color: var(--navy-dark);
  font-size: 0.6rem; padding: 3px 8px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
}

/* ===== TEAM ===== */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; max-width: 800px; margin: 0 auto; }
.team-card { text-align: center; }
.team-avatar {
  width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 24px;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 2.5rem; color: var(--gold-light);
  border: 3px solid var(--gold); transition: var(--transition);
}
.team-card:hover .team-avatar { transform: scale(1.05); box-shadow: 0 8px 30px rgba(27,42,74,0.3); }
.team-card h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 4px; }
.team-card .team-role { color: var(--gold-dark); font-size: 0.85rem; font-weight: 500; margin-bottom: 4px; }
.team-card .team-oab { color: var(--text-light); font-size: 0.8rem; }

/* ===== TESTIMONIALS ===== */
.testimonials-wrapper { max-width: 700px; margin: 0 auto; position: relative; min-height: 250px; }
.testimonial {
  text-align: center; opacity: 0; position: absolute; top: 0; left: 0; right: 0;
  transition: opacity 0.6s ease; pointer-events: none;
}
.testimonial.active { opacity: 1; position: relative; pointer-events: auto; }
.testimonial-quote {
  font-family: var(--font-accent); font-size: 1.3rem; font-style: italic;
  color: rgba(255,255,255,0.85); line-height: 1.8; margin-bottom: 24px; position: relative;
  padding: 0 20px;
}
.testimonial-quote::before {
  content: '\201C'; font-size: 5rem; color: var(--gold); opacity: 0.3;
  position: absolute; top: -30px; left: -10px; font-family: var(--font-heading);
}
.testimonial-author { color: var(--gold-light); font-weight: 500; font-size: 0.95rem; }
.testimonial-role { color: rgba(255,255,255,0.5); font-size: 0.8rem; margin-top: 4px; }

.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.testimonial-dot {
  width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--gold);
  background: transparent; cursor: pointer; transition: var(--transition);
}
.testimonial-dot.active { background: var(--gold); }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-info h3 { font-size: 1.4rem; margin-bottom: 24px; color: var(--navy); }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px; background: var(--navy); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.contact-item h4 { font-size: 0.9rem; margin-bottom: 4px; color: var(--navy); font-family: var(--font-body); font-weight: 600; }
.contact-item p, .contact-item a { font-size: 0.9rem; color: var(--text-light); }
.contact-item a:hover { color: var(--gold); }

.contact-form { background: var(--bg); padding: 40px; border: 1px solid var(--border); }
.contact-form h3 { font-size: 1.4rem; margin-bottom: 24px; color: var(--navy); }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text); margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text);
  transition: var(--transition); background: var(--bg); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,162,101,0.1);
}
.form-group textarea { height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.btn-submit {
  width: 100%; padding: 14px; background: var(--navy); color: #fff; border: none;
  font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer; transition: var(--transition); font-weight: 500;
}
.btn-submit:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27,42,74,0.3); }

.map-container { margin-top: 64px; height: 350px; border: 1px solid var(--border); }
.map-container iframe { width: 100%; height: 100%; border: 0; filter: grayscale(30%); }

/* ===== FOOTER ===== */
.footer { background: var(--navy-darker); color: rgba(255,255,255,0.6); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-logo-img { height: 35px; width: auto; filter: invert(1) brightness(2); margin-bottom: 16px; }
.footer-logo p { font-size: 0.85rem; line-height: 1.7; max-width: 350px; }
.footer h4 { color: var(--gold-light); font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 20px; font-family: var(--font-body); font-weight: 600; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 0.85rem; transition: var(--transition); }
.footer ul a:hover { color: var(--gold-light); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4); transition: var(--transition);
  color: #fff; font-size: 1.6rem;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 25px rgba(37,211,102,0.5); }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none; position: fixed; inset: 0; background: rgba(10,20,37,0.98); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: #fff; font-size: 1.2rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-family: var(--font-heading);
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-close {
  position: absolute; top: 24px; right: 24px; background: none; border: none;
  color: #fff; font-size: 2rem; cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-partnership { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .areas-grid { grid-template-columns: 1fr; }
  .areas-partnership { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-logo-img { max-width: 280px; }
}
