/* ============================================
   BV Family & Cosmetic Dentistry - Main CSS
   ============================================ */

:root {
  --primary: #1A3C6E;
  --primary-light: #2461A8;
  --primary-dark: #0D2545;
  --accent: #3B89C9;
  --accent-light: #EBF4FF;
  --gold: #C49B1E;
  --green: #27AE60;
  --light: #F5F8FC;
  --light-gray: #E8EEF5;
  --text: #2C3E50;
  --text-muted: #6B7F96;
  --white: #FFFFFF;
  --border: #D5E3F0;
  --shadow-sm: 0 2px 8px rgba(26, 60, 110, 0.08);
  --shadow-md: 0 4px 20px rgba(26, 60, 110, 0.12);
  --shadow-lg: 0 8px 40px rgba(26, 60, 110, 0.15);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

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

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

p { margin-bottom: 1rem; }

/* ---- Utilities ---- */
.text-primary-custom { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary-custom { background-color: var(--primary) !important; }
.bg-light-custom { background-color: var(--light) !important; }
.bg-accent-light { background-color: var(--accent-light) !important; }

/* ---- Top Info Bar ---- */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.9);
  padding: 7px 0;
  font-size: 13px;
}
.top-bar a { color: rgba(255, 255, 255, 0.85); }
.top-bar a:hover { color: #fff; }
.top-bar .top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 20px;
}
.top-bar .top-bar-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ---- Navigation ---- */
.navbar {
  background: var(--white) !important;
  box-shadow: var(--shadow-sm);
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: var(--transition);
}
.navbar.scrolled {
  padding: 8px 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
}
.navbar-brand .brand-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.navbar-brand .brand-icon img {
  width: auto;
  height: 70px;
  display: block;
  object-fit: contain;
}
.navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
}
.navbar-brand .brand-name {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.navbar-brand .brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.navbar-nav {
  align-items: stretch !important;
}
.navbar-nav .nav-item {
  display: flex;
  align-items: stretch;
}
.navbar-nav .nav-link {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text) !important;
  padding: 6px 8px !important;
  border-radius: 6px;
  transition: var(--transition);
  letter-spacing: 0.1px;
  white-space: normal;
  text-align: center;
  display: flex !important;
  align-items: center;
  max-width: 90px;
  line-height: 1.3;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
  background: var(--accent-light);
}

.navbar-nav .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 210px;
  margin-top: 6px;
}
.navbar-nav .dropdown-item {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
}
.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item.active,
.navbar-nav .dropdown-item:active {
  background: var(--accent-light);
  color: var(--primary);
}

.navbar-nav .nav-link.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  border-radius: 6px !important;
  padding: 8px 16px !important;
  font-weight: 600 !important;
  max-width: none;
  white-space: nowrap;
}
.navbar-nav .nav-link.nav-cta:hover {
  background: var(--primary-dark) !important;
  color: white !important;
}

.navbar-toggler {
  -webkit-tap-highlight-color: transparent;
}
.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}
.navbar-toggler:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-light), 0 0 0 4px var(--accent);
}

/* ---- Page Hero ---- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 50px 0 45px;
  color: white;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.page-hero h1 {
  color: white;
  font-size: 2rem;
  margin-bottom: 8px;
}
.page-hero p {
  color: rgba(255,255,255,0.85);
  margin: 0;
  font-size: 15px;
}
.breadcrumb {
  background: none;
  padding: 0;
  margin: 10px 0 0;
}
.breadcrumb-item { color: rgba(255,255,255,0.7); font-size: 13px; }
.breadcrumb-item a { color: rgba(255,255,255,0.85); }
.breadcrumb-item.active { color: rgba(255,255,255,0.95); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ---- Hero (Home) ---- */
.hero {
  min-height: 540px;
  background:
    linear-gradient(135deg, rgba(13,37,69,0.88) 0%, rgba(36,97,168,0.75) 100%),
    url('https://images.unsplash.com/photo-1728342057953-94bfad8f0e7e?w=1920&q=85&fit=crop') center center / cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero h1 span {
  color: #7EC8F0;
}
.hero .lead {
  font-size: 16px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 30px;
  max-width: 520px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 14px 20px;
  min-width: 100px;
}
.hero-stat .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  display: block;
}
.hero-stat .label {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- Buttons ---- */
.btn-primary-custom {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
  padding: 12px 28px;
  border-radius: 8px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-primary-custom:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light-custom {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.7);
  padding: 12px 28px;
  border-radius: 8px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-outline-light-custom:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  color: white;
}

.btn-accent {
  background: var(--accent);
  color: white;
  border: 2px solid var(--accent);
  padding: 12px 28px;
  border-radius: 8px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-accent:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: white;
  transform: translateY(-1px);
}

/* ---- Section Headers ---- */
.section-header {
  margin-bottom: 50px;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 2px;
  margin: 14px auto 0;
}

/* ---- Service Cards ---- */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
}
.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.service-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
  transition: var(--transition);
}
.service-card .card-link:hover {
  gap: 8px;
  color: var(--primary);
}

