/* ==========================================================================
   Springfield Dental - Master Stylesheet
   Inherited Design UI & Typography with Springfield Dental Brand Colors
   ========================================================================== */

:root {
  /* Brand Colors from Logo */
  --navy-deep: #0e1a3a;
  --navy-primary: #182859;
  --navy-light: #253975;
  --blue-brand: #00689c;
  --blue-sky: #029edb;
  --blue-soft: #cce9f7;
  --blue-tint: #f0f7fc;
  
  /* Theme System Mappings */
  --t9: #0e1a3a;
  --t7: #182859;
  --t5: #00689c;
  --t4: #029edb;
  --t1: #e9f4fa;
  --navy: #0e1a3a;
  --slate: #4a596e;
  --slate-light: #6c7c93;
  --bd: #d6e5ef;
  --bg: #f4f8fc;
  --base: #ffffff;
  --gold: #f59e0b;
  --ok: #10b981;
  --danger: #ef4444;

  /* Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(14, 26, 58, 0.06);
  --shadow-md: 0 6px 20px rgba(14, 26, 58, 0.08);
  --shadow-lg: 0 12px 36px rgba(14, 26, 58, 0.12);
  --shadow-xl: 0 20px 50px rgba(14, 26, 58, 0.16);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  width: 100%;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.65;
  background-color: var(--base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  width: 100%;
  position: relative;
}

main {
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
  font-weight: 700;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--blue-brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--blue-sky);
}

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

:focus-visible {
  outline: 3px solid var(--blue-sky);
  outline-offset: 3px;
}

/* Layout Utilities */
.w {
  width: min(1240px, 92%);
  margin-left: auto;
  margin-right: auto;
}

section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}

.tint {
  background-color: var(--bg);
}

.lead {
  font-size: 1.125rem;
  max-width: 65ch;
  color: var(--slate);
  line-height: 1.65;
}

/* Prevent Bootstrap row negative margins from causing horizontal scroll */
.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.hero-slider-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0 1.6rem;
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--navy-primary) 0%, var(--blue-brand) 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(24, 40, 89, 0.25);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 104, 156, 0.35);
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-primary) 100%);
}

.btn-sky-custom {
  background: linear-gradient(135deg, var(--blue-brand) 0%, var(--blue-sky) 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(2, 158, 219, 0.3);
}

.btn-sky-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(2, 158, 219, 0.45);
}

.btn-ghost-custom {
  background: transparent;
  color: var(--navy-primary) !important;
  border-color: var(--bd);
}

.btn-ghost-custom:hover {
  background: var(--blue-tint);
  border-color: var(--blue-brand);
  color: var(--blue-brand) !important;
}

.btn-white-custom {
  background: #ffffff;
  color: var(--navy-primary) !important;
  border-color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn-white-custom:hover {
  background: var(--blue-tint);
  transform: translateY(-2px);
}

/* ==========================================================================
   Header & Topbar
   ========================================================================== */
.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar .w {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topbar-info a {
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.topbar-info a:hover {
  color: var(--blue-sky);
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.78rem;
}

header {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bd);
  box-shadow: 0 4px 18px rgba(14, 26, 58, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

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

.brand-logo img {
  height: 52px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-brand);
}

/* Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--bd);
  padding: 0.6rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 1100;
  list-style: none;
}

.nav-dropdown-wide {
  min-width: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0.8rem;
  gap: 0.4rem;
}

.nav-links li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  color: var(--slate);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown a:hover {
  background: var(--blue-tint);
  color: var(--navy-primary);
}

.nav-dropdown i {
  color: var(--blue-brand);
  width: 18px;
  font-size: 0.9rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-tel {
  display: flex;
  flex-direction: column;
  text-align: right;
  font-size: 0.78rem;
  color: var(--slate-light);
  line-height: 1.2;
}

.nav-tel strong {
  font-size: 1rem;
  color: var(--navy-primary);
  font-family: 'Manrope', sans-serif;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--bd);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 1.25rem;
  color: var(--navy);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section with Dynamic Slider
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(90vh - 100px);
  display: flex;
  align-items: center;
  padding: clamp(3.5rem, 8vh, 6rem) 0;
  overflow: hidden;
  background: var(--navy-deep);
  color: #ffffff;
}

.hero-slider-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease, transform 1.2s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(14, 26, 58, 0.92) 0%, rgba(14, 26, 58, 0.78) 50%, rgba(14, 26, 58, 0.45) 100%),
              linear-gradient(180deg, rgba(14, 26, 58, 0.4) 0%, transparent 60%, rgba(14, 26, 58, 0.8) 100%);
}

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

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(2, 158, 219, 0.18);
  border: 1px solid rgba(2, 158, 219, 0.4);
  color: #cce9f7;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.35);
  animation: pulseDot 2s ease infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

.hero h1 {
  color: #ffffff;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.hero h1 .text-highlight {
  background: linear-gradient(135deg, #029edb 0%, #a0dbf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.65;
  color: rgba(240, 247, 252, 0.92);
  margin-bottom: 2rem;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
  flex-wrap: wrap;
  margin-top: 2.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trust-item strong {
  color: #ffffff;
  font-size: 1.25rem;
  font-family: 'Manrope', sans-serif;
}

.trust-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-stars {
  color: #f59e0b;
}

.trust-divider {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.2);
}

/* Hero Controls */
.hero-controls {
  position: absolute;
  bottom: 28px;
  right: clamp(20px, 5vw, 60px);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 26, 58, 0.7);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.slider-arrow {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}

.slider-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.slider-dot.active {
  width: 24px;
  border-radius: var(--radius-full);
  background: var(--blue-sky);
}

/* ==========================================================================
   Highlight Badges & Quick Features Bar
   ========================================================================== */
.features-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--bd);
  padding: 1.8rem 0;
  box-shadow: var(--shadow-sm);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--bd);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-brand);
}

