/* css/sections.css */

/* Hero Section */
.hero {
  padding: 130px 0 90px;
  background-color: var(--color-primary-navy);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(201, 164, 92, 0.12), transparent 55%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--color-soft-gray);
  margin-bottom: var(--spacing-md);
  max-width: 92%;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: var(--spacing-lg);
  border-left: 2px solid var(--color-gold);
  padding-left: 1.25rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--color-soft-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.35rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Image Hanging Animation */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-card {
  position: relative;
  width: 100%;
  max-width: 390px;
  transform-origin: 50% -20px;
  animation: hangingSwing 6s ease-in-out infinite alternate;
  padding-top: 22px;
}

@keyframes hangingSwing {
  0% {
    transform: rotate(-2.2deg);
  }
  50% {
    transform: rotate(1.8deg);
  }
  100% {
    transform: rotate(-2.2deg);
  }
}

.hero-image-card:hover {
  animation-play-state: paused;
}

.hanging-pin {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 35% 35%, #fff1c5, var(--color-gold) 60%, #785a21 100%);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), 0 0 10px rgba(201, 164, 92, 0.5);
  z-index: 15;
}

.hanging-pin::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--color-dark-navy);
  border-radius: 50%;
}

.hanging-cord-left, .hanging-cord-right {
  position: absolute;
  top: 9px;
  width: 2px;
  height: 26px;
  background: linear-gradient(180deg, var(--color-gold), rgba(201, 164, 92, 0.6));
  z-index: 12;
  box-shadow: 0 0 6px rgba(201, 164, 92, 0.3);
}

.hanging-cord-left {
  left: calc(50% - 1px);
  transform: rotate(-28deg);
  transform-origin: top center;
}

.hanging-cord-right {
  left: calc(50% - 1px);
  transform: rotate(28deg);
  transform-origin: top center;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(201, 164, 92, 0.2);
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, var(--color-dark-navy), #0e2740);
  border: 2px solid rgba(201, 164, 92, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.hero-image-wrapper:hover {
  border-color: var(--color-gold);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55), 0 0 45px rgba(201, 164, 92, 0.4);
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-gold);
  border-radius: 12px;
  z-index: -1;
  opacity: 0.7;
  transition: all var(--transition-normal);
}

.hero-image-card:hover .hero-image-wrapper::after {
  transform: translate(4px, 4px);
  opacity: 1;
}

.advocate-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
}

.hero-image-wrapper:hover .advocate-photo {
  transform: scale(1.05);
}

.photo-glow-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(7, 21, 34, 0.75) 100%);
  pointer-events: none;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: rgba(7, 21, 34, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 164, 92, 0.5);
  border-radius: 30px;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 10;
  animation: badgeHoverFloat 4s ease-in-out infinite alternate;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.floating-badge:hover {
  transform: scale(1.05) translateY(-4px) !important;
  border-color: var(--color-gold);
}

.badge-top-right {
  top: 35px;
  right: -20px;
  animation-delay: 0.5s;
}

.badge-bottom-left {
  bottom: 20px;
  left: -20px;
  animation-delay: 1.2s;
}

