/* ========================================================
   MODERN PREMIUM HERO & HEADER STYLES
   Executive Legal Portal Design for Churchil & Associates
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Open+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

:root {
  --ch-terracotta: #b84b12;
  --ch-terracotta-dark: #94390a;
  --ch-terracotta-light: #fdf1e8;
  --ch-gold-accent: #d4874b;
  --ch-heading-navy: #122338;
  --ch-text-slate: #334155;
  --ch-text-muted: #5b6b7f;
  --ch-border-light: #ebdcd0;
  --ch-font-serif: 'Alegreya', serif;
  --ch-font-sans: 'Open Sans', sans-serif;
}

/* ========================================================
   1. NAVBAR - CENTERED LINKS
   ======================================================== */
.modern-navbar-wrapper {
  position: relative;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #f3ece6;
  z-index: 1000;
}

.modern-navbar-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 48px;
  display: flex;
  align-items: center;
  position: relative;
  min-height: 72px;
  box-sizing: border-box;
}

.modern-nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 10;
}

.modern-nav-brand img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

.modern-nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 5;
}

.modern-nav-item {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.modern-nav-link {
  font-family: var(--ch-font-sans);
  font-size: 15px;
  font-weight: 500;
  color: #334155;
  text-decoration: none !important;
  display: inline-block;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.modern-nav-link:hover {
  color: var(--ch-terracotta);
}

.modern-nav-item.active .modern-nav-link {
  color: var(--ch-terracotta);
  font-weight: 600;
}

.modern-nav-item.active .modern-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--ch-terracotta);
  border-radius: 2px;
}

.modern-nav-item.has-dropdown {
  position: relative;
}

.modern-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  width: 500px;
  background: #ffffff;
  border: 1px solid #ebdcd0;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
  pointer-events: none;
}

.modern-nav-item.has-dropdown:hover .modern-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
  pointer-events: auto;
}

.modern-dropdown-item {
  display: block;
  padding: 8px 12px;
  font-family: var(--ch-font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  text-decoration: none !important;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.modern-dropdown-item:hover {
  background: var(--ch-terracotta-light);
  color: var(--ch-terracotta);
}

.modern-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--ch-heading-navy);
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  z-index: 10;
}

/* ========================================================
   2. PREMIUM HERO BANNER - EXECUTIVE LAYOUT & BIG PORTRAIT
   ======================================================== */
.modern-hero-section {
  position: relative;
  width: 100%;
  background: linear-gradient(115deg, #ffffff 0%, #fffcf8 42%, #f8ede2 100%);
  overflow: hidden;
}

/* Subtle architectural grid texture on the right side */
.modern-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background-image:
    radial-gradient(rgba(184, 75, 18, 0.07) 1px, transparent 1px),
    radial-gradient(rgba(184, 75, 18, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.75) 0%, transparent 90%);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.75) 0%, transparent 90%);
  pointer-events: none;
  z-index: 1;
}

.modern-hero-main-area {
  position: relative;
  width: 100%;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 2;
}

.hero-bg-glow {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(184, 75, 18, 0.14) 0%, rgba(212, 135, 75, 0.05) 48%, transparent 72%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.modern-hero-container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 36px 32px 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
  min-height: 540px;
}

/* --- Hero Left: Executive Typography & Dual CTAs --- */
.hero-content-col {
  flex: 0 0 52%;
  max-width: 590px;
  padding-bottom: 58px;
  padding-top: 24px;
  box-sizing: border-box;
  z-index: 5;
  align-self: center;
}

.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: linear-gradient(90deg, rgba(184, 75, 18, 0.1) 0%, rgba(184, 75, 18, 0.04) 100%);
  border: 1px solid rgba(184, 75, 18, 0.24);
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-eyebrow-pill .eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--ch-terracotta);
  box-shadow: 0 0 0 3px rgba(184, 75, 18, 0.2);
}

.hero-eyebrow-pill span:last-child {
  font-family: var(--ch-font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--ch-terracotta);
  text-transform: uppercase;
}

