/*
Theme Name:     Centrum porodní asistence
Theme URI:      https://cpanemjh.cz
Description:    Child theme for Divi – customized for Centrum porodní asistence
Author:         David Klhufek
Author URI:     https://phirebase.com
Template:       Divi
Version:        1.0.0
License:        GNU General Public License v2 or later
License URI:    https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    cpanemjh
*/


/* === Mobile Menu Styling === */
ul#mobile_menu.et_mobile_menu a,
ul#top-menu a {
    text-transform: uppercase;
}

/* === Image Titles Off === */
.mfp-title {
    display: none;
}

/* === Header Content Spacing === */
.et_pb_fullwidth_header .et_pb_fullwidth_header_container.left .header-content {
    margin-top: -50px;
}

/* ==========================================================================
   Hero branding wave
   ========================================================================== */

/* Hero container */
.cpa-hero {
    position: relative;
}

/* SVG wave wrapper */
.hero-line {
    position: absolute;
    left: 0;
    top: 10%;
    width: 100%;
    height: 220px;
    z-index: 2;
    pointer-events: none;
}

.hero-line svg {
    width: 100%;
    height: 100%;
}

/* Wave path */
#hero-path {
    fill: none;
    stroke: #c68aa5;
    stroke-width: 2;
    opacity: .7;
}

/* Logo rings */
#hero-logo .outer {
    fill: none;
    stroke: #ffffff;
    stroke-width: 3;
    opacity: .7;
}

#hero-logo .middle {
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    opacity: .7;
}

#hero-logo .inner {
    fill: #c68aa5;
}

/* Logo positioning */
#hero-logo {
    transform: translate(900px, 120px);
    transition: transform .8s ease;
    transform-box: fill-box;
    transform-origin: center;
}

/* Hover animation */
.cpa-hero:hover #hero-logo {
    transform: translate(1080px, 80px) scale(1.05);
}

/* === Menu CTA === */
@media (min-width: 980px) {
    #top-menu .menu_cta {
        display: inline-block !important;
        margin-left: 0px !important; 
    }
    #top-menu .menu_cta a {
        background-color: #b97894 !important; 
        color: #fff !important; 
        padding: 12px 15px !important; 
        font-weight: bold !important;
        text-transform: uppercase !important;
        border: 2px solid #b97894 !important; 
        border-radius: 30px !important; 
        display: inline-block !important;
        transition: all 0.3s ease-in-out !important;
    }
    #top-menu .menu_cta a:hover {
        background-color: #b97894!important; 
        color: #fff !important; 
        text-decoration: none !important;
    }
    #top-menu .menu_cta a:before {
        content: none !important;
    }
}

/* Fix text colour in CTA button with fixed head */
.et-fixed-header #top-menu .menu_cta a {
    color: #fff !important; 
}
.et-fixed-header #top-menu .menu_cta a:hover {
    color: #fff !important; 
}
.page-id-54 .et-fixed-header #top-menu .menu_cta a {
    color: #fff!important;
}

/* Fix for CTA button for Mobile menu */
@media (max-width: 1159px) {
    #mobile_menu .menu_cta a, 
    .et_mobile_menu .menu_cta a, 
    #top-menu .menu_cta a {
        background-color: #b97894 !important; 
        color: #ffffff !important; 
        border: 2px solid #b97894 !important; 
    }

    #mobile_menu .menu_cta a:hover, 
    .et_mobile_menu .menu_cta a:hover, 
    #top-menu .menu_cta a:hover {
        background-color: #b97894 !important; 
        color: #fff !important; 
    }
}

/* === Divi Contact Form === */
span.et_pb_contact_field_options_title {
    color: white;
}
.et_pb_contact_submit, .et_password_protected_form .et_submit_button, .et_pb_bg_layout_light .et_pb_newsletter_button, .comment-reply-link, .form-submit .et_pb_button, .et_pb_bg_layout_light .et_pb_promo_button, .et_pb_bg_layout_light .et_pb_more_button, .et_pb_contact p input[type="checkbox"]:checked+label i:before, .et_pb_bg_layout_light.et_pb_module.et_pb_button {
    color: #032041 !important;
}
.et-pb-contact-message {
    /* position: relative; */
    color: white;
}

/* === Sociální ikony: zaoblený hexagon pomocí SVG masky === */
.et_pb_social_media_follow .et_pb_social_icon a {
    background-color: #ffffff !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    mask: url('/wp-content/themes/cpanemjh/img/hexagon-rounded.svg') center/contain no-repeat;
    -webkit-mask: url('/wp-content/themes/cpanemjh/img/hexagon-rounded.svg') center/contain no-repeat;
    border-radius: 0 !important;
    transition: background 0.3s ease;
}

/* === Scroll to Top Button === */
.et_pb_scroll_top.et-pb-icon {
    color: white;
    right: 30px;
    bottom: 30px;
    padding: 8px;
    border-radius: 30px;
    background: #b97894; 
    font-size: 32px;
    transition: all 0.1s ease-in-out;
}

.et_pb_scroll_top.et-pb-icon:hover {
    bottom: 32px;
    background: #b97894;
    transition: all 0.1s ease-in-out;
}

/* === Scroll Top Animations === */
.et_pb_scroll_top.et-visible {
    animation: fadeInBottom 1s cubic-bezier(0.50, 0, 0.16, 1);
}
.et_pb_scroll_top.et-hidden {
    opacity: 0;
    animation: fadeOutBottom 1s cubic-bezier(0.77, 0, 0.175, 1);
}