/* ---- Specialty Cards ---- */
.specialty-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.specialty-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.specialty-card-img {
  height: 160px;
  overflow: hidden;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.specialty-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.specialty-card:hover .specialty-card-img img {
  transform: scale(1.05);
}
.specialty-card-body {
  padding: 20px;
}
.specialty-card-body h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.specialty-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ---- Team Cards ---- */
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  text-align: center;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.team-card-photo {
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--light), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.team-card-body {
  padding: 24px;
}
.team-card-body h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.team-card-body .role {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.team-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ---- Before/After Gallery ---- */
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.gallery-item img { width: 100%; display: block; }
.gallery-item-label {
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- Info Cards ---- */
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.info-card h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light-gray);
}

/* ---- Contact Section ---- */
.contact-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.contact-sidebar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 40px 32px;
  color: white;
}
.contact-sidebar h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 24px;
}
.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: flex-start;
}
.contact-info-item .icon {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item .icon svg {
  width: 18px;
  height: 18px;
  stroke: white;
}
.contact-info-item .info-text {
  font-size: 14px;
  line-height: 1.6;
}
.contact-info-item .info-text strong {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 3px;
}
.contact-info-item .info-text span { color: white; }

.hours-grid {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
}
.hours-row:last-child { border-bottom: none; }
.hours-row .day { font-weight: 600; }
.hours-row .time { color: rgba(255,255,255,0.75); }
.hours-row.closed .time { color: #FF8A80; }

/* ---- Forms ---- */
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
  background: var(--white);
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 137, 201, 0.12);
  outline: none;
}
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

/* ---- Feature Strip ---- */
.feature-strip {
  background: var(--primary);
  padding: 50px 0;
  color: white;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.feature-item .feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-item .feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
}
.feature-item h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 5px;
}
.feature-item p {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 70px 0;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -5%;
  width: 350px;
  height: 350px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.cta-section h2 {
  color: white;
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 12px;
}
.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 15.5px;
  max-width: 550px;
  margin: 0 auto 28px;
}

/* ---- Forms List Page ---- */
.forms-list .form-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
}
.forms-list .form-item:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--primary);
}
.forms-list .form-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.forms-list .form-icon svg { width: 20px; height: 20px; stroke: var(--accent); }
.forms-list .form-name {
  font-size: 14.5px;
  font-weight: 600;
  flex: 1;
}
.forms-list .form-action {
  font-size: 12px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---- Photo Card (Facility Tour grid) ---- */
.photo-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.photo-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.photo-card img {
  width: 100%;
  height: auto;
  display: block;
}
.photo-card-label {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ---- Facility Gallery ---- */
.tour-main-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--light-gray);
}
.tour-main-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}
.tour-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.2s ease;
  z-index: 2;
}
.tour-nav:hover { background: white; }
.tour-nav svg { width: 20px; height: 20px; stroke: var(--primary); }
.tour-nav-prev { left: 14px; }
.tour-nav-next { right: 14px; }
.tour-caption-text {
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 10px 0 16px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.tour-thumbs-wrap {
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.tour-thumbs-wrap::-webkit-scrollbar { height: 4px; }
.tour-thumbs-wrap::-webkit-scrollbar-track { background: transparent; }
.tour-thumbs-wrap::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.tour-thumbs {
  display: flex;
  gap: 10px;
  padding: 4px 2px;
  min-width: max-content;
}
.tour-thumb {
  flex-shrink: 0;
  width: 120px;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: var(--transition);
  background: var(--light-gray);
}
.tour-thumb:hover { border-color: var(--accent); }
.tour-thumb.active { border-color: var(--primary); }
.tour-thumb img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  display: block;
}
.tour-thumb span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  padding: 4px 4px 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tour-thumb.active span { color: var(--primary); }

.facility-thumb {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.facility-thumb:hover,
.facility-thumb.active {
  border-color: var(--accent);
}
.facility-thumb img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  display: block;
}
.facility-label {
  font-size: 11px;
  text-align: center;
  padding: 4px;
  color: var(--text-muted);
  font-weight: 500;
}
.facility-main-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.facility-main-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

/* ---- Mission Box ---- */
.mission-box {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--light) 100%);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin-bottom: 30px;
}
.mission-box p {
  font-size: 16px;
  font-style: italic;
  color: var(--primary);
  font-weight: 500;
  margin: 0;
  line-height: 1.75;
}

