/*
Theme Name: Bridge Child – Perfect Smile PS
Theme URI: https://perfectsmile.sk/
Description: Bridge Child Theme pre Perfect Smile s.r.o. – Moderná stomatológia Košice. Fialová brandová paleta #7f3f98. Inštaluje sa paralelne vedľa pôvodnej Bridge Child témy.
Author: Qode Interactive / Perfect Smile
Author URI: https://qodeinteractive.com
Version: 1.0.0
Text Domain: bridge-child-perfectsmile
Template: bridge
*/

/* ============================================================
   PERFECT SMILE – BRAND CSS VARIABLES
   Primárna farba: #7f3f98 (fialová)
   Tmavá:          #3d1a4a
   Stredná:        #6a3380
   Svetlá (tint):  #f5eefa
   Akcent (light): #b97fd4
   ============================================================ */

:root {
    --ps-purple:       #7f3f98;
    --ps-purple-dark:  #3d1a4a;
    --ps-purple-mid:   #6a3380;
    --ps-purple-deep:  #4e2260;
    --ps-purple-light: #b97fd4;
    --ps-purple-tint:  #f5eefa;
    --ps-white:        #ffffff;
    --ps-gray-light:   #f8f8f8;
    --ps-gray:         #666666;
    --ps-text:         #333333;
    --ps-font-heading: 'Playfair Display', 'Georgia', serif;
    --ps-font-body:    'DM Sans', 'Open Sans', sans-serif;
    --ps-radius:       12px;
    --ps-radius-lg:    20px;
    --ps-shadow:       0 4px 20px rgba(127, 63, 152, 0.12);
    --ps-shadow-lg:    0 12px 40px rgba(127, 63, 152, 0.18);
}

/* ============================================================
   GLOBÁLNE ŠTÝLY
   ============================================================ */

body {
    font-family: var(--ps-font-body) !important;
    color: var(--ps-text) !important;
}

/* Globálna farba nadpisov — VYLÚČENÉ: QODE Slider (triedy q_slide_title, q_slide_subtitle) */
h1:not(.q_slide_title),
h2:not(.q_slide_title),
h3:not(.q_slide_subtitle),
h4:not(.q_slide_subtitle),
h5, h6,
.wpb_wrapper h1:not(.q_slide_title),
.wpb_wrapper h2:not(.q_slide_title),
.wpb_wrapper h3:not(.q_slide_subtitle),
.wpb_wrapper h4:not(.q_slide_subtitle) {
    font-family: var(--ps-font-heading) !important;
    color: var(--ps-purple-dark) !important;
}

/* QODE Slider — title (H2) a subtitle (H4)
   Vysoká špecifickosť aby sme prepisali Bridge dynamický <style> blok */
body .q_slider h2.q_slide_title,
body .q_slider_inner h2.q_slide_title,
body .carousel.slide h2.q_slide_title,
body div.q_slider h2.q_slide_title,
body div.q_slider_inner h2.q_slide_title {
    font-family: var(--ps-font-heading) !important;
    color: #7f3f98 !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    display: inline-block !important;
    padding: 6px 16px !important;
    border-radius: 6px !important;
}

body .q_slider h4.q_slide_subtitle,
body .q_slider_inner h4.q_slide_subtitle,
body .carousel.slide h4.q_slide_subtitle,
body div.q_slider h4.q_slide_subtitle,
body div.q_slider_inner h4.q_slide_subtitle {
    font-family: var(--ps-font-heading) !important;
    color: #7f3f98 !important;
}

/* ============================================================
   NAVIGÁCIA
   ============================================================ */

.qode-main-menu > ul > li > a,
.qode-main-menu > ul > li > a span,
header .qode-main-menu > ul > li > a {
    color: var(--ps-purple-dark) !important;
    font-family: var(--ps-font-body) !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
}

.qode-main-menu > ul > li:hover > a,
.qode-main-menu > ul > li.current-menu-item > a,
.qode-main-menu > ul > li.current-menu-ancestor > a {
    color: var(--ps-purple) !important;
}

