/*
Theme Name: Apollo Dental Vadavalli
Template: hello-elementor
Version: 0.1.0
Description: Child theme for the Apollo Dental Vadavalli build. Renders design pages full-bleed and loads the design foundation CSS and interactivity shim.
*/

/* Full-bleed rendering for design pages */
body.apollo-fullpage .site-main,
body.apollo-fullpage .page-content,
body.apollo-fullpage .page .entry-content,
body.apollo-fullpage main.site-main {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}
body.apollo-fullpage .page-header,
body.apollo-fullpage .entry-header {
    display: none;
}
body.apollo-fullpage .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1140px;
}
body.apollo-fullpage .elementor-location-header .elementor-widget:not(:last-child),
body.apollo-fullpage .elementor-location-footer .elementor-widget:not(:last-child) {
    margin-bottom: 0;
}

/* Elementor Pro header and footer inherit the design font */
.elementor-location-header, .elementor-location-footer, .elementor-location-header .elementor-nav-menu a, .elementor-location-footer .elementor-nav-menu a {
    font-family: var(--font-sans);
}
.elementor-location-header .elementor-widget-image img {
    width: 110px;
    max-width: 110px;
    height: auto;
}
.elementor-location-header .elementor-widget:not(:last-child), .elementor-location-footer .elementor-widget:not(:last-child) {
    margin-bottom: 0;
}
.elementor-location-header .elementor-widget-image { flex: none; }

.elementor-location-header .elementor-button { white-space: nowrap; }
.elementor-location-header .elementor-nav-menu--main .elementor-item { white-space: nowrap; }

/* Popup inherits the design font */
.elementor-popup-modal, .elementor-popup-modal .elementor-field, .elementor-popup-modal .elementor-button, .elementor-popup-modal .elementor-field-label { font-family: var(--font-sans); }

/* Blog templates and post content */
.elementor-location-single, .elementor-location-archive, .elementor-location-single .elementor-widget-theme-post-content, .elementor-location-archive .elementor-posts-container { font-family: var(--font-sans); color: var(--ad-grey-700); }
.elementor-widget-theme-post-content { font-size: 17px; line-height: 1.75; }
.elementor-widget-theme-post-content h2 { font-size: 26px; font-weight: 500; color: var(--ad-teal); margin: 36px 0 12px; line-height: 1.3; }
.elementor-widget-theme-post-content h3 { font-size: 20px; font-weight: 600; color: var(--ad-grey-900); margin: 26px 0 8px; }
.elementor-widget-theme-post-content p { margin: 0 0 16px; }
.elementor-widget-theme-post-content ul { margin: 0 0 18px 22px; }
.elementor-widget-theme-post-content li { margin-bottom: 8px; }
.elementor-widget-theme-post-content a { color: var(--ad-teal); text-decoration: underline; }
.elementor-widget-theme-post-content p.apollo-nudge { background: var(--ad-orange-50); border-left: 4px solid var(--ad-orange); padding: 14px 18px; border-radius: 0 6px 6px 0; color: var(--ad-grey-900); }
.elementor-widget-theme-post-content p.apollo-cta { background: var(--ad-teal-50); border: 1px solid var(--ad-teal-100); padding: 16px 18px; border-radius: 6px; font-weight: 500; color: var(--ad-grey-900); }
.elementor-widget-theme-post-content p.apollo-disclaimer { font-size: 13px; color: var(--ad-grey-500); margin-top: 24px; }
.elementor-widget-theme-post-featured-image img { border-radius: 10px; }
.elementor-location-archive .elementor-post__title a { color: var(--ad-teal); font-weight: 600; font-size: 18px; }
.elementor-location-archive .elementor-post__excerpt { color: var(--ad-grey-700); font-size: 15px; }
.elementor-location-archive .elementor-post__read-more { color: var(--ad-orange); font-weight: 600; }
.elementor-location-archive .elementor-post__thumbnail img { border-radius: 8px; }
.elementor-location-archive .elementor-pagination a, .elementor-location-archive .elementor-pagination span { color: var(--ad-teal); font-weight: 500; }
.elementor-location-single .elementor-post-info__item, .elementor-location-single .elementor-post-info__item a { color: var(--ad-teal); font-size: 14px; }