.modern-hero-title {
  font-family: var(--ch-font-serif);
  font-size: 56px;
  line-height: 1.14;
  font-weight: 800;
  color: var(--ch-heading-navy);
  letter-spacing: -0.3px;
  margin: 0 0 14px 0;
}

.modern-hero-title .text-terracotta {
  color: var(--ch-terracotta);
  display: inline-block;
  position: relative;
}

.modern-hero-title .text-terracotta::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, rgba(184, 75, 18, 0.28) 0%, rgba(184, 75, 18, 0.02) 100%);
  border-radius: 4px;
  z-index: -1;
}

.modern-hero-subtitle {
  font-family: var(--ch-font-serif);
  font-style: italic;
  font-size: 23px;
  font-weight: 600;
  color: #2c3e50 !important;
  letter-spacing: 0.2px;
  line-height: 1.4;
  margin: 0 0 14px 0;
}

.modern-hero-lead {
  font-family: var(--ch-font-sans);
  font-size: 15.5px;
  font-weight: 500;
  color: #4b5b6e !important;
  line-height: 1.68;
  max-width: 510px;
  margin: 0 0 30px 0;
}

/* CTA Group */
.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.modern-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #c65316 0%, #9e3908 100%);
  color: #ffffff !important;
  font-family: var(--ch-font-sans);
  font-size: 16px;
  font-weight: 700;
  padding: 10px 12px 10px 28px;
  border-radius: 50px;
  text-decoration: none !important;
  box-shadow: 0 12px 28px rgba(184, 75, 18, 0.32);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}

.modern-hero-btn:hover {
  background: linear-gradient(135deg, #b0460f 0%, #852e05 100%);
  box-shadow: 0 16px 34px rgba(184, 75, 18, 0.42);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.modern-hero-btn .btn-arrow-circle {
  width: 38px;
  height: 38px;
  background-color: #ffffff;
  color: var(--ch-terracotta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.modern-hero-btn:hover .btn-arrow-circle {
  transform: translateX(3px);
}

.modern-hero-btn .btn-arrow-circle svg {
  display: block;
}

/* Direct Call CTA beside Main Button */
.hero-phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 6px 8px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #ead8c9;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(18, 35, 56, 0.05);
}

.hero-phone-cta:hover {
  background: #ffffff;
  border-color: var(--ch-terracotta);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(184, 75, 18, 0.12);
}

.hero-phone-cta .phone-cta-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ch-terracotta-light);
  color: var(--ch-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease;
}

.hero-phone-cta:hover .phone-cta-icon {
  background: var(--ch-terracotta);
  color: #ffffff;
}

.hero-phone-cta .phone-cta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.hero-phone-cta .phone-cta-text small {
  font-family: var(--ch-font-sans);
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.hero-phone-cta .phone-cta-text strong {
  font-family: var(--ch-font-sans);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ch-heading-navy);
}

/* --- Hero Right: Large Prominent Advocate Portrait & Architectural Frame --- */
.hero-photo-col {
  flex: 0 0 48%;
  max-width: 580px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: flex-end;
  position: relative;
  z-index: 4;
  line-height: 0;
  margin-bottom: 0;
}

.hero-photo-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  line-height: 0;
  padding-top: 10px;
}

/* Luxury Architectural Arch & Halo Behind the Advocate */
.hero-portrait-backdrop {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 440px;
  height: 460px;
  pointer-events: none;
  z-index: 1;
}

.hero-portrait-backdrop .backdrop-arch {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 390px;
  height: 430px;
  background: linear-gradient(165deg, rgba(184, 75, 18, 0.15) 0%, rgba(212, 135, 75, 0.08) 55%, rgba(255, 255, 255, 0.02) 100%);
  border: 1.5px solid rgba(184, 75, 18, 0.22);
  border-bottom: none;
  border-radius: 210px 210px 0 0;
  box-shadow: inset 0 12px 36px rgba(255, 255, 255, 0.65);
}

.hero-portrait-backdrop .backdrop-ring {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 436px;
  height: 462px;
  border: 1px dashed rgba(184, 75, 18, 0.22);
  border-bottom: none;
  border-radius: 230px 230px 0 0;
}

.hero-portrait-backdrop .backdrop-scales-watermark {
  position: absolute;
  top: 34px;
  right: 26px;
  width: 96px;
  height: 96px;
  color: rgba(184, 75, 18, 0.14);
}

/* The Advocate Cutout Image - BIG, SHARP & COMMANDING */
.hero-advocate-photo {
  position: relative;
  z-index: 3;
  height: 505px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: drop-shadow(0 16px 32px rgba(18, 35, 56, 0.16));
  transform-origin: bottom center;
}

/* Floating Glassmorphic Trust Badges on Portrait */
.hero-floating-badge {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 204, 188, 0.85);
  border-radius: 14px;
  padding: 10px 15px;
  box-shadow: 0 14px 30px rgba(18, 35, 56, 0.11);
  line-height: 1.25;
}

