/**
 * Arya Homeo Clinic — theme layer on Medilab template
 */
:root {
  --ahc-primary: #0d9488;
  --ahc-primary-light: #14b8a6;
  --ahc-primary-dark: #0f766e;
  --ahc-accent: #f59e0b;
  --ahc-accent-soft: #fde68a;
  --ahc-ink: #134e4a;
  --ahc-muted: #5f6f6e;
}

body {
  color: var(--ahc-muted);
}

a {
  color: var(--ahc-primary-dark);
}

a:hover {
  color: var(--ahc-primary-light);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ahc-ink);
}

#topbar .contact-info i,
#topbar .social-links a:hover {
  color: var(--ahc-primary);
}

#header .logo a {
  background: linear-gradient(120deg, var(--ahc-primary-dark), var(--ahc-primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.appointment-btn {
  background: linear-gradient(135deg, var(--ahc-accent), #ea580c) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.appointment-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
  color: var(--ahc-primary-dark);
}

/* Hero — full-width slider variant */
#hero.hero-has-slider {
  padding: 0;
  margin-bottom: -200px;
  background: none !important;
  animation: none !important;
  overflow: hidden;
}

.hero-slider.swiper {
  width: 100%;
  height: 90vh;
  min-height: 440px;
}

.hero-slider .swiper-slide {
  position: relative;
  overflow: hidden;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 8s linear;
}

.hero-slider .swiper-slide-active .hero-slide-bg {
  transform: scale(1);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(13, 148, 136, 0.88) 0%,
    rgba(15, 118, 110, 0.72) 45%,
    rgba(245, 158, 11, 0.38) 100%
  );
  pointer-events: none;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 48px;
}

.hero-caption-inner {
  max-width: 38rem;
}

.hero-eyebrow {
  font-family: "Raleway", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.65rem;
}

.hero-caption-inner h1,
.hero-caption-inner h2 {
  color: #fff !important;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.28);
  margin: 0;
  font-weight: 700;
}

.hero-caption-inner h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.hero-caption-inner h2 {
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
  line-height: 1.2;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 1rem 0 0;
  line-height: 1.55;
}

.hero-caption-inner .btn-get-started {
  margin-top: 1.75rem;
}

/* Caption stagger when slide becomes active */
.hero-caption-inner > * {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slider .swiper-slide-active .hero-caption-inner > * {
  opacity: 1;
  transform: translateY(0);
}

.hero-slider .swiper-slide-active .hero-caption-inner .hero-eyebrow {
  transition-delay: 0.05s;
}

.hero-slider .swiper-slide-active .hero-caption-inner h1,
.hero-slider .swiper-slide-active .hero-caption-inner h2 {
  transition-delay: 0.12s;
}

.hero-slider .swiper-slide-active .hero-caption-inner .hero-lead {
  transition-delay: 0.22s;
}

.hero-slider .swiper-slide-active .hero-caption-inner .btn-get-started {
  transition-delay: 0.34s;
}

.hero-slider-pagination.swiper-pagination-bullets {
  bottom: 28px !important;
}

.hero-slider-pagination .swiper-pagination-bullet {
  width: 11px;
  height: 11px;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-slider-pagination .swiper-pagination-bullet-active {
  background: var(--ahc-accent-soft);
  transform: scale(1.25);
}

.hero-slider-nav {
  color: #fff !important;
  width: 44px;
  height: 44px;
  margin-top: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-slider-nav:after {
  font-size: 18px !important;
  font-weight: 700;
}

.hero-slider-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-slider-prev {
  left: 16px;
}

.hero-slider-next {
  right: 16px;
}

#hero .btn-get-started,
.hero-slider .btn-get-started {
  background: linear-gradient(135deg, var(--ahc-accent-soft), var(--ahc-accent));
  color: var(--ahc-ink);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

#hero .btn-get-started:hover,
.hero-slider .btn-get-started:hover {
  background: #fff;
  color: var(--ahc-primary-dark);
}

@media (max-width: 992px) {
  #hero.hero-has-slider {
    margin-bottom: 0;
  }

  .hero-slider.swiper {
    height: auto;
    min-height: min(100vh, 720px);
  }

  .hero-slide-content {
    padding-top: 100px;
    align-items: flex-end;
    padding-bottom: 72px;
  }

  .hero-slider-prev {
    left: 8px;
  }

  .hero-slider-next {
    right: 8px;
  }
}

/* Fallback hero (non-slider pages) — subtle gradient panel */
#hero:not(.hero-has-slider) {
  position: relative;
  margin-bottom: -200px;
  background-image:
    linear-gradient(115deg, rgba(13, 148, 136, 0.88) 0%, rgba(15, 118, 110, 0.78) 42%, rgba(245, 158, 11, 0.35) 100%),
    url("../img/hero-bg.jpg");
  background-blend-mode: normal;
  animation: ahc-hero-shift 18s ease-in-out infinite alternate;
}

@keyframes ahc-hero-shift {
  from {
    background-position: top center, 52% center;
  }
  to {
    background-position: top center, 48% center;
  }
}

#hero:not(.hero-has-slider) h1 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

#hero:not(.hero-has-slider) h2 {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

@media (max-width: 992px) {
  #hero:not(.hero-has-slider) {
    margin-bottom: 0;
  }
}

/* Scroll-reveal (Intersection Observer toggles .is-visible) */
.ahc-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ahc-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ahc-reveal-delay-1 {
  transition-delay: 0.08s;
}

.ahc-reveal-delay-2 {
  transition-delay: 0.16s;
}

.ahc-reveal-delay-3 {
  transition-delay: 0.24s;
}

/* Inner pages — hero band */
.inner-page-hero {
  padding: 132px 0 40px;
  background: linear-gradient(135deg, #ecfdf5 0%, #ccfbf1 40%, #fef9c3 100%);
  border-bottom: 1px solid rgba(13, 148, 136, 0.15);
  animation: ahc-inner-hero-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ahc-inner-hero-in {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section titles — gentle underline pulse */
.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  margin-top: 10px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ahc-primary), var(--ahc-accent));
  transform-origin: left;
  animation: ahc-underline-grow 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ahc-underline-grow {
  from {
    transform: scaleX(0);
    opacity: 0.5;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

.count-box {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.count-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide-bg,
  #hero:not(.hero-has-slider),
  .inner-page-hero,
  .section-title h2::after,
  .ahc-reveal {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .hero-caption-inner > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .ahc-reveal {
    opacity: 1;
    transform: none;
  }

  .hero-slider .swiper-slide-active .hero-slide-bg {
    transform: scale(1);
  }
}

.inner-page-hero h1 {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  color: var(--ahc-ink);
  font-size: 2rem;
}

.inner-page-hero p {
  margin: 0;
  max-width: 42rem;
  color: var(--ahc-muted);
}

@media (max-width: 576px) {
  .inner-page-hero {
    padding-top: 120px;
  }

  .inner-page-hero h1 {
    font-size: 1.5rem;
  }
}

.footer-soft {
  background: linear-gradient(180deg, #f8fafc 0%, #ecfeff 100%);
  border-top: 1px solid rgba(13, 148, 136, 0.12);
}

.site-legal-bar {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.72);
  padding: 10px 12px;
  text-align: center;
  font-size: 0.8125rem;
}

.site-legal-bar a {
  color: #5eead4;
  text-decoration: none;
  transition: color 0.2s;
}

.site-legal-bar a:hover {
  color: #fde68a;
}

.back-to-top {
  background: var(--ahc-primary) !important;
}

.back-to-top:hover {
  background: var(--ahc-primary-dark) !important;
}

/* Cards — subtle lift */
.icon-box,
.member,
.gallery-item img {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.icon-box:hover,
.member:hover {
  transform: translateY(-4px);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.legal-copy {
  max-width: 52rem;
}

.legal-copy p,
.legal-copy li {
  line-height: 1.65;
}

@media (max-width: 576px) {
  #header .logo {
    font-size: 1.15rem;
  }

  .appointment-btn {
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-left: 8px !important;
    font-size: 12px !important;
  }
}
