/*
Theme Name: Simonin Electro
Theme URI: https://simoninelectromenager.ch
Description: Child theme for Simonin Électroménager — appliance repair services in Geneva. Built on Twenty Twenty-Five. Colors, typography, menus and page content are managed in the WordPress admin (Site Editor + block editor), not in theme files.
Author: Simonin Électroménager
Template: twentytwentyfive
Version: 1.0.0
Text Domain: simonin-electro
*/
* {
    box-sizing: border-box;
    outline: none;
}

header.wp-block-template-part {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 999;
    transition: top 0.3s ease, transform 0.3s ease;
}

header.wp-block-template-part.is-scrolled {
    top: 20px;
}

header.wp-block-template-part.is-hidden {
    transform: translateY(-140%);
}

.hero-style .wp-block-cover__image-background {
    width: 776px;
    height: 776px;
    left: 50%;
    transform: translateX(calc(-50% + 350px));
    bottom: -120px !important;
    top: unset;
}

.hero-style .wp-block-cover__background {
    z-index: -1;
}

.starting-dot:before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ffffff;
    display: inline-block;
    border-radius: 10px;
    margin-right: 7px;
}

.badge-style p strong {
    font-size: 28px;
    font-weight: 700;
}

.badge-style .wp-block-group {
    position: absolute;
    right: 0;
    top: -50px !important;
}

/* Hero intervention request form (Contact Form 7 #23) */
.hero-form-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 20px 15px;
    max-width: 600px;
    box-shadow: 0 25px 50px rgba(0, 20, 60, 0.25);
}

.hero-form-card form p {
    margin: 0;
}

.hero-form-card input.wpcf7-form-control {
    width: 100%;
    background: #E4E0DD;
    border: 1px solid #E4E0DD;
    border-radius: 50px;
    padding: 20px 23px;
    font-size: 14px;
    color: var(--wp--preset--color--simonin-blue);
    font-family: inherit;
}

.hero-form-card .simonin-submit-wrap {
    flex: 1;
    position: relative;
}

.hero-form-card .wpcf7-spinner {
    margin: 0;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
}

.hero-form-card input.wpcf7-submit {
    background: var(--wp--preset--color--simonin-gold);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 15px;
    width: 100%;
    height: auto;
    white-space: normal;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    font-size: 15px;
    line-height: 1.3;
    letter-spacing: 0.2px;
    cursor: pointer;
}

.hero-form-card input.wpcf7-submit:focus,
.hero-form-card input.wpcf7-submit:hover {
    background: var(--wp--preset--color--simonin-gold-dark) !important;
}

.hero-form-card .simonin-meta p br {
    display: none;
}

.hero-form-card .wpcf7-response-output {
    color: #ff0000;
    margin: 10px 0 0 !important;
    border: none !important;
    font-size: 14px;
    padding: 0 !important;
    line-height: 1.4;
}

.hero-form-card .simonin-meta {
    flex: 1;
    font-size: 13px;
    line-height: 1.5;
}

.hero-form-card .simonin-meta-privacy {
    display: block;
    color: var(--wp--preset--color--simonin-blue);
}

.hero-form-card .simonin-meta-question {
    display: block;
    color: var(--wp--preset--color--simonin-gold);
}

.hero-form-card .simonin-meta-phone-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-top: 2px;
}

.hero-form-card .simonin-meta-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--wp--preset--color--simonin-gold);
    font-weight: 700;
    white-space: nowrap;
}

.hero-form-card .simonin-meta-phone a {
    color: inherit;
    text-decoration: none;
}

.hero-form-card .simonin-meta-hours {
    color: var(--wp--preset--color--simonin-gold);
    white-space: nowrap;
}

footer.wp-block-template-part a {
    text-decoration: none;
}

footer.wp-block-template-part a:hover {
    color: var(--wp--preset--color--simonin-gold) !important;
}

/* Footer bottom bar: separator between legal menu items */
.copyright-row nav[aria-label="Stories"] .wp-block-navigation-item:not(:last-child)::after {
    content: "|";
    margin-left: 16px;
    opacity: 0.5;
}

