/* index.css – homepage specific styling */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
}

.hero-copy {
  flex: 1 1 50%;
}

.hero-copy h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-copy .metrics {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.hero-card {
  flex: 1 1 35%;
  background: #fff;
  color: #333;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mini-form input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}

/* Practice cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* Insights posts */
.post {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.post-body {
  padding: 1rem;
}

/* Team preview carousel */
.team-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.team-carousel::-webkit-scrollbar {
  display: none;
}

.avatar {
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact quick section */
.contact-quick {
  background: #f5f5f5;
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 0.75rem;
}

.contact-quick-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}


.team-carousel {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.avatar {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.avatar img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ddd;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.avatar:hover img {
  border-color: var(--primary-color, #004080);
  transform: scale(1.05);
}

.attorney-name {
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #222;
  font-family: "Georgia", serif;
}
