
:root {
  --navy: #0a1a2f;
  --gold: #FFE87C;
  --gold-light: #FDBD01;
  --gray-bg: #f8f7f4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', georgia;
  background: #fefcf8;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ========== TIGHTER SPACING - FILLED CONTENT ========== */
section {
  padding: 20px 0;
}

@media (max-width: 768px) {
  section {
    padding: 20px 0;
  }
}

.container {
  max-width: 1280px;
}

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--navy);
  color: #e0e0e0;
  padding: 8px 0;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(200, 168, 78, 0.3);
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.contact-line span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
}

.contact-line span:hover {
  color: var(--gold);
  transform: translateY(-1px);
}

.contact-line i {
  color: var(--gold);
  width: 20px;
}

.contact-line a {
  color: #e0e0e0;
  text-decoration: none;
}

.contact-line a:hover {
  color: var(--gold);
}

/* ========== NAVBAR ========== */
.main-header {
  background: white;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-text .title {
  font-family: 'Playfair Display', Georgia;
  font-size: clamp(1rem, 4vw, 1.35rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.brand-text .tagline {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-link {
  font-weight: 600;
  color: #1e2f3e !important;
  margin: 0 4px;
  font-size: 0.9rem;
  transition: 0.2s;
}

.nav-link:hover {
  color: var(--gold) !important;
}

.btn-consult {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  border-radius: 40px;
  padding: 6px 18px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-block;
}

.btn-consult:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(200, 168, 78, 0.3);
}

/* ========== HERO ========== */
.hero {
  min-height: 70vh;
  background: linear-gradient(135deg, rgba(5, 11, 26, 0.88), rgba(10, 26, 47, 0.94)), url('https://images.pexels.com/photos/5669602/pexels-photo-5669602.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover fixed;
  display: flex;
  align-items: center;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
}

.moving-tagline {
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--gold);
  animation: subtleMotion 3s infinite alternate;
  margin: 12px 0;
}

@keyframes subtleMotion {
  0% {
    transform: translateX(-5px);
    letter-spacing: 0px;
  }
  100% {
    transform: translateX(5px);
    letter-spacing: 1.5px;
  }
}

.cta-button {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 10px 28px;
  font-size: clamp(0.8rem, 3vw, 0.95rem);
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.4s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(200, 168, 78, 0.4);
}

.hero-right-image img {
  border-radius: 16px;
  max-width: 320px;
  border: 3px solid var(--gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
  .hero-right-image {
    display: none;
  }
}

/* ========== ABOUT SECTION ========== */
.about-section {
  background: white;
  padding: 20px 0;
  border-bottom: 3px solid var(--navy); 
}

.about-image img {
  max-width: 380px;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .about-image {
    display: none;
  }
}

    /* Animated cycling tagline */
    .moving-tagline-wrap {
      height: clamp(2.2rem, 4vw, 3.2rem);
      overflow: hidden; margin: 15px 0;
    }
    .moving-tagline-track {
      display: flex; flex-direction: column;
      animation: cycleTagline 7.5s steps(1, end) infinite;
    }
    .moving-tagline-track span {
      font-size: clamp(1.2rem, 3vw, 2.2rem);
      font-weight: 700; color: var(--gold);
      height: clamp(2.2rem, 4vw, 3.2rem);
      line-height: clamp(2.2rem, 4vw, 3.2rem);
      display: block; flex-shrink: 0;
      animation: shimmerIn 2.5s ease-in-out infinite alternate;
    }
    @keyframes cycleTagline {
      0%   { transform: translateY(0); }
      33%  { transform: translateY(calc(-1 * clamp(2.2rem,4vw,3.2rem))); }
      66%  { transform: translateY(calc(-2 * clamp(2.2rem,4vw,3.2rem))); }
      100% { transform: translateY(0); }
    }
    @keyframes shimmerIn {
      0%   { opacity: 0.7; letter-spacing: 0px; }
      100% { opacity: 1;   letter-spacing: 2px; }
    }
    .hero p.lead {
      font-size: clamp(0.9rem, 2vw, 1.15rem);
      max-width: 550px; line-height: 1.75;
    }




.about-badge {
  background: var(--gold);
  color: var(--navy);
  padding: 3px 14px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.about-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.btn-about {
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-about:hover {
  background: var(--gold-light);
  color: var(--navy);
  gap: 12px;
  transform: scale(1.02);
}

/* ========== CORE VALUES SECTION ========== */
.core-section {
  background: var(--gray-bg);
  padding: 50px 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.section-title:after {
  content: '';
  width: 60px;
  height: 3px;
  background: var(--gold-light);
  display: block;
  margin: 10px auto 0;
}

.value-card {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(200, 168, 78, 0.15);
  border-bottom: 3px solid var(--gold);
}

.value-icon {
  font-size: 2.2rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.value-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.85rem;
  color: #555;
}

/* ========== FEATURE / STATEMENT SECTION ========== */
.feature-section {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2742 100%);
  color: white;
  padding: 55px 0;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

.feature-quote {
  font-size: 1.2rem;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
}

/* ========== PRACTICE AREAS - SLIDING CARDS ========== */
.practice-section {
  background: white;
  padding: 50px 0;
  overflow: hidden;
}

.desktop-slider {
  display: block;
}

.slider-container {
  overflow: hidden;
  width: 100%;
}

.slider-track {
  display: flex;
  gap: 20px;
  animation: scrollRightToLeft 30s linear infinite;
  width: fit-content;
}

.slider-track:hover {
  animation-play-state: paused;
}

@keyframes scrollRightToLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.practice-card {
  min-width: 260px;
  background: white;
  border-radius: 16px;
  padding: 1.2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  cursor: pointer;
}

.practice-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 15px 30px rgba(200, 168, 78, 0.2);
}

.practice-icon {
  font-size: 2.2rem;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
  display: inline-block;
}

.practice-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.practice-card p {
  font-size: 0.8rem;
  color: #666;
}

.mobile-practice-list {
  display: none;
}

.list-item-card {
  background: white;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.list-item-card i {
  font-size: 1.5rem;
  color: var(--gold);
  width: 35px;
}

.list-item-card h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .desktop-slider {
    display: none;
  }
  .mobile-practice-list {
    display: block;
  }
}

.btn-practice {
  background: var(--gold);
  color: var(--navy);
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-top: 25px;
}

.btn-practice:hover {
  background: var(--gold-light);
  transform: scale(1.02);
  gap: 12px;
}

/* ========== PRO IUSTITIA SECTION ========== */
.pro-section {
  background: linear-gradient(135deg, #0a1a2f, #11223b);
  color: white;
  text-align: center;
  padding: 55px 0;
  position: relative;
  overflow: hidden;
}

.pro-section::before {
  content: "⚖️";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15rem;
  opacity: 0.04;
  pointer-events: none;
}

.pro-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  position: relative;
  z-index: 2;
}

.pro-section p {
  font-size: 1.1rem;
  font-style: italic;
  position: relative;
  z-index: 2;
}

/* ========== CONTACT - 4 COLUMNS ========== */
.contact-section {
  background: white;
  padding: 50px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-card {
  background: var(--gray-bg);
  padding: 1.2rem;
  border-radius: 16px;
  text-align: center;
  transition: 0.3s;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--navy);
  margin: 0 auto 0.8rem;
}

.contact-card h4 {
  font-size: 1rem;
  font-weight: 700;
}

.contact-card p {
  font-size: 0.8rem;
}

.map-card {
  grid-column: span 1;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
}

.btn-email {
  background: var(--gold);
  color: var(--navy);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  margin-top: 10px;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .map-card {
    grid-column: span 2;
  }
}

@media (max-width: 576px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .map-card {
    grid-column: span 1;
  }
}

/* ========== FOOTER ========== */
footer {
  background: var(--navy);
  color: #ccc;
  padding: 40px 0 20px;
}

.text-gold {
  color: var(--gold);
}

/* ========== FLOATING WHATSAPP BUTTON ========== */
.floating-wa {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 52px;
  height: 52px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  z-index: 1100;
  transition: 0.2s;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.floating-wa:hover {
  transform: scale(1.08);
  background: #128C7E;
  color: white;
}