/*
Theme Name: House of Cherry
Theme URI: https://example.com/house-of-cherry
Author: OpenAI
Author URI: https://openai.com/
Description: A custom WordPress theme for House of Cherry.
Version: 1.1.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: house-of-cherry
*/

:root {
    --color-black: #000000;
    --color-setting-plaster: #f2e6e6;
    --color-deep-cherry: #732633;
    --color-charcoal: #2b2b2b;
    --color-stone: #d8d2cf;
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "Montserrat", "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-setting-plaster);
    color: var(--color-black);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
iframe {
    max-width: 100%;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    clip: auto !important;
    clip-path: none;
    display: block;
    height: auto;
    left: 16px;
    top: 16px;
    width: auto;
    z-index: 100000;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    padding: 8px 16px;
    background-color: var(--color-black);
    color: var(--color-setting-plaster);
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    z-index: 200;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

.cherry-icon {
    position: fixed;
    top: 28px;
    right: 32px;
    width: 28px;
    height: 36px;
    z-index: 100;
    opacity: 0.18;
    display:none;
}

.cherry-icon__cherry-left,
.cherry-icon__cherry-right {
    position: absolute;
    border-radius: 50%;
    background-color: var(--color-black);
}

.cherry-icon__cherry-left {
    width: 12px;
    height: 12px;
    bottom: 0;
    left: 2px;
}

.cherry-icon__cherry-right {
    width: 12px;
    height: 12px;
    bottom: 0;
    right: 2px;
}

.cherry-icon__stem-left,
.cherry-icon__stem-right {
    position: absolute;
    background-color: var(--color-black);
    width: 1.5px;
    height: 20px;
    bottom: 10px;
    transform-origin: bottom center;
}

.cherry-icon__stem-left {
    left: 8px;
    transform: rotate(12deg);
}

.cherry-icon__stem-right {
    right: 8px;
    transform: rotate(-12deg);
}

.cherry-icon__leaf {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%) rotate(-15deg);
    width: 8px;
    height: 5px;
    background-color: var(--color-black);
    border-radius: 0 50% 50% 50%;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 32px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
}

.header__logo {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-black);
    text-decoration: none;
    transition: opacity 0.4s ease;
}

.header__logo-image {
    display: block;
    width: min(320px, 42vw);
    height: auto;
}

.header__logo:hover {
    opacity: 0.6;
}

.header__nav {
    display: flex;
    gap: 40px;
    list-style: none;
}

.header__nav-link {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-black);
    text-decoration: none;
    transition: opacity 0.4s ease;
}

.header__nav-link:hover,
.header__nav-link:focus-visible {
    opacity: 0.5;
}

.header__nav-link:focus-visible {
    outline: 1px solid var(--color-deep-cherry);
    outline-offset: 4px;
}

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 24px 80px;
    text-align: center;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(242, 230, 230, 0.7);
    z-index: 1;
}

.hero__wordmark {
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.4rem, 8.5vw, 9rem);
    line-height: 1.05;
    letter-spacing: 0.06em;
    color: var(--color-black);
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.hero__accent-line {
    position: relative;
    z-index: 2;
    width: 0;
    height: 1px;
    background-color: var(--color-deep-cherry);
    margin: 36px auto 32px;
    animation: drawLine 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;
}

.hero__tagline {
    position: relative;
    z-index: 2;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(0.65rem, 1.1vw, 0.85rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-black);
    opacity: 0;
    animation: fadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 2.2s forwards;
}

html.reveal-js .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

html.reveal-js .reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

.section-heading {
    text-align: center;
    margin-bottom: 64px;
}

.section-heading__title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-black);
}

.section-heading__line {
    width: 40px;
    height: 1px;
    background-color: var(--color-deep-cherry);
    margin: 20px auto 0;
}

.section-heading__subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    color: var(--color-charcoal);
    margin-top: 16px;
}

.intro {
    padding: 140px 24px;
    background-color: #ffffff;
}

