/* ============================================================
   HOMEPAGE — index.css
   ============================================================ */

/* ============================================================
   1. HERO SECTION
   ============================================================ */

.hero_section {
  position: relative;
  background: linear-gradient(135deg, #0d1f35 0%, #182d48 50%, #1e3a5f 100%);
  padding: 80px 0 60px;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Subtle background pattern */
.hero_bg_pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 20% 50%,
      rgba(198, 166, 100, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 40%
    );
  pointer-events: none;
}

.hero_bg_pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 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.018'%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");
}

.hero_content {
  max-width: 780px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
}

/* ---- Badge ---- */
.hero_badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(198, 166, 100, 0.15);
  border: 1px solid rgba(198, 166, 100, 0.35);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 50px;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

/* ---- Heading ---- */
.hero_h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero_highlight {
  color: var(--gold);
  position: relative;
}

/* ---- Subtitle ---- */
.hero_sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

/* ---- Filter Card ---- */
.hero_filter_card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  width: 100%;
}

.filter_label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--blue);
  margin-bottom: 16px;
  text-align: left;
}

.hero_filter .filter_row {
  display: flex;
  gap: 14px;
  align-items: flex-end;
}

.filter_group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.filter_group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter_group label i {
  color: var(--blue);
  font-size: 12px;
}

.filter_group label .required {
  color: var(--accent);
}

.filter_group select {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  background: #fff;
  border: 1.5px solid #dde3ea;
  border-radius: 8px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23182d48' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  font-family: inherit;
}

.filter_group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24, 45, 72, 0.1);
}

.hero_btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.22s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
  font-family: inherit;
  flex-shrink: 0;
}

.hero_btn:hover {
  background: #0f1f33;
  box-shadow: 0 6px 20px rgba(24, 45, 72, 0.3);
}

.filter_note {
  font-size: 12px;
  color: #888;
  margin-top: 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.filter_note i {
  color: #4caf50;
}

/* ---- Scroll Indicator ---- */
.hero_scroll_indicator {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: bounceDown 2s ease-in-out infinite;
}

.hero_scroll_indicator i {
  font-size: 14px;
}

@keyframes bounceDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* ============================================================
   2. TRUST ICONS SECTION
   ============================================================ */

.icons_section {
  padding: 64px 0;
  background: #fff;
}

.icons_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.icon_card {
  text-align: center;
  padding: 32px 24px;
  border-radius: 12px;
  border: 1px solid #eef0f4;
  transition:
    box-shadow 0.25s ease,
    transform 0.22s ease;
}

.icon_card:hover {
  box-shadow: 0 8px 32px rgba(24, 45, 72, 0.1);
}

.icon_wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(24, 45, 72, 0.07),
    rgba(198, 166, 100, 0.1)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.icon_wrap i {
  font-size: 26px;
  color: var(--blue);
}

.icon_card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
  line-height: 1.3;
}

.icon_card p {
  font-size: 14px;
  color: #666;
  line-height: 1.65;
}

/* ============================================================
   3. FEATURED FIRMS
   ============================================================ */

.firms_section {
  padding: 72px 0;
  background: var(--light-gray);
}

.section_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
}

.section_header .section_title {
  margin-bottom: 0;
}

.view_all_link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
  transition: gap 0.2s ease;
}

.view_all_link:hover {
  gap: 10px;
}

.firms_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.firm_card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #e8ecf1;
  transition:
    box-shadow 0.25s ease,
    transform 0.22s ease,
    border-color 0.22s ease;
}

.firm_card:hover {
  box-shadow: 0 10px 36px rgba(24, 45, 72, 0.12);
  border-color: rgba(24, 45, 72, 0.12);
}

.firm_rank_badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--blue);
  color: white;
  font-size: 14px;
  padding: 10px;
  border-radius: 20px;
}

.firm_logo_wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  margin-top: 8px;
}

.firm_logo_wrap img {
  max-height: 60px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
}

.firm_info {
  flex: 1;
  width: 100%;
}

.firm_name {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.firm_tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  background: rgba(24, 45, 72, 0.07);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.firm_location {
  font-size: 13px;
  color: #777;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.firm_location i {
  color: var(--accent);
  font-size: 12px;
}

.firm_rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}

.firm_rating .stars {
  font-size: 14px;
  letter-spacing: 1px;
}

.firm_rating strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.review_count {
  font-size: 12px;
  color: #999;
}

.firm_cta_btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  background: transparent;
  border: 1.5px solid var(--blue);
  border-radius: 7px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.firm_cta_btn:hover {
  background: var(--blue);
  color: #fff;
}

.section_footer_cta {
  text-align: center;
  margin-top: 40px;
}

/* ============================================================
   4. HOW WE RATE FIRMS
   ============================================================ */

.how_we_rate_section {
  padding: 80px 0;
  background: #fff;
}

