/*
 Theme Name:   Dentalia child theme 
 Theme URI:    http://orionthemes.com/dentalia
 Description:  Dentalia child theme
 Author:       OrionThemes.com
 Author URI:   http://orionthemes.com
 Template:     dentalia
 Version:      2.0
 Requires at least: 5.0
 Tested up to: 5.5
 Requires PHP: 7.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  dentalia-child
*/

/* Split nav layout */
.split-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Left/right take equal space so logo stays centered */
.split-nav-left,
.split-nav-right { flex: 1 1 0; }

.split-logo { flex: 0 0 auto; display: block; }
.split-logo img { height: 56px; width: auto; display: block; }

/* Align items within each side */
.split-menu-left  { display: flex; gap: 20px; justify-content: flex-end; }  /* push items toward logo */
.split-menu-right { display: flex; gap: 20px; justify-content: flex-start; }

/* Match Dentalia’s link styles (light touch) */
.split-nav .menu > li > a {
    padding: 12px 8px;
    text-decoration: none;
}

/* Remove default bullets from WordPress nav menus */
.split-nav ul,
.split-nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Keep menu links inline horizontally */
.split-nav .menu {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Optional: tighten spacing for your layout */
.split-menu-left li,
.split-menu-right li {
    margin: 0;
    padding: 0;
}

.menu-item {
    font-family: 'Nunito Sans';
    font-size: 18px;
    font-weight: bold;

}

.menu-item > a {
    color: #3f9f96;
}

.menu-item > a:hover {
    color: #f0a725;
}

/* Top utility bar */
.header-top-bar {
    background-color: #3f9f96;
    color: #fff;
    font-size: 25px;

    padding: 12px 0;             /* was 8px; slightly thicker (~10–15% more) */
}

.header-top-inner {
    display: flex;
    justify-content: center;   /* right align the button group */
    align-items: center;
    gap: 16px;                   /* a little more breathing room */
}

/* Button / link styling */
.header-top-buttons a.top-btn {
    background-color: #fdfbd4;   /* bright gold background */
    color: #3f9f96;                 /* white text */
    padding: 8px 18px;           /* larger for thicker bar */
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.header-top-buttons a.top-btn:hover {
    background-color: #d89610;   /* darker on hover */
    transform: translateY(-1px); /* subtle lift effect */
}

/* Generic accent wrapper */
.with-accent {
    position: relative;
    display: inline-block;
    --accent-size: 100px;       /* size of the flower */
    --accent-offset: -38px;    /* how far it hangs off the edge */
}

/* Make sure the image doesn’t leave a baseline gap */
.with-accent img { display: block; }

/* The accent itself (uses a pseudo-element so you don't touch HTML) */
.with-accent::after {
    content: "";
    position: absolute;
    width: var(--accent-size);
    height: var(--accent-size);
    background: url("/wp-content/uploads/2025/10/daisy.png") no-repeat center / contain;
    pointer-events: none;
    z-index: -9999;
}

.with-accent-services {
    position: relative;
    display: inline-block;
    --accent-size: 100px;       /* size of the flower */
    --accent-offset: -38px;    /* how far it hangs off the edge */
}

/* Corner positions for the standard accent variant ONLY */
.with-accent.accent-top-left::after    { top: var(--accent-offset); left: var(--accent-offset); }
.with-accent.accent-top-right::after   { top: var(--accent-offset); right: var(--accent-offset); }
.with-accent.accent-bottom-left::after { bottom: var(--accent-offset); left: var(--accent-offset); }
.with-accent.accent-bottom-right::after{ bottom: var(--accent-offset); right: var(--accent-offset); }


/* Make sure the image doesn’t leave a baseline gap */
.with-accent-services img { display: block; }


.with-accent-services.accent-top-left::before {
    content: "";
    position: absolute;
    width: var(--accent-size, 64px);
    height: var(--accent-size, 64px);
    background: url("/wp-content/uploads/2025/10/yellow-star.png") no-repeat center / contain;
    top: var(--accent-offset, -12px);
    left: var(--accent-offset, -12px);
    pointer-events: none;
    z-index: -9999;
}


/* Second accent — uses ::after */
.with-accent-services.accent-bottom-right::after {
    content: "";
    position: absolute;
    width: var(--accent-size, 64px);
    height: var(--accent-size, 64px);
    background: url("/wp-content/uploads/2025/10/yellow-star.png") no-repeat center / contain;
    bottom: var(--accent-offset, -12px);
    right: var(--accent-offset, -12px);
    pointer-events: none;
    z-index: -9999;
}

.with-accent-cslclinic img { display: block; }

.with-accent-cslclinic.accent-top-left::before {
    content: "";
    position: absolute;
    width: var(--accent-size, 64px);
    height: var(--accent-size, 64px);
    background: url("/wp-content/uploads/2025/10/checklist2.png") no-repeat center / contain;
    top: var(--accent-offset, 80px);
    left: var(--accent-offset, -25px);
    pointer-events: none;
    z-index: 2;
}


/* Second accent — uses ::after */
.with-accent-cslclinic.accent-bottom-right::after {
    content: "";
    position: absolute;
    width: var(--accent-size, 64px);
    height: var(--accent-size, 64px);
    background: url("/wp-content/uploads/2025/10/checklist2.png") no-repeat center / contain;
    bottom: var(--accent-offset, 10px);
    right: var(--accent-offset, -25px);
    pointer-events: none;
    z-index: -9999;
}

.with-accent-teletherapy img { display: block; }

.with-accent-teletherapy.accent-top-left::before {
    content: "";
    position: absolute;
    width: var(--accent-size, 64px);
    height: var(--accent-size, 64px);
    background: url("/wp-content/uploads/2025/10/teletherapy.png") no-repeat center / contain;
    top: var(--accent-offset, 80px);
    left: var(--accent-offset, 15px);
    pointer-events: none;
    z-index: -9999;
}


/* Second accent — uses ::after */
.with-accent-teletherapy.accent-bottom-right::after {
    content: "";
    position: absolute;
    width: var(--accent-size, 64px);
    height: var(--accent-size, 64px);
    background: url("/wp-content/uploads/2025/10/teletherapy.png") no-repeat center / contain;
    bottom: var(--accent-offset, 10px);
    right: var(--accent-offset, -25px);
    pointer-events: none;
    z-index: -9999;
}


/*site origin row gradient reverse*/

.gradient-reverse {
    background-image: linear-gradient(to left, var(--color2, rgba(63,159,150,1)), transparent);
}

/* Responsive: collapse/stack for tablet/mobile */
@media (max-width: 1024px) {
    .split-nav { gap: 12px; }
    .split-logo img { height: 48px; }
}

@media (max-width: 768px) {
    /* Option A: stack into three rows */
    .split-nav { flex-wrap: wrap; justify-content: center; }
    .split-nav-left, .split-nav-right { flex: 1 1 100%; order: 2; }
    .split-logo { order: 1; margin: 8px 0; }
    .split-menu-left, .split-menu-right { justify-content: center; flex-wrap: wrap; }
    /* Option B (preferred if Dentalia has a mobile hamburger):
       hide custom split and let the theme’s mobile menu take over. Uncomment if needed. */
    /* .split-nav { display:none; } */

    .header-top-inner {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    .header-top-buttons a.top-btn {
        padding: 6px 14px;
        font-size: 14px;
    }

    .with-accent { --accent-size: 44px; --accent-offset: -8px; }
}


/* Make parent items anchor positioning context */
.split-menu-right li.menu-item-has-children {
    position: relative;
}

/* Hide submenus by default */
.split-menu-right .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    z-index: 9999;
}

/* Show submenu on hover (desktop) */
@media (min-width: 992px) {
    .split-menu-right li.menu-item-has-children:hover > .sub-menu {
        display: block;
    }
}

/* Optional: basic submenu item layout */
.split-menu-right .sub-menu li {
    display: block;
    white-space: nowrap;
}

/* Sub-menu dropdown background + readability */
.split-menu-right li ul.sub-menu {
    background-color: #ffffff;   /* solid background */
    padding: 10px 0;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Individual submenu links */
.split-menu-right li ul.sub-menu li a {
    display: block;
    padding: 10px 16px;
    color: #333;
    white-space: nowrap;
}

/* Hover state for submenu items */
.split-menu-right li ul.sub-menu li a:hover {
    background-color: #f2f2f2;
    color: #000;
}



