/*
Theme Name: Vestita.ch
Theme URI: 
Author: Armin Oppliger
Author URI: https://useit.ch/
Description: 
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vestita-ch
Tags: 
*/

/* Global */
a {
    text-decoration: underline;
}
a:hover {
    text-decoration: none;
}
a:focus,
input:focus,
button:focus {
    outline: none;
}

textarea {
    font-family: var(--wp--preset--font-family--open-sans);
}

.home header .header-wrapper {
    background: none !important;
}

.home-logos {
    background-color: #fff;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-top: 40px;
    padding-bottom: 40px;
    box-sizing: border-box;
}

.home-logos > * {
    max-width: 100%;
}

header nav a {
    text-transform: uppercase !important;
}

header .logo-nav > .wp-block-navigation {
    gap: 10px !important;
}

header .logo-nav .wp-block-navigation-item__content {
    display: inline-block;
    padding: 7px 12px;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease;
}

header .logo-nav .wp-block-navigation-item__content:hover,
header .logo-nav .wp-block-navigation-item__content:focus-visible,
header .logo-nav .current-menu-item > .wp-block-navigation-item__content,
header .logo-nav .current-menu-ancestor > .wp-block-navigation-item__content {
    background-color: #000;
    color: #fff;
    text-decoration: none;
}

@media (min-width: 783px) {
    header .logo-nav .wp-block-navigation__responsive-container-open {
        display: none;
    }

    header .logo-nav .wp-block-navigation__responsive-container:not(.hidden-by-default) {
        display: block;
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        background: transparent;
    }

    header .logo-nav .wp-block-navigation__responsive-container-content {
        padding: 0;
    }

    header .logo-nav .wp-block-navigation__responsive-container-close {
        display: none;
    }
}

/* Accordion */
.wp-block-accordion:not(.has-text-color) {
    color: #c2a78a;
}

.wp-block-accordion .wp-block-accordion-item {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-top: 1px solid currentColor;
}

.wp-block-accordion .wp-block-accordion-item:last-child {
    border-bottom: 1px solid currentColor;
}

.wp-block-accordion .wp-block-accordion-heading {
    margin: 0;
}

.wp-block-accordion .wp-block-accordion-heading__toggle {
    padding: 18px 0 !important;

    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wp-block-accordion .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title,
.wp-block-accordion .wp-block-accordion-heading__toggle:focus-visible .wp-block-accordion-heading__toggle-title {
    text-decoration: none;
}

.wp-block-accordion .wp-block-accordion-heading__toggle-title {
    padding-right: 16px;
}

.wp-block-accordion .wp-block-accordion-heading__toggle-icon {
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    font-size: 0;
    line-height: 0;
    transform: none !important;
}

.wp-block-accordion .wp-block-accordion-heading__toggle-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin-top: -2px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: transform 0.2s ease-in-out;
}

.wp-block-accordion-item.is-open > .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon::before {
    margin-top: 2px;
    transform: translate(-50%, -50%) rotate(-135deg);
}

.wp-block-accordion .wp-block-accordion-panel {
    padding: 0 0 18px !important;
}

.wp-block-accordion .wp-block-accordion-panel > :first-child {
    margin-top: 0;
}

.wp-block-accordion .wp-block-accordion-panel > :last-child {
    margin-bottom: 0;
}


/* Kollektion */
.width-110 {
    width: 110%;
    margin-left: -10%;
}
.width-110-right {
    width: 110%;
    margin-right: -10%;
}
.width-40-right {
    flex-basis: 40% !important;
    margin-right: -10% !important;
}
.width-40-left {
    flex-basis: 40% !important;
    margin-left: -10% !important;
}

.wp-block-button a {
    transition: background-color 0.2s ease, color 0.2s ease;
}
.wp-block-button a:hover {
    background: #ece3d2 !important;
    color: #c2a78a !important;
}

/* Team grid */
.vestita-team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 100px;
    justify-content: center;
}

.vestita-team-item {
    width: calc((100% - 200px) / 3);
    min-width: 0;
    margin: 0;
}

.vestita-team-item__image {
    margin: 0 0 1rem;
}

