/**
 * Wild Woman Enterprise — global layout (header, mobile nav, forms)
 */

/* ── Site header (all public pages) ── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid rgba(196, 149, 106, 0.15);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.header.scrolled {
    background: rgba(26, 26, 26, 1);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav a {
    color: var(--satin-weave, #F5F0E8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav a:hover {
    color: var(--leather-tan, #C4956A);
}

.logo-text {
    color: var(--satin-weave, #F5F0E8);
}

.logo-text:hover {
    color: var(--leather-tan, #C4956A);
}

/* ── Header logo (no stretch) ── */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.logo-container-inner {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #ffe8d6;
    border: 3px solid #ffe8d6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-container .logo,
.logo-container-inner .logo,
.logo-container-inner img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    flex-shrink: 0;
    margin: auto;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--satin-weave, #F5F0E8);
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.header-actions {
    display: none;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1002;
}

/* ── Mobile menu button ── */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(245, 240, 232, 0.12);
    border: 1px solid rgba(196, 149, 106, 0.5);
    border-radius: 10px;
    color: #F5F0E8;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1002;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
    background: rgba(196, 149, 106, 0.2);
    color: var(--leather-tan, #C4956A);
    outline: none;
}

.mobile-menu-btn__bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 22px;
}

.mobile-menu-btn__bars span {
    display: block;
    height: 2px;
    width: 100%;
    background: #F5F0E8;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-menu-btn.is-open .mobile-menu-btn__bars span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-open .mobile-menu-btn__bars span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.is-open .mobile-menu-btn__bars span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav overlay ── */
.wwe-mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 2100;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.3s ease;
}

.wwe-mobile-nav.is-open {
    pointer-events: auto;
    visibility: visible;
}

.wwe-mobile-nav__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wwe-mobile-nav.is-open .wwe-mobile-nav__backdrop {
    opacity: 1;
}

.wwe-mobile-nav__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100%;
    background: #1A1A1A;
    border-left: 1px solid rgba(196, 149, 106, 0.2);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    overflow-y: auto;
}

.wwe-mobile-nav.is-open .wwe-mobile-nav__panel {
    transform: translateX(0);
}

.wwe-mobile-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(196, 149, 106, 0.15);
}

.wwe-mobile-nav__head span {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #F5F0E8;
    letter-spacing: 0.06em;
}

.wwe-mobile-nav__close {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: #C4956A;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wwe-mobile-nav__links {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem 2rem;
    gap: 0.25rem;
}

