/**
 * V11 Global Styling — Mezcaleria Chic
 *
 * Sitewide V11 overrides: nav, footer, sections, links, images, cookie consent.
 * Priority 77, cascades after v11-hero (76).
 */

/* ============================================
   NAVIGATION BAR
   ============================================ */

/* Semi-transparent dark nav background */
.site-header,
.main-navigation,
header.site-header,
.latoxica-header {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Nav links white on dark */
.main-navigation a,
.site-header a,
.latoxica-header a,
.latoxica-nav a {
    color: #ffffff;
    transition: color 0.3s ease;
}

/* Active nav item = rose accent */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation a:hover,
.latoxica-nav .current-menu-item > a,
.latoxica-nav a:hover {
    color: #EC2C91 !important;
}

/* Nav CTA button = pill rose */
.main-navigation a.btn,
.main-navigation a.cta,
.latoxica-header a.latoxica-button,
.latoxica-nav a[href*="reserver"],
.latoxica-nav a[href*="reservation"] {
    background: #EC2C91 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    padding: 0.5rem 1.5rem !important;
    font-weight: 600 !important;
}

.main-navigation a.btn:hover,
.main-navigation a.cta:hover,
.latoxica-header a.latoxica-button:hover,
.latoxica-nav a[href*="reserver"]:hover {
    background: #F2B119 !important;
    color: #1a1a1a !important;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer,
footer.site-footer,
.latoxica-footer {
    background: #1a1a1a !important;
    color: #ffffff !important;
}

.site-footer a,
.latoxica-footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.site-footer a:hover,
.latoxica-footer a:hover {
    color: #EC2C91;
}

/* Footer headings */
.site-footer h3,
.site-footer h4,
.latoxica-footer h3,
.latoxica-footer h4 {
    color: #ffffff;
}

/* Footer social icons */
.site-footer .social-icons a,
.latoxica-footer .social-icons a {
    color: #ffffff;
    transition: color 0.3s ease, transform 0.3s ease;
}

.site-footer .social-icons a:hover,
.latoxica-footer .social-icons a:hover {
    color: #EC2C91;
    transform: translateY(-2px);
}

/* ============================================
   SECTION BACKGROUNDS — ZEBRA PATTERN
   ============================================ */

/* Odd sections = dark (if using nth-child pattern) */
.entry-content > section:nth-child(odd),
.page-content > section:nth-child(odd) {
    background: #1a1a1a;
    color: #ffffff;
}

/* Even sections = cream */
.entry-content > section:nth-child(even),
.page-content > section:nth-child(even) {
    background: #faf7f2;
    color: #1a1a1a;
}

/* Override for explicitly classed sections */
.latoxica-bleed.v11-section-dark,
section.v11-section-dark {
    background: #1a1a1a !important;
    color: #ffffff !important;
}

.latoxica-bleed.v11-section-cream,
section.v11-section-cream {
    background: #faf7f2 !important;
    color: #1a1a1a !important;
}

/* ============================================
   SITEWIDE CTA BUTTONS
   ============================================ */

/* All buttons = pill-shaped */
.latoxica-button,
.latoxica-pill,
a.btn,
button.btn,
input[type="submit"],
.wp-block-button__link {
    border-radius: 999px !important;
}

/* Primary button colors */
.latoxica-button--primary,
.btn-primary,
.wp-block-button.is-style-fill .wp-block-button__link {
    background: #EC2C91 !important;
    border-color: #EC2C91 !important;
    color: #ffffff !important;
}

.latoxica-button--primary:hover,
.btn-primary:hover,
.wp-block-button.is-style-fill .wp-block-button__link:hover {
    background: #F2B119 !important;
    border-color: #F2B119 !important;
    color: #1a1a1a !important;
}

/* ============================================
   SECTION HEADINGS
   ============================================ */

/* Rose accents on key heading words */
h1 em,
h2 em,
h3 em,
.section-title em,
.latoxica-heading em {
    color: #EC2C91;
    font-style: italic;
}

/* Jaune accents (stars, highlights) */
.star-rating,
.latoxica-stars,
.rating-stars {
    color: #F2B119;
}

/* ============================================
   IMAGE TREATMENTS
   ============================================ */

/* Rounded corners on content images */
.entry-content img,
.page-content img,
.latoxica-card img,
article img {
    border-radius: 0.75rem;
}

/* Subtle shadow on images */
.entry-content img:not(.no-shadow),
.latoxica-card img {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================
   LINKS
   ============================================ */

/* Default link color in body text */
.entry-content a:not(.btn):not(.latoxica-button),
.page-content a:not(.btn):not(.latoxica-button) {
    color: #EC2C91;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
}

.entry-content a:not(.btn):not(.latoxica-button):hover,
.page-content a:not(.btn):not(.latoxica-button):hover {
    color: #F2B119;
}

/* Links in dark sections */
.v11-section-dark a:not(.btn):not(.latoxica-button),
section[style*="background: #1a1a1a"] a:not(.btn) {
    color: #EC2C91;
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */

.cookies-consent,
.cookie-banner,
.cc-banner,
#cookie-notice,
.latoxica-cookies {
    background: #222222 !important;
    color: #ffffff !important;
    border-top: 1px solid rgba(236, 44, 145, 0.3);
}

.cookies-consent a,
.cookie-banner a,
.cc-banner a,
#cookie-notice a {
    color: #EC2C91 !important;
}

/* Cookie accept button */
.cookies-consent .accept,
.cookie-banner .accept,
.cc-accept,
#cookie-notice .accept,
.latoxica-cookies .accept {
    background: #EC2C91 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
}

.cookies-consent .accept:hover,
.cookie-banner .accept:hover,
.cc-accept:hover {
    background: #F2B119 !important;
    color: #1a1a1a !important;
}

/* Cookie decline button */
.cookies-consent .decline,
.cookie-banner .decline,
.cc-decline,
.latoxica-cookies .decline {
    background: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    border-radius: 999px !important;
}

.cookies-consent .decline:hover,
.cookie-banner .decline:hover,
.cc-decline:hover {
    border-color: #EC2C91 !important;
    color: #EC2C91 !important;
}

/* ============================================
   CARDS
   ============================================ */

.latoxica-card,
.menu-card,
.location-card,
.blog-card {
    background: #222222;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latoxica-card:hover,
.menu-card:hover,
.location-card:hover,
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Card on cream background */
.v11-section-cream .latoxica-card,
.v11-section-cream .menu-card {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ============================================
   FORMS
   ============================================ */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    border-radius: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border-color: #EC2C91;
    outline: none;
}

/* Forms on cream background */
.v11-section-cream input[type="text"],
.v11-section-cream input[type="email"],
.v11-section-cream textarea {
    background: #ffffff;
    border-color: rgba(26, 26, 26, 0.2);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .main-navigation a.btn,
    .latoxica-nav a[href*="reserver"] {
        padding: 0.4rem 1rem !important;
        font-size: 0.8rem !important;
    }
}