@keyframes badgeHoverFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold), #9b7936);
  color: var(--color-dark-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.badge-icon svg {
  width: 18px;
  height: 18px;
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-title {
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
}

.badge-sub {
  color: var(--color-gold);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

@media (max-width: 992px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-subtitle {
    margin: 0 auto var(--spacing-md);
  }
  
  .hero-stats {
    justify-content: center;
    border-left: none;
    padding-left: 0;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-image {
    max-width: 360px;
    margin: 2.5rem auto 0;
  }

  .badge-top-right {
    right: -10px;
    top: 30px;
  }

  .badge-bottom-left {
    left: -10px;
    bottom: 10px;
  }
}

/* Trust Strip */
.trust-strip {
  background-color: var(--color-dark-navy);
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(201, 164, 92, 0.25);
}

.trust-items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-item svg {
  color: var(--color-gold);
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .trust-items {
    justify-content: center;
    gap: 0.75rem;
  }
  
  .trust-item {
    font-size: 0.82rem;
  }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.about-image-card {
  position: relative;
  display: flex;
  justify-content: center;
  transform-origin: 50% -15px;
  animation: hangingSwingAbout 7s ease-in-out infinite alternate;
  padding-top: 20px;
}

@keyframes hangingSwingAbout {
  0% {
    transform: rotate(1.8deg);
  }
  50% {
    transform: rotate(-1.8deg);
  }
  100% {
    transform: rotate(1.8deg);
  }
}

.about-image-card:hover {
  animation-play-state: paused;
}

.about-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(11, 31, 51, 0.15);
  aspect-ratio: 3/4;
  max-width: 390px;
  width: 100%;
  background-color: var(--color-dark-navy);
  border: 2px solid var(--color-gold);
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-image-wrapper:hover img {
  transform: scale(1.05);
}

.about-stat-badge {
  position: absolute;
  bottom: 25px;
  right: 10px;
  background: rgba(11, 31, 51, 0.94);
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  animation: badgeHoverFloat 4.5s ease-in-out infinite alternate;
}

.stat-highlight {
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

.stat-desc {
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 500;
}

.about-content h2 {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.about-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--color-gold);
}

.about-features {
  margin-top: var(--spacing-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-primary-navy);
}

.about-feature svg {
  color: var(--color-burgundy);
  width: 18px;
  height: 18px;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-content h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .about-features {
    text-align: left;
    max-width: 480px;
    margin: var(--spacing-md) auto 0;
  }

  .about-stat-badge {
    right: 50%;
    transform: translateX(50%);
    bottom: -15px;
    animation: none;
  }
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

/* Featured Service */
.featured-service {
  background-color: var(--color-primary-navy);
  color: var(--color-white);
  border-radius: 12px;
  padding: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 92, 0.3);
}

.featured-service::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201, 164, 92, 0.12) 0%, transparent 70%);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.process-step {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.4rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.process-step:hover {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: var(--color-gold);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.step-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-white);
}

/* Pricing Section */
.pricing-table-container {
  overflow-x: auto;
  margin-top: var(--spacing-lg);
  background-color: var(--color-white);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-soft-gray);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.pricing-table th, .pricing-table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-soft-gray);
}

.pricing-table th {
  background-color: var(--color-ivory);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-primary-navy);
  font-weight: 600;
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table tbody tr {
  transition: background-color 0.2s ease;
}

.pricing-table tbody tr:hover {
  background-color: rgba(247, 244, 237, 0.6);
}

.pricing-price {
  font-weight: 700;
  color: var(--color-primary-navy);
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.pricing-disclaimer {
  font-size: 0.85rem;
  color: var(--color-text-gray);
  margin-top: 1.2rem;
  font-style: italic;
}

/* Appointment Section */
.appointment-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--spacing-xl);
  background-color: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(11, 31, 51, 0.1);
  border: 1px solid var(--color-soft-gray);
}

.appointment-info {
  background-color: var(--color-primary-navy);
  color: var(--color-white);
  padding: var(--spacing-lg);
}

.appointment-info h3 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.appointment-info p {
  color: var(--color-soft-gray);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.advocate-mini-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 164, 92, 0.35);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.mini-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-gold);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #4ade80;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 38px;
  height: 38px;
  background-color: rgba(201, 164, 92, 0.15);
  color: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-details h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.contact-details a, .contact-details span {
  color: var(--color-soft-gray);
  font-size: 0.88rem;
}

.contact-details a:hover {
  color: var(--color-gold);
}

.appointment-form-container {
  padding: var(--spacing-lg);
}

.disclaimer-text {
  font-size: 0.8rem;
  color: var(--color-text-gray);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-soft-gray);
  line-height: 1.5;
}

@media (max-width: 992px) {
  .appointment-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations (Scroll Reveals) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* SEO Keyword Tag Cloud Section */
.seo-keyword-section {
  background: var(--color-dark-navy);
  border-top: 1px solid rgba(201, 164, 92, 0.2);
  border-bottom: 1px solid rgba(201, 164, 92, 0.2);
  padding: 2.5rem 0;
}

.seo-cloud-wrapper {
  text-align: center;
}

.seo-cloud-title {
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.seo-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 1050px;
  margin: 0 auto;
}

.seo-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 164, 92, 0.3);
  color: var(--color-soft-gray);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}

.seo-tag-pill:hover {
  background: rgba(201, 164, 92, 0.18);
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}