.vestita-team-item__photo {
    display: block;
    width: 100%;
    height: auto;
}

.vestita-team-item__position,
.vestita-team-item__email {
    margin: 0;
}

.vestita-team-item__email:last-child,
.vestita-team-item__position:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .vestita-team-item {
        width: calc((100% - 100px) / 2);
    }
}

@media (max-width: 600px) {
    .vestita-team-item {
        width: 100%;
    }
}

/* CF7 — Private Shopping form */
.vestita-cf7 {
    box-sizing: border-box;
    color: #000;
}

.vestita-cf7 p {
    margin: 0;
}

.vestita-cf7__row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.vestita-cf7__field {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
}

.vestita-cf7__field .wpcf7-form-control-wrap {
    display: block;
}

.vestita-cf7__field input[type="text"],
.vestita-cf7__field input[type="email"],
.vestita-cf7__field input[type="tel"] {
    width: 100%;
    box-sizing: border-box;
    min-height: 56px;
    padding: 14px 16px;
    border: 1px solid #CCBBAF;
    border-radius: 8px;
    background: rgba(236, 227, 210, 0.45);
    font: inherit;
    line-height: 1.4;
}

.vestita-cf7__field input::placeholder {
    opacity: 1;
}

.vestita-cf7__field input:focus {
    outline: none;
    border-color: #c2a78a;
}

.vestita-cf7__label {
    margin: 8px 0 14px;
}

p.vestita-cf7__radio {
    margin: 24px 0;
}

.vestita-cf7__radio .wpcf7-form-control-wrap {
    display: block;
}

.vestita-cf7__radio .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.vestita-cf7__radio .wpcf7-list-item {
    margin: 0;
}

.vestita-cf7__radio .wpcf7-list-item label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font: inherit;
}

.vestita-cf7__radio input[type="radio"] {
    margin: 0;
    accent-color: #000;
}

.vestita-cf7__field--textarea {
    margin-top: 16px;
}

.vestita-cf7__field--textarea textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 180px;
    padding: 14px 16px;
    border: 1px solid #CCBBAF;
    border-radius: 8px;
    background: rgba(236, 227, 210, 0.45);
    font: inherit;
    line-height: 1.5;
    resize: vertical;
}

.vestita-cf7__field--textarea textarea::placeholder {
    opacity: 1;
}

.vestita-cf7__field--textarea textarea:focus {
    outline: none;
    border-color: #c2a78a;
}

.vestita-cf7__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 40px;
    margin-top: 36px;
}

.vestita-cf7__response-text {
    flex: 1 1 280px;
    max-width: 520px;
    color: #000;
    font-size: 14px;
    line-height: 1.5;
}

.vestita-cf7__submit {
    flex: 0 0 auto;
    margin: 0;
}

.vestita-cf7__submit input[type="submit"] {
    display: inline-block;
    min-width: 150px;
    padding: 12px 40px;
    border: 1px solid #c2a78a;
    border-radius: 8px;
    background: #c2a78a;
    color: #000;
    font: inherit;
    font-size: inherit;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.vestita-cf7__submit input[type="submit"]:hover,
.vestita-cf7__submit input[type="submit"]:focus-visible {
    background: #b89678;
    border-color: #b89678;
    color: #000;
}

.vestita-cf7 .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #fff;
    font-size: 13px;
    position: absolute;
    bottom: -10px;
    background: #8b2e2e;
}

.vestita-cf7 .wpcf7-response-output {
    margin: 1.25em 0 0;
    padding: 0;
    border: 0;
    color: #000;
    font-size: 14px;
}

.vestita-cf7 .wpcf7-spinner {
    display: block;
    margin: 0 auto;
}

/* CF7 — Kontakt form */
.wp-block-contact-form-7-contact-form-selector:has(.vestita-cf7--kontakt) {
    max-width: none;
}

.vestita-cf7--kontakt .vestita-cf7__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, 56px);
    gap: 16px;
    align-items: stretch;
}

.vestita-cf7--kontakt .vestita-cf7__field {
    flex: none;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    height: 100%;
}

