/* index.css — Homepage-specific styles. Requires styles.css. */

/* ─── Hero ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 4rem;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
  animation: fadeUp 0.9s 0.2s ease both;
}

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(4rem, 6.5vw, 7.5rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 2rem;
  animation: fadeUp 0.9s 0.35s ease both;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.85;
  margin-bottom: 3rem;
  animation: fadeUp 0.9s 0.5s ease both;
  text-align: justify;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  animation: fadeUp 0.9s 0.65s ease both;
}

/* Hero right panel */
.hero-right {
  position: relative;
  background: var(--accent);
  overflow: hidden;
}

.hero-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgb(255 255 255 / 4%) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgb(255 255 255 / 4%) 60px
    );
}

.hero-right-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 220px 3rem 3rem;
}

.hero-quote {
  font-family: var(--f-display);
  font-size: 1.8rem;
  font-weight: 300;
  font-style: italic;
  color: rgb(255 255 255 / 85%);
  line-height: 1.4;
  margin-bottom: 1rem;
  border-left: 2px solid var(--gold);
  padding-left: 1.4rem;
}

/* Modifier for secondary (smaller/dimmer) quotes in the hero panel */
.hero-quote.secondary-quote {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

.hero-quote-attr {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding-left: 1.4rem;
}

/* Rotating badge */
.hero-badge {
  position: absolute;
  top: 3rem;
  right: 3rem;
  width: 180px;
  height: 180px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: rotate 30s linear infinite;
}

.hero-badge-num {
  font-family: var(--f-display);
  font-size: 3.4rem;
  color: var(--gold-light);
  line-height: 1;
  font-weight: 300;
}

.hero-badge-text {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 50%);
  line-height: 1.8;
}

/* ─── About / The Firm ──────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.about-left {
  padding: 5rem 4rem;
  border-right: 1px solid var(--rule);
  background: var(--parchment);
}

.about-heading {
  font-family: var(--f-display);
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
}

.about-heading em {
  font-style: italic;
  color: var(--gold);
}

.about-right {
  padding: 5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-content: start;
}

.about-stat {
  border-top: 1px solid var(--rule);
  padding-top: 1.2rem;
}

.about-stat-num {
  font-family: var(--f-display);
  font-size: 3.2rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
}

.about-stat-num sup {
  font-size: 1.2rem;
  color: var(--gold);
}

.about-stat-label {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}

.about-desc {
  grid-column: 1 / -1;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 580px;
  text-align: justify;
}

/* ─── Practice Areas Carousel ──────────────────────── */
.practice {
  padding: 6rem 4rem;
  border-bottom: 1px solid var(--rule);
}

.practice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.practice-title {
  font-family: var(--f-display);
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.1;
}

.practice-title em {
  font-style: italic;
  color: var(--gold);
}

.practice-carousel {
  overflow: hidden;
  margin: 0 -4rem;
  cursor: default;
}

.practice-track {
  display: flex;
  width: max-content;
  animation: practiceScroll 32s linear infinite;
}

.practice-carousel:hover .practice-track {
  animation-play-state: paused;
}

@keyframes practiceScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.practice-grid {
  display: contents;
}

.practice-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  cursor: default;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
  width: 320px;
  flex-shrink: 0;
}

.practice-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.practice-card:hover {
  background: var(--parchment);
}

.practice-card:hover::after {
  transform: scaleX(1);
}

