/*
Theme Name: Stomatology Child Theme
Theme URI: https://stomatology.axiomthemes.com/
Description: Stomatology is a Premium WordPress theme that has built-in support for popular Page Builders, slider with swipe gestures, and is SEO- and Retina-ready. The unique system of inheritance and override options allows setting up individual parameters for different sections of your site and supported plugins.
Author: AxiomThemes
Author URI: https://axiomthemes.com/
Version: 1.5.1
Tested up to: 6.8
Requires at least: 5.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, e-commerce, portfolio, grid-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
Text Domain: stomatology
Template: stomatology
*/


/* =Child-Theme customization starts here
------------------------------------------------------------ */

/* ============================================================
   MEGA MENU — Book Appointment CTA: prominent top position
   v3.0 — applies to Treatments, Dental Implants, Partners
   Strategy: make each sub-menu a flex column so we can use
   CSS order to float Book Appointment to the very top,
   then style it as a full-width teal action bar.
   ============================================================ */

/* 1. Make the three submenus flex columns so order works */
#menu-item-24149 > .sub-menu,
#menu-item-22344 > .sub-menu,
#menu-item-24185 > .sub-menu,
#menu-item-24181 > .sub-menu,
#menu-item-24179 > .sub-menu {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
}

/* Dental Implants submenu */
li.menu-item-22344 > .sub-menu,
li.menu-item-has-children:has(> a[href*="dental-implant"]) > .sub-menu {
  display: flex !important;
  flex-direction: column !important;
}

/* 2. Float Book Appointment to the very top in each menu */
#menu-item-24910 { order: -100 !important; }   /* Treatments */
#menu-item-24947 { order: -100 !important; }   /* Dental Implants */
#menu-item-24948 { order: -100 !important; }   /* Partners & Providers */

/* 3. Style Book Appointment as a prominent teal CTA bar */
#menu-item-24910 > a,
#menu-item-24947 > a,
#menu-item-24948 > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #0e7e8a !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  padding: 12px 20px !important;
  width: 100% !important;
  min-height: 48px !important;
  border: none !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  margin-bottom: 4px !important;
  box-shadow: 0 2px 6px rgba(14,126,138,0.25) !important;
  transition: background 0.2s ease !important;
}

#menu-item-24910 > a:hover,
#menu-item-24947 > a:hover,
#menu-item-24948 > a:hover {
  background: #0b6b75 !important;
  color: #ffffff !important;
}

/* Add a calendar icon before the text */
#menu-item-24910 > a::before,
#menu-item-24947 > a::before,
#menu-item-24948 > a::before {
  content: "📅 " !important;
  font-style: normal !important;
  margin-right: 6px !important;
}

/* 4. Treatments action bar — anchor cascade fix (existing, preserved)
   (child theme style.css loads after stomatology/style.css so
    these !important rules correctly win the cascade) */
#menu-item-24149.sfHover>.sub-menu>#menu-item-24910.menu-item>a{display:flex!important;align-items:center!important;justify-content:center!important;background:#0e7e8a!important;color:#fff!important;padding:12px 20px!important;width:100%!important;min-height:48px!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.1em!important;font-size:.8rem!important;border:none!important;border-bottom:none!important;border-radius:0!important;line-height:1.2!important;text-decoration:none!important}


/* ==============================================
   DACV Partners & Providers — Sub-Page Sidebar
   ============================================== */
.dacv-pp-sidebar { display: flex; flex-direction: column; }
.dacv-pp-widget {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 16px;
}
.dacv-pp-widget-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0e7e8a;
    margin-top: 0;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0e7e8a;
}
.dacv-pp-btn-primary {
    display: block;
    background: #0e7e8a;
    color: #fff !important;
    text-align: center;
    padding: 12px 16px;
    border-radius: 4px;
    font-weight: 600;
    margin: 12px 0 8px;
    text-decoration: none;
}
.dacv-pp-btn-primary:hover { background: #0a6570; color: #fff !important; }
.dacv-pp-phone {
    display: block;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #0e7e8a !important;
    text-decoration: none;
    margin-top: 6px;
}
.dacv-pp-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}
.dacv-pp-list li {
    padding: 5px 0;
    border-bottom: 1px solid #e8e8e8;
    font-size: 14px;
}
.dacv-pp-list li:last-child { border-bottom: none; }
.dacv-pp-list a { color: #333; text-decoration: none; }
.dacv-pp-list a:hover { color: #0e7e8a; }
.dacv-pp-link {
    color: #0e7e8a;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.dacv-pp-notice { background: #e8f4f5; border-color: #0e7e8a; }
.dacv-pp-notice p { font-size: 13px; color: #555; margin-bottom: 8px; }