/* ==========================================================================
   Sunshine Health Care Services - Main Stylesheet
   Author: Sunshine Health Care
   Description: Premium healthcare theme with mobile-first responsive design
   ========================================================================== */

/* ---------- CSS Variables (Theme) ---------- */
:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --primary-light: #e7f1ff;
  --secondary: #20c997;
  --secondary-dark: #16a085;
  --secondary-light: #e6faf4;
  --accent: #ffc107;
  --dark: #1a2b48;
  --text: #333f52;
  --muted: #6c7a91;
  --light: #f8fafc;
  --border: #e5eaf1;
  --white: #ffffff;
  --success: #22c55e;
  --danger: #ef4444;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;

  --shadow-sm: 0 2px 8px rgba(13, 110, 253, 0.06);
  --shadow: 0 4px 20px rgba(13, 110, 253, 0.08);
  --shadow-lg: 0 12px 40px rgba(13, 110, 253, 0.12);
  --shadow-hover: 0 16px 48px rgba(13, 110, 253, 0.18);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s ease;

  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- Base Reset ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p { color: var(--muted); }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

section { padding: 5rem 0; scroll-margin-top: 80px; }

/* ---------- Focus / Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
}
.skip-link:focus { left: 10px; color: var(--white); }

/* ---------- Utility Classes ---------- */
.text-primary-brand { color: var(--primary) !important; }
.text-secondary-brand { color: var(--secondary) !important; }
.bg-primary-brand { background: var(--primary) !important; color: var(--white); }
.bg-secondary-brand { background: var(--secondary) !important; color: var(--white); }
.bg-light-brand { background: var(--light) !important; }
.bg-primary-soft { background: var(--primary-light) !important; }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title .subtitle {
  display: inline-block;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-title h2 { margin-bottom: 0.75rem; }
.section-title p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 50px;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.3px;
  transition: all var(--transition);
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn:focus { box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25); }

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary-brand {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
}
.btn-secondary-brand:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(32, 201, 151, 0.35);
}

.btn-whatsapp {
  background: var(--whatsapp);
  border-color: var(--whatsapp);
  color: var(--white);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  border-color: var(--whatsapp-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
}

.btn-outline-light-brand {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}
.btn-outline-light-brand:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline-primary-brand {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline-primary-brand:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-lg { padding: 0.95rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.15rem; font-size: 0.875rem; }

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  padding: 0.75rem 0;
  transition: all var(--transition);
  z-index: 1030;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.navbar-brand .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  box-shadow: var(--shadow);
}

.navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.navbar-brand .brand-name {
  font-size: 1.1rem;
  color: var(--dark);
}
.navbar-brand .brand-sub {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.navbar-nav .nav-link {
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.navbar-toggler {
  border: 2px solid var(--primary-light);
  padding: 0.4rem 0.6rem;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25); }

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white) !important;
  padding: 0.55rem 1.25rem !important;
  border-radius: 50px !important;
  margin-left: 0.5rem;
}
.nav-cta:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 7rem 0 5rem;
  background:
    linear-gradient(135deg, rgba(13, 110, 253, 0.88) 0%, rgba(32, 201, 151, 0.85) 100%),
    url('../images/hero-bg.svg') center/cover no-repeat;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 0.5rem 1.15rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero h1 {
  color: var(--white);
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat h3 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0.25rem;
  font-weight: 800;
}
.hero-stat p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 0.9rem;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  background: var(--white);
  padding: 1.5rem;
}

.hero-image svg { width: 100%; height: auto; display: block; }

.hero-carousel {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  background: var(--white);
  padding: 0.65rem;
  overflow: hidden;
}

.hero-carousel .carousel-inner {
  border-radius: calc(var(--radius-xl) - 6px);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--light);
}

.hero-carousel .carousel-item {
  height: 100%;
}

.hero-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-carousel .carousel-indicators {
  margin-bottom: 0.75rem;
}

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.55);
  border: 0;
  opacity: 1;
}