/* ---- Membership Badges ---- */
.membership-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.membership-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--light-gray);
}
.membership-list li:last-child { border-bottom: none; }
.membership-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- Services List ---- */
.services-category {
  margin-bottom: 36px;
}
.services-category h3 {
  font-size: 1.1rem;
  color: var(--primary);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light-gray);
  margin-bottom: 16px;
}
.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.services-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 14.5px;
  color: var(--text);
  border-bottom: 1px solid var(--light-gray);
  transition: var(--transition);
}
.services-list li:last-child { border-bottom: none; }
.services-list li svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent);
  flex-shrink: 0;
}

/* ---- Content Page ---- */
.content-page { padding: 60px 0; }
.content-page .content-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}
.content-page .content-body h2 {
  font-size: 1.4rem;
  margin-top: 28px;
  margin-bottom: 12px;
}
.content-page .content-body h3 {
  font-size: 1.15rem;
  margin-top: 22px;
  margin-bottom: 10px;
  color: var(--primary-light);
}
.content-page .content-body ul {
  padding-left: 20px;
}
.content-page .content-body ul li {
  margin-bottom: 6px;
}

/* ---- Benefit List ---- */
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.benefit-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 14.5px;
}
.benefit-list li:last-child { border-bottom: none; }
.benefit-list .benefit-icon {
  width: 22px;
  height: 22px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.benefit-list .benefit-icon svg { width: 12px; height: 12px; stroke: white; stroke-width: 3; }

/* ---- Before/After Table ---- */
.before-after-table {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 24px 0;
}
.before-after-table .ba-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.before-after-table .ba-header span { padding: 10px; }
.before-after-table .ba-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
}
.before-after-table .ba-images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* ---- Footer ---- */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 16px;
}
.footer-brand .brand-icon {
  display: flex;
}
.footer-brand .brand-icon img { width: auto; height: 60px; display: block; object-fit: contain; }
.footer-brand .brand-name {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: white;
}
footer p { font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,0.65); }
.footer-heading {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}
.footer-links a:hover { color: white; }
.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: flex-start;
  font-size: 13.5px;
}
.footer-contact-item svg {
  width: 15px;
  height: 15px;
  stroke: rgba(255,255,255,0.5);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 40px 0 0;
}
.footer-bottom {
  padding: 18px 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: white; }

/* ---- Footer-links in light context (info-card sidebars on inner pages) ---- */
.info-card .footer-links a {
  color: var(--text);
}
.info-card .footer-links a:hover {
  color: var(--primary);
}

/* ---- Hours grid in light context (info-card sidebars on inner pages) ---- */
.info-card .hours-grid {
  background: var(--light);
  border-radius: 8px;
  padding: 4px 14px;
  margin-top: 0;
}
.info-card .hours-row {
  color: var(--text);
  border-bottom-color: var(--light-gray);
}
.info-card .hours-row .day { color: var(--text); }
.info-card .hours-row .time { color: var(--text-muted); }
.info-card .hours-row.closed .time { color: #c0392b; }

/* ---- Back to Top ---- */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 1040;
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--primary-dark);
}
#back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: white;
  fill: none;
}

/* ---- Section padding ---- */
.section { padding: 72px 0; }
.section-sm { padding: 50px 0; }

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .hero { min-height: 420px; }
  .hero-stats { gap: 12px; }
  .hero-stat { padding: 12px 14px; min-width: 80px; }
  .hero-stat .num { font-size: 1.2rem; }
  .navbar-brand .brand-sub { display: none; }
  .navbar-brand .brand-name { font-size: 12.5px; }
  .navbar-brand .brand-icon img { height: 48px; }
  .navbar-brand { gap: 4px; }
  /* mobile nav: links go back to single-line block layout */
  .navbar-nav .nav-link { max-width: none; text-align: left; white-space: normal; }
  .navbar-nav .nav-item { display: block; }
  /* sticky header overlaps and slices scrolling content underneath on mobile; scroll normally instead */
  .navbar { position: relative; }
}

@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .hero { min-height: 360px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-actions { gap: 10px; }
  .top-bar .d-md-flex { display: none !important; }
  .contact-sidebar { padding: 28px 24px; }
  .page-hero { padding: 36px 0 32px; }
  .page-hero h1 { font-size: 1.6rem; }
  .facility-main-img img { height: 240px; }
  .tour-main-wrap img { height: 300px; }
  .tour-thumb { width: 100px; }
  .tour-thumb img { height: 64px; }
}

@media (max-width: 576px) {
  .hero-stats { flex-direction: column; gap: 8px; }
  .hero-stat { min-width: unset; text-align: left; display: flex; gap: 12px; align-items: center; }
  .hero-stat .num { font-size: 1.3rem; }
  .btn-primary-custom, .btn-outline-light-custom, .btn-accent { padding: 10px 20px; font-size: 13px; }
}
