/* ============================================================
   Wallarah Bay Medical Centre — Theme CSS v1.0.0
   ============================================================ */

:root {
  --teal-50:  #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius:   .5rem;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow:    0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  background: #fff;
  margin: 0;
  padding: 0;
}
img { max-width: 100%; height: auto; display: block; }
a {
  text-decoration: none;
  color: #464feb;
}
a:hover { text-decoration: underline; }
address { font-style: normal; }
tr th, tr td {
  border: 1px solid #e6e6e6;
}
tr th {
  background-color: #f5f5f5;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-py { padding: 4rem 0; }
.bg-white { background: #fff; }

h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--gray-900);
  margin-top: 0;
  margin-bottom: .75rem;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }
p  { margin-top: 0; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 { font-size: 2rem; margin-bottom: .75rem; }
.section-header p  { font-size: 1.125rem; color: var(--gray-600); max-width: 42rem; margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }
.btn-primary:hover { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.btn-outline { background: transparent; color: var(--teal-600); border-color: var(--teal-600); }
.btn-outline:hover { background: var(--teal-50); color: var(--teal-700); border-color: var(--teal-700); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); color: #fff; border-color: #fff; }
.btn-lg { padding: .875rem 1.75rem; font-size: 1.0625rem; }
.btn-sm { padding: .375rem .875rem; font-size: .8125rem; }
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* AutoMed Booking Button */
.book-now {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.125rem;
  padding: 0.75rem 1.5rem;
  background: #0068d6;
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  transition: background 0.2s, box-shadow 0.2s;
}
.book-now:hover {
  background: #0052a3;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 104, 214, 0.3);
}
.book-now--image {
  padding: 0;
  background: none;
}
.book-now--image:hover {
  box-shadow: none;
  background: none;
}
.book-now__main {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.book-now__sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.95;
}
.book-now--block {
  width: 100%;
  justify-content: center;
}

.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-body { padding: 1.25rem 1.5rem; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .75rem;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.5;
}
.badge-teal  { background: var(--teal-100); color: var(--teal-700); }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-gray  { background: var(--gray-100); color: var(--gray-600); }

.top-bar {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
  color: rgba(255,255,255,.9);
  font-size: .8125rem;
  padding: .5rem 0;
}
.top-bar a { color: rgba(255,255,255,.9); }
.top-bar a:hover { color: #fff; text-decoration: none; }
.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.top-bar-item { display: flex; align-items: center; gap: .375rem; }
.top-bar-item svg { width: .875rem; height: .875rem; opacity: .8; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .875rem 0;
}
.site-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.site-logo img { height: 3rem; width: auto; }
.logo-text { font-size: 1.0625rem; font-weight: 800; color: var(--teal-700); line-height: 1.2; }
.logo-sub  { font-size: .75rem; color: var(--gray-500); font-weight: 500; }

.desktop-nav { display: flex; align-items: center; gap: .25rem; }
.desktop-nav a {
  display: inline-flex;
  align-items: center;
  padding: .375rem .75rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: .375rem;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.desktop-nav a:hover,
.desktop-nav a.active { background: var(--teal-50); color: var(--teal-700); }

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.mobile-menu-btn svg { width: 1.25rem; height: 1.25rem; color: var(--gray-700); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--gray-100);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block;
  padding: .625rem .75rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s;
}
.mobile-nav a:hover,
.mobile-nav a.active { background: var(--teal-50); color: var(--teal-700); }

.hero-grid { grid-template-columns: 1fr; }
@media (min-width: 768px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }

.page-hero {
  padding: 4rem 0;
  text-align: center;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.page-hero h1 { font-size: 2.25rem; margin-bottom: 1rem; }
.page-hero p  { font-size: 1.125rem; color: var(--gray-600); max-width: 42rem; margin: 0 auto 1.5rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.stat-card .number { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-card .label  { font-size: .8125rem; color: rgba(255,255,255,.85); margin-top: .25rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-200));
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem;
}
.service-icon svg { width: 1.5rem; height: 1.5rem; color: var(--teal-700); }
.service-card h3 { font-size: 1.0625rem; margin-bottom: .5rem; }
.service-card p  { font-size: .875rem; color: var(--gray-600); margin-bottom: 1rem; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.feature-icon {
  width: 3rem; height: 3rem;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-200));
  border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .75rem;
}
.feature-icon svg { width: 1.25rem; height: 1.25rem; color: var(--teal-700); }
.feature-card h3 { font-size: 1rem; margin-bottom: .375rem; }
.feature-card p  { font-size: .875rem; color: var(--gray-500); margin: 0; }

.why-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .why-grid { grid-template-columns: 1fr 1fr; } }
.why-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.why-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-200));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.why-icon svg { width: 1rem; height: 1rem; color: var(--teal-700); }
.why-item h3 { font-size: 1.0625rem; margin-bottom: .25rem; }
.why-item p  { font-size: .875rem; color: var(--gray-600); margin: 0; }
.why-cta-box {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
  border-radius: 1rem; padding: 2rem; color: #fff;
}
.why-cta-box h3 { color: #fff; margin-bottom: .5rem; }
.why-cta-box p  { color: rgba(255,255,255,.85); margin-bottom: 1.5rem; }
.hours {
  margin-top: 1.25rem; padding: 1rem;
  background: rgba(255,255,255,.15); border-radius: .5rem;
  font-size: .875rem; color: rgba(255,255,255,.9); text-align: center;
}

.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.5rem; }
.testimonial-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.stars { font-size: 1.125rem; color: #f59e0b; margin-bottom: .75rem; }
.testimonial-card p { font-size: .9375rem; color: var(--gray-600); margin-bottom: 1rem; font-style: italic; }

.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-form { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact-form form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.contact-info-item { display: flex; gap: .875rem; align-items: flex-start; padding: .75rem 0; border-bottom: 1px solid var(--gray-100); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item svg { width: 1.125rem; height: 1.125rem; color: var(--teal-600); flex-shrink: 0; margin-top: .125rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); margin-top: 1.5rem; }
.map-wrap iframe { width: 100%; height: 14rem; border: none; display: block; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.contact-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.contact-card svg { width: 1.5rem; height: 1.5rem; color: var(--teal-600); margin: 0 auto .75rem; }
.contact-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.contact-card a, .contact-card address { color: var(--gray-600); font-size: .9375rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: .875rem; color: var(--gray-700); margin-bottom: .375rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .625rem .875rem;
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  font-size: .9375rem; font-family: inherit; color: var(--gray-800); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(20,184,166,.15);
}
.form-group textarea { resize: vertical; min-height: 8rem; }
.form-grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }

.doctor-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 2rem;
}
.doctor-card-inner { display: flex; gap: 0; flex-direction: column; }
@media (min-width: 768px) { .doctor-card-inner { flex-direction: row; } }
.doctor-image-wrap {
  background: linear-gradient(135deg, var(--teal-100), var(--teal-200));
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 2rem;
}
@media (min-width: 768px) { .doctor-image-wrap { width: 14rem; min-height: 18rem; } }
.doctor-avatar {
  width: 9rem; height: 9rem; border-radius: 50%; overflow: hidden;
  border: 4px solid #fff; box-shadow: var(--shadow); background: var(--teal-50);
}
.doctor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.doctor-info { padding: 2rem; flex: 1; }
.doctor-name  { font-size: 1.375rem; color: var(--gray-900); margin-bottom: .25rem; }
.doctor-title { color: var(--teal-600); font-weight: 600; font-size: 1rem; margin-bottom: .25rem; }
.doctor-quals { color: var(--gray-500); font-size: .875rem; margin-bottom: 1.5rem; }
.doctor-grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 600px) { .doctor-grid-2 { grid-template-columns: 1fr 1fr; } }
.doctor-section-title {
  display: flex; align-items: center; gap: .375rem;
  font-weight: 700; font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--gray-400); margin-bottom: .625rem;
}
.doctor-section-title svg { width: .875rem; height: .875rem; }
.doctor-about { font-size: .9375rem; color: var(--gray-600); }
.specialties-list { display: flex; flex-wrap: wrap; gap: .375rem; }
.doctor-meta { font-size: .875rem; color: var(--gray-600); }
.doctor-meta p { margin-bottom: .375rem; }
.doctor-footer { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-100); }

