/* =========================================================
   BRANDI ELISE SZEKER — HOMEPAGE CUSTOM STYLES (v2)
   Paste into: WP Admin → Appearance → Customize → Additional CSS
   Apply matching CSS classes to widgets via:
   Elementor → widget → Advanced tab → CSS Classes
   ========================================================= */

/* ---------- 1. GLOBAL TOKENS ---------- */
:root {
    --brandi-blood: #961b1e;
    --brandi-blood-deep: #6b1214;
    --brandi-gold: #c0894c;
    --brandi-gold-soft: #d9a872;
    --brandi-ink: #2a2a2a;
    --brandi-ink-dark: #0d0a0a;
    --brandi-bone: #d8c8b4;
    --brandi-whisper: rgba(216, 200, 180, 0.7);
    --brandi-line: rgba(192, 137, 76, 0.18);
}

/* ---------- 2. SITE-WIDE EFFECTS ---------- */

/* Smooth scroll for anchor links */
html { scroll-behavior: smooth; }

/* Film grain overlay across the whole site */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 3. NAVIGATION ---------- */

/* Apply .brandi-nav to the header section */
.brandi-nav {
    backdrop-filter: blur(2px);
    transition: background 0.3s ease, padding 0.3s ease;
}

/* Apply .brandi-nav-link to the nav menu widget */
.brandi-nav-link .elementor-nav-menu li a {
    position: relative;
    transition: color 0.3s ease;
}
.brandi-nav-link .elementor-nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--brandi-gold);
    transition: width 0.3s ease, left 0.3s ease;
}
.brandi-nav-link .elementor-nav-menu li a:hover::after {
    width: 100%;
    left: 0;
}

/* ---------- 4. HERO SECTION ---------- */

/* Apply .brandi-hero-eyebrow to the eyebrow heading widget */
.brandi-hero-eyebrow {
    text-align: center;
}
.brandi-hero-eyebrow .elementor-heading-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.brandi-hero-eyebrow .elementor-heading-title::before,
.brandi-hero-eyebrow .elementor-heading-title::after {
    content: '✦';
    color: var(--brandi-gold-soft);
    opacity: 0.7;
    font-size: 0.9em;
    line-height: 1;
}

/* Apply .brandi-hero-headline to the main h1 heading widget */
.brandi-hero-headline .elementor-heading-title {
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

/* Apply .brandi-hero-sub to the subtitle text editor widget */
.brandi-hero-sub,
.brandi-hero-sub p {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9);
}

/* Apply .brandi-scroll-cue to the "↓ ENTER" heading at the bottom of hero */
.brandi-scroll-cue {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: brandi-bob 2.5s ease-in-out infinite;
}
@keyframes brandi-bob {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
    50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ---------- 5. BUTTONS (universal hover wipe) ---------- */

/* Apply .brandi-btn to any Button widget for the gold wipe effect */
.brandi-btn .elementor-button {
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease;
    z-index: 1;
}
.brandi-btn .elementor-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--brandi-gold);
    transition: left 0.4s ease;
    z-index: -1;
}
.brandi-btn .elementor-button:hover::before {
    left: 0;
}
.brandi-btn .elementor-button:hover {
    color: var(--brandi-ink-dark) !important;
}

/* Keep the button text above the wipe layer */
.brandi-btn .elementor-button-content-wrapper,
.brandi-btn .elementor-button-text,
.brandi-btn .elementor-button-icon {
    position: relative;
    z-index: 2;
}

/* Primary blood-red button variant — add this class WITH .brandi-btn for the hero CTA */
.brandi-btn-primary .elementor-button::before {
    background: var(--brandi-blood-deep);
}
.brandi-btn-primary .elementor-button:hover {
    color: var(--brandi-bone) !important;
}

/* ---------- 6. BOOK CARDS ---------- */