.wwe-mobile-nav__links a {
    display: block;
    padding: 0.85rem 1rem;
    color: #F5F0E8;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

.wwe-mobile-nav__links a:hover,
.wwe-mobile-nav__links a:focus-visible {
    background: rgba(196, 149, 106, 0.15);
    color: #C4956A;
}

.wwe-mobile-nav__links .nav-cta-mobile {
    background: #C4956A !important;
    color: #1A1A1A !important;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.wwe-mobile-nav__links .nav-cta-mobile:hover {
    background: #8B4A2B !important;
    color: #F5F0E8 !important;
}

body.wwe-menu-open {
    overflow: hidden;
}

/* ── Cart header button ── */
.cart-header-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--satin-weave, #F5F0E8);
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.cart-header-btn:hover {
    color: var(--leather-tan, #C4956A);
}

.cart-header-btn--mobile {
    display: none;
}

/* ── Forms (shared) ── */
@media (max-width: 768px) {
    .form-grid,
    .cart-checkout .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .form-group input:not([type="checkbox"]):not([type="radio"]),
    .form-group select,
    .form-group textarea,
    .cart-checkout-form input:not([type="checkbox"]):not([type="radio"]),
    .cart-checkout-form select,
    .cart-checkout-form textarea {
        font-size: 16px; /* prevents iOS zoom on focus */
    }

    .contact-form {
        padding: 1.75rem 1.25rem !important;
    }

    main {
        padding-top: 88px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none !important;
    }

    .header-actions {
        display: flex;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .nav .cart-header-btn {
        display: none !important;
    }

    .cart-header-btn--mobile {
        display: inline-flex !important;
    }

    .header-container {
        padding: 0.75rem 1rem;
    }

    .logo-container-inner {
        width: 44px;
        height: 44px;
    }

    .logo-container .logo,
    .logo-container-inner .logo,
    .logo-container-inner img {
        max-width: 100%;
        max-height: 100%;
    }

    .logo-text {
        font-size: 0.72rem;
        letter-spacing: 0.06em;
        white-space: normal;
        max-width: 9.5rem;
    }
}

@media (max-width: 400px) {
    .logo-text {
        display: none;
    }

    .logo-container {
        flex: 0 0 auto;
    }
}

@media (min-width: 769px) {
    .header-actions {
        display: none !important;
    }

    .cart-header-btn--mobile {
        display: none !important;
    }
}

/* Override page-level logo rules that stretch the mark */
.header .logo-container-inner img.logo,
.header .logo-container-inner .logo {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

/* Footer newsletter + forms on small screens */
@media (max-width: 768px) {
    .wwe-newsletter-input,
    .wwe-newsletter-btn {
        font-size: 16px;
    }

    .wwe-newsletter-form {
        width: 100%;
    }

    .wwe-footer {
        padding: 3rem 1.25rem 1.5rem;
    }

    .form-group input:not([type="checkbox"]):not([type="radio"]),
    .form-group select,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ── Contact form inquiry checkboxes (all pages) ── */
.inquiry-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    margin-top: 0.5rem;
}

.inquiry-checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0.65rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0.5rem 0 !important;
    font-weight: 400 !important;
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
    text-align: left !important;
    cursor: pointer;
    box-sizing: border-box;
}

.inquiry-checkbox-label input[type="checkbox"] {
    flex: 0 0 auto !important;
    width: 1.125rem !important;
    height: 1.125rem !important;
    min-width: 1.125rem !important;
    min-height: 1.125rem !important;
    max-width: 1.125rem !important;
    margin: 0.2rem 0 0 0 !important;
    padding: 0 !important;
    accent-color: var(--leather-tan, #C4956A);
}

.inquiry-checkbox-label span {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

/* Field labels only — not checkbox option labels */
.form-group > label:not(.inquiry-checkbox-label) {
    display: block;
    margin-bottom: 0.5rem;
}

@media (min-width: 769px) {
    .inquiry-checkboxes--multi-col {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem 1rem;
    }
}

/* ── Buttons: centered label text (site-wide) ── */
.btn,
a.btn,
button.btn,
.form-submit .btn,
.form-submit button[type="submit"],
.wwe-newsletter-btn,
.btn-add-to-cart,
.shop-btn,
.lindsay-btn,
.lindsay-btn-primary,
.cart-drawer-checkout-btn,
.modal-close-btn,
.lp-card-cta,
.lp-booking-btn,
.sh-booking-btn,
.sh-feat-card-btn,
.sh-preview-card-btn,
.art-spotlight-btn,
.art-commission-btn,
.ps-feat-btn,
.ps-mini-btn,
.pdir-item-cta,
.filter-btn,
.nav-cta,
.nav-cta-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

button[type="submit"]:not(.mobile-menu-btn):not(.cart-drawer-close):not(.wwe-mobile-nav__close),
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Full-width buttons keep centered text */
.form-submit .btn,
.wwe-newsletter-btn,
.btn.w-full,
button.w-full.btn-add-to-cart {
    width: 100%;
    justify-content: center;
}

/* Brown / dark CTAs — keep cream text on hover (<a> default link color overrides otherwise) */
.lp-card-cta,
.lp-card-cta:hover,
.lp-card-cta:focus-visible,
.lp-booking-btn,
.lp-booking-btn:hover,
.lp-booking-btn:focus-visible,
.sh-booking-btn,
.sh-booking-btn:hover,
.sh-booking-btn:focus-visible,
.shop-btn,
.shop-btn:hover:not(:disabled),
.lindsay-btn-primary,
.lindsay-btn-primary:hover,
.ai-cta:not(:disabled),
.ai-cta:hover:not(:disabled),
.pi-cta:not(:disabled),
.pi-cta:hover:not(:disabled),
.bs-btn:not(:disabled),
.bs-btn:hover:not(:disabled),
.btn-add-to-cart:not(.btn-add-to-cart--outline):not(:disabled),
.btn-add-to-cart:not(.btn-add-to-cart--outline):hover:not(:disabled),
.cart-drawer-checkout-btn,
.cart-drawer-checkout-btn:hover,
.art-commission-btn,
.art-commission-btn:hover,
a.btn.btn-primary,
a.btn.btn-primary:hover,
button.btn.btn-primary:hover {
    color: #F5F0E8 !important;
}

button.btn.btn-primary,
.btn.btn-primary {
    color: #F5F0E8;
}