.tabs-wrap {}
.tabs-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--gray-200); }
.tab-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .625rem 1.125rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 600; color: var(--gray-600);
  background: var(--gray-100); border: 2px solid transparent; cursor: pointer; transition: all .15s;
}
.tab-btn svg { width: 1rem; height: 1rem; }
.tab-btn:hover { background: var(--teal-50); color: var(--teal-700); }
.tab-btn.active { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.services-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: 1.5rem; }
.service-detail-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); }
.service-detail-icon {
  width: 2rem; height: 2rem;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-200));
  border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.service-detail-icon svg { width: .875rem; height: .875rem; color: var(--teal-700); }
.service-detail-card h3 { font-size: .9375rem; margin-bottom: .375rem; }
.service-detail-card p  { font-size: .875rem; color: var(--gray-600); margin: 0; }

.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: .5625rem; top: 0; bottom: 0;
  width: 2px; background: var(--teal-200);
}
.timeline-item { position: relative; display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding-bottom: 2rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -.375rem; top: .375rem;
  width: .875rem; height: .875rem; border-radius: 50%;
  background: var(--teal-600); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--teal-600);
}
.timeline-year { font-weight: 800; color: var(--teal-600); font-size: 1rem; padding-top: .25rem; }
.timeline-content h3 { font-size: 1rem; margin-bottom: .25rem; }
.timeline-content p  { font-size: .875rem; color: var(--gray-600); margin: 0; }

