/*
Theme Name: Dental Clinic
Theme URI: https://example.com/dental-clinic
Description: A modern, responsive WordPress theme designed specifically for dental clinics and medical practices. Features include appointment booking, service showcases, team profiles, and patient testimonials.
Author: Your Name
Author URI: https://example.com
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dental-clinic
Tags: medical, healthcare, dental, clinic, business, responsive, bootstrap, modern
*/

/* ==========================================================================
   Custom Styles for Dental Clinic Theme
   ========================================================================== */

:root {
  --primary-color: #2c5aa0;
  --secondary-color: #00b4d8;
  --accent-color: #90e0ef;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --footer-bg: #333333;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --white: #ffffff;
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Base Styles */
body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

/* Buttons */
.btn {
  font-weight: 500;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
  font-size: 14px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: var(--white);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 15px 40px;
  font-size: 16px;
}

/* Header Styles */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  background: var(--primary-color);
  color: var(--white);
  padding: 8px 0;
  font-size: 14px;
}

.top-bar a {
  color: var(--white);
  margin-right: 20px;
}

.top-bar a:hover {
  color: var(--accent-color);
}

.navbar {
  padding: 15px 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  transition: font-size 0.3s ease;
}

/* Uploaded logo: always a fixed height, whatever size the file is */
.navbar-brand--logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand .custom-logo-link {
  display: block;
  flex-shrink: 0;
}

.navbar-brand .custom-logo {
  display: block;
  width: auto;
  height: 56px;
  max-width: 240px;
  object-fit: contain;
}

/* Placeholder logo, shown until a real one is uploaded */
.logo-placeholder {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 1.6rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.navbar-brand__name {
  line-height: 1.15;
  color: var(--primary-color);
}

.navbar-brand__name:hover {
  color: var(--primary-color);
}

@media (max-width: 576px) {
  .navbar-brand .custom-logo {
    height: 42px;
    max-width: 160px;
  }

  .logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 1.25rem;
  }
}

/* Responsive font sizes for navbar-brand */
@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.3rem;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .navbar-brand {
    font-size: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .navbar-brand {
    font-size: 1.6rem;
  }
}

@media (min-width: 993px) and (max-width: 1200px) {
  .navbar-brand {
    font-size: 1.7rem;
  }
}

@media (min-width: 1201px) {
  .navbar-brand {
    font-size: 2rem;
  }
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 10px 15px !important;
  color: var(--text-dark) !important;
  transition: var(--transition);
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 90%, transparent), color-mix(in srgb, var(--secondary-color) 90%, transparent));
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero .min-vh-100 {
  min-height: 100vh !important;
}

.hero-content {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 95%, transparent), color-mix(in srgb, var(--secondary-color) 95%, transparent));
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-text-wrapper {
  padding: 60px 40px;
  max-width: 600px;
  width: 100%;
}

.hero-image-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-image-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 1s ease 0.2s both;
}

.hero .btn {
  animation: fadeInUp 1s ease 0.4s both;
}

/* Enhanced Hero Buttons */
.hero-btn-primary {
  border: 1px solid var(--white) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--white) !important;
}

.hero-btn-secondary {
  border: 1px solid var(--white) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--white) !important;
}

