/* ============================================================
   OXYPRIME - Premium Healthcare Equipment Rentals
   Custom Stylesheet v2.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --blue:       #0EA5E9;
  --blue-dark:  #0284C7;
  --blue-light: #E0F2FE;
  --green:      #10B981;
  --green-dark: #059669;
  --green-light:#D1FAE5;
  --dark:       #0F172A;
  --slate:      #475569;
  --light:      #F8FAFC;
  --white:      #FFFFFF;
  --shadow-sm:  0 2px 8px rgba(15,23,42,.06);
  --shadow:     0 8px 30px rgba(15,23,42,.08);
  --shadow-lg:  0 20px 60px rgba(15,23,42,.12);
  --shadow-xl:  0 30px 80px rgba(15,23,42,.16);
  --radius:     1rem;
  --radius-lg:  1.5rem;
  --radius-xl:  2rem;
}

/* ============================================================
   Base / Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Outfit', sans-serif; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Selection */
::selection { background: rgba(14,165,233,.2); color: var(--blue-dark); }

/* ============================================================
   Keyframe Animations
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes floatBadge {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-8px) rotate(-2deg); }
}
@keyframes pulseBlue {
  0%,100% { box-shadow: 0 0 0 0 rgba(14,165,233,.5); }
  50%      { box-shadow: 0 0 0 14px rgba(14,165,233,0); }
}
@keyframes pulseGreen {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
  50%      { box-shadow: 0 0 0 14px rgba(16,185,129,0); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
@keyframes scaleIn {
  from { opacity:0; transform: scale(.92); }
  to   { opacity:1; transform: scale(1);   }
}
@keyframes slideInRight {
  from { opacity:0; transform: translateX(30px); }
  to   { opacity:1; transform: translateX(0); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Animation Utility Classes
   ============================================================ */
.animate-float      { animation: float 4.5s ease-in-out infinite; }
.animate-float-badge{ animation: floatBadge 3.5s ease-in-out infinite; }
.animate-pulse-blue { animation: pulseBlue 2.5s infinite; }
.animate-pulse-green{ animation: pulseGreen 2.5s infinite; }
.animate-fade-in-up { animation: fadeInUp .7s cubic-bezier(.22,.68,0,1.2) both; }
.animate-scale-in   { animation: scaleIn .5s ease both; }

/* Staggered delays */
.delay-100 { animation-delay: .1s; }
.delay-200 { animation-delay: .2s; }
.delay-300 { animation-delay: .3s; }
.delay-400 { animation-delay: .4s; }
.delay-500 { animation-delay: .5s; }
.delay-600 { animation-delay: .6s; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s cubic-bezier(.22,.68,0,1.2),
              transform .75s cubic-bezier(.22,.68,0,1.2);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal-left.active { opacity:1; transform:translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal-right.active { opacity:1; transform:translateX(0); }

/* ============================================================
   Glassmorphism Header
   ============================================================ */
.glass-header {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,232,240,.7);
}

/* ============================================================
   Gradient Text
   ============================================================ */
.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   Image Placeholder System
   ============================================================ */
.img-placeholder {
  position: relative;
  background: linear-gradient(135deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .75rem;
  color: #94a3b8;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
  padding: 1rem;
}
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,165,233,.04) 0%, rgba(16,185,129,.04) 100%);
}
.img-placeholder svg { opacity: .35; flex-shrink: 0; }
.img-placeholder span { position: relative; z-index: 1; }
/* When you replace with a real <img>, it will naturally take over */
.img-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero image wrapper */
.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 420px;
}
@media (min-width:1024px) {
  .hero-img-wrap { min-height: 520px; }
}

/* ============================================================
   Service Cards
   ============================================================ */
.service-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
  border: 1px solid #e2e8f0;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14,165,233,.3);
}
.service-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.service-card-img img,
.service-card-img .img-placeholder {
  width: 100%;
  height: 100%;
}
.service-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, #fff);
}
.service-card-body { padding: 1.5rem; }

/* Icon badge overlay */
.service-icon-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 2;
}

/* ============================================================
   Gallery Section
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
}
.gallery-item .img-placeholder,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.gallery-item:hover .img-placeholder,
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,165,233,.7), rgba(16,185,129,.7));
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Span first item larger on desktop */
@media (min-width:1024px) {
  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
}

/* ============================================================
   Lightbox
   ============================================================ */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#lightbox.active {
  display: flex;
  animation: fadeIn .25s ease;
}
#lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
  animation: scaleIn .3s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
#lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background .2s;
}
#lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  font-weight: 500;
  background: rgba(0,0,0,.4);
  padding: .4rem 1rem;
  border-radius: 99px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

/* ============================================================
   Hero Trust Badges (floating)
   ============================================================ */
