/* BeeWell Pediatrics: rebuild of the GeneratePress + WPBakery site. Values measured from the live site at 1366px. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Lato", sans-serif; font-weight: 700; font-size: 16px; line-height: 1.8;
  color: #303030;
  background: #fff url("../img/bees-bg.webp") top center / 100% auto fixed no-repeat;
}
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: #00597f; text-decoration: none; transition: color .2s, background-color .2s; }
a:hover, a:focus { color: #1abc9c; }
p { margin: 0 0 1em; }
figure { margin: 0; }
ul { margin: 0 0 1.5em 3em; padding: 0; }
h1, h2, h3 { margin: 0 0 20px; }
h1 { font-family: "Slabo 27px", serif; font-weight: 700; font-size: 60px; line-height: 1.1; color: #f9840e; }
h2 { font-family: "Slabo 27px", serif; font-weight: 700; font-size: 21px; line-height: 1.4; color: #ed783d; }
h3 { font-weight: 500; font-size: 20px; line-height: 1.5; color: #c10000; margin: 0; }
strong { font-weight: 700; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.wrap { max-width: 1390px; margin-left: auto; margin-right: auto; }

/* Buttons */
.button {
  display: inline-block; font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 16px; line-height: 28.8px;
  text-transform: uppercase; padding: 10px 20px; color: #fff;
}
.button.ghost, .button.ghost:visited { background: #f9840e; border: 2px solid #fff; color: #fff; }
.button.ghost:hover, .button.ghost:focus { background: #fff; color: #222; border-color: transparent; }
.btn-row { margin: 0 0 1em; }
.call-pill {
  display: inline-block; font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 13px; line-height: 23.4px;
  text-transform: uppercase; padding: 10px 20px; border-radius: 9999px; color: #fff;
  background: linear-gradient(135deg, #fcb900 0%, #ff6900 100%);
}
.call-pill:hover, .call-pill:focus { color: #fff; filter: brightness(1.06); }
.social-sq {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 42px;
  font-size: 20px; color: #fff; background: #352413; border-radius: 2px;
}
.social-sq:hover, .social-sq:focus { color: #fff; opacity: .8; }
.social-yellow { background: #fee46d; }

/* Top bar, header, nav */
.top-bar-in { display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 10px 0; min-height: 60px; }
.site-header { padding: 20px; text-align: center; }
.site-logo { display: inline-block; }
.site-logo img { width: 350px; }
.main-nav { background: #ed783e; text-align: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.main-nav a {
  display: block; font-family: "Slabo 27px", serif; font-weight: 600; font-size: 25px; line-height: 53px;
  padding: 0 25px; color: #fff;
}
.main-nav li:not(.current) > a:hover, .main-nav li:not(.current) > a:focus { background: #ea500e; color: #fff; }
.menu-toggle {
  display: none; width: 100%; background: none; border: 0; cursor: pointer; color: #fff;
  font-family: "Slabo 27px", serif; font-size: 20px; line-height: 56px; padding: 0 20px;
}
.menu-toggle i { margin-right: 6px; font-size: 18px; }

/* Home hero */
.page-hero {
  background: rgba(224, 53, 53, .2) url("../img/hero-kids.jpg") 0 0 / cover no-repeat;
  color: #fff; padding: 180px 40px 220px;
}
.page-hero h1 { color: #fff; margin-bottom: 20px; }
.page-hero h2 { color: #fff; margin-bottom: 20px; text-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.page-hero .btn-row { margin: 0 0 28px; }

/* Page container */
.site { max-width: 1430px; margin: 0 auto; background: rgba(255, 255, 255, .93); color: #140000; }
.site-content { padding: 40px 20px 20px; display: flow-root; }
.site-content a:not(.button):not(.btn3) { color: #c10000; }
.site-content a:not(.button):not(.btn3):hover { color: #008c8c; }
.entry-title { font-weight: 400; color: #303030; margin: 0; }
.entry-header + .entry-content { margin-top: 2em; }
blockquote {
  margin: 0 0 1.5em; padding: 20px; border-left: 5px solid rgba(0, 0, 0, .05);
  font-style: italic; font-size: 19.2px; line-height: 1.8;
}
blockquote p:last-child { margin-bottom: 0; }

/* WPBakery-style grid: 15px gutters, 35px between elements */
.row { display: flex; margin: 0 -15px; }
.col { padding: 0 15px; min-width: 0; }
.col-2 { width: 16.6667%; } .col-3 { width: 25%; } .col-4 { width: 33.3333%; } .col-6 { width: 50%; }
.col-8 { width: 66.6667%; } .col-12 { width: 100%; }
.col > :last-child { margin-bottom: 35px; }
.col-fill { padding-top: 35px; }
.col-yellow { background: #f7f096; padding: 35px 15px 0; }
.col-yellow > .col-inner-pad { padding: 0 0 40px; margin-bottom: 20px; display: flow-root; }
.col.col-yellow > :last-child { margin-bottom: 20px; }
.col-yellow > .col-inner-pad > :last-child { margin-bottom: 0; }
.el { margin-bottom: 35px; }
.el > :last-child { margin-bottom: 0; }
.center { text-align: center; }
.small { font-size: 13px; }
.single-image { margin-bottom: 35px; text-align: center; }
.single-image img { border-radius: 4px; }
.single-image a { display: inline-block; }
.staff img { width: 100%; aspect-ratio: 400 / 450; object-fit: cover; }
.staff-400 img { width: 400px; max-width: 100%; }
.col > .single-image.staff, .col > .single-image:has(+ h3) { margin-bottom: 35px; }
.alignleft { float: left; margin: 0 1.5em 0 0; }
.alignright { float: right; margin: 0 0 0 1.5em; }
.col-6:has(.alignright), .col-12:has(.alignleft) { display: flow-root; }
.separator { border: 0; border-top: 1px solid #ebebeb; margin: 0 0 35px; }
.image-grid { list-style: none; margin: 0 0 35px; display: flex; flex-wrap: wrap; }
.image-grid li { margin: 0 1px 1px 0; width: 300px; max-width: calc(50% - 1px); }
.image-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Slider (was a Nivo slider) */
.slider { margin-bottom: 35px; }
.slides { position: relative; aspect-ratio: 640 / 428; background: #fff; box-shadow: 0 1px 5px #4a4a4a; overflow: hidden; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.slide.is-active { opacity: 1; }
.slider-dots { text-align: center; padding: 10px 0 3px; line-height: 1; }
.slider-dots button {
  width: 11px; height: 11px; margin: 0 4px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: #d0d0d0; transition: background .2s;
}
.slider-dots button[aria-selected="true"], .slider-dots button:hover { background: #303030; }

/* FAQ buttons */
.link-stack .button { margin-bottom: 0; }
.btn3-row { margin-bottom: 35px; }
.btn3 {
  display: inline-block; margin: 0 4px 22px 0; padding: 14px 20px; font-size: 14px; line-height: 1.2;
  color: #fff; background: #f90; border: 1px solid rgba(0, 0, 0, .1);
}
.btn3:hover, .btn3:focus { color: #fff; background: #f5a623; }

/* Contact gallery */
.map { display: block; width: 100%; max-width: 600px; height: 450px; border: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); align-items: start; margin: 0 0 35px; }
.gallery figure { padding: 5px; }
.gallery img { width: 100%; }

/* Footer */
.footer-widgets { background: rgba(255, 255, 255, .95); padding: 80px 40px; }
.footer-grid { display: flex; }
.fw { width: 33.3333%; padding: 0 20px; }
.fw > * { margin-bottom: 30px; }
.fw > :last-child { margin-bottom: 0; }
.fw h2 { color: #ea642e; }
.fw-1 { padding-top: 29px; }
.fw-1 .fw-logo { display: block; margin: 0 auto 30px; }
.call-pill-foot { border-radius: 24px; color: #ffef0f; }
.call-pill-foot:hover, .call-pill-foot:focus { color: #fff; }
.fw .map { max-width: none; }
.fw-contact { font-size: 13px; color: #282828; }
.fw-contact a { color: #282828; }
.fw-contact a:hover { color: #ea642e; }
.fb-page { display: block; width: 340px; max-width: 100%; height: 350px; border: 0; overflow: hidden; }
.site-info { background: #fff; font-size: 13px; line-height: 1.8; color: #1abc9c; }
.site-info-in { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; }
.footer-social { display: flex; gap: 8px; }
.copyright-bar { text-align: right; }
.copyright-bar a { color: #8a8a8a; display: inline-block; line-height: 1.3; }
.copyright-bar small { font-size: 9.75px; }
/* pa-cloud.png is white; tint it to the #8a8a8a credit grey so it shows on the white bar */
.copyright-bar img { filter: brightness(0); opacity: .46; }
.copyright-bar a:hover img { opacity: .7; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .85); padding: 20px; cursor: zoom-out;
}
.lightbox img { max-height: 90vh; max-width: 95vw; width: auto; box-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 36px; line-height: 1; cursor: pointer; }

@media (max-width: 1024px) {
  .main-nav a { padding: 0 16px; font-size: 22px; }
  .footer-grid { flex-wrap: wrap; }
  .fw { width: 50%; margin-bottom: 40px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 35px; }
  h2 { font-size: 20px; }
  .top-bar-in { align-items: center; padding: 10px; min-height: 0; }
  .site-header { padding: 10px 20px 14px; }
  .site-logo img { width: 230px; }
  .menu-toggle { display: block; }
  .main-nav ul { display: none; flex-direction: column; padding-bottom: 8px; }
  .main-nav.open ul { display: flex; }
  .main-nav a { font-size: 20px; line-height: 48px; }
  .page-hero { padding: 100px 30px; }
  .page-hero h1 { font-size: 35px; }
  .page-hero h2 { font-size: 20px; line-height: 1.4; }
  .page-hero .button { margin-bottom: 4px; }
  .site-content { padding: 60px 20px 20px; }
  .entry-title { font-size: 35px; }
  .row { display: block; }
  .col { width: auto; }
  .col:empty { display: none; }
  .row-inner { margin: 0 -15px; }
  .slides { aspect-ratio: 640 / 428; }
  .footer-widgets { padding: 50px 20px; }
  .footer-grid { display: block; }
  .fw { width: auto; padding: 0; margin-bottom: 40px; }
  .fw:last-child { margin-bottom: 0; }
  .fw-1 { padding-top: 0; text-align: center; }
  .fw .map { height: 320px; }
  .map { height: 320px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .site-info-in { flex-direction: column; gap: 10px; }
  .copyright-bar { text-align: center; }
}

@media (max-width: 480px) {
  .alignleft, .alignright { float: none; display: block; margin: 0 auto 1em; }
  .button { font-size: 14px; padding: 8px 16px; }
  .call-pill { font-size: 12px; padding: 9px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
