/* ============================================
   NP-Law Visual Overhaul
   Aligns with Figma designs (all 3 pages)
   Modern, rich, not flat white
   ============================================ */

/* --- Hero Light Theme --- */
.hero--light {
  background: linear-gradient(135deg, #f8f9fc 0%, #f0f2f8 50%, #f5f6fa 100%);
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero--light .hero__bg,
.hero--light .hero__bg--navy,
.hero--light .hero__overlay {
  display: none;
}

.hero--light .hero__particles {
  opacity: 0.3;
}

.hero--light .hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  min-height: 80vh;
}

.hero--light .hero__label {
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  display: block;
}

.hero--light .hero__title {
  color: var(--color-primary-dark);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-lg);
}

.hero--light .hero__subtitle {
  color: var(--color-text-body);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.hero--light .hero__cta .btn--primary {
  background: #4361EE;
  border-color: #4361EE;
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
  transition: all 0.3s ease;
}

.hero--light .hero__cta .btn--primary:hover {
  background: #3451d1;
  box-shadow: 0 6px 25px rgba(67, 97, 238, 0.4);
  transform: translateY(-2px);
}

.hero--light .hero__cta .btn--text {
  color: var(--color-primary);
  font-weight: var(--weight-semibold);
}

.hero--light .hero__cta .btn--text:hover {
  color: #4361EE;
}

/* Geometric Illustration */
.hero__geometric {
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  animation: geometricFloat 8s ease-in-out infinite;
}

.hero__geometric-svg {
  width: 100%;
  height: auto;
}

@keyframes geometricFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.5deg); }
}

/* --- Section Backgrounds (Alternating) --- */
.section--gray {
  background-color: #f5f7fa;
}

.section--practices {
  background-color: #fff;
  padding: var(--space-4xl) 0;
}

.section--team {
  background-color: #f5f7fa;
  padding: var(--space-4xl) 0;
}

.section--blog {
  padding: var(--space-4xl) 0;
}

/* --- Section Header with Accent Line --- */
.section-header__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.section-header__accent {
  display: inline-block;
  width: 32px;
  height: 3px;
  background: #4361EE;
  border-radius: 2px;
}

.section-header__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: var(--weight-black);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-md);
}

.section-header__text {
  font-size: var(--text-lg);
  color: var(--color-text-body);
  max-width: 600px;
  line-height: var(--leading-relaxed);
}

/* --- Practice Area Cards (Redesigned) --- */
.card-practice {
  background: #fff;
  border-radius: 16px;
  padding: var(--space-xl);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card-practice:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  transform: translateY(-4px);
  border-color: transparent;
}

/* Left accent border on hover */
.card-practice::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-primary);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  border-radius: 0 2px 2px 0;
}

.card-practice:hover::before {
  transform: scaleY(1);
}

.card-practice__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Color-coded icon badge */
.card-practice__icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  flex-shrink: 0;
}

.card-practice__icon-badge svg {
  width: 24px;
  height: 24px;
  stroke: white;
  fill: none;
}

.card-practice__icon-badge img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

/* Hide old icon div if present */
.card-practice__icon {
  display: none;
}

.card-practice__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-sm);
  line-height: var(--leading-snug);
}

.card-practice__desc {
  font-size: var(--text-sm);
  color: var(--color-text-body);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.card-practice__divider {
  height: 1px;
  background: var(--color-border-light);
  margin-bottom: var(--space-md);
}

.card-practice__link-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.card-practice:hover .card-practice__link-text {
  color: #4361EE;
}

.card-practice:hover .card-practice__link-text svg {
  transform: translateX(4px);
}

.card-practice__link-text svg {
  transition: transform 0.2s ease;
}

/* Practices Grid */
.practices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

/* --- Stats Bar Enhancement --- */
.stats-bar {
  background: #fff;
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--color-border-light);
  position: relative;
}

.stats-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3xl);
}

.stats-bar__number {
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  color: var(--color-primary);
  font-family: var(--font-heading);
  line-height: 1;
  display: block;
}

.stats-bar__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
  display: block;
}

.stats-bar__item {
  text-align: center;
}

.stats-bar__divider {
  width: 1px;
  height: 48px;
  background: var(--color-border);
}

/* --- Expertise Banner Enhancement --- */
.expertise-banner {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, #002871 0%, #001a4d 100%);
}

.expertise-banner .container {
  text-align: right;
}

.expertise-banner__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-sm);
}

.expertise-banner__heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--weight-black);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* --- Team Cards Enhancement --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.card-team {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  background: #fff;
}