.qode-main-menu > ul > li.current-menu-item > a::after,
.qode-main-menu > ul > li:hover > a::after {
    background-color: var(--ps-purple) !important;
}

.qode-main-menu ul ul {
    background-color: var(--ps-white) !important;
    border-top: 3px solid var(--ps-purple) !important;
    box-shadow: var(--ps-shadow-lg) !important;
}

.qode-main-menu ul ul li a {
    color: var(--ps-purple-dark) !important;
    font-family: var(--ps-font-body) !important;
}

.qode-main-menu ul ul li:hover > a {
    color: var(--ps-purple) !important;
    background-color: var(--ps-purple-tint) !important;
}

.qode-logo-wrapper a img {
    max-height: 50px !important;
}

header.scrolled,
.qode-header-sticky.qode-header-sticky-scroll-up {
    background-color: var(--ps-white) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08) !important;
}

.qode-mobile-header-holder .qode-mobile-menu-opener span,
.qode-mobile-header-holder .qode-mobile-menu-opener span::before,
.qode-mobile-header-holder .qode-mobile-menu-opener span::after {
    background-color: var(--ps-purple) !important;
}

/* ============================================================
   TLAČIDLÁ
   ============================================================ */

.qode-btn.qode-btn-solid,
.qode-btn-solid,
a.qode-btn-solid,
button.qode-btn-solid {
    background-color: var(--ps-purple) !important;
    border-color: var(--ps-purple) !important;
    color: var(--ps-white) !important;
    font-family: var(--ps-font-body) !important;
    font-weight: 600 !important;
    border-radius: var(--ps-radius) !important;
    transition: all 0.2s ease !important;
}

.qode-btn.qode-btn-solid:hover,
a.qode-btn-solid:hover {
    background-color: var(--ps-purple-mid) !important;
    border-color: var(--ps-purple-mid) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--ps-shadow) !important;
}

.qode-btn.qode-btn-outline,
a.qode-btn-outline {
    border-color: var(--ps-purple) !important;
    color: var(--ps-purple) !important;
    font-family: var(--ps-font-body) !important;
    font-weight: 600 !important;
    border-radius: var(--ps-radius) !important;
}

.qode-btn.qode-btn-outline:hover,
a.qode-btn-outline:hover {
    background-color: var(--ps-purple) !important;
    color: var(--ps-white) !important;
}

/* ============================================================
   SLIDER REVOLUTION – FULL WIDTH FIX
   ============================================================ */

.rev_slider_wrapper,
.tp-banner-container,
.rev_slider_wrapper .tp-fullwidth-forcer {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
}

.vc_row.ps-hero-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* ============================================================
   WP BAKERY – SEKCIE (extra_class)
   ============================================================ */

/* extra_class="ps-section-dark" */
.vc_row.ps-section-dark {
    background-color: var(--ps-purple-dark) !important;
}
.vc_row.ps-section-dark h1,
.vc_row.ps-section-dark h2,
.vc_row.ps-section-dark h3,
.vc_row.ps-section-dark h4,
.vc_row.ps-section-dark p,
.vc_row.ps-section-dark li {
    color: var(--ps-white) !important;
}

/* extra_class="ps-section-purple" */
.vc_row.ps-section-purple {
    background-color: var(--ps-purple) !important;
}
.vc_row.ps-section-purple h1,
.vc_row.ps-section-purple h2,
.vc_row.ps-section-purple h3,
.vc_row.ps-section-purple p {
    color: var(--ps-white) !important;
}

/* extra_class="ps-section-light" */
.vc_row.ps-section-light {
    background-color: var(--ps-purple-tint) !important;
}

/* ============================================================
   SECTION LABEL (akcentová linka)
   Použitie: Text Block s CSS class "ps-section-label"
   ============================================================ */

.ps-section-label,
p.ps-section-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-family: var(--ps-font-body) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: var(--ps-purple) !important;
    margin-bottom: 12px !important;
}

.ps-section-label::before {
    content: '' !important;
    display: inline-block !important;
    width: 1.75rem !important;
    height: 2px !important;
    background: var(--ps-purple) !important;
    border-radius: 2px !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
}