.hero-carousel .carousel-indicators .active {
  background-color: var(--primary);
  transform: scale(1.15);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 12%;
  opacity: 0.85;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  width: 1.5rem;
  height: 1.5rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.hero-float {
  position: absolute;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: floatBox 4s ease-in-out infinite;
}

.hero-float-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--white);
  flex-shrink: 0;
}

.hero-float h4 {
  font-size: 0.95rem;
  margin: 0 0 0.15rem;
  color: var(--dark);
}
.hero-float p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-float-1 { top: 15%; left: -5%; }
.hero-float-1 .hero-float-icon { background: var(--secondary); }
.hero-float-2 { bottom: 15%; right: -5%; animation-delay: 1s; }
.hero-float-2 .hero-float-icon { background: var(--primary); }

@keyframes floatBox {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 7rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-header p { color: rgba(255, 255, 255, 0.9); }

.breadcrumb {
  justify-content: center;
  background: transparent;
  padding: 0;
  margin: 0;
}
.breadcrumb-item, .breadcrumb-item a { color: rgba(255,255,255,0.85); font-weight: 500; }
.breadcrumb-item a:hover { color: var(--white); }
.breadcrumb-item.active { color: var(--white); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.6); }

/* ---------- Feature Cards ---------- */
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  height: 100%;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  color: var(--primary);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  transform: scale(1.05) rotate(-5deg);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.feature-card p { margin: 0; font-size: 0.95rem; }

/* ---------- Service Cards ---------- */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  height: 100%;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.service-card .feature-icon { margin-bottom: 1rem; }

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.service-card p { flex: 1; margin-bottom: 1.25rem; font-size: 0.925rem; }

.service-card .service-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.service-card .service-benefits li {
  padding: 0.35rem 0;
  color: var(--text);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-card .service-benefits li i { color: var(--secondary); flex-shrink: 0; }

.service-card .btn { margin-top: auto; }

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 40%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 85% 60%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-section p { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; margin-bottom: 2rem; }

/* ---------- About Section ---------- */
.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: var(--white);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.about-image svg { width: 100%; height: auto; display: block; }

.about-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.about-badge .badge-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.about-badge h4 { font-size: 1.25rem; margin: 0; color: var(--dark); }
.about-badge p { margin: 0; font-size: 0.8rem; color: var(--muted); }

.check-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.check-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 500;
}
.check-list li i {
  color: var(--secondary);
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* Mission / Vision / Values */
.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  height: 100%;
  transition: all var(--transition);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.value-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  transform: translateX(-50%);
  border-radius: 3px;
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.5rem 2rem;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item::before {
  content: '';
  position: absolute;
  top: 2rem;
  width: 18px;
  height: 18px;
  background: var(--white);
  border: 4px solid var(--primary);
  border-radius: 50%;
  z-index: 2;
}
.timeline-item:nth-child(odd)::before { right: -9px; }
.timeline-item:nth-child(even)::before { left: -9px; }

.timeline-content {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.timeline-year {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.timeline-content h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.timeline-content p { margin: 0; font-size: 0.9rem; }

/* Team */
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  text-align: center;
  padding-bottom: 1.5rem;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.team-photo {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--primary);
}
.team-card h4 { margin: 1rem 0 0.25rem; font-size: 1.15rem; }
.team-card .role { color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
.team-card p { padding: 0 1.25rem; font-size: 0.9rem; }

/* ---------- Pricing ---------- */
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  height: 100%;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}
.pricing-card.popular {
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 60%);
}
.pricing-card.popular::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 0.35rem 1.1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.pricing-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.pricing-amount {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin: 1rem 0 0.25rem;
}
.pricing-amount .currency {
  font-size: 1.4rem;
  vertical-align: top;
  margin-right: 2px;
}
.pricing-duration {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
  flex: 1;
}
.pricing-features li {
  padding: 0.4rem 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.925rem;
}
.pricing-features li i { color: var(--secondary); flex-shrink: 0; }

/* ---------- Gallery ---------- */
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
  background: var(--white);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item svg, .gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(13, 43, 72, 0.9) 0%, transparent 100%);
  color: var(--white);
  padding: 2rem 1rem 1rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform var(--transition);
  font-size: 0.9rem;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.gallery-item:hover::after { transform: translateY(0); }