.card-team:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* Color accent per team member */
.card-team:nth-child(1) .card-team__position { color: #0ea5e9; }
.card-team:nth-child(2) .card-team__position { color: #22c55e; }
.card-team:nth-child(3) .card-team__position { color: #f59e0b; }
.card-team:nth-child(4) .card-team__position { color: #6366f1; }

.card-team:nth-child(1) .card-team__front .card-team__info::before { background: #0ea5e9; }
.card-team:nth-child(2) .card-team__front .card-team__info::before { background: #22c55e; }
.card-team:nth-child(3) .card-team__front .card-team__info::before { background: #f59e0b; }
.card-team:nth-child(4) .card-team__front .card-team__info::before { background: #6366f1; }

.card-team__front .card-team__info {
  position: relative;
  padding: var(--space-lg);
}

.card-team__front .card-team__info::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--space-lg);
  right: var(--space-lg);
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.card-team__name {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-primary-dark);
}

.card-team__position {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.card-team__photo-placeholder {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-team__photo-placeholder svg {
  color: #94a3b8;
}

/* --- Blog Cards Enhancement --- */
.blog-grid {
  display: grid;
  gap: var(--space-xl);
}

.blog-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-blog {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card-blog:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

/* --- Footer Bottom Cleanup --- */
.footer-bottom__contact {
  display: none !important;
}

.footer-bottom__inner {
  justify-content: center !important;
  text-align: center;
}

.footer-bottom__right {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Modern Buttons --- */
.btn--outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 40, 113, 0.3);
}

/* Section Action (View All buttons) */
.section-action {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* --- Scroll Animations --- */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

[data-aos="fade-up"].aos-animate,
[data-aos="fade-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade-left"] {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease;
}

[data-aos="fade-left"].aos-animate,
[data-aos="fade-left"].is-visible {
  opacity: 1;
  transform: translateX(0);
}

[data-aos="fade-right"] {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

[data-aos="fade-right"].aos-animate,
[data-aos="fade-right"].is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Page Hero for inner pages --- */
.page-hero {
  background: linear-gradient(135deg, #002871 0%, #001a4d 100%);
  padding: var(--space-4xl) 0 var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(67, 97, 238, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

/* --- CTA Section Enhancement --- */
.section-cta {
  background: linear-gradient(135deg, #002871 0%, #001a4d 100%);
  padding: var(--space-5xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(67, 97, 238, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.section-cta::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.section-cta__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: var(--weight-black);
  color: #fff;
  margin-bottom: var(--space-lg);
}

.section-cta__text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: var(--leading-relaxed);
}

.section-cta__content {
  position: relative;
  z-index: 1;
}

.btn--outline-white {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  background: transparent;
  padding: 0.875rem 2.5rem;
  border-radius: 50px;
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn--outline-white:hover {
  background: #fff;
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

/* --- Footer Enhancement --- */
.site-footer {
  background: linear-gradient(180deg, #001a4d 0%, #001240 100%);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--space-4xl);
}

.footer-col__title {
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-col__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: #4361EE;
  border-radius: 1px;
}

.footer-nav li {
  margin-bottom: var(--space-sm);
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-nav a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-lg) 0;
  margin-top: var(--space-3xl);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-sm);
}

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

.footer-social__link {
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social__link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
  .hero--light .hero__container {
    grid-template-columns: 1fr;
    min-height: 70vh;
    text-align: center;
  }

  .hero__geometric {
    display: none;
  }

  .hero--light .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero--light .hero__cta {
    justify-content: center;
  }

  .practices-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .blog-grid--3 {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .stats-bar__inner {
    flex-wrap: wrap;
    gap: var(--space-xl);
  }

  .stats-bar__number {
    font-size: var(--text-3xl);
  }

  .expertise-banner .container {
    text-align: center;
  }

  .section-header {
    text-align: center;
  }

  .section-header__label {
    justify-content: center;
  }

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

@media (min-width: 769px) and (max-width: 1024px) {
  .hero--light .hero__container {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .practices-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Smooth page transitions --- */
.section {
  padding: var(--space-4xl) 0;
}

/* Separator between white sections */
.section + .section:not(.section--gray):not(.section-navy) {
  border-top: 1px solid var(--color-border-light);
}

/* --- Logo Fix from Figma --- */
.site-logo__img {
  height: 48px;
  width: auto;
}

/* Header background tweak for light hero */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Hero: Enhanced geometric with metallic feel */
.hero__geometric-svg rect[fill='#002871'] {
  filter: url(#metallic);
}

/* Hero subtle gradient overlay for depth */
.hero--light::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(245, 247, 250, 1));
  pointer-events: none;
  z-index: 1;
}

.hero--light .hero__container {
  position: relative;
  z-index: 2;
}

/* Practices - cleaner design per Simeon preference */
.card-practice__icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.card-practice {
  padding: var(--space-lg) var(--space-xl);
}

.card-practice__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