.trust-badge-float {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  padding: .75rem 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  white-space: nowrap;
  animation: floatBadge 4s ease-in-out infinite;
  z-index: 10;
}
.trust-badge-float:nth-child(2) { animation-delay: -.8s; }
.trust-badge-float:nth-child(3) { animation-delay: -1.6s; }

/* ============================================================
   Statistics Cards
   ============================================================ */
.stat-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: transform .3s ease, box-shadow .3s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: .5rem;
}

/* ============================================================
   FAQ Accordion
   ============================================================ */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.22,.68,0,1.2);
}
.accordion-icon {
  transition: transform .3s ease;
  flex-shrink: 0;
}
.accordion-item.open .accordion-icon { transform: rotate(180deg); }

/* ============================================================
   Emergency Banner
   ============================================================ */
.emergency-banner {
  position: relative;
  overflow: hidden;
}
.emergency-banner-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,165,233,.95) 0%, rgba(16,185,129,.95) 100%);
  z-index: 1;
}
.emergency-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .15;
}
.emergency-banner-content { position: relative; z-index: 2; }

/* ============================================================
   Map Placeholder
   ============================================================ */
.map-placeholder {
  width: 100%;
  height: 350px;
  background: #e2e8f0;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: #94a3b8;
  font-weight: 600;
  overflow: hidden;
  position: relative;
}
.map-placeholder iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-lg);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .875rem 2rem;
  border-radius: 99px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  transition: all .25s ease;
  box-shadow: 0 8px 24px rgba(14,165,233,.35);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 12px 32px rgba(14,165,233,.45);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-green {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .875rem 2rem;
  border-radius: 99px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  transition: all .25s ease;
  box-shadow: 0 8px 24px rgba(16,185,129,.35);
  white-space: nowrap;
}
.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(16,185,129,.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .875rem 2rem;
  border-radius: 99px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid rgba(255,255,255,.5);
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
  transform: translateY(-1px);
}

/* ============================================================
   Form Inputs
   ============================================================ */
.form-input {
  width: 100%;
  padding: .875rem 1.125rem;
  border-radius: .75rem;
  border: 1.5px solid #e2e8f0;
  font-size: .9rem;
  font-family: inherit;
  color: var(--dark);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(14,165,233,.12);
}
.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,.1);
}
.error-msg {
  font-size: .775rem;
  color: #ef4444;
  font-weight: 600;
  margin-top: .3rem;
  display: none;
}
.error-msg.visible { display: block; }

/* ============================================================
   Floating Buttons
   ============================================================ */
.fab-wrapper {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
}
@media (min-width: 640px) {
  .fab-wrapper { bottom: 2rem; }
}
.fab {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
}
.fab:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(0,0,0,.25); }
.fab-call  { background: var(--blue);  animation: pulseBlue  3s infinite; }
.fab-wa    { background: #25D366;       animation: pulseGreen 3s infinite; }

/* ============================================================
   Sticky Mobile Bottom Bar
   ============================================================ */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: .625rem .875rem calc(.625rem + env(safe-area-inset-bottom));
  gap: .625rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
@media (min-width: 640px) { .mobile-bottom-bar { display: none; } }

.mobile-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .75rem;
  border-radius: .75rem;
  font-weight: 700;
  font-size: .875rem;
  transition: opacity .2s;
  color: #fff;
  text-decoration: none;
}
.mobile-bar-btn:active { opacity: .8; }
.mobile-bar-call { background: var(--blue); }
.mobile-bar-wa   { background: #25D366; }

/* ============================================================
   Section CTA Bar
   ============================================================ */
.section-cta-bar {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--green-light) 100%);
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ============================================================
   Why Choose (Feature) Cards
   ============================================================ */
.feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(14,165,233,.3);
}

/* ============================================================
   Timeline Steps
   ============================================================ */
.step-circle {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.375rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(14,165,233,.35);
  border: 4px solid #fff;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: transform .3s ease;
}
.step-circle:hover { transform: scale(1.08); }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonial-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.testimonial-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--blue-light);
}

/* ============================================================
   About Section Image
   ============================================================ */
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 480px;
}
.about-img-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  z-index: 5;
}

/* ============================================================
   Divider gradient
   ============================================================ */
.gradient-divider {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--green), transparent);
  border: none;
  margin: 0;
}

/* ============================================================
   Utility Overrides
   ============================================================ */
.shadow-blue { box-shadow: 0 8px 30px rgba(14,165,233,.3); }
.shadow-green { box-shadow: 0 8px 30px rgba(16,185,129,.3); }
.bg-grid {
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 24px 24px;
}
.text-gradient-blue {
  background: linear-gradient(135deg, var(--blue), #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-green {
  background: linear-gradient(135deg, var(--green), #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.border-gradient {
  border-image: linear-gradient(135deg, var(--blue), var(--green)) 1;
}

/* print optimization */
@media print { .fab-wrapper, .mobile-bottom-bar { display: none !important; } }
