/* ==========================================================================
   Template Name: BrightCare — Dental & Medical Clinic HTML Website Template
   Description: Modern, clean, responsive HTML5 template for dental clinics, doctors & medical practices.
   Version: 1.0.0
   ========================================================================== */

/* ---------- CSS Variables / Design System ---------- */
:root {
  --brand-primary: #0e8a7d;
  --brand-primary-dark: #0a655c;
  --brand-accent: #ff8a5c;
  --brand-light: #eaf7f5;
  --brand-dark: #123534;
  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --transition-base: all 0.25s ease-in-out;
  --shadow-sm: 0 4px 15px rgba(18, 53, 52, 0.05);
  --shadow-md: 0 10px 30px rgba(18, 53, 52, 0.08);
  --shadow-lg: 0 20px 40px rgba(18, 53, 52, 0.12);
}

/* ---------- Global Reset & Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: #33413f;
  background-color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.brand-font {
  font-family: var(--font-heading);
  color: var(--brand-dark);
  font-weight: 700;
}

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

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

/* ---------- Accessibility & Focus States ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--brand-primary);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: #ffffff;
  outline: 3px solid var(--brand-accent);
}

:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 2px;
}

/* ---------- Utility Classes ---------- */
.text-brand {
  color: var(--brand-primary) !important;
}

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

.bg-brand-light {
  background-color: var(--brand-light) !important;
}

.bg-brand-dark {
  background-color: var(--brand-dark) !important;
}

.btn-brand {
  background-color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-brand:hover,
.btn-brand:focus-visible {
  background-color: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 138, 125, 0.3);
}

.btn-outline-brand {
  border: 2px solid #ffffff;
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus-visible {
  background-color: #ffffff;
  color: var(--brand-primary) !important;
  transform: translateY(-2px);
}

.section-tag {
  display: inline-block;
  background-color: var(--brand-light);
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-py {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.rounded-img {
  border-radius: 18px;
}

/* ---------- Top Bar & Header ---------- */
.top-bar {
  background-color: var(--brand-dark);
  color: #d9efec;
  font-size: 0.875rem;
}

.top-bar a {
  color: #d9efec;
}

.top-bar a:hover {
  color: #ffffff;
}

.navbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: #ffffff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition-base);
}

.navbar-brand {
  color: var(--brand-dark);
}

.navbar-brand span {
  color: var(--brand-primary);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--brand-dark);
  margin: 0 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: var(--transition-base);
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--brand-primary);
  background-color: rgba(14, 138, 125, 0.05);
}

/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-primary-dark) 100%);
  color: #ffffff;
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  padding: 2.5rem 0;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.2;
}

.hero h1,
.hero h2,
.hero h3,
.hero h4 {
  color: #ffffff !important;
}

.hero-img-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.hero img {
  max-height: 480px;
  width: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  display: block;
}

.badge-float {
  position: absolute;
  bottom: -1rem;
  right: -0.75rem;
  background: #ffffff;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.badge-float h4 {
  color: var(--brand-dark) !important;
}

/* ---------- Cards ---------- */
.service-card {
  border: none;
  border-radius: 18px;
  padding: 2.25rem 1.75rem;
  height: 100%;
  background: #ffffff;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}

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

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background-color: var(--brand-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.team-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #ffffff;
  height: 100%;
  transition: var(--transition-base);
}

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

.team-card img {
  height: 280px;
  object-fit: cover;
  width: 100%;
}

.team-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.4rem;
  transition: var(--transition-base);
}

.team-social a:hover {
  background: var(--brand-primary);
  color: #ffffff;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.testimonial-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--brand-primary) 0%, #0a655c 100%);
  border-radius: 24px;
  color: #ffffff;
  padding: 3.5rem 2rem;
}

.cta-banner h2 {
  color: #ffffff;
}

/* ---------- Page Header (Inner Pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-primary-dark) 100%);
  color: #ffffff;
  padding: 4.5rem 0 3.5rem;
}

.page-header h1 {
  color: #ffffff;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  color: #cfeee9;
}

.page-header .breadcrumb-item.active {
  color: #ffffff;
}

/* ---------- Contact Section ---------- */
.contact-info-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition-base);
  border: 1px solid rgba(14, 138, 125, 0.1);
}

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

.form-control,
.form-select {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  border: 1px solid #dbe7e5;
  font-size: 0.95rem;
  transition: var(--transition-base);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.25rem rgba(14, 138, 125, 0.15);
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.office-hours-card {
  border: 1px solid rgba(14, 138, 125, 0.1);
  border-radius: 18px;
  padding: 1.75rem;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.form-feedback-alert {
  display: none;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

/* ---------- Footer ---------- */
footer {
  background-color: var(--brand-dark);
  color: #b9d6d2;
}

footer h5,
footer h6 {
  color: #ffffff;
}

footer a {
  color: #b9d6d2;
}

footer a:hover {
  color: #ffffff;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  transition: var(--transition-base);
}

.footer-social a:hover {
  background: var(--brand-primary);
}

/* ---------- Back To Top Button ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--brand-primary-dark);
  transform: translateY(-3px);
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 991.98px) {
  .section-py {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .page-header {
    padding: 3.5rem 0 2.5rem;
  }

  .map-wrap iframe {
    height: 280px;
  }

  .cta-banner {
    padding: 2.5rem 1.5rem;
  }

  .navbar-collapse {
    background: #ffffff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-top: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .badge-float {
    position: static;
    margin-top: 1.5rem;
  }

  .hero {
    min-height: auto;
    padding: 3.5rem 0;
    text-align: center;
  }

  .cta-banner {
    padding: 2.25rem 1.25rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .contact-info-card {
    padding: 1.5rem 1rem;
  }

  .office-hours-card {
    padding: 1.25rem;
  }

  .btn-brand,
  .btn-outline-brand {
    padding: 0.65rem 1.5rem;
    width: 100%;
  }
}