.ps-section-dark .ps-section-label,
.ps-section-dark p.ps-section-label {
    color: var(--ps-purple-light) !important;
}
.ps-section-dark .ps-section-label::before {
    background: var(--ps-purple-light) !important;
}

/* ============================================================
   PS SERVICE CARD (vlastný WPB element)
   ============================================================ */

.ps-service-card {
    background: var(--ps-white);
    border: 1px solid rgba(127, 63, 152, 0.12);
    border-radius: var(--ps-radius-lg);
    padding: 32px 28px;
    transition: transform 0.22s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.22s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
}

.ps-service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ps-shadow-lg);
}

.ps-service-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--ps-purple-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 26px;
    color: var(--ps-purple);
}

.ps-service-card__title {
    font-family: var(--ps-font-heading) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--ps-purple-dark) !important;
    margin-bottom: 12px !important;
    line-height: 1.35 !important;
}

.ps-service-card__text {
    font-family: var(--ps-font-body) !important;
    font-size: 0.9rem !important;
    color: var(--ps-gray) !important;
    line-height: 1.7 !important;
    margin-bottom: 18px !important;
}

.ps-service-card__link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: var(--ps-purple) !important;
    font-family: var(--ps-font-body) !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: gap 0.2s ease !important;
}

.ps-service-card__link:hover {
    gap: 10px !important;
    color: var(--ps-purple-mid) !important;
}

.ps-service-card__link::after {
    content: ' →';
}

/* ============================================================
   PS STAT COUNTER
   ============================================================ */

.ps-stat-item {
    text-align: center;
    padding: 20px 16px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.ps-stat-item:last-child {
    border-right: none;
}

.ps-stat-item__value {
    font-family: var(--ps-font-heading) !important;
    font-size: 2.8rem !important;
    font-weight: 700 !important;
    color: var(--ps-purple-light) !important;
    line-height: 1.1 !important;
    margin-bottom: 6px !important;
}

.ps-stat-item__label {
    font-family: var(--ps-font-body) !important;
    font-size: 0.85rem !important;
    color: rgba(255,255,255,0.65) !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

/* ============================================================
   PS TEAM MEMBER
   ============================================================ */

.ps-team-member {
    background: var(--ps-white);
    border: 1px solid rgba(127, 63, 152, 0.1);
    border-radius: var(--ps-radius-lg);
    padding: 32px;
    transition: box-shadow 0.2s ease;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ps-team-member:hover {
    box-shadow: var(--ps-shadow);
}

.ps-team-member__avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: var(--ps-purple-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ps-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ps-purple);
    flex-shrink: 0;
    overflow: hidden;
}

.ps-team-member__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ps-team-member__name {
    font-family: var(--ps-font-heading) !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--ps-purple-dark) !important;
    margin: 0 0 4px !important;
}

.ps-team-member__role {
    font-family: var(--ps-font-body) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--ps-purple) !important;
    margin: 0 0 14px !important;
}

.ps-team-member__bio {
    font-family: var(--ps-font-body) !important;
    font-size: 0.875rem !important;
    color: var(--ps-gray) !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

/* ============================================================
   PS CONTACT INFO
   ============================================================ */

.ps-contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ps-contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: var(--ps-white);
    border: 1px solid rgba(127, 63, 152, 0.1);
    border-radius: var(--ps-radius);
    transition: border-color 0.2s ease;
}

.ps-contact-info__item:hover {
    border-color: var(--ps-purple);
}

.ps-contact-info__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--ps-purple-tint);
    color: var(--ps-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.ps-contact-info__label {
    font-family: var(--ps-font-body) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: var(--ps-gray) !important;
    margin: 0 0 3px !important;
}

.ps-contact-info__value {
    font-family: var(--ps-font-body) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: var(--ps-purple-dark) !important;
    margin: 0 !important;
}

.ps-contact-info__value a {
    color: var(--ps-purple-dark) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.ps-contact-info__value a:hover {
    color: var(--ps-purple) !important;
}

/* ============================================================
   PS CHECKLIST (Prečo my?)
   ============================================================ */

.ps-checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ps-checklist__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--ps-radius);
    transition: background 0.2s ease;
}