/* Apply .brandi-book-cover to each book cover IMAGE widget */
.brandi-book-cover {
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.brandi-book-cover .elementor-widget-container {
    overflow: hidden;
    border: 1px solid var(--brandi-line);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(192, 137, 76, 0.05);
    transition: box-shadow 0.5s ease;
}
.brandi-book-cover:hover {
    transform: translateY(-8px);
}
.brandi-book-cover:hover .elementor-widget-container {
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(150, 27, 30, 0.3);
}
.brandi-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Apply .brandi-buy-btn to each Amazon / B&N Button widget */
.brandi-buy-btn .elementor-button {
    border: 1px solid var(--brandi-line) !important;
    color: var(--brandi-whisper) !important;
    background: transparent !important;
    transition: all 0.3s ease;
}
.brandi-buy-btn .elementor-button:hover {
    border-color: var(--brandi-gold) !important;
    color: var(--brandi-gold) !important;
}

/* ---------- 7. ABOUT SECTION ---------- */

/* Apply .brandi-about-images to the COLUMN wrapping both author photos */
.brandi-about-images {
    position: relative;
    aspect-ratio: 4 / 5;
    max-width: 480px;
}

/* Apply .brandi-author-main to the main (crown) photo IMAGE widget */
.brandi-author-main {
    position: absolute !important;
    inset: 0 25% 15% 0;
    z-index: 1;
}
.brandi-author-main .elementor-widget-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--brandi-line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.brandi-author-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Apply .brandi-author-secondary to the smaller (mask) photo IMAGE widget */
.brandi-author-secondary {
    position: absolute !important;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 50%;
    z-index: 2;
}
.brandi-author-secondary .elementor-widget-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 4px solid var(--brandi-ink-dark);
    box-shadow:
        0 0 0 1px var(--brandi-line),
        0 30px 60px rgba(0, 0, 0, 0.8);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.brandi-author-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.brandi-about-images:hover .brandi-author-main .elementor-widget-container {
    transform: translate(-4px, -4px);
}
.brandi-about-images:hover .brandi-author-secondary .elementor-widget-container {
    transform: translate(4px, 4px);
}

/* Apply .brandi-about-sig to the "— Brandi" signature heading */
.brandi-about-sig .elementor-heading-title {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}
.brandi-about-sig .elementor-heading-title::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--brandi-gold);
    flex-shrink: 0;
}

/* ---------- 8. REVIEWS SECTION ---------- */

/* Apply .brandi-reviews-section to the entire reviews SECTION wrapper */
.brandi-reviews-section {
    position: relative;
}
.brandi-reviews-section::before,
.brandi-reviews-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brandi-gold), transparent);
    opacity: 0.3;
}
.brandi-reviews-section::before { top: 0; }
.brandi-reviews-section::after { bottom: 0; }

/* Apply .brandi-review-card to each review COLUMN (or inner section) */
.brandi-review-card {
    position: relative;
    transition: all 0.4s ease;
}
.brandi-review-card::before {
    content: '"';
    position: absolute;
    top: 8px;
    left: 16px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 80px;
    color: var(--brandi-gold);
    opacity: 0.25;
    line-height: 1;
    pointer-events: none;
    z-index: 1;
}
.brandi-review-card:hover {
    border-color: rgba(192, 137, 76, 0.4) !important;
    transform: translateY(-4px);
}
/* Make sure review text stays above the decorative quote mark */
.brandi-review-card > .elementor-widget-wrap,
.brandi-review-card > .e-con-inner {
    position: relative;
    z-index: 2;
}

/* ---------- 9. NEWSLETTER FORM ---------- */

/* Apply .brandi-newsletter-form to the MC4WP form wrapper widget */
.brandi-newsletter-form form,
.brandi-newsletter-form .mc4wp-form-fields {
    max-width: 500px;
    margin: 40px auto 16px;
    border: 1px solid var(--brandi-line);
    background: rgba(20, 10, 11, 0.5);
    display: flex;
}
.brandi-newsletter-form input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    padding: 18px 24px;
    color: var(--brandi-bone);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 16px;
    outline: none;
}
.brandi-newsletter-form input[type="email"]::placeholder {
    color: rgba(216, 200, 180, 0.4);
    font-style: italic;
}
.brandi-newsletter-form input[type="submit"],
.brandi-newsletter-form button[type="submit"] {
    background: var(--brandi-blood);
    color: var(--brandi-bone);
    border: none;
    padding: 18px 32px;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}
.brandi-newsletter-form input[type="submit"]:hover,
.brandi-newsletter-form button[type="submit"]:hover {
    background: var(--brandi-blood-deep);
}

/* ---------- 10. SOCIAL CARDS ---------- */

/* Apply .brandi-social-card to each Icon Box widget in the Connect section */
.brandi-social-card {
    border: 1px solid var(--brandi-line);
    transition: all 0.4s ease;
    cursor: pointer;
}
.brandi-social-card:hover {
    border-color: var(--brandi-gold) !important;
    background: rgba(192, 137, 76, 0.05);
    transform: translateY(-4px);
}

/* ---------- 11. SECTION BACKGROUND VARIATIONS ---------- */

/* Apply .brandi-section-gradient-1 to the SERIES section */
.brandi-section-gradient-1 {
    background: linear-gradient(180deg, #0d0a0a 0%, #140a0b 50%, #0d0a0a 100%) !important;
    position: relative;
}
.brandi-section-gradient-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brandi-gold), transparent);
    opacity: 0.3;
}

/* Apply .brandi-section-gradient-2 to the REVIEWS section (in addition to .brandi-reviews-section) */
.brandi-section-gradient-2 {
    background: linear-gradient(180deg, #0d0a0a 0%, #150909 50%, #0d0a0a 100%) !important;
}

/* ---------- 12. RESPONSIVE TWEAKS ---------- */

@media (max-width: 900px) {
    .brandi-about-images {
        max-width: 360px;
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .brandi-newsletter-form form,
    .brandi-newsletter-form .mc4wp-form-fields {
        flex-direction: column;
    }
}