.intro__text {
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.4rem, 2.8vw, 1.85rem);
    line-height: 1.65;
    text-align: center;
    color: var(--color-black);
}

.brands {
    padding: 120px 24px 140px;
    background-color: var(--color-setting-plaster);
}

.brands__list {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.brand-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.brand-card--reverse .brand-card__image-container {
    order: 2;
}

.brand-card--reverse .brand-card__content {
    order: 1;
}

.brand-card__image-container {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.brand-card__image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-card__image-container:hover img {
    transform: scale(1.03);
}

.brand-card__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    color: var(--color-black);
    margin-bottom: 20px;
}

.brand-card__description {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: var(--color-charcoal);
    margin-bottom: 28px;
}

.brand-card__link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-black);
    text-decoration: none;
    transition: color 0.4s ease;
}

.brand-card__link:hover,
.brand-card__link:focus-visible {
    color: var(--color-deep-cherry);
}

.brand-card__link:focus-visible {
    outline: 1px solid var(--color-deep-cherry);
    outline-offset: 4px;
}

.map-section {
    padding: 120px 24px 100px;
    background-color: var(--color-stone);
    position: relative;
    overflow: hidden;
}

.map-section__bg-texture {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.map-section__bg-texture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.06;
}

.map-section__container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.map-section__content {
    display: grid;
    /*grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);*/
    gap: 60px;
    align-items: start;
}

.map-section__map-column,
.map-section__contact-column {
    min-width: 0;
}

.map-section__map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    /*min-height: 500px;
    background-color: rgba(255, 255, 255, 0.35);*/
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    margin-bottom: 40px;
    overflow: hidden;
}

.map-section__contact-card {
    background-color: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 26px 24px 24px;
    backdrop-filter: blur(8px);
    min-height: 500px;
}

.map-section__contact-heading {
    margin-bottom: 22px;
}

.map-section__legend {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.map-section__legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-section__legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.map-section__legend-dot--bistrot {
    background-color: #1a1a2e;
}

.map-section__legend-dot--gusto {
    background-color: #c4b5a0;
}

.map-section__legend-dot--maison {
    background-color: var(--color-deep-cherry);
}

.map-section__legend-label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-charcoal);
}

.contact-section__notice {
    margin: 0 auto 0;
    padding: 16px 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
    line-height: 1.6;
    text-align: center;
}

.contact-section__notice--success {
    background-color: rgba(216, 240, 222, 0.55);
    border-color: rgba(63, 122, 79, 0.22);
    color: #24442f;
}

.contact-section__notice--error {
    background-color: rgba(244, 223, 223, 0.6);
    border-color: rgba(115, 38, 51, 0.22);
    color: var(--color-deep-cherry);
}

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form .wpcf7 {
    width: 100%;
}

.contact-form .wpcf7 form {
    display: grid;
    gap: 14px;
}

.contact-form .wpcf7 p {
    margin: 0;
}

.contact-form .wpcf7-form-control-wrap {
    display: block;
    margin-top: 6px;
}

.contact-form label {
    display: grid;
    gap: 0;
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-black);
}

.contact-form__field {
    display: grid;
    gap: 10px;
}

.contact-form__label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contact-form .wpcf7-text,
.contact-form .wpcf7-email,
.contact-form .wpcf7-tel,
.contact-form .wpcf7-textarea {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 240, 240, 0.88));
    color: var(--color-black);
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    border-radius: 0;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.contact-form__input:focus,
.contact-form .wpcf7-text:focus,
.contact-form .wpcf7-email:focus,
.contact-form .wpcf7-tel:focus,
.contact-form .wpcf7-textarea:focus {
    outline: none;
    border-color: var(--color-deep-cherry);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(115, 38, 51, 0.08);
    transform: translateY(-1px);
}

.contact-form__input--textarea {
    resize: vertical;
    min-height: 160px;
}