/* Hero Responsive Styles */
@media (max-width: 991.98px) {
  .hero .row {
    flex-direction: column;
  }
  
  .hero-content,
  .hero-image-section {
    min-height: 50vh;
  }
  
  .hero-text-wrapper {
    padding: 40px 30px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-content,
  .hero-image-section {
    min-height: 60vh;
  }
  
  .hero-text-wrapper {
    padding: 30px 20px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero .btn {
    margin-bottom: 10px;
    width: 100%;
    max-width: 280px;
  }
  
  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

@media (max-width: 575.98px) {
  .hero-text-wrapper {
    padding: 20px 15px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
}

/* Services Section */
.services {
  padding: 80px 0;
  background: var(--bg-light);
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  height: 100%;
  border: none;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-card .service-image {
  margin: -40px -30px 20px -30px;
}

.service-card .service-image img {
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.service-card .icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--white);
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* About Section */
.about {
  padding: 80px 0;
}

.about-content {
  padding-right: 30px;
}

.about-stats {
  background: var(--primary-color);
  color: var(--white);
  padding: 25px 20px;
  border-radius: var(--border-radius);
  margin-top: 25px;
}

.stat-item {
  text-align: center;
  padding: 10px 5px;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  opacity: 0.9;
  line-height: 1.3;
}

/* Team Section */
.team {
  padding: 80px 0;
  background: var(--bg-light);
}

.team-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.team-card .team-image {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.team-card .team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: var(--transition);
}

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

.team-card .card-body {
  padding: 30px 20px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.team-card .team-info {
  flex-grow: 1;
}

.team-card h5 {
  color: var(--primary-color);
  margin-bottom: 5px;
  font-size: 1.25rem;
  font-weight: 600;
}

.team-card .position {
  color: var(--secondary-color);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-card .bio {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.social-links {
  margin-top: auto;
}

.social-links a {
  display: inline-flex;
  width: 35px;
  height: 35px;
  background: var(--bg-light);
  color: var(--primary-color);
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 5px;
  transition: var(--transition);
  font-size: 14px;
}

.social-links a:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* Team Card Minimum Heights for Consistency */
@media (min-width: 992px) {
  .team .col-lg-4 {
    display: flex;
  }
  
  .team-card {
    min-height: 500px;
  }
  
  .team-card .team-info {
    min-height: 140px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .team .col-md-6 {
    display: flex;
  }
  
  .team-card {
    min-height: 480px;
  }
}

/* Equal height rows */
.team .row {
  display: flex;
  flex-wrap: wrap;
}

.team .row > [class*="col-"] {
  display: flex;
  align-items: stretch;
}

/* Testimonials */
.testimonials {
  padding: 80px 0;
  background: var(--primary-color);
  color: var(--white);
}

.testimonial-card {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #000000;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-rating {
  color: #ffc107;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 25px;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #000000;
  font-weight: 500;
  flex-grow: 1;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary-color);
  position: absolute;
  top: -15px;
  left: -10px;
  font-family: serif;
  opacity: 0.3;
}

.testimonial-text::after {
  content: '"';
  font-size: 3rem;
  color: var(--primary-color);
  position: absolute;
  bottom: -25px;
  right: -10px;
  font-family: serif;
  opacity: 0.3;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: auto;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
}

.contact-form-wrapper {
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  height: 100%;
}

.form-header {
  text-align: center;
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 2px solid var(--bg-light);
}

.form-header h3 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1.75rem;
}

.form-header p {
  color: #6c757d;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.form-floating {
  position: relative;
}

.form-floating > .form-control,
.form-floating > .form-select {
  height: 60px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px 15px 8px 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary-color) 15%, transparent);
  transform: translateY(-2px);
}

.form-floating > label {
  color: #6c757d;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select:focus ~ label,
.form-floating > .form-select:not([value=""]) ~ label {
  color: var(--primary-color);
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating textarea.form-control {
  height: 120px !important;
  resize: vertical;
  min-height: 120px;
}

.form-check {
  padding: 15px 20px;
  background: var(--bg-light);
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.contact-submit-btn {
  width: 100%;
  height: 55px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border: none;
  box-shadow: 0 8px 25px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.contact-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px color-mix(in srgb, var(--primary-color) 40%, transparent);
}

.contact-info {
  background: #ffffff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  height: 100%;
}

.contact-info-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}

.contact-info-header h4 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-info-header p {
  color: #6c757d;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  padding: 10px 0;
  background: transparent;
  border-radius: 0;
}



.contact-item .icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-details h6 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.contact-details p {
  margin-bottom: 3px;
  font-weight: 400;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.contact-details small {
  color: #6c757d;
  font-size: 0.8rem;
}

.hours-list .hour-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.85rem;
}

.hours-list .hour-item:last-child {
  border-bottom: none;
}

.hours-list .hour-item span:first-child {
  font-weight: 600;
  color: var(--text-dark);
}

.hours-list .hour-item span:last-child {
  color: var(--primary-color);
  font-weight: 500;
}

.emergency-contact {
  margin-top: 20px;
  padding: 15px;
  background: var(--bg-light);
  border-radius: 8px;
  border-left: 3px solid #dc3545;
  text-align: center;
}

.emergency-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: #dc3545;
  font-weight: 600;
  font-size: 0.95rem;
}

.emergency-header i {
  margin-right: 6px;
  font-size: 1rem;
}

.emergency-contact p {
  color: #6c757d;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.emergency-contact .btn {
  border-radius: 6px;
  font-weight: 500;
  padding: 6px 15px;
  font-size: 0.85rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .contact {
    padding: 60px 0;
  }
  
  .contact-form-wrapper,
  .contact-info {
    padding: 25px;
    margin-bottom: 30px;
  }
  
  .form-header h3 {
    font-size: 1.5rem;
  }
  
  .contact-item {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .contact-item .icon {
    width: 45px;
    height: 45px;
    margin-right: 15px;
  }
  
  .contact-details h6 {
    font-size: 1rem;
  }
  
  .emergency-contact {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .contact-form-wrapper,
  .contact-info {
    padding: 20px;
  }
  
  .form-floating > .form-control,
  .form-floating > .form-select {
    height: 55px;
  }
  
  .contact-submit-btn {
    height: 50px;
    font-size: 1rem;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-item .icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .hours-list .hour-item {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }
}

/* Map Section */
.map-section {
  padding: 80px 0;
  background: var(--light-background);
}

.map-wrapper {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.map-header {
  margin-bottom: 25px;
}

.map-header h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.map-header p {
  color: var(--text-light);
  margin-bottom: 0;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.map-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.map-actions .btn {
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.map-actions .btn:hover {
  transform: translateY(-2px);
}

.location-info {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.location-info-header {
  margin-bottom: 30px;
}

.location-info-header h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.location-info-header p {
  color: var(--text-light);
  margin-bottom: 0;
}

.info-item {
  display: block;
  margin-bottom: 25px;
  padding: 20px;
  background: color-mix(in srgb, var(--primary-color) 3%, transparent);
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.info-item .info-details {
  width: 100%;
}

.info-item .icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.info-item .icon i {
  color: var(--white);
  font-size: 18px;
}

.info-details h6 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.info-details p {
  color: var(--text-dark);
  margin-bottom: 5px;
  font-weight: 500;
}

.info-details small {
  color: var(--text-light);
  font-size: 0.875rem;
}

.compact-info {
  margin-top: 10px;
}

.compact-section {
  margin-bottom: 12px;
  line-height: 1.4;
}

.compact-section:last-child {
  margin-bottom: 0;
}

.compact-section strong {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.compact-section .bi {
  font-size: 1rem;
  vertical-align: middle;
}

.compact-section .ms-4 {
  margin-left: 1.5rem !important;
  display: inline-block;
}

.clinic-info {
  margin-top: 10px;
}

.info-row {
  margin-bottom: 12px;
  line-height: 1.5;
}

.info-row:last-child {
  margin-bottom: 8px;
}

.info-row strong {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  min-width: 80px;
}

.office-hours {
  margin-left: 0;
  margin-top: 5px;
}

.day-hour {
  padding: 3px 0;
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.day-hour:last-child {
  color: var(--primary-color);
  font-weight: 500;
}

.hours-list {
  margin-top: 10px;
}

.hour-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 10%, transparent);
  font-size: 0.9rem;
}

.hour-item:last-child {
  border-bottom: none;
}

.hour-item span:first-child {
  color: var(--text-dark);
  font-weight: 500;
}

.hour-item span:last-child {
  color: var(--primary-color);
  font-weight: 600;
}

.transportation-info {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 5%, transparent), rgba(25, 135, 84, 0.05));
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.transport-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.transport-header i {
  color: var(--primary-color);
  font-size: 18px;
  margin-right: 10px;
}

.transport-header span {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1rem;
}

.transportation-info p {
  color: var(--text-dark);
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.transportation-info small {
  color: var(--text-light);
  font-size: 0.85rem;
}

.emergency-contact {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.05), rgba(255, 193, 7, 0.05));
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(220, 53, 69, 0.1);
  text-align: center;
}

.emergency-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.emergency-header i {
  color: #dc3545;
  font-size: 18px;
  margin-right: 8px;
}

.emergency-header span {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1rem;
}

.emergency-contact p {
  color: var(--text-dark);
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.emergency-contact .btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 8px 16px;
}

/* Map Section Responsive */
@media (max-width: 992px) {
  .map-wrapper,
  .location-info {
    margin-bottom: 30px;
  }
  
  .map-container iframe {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .map-section {
    padding: 60px 0;
  }
  
  .map-wrapper,
  .location-info {
    padding: 25px;
  }
  
  .map-container iframe {
    height: 300px;
  }
  
  .map-actions {
    flex-direction: column;
  }
  
  .map-actions .btn {
    width: 100%;
    text-align: center;
  }
  
  .info-item {
    padding: 15px;
  }
  
  .info-item .icon {
    width: 40px;
    height: 40px;
  }
  
  .info-details h6 {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .map-wrapper,
  .location-info {
    padding: 20px;
  }
  
  .map-container iframe {
    height: 250px;
  }
  
  .info-item {
    flex-direction: column;
    text-align: center;
  }
  
  .info-item .icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .hours-list .hour-item {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }
  
  .transportation-info,
  .emergency-contact {
    padding: 15px;
  }
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer h5 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.25rem;
  line-height: 1.4;
}

.footer-widget {
  height: 100%;
}

.footer-about-text {
  color: rgba(255, 255, 255, 0.76);
  max-width: 520px;
}

/* Special styling for clinic name */
.footer-brand-widget h5 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

.footer-contact-widget h5 {
  margin-bottom: 14px;
}

/* Footer contact items - no hover effects */
.footer .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 9px;
  transition: none;
  line-height: 1.45;
}

.footer .contact-item:hover {
  transform: none;
  background: none;
}

.footer .contact-item i {
  color: var(--accent-color);
  width: 16px;
  margin-top: 4px;
  text-align: center;
  flex: 0 0 16px;
  font-size: 0.95rem;
}

/* Social media links styling */
.footer .social-links {
  margin-top: 20px;
}

.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
  margin: 0 12px 12px 0;
}

.footer .social-links a:hover {
  background: var(--accent-color);
  color: var(--white);
  transform: translateY(-3px);
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.footer-menu li {
  margin-bottom: 8px;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 0;
  padding: 10px 18px;
  width: auto;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: nowrap;
}

.footer-hours {
  max-width: 320px;
}

.footer-hours h6 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
}

.footer-hour-row {
  display: grid;
  grid-template-columns: minmax(82px, auto) 1fr;
  gap: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 5px;
}

.footer-hour-row span:first-child {
  color: rgba(255, 255, 255, 0.68);
}

/* Remove hover effects from footer contact items */
.footer .contact-item a:hover {
  transform: none;
  background: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .about-content {
    padding-right: 0;
    margin-bottom: 30px;
  }
  
  .team-card .team-image {
    height: 250px;
  }
  
  .team-card .card-body {
    padding: 20px 15px;
  }
  
  .team-card h5 {
    font-size: 1.1rem;
  }
  
  .team-card .bio {
    font-size: 13px;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

@media (max-width: 576px) {
  .team-card .team-image {
    height: 200px;
  }
  
  .social-links a {
    width: 30px;
    height: 30px;
    font-size: 12px;
    margin: 0 3px;
  }
}

/* Utility Classes */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-primary { background: var(--primary-color) !important; }
.bg-secondary { background: var(--secondary-color) !important; }

/* ==========================================================================
   Standard pages: About, Services, Team, Contact
   ========================================================================== */

/* Shared building blocks */
.inner-hero {
  position: relative;
  padding: 70px 0 80px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  overflow: hidden;
}

.inner-hero::before,
.inner-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: color-mix(in srgb, var(--white) 8%, transparent);
}

.inner-hero::before {
  width: 420px;
  height: 420px;
  top: -210px;
  right: -120px;
}

.inner-hero::after {
  width: 260px;
  height: 260px;
  bottom: -150px;
  left: -60px;
}

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

.inner-hero__crumbs {
  margin-bottom: 14px;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  color: color-mix(in srgb, var(--white) 75%, transparent);
}

.inner-hero__crumbs a {
  color: var(--white);
}

.inner-hero__crumbs a:hover {
  color: var(--white);
  text-decoration: underline;
}

.inner-hero__crumbs span[aria-hidden] {
  margin: 0 8px;
}

.inner-hero__title {
  margin-bottom: 12px;
  font-size: 3rem;
  font-weight: 700;
}

.inner-hero__lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: color-mix(in srgb, var(--white) 90%, transparent);
}

.inner-section {
  padding: 80px 0;
}

.inner-section--tint {
  background: var(--bg-light);
}

.inner-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary-color);
}

.inner-heading {
  margin-bottom: 20px;
  font-size: 2.1rem;
  color: var(--text-dark);
}

.inner-text p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.inner-title {
  max-width: 620px;
  margin: 0 auto 50px;
  text-align: center;
}

.inner-title--wide {
  max-width: 760px;
}

.inner-title h2 {
  margin-bottom: 12px;
  color: var(--primary-color);
}

.inner-title p {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.inner-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  font-size: 1.4rem;
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.inner-extra__content {
  max-width: 820px;
  margin: 0 auto;
}

.inner-cta {
  padding: 0 0 80px;
}

.inner-section--tint + .inner-cta,
.inner-stats + .inner-cta {
  padding-top: 80px;
}

.inner-cta__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 48px;
  border-radius: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 16px 40px color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.inner-cta__card h2 {
  margin-bottom: 8px;
  font-size: 1.7rem;
}

.inner-cta__card p {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--white) 90%, transparent);
}

.inner-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.inner-cta__actions .btn-light {
  color: var(--primary-color);
}

.inner-cta__actions .btn-outline-light {
  border: 2px solid var(--white);
}

/* About */
.about-story__media {
  position: relative;
  padding: 0 24px 24px 0;
}

.about-story__media::before {
  content: '';
  position: absolute;
  inset: 24px 0 0 24px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--accent-color) 45%, transparent);
}

.about-story__media img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
}

.about-story__badge {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 180px;
  padding: 18px 22px;
  border-radius: 16px;
  color: var(--white);
  background: var(--primary-color);
  box-shadow: var(--shadow-hover);
}

.about-story__badge strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
}

.about-story__badge span {
  font-size: 0.85rem;
  line-height: 1.3;
}

.purpose-card {
  display: flex;
  gap: 24px;
  height: 100%;
  padding: 36px;
  border-radius: 16px;
  background: var(--white);
  border-top: 4px solid var(--primary-color);
  box-shadow: var(--shadow);
}

.purpose-card__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.purpose-card h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  color: var(--text-dark);
}

.purpose-card p:last-child {
  margin-bottom: 0;
}

.value-item {
  height: 100%;
  padding: 10px;
  text-align: center;
}

.value-item h3 {
  margin: 18px 0 8px;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.value-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.inner-stats {
  padding: 56px 0;
  color: var(--white);
  background: var(--primary-color);
}

.inner-stats__item {
  text-align: center;
}

.inner-stats__item strong {
  display: block;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.1;
}

.inner-stats__item span {
  color: color-mix(in srgb, var(--white) 85%, transparent);
}

/* Services */
.highlight-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.highlight-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--bg-light);
}

.highlight-list strong {
  display: block;
  color: var(--text-dark);
}

.highlight-list span {
  font-size: 0.95rem;
  color: var(--text-light);
}

.service-row {
  display: flex;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-row__media {
  display: flex;
  flex: 0 0 150px;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: var(--white);
  background: linear-gradient(160deg, var(--primary-color), var(--secondary-color));
}

.service-row__media:hover {
  color: var(--white);
}

.service-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-row__body {
  display: flex;
  flex-direction: column;
  padding: 26px 28px;
}

.service-row__body h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.service-row__body h3 a {
  color: var(--text-dark);
}

.service-row__body h3 a:hover {
  color: var(--primary-color);
}

.service-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.service-row__meta li {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 8%, transparent);
}

.service-row__meta i {
  margin-right: 6px;
}

.service-row__link {
  margin-top: auto;
  font-weight: 600;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process-step {
  position: relative;
  text-align: center;
  counter-increment: step;
}

.process-step::before {
  content: counter(step);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 0 0 8px var(--white);
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: 50%;
  width: calc(100% + 30px);
  border-top: 2px dashed color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.process-step h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.process-step p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.inner-faq {
  max-width: 820px;
  margin: 0 auto;
}

.inner-faq .accordion-item {
  margin-bottom: 12px;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.inner-faq .accordion-button {
  padding: 20px 24px;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--white);
  box-shadow: none;
}

.inner-faq .accordion-button:not(.collapsed) {
  color: var(--primary-color);
}

.inner-faq .accordion-button:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
}

.inner-faq .accordion-body {
  padding: 0 24px 20px;
}

.inner-faq .accordion-body p:last-child {
  margin-bottom: 0;
}

/* Team */
.profile-card {
  display: flex;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.profile-card__photo {
  flex: 0 0 200px;
  background: var(--bg-light);
}

.profile-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.profile-card__body {
  padding: 28px;
}

.profile-card__body h3 {
  margin-bottom: 4px;
  font-size: 1.35rem;
  color: var(--text-dark);
}

.profile-card__position {
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--secondary-color);
}

.profile-card__social {
  display: flex;
  gap: 8px;
}

.profile-card__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.profile-card__social a:hover {
  color: var(--white);
  background: var(--primary-color);
}

.inner-quote {
  padding: 70px 0;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.inner-quote figure {
  max-width: 780px;
  margin: 0 auto;
}

.inner-quote i {
  margin-bottom: 20px;
  font-size: 2.2rem;
  color: var(--accent-color);
}

.inner-quote blockquote {
  margin-bottom: 24px;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.5;
}

.inner-quote figcaption strong {
  display: block;
}

.inner-quote figcaption span {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--white) 80%, transparent);
}

.join-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 36px 40px;
  border: 2px dashed color-mix(in srgb, var(--primary-color) 30%, transparent);
  border-radius: 20px;
}

.join-card__text {
  flex: 1 1 320px;
}

.join-card h2 {
  margin-bottom: 6px;
  font-size: 1.5rem;
  color: var(--text-dark);
}

.join-card p {
  margin-bottom: 0;
}

/* Contact */
.inner-hero--compact {
  padding: 34px 0 78px;
}

.inner-hero--compact .inner-hero__title {
  margin-bottom: 10px;
  font-size: 2.4rem;
}

.open-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  background: color-mix(in srgb, #000 22%, transparent);
}

.open-status::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f3b0b6;
}

.open-status.is-open::before {
  background: #5fe08a;
  box-shadow: 0 0 0 4px color-mix(in srgb, #5fe08a 30%, transparent);
}

.contact-lead {
  position: relative;
  z-index: 2;
  margin-top: -50px;
}

/* Form on the left; booking, phone, the emergency note and office hours stacked on the right. */
.contact-lead__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  grid-template-rows: auto auto 1fr;
  gap: 20px 24px;
  align-items: start;
}

.contact-lead__grid .inquiry-card {
  grid-column: 1;
  grid-row: 1 / span 3;
}

.contact-lead__grid .hours-card {
  grid-column: 2;
  grid-row: 3;
}

.contact-lead__grid .contact-actions {
  grid-column: 2;
  grid-row: 1;
}

.contact-lead__grid .emergency-strip {
  grid-column: 2;
  grid-row: 2;
}

.contact-actions {
  display: grid;
  gap: 16px;
}

.contact-lead__grid--no-form {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}

.contact-lead__grid--no-form .contact-actions,
.contact-lead__grid--no-form .emergency-strip,
.contact-lead__grid--no-form .hours-card {
  grid-column: 1;
  grid-row: auto;
}

.contact-lead__grid--no-form .contact-actions {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-action {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 16px;
  color: var(--text-light);
  background: var(--white);
  box-shadow: var(--shadow-hover);
  transition: var(--transition);
}

.contact-action:hover {
  color: var(--text-light);
  transform: translateY(-3px);
}

.contact-action > i {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 1.3rem;
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.contact-action span {
  font-size: 0.9rem;
  line-height: 1.4;
}

.contact-action strong {
  display: block;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.contact-action--primary,
.contact-action--primary:hover {
  color: color-mix(in srgb, var(--white) 88%, transparent);
  background: var(--primary-color);
}

.contact-action--primary > i {
  color: var(--primary-color);
  background: var(--white);
}

.contact-action--primary strong {
  color: var(--white);
}

.emergency-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: color-mix(in srgb, var(--danger-color) 9%, var(--white));
  border: 1px solid color-mix(in srgb, var(--danger-color) 30%, transparent);
}

.emergency-strip:hover {
  color: var(--text-dark);
}

.emergency-strip > i,
.emergency-strip__phone {
  color: var(--danger-color);
}

.emergency-strip > span:first-of-type {
  flex: 1 1 200px;
}

.emergency-strip strong {
  margin-right: 6px;
}

.emergency-strip__phone {
  margin-left: auto;
  font-weight: 700;
  white-space: nowrap;
}

.inquiry-card {
  padding: 36px 40px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-hover);
  scroll-margin-top: 100px;
}

.inquiry-panel > h2,
.inquiry-success h2 {
  margin-bottom: 8px;
  font-size: 1.7rem;
  color: var(--primary-color);
}

.inquiry-card__intro {
  margin-bottom: 26px;
}

.inquiry-form .form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.inquiry-form .form-control,
.inquiry-form .form-select {
  padding: 12px 16px;
  border-radius: 10px;
  border-color: color-mix(in srgb, var(--text-dark) 18%, transparent);
}

.inquiry-form .form-control:focus,
.inquiry-form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary-color) 15%, transparent);
}

