/* ═══════════════════════════════════════
   COMPONENTS — Buttons, Header, Footer, Forms, Cursor
   ═══════════════════════════════════════ */

/* ═══ BUTTONS ═══ */
.bb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--bb-font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: var(--bb-text-small);
    padding: 0.875rem 2rem;
    border-radius: var(--bb-radius-sm);
    transition: var(--bb-transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.bb-btn-primary {
    background: var(--bb-rose-ancien);
    color: var(--bb-white);
}
.bb-btn-primary:hover {
    background: var(--bb-bordeaux);
    color: var(--bb-white);
    transform: translateY(-2px);
    box-shadow: var(--bb-shadow-md);
}
.bb-btn-outline {
    background: transparent;
    color: var(--bb-bordeaux);
    border: 1.5px solid var(--bb-bordeaux);
}
.bb-btn-outline:hover {
    background: var(--bb-bordeaux);
    color: var(--bb-white);
}
.bb-btn-white {
    background: var(--bb-white);
    color: var(--bb-bordeaux);
}
.bb-btn-white:hover {
    background: var(--bb-bg-cream);
    transform: translateY(-2px);
    box-shadow: var(--bb-shadow-md);
}
.bb-btn-ghost {
    background: transparent;
    color: var(--bb-rose-ancien);
    padding: 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: var(--bb-text-body);
    border: none;
    cursor: pointer;
    font-family: var(--bb-font-body);
}
.bb-btn-ghost:hover { color: var(--bb-bordeaux); }

/* ═══ HEADER ═══ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: background 0.5s ease, padding 0.3s ease, backdrop-filter 0.5s ease;
}
.site-header.header--scrolled {
    background: rgba(97, 26, 36, 0.97);
    backdrop-filter: blur(12px);
    padding: 0.75rem 0;
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header__logo {
    font-family: var(--bb-font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--bb-bordeaux);
    letter-spacing: var(--bb-ls-display);
    text-decoration: none;
    transition: color 0.5s;
}
.header--scrolled .header__logo,
.header--scrolled .header__logo a { color: var(--bb-white); }

.header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.header__nav a,
.header__nav .menu-item a {
    font-size: var(--bb-text-small);
    font-weight: 500;
    color: var(--bb-text-primary);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}
.header__nav a::after,
.header__nav .menu-item a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1.5px;
    background: currentColor;
    transition: width 0.3s;
}
.header__nav a:hover::after,
.header__nav .menu-item a:hover::after { width: 100%; }

.header--scrolled .header__nav a,
.header--scrolled .header__nav .menu-item a { color: rgba(255, 255, 255, 0.85); }
.header--scrolled .header__nav a:hover,
.header--scrolled .header__nav .menu-item a:hover { color: var(--bb-white); }

.header__nav .current-menu-item a::after { width: 100%; }

.header__lang {
    font-size: var(--bb-text-xs);
    color: var(--bb-text-secondary);
    letter-spacing: 0.05em;
}
.header__lang .active { font-weight: 700; }
.header--scrolled .header__lang { color: rgba(255, 255, 255, 0.6); }
.header--scrolled .header__lang .active { color: var(--bb-white); }

/* WordPress menu reset */
.header__nav ul,
.header__nav .menu { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.header__nav li { margin: 0; }

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 4px;
}
.burger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--bb-bordeaux);
    transition: var(--bb-transition);
    transform-origin: center;
}
.header--scrolled .burger span { background: var(--bb-white); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--bb-white); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--bb-white); }

/* Mobile nav */
.mobile-nav {
    position: fixed; inset: 0;
    background: var(--bb-bordeaux);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a,
.mobile-nav .menu-item a {
    font-family: var(--bb-font-display);
    font-size: 2rem;
    color: var(--bb-white);
    font-weight: 500;
    text-decoration: none;
}
/* WP menu list reset in mobile */
.mobile-nav ul, .mobile-nav .menu {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; align-items: center; gap: 2rem;
}

/* ═══ FOOTER ═══ */
.site-footer {
    background: var(--bb-bordeaux);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--bb-space-2xl) 0 var(--bb-space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: var(--bb-space-lg);
    margin-bottom: var(--bb-space-xl);
}
.footer__logo { font-family: var(--bb-font-display); font-size: 1.35rem; font-weight: 600; color: var(--bb-white); margin-bottom: var(--bb-space-sm); }
.footer__desc { font-size: var(--bb-text-small); line-height: 1.65; }
.footer__heading { font-size: var(--bb-text-xs); font-weight: 500; text-transform: uppercase; letter-spacing: var(--bb-ls-caps); color: var(--bb-white); margin-bottom: var(--bb-space-sm); }
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin: 0; padding: 0; }
.footer__links a { font-size: var(--bb-text-small); color: rgba(255, 255, 255, 0.6); transition: color 0.3s; text-decoration: none; }
.footer__links a:hover { color: var(--bb-white); }