.contact-form .wpcf7-textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .wpcf7-submit {
    justify-self: start;
    border: 1px solid var(--color-black);
    background-color: var(--color-black);
    color: var(--color-setting-plaster);
    padding: 13px 20px;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border-radius: 0;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.contact-form__submit:hover,
.contact-form__submit:focus-visible,
.contact-form .wpcf7-submit:hover,
.contact-form .wpcf7-submit:focus-visible {
    background-color: var(--color-deep-cherry);
    border-color: var(--color-deep-cherry);
    color: #ffffff;
}

.contact-form__submit:focus-visible,
.contact-form .wpcf7-submit:focus-visible {
    outline: 1px solid var(--color-deep-cherry);
    outline-offset: 4px;
}

.contact-form .wpcf7-spinner {
    margin: 0 0 0 12px;
    vertical-align: middle;
}

.contact-form .wpcf7 form .wpcf7-response-output {
    margin: 0;
    padding: 12px 14px;
    border-width: 1px;
    font-size: 0.8rem;
    line-height: 1.6;
}

.contact-form .wpcf7 form.sent .wpcf7-response-output {
    background-color: rgba(216, 240, 222, 0.55);
    border-color: rgba(63, 122, 79, 0.22);
    color: #24442f;
}

.contact-form .wpcf7 form.invalid .wpcf7-response-output,
.contact-form .wpcf7 form.failed .wpcf7-response-output,
.contact-form .wpcf7 form.aborted .wpcf7-response-output,
.contact-form .wpcf7 form.spam .wpcf7-response-output,
.contact-form .wpcf7 form.unaccepted .wpcf7-response-output {
    background-color: rgba(244, 223, 223, 0.6);
    border-color: rgba(115, 38, 51, 0.22);
    color: var(--color-deep-cherry);
}

.contact-form .wpcf7-not-valid-tip {
    margin-top: 6px;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: var(--color-deep-cherry);
}

.footer {
    background-color: var(--color-charcoal);
    color: var(--color-setting-plaster);
    padding: 74px 48px 0;
}

.footer__grid {
    max-width: 1380px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, 1.45fr) minmax(180px, 0.9fr) minmax(190px, 0.95fr) minmax(220px, 1fr);
    column-gap: 92px;
    row-gap: 32px;
    padding-bottom: 76px;
}

.footer__brand-wordmark {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--color-setting-plaster);
    margin-bottom: 30px;
    line-height: 1.4;
}

.footer__brand-icon {
    display: inline-block;
    position: relative;
    width: 20px;
    height: 26px;
    margin-bottom: 22px;
    opacity: 0.34;
}

.footer__brand-icon-cherry-left,
.footer__brand-icon-cherry-right {
    position: absolute;
    border-radius: 50%;
    background-color: var(--color-setting-plaster);
}

.footer__brand-icon-cherry-left {
    width: 8px;
    height: 8px;
    bottom: 0;
    left: 1px;
}

.footer__brand-icon-cherry-right {
    width: 8px;
    height: 8px;
    bottom: 0;
    right: 1px;
}

.footer__brand-icon-stem-left,
.footer__brand-icon-stem-right {
    position: absolute;
    background-color: var(--color-setting-plaster);
    width: 1px;
    height: 14px;
    bottom: 7px;
    transform-origin: bottom center;
}

.footer__brand-icon-stem-left {
    left: 5px;
    transform: rotate(12deg);
}

.footer__brand-icon-stem-right {
    right: 5px;
    transform: rotate(-12deg);
}

.footer__brand-icon-leaf {
    position: absolute;
    top: 1px;
    left: 50%;
    transform: translateX(-50%) rotate(-15deg);
    width: 6px;
    height: 4px;
    background-color: var(--color-setting-plaster);
    border-radius: 0 50% 50% 50%;
}

.footer__brand-tagline {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.75rem;
    line-height: 1.55;
    letter-spacing: 0.01em;
    color: var(--color-setting-plaster);
    opacity: 0.6;
    max-width: 345px;
}

.footer__heading {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-setting-plaster);
    margin-bottom: 28px;
}