.practice-num {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.practice-icon {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  display: block;
}

.practice-name {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.practice-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.75;
  text-align: justify;
}

/* ─── Team / About Section ──────────────────────────── */
.team {
  background: var(--parchment);
  padding: 0;
  border-bottom: 1px solid var(--rule);
}

.team-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.team-content {
  padding: 6rem 4rem;
}

.team-header {
  margin-bottom: 3.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.team-image-panel {
  position: relative;
  overflow: hidden;
  min-height: 0;
  height: auto;
  background: none;
}

.team-image-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 25%;
  background: none;
  aspect-ratio: 4 / 5;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.team-image-panel img.active {
  opacity: 1;
}

.team-image-dots {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.team-image-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(255 255 255 / 30%);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s;
}

.team-image-dot.active {
  background: var(--gold);
}

.team-card {
  background: transparent;
  padding: 0;
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: rgb(255 255 255 / 70%);
  margin-bottom: 1.5rem;
}

.team-name {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.team-role {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.75;
  text-align: justify;
}

.team-quals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.team-qual {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  padding: 0.25rem 0.6rem;
  color: var(--muted);
}

/* ─── Client Logo Ticker ────────────────────────────── */
.team-experience-container {
  background: var(--parchment);
  padding: 3rem 0;
  text-align: center;
}

.experience-label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
}

.logo-ticker {
  overflow: hidden;
  white-space: nowrap;
}

.logo-inner {
  display: inline-flex;
  align-items: center;
  animation: ticker 15s linear infinite;
  width: max-content;
  will-change: transform;
}

.logo-item {
  display: flex;
  align-items: center;
  padding: 0;
}

.logo-item span {
  color: var(--gold);
  margin: 0 3rem;
  font-size: 1rem;
}

.logo-item img {
  height: 38px;
  width: auto;
  display: block;
}

/* ─── Insights Section ──────────────────────────────── */
.insights {
  padding: 6rem 4rem;
  border-bottom: 1px solid var(--rule);
}

.insights-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
}

/* ─── Contact Section ───────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 60vh;
}

.contact-left {
  background: var(--accent);
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.contact-left::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 60px solid rgb(255 255 255 / 3%);
}

.contact-heading {
  font-family: var(--f-display);
  font-size: 3rem;
  font-weight: 300;
  color: #fff;
  line-height: 1.1;
}

.contact-heading em {
  font-style: italic;
  color: var(--gold-light);
}

.contact-details {
  list-style: none;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: 0.9rem;
  color: rgb(255 255 255 / 65%);
  line-height: 1.5;
  text-align: justify;
}

.contact-details li .detail-label {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  min-width: 60px;
  padding-top: 2px;
}

.contact-right {
  background: var(--parchment);
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ─── Floating Side Navigation ──────────────────────── */
.sidenav {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: rgb(250 248 243 / 92%);
  backdrop-filter: blur(8px);
  border: 1px solid var(--rule);
  border-left: none;
  padding: 1rem 0.9rem;
  border-radius: 0 2rem 2rem 0;
  box-shadow: 4px 0 24px rgb(0 0 0 / 12%);
  cursor: pointer;
  overflow: hidden;
  width: 45px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-trigger {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 48px;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
  transition:
    opacity 0.25s,
    width 0.35s;
}

.sidenav:hover {
  width: 150px;
  overflow: visible;
}

.sidenav:hover .nav-trigger {
  opacity: 0;
  width: 0;
}

.sidenav-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  padding: 0.35rem 0.4rem;
  border-radius: 1rem;
  transition:
    background 0.2s,
    transform 0.2s;
  cursor: pointer;
}

.sidenav-item:hover {
  background: var(--accent);
  transform: translateX(4px);
}

.sidenav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rule);
  flex-shrink: 0;
  transition:
    background 0.3s,
    transform 0.3s;
}

.sidenav-label {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    color 0.3s;
}

.sidenav:hover .sidenav-label {
  opacity: 1;
}

.sidenav-item.active .sidenav-dot {
  background: var(--gold);
  transform: scale(1.4);
}

.sidenav-item.active .sidenav-label {
  color: var(--ink);
}

/* ─── Homepage Mobile Overrides (@768px) ─────────────── */
@media (width <= 768px) {
  .sidenav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-right {
    display: none;
  }

  .hero-left {
    padding: 5rem 2rem 4rem;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about-left {
    padding: 3rem 2rem;
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }

  .about-right {
    padding: 3rem 2rem;
  }

  .practice {
    padding: 4rem 2rem;
  }

  .practice-carousel {
    margin: 0 -2rem;
  }

  .practice-card {
    width: 260px;
  }

  .team-inner {
    grid-template-columns: 1fr;
  }

  .team-content {
    padding: 4rem 2rem;
  }

  .team-image-panel {
    min-height: 300px;
  }

  .insights {
    padding: 4rem 2rem;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .contact-left,
  .contact-right {
    padding: 4rem 2rem;
  }
}

/* ─── Reduce Motion for Accessibility ───────────────── */
@media (prefers-reduced-motion: reduce) {
  .practice-track { animation: none !important; }
  .logo-inner     { animation: none !important; }
  .ticker-inner   { animation: none !important; }
  .hero-badge     { animation: none !important; }
}