.ps-checklist__item:hover {
    background: rgba(255,255,255,0.12);
}

.ps-checklist__icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ps-purple-light);
    color: var(--ps-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.ps-checklist__icon::before {
    content: '✓';
}

.ps-checklist__text {
    font-family: var(--ps-font-body) !important;
    font-size: 0.9rem !important;
    color: rgba(255,255,255,0.85) !important;
    margin: 0 !important;
}

/* ============================================================
   PS PRICING TABLE
   ============================================================ */

.ps-pricing-table {
    background: var(--ps-white);
    border: 1px solid rgba(127, 63, 152, 0.1);
    border-radius: var(--ps-radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.ps-pricing-table__header {
    background: var(--ps-purple);
    padding: 16px 24px;
}

.ps-pricing-table__header h3,
.ps-pricing-table__header h4 {
    font-family: var(--ps-font-heading) !important;
    color: var(--ps-white) !important;
    margin: 0 !important;
    font-size: 1.1rem !important;
}

.ps-pricing-table__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(127, 63, 152, 0.06);
    font-family: var(--ps-font-body);
    font-size: 0.875rem;
}

.ps-pricing-table__row:nth-child(even) {
    background: var(--ps-purple-tint);
}

.ps-pricing-table__row:last-child {
    border-bottom: none;
}

.ps-pricing-table__service {
    color: var(--ps-purple-dark);
    flex: 1;
}

.ps-pricing-table__price {
    font-weight: 700;
    color: var(--ps-purple);
    white-space: nowrap;
    margin-left: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer.qode-footer,
.qode-footer {
    background-color: var(--ps-purple-dark) !important;
}

footer .qode-footer-top-holder,
.qode-footer-top-holder {
    background-color: var(--ps-purple-dark) !important;
}

footer .qode-footer-bottom-holder,
.qode-footer-bottom-holder {
    background-color: rgba(0,0,0,0.2) !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
}

footer h4, footer h5, footer .widget-title,
.qode-footer h4, .qode-footer h5, .qode-footer .widget-title {
    font-family: var(--ps-font-body) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: var(--ps-purple-light) !important;
    margin-bottom: 18px !important;
}

footer p, footer li, footer a,
.qode-footer p, .qode-footer li, .qode-footer a {
    color: rgba(255,255,255,0.6) !important;
    font-family: var(--ps-font-body) !important;
    font-size: 0.875rem !important;
}

footer a:hover, .qode-footer a:hover {
    color: var(--ps-white) !important;
}

footer .qode-footer-bottom-holder p,
.qode-footer-bottom-holder p {
    color: rgba(255,255,255,0.35) !important;
    font-size: 0.8rem !important;
}

/* ============================================================
   BRIDGE KOMPONENTY – farba
   ============================================================ */

.qode-separator, .qode-separator.medium {
    border-color: var(--ps-purple) !important;
}

.qode-icon-box-icon .fa,
.qode-icon-box-icon i {
    color: var(--ps-purple) !important;
}

.qode-icon-box-icon.qode-icon-box-icon-circle {
    background-color: var(--ps-purple-tint) !important;
    border-color: var(--ps-purple-tint) !important;
}

.qode-icon-box-icon.qode-icon-box-icon-circle i {
    color: var(--ps-purple) !important;
}

.qode-progress-bar .qode-progress-bar-content {
    background-color: var(--ps-purple) !important;
}

.qode-counter .qode-counter-number,
.qode-counter .qode-counter-number-wrapper {
    color: var(--ps-purple) !important;
    font-family: var(--ps-font-heading) !important;
}

.qode-testimonials .qode-testimonial-author-name {
    color: var(--ps-purple) !important;
}

/* ============================================================
   CONTACT FORM 7
   ============================================================ */

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    border: 1px solid rgba(127, 63, 152, 0.2) !important;
    border-radius: var(--ps-radius) !important;
    padding: 12px 16px !important;
    font-family: var(--ps-font-body) !important;
    font-size: 0.9rem !important;
    transition: border-color 0.2s ease !important;
    width: 100% !important;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    border-color: var(--ps-purple) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(127, 63, 152, 0.12) !important;
}

.wpcf7-form input[type="submit"],
.wpcf7-submit {
    background-color: var(--ps-purple) !important;
    border: none !important;
    color: var(--ps-white) !important;
    font-family: var(--ps-font-body) !important;
    font-weight: 600 !important;
    padding: 14px 32px !important;
    border-radius: var(--ps-radius) !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.15s ease !important;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-submit:hover {
    background-color: var(--ps-purple-mid) !important;
    transform: translateY(-2px) !important;
}

/* ============================================================
   RESPONZÍVNE ÚPRAVY
   ============================================================ */

@media (max-width: 768px) {
    .ps-service-card { padding: 24px 20px; }
    .ps-stat-item__value { font-size: 2.2rem !important; }
    .ps-team-member { flex-direction: column; }
}

@media (max-width: 480px) {
    .ps-pricing-table__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .ps-pricing-table__price { margin-left: 0; }
}


/* ============================================================
   OPRAVA FARIEB NADPISOV V TMAVÝCH SEKCIÁCH
   Bridge téma prepíše inline color na h1-h6 vlastnou farbou.
   Tieto pravidlá s !important to korigujú.
   ============================================================ */

/* Tmavofialové pozadie #3d1a4a — hero sekcie, "Prečo my?" sekcie */
[style*="background-color: #3d1a4a"] h1,
[style*="background-color: #3d1a4a"] h2,
[style*="background-color: #3d1a4a"] h3,
[style*="background-color: #3d1a4a"] h4,
[style*="background-color: #3d1a4a"] h5,
[style*="background-color: #3d1a4a"] h6,
.vc_custom_onas_09 h1,
.vc_custom_onas_09 h2,
.vc_custom_onas_09 h3,
.vc_custom_onas_09 h4 {
    color: #ffffff !important;
}

/* Fialové pozadie #7f3f98 — CTA karty, objednávkové bloky */
[style*="background-color: #7f3f98"] h1,
[style*="background-color: #7f3f98"] h2,
[style*="background-color: #7f3f98"] h3,
[style*="background-color: #7f3f98"] h4,
[style*="background-color: #7f3f98"] h5,
[style*="background-color: #7f3f98"] h6 {
    color: #ffffff !important;
}

/* Inline style s farbou #ffffff — priama podpora pre nadpisy s nastavenou farbou */
h1[style*="color: #ffffff"],
h2[style*="color: #ffffff"],
h3[style*="color: #ffffff"],
h4[style*="color: #ffffff"],
h5[style*="color: #ffffff"],
h6[style*="color: #ffffff"],
h1[style*="color:#ffffff"],
h2[style*="color:#ffffff"],
h3[style*="color:#ffffff"],
h4[style*="color:#ffffff"],
h5[style*="color:#ffffff"],
h6[style*="color:#ffffff"] {
    color: #ffffff !important;
}

/* rgba(255,255,255,1) — biela zadaná cez rgba */
h1[style*="color: rgba(255,255,255"],
h2[style*="color: rgba(255,255,255"],
h3[style*="color: rgba(255,255,255"],
h4[style*="color: rgba(255,255,255"],
p[style*="color: rgba(255,255,255"] {
    color: #ffffff !important;
}

/* Trieda ps-section-dark — alternatívne označenie tmavých sekcií */
.ps-section-dark h1,
.ps-section-dark h2,
.ps-section-dark h3,
.ps-section-dark h4,
.ps-section-dark h5,
.ps-section-dark h6 {
    color: #ffffff !important;
}

/* ============================================================
   OPRAVA FARIEB NADPISOV V SVETLOFIALOVÝCH SEKCIÁCH
   Nadpisy na #f5eefa pozadí musia byť tmavé
   ============================================================ */

[style*="background-color: #f5eefa"] h1,
[style*="background-color: #f5eefa"] h2,
[style*="background-color: #f5eefa"] h3,
[style*="background-color: #f5eefa"] h4 {
    color: #3d1a4a !important;
}