/* Videos */
.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: var(--dark);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb::before {
  content: '\F4F4';
  font-family: 'bootstrap-icons';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.video-thumb:hover::before {
  background: var(--primary);
  color: var(--white);
  transform: translate(-50%, -50%) scale(1.1);
}
.video-card .video-title {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--dark);
  font-size: 1rem;
}

/* Articles */
.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.article-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 3.5rem;
}
.article-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.article-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.article-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.article-category {
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.15rem 0.65rem;
  border-radius: 30px;
  font-weight: 600;
}
.article-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.article-card p { flex: 1; font-size: 0.925rem; }
.article-card .read-more {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.article-card .read-more:hover { gap: 0.75rem; }

/* ---------- Contact ---------- */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  height: 100%;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.contact-info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.contact-info-card h4 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.contact-info-card p, .contact-info-card a {
  margin: 0.2rem 0;
  color: var(--muted);
  font-size: 0.95rem;
  display: block;
  word-break: break-word;
}
.contact-info-card a:hover { color: var(--primary); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.contact-form .form-label { font-weight: 600; color: var(--dark); font-size: 0.9rem; margin-bottom: 0.4rem; }
.contact-form .form-control,
.contact-form .form-select {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  background: var(--light);
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
  background: var(--white);
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.map-embed iframe { display: block; width: 100%; border: 0; height: 400px; }

/* Working hours */
.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list li .day { color: var(--text); font-weight: 500; }
.hours-list li .time { color: var(--primary); font-weight: 600; }

/* ---------- Floating Buttons ---------- */
.float-btn {
  position: fixed;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 999;
  text-decoration: none;
  transition: all var(--transition);
  bottom: 20px;
}
.float-btn:hover {
  color: var(--white);
  transform: scale(1.1) translateY(-4px);
}

.float-call {
  left: 20px;
  background: var(--primary);
  animation: pulseCall 2s ease-in-out infinite;
}
.float-whatsapp {
  right: 20px;
  background: var(--whatsapp);
  animation: pulseWA 2s ease-in-out infinite 0.5s;
}

@keyframes pulseCall {
  0%, 100% { box-shadow: 0 8px 24px rgba(13, 110, 253, 0.35), 0 0 0 0 rgba(13, 110, 253, 0.5); }
  50% { box-shadow: 0 8px 24px rgba(13, 110, 253, 0.35), 0 0 0 14px rgba(13, 110, 253, 0); }
}
@keyframes pulseWA {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.55); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(180deg, var(--dark) 0%, #0f1e34 100%);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 0;
}
.footer h5 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.footer p, .footer a { color: rgba(255, 255, 255, 0.7); font-size: 0.925rem; }
.footer a { transition: color var(--transition-fast); }
.footer a:hover { color: var(--secondary); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 0.3rem 0; }
.footer ul li a { display: inline-flex; align-items: center; gap: 0.4rem; }
.footer ul li a::before { content: '›'; color: var(--secondary); font-weight: 700; }
.footer .brand-block { margin-bottom: 1rem; }
.footer .social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}
.footer .social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
}
.footer .social-links a::before { display: none; }
.footer .social-links a:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-3px);
}
.footer-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-map iframe { width: 100%; height: 150px; border: 0; display: block; filter: grayscale(0.3) brightness(0.9); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding: 1.5rem 0;
  font-size: 0.875rem;
  text-align: center;
}
.footer-bottom p { margin: 0; }

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.fade-in.visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, #eef2f7 25%, #f5f8fc 50%, #eef2f7 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
  min-height: 240px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Error / empty states */
.state-message {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.state-message i { font-size: 2.5rem; color: var(--primary); margin-bottom: 0.75rem; display: block; }
