/* Modern Healthcare Layout - AVA Pharmacy */
/* Maintaining brand colors: red/pink palette */

/* Modern Header - Pill Navigation */
.modern-header {
  background: linear-gradient(135deg, #4f070d 0%, #8d1622 50%, #c91424 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(79, 7, 13, 0.3);
  left: 0;
  padding: 12px 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.header-container {
  align-items: center;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 clamp(20px, 4vw, 40px);
}

.brand-logo-modern {
  align-items: center;
  display: flex;
  flex-shrink: 0;
}

.brand-logo-modern img {
  background: white;
  border-radius: 8px;
  height: auto;
  max-height: 50px;
  padding: 6px 12px;
  transition: var(--transition);
  width: auto;
}

.brand-logo-modern:hover img {
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.nav-pill-container {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  display: flex;
  flex: 1;
  gap: 8px;
  justify-content: center;
  max-width: 500px;
  padding: 6px;
}

.nav-pill-item {
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 24px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-pill-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.nav-pill-item.active {
  background: white;
  color: #000;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.header-icon-btn {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  display: flex;
  font-size: 1rem;
  height: 42px;
  justify-content: center;
  transition: var(--transition);
  width: 42px;
}

.header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-header-primary {
  background: white;
  border-radius: 50px;
  color: #000;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 11px 28px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-header-primary:hover {
  background: var(--lime);
  color: var(--deep);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: none;
  font-size: 1.2rem;
  height: 42px;
  justify-content: center;
  transition: var(--transition);
  width: 42px;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-nav-collapse {
  display: none;
}

.mobile-nav-menu {
  background: linear-gradient(135deg, #4f070d 0%, #8d1622 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  padding: 20px;
}

.mobile-nav-item {
  align-items: center;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  font-size: 1rem;
  font-weight: 600;
  gap: 12px;
  padding: 14px 16px;
  transition: var(--transition);
}

.mobile-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.mobile-nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.mobile-nav-item i {
  font-size: 1.1rem;
  width: 20px;
}

.mobile-nav-contact {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 16px;
  padding-top: 16px;
}

.mobile-contact-link {
  align-items: center;
  background: white;
  border-radius: 12px;
  color: #000;
  display: flex;
  font-size: 1rem;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
  padding: 14px;
}

.mobile-nav-contact p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin: 8px 0;
}

.mobile-nav-contact i {
  color: var(--lime);
  margin-right: 8px;
}

/* Responsive Header */
@media (max-width: 991px) {
  .nav-pill-container {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-nav-collapse.show {
    display: block;
  }

  .header-container {
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .modern-header {
    padding: 10px 0;
  }

  .header-container {
    padding: 0 20px;
  }

  .brand-logo-modern img {
    max-height: 38px;
  }
}

/* Adjust page content spacing for new header */
.hero-modern,
.section-pad {
  margin-top: 0;
}

/* Hero Modern Section */
.hero-modern {
  background: var(--soft);
  padding: 80px clamp(24px, 6vw, 80px) 60px;
  position: relative;
  overflow: hidden;
}

.hero-modern::before {
  background-image: url('assets/carousel-1.webp');
  background-position: center;
  background-size: cover;
  content: "";
  inset: 0;
  opacity: 0.08;
  position: absolute;
  z-index: 0;
}

.hero-modern > * {
  position: relative;
  z-index: 1;
}

.hero-container {
  align-items: center;
  display: grid;
  gap: 60px;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  max-width: 1400px;
}

.hero-content-wrapper {
  padding-right: 40px;
}

.badge-pill {
  align-items: center;
  background: white;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  color: var(--teal);
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 700;
  gap: 8px;
  margin-bottom: 24px;
  padding: 10px 20px;
}

.hero-content-wrapper h1 {
  color: var(--ink);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 850;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-content-wrapper p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-btn-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-modern {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 10px;
  padding: 14px 28px;
  transition: var(--transition);
}

.btn-primary-modern {
  background: linear-gradient(135deg, var(--teal), var(--aqua));
  border: none;
  color: white;
}

.btn-primary-modern:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline-modern {
  background: white;
  border: 2px solid var(--line);
  color: var(--teal);
}

.btn-outline-modern:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
}

.btn-light-modern {
  background: white;
  border: none;
  color: var(--teal);
}

.btn-light-modern:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hero-image-wrapper {
  position: relative;
}

.hero-main-img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  height: auto;
  object-fit: cover;
  width: 100%;
}

.hero-stats-float {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  bottom: 30px;
  box-shadow: var(--shadow-lg);
  padding: 20px;
  position: absolute;
  right: 30px;
}

.stat-float-item {
  align-items: center;
  display: flex;
  gap: 16px;
}

.stat-icon-small {
  align-items: center;
  background: linear-gradient(135deg, var(--teal), var(--aqua));
  border-radius: 12px;
  color: white;
  display: flex;
  font-size: 1.2rem;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.stat-float-item strong {
  color: var(--ink);
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
}

.stat-float-item p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

/* Stats Section (keeping existing improved stats) */
.stats-section {
  background: linear-gradient(135deg, var(--mint) 0%, var(--soft) 100%);
  padding: 60px clamp(24px, 6vw, 80px);
}

/* About Modern Section */
.about-modern {
  padding: 80px clamp(24px, 6vw, 80px);
}

.about-content-grid {
  align-items: center;
  display: grid;
  gap: 80px;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  max-width: 1400px;
}

.section-label {
  color: var(--teal);
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.about-text-side h2 {
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 24px;
}

.about-text-side p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.feature-check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.check-item {
  align-items: center;
  display: flex;
  gap: 12px;
}

.check-item i {
  color: var(--teal);
  font-size: 1.3rem;
}

.check-item span {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.about-image-grid {
  position: relative;
}

.image-grid-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}

.grid-img-1 {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  grid-column: 1 / 3;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.grid-img-2 {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  grid-column: 1 / 2;
  height: 200px;
  margin-top: -80px;
  object-fit: cover;
  width: 100%;
}

/* Services Modern Section */
.services-modern {
  background: white;
  padding: 80px clamp(24px, 6vw, 80px);
}

.services-header {
  margin: 0 auto 60px;
  max-width: 700px;
  text-align: center;
}

.services-header h2 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 850;
  line-height: 1.2;
  margin-bottom: 16px;
}

.services-header p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.services-card-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin: 0 auto;
  max-width: 1400px;
}

.service-card-clean {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.service-card-clean:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.service-img-wrapper {
  aspect-ratio: 1.4;
  overflow: hidden;
  position: relative;
}

.service-img-wrapper img {
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  width: 100%;
}

.service-card-clean:hover .service-img-wrapper img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 28px 24px;
  position: relative;
}

.service-card-body h3 {
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.service-card-body p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-arrow-link {
  align-items: center;
  background: var(--mint);
  border-radius: 50%;
  color: var(--teal);
  display: inline-flex;
  font-size: 1rem;
  height: 40px;
  justify-content: center;
  transition: var(--transition);
  width: 40px;
}

.service-card-clean:hover .service-arrow-link {
  background: linear-gradient(135deg, var(--teal), var(--aqua));
  color: white;
  transform: rotate(-45deg);
}

/* Professionals Section */
.professionals-section {
  background: var(--soft);
  padding: 80px clamp(24px, 6vw, 80px);
}

.professionals-grid {
  align-items: center;
  display: grid;
  gap: 80px;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  max-width: 1400px;
}

.professionals-content h2 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 850;
  line-height: 1.2;
  margin-bottom: 20px;
}

.professionals-content > p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.professionals-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.feature-box {
  background: white;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 20px 24px;
  transition: var(--transition);
}

.feature-box:hover,
.feature-box.active {
  background: linear-gradient(135deg, var(--teal), var(--aqua));
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateX(8px);
}

.feature-box h4 {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-box p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.feature-box:hover h4,
.feature-box.active h4,
.feature-box:hover p,
.feature-box.active p {
  color: white;
}

.professionals-image {
  position: relative;
}

.prof-main-img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  height: auto;
  object-fit: cover;
  width: 100%;
}

.img-stats-overlay {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  bottom: 30px;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 16px;
  left: 30px;
  padding: 16px;
  position: absolute;
}

.overlay-small-img {
  border-radius: var(--radius-md);
  height: 80px;
  object-fit: cover;
  width: 80px;
}

.overlay-chart {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mini-bars {
  align-items: flex-end;
  display: flex;
  gap: 6px;
  height: 50px;
}

.mini-bars span {
  background: linear-gradient(180deg, var(--teal), var(--aqua));
  border-radius: 4px 4px 0 0;
  width: 12px;
}

/* CTA Modern Section */
.cta-modern {
  background: linear-gradient(135deg, var(--teal), var(--deep));
  margin: 0 clamp(24px, 6vw, 80px);
  padding: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cta-content-wrapper {
  align-items: center;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr 1fr;
}

.cta-text {
  padding: 80px 60px;
}

.cta-text h2 {
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 850;
  line-height: 1.2;
  margin-bottom: 20px;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta-image {
  height: 100%;
  min-height: 400px;
}

.cta-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* Compact Page Heroes */
.page-hero-compact {
  align-items: center;
  background: linear-gradient(135deg, var(--mint) 0%, var(--soft) 100%);
  display: flex;
  min-height: 280px;
  padding: 60px clamp(24px, 6vw, 80px);
}

.page-hero-content {
  margin: 0 auto;
  max-width: 800px;
  text-align: center;
}

.breadcrumb-nav {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 8px;
  margin-bottom: 16px;
}

.breadcrumb-nav a {
  color: var(--teal);
  transition: var(--transition);
}

.breadcrumb-nav a:hover {
  color: var(--aqua);
}

.breadcrumb-nav i {
  font-size: 0.7rem;
}

.page-hero-content h1 {
  color: var(--ink);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 850;
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero-content p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 600px;
}

/* Footer Text Contrast Improvements */
.site-footer {
  color: rgba(255, 255, 255, 0.95);
}

.site-footer h2 {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.9);
}

.contact-list li {
  color: rgba(255, 255, 255, 0.95);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom strong {
  color: rgba(255, 255, 255, 0.95);
}

/* Contact Page Improvements */
.contact-page h2 {
  color: var(--ink);
}

.contact-info-grid article {
  background: white;
}

.contact-info-grid h3 {
  color: var(--ink);
}

.contact-info-grid p {
  color: var(--muted);
}

/* Google Map Container */
.map-container {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  height: 500px;
  overflow: hidden;
  width: 100%;
}

.map-container iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

/* Responsive Design */
@media (max-width: 991px) {
  .hero-container,
  .about-content-grid,
  .professionals-grid {
    gap: 40px;
    grid-template-columns: 1fr;
  }

  .hero-content-wrapper {
    padding-right: 0;
  }

  .cta-content-wrapper {
    grid-template-columns: 1fr;
  }

  .cta-text {
    padding: 60px 40px;
  }

  .services-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-modern,
  .about-modern,
  .services-modern,
  .professionals-section {
    padding: 60px 24px;
  }

  .hero-content-wrapper h1,
  .about-text-side h2,
  .professionals-content h2,
  .cta-text h2 {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .hero-btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-modern {
    justify-content: center;
    width: 100%;
  }

  .hero-stats-float {
    left: 20px;
    right: 20px;
  }

  .image-grid-layout {
    grid-template-columns: 1fr;
  }

  .grid-img-2 {
    grid-column: 1;
    margin-top: 0;
  }

  .services-card-grid {
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .cta-text {
    padding: 48px 28px;
  }

  .page-hero-compact {
    min-height: 240px;
    padding: 48px 24px;
  }

  .img-stats-overlay {
    bottom: 20px;
    left: 20px;
  }
}
