/* ==========================================================================
   Hero Component Styles — Circular Carousel Arc
   - Left column: eyebrow, heading, description, CTA (preserved)
   - Right column: large circular carousel showing upper half arc behind
     the main lawyer image, with smoothly orbiting service cards.
   ========================================================================== */

/* ---------- SECTION ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background-color: #fbfcfe;
  background-image: url('../../assets/images/hero/hero-bg.jpg');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  padding: calc(var(--header-height, 80px) + var(--space-4xl, 4rem)) 0 0;
}

.home .hero {
  margin-top: calc(-1 * (var(--header-height, 80px) + 36px));
  padding-top: calc(var(--header-height, 80px) + 36px + 3.5rem);
  padding-bottom: 0;
}

.hero__pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  z-index: 1;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: flex-end;
  gap: var(--space-2xl, 3rem);
  position: relative;
  z-index: 2;
}

/* ---------- CONTENT COLUMN (LEFT) ---------- */
.hero__content {
  padding: 2.5rem 0 5rem;
  position: relative;
  z-index: 5;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  background-color: #E8F0FE;
  color: var(--color-primary, #0055FF);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1.25rem;
  border-radius: var(--border-radius-full, 9999px);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 85, 255, 0.08);
}

.hero__heading {
  font-size: clamp(2.5rem, 4.3vw, 3.85rem);
  font-weight: 800;
  color: #0A1E3D;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero__description {
  font-size: 1.0625rem;
  color: #556987;
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 530px;
}

.hero__description p {
  margin: 0;
}

.hero__highlight-link {
  color: var(--color-primary, #0055FF);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast, 0.2s ease);
}

.hero__highlight-link:hover {
  text-decoration: underline;
  color: var(--color-primary-dark, #0042CC);
}

.hero__actions {
  display: flex;
  align-items: center;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-primary, #0055FF);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.45rem 0.45rem 1.75rem;
  border-radius: var(--border-radius-full, 9999px);
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 85, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__btn:hover {
  background-color: var(--color-primary-dark, #0042CC);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 85, 255, 0.35);
}

.hero__btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary-dark, #0042CC);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1.25rem;
  color: #fff;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.hero__btn:hover .hero__btn-icon {
  background: #0036A8;
  transform: translateX(3px);
}

/* ---------- VISUAL COLUMN (RIGHT) ---------- */
.hero__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 480px;
  min-height: 480px;
  overflow: visible;
}

/* ==========================================================================
   DECORATIVE BRAND SHAPE
   ========================================================================== */

.hero__brand-shape {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--color-primary, #0055FF) 0%, rgba(0, 85, 255, 0.0) 75%);
  z-index: 1; /* Behind the lawyer image and cards */
  pointer-events: none;
}

/* ==========================================================================
   ROTATING CURVED TEXT
   ========================================================================== */

.hero__curved-text-wrapper {
  position: absolute;
  bottom: -15px; /* Center it concentrically around the bottom: 0 brand shape */
  left: 50%;
  transform: translateX(-50%);
  width: 510px;
  height: 510px;
  z-index: 2; /* behind person image */
  pointer-events: none;
  /* Fade out the text perfectly at the bottom to match the brand shape */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 75%);
  mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 75%);
}

.hero__curved-text-svg {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: center center;
  animation: heroCurvedTextSpin 60s linear infinite;
  will-change: transform;
}

@keyframes heroCurvedTextSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero__curved-text-svg text {
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  fill: #0055FF;
  letter-spacing: 0.25em;
  opacity: 0.9;
}

/* ==========================================================================
   MAIN IMAGE (LAYERED IN FRONT OF CIRCULAR CAROUSEL)
   ========================================================================== */

.hero__person {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4; /* Layered in front of circular carousel (z-index 2) */
  line-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: auto;
}

.hero__person img {
  height: 620px;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.16));
  margin-top: 30px; /* Added margin above the image */
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Laptop / Small Desktop */
@media (max-width: 1200px) {
  .hero__heading {
    font-size: clamp(2.25rem, 3.8vw, 3.25rem);
  }

  .hero__visual {
    height: 500px;
    min-height: 500px;
  }

  .hero__scatter-area {
    max-width: 580px;
  }

  .hero__circle-card {
    padding: 0.5rem 0.85rem;
    gap: 0.55rem;
  }

  .hero__circle-card-title {
    font-size: 0.75rem;
  }

  .hero__circle-card-sub {
    font-size: 0.65rem;
  }

  .hero__person img {
    height: 460px;
  }
}

/* Tablets */
@media (max-width: 1023px) {
  .hero {
    padding-top: calc(var(--header-height, 80px) + 2rem);
  }
  
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl, 2rem);
  }

  .hero__content {
    padding: 2rem 0 1rem;
  }
  
  .hero__actions {
    justify-content: center;
  }

  .hero__heading {
    font-size: clamp(2rem, 3.4vw, 2.75rem);
  }

  .hero__description {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  .hero__visual {
    height: 450px;
    min-height: 450px;
  }

  .hero__brand-shape {
    width: 400px;
    height: 400px;
  }

  .hero__curved-text-wrapper {
    width: 426px;
    height: 426px;
    bottom: -13px;
    top: auto;
  }
  
  .hero__curved-text-svg text {
    font-size: 13px;
  }

  .hero__person img {
    height: 410px;
  }
}

/* Mobile Devices */
@media (max-width: 767px) {
  .hero {
    padding-top: calc(var(--header-height, 80px) + 0rem);
  }

  .home .hero {
    margin-top: calc(-1 * var(--header-height, 80px));
    padding-top: calc(var(--header-height, 80px) + 0rem);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0;
  }

  .hero__content {
    padding: 0.5rem 0 0.5rem;
  }

  .hero__badge {
    margin-bottom: 1rem;
  }

  .hero__heading {
    font-size: clamp(2.2rem, 7.5vw, 2.85rem);
    line-height: 1.18;
    margin-bottom: 1.15rem;
  }

  .hero__description {
    margin: 0 auto 1.75rem;
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    height: 380px;
    min-height: 380px;
    margin-top: 1rem;
  }

  .hero__scatter-area {
    max-width: calc(100% - 1rem);
  }

  .hero__brand-shape {
    width: 300px;
    height: 300px;
  }

  .hero__curved-text-wrapper {
    width: 320px;
    height: 320px;
    bottom: -10px;
    top: auto;
  }
  
  .hero__curved-text-svg text {
    font-size: 16px;
  }

  .hero__person img {
    height: 330px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero__heading {
    font-size: clamp(2rem, 8.5vw, 2.45rem);
    line-height: 1.18;
  }

  .hero__btn {
    padding: 0.4rem 0.4rem 0.4rem 1.4rem;
    font-size: 0.8125rem;
  }

  .hero__btn-icon {
    width: 34px;
    height: 34px;
    margin-left: 1rem;
  }

  .hero__visual {
    height: 330px;
    min-height: 330px;
  }

  .hero__scatter-area {
    max-width: 100%;
  }

  .hero__brand-shape {
    width: 250px;
    height: 250px;
  }

  .hero__curved-text-wrapper {
    width: 266px;
    height: 266px;
    bottom: -8px;
    top: auto;
  }
  
  .hero__curved-text-svg text {
    font-size: 14px;
  }

  .hero__person img {
    height: 290px;
  }
}