.table-wrap { overflow-x: auto; }
.fees-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.fees-table thead { background: var(--teal-600); color: #fff; }
.fees-table th { padding: .875rem 1rem; text-align: left; font-weight: 700; font-size: .875rem; }
.fees-table td { padding: .875rem 1rem; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
.fees-table tbody tr:hover { background: var(--teal-50); }
.fee-amount { font-weight: 700; color: var(--teal-700); white-space: nowrap; }

.announcement-card { background: #fff; border: 1px solid var(--teal-200); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.announcement-header {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-700)); color: #fff;
  padding: 1rem 1.5rem; font-weight: 700; font-size: 1.125rem; display: flex; align-items: center; gap: .5rem;
}
.announcement-header svg { width: 1.125rem; height: 1.125rem; }
.announcement-body { padding: 1.5rem; }
.announcement-body p { margin-bottom: .875rem; color: var(--gray-700); }
.notice-box { background: #fef3c7; border: 1px solid #fcd34d; border-radius: var(--radius); padding: 1.25rem; margin-top: 1.25rem; }
.notice-box h4 { display: flex; align-items: center; gap: .375rem; font-size: 1rem; margin-bottom: .75rem; color: #b45309; }
.notice-box svg { width: 1rem; height: 1rem; }
.notice-box ul { list-style: none; padding: 0; margin: 0; }
.notice-box li { display: flex; align-items: flex-start; gap: .625rem; margin-bottom: .625rem; font-size: .9375rem; color: var(--gray-700); }
.notice-box li svg { width: 1rem; height: 1rem; color: #d97706; flex-shrink: 0; margin-top: .25rem; }

.info-section { padding: 2rem 0; border-bottom: 1px solid var(--gray-100); }
.info-section:last-child { border-bottom: none; }
.info-section h2 { display: flex; align-items: center; gap: .625rem; font-size: 1.25rem; color: var(--teal-700); margin-bottom: .75rem; }
.info-section h2 svg { width: 1.125rem; height: 1.125rem; }
.info-section ul { padding-left: 1.25rem; color: var(--gray-600); }
.info-section li { margin-bottom: .375rem; }

.prose { color: var(--gray-700); }
.prose h2 { color: var(--gray-900); margin-top: 2rem; }
.prose h3 { color: var(--gray-800); margin-top: 1.5rem; }
.prose p  { margin-bottom: 1rem; }
.prose ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .375rem; }
.prose a  { color: var(--teal-600); }
.prose em { font-style: italic; }
.prose strong { font-weight: 700; }

.site-footer { background: var(--gray-900); color: var(--gray-300); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 2.5rem; padding: 4rem 0 3rem; }
.footer-col h3 { font-size: .9375rem; font-weight: 700; color: #fff; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: var(--gray-300); font-size: .875rem; transition: color .15s; }
.footer-col a:hover { color: var(--teal-400); text-decoration: none; }
.footer-contact-item { display: flex; align-items: flex-start; gap: .625rem; margin-bottom: .75rem; }
.footer-contact-item svg { width: .875rem; height: .875rem; color: var(--teal-400); flex-shrink: 0; margin-top: .2rem; }
.footer-contact-item a, .footer-contact-item span, .footer-contact-item address { font-size: .875rem; color: var(--gray-300); }
.footer-social { display: flex; gap: .75rem; margin-top: 1rem; }
.footer-social a {
  width: 2rem; height: 2rem; border-radius: .375rem;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.footer-social a:hover { background: var(--teal-600); }
.footer-social svg { width: .875rem; height: .875rem; color: var(--gray-300); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 0;
  font-size: .8125rem; color: var(--gray-500);
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center;
}
.footer-privacy { background: rgba(0,0,0,.2); border-top: 1px solid rgba(255,255,255,.05); padding: 1rem 0; font-size: .8125rem; color: var(--gray-500); text-align: center; }
.footer-privacy a { color: var(--teal-400); }

#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--gray-800); color: var(--gray-200); padding: 1rem 1.5rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(0,0,0,.25);
}
#cookie-banner p { font-size: .875rem; margin: 0; flex: 1; min-width: 16rem; }
#cookie-banner .cookie-btns { display: flex; gap: .75rem; flex-shrink: 0; }

@media (max-width: 1023px) { .desktop-nav { display: none; } .mobile-menu-btn { display: flex; } }
@media (max-width: 767px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .section-py { padding: 2.5rem 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .top-bar-inner { flex-direction: column; gap: .375rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: .5rem; }
}

.skip-link {
  position: absolute; top: -999px; left: 1rem;
  background: var(--teal-600); color: #fff; padding: .5rem 1rem;
  border-radius: var(--radius); font-weight: 700; z-index: 99999;
}
.skip-link:focus { top: .5rem; }
svg { display: inline-block; vertical-align: middle; }

/* ---- Logo sizing -------------------------------------------------------
   the_custom_logo() outputs its own <a class="custom-logo-link"><img class="custom-logo">,
   so constrain both that and a plain <img> in the theme folder. Without this the
   Customizer logo renders at its natural size and blows the header apart.        */
.site-logo { max-width: 22rem; }
.site-logo img,
.site-logo .custom-logo { height: 3rem; width: auto; max-width: 100%; display: block; }
.site-logo .custom-logo-link { display: flex; align-items: center; text-decoration: none; }

@media (max-width: 767px) {
  .site-logo { max-width: 14rem; }
  .site-logo img,
  .site-logo .custom-logo { height: 2.5rem; }
}

/* ---- Hero photo -------------------------------------------------------- */
.hero-photo {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  border-radius: .75rem;
  margin-bottom: 1.25rem;
  display: block;
  background: rgba(255, 255, 255, .15);
}

@media (min-width: 768px) { .hero-photo { height: 16rem; } }

/* ---- Book Now badge ----------------------------------------------------
   Mirrors the AutoMed "BOOK NOW" button from the design. Pure CSS so it
   stays sharp on any screen. Drop a book-now.png into the Media Library or
   assets/images/ and the theme uses that image instead.                   */
.book-now {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .1rem;
  padding: .5rem 1.125rem;
  border-radius: .375rem;
  background: linear-gradient(180deg, #2ba9e0 0%, #1184c4 100%);
  border: 1px solid #0f76b0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
  text-decoration: none;
  line-height: 1.1;
  transition: filter .15s ease, transform .15s ease;
}
.book-now:hover,
.book-now:focus { filter: brightness(1.07); transform: translateY(-1px); }
.book-now:focus-visible { outline: 3px solid #0f766e; outline-offset: 2px; }

.book-now__main {
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.book-now__sub {
  color: rgba(255, 255, 255, .92);
  font-size: .5rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.book-now--block { display: flex; width: 100%; }

/* When a real image is supplied, drop the badge chrome. */
.book-now--image {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.book-now--image img { display: block; height: 2.5rem; width: auto; border-radius: .25rem; }
.book-now--block.book-now--image img { height: auto; width: 100%; max-width: 15rem; }

@media (max-width: 767px) {
  .book-now__main { font-size: 1.125rem; }
}