/* WhatsApp floating button */
.apollo-whatsapp { position: fixed; right: 18px; bottom: 18px; z-index: 9000; width: 56px; height: 56px; border-radius: 50%; background: var(--ad-whatsapp); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: var(--shadow-float); text-decoration: none; }
.apollo-whatsapp:hover { color: #fff; background: #25a23a; }

/* Mobile header: keep the top bar short, logo and buttons on one row */
@media (max-width: 767px) {
  .elementor-location-header .elementor-icon-list-items.elementor-inline-items { gap: 4px 14px; }
  .elementor-location-header .elementor-icon-list-text { font-size: 12px; }
  .elementor-location-header .elementor-widget-image img { width: 84px; max-width: 84px; }
  .elementor-location-header .elementor-button { padding: 8px 10px; font-size: 12px; }
  .apollo-whatsapp { bottom: 74px; right: 14px; width: 50px; height: 50px; font-size: 24px; }
  .apollo-mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8999; display: flex; background: #fff; border-top: 1px solid var(--ad-grey-200); box-shadow: 0 -4px 14px rgba(0,0,0,.08); }
  .apollo-mobile-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; font-weight: 600; font-size: 14px; text-decoration: none; }
  .apollo-mobile-bar a.call { color: #fff; background: var(--ad-orange); }
  .apollo-mobile-bar a.book { color: var(--ad-teal); background: #fff; }
  body.apollo-fullpage { padding-bottom: 52px; }
}
@media (min-width: 768px) { .apollo-mobile-bar { display: none; } }

@media (max-width: 767px) {
  .elementor-location-header .elementor-widget-icon-list:first-of-type .elementor-icon-list-item:nth-child(2) { display:none; }
  .elementor-location-header .elementor-widget-icon-list .elementor-icon-list-items { justify-content: center; }
}

/* Treatments dropdown: View All link styled as in the design */
.elementor-nav-menu li.apollo-view-all > a { color: var(--ad-orange, #f47b20) !important; font-weight: 600; }
.elementor-nav-menu li.apollo-view-all > a::after { content: '\f061'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.8em; margin-left: 10px; }
.elementor-nav-menu li.apollo-view-all { border-top: 1px solid rgba(0,0,0,0.06); margin-top: 6px; padding-top: 6px; }

/* Map facade and video modal (standalone: no third-party request until the visitor clicks) */
.apollo-map-load { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 10px 18px; border: 0; border-radius: 4px; background: var(--ad-teal, #007b9c); color: #fff; font-family: var(--font-sans); font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); white-space: nowrap; }
.apollo-map-load:hover { background: var(--ad-orange, #f47b20); }
.apollo-video-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(0,20,30,.85); display: flex; align-items: center; justify-content: center; padding: 16px; }
.apollo-video-box { position: relative; width: min(420px, 100%); max-height: 90vh; aspect-ratio: 9 / 16; background: #000; border-radius: 8px; overflow: hidden; }
.apollo-video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.apollo-video-close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #000; font-size: 24px; line-height: 1; cursor: pointer; }

/* Header: the two CTA buttons must never overlap (apollo-header-buttons) */
.elementor-location-header .elementor-element-79bd7b2 { display: flex; flex-wrap: nowrap; gap: 10px; align-items: center; width: auto; flex: 0 0 auto; }
.elementor-location-header .elementor-element-79bd7b2 > .elementor-widget-button { width: auto; flex: 0 0 auto; }
.elementor-location-header .elementor-element-79bd7b2 .elementor-button { white-space: nowrap; }
.elementor-location-header .elementor-element-dd982c0 { gap: 16px; }
@media (max-width: 1366px) and (min-width: 1025px) { .elementor-location-header .elementor-element-79bd7b2 .elementor-button { padding-left: 12px !important; padding-right: 12px !important; font-size: 13px !important; } .elementor-location-header .elementor-nav-menu--main .elementor-item { padding-left: 9px !important; padding-right: 9px !important; font-size: 15px !important; } .elementor-location-header .elementor-element-dd982c0 { gap: 10px !important; } .elementor-location-header .elementor-widget-image img { max-width: 96px !important; } }

/* hide-call-mid: between 1025 and 1200 px the Call Us button is dropped (the number stays in the top bar) so nothing overflows */
@media (max-width: 1200px) and (min-width: 1025px) { .elementor-location-header .elementor-element-44a6780 { display: none !important; } }

/* Before and after lightbox */
.apollo-lb { position: fixed; inset: 0; z-index: 99999; background: rgba(0, 20, 30, .92); display: none; flex-direction: column; font-family: var(--font-sans); color: #fff; }
.apollo-lb.is-open { display: flex; }
.apollo-lb-top { display: flex; align-items: center; gap: 16px; padding: 14px 20px; }
.apollo-lb-title { font-size: 18px; font-weight: 600; flex: 1 1 auto; }
.apollo-lb-count { font-size: 14px; opacity: .8; }
.apollo-lb-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.apollo-lb-close:hover { background: var(--ad-orange); }
.apollo-lb-stage { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 72px 12px; }
.apollo-lb-pane { margin: 0; min-height: 0; display: flex; flex-direction: column; }
.apollo-lb-view { flex: 1 1 auto; min-height: 0; overflow: hidden; border-radius: 8px; background: #000; display: flex; align-items: center; justify-content: center; cursor: zoom-in; touch-action: none; user-select: none; }
.apollo-lb-view.is-zoomed { cursor: grab; }
.apollo-lb-view img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 80ms linear; will-change: transform; -webkit-user-drag: none; }
.apollo-lb-pane figcaption { align-self: flex-start; margin-top: 8px; padding: 4px 10px; border-radius: 3px; font-size: 12px; font-weight: 600; background: var(--ad-grey-700, #4a5a63); }
.apollo-lb-pane figcaption.is-after { background: var(--ad-orange, #f47b20); }
.apollo-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 18px; cursor: pointer; }
.apollo-lb-nav:hover { background: var(--ad-teal); }
.apollo-lb-prev { left: 14px; } .apollo-lb-next { right: 14px; }
.apollo-lb-tools { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px 18px; font-size: 14px; }
.apollo-lb-tools button { height: 36px; min-width: 36px; padding: 0 12px; border: 0; border-radius: 18px; background: rgba(255,255,255,.14); color: #fff; font-family: inherit; font-size: 14px; cursor: pointer; }
.apollo-lb-tools button:hover { background: var(--ad-teal); }
.apollo-lb-zoom { min-width: 48px; text-align: center; font-weight: 600; }
.apollo-lb-hint { opacity: .7; font-size: 12px; margin-left: 8px; }
@media (max-width: 767px) {
  .apollo-lb-stage { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; padding: 0 12px 8px; gap: 8px; }
  .apollo-lb-nav { top: auto; bottom: 14px; transform: none; width: 40px; height: 40px; }
  .apollo-lb-tools { padding: 10px 60px 14px; flex-wrap: wrap; }
  .apollo-lb-tools button { height: 32px; min-width: 32px; }
  .apollo-lb-hint { display: none; }
  .apollo-lb-title { font-size: 15px; }
}

body.apollo-lb-active .apollo-mobile-bar, body.apollo-lb-active .apollo-whatsapp { display: none !important; }
