/* ============================================
   Advocacia Prado & Ruiz — Main Stylesheet
   Colors: #774e30, #000, #fefefe, #623c18
   ============================================ */

/* --- CSS Variables --- */
:root {
  --brown: #774e30;
  --brown-dark: #623c18;
  --black: #000000;
  --white: #fefefe;
  --brown-light: #a07850;
  --brown-muted: #b89a7a;
  --brown-bg: #f5f0ea;
  --shadow: 0 2px 20px rgba(119,78,48,.08);
  --shadow-lg: 0 8px 40px rgba(119,78,48,.12);
  --radius: 8px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brown-dark); }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--black); line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p { margin-bottom: 1em; }
.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* --- Top Bar --- */
.top-bar {
  background: var(--brown-dark);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  padding: 6px 0;
  letter-spacing: .3px;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: rgba(255,255,255,.9); }
.top-bar a:hover { color: #fff; }
.top-bar-info { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.top-bar-info span { display: flex; align-items: center; gap: 5px; }
.top-bar-social { display: flex; gap: 12px; }
.top-bar-social a { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.12); transition: background var(--transition); }
.top-bar-social a:hover { background: rgba(255,255,255,.25); }

/* --- Header / Navbar --- */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.logo img { height: 52px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--black);
  padding: 10px 16px;
  position: relative;
  transition: color var(--transition);
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--brown);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.main-nav a:hover { color: var(--brown); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--brown); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: .8rem;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover { background: var(--brown-bg); color: var(--brown); }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}
.menu-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--black);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
/* --- Hero Banner --- */
.hero-banner {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--brown-bg);
}
.hero-banner .banner-desktop { display: block; width: 100%; height: auto; }
.hero-banner .banner-mobile { display: none; width: 100%; height: auto; }

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 100%);
  color: #fff;
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { color: #fff; margin-bottom: 10px; position: relative; }
.page-hero .breadcrumb { font-size: .9rem; opacity: .85; position: relative; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.8); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb span { margin: 0 8px; opacity: .5; }
/* --- Section Base --- */
.section { padding: 70px 0; }
.section-alt { background: var(--brown-bg); }
.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}
.section-title h2 { display: inline-block; position: relative; padding: 0 20px; }
.section-title h2::before,
.section-title h2::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1.5px;
  background: var(--brown-muted);
}
.section-title h2::before { right: 100%; }
.section-title h2::after { left: 100%; }
.section-title p { color: #666; max-width: 600px; margin: 12px auto 0; font-size: .95rem; }

/* --- About / Empresa Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-text h2 { margin-bottom: 20px; color: var(--brown-dark); }
.about-text p { color: #555; }
.about-values {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.about-values li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .95rem;
  color: #444;
}
.about-values li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  background: var(--brown);
  color: #fff;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 700;
  margin-top: 3px;
}
.about-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brown);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .3px;
  transition: all var(--transition);
  border: 2px solid var(--brown);
  cursor: pointer;
  margin-top: 20px;
}
.btn:hover { background: var(--brown-dark); border-color: var(--brown-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--brown); }
.btn-outline:hover { background: var(--brown); color: #fff; }

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,.04);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card-img { height: 180px; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 24px; }
.service-card-body h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--brown-dark); }
.service-card-body p { font-size: .9rem; color: #666; margin-bottom: 14px; }
.service-card-body .btn-sm {
  font-size: .8rem;
  padding: 8px 18px;
  background: var(--brown);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition);
}
.service-card-body .btn-sm:hover { background: var(--brown-dark); }

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.testimonial-card {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  border-left: 4px solid var(--brown);
}
.testimonial-card::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--brown-muted);
  opacity: .3;
  position: absolute;
  top: 10px;
  right: 20px;
  line-height: 1;
}
.testimonial-stars { color: #d4a853; font-size: .9rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-text { font-style: italic; color: #555; font-size: .95rem; margin-bottom: 16px; line-height: 1.7; }
.testimonial-author { font-weight: 700; color: var(--brown-dark); font-size: .9rem; }
.testimonial-role { font-size: .8rem; color: #888; }

/* --- Practice Areas Detail --- */
.practice-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.practice-content img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.practice-text h2 { color: var(--brown-dark); margin-bottom: 16px; }
.practice-text p { color: #555; }
.practice-list { margin-top: 20px; }
.practice-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: .95rem;
  color: #444;
  display: flex;
  align-items: center;
  gap: 10px;
}
.practice-list li::before {
  content: '§';
  color: var(--brown);
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Attorneys Section --- */
.attorneys-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.attorney-card {
  padding: 30px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.attorney-card .attorney-icon {
  width: 80px;
  height: 80px;
  background: var(--brown-bg);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--brown);
}
.attorney-card h3 { font-size: 1rem; margin-bottom: 6px; color: var(--brown-dark); }
.attorney-card .oab { font-size: .85rem; color: #888; }

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-info-list { display: grid; gap: 24px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item-icon {
  min-width: 44px;
  height: 44px;
  background: var(--brown);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.contact-item h4 { font-size: .95rem; margin-bottom: 4px; color: var(--brown-dark); }
.contact-item p, .contact-item a { font-size: .9rem; color: #555; display: block; line-height: 1.6; }
.contact-form { display: grid; gap: 16px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
  transition: border-color var(--transition);
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--brown); }
.contact-form textarea { min-height: 140px; resize: vertical; }

/* --- Location Section --- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 400px;
}
.map-container iframe { width: 100%; height: 100%; border: 0; }
.location-details { padding: 20px 0; }
.location-details h3 { color: var(--brown-dark); margin-bottom: 16px; }
.location-details p { color: #555; margin-bottom: 12px; }

/* --- Footer --- */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,.7);
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.footer-col p, .footer-col a { font-size: .88rem; color: rgba(255,255,255,.6); line-height: 1.8; }
.footer-col a:hover { color: #fff; }
.footer-col ul li { margin-bottom: 6px; }
.footer-logo img { height: 40px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .8; }
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 999;
  transition: transform var(--transition);
  animation: pulse-wpp 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }
@keyframes pulse-wpp {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,.4); }
  50% { box-shadow: 0 4px 24px rgba(37,211,102,.6); }
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

/* --- Responsive --- */
@media (max-width: 992px) {
  .about-grid,
  .practice-content,
  .contact-grid,
  .location-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .attorneys-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 24px 24px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 1000;
    align-items: flex-start;
  }
  .main-nav.open { right: 0; }
  .main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(0,0,0,.06); }
  .main-nav a::after { display: none; }
  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 16px;
    display: none;
  }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .hero-banner .banner-desktop { display: none; }
  .hero-banner .banner-mobile { display: block; }
  .top-bar-info { font-size: .75rem; gap: 10px; }
  .section { padding: 50px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .attorneys-grid { grid-template-columns: 1fr; max-width: 340px; }
  .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .top-bar .container { justify-content: center; text-align: center; }
  .top-bar-social { display: none; }
  h1 { font-size: 1.6rem; }
  .service-card-img { height: 150px; }
}