/* Footer bottom bar: separator between copyright and address text */
.copyright-row .wp-block-group:has(+ nav[aria-label="Stories"])>p:not(:last-child)::after {
    content: "|";
    margin-left: 16px;
    opacity: 0.5;
}

.hero-form-card .simonin-field-row {
    margin-bottom: 14px;
}

.hero-form-card .simonin-field-row--split {
    display: flex;
    gap: 10px;
}

.hero-form-card .simonin-field-row--split .simonin-field-col {
    flex: 1;
}

.hero-form-card .simonin-field-row--split .simonin-field-col p {
    margin: 0;
}

.hero-form-card input.wpcf7-form-control::placeholder {
    color: #0051a9;
    opacity: 0.85;
}

.hero-form-card input.wpcf7-form-control:focus {
    border-color: #0051a9;
    background: #ffffff;
}

.hero-form-card .simonin-cta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-form-card input.wpcf7-submit.disabled,
.hero-form-card input.wpcf7-submit[disabled] {
    opacity: 0.6;
    cursor: default;
}

.hero-form-card .wpcf7-not-valid-tip {
    font-size: 12px;
    margin-top: 4px;
}

.hero-form-card .wpcf7-response-output {
    border-radius: 12px;
    margin-top: 14px;
}

/* Replace the default checkmark-list bullet with the brand blue check icon */
.is-style-checkmark-list.blue-check-icon {
    list-style: none;
    padding-inline-start: 0;
    max-width: 360px;
}

.is-style-checkmark-list.blue-check-icon li {
    position: relative;
    padding-inline-start: 1.6em;
}

.is-style-checkmark-list.blue-check-icon li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 1.2em;
    height: 1.2em;
    background-image: url('images/blue-checkicon.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

/* Live Google rating badge in the hero (replaces the old rating.png placeholder) */
.simonin-google-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    text-decoration: none;
    color: #ffffff;
}

.simonin-google-rating-score {
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: -1px;
}

.simonin-google-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.simonin-star {
    display: block;
    width: 16px;
    height: 15px;
}

.simonin-google-rating-count {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
}

.wp-block-button .wp-element-button {
    display: flex;
    gap: 10px;
    align-items: center;
    transition: 0.5s all;
    padding: 17px 40px 16px 40px;
}

.wp-block-button.is-style-outline .wp-element-button {
    padding: 16px 38px 15px;
}

.wp-block-button.is-style-outline .wp-element-button:hover {
    border-color: var(--wp--preset--color--simonin-blue);
    background: var(--wp--preset--color--simonin-blue);
    color: #ffffff;
}

.wp-block-button.is-style-blue-pill .wp-element-button {
    border: 2px solid var(--wp--preset--color--simonin-blue);
    background: var(--wp--preset--color--simonin-blue);
    color: #ffffff;
    padding: 19px 40px 16px 40px;
}

.wp-block-button.is-style-blue-pill .wp-element-button:hover {
    border-color: var(--wp--preset--color--simonin-blue);
    background: transparent;
    color: var(--wp--preset--color--simonin-blue);
}

.wp-block-button.is-style-white-pill .wp-element-button {
    background: var(--wp--preset--color--accent-5) !important;
    color: var(--wp--preset--color--simonin-blue);
}

.wp-block-button.is-style-white-pill .wp-element-button:hover {
    background: var(--wp--preset--color--simonin-blue) !important;
    color: #ffffff;
}

.wp-block-button.is-style-white-outline-pill .wp-element-button {
    border: 2px solid #ffffff;
    background: transparent;
    color: #ffffff;
    padding: 19px 40px 16px 40px;
}

.wp-block-button.is-style-white-outline-pill .wp-element-button:hover {
    color: #ffffff;
    background: var(--wp--preset--color--simonin-blue);
    border-color: var(--wp--preset--color--simonin-blue);
}