.inquiry-form .form-control.is-invalid {
  border-color: var(--danger-color);
}

.inquiry-form .invalid-feedback:not(:empty) {
  display: block;
  font-size: 0.85rem;
}

.inquiry-form__reach {
  margin: 0;
  padding: 18px 20px 20px;
  border-radius: 12px;
  background: var(--bg-light);
}

.inquiry-form__reach legend {
  float: left;
  width: 100%;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.inquiry-form__reach legend small {
  margin-left: 6px;
  font-weight: 400;
  color: var(--text-light);
}

.inquiry-form__reach .row {
  clear: both;
}

.inquiry-form__reach .form-label {
  font-weight: 500;
}

.inquiry-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 24px;
}

.inquiry-form__footer p {
  flex: 1 1 240px;
  margin-bottom: 0;
  font-size: 0.85rem;
}

.inquiry-form__footer strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.inquiry-form__notice {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 500;
  color: #a12431;
  background: color-mix(in srgb, var(--danger-color) 10%, transparent);
}

.inquiry-success {
  padding: 20px 0;
  text-align: center;
  outline: none;
}

.inquiry-success > i {
  margin-bottom: 16px;
  font-size: 3rem;
  color: var(--success-color);
}

.inquiry-success p {
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.visit-card,
.hours-card {
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--text-dark) 10%, transparent);
}