.vestita-cf7--kontakt .vestita-cf7__field--box .wpcf7-form-control-wrap {
    flex: 1;
    display: flex;
    min-height: 0;
}

.vestita-cf7--kontakt .vestita-cf7__field--message {
    grid-column: 3;
    grid-row: 1 / 3;
    min-height: 0;
}

.vestita-cf7--kontakt .vestita-cf7__field--message .wpcf7-form-control-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.vestita-cf7--kontakt .vestita-cf7__field--box input[type="text"],
.vestita-cf7--kontakt .vestita-cf7__field--box input[type="email"],
.vestita-cf7--kontakt .vestita-cf7__field--box input[type="tel"] {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid #CCBBAF;
    border-radius: 8px;
    background: rgba(236, 227, 210, 0.45);
    font: inherit;
    line-height: 1.4;
}

.vestita-cf7--kontakt .vestita-cf7__field--box input:focus {
    outline: none;
    border-color: #c2a78a;
}

.vestita-cf7--kontakt .vestita-cf7__field--message textarea {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #CCBBAF;
    border-radius: 8px;
    background: rgba(236, 227, 210, 0.45);
    font: inherit;
    line-height: 1.5;
    resize: none;
    box-sizing: border-box;
}

.vestita-cf7--kontakt .vestita-cf7__field--message textarea:focus {
    outline: none;
    border-color: #c2a78a;
}

.vestita-cf7--kontakt .vestita-cf7__submit--center {
    margin-top: 28px;
    text-align: center;
}

.vestita-cf7--kontakt .vestita-cf7__submit--center input[type="submit"] {
    min-width: 150px;
    padding: 12px 40px;
    background: #c2a78a;
    color: #000;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid #c2a78a;
    font-size: inherit;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vestita-cf7--kontakt .vestita-cf7__submit--center input[type="submit"]:hover,
.vestita-cf7--kontakt .vestita-cf7__submit--center input[type="submit"]:focus-visible {
    background: #b89678;
    border-color: #b89678;
    color: #000;
}

@media (max-width: 768px) {
    .vestita-cf7--kontakt .vestita-cf7__grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 16px;
    }

    .vestita-cf7--kontakt .vestita-cf7__field--message {
        grid-column: auto;
        grid-row: auto;
    }

    .vestita-cf7--kontakt .vestita-cf7__field--box input[type="text"],
    .vestita-cf7--kontakt .vestita-cf7__field--box input[type="email"],
    .vestita-cf7--kontakt .vestita-cf7__field--box input[type="tel"] {
        flex: none;
        height: 56px;
    }

    .vestita-cf7--kontakt .vestita-cf7__field--message textarea {
        flex: none;
        min-height: 180px;
        height: 180px;
    }
}

@media (max-width: 640px) {
    .vestita-cf7__row {
        gap: 0;
        margin-bottom: 0;
    }

    .vestita-cf7__field {
        flex: 1 1 100%;
        margin-bottom: 28px;
    }

    .vestita-cf7--kontakt .vestita-cf7__field {
        margin-bottom: 0;
    }

    .vestita-cf7__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .vestita-cf7__submit input[type="submit"] {
        width: 100%;
    }

    .vestita-cf7--kontakt .vestita-cf7__submit--center input[type="submit"] {
        width: 100%;
    }
}

/* Footer */
footer {
    margin: 0;
    padding: 0;
}
.vestita-footer-image {
    max-width: 100%;
}
.vestita-footer-image img {
    width: 100%;
    height: auto;
}

li.wp-social-link-facebook,
li.wp-social-link-instagram {
    background: none !important;
}
.wp-social-link-facebook a,
.wp-social-link-instagram a {
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0 !important;
}
.wp-social-link-facebook a::before,
.wp-social-link-instagram a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    background: url(images/fb-icon.svg) no-repeat center center;
    background-size: cover !important;
}
.wp-social-link-instagram a::before {
    background: url(images/insta-icon.svg) no-repeat center center !important;
    background-size: cover !important;
}
.wp-social-link-facebook a svg,
.wp-social-link-instagram a svg {
    display: none;
}