.footer__links,
.footer__social-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.footer__link,
.footer__social-handle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    color: var(--color-setting-plaster);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.4s ease, color 0.4s ease;
}

.footer__social-handle {
    display: block;
    font-size: 0.8rem;
    line-height: 1.4;
}

.footer__link:hover,
.footer__link:focus-visible,
.footer__social-handle:hover,
.footer__social-handle:focus-visible {
    opacity: 1;
    color: var(--color-deep-cherry);
}

.footer__link:focus-visible,
.footer__social-handle:focus-visible,
.footer__legal-link:focus-visible {
    outline: 1px solid var(--color-deep-cherry);
    outline-offset: 4px;
}

.footer__social-brand {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-setting-plaster);
    opacity: 0.4;
    margin-bottom: 5px;
    display: block;
}

.footer__bottom {
    border-top: 1px solid rgba(242, 230, 230, 0.1);
    padding: 34px 0 26px;
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__copyright,
.footer__legal-link {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    color: var(--color-setting-plaster);
    opacity: 0.4;
}

.footer__legal {
    display: flex;
    gap: 38px;
    list-style: none;
}

.footer__legal-link {
    text-decoration: none;
    transition: opacity 0.4s ease, color 0.4s ease;
}

.footer__legal-link:hover,
.footer__legal-link:focus-visible {
    opacity: 1;
    color: var(--color-deep-cherry);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drawLine {
    to {
        width: 60px;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__wordmark {
        animation: none;
        opacity: 1;
        transform: translateY(0);
    }

    .hero__accent-line {
        animation: none;
        width: 60px;
    }

    .hero__tagline {
        animation: none;
        opacity: 1;
    }

    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }

    .brand-card__image-container img {
        transition: none;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 24px 24px;
    }

    .header__logo {
        font-size: 0.7rem;
        letter-spacing: 0.18em;
    }

    .header__logo-image {
        width: min(250px, 58vw);
    }

    .header__nav {
        gap: 24px;
    }

    .header__nav-link {
        font-size: 0.6rem;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero__accent-line {
        margin: 28px auto 24px;
    }

    .cherry-icon {
        top: 22px;
        right: 24px;
        width: 22px;
        height: 30px;
    }

    .cherry-icon__cherry-left,
    .cherry-icon__cherry-right {
        width: 10px;
        height: 10px;
    }

    .cherry-icon__stem-left,
    .cherry-icon__stem-right {
        height: 16px;
    }

    .intro {
        padding: 100px 24px;
    }

    .intro__text {
        font-size: clamp(1.2rem, 4.5vw, 1.6rem);
    }

    .brands {
        padding: 80px 24px 100px;
    }

    .brands__list {
        gap: 72px;
    }

    .brand-card {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .brand-card--reverse .brand-card__image-container,
    .brand-card--reverse .brand-card__content {
        order: 0;
    }

    .brand-card__image-container {
        height: 280px;
    }

    .map-section {
        padding: 80px 24px 72px;
    }

    .map-section__content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .map-section__contact-card {
        padding: 24px 20px 20px;
    }

    .map-section__legend {
        gap: 28px;
    }

    .footer {
        padding: 60px 24px 0;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 40px;
        row-gap: 36px;
        padding-bottom: 56px;
    }
}

@media (max-width: 480px) {
    .header {
        flex-direction: column;
        gap: 16px;
        padding: 20px 20px;
    }

    .header__nav {
        gap: 20px;
    }

    .header__logo-image {
        width: min(220px, 70vw);
    }

    .hero__wordmark {
        font-size: clamp(2rem, 12vw, 3.2rem);
    }

    .cherry-icon {
        display: none;
    }

    .intro {
        padding: 80px 20px;
    }

    .brands {
        padding: 64px 20px 80px;
    }

    .section-heading {
        margin-bottom: 48px;
    }

    .brand-card__image-container {
        height: 220px;
    }

    .brand-card__name {
        font-size: 1.5rem;
    }

    .map-section__legend {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