.visit-card {
  display: grid;
  grid-template-columns: 3fr 2fr;
}

.visit-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

.visit-card__body {
  padding: 24px;
}

.visit-card__body img {
  display: block;
  width: 100%;
  height: 170px;
  margin-bottom: 20px;
  object-fit: cover;
  border-radius: 12px;
}

.visit-card__address {
  font-weight: 600;
  color: var(--text-dark);
}

.visit-card h3 {
  margin-bottom: 6px;
  font-size: 1rem;
  color: var(--text-dark);
}

.visit-card__body p {
  font-size: 0.95rem;
}

.hours-card {
  padding: 24px;
}

.hours-card h2 {
  margin-bottom: 14px;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.hours-table {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hours-table li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--text-dark);
}

.hours-table li + li {
  border-top: 1px solid color-mix(in srgb, var(--text-dark) 8%, transparent);
}

.hours-table li span:last-child {
  text-align: right;
}

.hours-table .is-closed span:last-child {
  color: var(--text-light);
}

.hours-table .is-today {
  font-weight: 600;
  border-top-color: transparent;
  background: color-mix(in srgb, var(--primary-color) 8%, transparent);
}

.hours-table .is-today + li {
  border-top-color: transparent;
}

.hours-table em {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--primary-color);
}

.hours-card__email {
  margin: 18px 0 0;
  padding: 16px 12px 0;
  border-top: 1px solid color-mix(in srgb, var(--text-dark) 8%, transparent);
}

