/*
 * Priority Pediatrics — Static Site Override CSS (site.css)
 * This file supplements the original styles.css.
 * It handles: hero banner, sticky nav, mobile fixes, and minor cleanup.
 * Last updated: 2026-05-08
 */

/* ===================================================
   HERO BANNER (static full-width)
   =================================================== */

#hero-banner {
  position: relative;
  width: 100%;
  /* The original hero artwork is a wide banner.
     Use an aspect ratio instead of a fixed height so the image does not zoom/crop badly. */
  height: auto;
  min-height: 300px;
  aspect-ratio: 1920 / 650;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #f0f3f3;
  overflow: hidden;
}

/* Light overlay for text legibility without washing out the banner artwork */
#hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 48, 64, 0.18),
    rgba(0, 48, 64, 0.28)
  );
  z-index: 1;
  pointer-events: none;
}

/* Text + CTA centred over the banner */
.hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  color: #ffffff;
}

.hero-inner h2 {
  font-family: 'Open Sans', 'Lato', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px 0;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

.hero-inner p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  margin: 0 0 28px 0;
  max-width: 600px;
}

.hero-btn {
  display: inline-block;
  background: #4DB6AC;
  color: #ffffff !important;
  padding: 14px 32px;
  border-radius: 3px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none !important;
  letter-spacing: 0.5px;
  transition: background 0.25s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}
.hero-btn:hover { background: #26A69A; color: #ffffff !important; }

@media (max-width: 768px) {
  #hero-banner {
    min-height: 260px;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center top;
  }
  .hero-inner { padding: 28px 18px; }
  .hero-inner h2 { font-size: 1.65rem; }
  .hero-inner p  { font-size: 0.95rem; }
  .hero-btn { padding: 12px 22px; }
}

/* ===================================================
   STICKY NAVIGATION
   =================================================== */

#menu-container.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ===================================================
   HEADER PHONE LINK
   =================================================== */

#header-address a {
  color: inherit;
  text-decoration: none;
}
#header-address a:hover {
  color: #4DB6AC;
}

/* ===================================================
   MOBILE NAVIGATION
   =================================================== */

@media (max-width: 992px) {
  .menu-main-menu {
    display: none;
    width: 100%;
    background: #2c2c2c;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .menu-main-menu.menu-open {
    display: block;
  }
  .menu-main-menu li {
    display: block;
    border-bottom: 1px solid #3a3a3a;
  }
  .menu-main-menu li a {
    display: block;
    padding: 12px 20px;
    color: #ffffff !important;
    font-size: 0.95rem;
  }
  .menu-main-menu li a:hover {
    background: #4DB6AC;
    color: #ffffff !important;
  }
  #dt-menu-toggle {
    display: block !important;
    cursor: pointer;
    padding: 12px 20px;
    color: #ffffff;
    font-weight: 700;
    user-select: none;
  }
}

/* ===================================================
   CALLOUT BOXES (Home page)
   =================================================== */

#callouts .dt-sc-ico-content.type3.blocks {
  text-align: center;
  padding: 30px 20px;
}

/* ===================================================
   FOR PARENTS — INFO CARDS
   =================================================== */

.activity.box {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.activity.box h4 {
  margin-top: 0;
  color: #2b5597;
  font-size: 1.05rem;
}

.activity.box img {
  width: 100%;
  height: auto;
  margin: 12px 0;
  border-radius: 3px;
  display: block;
}

/* ===================================================
   DIRECTIONS PAGE
   =================================================== */

.map.embed-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 20px;
}

.map.embed-responsive iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.directions-cta {
  display: inline-block;
  background: #2b5597;
  color: #ffffff !important;
  padding: 12px 24px;
  border-radius: 3px;
  text-decoration: none !important;
  font-weight: 700;
  margin-top: 12px;
  transition: background 0.2s ease;
}
.directions-cta:hover {
  background: #1a3f7a;
}

/* ===================================================
   DOCTOR BIOS (About Us)
   =================================================== */

.author-details {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #eee;
}
.author-details:last-child {
  border-bottom: none;
}

/* ===================================================
   SCROLL-TO-TOP BUTTON
   =================================================== */

#go-to-top {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #4DB6AC;
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 1.6rem;
  font-weight: bold;
  text-decoration: none;
  z-index: 9998;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: background 0.2s ease;
}
#go-to-top:hover {
  background: #26A69A;
}

/* ===================================================
   FOOTER SOCIAL EMBEDS
   =================================================== */

.footer-social-embed {
  max-width: 100%;
  overflow: hidden;
}
.footer-social-embed iframe {
  max-width: 100% !important;
  min-width: 0 !important;
}

/* ===================================================
   UTILITY / GENERAL FIXES
   =================================================== */

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

/* Service grid items */
.service-list {
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 1px dotted #ddd;
  margin: 0;
  color: #444;
}

/* Phone number links - make them inherit color in header */
a[href^="tel:"] {
  text-decoration: none;
}

/* Fix footer column widths on mid-size screens */
@media (min-width: 768px) and (max-width: 1240px) {
  .footer-widgets-wrapper .dt-sc-one-fourth {
    width: 47%;
    margin-left: 2%;
  }
  .footer-widgets-wrapper .column.first {
    margin-left: 0;
  }
}

/* ===================================================
   ABOUT US — PHOTO SLIDER replaced with static layout
   =================================================== */

.about-static-photos {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.about-static-photos img {
  flex: 1;
  min-width: 140px;
  max-width: 48%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}
@media (max-width: 600px) {
  .about-static-photos img {
    max-width: 100%;
  }
}

/* ===================================================
   TESTIMONIAL — let styles.css dt-sc-testimonial rules
   do the heavy lifting (dark blue bg, white text, big
   decorative quotes). We only add a small reset for
   the author name so it stays readable on dark bg.
   =================================================== */

/* The blockquote background (#2b5597) and white text
   are already set in styles.css via:
   .dt-sc-testimonial blockquote { background:#2b5597; color:#FFFFFF; … }
   No override needed — just ensure author text is white too. */
.dt-sc-testimonial .author-meta p {
  color: #ffffff;
}
.dt-sc-testimonial .author-meta span {
  color: rgba(255,255,255,0.75);
}
