/* ==========================================================================
   Hero Section Styles
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.hero__content {
  max-width: 600px;
}

.hero__tagline {
  display: inline-block;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1rem;
  color: var(--amethyst);
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
}

.hero__title {
  margin-bottom: var(--space-lg);
  color: var(--navy);
}

.hero__title span {
  color: var(--electric-blue);
}

.hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

/* Hero Stats */
.hero__stats {
  display: flex;
  gap: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--light-gray);
}

.hero__stat {
  text-align: left;
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--electric-blue);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.hero__stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Hero Image */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.hero__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 2;
}

/* Decorative Elements */
.hero__shape {
  position: absolute;
  z-index: 1;
}

.hero__shape--1 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--amethyst) 0%, var(--plum) 100%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: -30px;
  right: -30px;
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.hero__shape--2 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--seafoam) 0%, var(--hunter) 100%);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  bottom: -20px;
  left: -40px;
  opacity: 0.5;
  animation: float 8s ease-in-out infinite reverse;
}

.hero__shape--3 {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--electric-blue) 0%, var(--dusty-blue) 100%);
  border-radius: 50%;
  top: 50%;
  right: -60px;
  opacity: 0.7;
  animation: float 5s ease-in-out infinite;
}

/* Polygon decoration inspired by logo */
.hero__polygon {
  position: absolute;
  z-index: 0;
}

.hero__polygon svg {
  width: 100%;
  height: 100%;
}

/* Background decoration */
.hero__bg-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background:
    radial-gradient(circle at 80% 20%, rgba(74, 144, 184, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(123, 107, 141, 0.05) 0%, transparent 30%);
  pointer-events: none;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.hero__scroll:hover {
  color: var(--electric-blue);
}

.hero__scroll-icon {
  width: 24px;
  height: 40px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
}

.hero__scroll-icon::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background-color: currentColor;
  border-radius: 2px;
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(10px);
    opacity: 0.5;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .hero {
    min-height: auto;
    padding: 120px 0 var(--space-3xl);
  }

  .hero__container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero__content {
    max-width: 100%;
    text-align: center;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__visual {
    order: 1;
  }

  .hero__image-wrapper {
    max-width: 400px;
  }

  .hero__scroll {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__stats {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .hero__stat {
    text-align: center;
  }

  .hero__buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .hero__shape--1,
  .hero__shape--2,
  .hero__shape--3 {
    display: none;
  }
}

/* ==========================================================================
   Page Hero Variant (About / Services / Contact / 404)
   ========================================================================== */
.hero--page {
  min-height: 55vh;
  padding-top: 140px;
  padding-bottom: var(--space-3xl);
}

.hero__container--single {
  grid-template-columns: 1fr;
}

.hero--page .hero__title {
  text-align: center;
}

.hero--page .hero__subtitle {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

@media (max-width: 991px) {
  .hero--page {
    min-height: auto;
    padding-top: 120px;
  }
}

/* ==========================================================================
   FAQ / Details element (used on Contact page)
   ========================================================================== */
details.card summary {
  list-style: none;
  position: relative;
  padding-right: var(--space-xl);
}
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--electric-blue);
  font-weight: 300;
  transition: transform var(--transition-fast);
}
details.card[open] summary::after {
  content: '−';
}

/* ==========================================================================
   Pagination (blog / archive)
   ========================================================================== */
.pagination .nav-links,
.navigation.pagination .nav-links {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid var(--light-gray);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background-color: var(--electric-blue);
  color: white;
  border-color: var(--electric-blue);
}