.hero-floating-badge.badge-bottom-left {
  bottom: 34px;
  left: -10px;
}

.hero-floating-badge.badge-top-right {
  top: 68px;
  right: -12px;
}

.floating-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fdf1e8 0%, #f9decb 100%);
  color: var(--ch-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-badge-text {
  display: flex;
  flex-direction: column;
}

.floating-badge-text strong {
  font-family: var(--ch-font-sans);
  font-size: 13px;
  font-weight: 800;
  color: var(--ch-heading-navy);
  white-space: nowrap;
}

.floating-badge-text span {
  font-family: var(--ch-font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ch-text-muted);
  white-space: nowrap;
}

/* ========================================================
   3. BOTTOM STATISTICS STRIP (3 Executive Counters)
   ======================================================== */
.modern-hero-strip {
  position: relative;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #ead9cc;
  border-bottom: 1px solid #ead9cc;
  box-shadow: 0 8px 28px rgba(18, 35, 56, 0.04);
  z-index: 10;
}

.modern-strip-container {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.strip-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px 24px;
  border-right: 1px solid #f0e4da;
  transition: background 0.25s ease;
}

.strip-item:last-child {
  border-right: none;
}

.strip-item:hover {
  background: #fdf9f5;
}

.strip-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--ch-terracotta-light);
  border: 1px solid rgba(184, 75, 18, 0.16);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ch-terracotta);
  transition: all 0.25s ease;
}

.strip-item:hover .strip-icon {
  background: var(--ch-terracotta);
  color: #ffffff;
  transform: translateY(-2px);
}

.strip-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.strip-text {
  font-family: var(--ch-font-sans);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ch-heading-navy) !important;
  margin: 0;
  white-space: nowrap;
}

