/* Z Pediatric Dentistry v2 — Custom Styles */

/* =====================
   Root Variables
   ===================== */
:root {
  --primary:       rgb(50, 145, 165); /*#3291A5;*/
  --primary-dark:  #1E5188; /* #226e80; */
  --primary-light: #e7f4f7;
  --accent:        rgb(50, 145, 165); /* #F5A624; */
  --accent-dark:   rgb(144, 203, 217); /* #226e80; */ /* #d48c10; */
  --text:          #2c3e50;
  --text-muted:    #6c757d;
  --bg-light:      #f0f8fa;
  --white:         #ffffff;
  --radius:        12px;
  --shadow:        0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover:  0 8px 30px rgba(50, 145, 165, 0.2);
  --transition:    all 0.3s ease;
}

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

body {
  font-family: 'Nunito', 'Open Sans', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background-color: var(--white);
  background-image: url(/img/background-large.jpg);
  margin: 0;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* =====================
   Typography
   ===================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.section-title .text-primary { color: var(--primary) !important; }
.section-divider {
  width: 50px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 0.75rem auto 1.5rem;
}
.section-divider.left { margin-left: 0; }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* =====================
   Buttons
   ===================== */
.btn-zpd {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-zpd-primary {
  background: var(--primary);
  color: white;
}
.btn-zpd-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(50, 145, 165, 0.4);
}
.btn-zpd-accent {
  background: var(--accent);
  color: white;
}
.btn-zpd-accent:hover {
  background: var(--accent-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 166, 36, 0.35);
}
.btn-zpd-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 11px 28px;
}
.btn-zpd-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}
.btn-zpd-white {
  background: white;
  color: var(--primary);
}
.btn-zpd-white:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* =====================
   Top Info Bar
   ===================== */
.top-bar {
  /*background: var(--primary-dark);*/
  background-color: rgba(30, 81, 136, .90);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 0;
  font-size: 0.85rem;
}
.top-bar a { color: rgba(255, 255, 255, 0.9); }
.top-bar a:hover { color: white; }
.top-bar .top-bar-divider { margin: 0 10px; opacity: 0.4; }
.top-bar i { margin-right: 5px; }

/* =====================
   Navbar
   ===================== */
.zpd-navbar {
  /*background: white;*/
  /*background: var(--primary-dark);*/
  background-color: rgba(30, 81, 136, .90);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.zpd-navbar .navbar-brand img {
  height: 38px;
  transition: var(--transition);
}
.zpd-navbar .nav-link {
  font-weight: 700;
  /*color: var(--text) !important;*/
  /*color: var(--white) !important;*/
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 1.2rem 0.9rem !important;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  position: relative;
}
.zpd-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
  transition: width 0.25s ease;
}
.zpd-navbar .nav-link:hover::after,
.zpd-navbar .nav-link.active::after {
  width: 60%;
}
.zpd-navbar .nav-link:hover,
.zpd-navbar .nav-link.active {
  color: var(--white) !important;
}
.zpd-navbar .dropdown-menu {
  border: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  padding: 0.5rem;
  min-width: 220px;
}
.zpd-navbar .dropdown-item {
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  transition: var(--transition);
}
.zpd-navbar .dropdown-item:hover,
.zpd-navbar .dropdown-item.active {
  background: var(--primary-light);
  color: var(--primary);
}
.zpd-navbar .btn-nav-appt {
  background: var(--accent) !important;
  color: white !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 50px !important;
  margin: 0.8rem 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
}
.zpd-navbar .btn-nav-appt::after { display: none; }
.zpd-navbar .btn-nav-appt:hover {
  background: var(--accent-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(50, 145, 165, 0.4);
}
.navbar-toggler { border: none; padding: 4px 8px; }
.navbar-toggler:focus { box-shadow: none; }

/* Desktop hover dropdowns */
@media (min-width: 992px) {
  .zpd-navbar .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: dropdownFadeIn 0.15s ease;
  }
}
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================
   Hero (Homepage)
   ===================== */
.hero {
  background-image: url("/img/office_header5.jpg") ;
  background-position: center;
  height: 100%;
  color: white;
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.hero h1 .highlight {
  color: var(--accent);
}
.hero .hero-sub {
  font-size: 1.2rem;
  opacity: 0.92;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.hero-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-dark);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 2px;
}

/* =====================
   Page Header (Subpages)
   ===================== */
.page-header {
  /*background: linear-gradient(135deg, #2a7d91 0%, var(--primary) 100%);*/
  background: var(--text);
  color: white;
  padding: 55px 0 45px;
}
.page-header h1 {
  color: white;
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}
.page-header .breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}
.page-header .breadcrumb-item { color: rgba(255, 255, 255, 0.75); }
.page-header .breadcrumb-item a { color: rgba(255, 255, 255, 0.85); }
.page-header .breadcrumb-item a:hover { color: white; }
.page-header .breadcrumb-item.active { color: white; }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.5); }

/* =====================
   Sections
   ===================== */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-light { background: var(--bg-light); }
/*.section-white { background: white; }*/
.section-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}
.section-primary .section-title { color: white; }
.section-primary .section-subtitle { color: rgba(255, 255, 255, 0.85); }

/* =====================
   Feature Cards (Why Choose Us)
   ===================== */
