/* Sahara Medika Prima — custom styles */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
}

/* Hero slider */
.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-tagline {
  font-weight: 600;
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.75) 0%, rgba(29, 78, 216, 0.55) 100%);
}

/* Product sub-nav */
.sub-nav-bar {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sub-nav-bar.open,
body[data-page="products"] .sub-nav-bar {
  max-height: 120px;
}

@media (min-width: 1024px) {
  .nav-products:hover .sub-nav-bar,
  .sub-nav-bar.open {
    max-height: 120px;
  }
}

/* Nav active state — white on gradient header */
.site-header .nav-link.active,
.header-nav-bar .nav-link.active {
  color: #fff;
  border-bottom: 2px solid #fff;
  padding-bottom: 0.125rem;
}

/* Site header — blue gradient theme */
.site-header {
  box-shadow: 0 4px 6px -1px rgba(3, 105, 161, 0.15);
}

.header-gradient {
  background: linear-gradient(135deg, #e0f2fe 0%, #7dd3fc 40%, #0ea5e9 75%, #0369a1 100%);
}

.header-nav-bar {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.95) 0%, rgba(3, 105, 161, 0.9) 100%);
}

.header-logo {
  width: 4rem;
  height: 4rem;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.header-title {
  color: #fff;
  font-weight: 700;
}

.header-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.header-search {
  width: 100%;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.625rem 3rem 0.625rem 1.25rem;
  font-size: 0.875rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.header-search:focus {
  background: #fff;
  border-color: #fff;
}

.header-phone-icon {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 0.625rem;
  color: #fff;
}

.header-phone-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
}

.header-phone-number {
  color: #fff;
  font-weight: 600;
}

.nav-link-header {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.nav-link-header:hover {
  color: #fff;
}

.nav-link-header.active {
  color: #fff;
  border-bottom: 2px solid #fff;
  padding-bottom: 0.125rem;
}

.section-gradient-light {
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

.section-gradient-blue {
  background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 100%);
}

.mobile-menu-panel {
  background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 100%);
  border-color: #bae6fd;
}

/* Product card hover */
.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(30, 58, 95, 0.12);
}

/* Wide panoramic product photos */
.product-img-panoramic {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: contain;
  background-color: #f9fafb;
}

.product-img-bg-white {
  background-color: #ffffff;
}

/* Search highlight */
.product-card.search-match {
  box-shadow: 0 0 0 3px #3b82f6, 0 12px 24px rgba(30, 58, 95, 0.12);
  transform: translateY(-4px);
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.open {
  max-height: 600px;
}

/* Page hero banner */
.page-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 100%);
}

/* Service icon */
.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
}

/* Form focus */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Google Maps embed */
.map-embed {
  border: 0;
  width: 100%;
  height: 100%;
}