.stats-card-number {
  font-family: var(--ch-font-sans);
  font-size: 34px;
  font-weight: 800;
  color: var(--ch-terracotta);
  line-height: 1.1;
  margin: 2px 0 3px 0;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

.stats-card-desc {
  font-family: var(--ch-font-sans);
  font-size: 12.5px;
  color: var(--ch-text-muted) !important;
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
}

/* ========================================================
   4. RESPONSIVE BREAKPOINTS
   ======================================================== */
@media (max-width: 1150px) {
  .modern-hero-title {
    font-size: 46px;
  }
  .hero-advocate-photo {
    height: 450px;
  }
  .hero-floating-badge.badge-top-right {
    right: 0;
  }
  .hero-floating-badge.badge-bottom-left {
    left: 0;
  }
}

/* Tablets & Mobile */
@media (max-width: 991px) {
  .modern-hero-main-area {
    min-height: auto;
  }

  .modern-hero-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 20px 0 20px;
    min-height: auto;
  }

  .hero-content-col {
    flex: 1 1 100%;
    max-width: 640px;
    padding: 10px 0 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .modern-hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-photo-col {
    flex: 1 1 100%;
    max-width: 500px;
    width: 100%;
    justify-content: center;
    align-items: flex-end;
  }

  .hero-advocate-photo {
    height: 430px;
    max-width: 100%;
  }

  .hero-portrait-backdrop {
    width: 360px;
    height: 390px;
  }

  .hero-portrait-backdrop .backdrop-arch {
    width: 330px;
    height: 360px;
  }

  .hero-portrait-backdrop .backdrop-ring {
    width: 360px;
    height: 385px;
  }
}

@media (max-width: 768px) {
  .modern-hero-title {
    font-size: 36px;
  }

  .modern-hero-subtitle {
    font-size: 19px;
  }

  .hero-floating-badge {
    display: none;
  }

  .hero-advocate-photo {
    height: 360px;
  }

  .modern-strip-container {
    grid-template-columns: 1fr;
  }

  .strip-item {
    border-right: none;
    border-bottom: 1px solid #f0e4da;
    justify-content: flex-start;
    padding: 16px 24px;
  }

  .strip-item:last-child {
    border-bottom: none;
  }
}


/* ========================================================
   FLOATING WHATSAPP ICON (FIXED RIGHT CORNER ON SCROLL)
   ======================================================== */
.floating-whatsapp-btn {
  position: fixed !important;
  right: 26px !important;
  bottom: 26px !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  background: #25D366 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.42), 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  z-index: 999999 !important;
  text-decoration: none !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.25s ease !important;
}

.floating-whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.45);
  animation: whatsappPulseRing 2.2s infinite ease-out;
  pointer-events: none;
}

@keyframes whatsappPulseRing {
  0% {
    transform: scale(0.92);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.22);
    opacity: 0;
  }
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

.floating-whatsapp-btn:hover,
.floating-whatsapp-btn:focus {
  background: #1ebe5d !important;
  color: #ffffff !important;
  transform: translateY(-4px) scale(1.04) !important;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55), 0 4px 10px rgba(0, 0, 0, 0.18) !important;
}

.floating-whatsapp-btn svg {
  width: 30px !important;
  height: 30px !important;
  display: block !important;
  fill: #ffffff !important;
}

@media (max-width: 767px) {
  .floating-whatsapp-btn {
    right: 18px !important;
    bottom: 20px !important;
    width: 52px !important;
    height: 52px !important;
  }
  .floating-whatsapp-btn svg {
    width: 27px !important;
    height: 27px !important;
  }
}

/* === HERO MOBILE & TABLET RESPONSIVE REFINEMENTS === */
.modern-hero-section,
.modern-hero-main-area {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

@media (max-width: 991px) {
  .modern-strip-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .strip-item {
    padding: 16px 12px;
    gap: 12px;
  }

  .strip-icon {
    width: 46px;
    height: 46px;
  }

  .strip-text {
    font-size: 13px;
    white-space: normal;
  }

  .stats-card-number {
    font-size: 26px;
  }

  .stats-card-desc {
    font-size: 11.5px;
  }
}

@media (max-width: 767px) {
  .modern-hero-container {
    padding: 28px 16px 0 16px !important;
  }

  .modern-hero-title {
    font-size: 32px !important;
    line-height: 1.15 !important;
  }

  .modern-hero-subtitle {
    font-size: 18px !important;
    margin-bottom: 10px !important;
  }

  .modern-hero-lead {
    font-size: 14px !important;
    margin-bottom: 20px !important;
  }

  .hero-portrait-backdrop {
    width: 280px !important;
    max-width: 82vw !important;
    height: 310px !important;
  }

  .hero-portrait-backdrop .backdrop-arch {
    width: 250px !important;
    max-width: 74vw !important;
    height: 285px !important;
  }

  .hero-portrait-backdrop .backdrop-ring {
    width: 278px !important;
    max-width: 82vw !important;
    height: 305px !important;
  }

  .hero-advocate-photo {
    height: 320px !important;
    max-width: 100% !important;
  }

  .modern-strip-container {
    grid-template-columns: 1fr !important;
  }

  .strip-item {
    padding: 16px 20px !important;
    gap: 16px !important;
    justify-content: flex-start !important;
  }
}