.footer__newsletter-input { display: flex; gap: 0; margin-top: var(--bb-space-xs); }
.footer__newsletter-input input { flex: 1; padding: 0.625rem 0.875rem; border: 1.5px solid rgba(255, 255, 255, 0.2); border-right: none; border-radius: var(--bb-radius-sm) 0 0 var(--bb-radius-sm); background: rgba(255, 255, 255, 0.05); color: var(--bb-white); font-family: var(--bb-font-body); font-size: var(--bb-text-small); }
.footer__newsletter-input input::placeholder { color: rgba(255, 255, 255, 0.35); }
.footer__newsletter-input input:focus { outline: none; border-color: var(--bb-rose-ancien); }
.footer__newsletter-input button { padding: 0.625rem 1rem; background: var(--bb-rose-ancien); color: var(--bb-white); border: none; border-radius: 0 var(--bb-radius-sm) var(--bb-radius-sm) 0; font-family: var(--bb-font-body); font-size: var(--bb-text-small); font-weight: 500; cursor: pointer; transition: var(--bb-transition); }
.footer__newsletter-input button:hover { background: var(--bb-marsala); }
.footer__newsletter-micro { font-size: var(--bb-text-xs); margin-top: 0.5rem; opacity: 0.5; }

.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: var(--bb-space-md); display: flex; justify-content: space-between; align-items: center; font-size: var(--bb-text-xs); opacity: 0.5; }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { color: rgba(255, 255, 255, 0.5); text-decoration: none; }
.footer__legal a:hover { color: var(--bb-white); }

/* ═══ FORMS ═══ */
.form-input, .form-textarea, .form-select {
    width: 100%; padding: 0.875rem 1rem;
    border: 1.5px solid rgba(97, 26, 36, 0.12);
    border-radius: var(--bb-radius-sm);
    font-family: var(--bb-font-body);
    font-size: var(--bb-text-body);
    color: var(--bb-text-primary);
    background: var(--bb-bg-cream);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--bb-rose-ancien);
    box-shadow: 0 0 0 3px rgba(193, 51, 72, 0.08);
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(102, 102, 102, 0.5); }
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

/* ═══ CUSTOM CURSOR ═══ */
.custom-cursor {
    position: fixed; top: 0; left: 0;
    width: 16px; height: 16px;
    pointer-events: none; z-index: 99999;
    transform: translate(-50%, -50%);
    opacity: 0;
}
.custom-cursor__inner {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: var(--bb-bordeaux);
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1), height 0.35s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--bb-font-body); font-size: 0; color: var(--bb-white);
    letter-spacing: 0.05em; text-transform: uppercase;
}
.cursor--active .custom-cursor__inner { width: 48px; height: 48px; background: var(--bb-rose-ancien); margin-left: -16px; margin-top: -16px; }
.cursor--view .custom-cursor__inner { width: 80px; height: 80px; background: var(--bb-bordeaux); font-size: 0.65rem; margin-left: -32px; margin-top: -32px; }

@media (pointer: coarse), (max-width: 767px) {
    .custom-cursor { display: none !important; }
}

/* ═══ CTA SECTION ═══ */
.cta-section {
    background: var(--bb-bordeaux);
    text-align: center;
    padding: var(--bb-space-3xl) 0;
}
.cta-section h2 {
    color: var(--bb-white);
    font-size: var(--bb-text-h1);
    margin-bottom: var(--bb-space-lg);
}

/* ═══ PAGE HERO (inner pages) ═══ */
.page-hero {
    padding: 10rem 0 var(--bb-space-xl);
    text-align: center;
    position: relative;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 60%, rgba(193, 51, 72, 0.04) 0%, transparent 60%);
    pointer-events: none;
}
.page-hero h1 { margin-bottom: var(--bb-space-sm); position: relative; }
.page-hero p { font-size: var(--bb-text-body-lg); color: var(--bb-text-secondary); max-width: 600px; margin: 0 auto; position: relative; }

/* ═══ LOADER ═══ */
.loader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: var(--bb-bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
}
.loader__logo {
    font-family: var(--bb-font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--bb-bordeaux);
    letter-spacing: var(--bb-ls-display);
    opacity: 0;
}
.loader__line {
    width: 120px;
    height: 1.5px;
    background: var(--bb-bordeaux);
    transform-origin: left;
    transform: scaleX(0);
}