.contact-sticky {
  display: none;
}

@media (max-width: 991.98px) {
  .contact-lead__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .contact-lead__grid .inquiry-card,
  .contact-lead__grid .contact-actions,
  .contact-lead__grid .emergency-strip,
  .contact-lead__grid .hours-card {
    grid-column: 1;
    grid-row: auto;
  }

  /* Someone in pain should not have to scroll for the number. */
  .contact-lead__grid .emergency-strip {
    order: -1;
  }
}

@media (max-width: 991.98px) {
  .visit-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .inner-hero {
    padding: 50px 0 60px;
  }

  .inner-hero__title {
    font-size: 2.2rem;
  }

  .inner-section {
    padding: 56px 0;
  }

  .inner-heading {
    font-size: 1.7rem;
  }

  .inner-cta__card {
    padding: 32px 24px;
  }

  .inquiry-card {
    padding: 30px 22px;
  }


  .contact-sticky {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  }

  .contact-sticky .btn {
    padding: 12px 10px;
  }

  body:has(.contact-sticky) {
    padding-bottom: 72px;
  }

  .purpose-card {
    flex-direction: column;
    padding: 28px;
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .inner-quote blockquote {
    font-size: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .service-row,
  .profile-card {
    flex-direction: column;
  }

  .service-row__media {
    flex-basis: 110px;
  }

  .profile-card__photo {
    flex-basis: auto;
  }

  .profile-card__photo img {
    height: 260px;
    min-height: 0;
  }
}