.how_we_rate_inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.section_label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold);
  background: rgba(198, 166, 100, 0.12);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.intro_text {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 28px;
}

.rate_list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 36px;
}

.rate_list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.rate_icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.rate_icon i {
  font-size: 20px;
  color: var(--blue);
}

.rate_detail strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
}

.rate_detail p {
  font-size: 14px;
  color: #666;
  line-height: 1.65;
}

.how_we_rate_image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.how_we_rate_image img {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(24, 45, 72, 0.12);
}

/* ============================================================
   5. PRACTICE AREAS
   ============================================================ */

.practice_areas_section {
  padding: 72px 0;
  background: var(--light-gray);
}

.areas_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.area_card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid transparent;
  text-align: center;
  transition:
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    transform 0.2s ease;
}

.area_card:hover {
  box-shadow: 0 8px 28px rgba(24, 45, 72, 0.12);
  border-color: var(--blue);
  transform: translateY(-3px);
}

.area_icon i {
  font-size: 28px;
  color: var(--blue);
  transition: transform 0.2s ease;
}

.area_card:hover .area_icon i {
  transform: scale(1.15);
}

.area_name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.area_count {
  font-size: 12px;
  color: #999;
  font-weight: 500;
}

/* ============================================================
   6. STATS STRIP
   ============================================================ */

.stats_section {
  padding: 56px 0;
  background: var(--blue);
}

.stats_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat_item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.stat_item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.stat_num {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat_label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
}

/* ============================================================
   7. BLOG SECTION
   ============================================================ */

.blog_section {
  padding: 72px 0;
  background: #fff;
}

.blog_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Featured Card */
.blog_card_featured {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8ecf2;
  overflow: hidden;
  transition:
    box-shadow 0.25s ease,
    transform 0.22s ease;
}

.blog_card_featured:hover {
  box-shadow: 0 10px 36px rgba(24, 45, 72, 0.1);
}

.blog_img_link {
  display: block;
}

.blog_img_wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog_img_wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog_card_featured:hover .blog_img_wrap img {
  transform: scale(1.04);
}

.blog_badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog_body {
  padding: 22px 24px 26px;
}

.blog_cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 10px;
}

.blog_title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 10px;
}

.blog_title a {
  color: inherit;
  transition: color 0.2s ease;
}

.blog_title a:hover {
  color: var(--blue);
}

.blog_excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.65;
  margin-bottom: 14px;
}

.blog_meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.blog_meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #999;
}

.blog_meta span i {
  font-size: 11px;
}

/* Sidebar List */
.blog_sidebar_list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e8ecf2;
  border-radius: 14px;
  overflow: hidden;
}

.blog_card_sm {
  padding: 20px 22px;
  border-bottom: 1px solid #f0f2f5;
  transition: background 0.18s ease;
}

.blog_card_sm:last-child {
  border-bottom: none;
}

.blog_card_sm:hover {
  background: rgba(24, 45, 72, 0.025);
}

.blog_card_sm .blog_cat {
  font-size: 10px;
  margin-bottom: 7px;
}

.blog_card_sm h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.45;
  margin-bottom: 10px;
}

.blog_card_sm h3 a {
  color: inherit;
  transition: color 0.2s ease;
}

.blog_card_sm h3 a:hover {
  color: var(--blue);
}

.blog_card_sm .blog_meta {
  gap: 12px;
}

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */

@media (max-width: 1024px) {
  .hero_section {
    padding: 60px 0 48px;
    min-height: auto;
  }

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

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

  .how_we_rate_inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .how_we_rate_image {
    order: -1;
  }

  .how_we_rate_image img {
    max-height: 360px;
    width: 100%;
  }

  .areas_grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stat_item:not(:last-child)::after {
    display: none;
  }

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

  .blog_img_wrap {
    height: 260px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */

@media (max-width: 768px) {
  .hero_section {
    padding: 48px 0 36px;
  }

  .hero_content {
    gap: 24px;
  }

  .hero_filter_card {
    padding: 22px 20px;
  }

  .hero_filter .filter_row {
    flex-direction: column;
    gap: 16px;
    align-items: unset;
  }

  .hero_btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
  }

  .icons_section {
    padding: 30px 0;
  }

  .icons_grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .icon_card {
    padding: 24px 16px;
  }

  .firms_section,
  .how_we_rate_section,
  .practice_areas_section,
  .blog_section {
    padding: 52px 0;
  }

  .firms_grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

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

  .stats_section {
    padding: 48px 0;
  }

  .cta_section {
    padding: 56px 0;
  }

  .section_header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
  }

  .hero_scroll_indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .firms_grid {
    max-width: 100%;
  }

  .areas_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .area_card {
    padding: 20px 12px;
  }

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

  .cta_actions {
    flex-direction: column;
    gap: 14px;
  }

  .cta_button {
    width: 100%;
    justify-content: center;
  }

  .blog_img_wrap {
    height: 200px;
  }
}