.feature-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-primary) 0%, var(--blue-brand) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feature-pill h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.feature-pill p {
  font-size: 0.82rem;
  color: var(--slate-light);
  margin: 0;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-head.text-start {
  text-align: left;
  margin-left: 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  background: var(--blue-tint);
  border: 1px solid var(--blue-soft);
  color: var(--blue-brand);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.section-head h2 {
  margin-bottom: 0.9rem;
}

.section-head p {
  font-size: 1.05rem;
  color: var(--slate);
  margin: 0;
}

/* ==========================================================================
   Service Cards Grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.6rem;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--bd);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-brand);
}

.service-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg);
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.06);
}

.service-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(14, 26, 58, 0.85);
  color: #ffffff;
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-card-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--navy);
}

.service-card-body p {
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--blue-brand);
  transition: gap 0.2s ease, color 0.2s ease;
}

.service-card-link:hover {
  gap: 0.75rem;
  color: var(--navy-primary);
}

/* ==========================================================================
   Meet the Doctors / Team Section
   ========================================================================== */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.doctor-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--bd);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--blue-brand);
}

.doctor-img-box {
  position: relative;
  height: 340px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--blue-tint) 100%);
  overflow: hidden;
}

.doctor-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.doctor-card:hover .doctor-img-box img {
  transform: scale(1.03);
}

.doctor-credentials-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(24, 40, 89, 0.9);
  color: #ffffff;
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.doctor-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.doctor-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.doctor-role {
  color: var(--blue-brand);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.doctor-bio {
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.doctor-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.specialty-tag {
  background: var(--bg);
  border: 1px solid var(--bd);
  color: var(--navy-primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Clinic Gallery Section
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.gallery-grid .gallery-item:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 220px;
  box-shadow: var(--shadow-sm);
  background: var(--bg);
}

.gallery-grid .gallery-item:first-child {
  height: 100%;
  min-height: 450px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14, 26, 58, 0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ==========================================================================
   Insurance & MassHealth Section
   ========================================================================== */
.insurance-banner {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-primary) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  box-shadow: var(--shadow-xl);
  margin-top: 2rem;
}

.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.insurance-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.2s ease;
}

.insurance-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.insurance-item i {
  font-size: 1.4rem;
  color: var(--blue-sky);
}

.insurance-item strong {
  color: #ffffff;
  font-size: 0.95rem;
  display: block;
}

.insurance-item span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   Patient Reviews / Testimonials
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.review-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--bd);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-brand);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.review-stars {
  color: var(--gold);
  font-size: 0.95rem;
  display: flex;
  gap: 2px;
}

.review-source {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-light);
}

.review-card p {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bd);
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.author-info h4 {
  font-size: 0.95rem;
  margin: 0;
}

.author-info span {
  font-size: 0.8rem;
  color: var(--slate-light);
}

/* ==========================================================================
   Appointment Booking Section / Modal
   ========================================================================== */
.booking-section {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-primary) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  box-shadow: var(--shadow-xl);
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.booking-form-card {
  background: #ffffff;
  color: var(--slate);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.form-control-custom {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--bd);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--navy);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--blue-brand);
  box-shadow: 0 0 0 3px rgba(0, 104, 156, 0.15);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--slate);
  margin-bottom: 1.2rem;
}

.form-check input {
  margin-top: 0.2rem;
}

/* ==========================================================================
   Blog Articles & Cards
   ========================================================================== */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
}

.blog-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--bd);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-brand);
}

.blog-card-img {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--bg);
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--slate-light);
  margin-bottom: 0.65rem;
}

.blog-card-body h3 {
  font-size: 1.2rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.blog-card-body h3 a {
  color: var(--navy);
}

.blog-card-body h3 a:hover {
  color: var(--blue-brand);
}

.blog-card-body p {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(4rem, 7vw, 5.5rem) 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 3.5rem;
}

.footer-brand img {
  height: 52px;
  width: auto;
  margin-bottom: 1.2rem;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: inline-block;
  object-fit: contain;
}

.footer-brand p {
  line-height: 1.65;
  margin-bottom: 1.4rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: var(--blue-sky);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--blue-sky);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease, padding 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-links a:hover {
  color: var(--blue-sky);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.78);
}

.footer-contact-item i {
  color: var(--blue-sky);
  margin-top: 0.25rem;
}

.footer-hours-table {
  width: 100%;
  font-size: 0.88rem;
  border-collapse: collapse;
}

.footer-hours-table td {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-hours-table td:last-child {
  text-align: right;
  color: #ffffff;
  font-weight: 600;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal-links a:hover {
  color: var(--blue-sky);
}

/* ==========================================================================
   Page Banner / Breadcrumbs
   ========================================================================== */
.page-banner {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-primary) 100%);
  color: #ffffff;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(2, 158, 219, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.page-banner h1 {
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.6rem;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumbs a:hover {
  color: var(--blue-sky);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 992px) {
  .nav-links, .nav-actions .btn-custom {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .booking-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid .gallery-item:first-child {
    grid-column: 1 / 3;
    grid-row: auto;
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .topbar-info {
    font-size: 0.78rem;
    gap: 0.8rem;
  }
  
  .hero-controls {
    bottom: 16px;
    right: 16px;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(14, 26, 58, 0.6);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  display: none;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer.active {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: min(340px, 85vw);
  height: 100%;
  background: #ffffff;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.active .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bd);
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mobile-nav-list a {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0.5rem 0;
}

.mobile-nav-list a:hover {
  color: var(--blue-brand);
}



/* Ensure container allows header to stick across whole page */
#site-header {
  display: contents;
}