.reviews-section .simonin-google-rating .simonin-google-rating-score,
.reviews-section .simonin-google-rating .simonin-google-rating-count {
    color: var(--wp--preset--color--contrast) !important;
}

/* FAQ accordion (Yoast FAQ block): collapsed by default, toggled by script.js */
.schema-faq.wp-block-yoast-faq-block .schema-faq-section {
    border-bottom: 1px solid #e3e1dd;
    padding: 12px 0;
}

.schema-faq.wp-block-yoast-faq-block .schema-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    user-select: none;
    font-weight: 400;
    color: var(--wp--preset--color--contrast) !important;
}

.schema-faq.wp-block-yoast-faq-block .schema-faq-question::after {
    content: "";
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    background-image: url('images/arrow-down.svg');
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.25s ease;
}

.schema-faq.wp-block-yoast-faq-block .schema-faq-section.is-open .schema-faq-question::after {
    transform: rotate(180deg);
}

.schema-faq.wp-block-yoast-faq-block .schema-faq-answer {
    display: none;
    margin: 10px 0 0;
    font-size: 15px;
    color: var(--wp--preset--color--accent-4) !important;
}

.schema-faq.wp-block-yoast-faq-block .schema-faq-section.is-open .schema-faq-answer {
    display: block;
}

.simonin-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.simonin-contact-item::before {
    content: "";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.simonin-contact-item--location::before {
    background-image: url('images/location-icon.svg');
}

.simonin-contact-item--mail::before {
    background-image: url('images/mail-icon.svg');
}

.simonin-contact-item--clock::before {
    background-image: url('images/clock-icon.svg');
}



@media (max-width: 1024px) {
    footer.wp-block-template-part .wp-block-separator {
        width: 300px;
    }

    header.wp-block-template-part .wp-block-hidden-tablet {
        display: none !important;
    }

    header.wp-block-template-part .wp-block-hidden-desktop {
        display: flex !important;
    }
}

@media (min-width: 600px) and (max-width: 1023px) {
    header.wp-block-template-part nav[aria-label="Navigation"] .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: none;
    }

    header.wp-block-template-part nav[aria-label="Navigation"] .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: flex;
    }
}

@media (max-width: 781px) {
    .hero-style .wp-block-cover__image-background {
        transform: translateX(calc(-50% + 0px));
        bottom: 0px !important;
    }

    .badge-style .wp-block-group {
        right: 10px;
        top: -0px !important;
    }

    .hero-form-card {
        max-width: 100%;
    }

    .hero-form-card .wpcf7 {
        max-width: 100%;
    }

    footer.wp-block-template-part .wp-block-separator {
        width: 100%;
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }

    .copyright-row {
        flex-direction: column-reverse;
    }

    .copyright-row .wp-block-group {
        flex-direction: column-reverse;
    }

    .copyright-row nav ul {
        justify-content: center;
    }

    .copyright-row .wp-block-group:has(+ nav[aria-label="Stories"])>p:not(:last-child)::after {
        display: none;
    }

    .wp-block-heading {
        max-width: 100%;
    }

    footer.wp-block-template-part .wp-block-group {
        width: 100%;
    }

    .reduce-column-gap {
        gap: 30px;
    }

    .location-row {
        justify-content: center;
    }
}

@media (max-width: 480px) {

    .hero-form-card .simonin-field-row--split,
    .hero-form-card .simonin-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-form-card input.wpcf7-submit {
        max-width: none;
    }

    .badge-style .wp-block-group {
        right: unset !important;
        top: unset !important;
        position: relative;
        bottom: -60px;
    }

    .hero-style .wp-block-columns {
        gap: 0;
    }

    .hero-style .wp-block-columns .wp-block-column {
        padding: 0 !important;
    }

    .hero-about .wp-block-group {
        gap: 15px;
    }

    .hero-about .bordered-txt {
        padding: 0 15px !important;
    }

    .hero-form-card input.wpcf7-submit {
        padding: 20px 15px;
    }

    .hero-style {
        padding-top: 120px !important;
    }

    header.wp-block-template-part {
        top: 20px;
    }
}