.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  /*height: 100%;*/
  text-align: center;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.feature-icon {
  width: 72px;
  height: 72px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
  color: var(--primary);
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.feature-card p { color: var(--text-muted); font-size: 0.94rem; margin: 0; }

/* =====================
   Service Cards
   ===================== */
.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border-bottom: 3px solid transparent;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--primary);
}
.service-card .svc-icon {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.service-card h3 a { color: var(--text); }
.service-card h3 a:hover { color: var(--primary); }
.service-card p { font-size: 0.9rem; color: var(--text-muted); flex: 1; margin-bottom: 1rem; }
.service-card .read-more {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  margin-top: auto;
}
.service-card .read-more:hover { color: var(--primary-dark); }
.service-card .read-more::after { content: ' →'; }

/* =====================
   Doctor / Team
   ===================== */
.doctor-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--primary-light);
  box-shadow: 0 6px 25px rgba(50, 145, 165, 0.2);
}
.credential-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.credential-badge {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* =====================
   Testimonials
   ===================== */
.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  height: 100%;
  position: relative;
}
.testimonial-quote {
  position: absolute;
  top: 12px;
  left: 18px;
  font-size: 5rem;
  color: var(--primary-light);
  font-family: Georgia, serif;
  line-height: 1;
  font-weight: 900;
}
.testimonial-stars { color: var(--accent); margin-bottom: 0.75rem; margin-left: 2rem; font-size: 0.9rem; }
.testimonial-text {
  font-style: italic;
  color: var(--text);
  font-size: 0.94rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
}
.testimonial-author { font-weight: 700; font-size: 0.9rem; }
.testimonial-meta { font-size: 0.78rem; color: var(--text-muted); }

/* =====================
   CTA Banner
   ===================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 70px 0;
  text-align: center;
}
.cta-banner h2 { color: white; font-size: 2.1rem; margin-bottom: 0.75rem; }
.cta-banner p { font-size: 1.05rem; opacity: 0.9; margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* =====================
   Insurance
   ===================== */
.insurance-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}
.insurance-logo-img {
  height: 48px;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: 0.85;
  transition: var(--transition);
}
.insurance-logo-img:hover { filter: none; opacity: 1; }

/* =====================
   Hours Table
   ===================== */
.hours-table { width: 100%; max-width: 340px; border-collapse: collapse; }
.hours-table tr:nth-child(even) { background: var(--bg-light); }
.hours-table td { padding: 10px 16px; font-size: 0.95rem; }
.hours-table td:first-child { font-weight: 700; }
.hours-table .closed { color: var(--text-muted); }

/* =====================
   Contact
   ===================== */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 1.2rem;
}
.contact-info-item h5 { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.2rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.contact-info-item p { margin: 0; font-size: 0.95rem; }

/* =====================
   FAQ Accordion
   ===================== */
.faq-item {
  border: 1px solid #dde8eb;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-btn {
  width: 100%;
  text-align: left;
  background: white;
  border: none;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  gap: 0.5rem;
}
.faq-btn:hover { background: var(--primary-light); color: var(--primary); }
.faq-btn[aria-expanded="true"] { background: var(--primary); color: white; }
.faq-btn .faq-icon { font-size: 1.1rem; flex-shrink: 0; transition: var(--transition); }
.faq-btn[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-body { background: #f7fbfc; }
.faq-body-inner { padding: 1.1rem 1.25rem; font-size: 0.94rem; color: var(--text-muted); }

/* =====================
   Highlight Box
   ===================== */
.highlight-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
}
.highlight-box p { margin: 0; }

/* =====================
   Info Box (warning/note)
   ===================== */
.info-box {
  background: #fff8e7;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
}
.info-box p { margin: 0; }

/* =====================
   Steps / Process
   ===================== */
.steps-list { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps-list li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.steps-list li::before {
  content: counter(step);
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.steps-list li strong { display: block; margin-bottom: 0.2rem; }

/* =====================
   Map
   ===================== */
.map-container iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: var(--radius);
  display: block;
}

/* =====================
   Footer
   ===================== */
.zpd-footer {
  background: #182830;
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
}
.zpd-footer h5 {
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.1rem;
}
.zpd-footer a {
  color: rgba(255, 255, 255, 0.65);
  display: block;
  padding: 3px 0;
  font-size: 0.875rem;
  transition: var(--transition);
}
.zpd-footer a:hover { color: white; padding-left: 4px; }
.zpd-footer .footer-logo { height: 48px; margin-bottom: 1rem; filter: brightness(0) invert(1) opacity(0.9); }
.zpd-footer .footer-tagline { font-size: 0.875rem; margin-bottom: 1.25rem; }
.footer-social-links { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social-links a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  padding: 0;
  transition: var(--transition);
}
.footer-social-links a:hover { background: var(--primary); color: white; padding-left: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.5); display: inline; padding: 0; }
.footer-bottom a:hover { color: white; padding-left: 0; }

/* =====================
   Content Pages
   ===================== */
.content-body h2 {
  color: var(--primary);
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.content-body h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}
.content-body ul { padding-left: 1.25rem; }
.content-body ul li { margin-bottom: 0.4rem; }
.content-body p { margin-bottom: 1.1rem; }

.benefit-list { list-style: none; padding: 0; margin: 0; }
.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #eef2f4;
  font-size: 0.94rem;
}
.benefit-list li:last-child { border-bottom: none; }
.benefit-list li i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }

/* =====================
   Responsive
   ===================== */
@media (max-width: 991.98px) {
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 60px 0; }
  .zpd-navbar .nav-link { padding: 0.7rem 1rem !important; }
  .zpd-navbar .nav-link::after { display: none; }
  .zpd-navbar .btn-nav-appt { margin: 0.5rem 0; }
}

@media (max-width: 767.98px) {
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 1.9rem; }
  .section-title { font-size: 1.65rem; }
  .top-bar .top-bar-address { display: none; }
  .cta-banner h2 { font-size: 1.7rem; }
  .page-header h1 { font-size: 1.85rem; }
  .hero-stats { gap: 1.25rem; }
}

@media (max-width: 575.98px) {
  .hero h1 { font-size: 1.65rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn-zpd { text-align: center; }
}
