/*
 * Bali Cocktail Party — visual system.
 *
 * A night-time bar: deep navy, one hot pink for what you press, lime for the
 * odd word that wants a wink. It launched louder (neon glow on every
 * headline, scanlines, tilted sticker cards, a marquee, outline wordmarks);
 * Oct 2026 took it down a semitone — same palette and type, flat colour, no
 * glow, nothing rotated, motion only where it helps you read.
 */

/* ────────────────────────────────────────────────────────────────────
   Theme
   ──────────────────────────────────────────────────────────────────── */
:root {
    --bcp-bg: #0A0F2C;
    --bcp-bg-elevated: #131A45;
    --bcp-bg-deep: #06091F;
    --bcp-ink: #FFFFFF;
    --bcp-ink-muted: #B8C0E8;
    --bcp-ink-dim: #8A91BD;
    --bcp-primary: #FF2D87;
    --bcp-primary-ink: #06091F;
    --bcp-accent: #C6FF3D;
    --bcp-support: #00E0FF;
    --bcp-line: rgb(255 255 255 / 9%);
    --bcp-radius-sm: 0.375rem;
    --bcp-radius: 0.875rem;
    --bcp-radius-lg: 1.5rem;
    --bcp-font-display: "Space Grotesk", "Space Grotesk Fallback", "Inter", sans-serif;
    --bcp-font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --bcp-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --bcp-hero-gradient: radial-gradient(ellipse 90% 70% at 50% 0%, rgb(255 45 135 / 38%) 0%, rgb(26 17 71 / 60%) 55%, transparent 100%), var(--bcp-bg);
}

/* ────────────────────────────────────────────────────────────────────
   Base
   ──────────────────────────────────────────────────────────────────── */
html {
    background: var(--bcp-bg);
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    background: var(--bcp-bg);
    color: var(--bcp-ink);
    font-family: var(--bcp-font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--bcp-accent);
    color: var(--bcp-bg-deep);
}

h1, h2, h3, h4,
.bcp-display {
    font-family: var(--bcp-font-display);
    letter-spacing: -0.02em;
    line-height: 1.05;
}

a { color: inherit; }

/* ────────────────────────────────────────────────────────────────────
   Display type
   ──────────────────────────────────────────────────────────────────── */
.bcp-display-xl {
    font-family: var(--bcp-font-display);
    font-size: clamp(2.6rem, 6.5vw, 5.75rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-weight: 700;
}

.bcp-display-lg {
    font-family: var(--bcp-font-display);
    font-size: clamp(1.85rem, 3.8vw, 3.25rem);
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.bcp-display-md {
    font-family: var(--bcp-font-display);
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.bcp-display-xl em,
.bcp-display-lg em {
    font-style: italic;
    color: var(--bcp-accent);
    font-weight: 500;
}

/* The small line above a heading: what the section is, in plain words —
   usually the search term the heading's voice leaves out. */
.bcp-eyebrow {
    display: block;
    font-family: var(--bcp-font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bcp-primary);
    margin-bottom: 1rem;
}

/* ────────────────────────────────────────────────────────────────────
   Pills, tags, labels
   ──────────────────────────────────────────────────────────────────── */
.bcp-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgb(198 255 61 / 10%);
    color: var(--bcp-accent);
    border: 1px solid rgb(198 255 61 / 35%);
    border-radius: 9999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bcp-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--bcp-line);
    color: var(--bcp-ink-muted);
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 9999px;
    background: rgb(255 255 255 / 3%);
}

.bcp-tag-primary { border-color: rgb(255 45 135 / 45%); color: var(--bcp-ink); }

/* Small uppercase label — card corners, form sections, fine print. */
.bcp-stamp {
    font-family: var(--bcp-font-mono);
    font-size: 0.72rem;
    color: var(--bcp-ink-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ────────────────────────────────────────────────────────────────────
   Buttons
   ──────────────────────────────────────────────────────────────────── */
.bcp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--bcp-primary);
    color: var(--bcp-primary-ink);
    border-radius: 9999px;
    padding: 0.85rem 1.6rem;
    font-weight: 700;
    text-decoration: none;
    font-family: var(--bcp-font-display);
    letter-spacing: 0.01em;
    transition: background 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    border: 0;
    line-height: 1;
}

.bcp-btn-primary::after {
    content: '→';
    transition: transform 0.2s ease;
    font-weight: 400;
}

.bcp-btn-primary:hover,
.bcp-btn-primary:focus-visible {
    background: #FF5AA1;
    transform: translateY(-1px);
}

.bcp-btn-primary:focus-visible,
.bcp-btn-ghost:focus-visible {
    outline: 2px solid var(--bcp-accent);
    outline-offset: 3px;
}

.bcp-btn-primary:hover::after,
.bcp-btn-primary:focus-visible::after {
    transform: translateX(4px);
}

.bcp-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: transparent;
    color: var(--bcp-ink);
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: 9999px;
    padding: 0.85rem 1.6rem;
    font-weight: 600;
    text-decoration: none;
    font-family: var(--bcp-font-display);
    transition: background 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    line-height: 1;
}

.bcp-btn-ghost:hover,
.bcp-btn-ghost:focus-visible {
    background: rgb(255 255 255 / 8%);
    border-color: var(--bcp-ink);
}

/* An inline text link that should look like one. */
.bcp-link {
    color: var(--bcp-ink);
    text-decoration: underline;
    text-decoration-color: var(--bcp-primary);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.bcp-link:hover { color: var(--bcp-primary); }

/* ────────────────────────────────────────────────────────────────────
   Cards
   ──────────────────────────────────────────────────────────────────── */
.bcp-card {
    background: var(--bcp-bg-elevated);
    border-radius: var(--bcp-radius);
    border: 1px solid var(--bcp-line);
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

/* A thin top rule in the card's accent colour, for cards that want one. */
.bcp-card-accent-primary,
.bcp-card-accent-accent,
.bcp-card-accent-support {
    border-top: 2px solid var(--bcp-card-accent);
}

a.bcp-card:hover,
.bcp-card:has(a:hover) {
    border-color: rgb(255 255 255 / 22%);
}

.bcp-card-accent-primary { --bcp-card-accent: var(--bcp-primary); }
.bcp-card-accent-accent  { --bcp-card-accent: var(--bcp-accent); }
.bcp-card-accent-support { --bcp-card-accent: var(--bcp-support); }

/* ────────────────────────────────────────────────────────────────────
   Hero + section backgrounds
   ──────────────────────────────────────────────────────────────────── */
.bcp-hero {
    background: var(--bcp-hero-gradient);
    color: var(--bcp-ink);
    position: relative;
    overflow: hidden;
}

/* A faint wash of colour behind a page header. */
.bcp-wash {
    background:
        radial-gradient(ellipse 60% 50% at 10% 0%, rgb(255 45 135 / 12%), transparent 70%),
        var(--bcp-bg);
}

.bcp-section-deep {
    background: var(--bcp-bg-deep);
}

/* ────────────────────────────────────────────────────────────────────
   Nav
   ──────────────────────────────────────────────────────────────────── */
.bcp-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: color-mix(in srgb, var(--bcp-bg-deep) 85%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--bcp-line);
}

.bcp-nav-link {
    position: relative;
    font-family: var(--bcp-font-display);
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--bcp-ink);
    text-decoration: none;
    padding: 0.25rem 0;
}

.bcp-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--bcp-primary);
    border-radius: 9999px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s cubic-bezier(.2,.7,.3,1);
}

.bcp-nav-link:hover::after,
.bcp-nav-link:focus-visible::after,
.bcp-nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* ────────────────────────────────────────────────────────────────────
   Step numbers (how it works)
   ──────────────────────────────────────────────────────────────────── */
.bcp-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    border: 1px solid rgb(198 255 61 / 45%);
    color: var(--bcp-accent);
    font-family: var(--bcp-font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

/* ────────────────────────────────────────────────────────────────────
   Prices
   ──────────────────────────────────────────────────────────────────── */
.bcp-price {
    font-family: var(--bcp-font-display);
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

/* A two-column list of lines — what's included, the fine print. */
.bcp-checklist > li {
    position: relative;
    padding-left: 1.1rem;
    line-height: 1.45;
}

.bcp-checklist > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 9999px;
    background: var(--bcp-primary);
}

/* ────────────────────────────────────────────────────────────────────
   Forms (Symfony form rows — preserved field names; styles only)
   ──────────────────────────────────────────────────────────────────── */
.bcp-form { display: grid; gap: 1.25rem; }

.bcp-form label,
.bcp-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--bcp-ink-muted);
    margin-bottom: 0.35rem;
}

.bcp-form input[type="text"],
.bcp-form input[type="email"],
.bcp-form input[type="tel"],
.bcp-form input[type="number"],
.bcp-form input[type="date"],
.bcp-form input[type="time"],
.bcp-form input[type="url"],
.bcp-form textarea,
.bcp-form select {
    width: 100%;
    background: var(--bcp-bg-deep);
    border: 1.5px solid rgb(255 255 255 / 14%);
    border-radius: var(--bcp-radius-sm);
    color: var(--bcp-ink);
    font-family: var(--bcp-font-body);
    font-size: 1rem;
    padding: 0.85rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bcp-form input::placeholder,
.bcp-form textarea::placeholder { color: var(--bcp-ink-dim); }

.bcp-form input:focus,
.bcp-form textarea:focus,
.bcp-form select:focus {
    outline: 0;
    border-color: var(--bcp-accent);
    box-shadow: 0 0 0 4px rgb(198 255 61 / 18%);
    background: var(--bcp-bg);
}

.bcp-form textarea { min-height: 7rem; resize: vertical; }

/* A radio drawn as a card (the drag show's "how would you like your show?").
   The input sits in the label, visually hidden; the card lights up when picked.
   Undoes the mono micro-label look every .bcp-form label gets. */
.bcp-form label.bcp-choice {
    font-family: var(--bcp-font-body);
    font-size: 1rem;
    text-transform: none;
    letter-spacing: normal;
    color: var(--bcp-ink);
    margin: 0;
    height: 100%;
    cursor: pointer;
    padding: 1rem 1.1rem;
    background: var(--bcp-bg-deep);
    border: 1.5px solid rgb(255 255 255 / 14%);
    border-radius: var(--bcp-radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bcp-form label.bcp-choice:hover { border-color: rgb(255 255 255 / 32%); }
.bcp-form label.bcp-choice:has(input:checked) {
    border-color: var(--bcp-accent);
    box-shadow: 0 0 0 4px rgb(198 255 61 / 18%);
}
.bcp-form label.bcp-choice:has(input:focus-visible) {
    outline: 2px solid var(--bcp-accent);
    outline-offset: 2px;
}

.bcp-form .form-help { color: var(--bcp-ink-dim); font-size: 0.85rem; margin-top: 0.25rem; }
.bcp-form .form-errors { color: var(--bcp-primary); font-size: 0.85rem; list-style: none; padding: 0; margin: 0.35rem 0 0; }

/* Symfony's wrapped row pattern */
.bcp-form > div { display: contents; }

/* Recolour the inherited Tailwind admin form theme so widgets read dark.
   The form theme uses .form-field (white-bg fieldset wrapper) and lays
   inputs out with text-slate-900 etc. We override those for .bcp-form only. */
.bcp-form .form-field,
.bcp-form fieldset.form-field {
    background: var(--bcp-bg-deep);
    border: 1.5px solid rgb(255 255 255 / 14%);
    border-radius: var(--bcp-radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bcp-form .form-field:focus-within,
.bcp-form fieldset.form-field:focus-within {
    border-color: var(--bcp-accent);
    box-shadow: 0 0 0 4px rgb(198 255 61 / 18%);
}

.bcp-form .form-field legend,
.bcp-form fieldset.form-field legend {
    background: transparent;
    color: var(--bcp-ink-muted);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0 0.3rem;
}

/* Inputs & textareas inside the inherited theme.
   The fieldset IS the visual container — the input is just the text caret.
   Strip the bg/border/radius/box-shadow that the bare-input rule above
   gave naked inputs, so we don't get a nested rounded box drawn on top of
   the fieldset's own focus ring. */
.bcp-form .form-field input,
.bcp-form .form-field select,
.bcp-form .form-field textarea,
.bcp-form fieldset.form-field input,
.bcp-form fieldset.form-field select,
.bcp-form fieldset.form-field textarea {
    width: 100%;
    background: transparent;
    color: var(--bcp-ink);
    border: 0;
    border-radius: 0;
    outline: 0;
    padding: 0.4rem 0 0.6rem;
    box-shadow: none;
    font-family: var(--bcp-font-body);
    font-size: 1rem;
    transition: none;
}

.bcp-form .form-field input:focus,
.bcp-form .form-field select:focus,
.bcp-form .form-field textarea:focus,
.bcp-form fieldset.form-field input:focus,
.bcp-form fieldset.form-field select:focus,
.bcp-form fieldset.form-field textarea:focus {
    background: transparent;
    box-shadow: none;
    border: 0;
}

.bcp-form .form-field input::placeholder,
.bcp-form .form-field textarea::placeholder,
.bcp-form fieldset.form-field input::placeholder,
.bcp-form fieldset.form-field textarea::placeholder {
    color: var(--bcp-ink-dim);
}

/* Phone-number compound field's mini select. macOS Chrome ignores option
   colour rules and falls back to the OS-light dropdown unless the select
   advertises a dark colour-scheme, so do that to keep text legible. */
.bcp-form select { color-scheme: dark; }
.bcp-form select option { background: var(--bcp-bg-deep); color: var(--bcp-ink); }

/* Typeahead controller dropdown when triggered from a dark BCP form.
   The dropdown is appended to <body> outside .bcp-form, so we tag it
   with this class in the controller and re-skin the admin-theme Tailwind
   classes the controller bakes in. */
.typeahead-dropdown-dark {
    background: var(--bcp-bg-elevated) !important;
    border-color: rgb(255 255 255 / 14%) !important;
    color: var(--bcp-ink);
}
.typeahead-dropdown-dark > div { color: var(--bcp-ink); }
.typeahead-dropdown-dark > div.text-slate-500 { color: var(--bcp-ink-dim) !important; }
.typeahead-dropdown-dark > div:hover,
.typeahead-dropdown-dark > div.bg-indigo-50 {
    background: rgb(198 255 61 / 12%) !important;
    color: var(--bcp-ink);
}
.typeahead-dropdown-dark > div.bg-indigo-100 {
    background: rgb(198 255 61 / 22%) !important;
    color: var(--bcp-accent);
}

/* Checkbox + radio recolour. The form theme adds these via Tailwind. */
.bcp-form input[type="checkbox"],
.bcp-form input[type="radio"] {
    accent-color: var(--bcp-accent);
    background: var(--bcp-bg-deep);
    border-color: rgb(255 255 255 / 30%);
}

/* ────────────────────────────────────────────────────────────────────
   FAQ — native <details> styled as collapsible cards
   ──────────────────────────────────────────────────────────────────── */
.bcp-faq {
    padding: 0;
    overflow: hidden;
}

.bcp-faq-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    transition: background 0.2s ease;
}

.bcp-faq-summary::-webkit-details-marker,
.bcp-faq-summary::marker { display: none; }

.bcp-faq-summary:hover {
    background: rgb(255 255 255 / 3%);
}

.bcp-faq-question {
    flex: 1;
    font-family: var(--bcp-font-display);
    font-size: clamp(1.05rem, 1.4vw + 0.6rem, 1.35rem);
    font-weight: 500;
    color: var(--bcp-ink);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.bcp-faq-toggle {
    color: var(--bcp-ink-muted);
    transition: transform 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}

.bcp-faq[open] .bcp-faq-toggle {
    transform: rotate(180deg);
    color: var(--bcp-accent);
}

.bcp-faq[open] .bcp-faq-summary {
    background: rgb(255 255 255 / 3%);
}

/* Answers come from the CMS as markdown. */
.bcp-prose > * + * { margin-top: 0.85em; }
.bcp-prose a {
    color: var(--bcp-ink);
    text-decoration: underline;
    text-decoration-color: var(--bcp-primary);
    text-underline-offset: 3px;
}
.bcp-prose strong { color: var(--bcp-ink); }
.bcp-prose ul { list-style: disc; padding-left: 1.25rem; }
.bcp-prose ol { list-style: decimal; padding-left: 1.25rem; }

.bcp-faq-answer {
    padding: 0.25rem 1.75rem 1.75rem;
    color: var(--bcp-ink-muted);
    line-height: 1.7;
    font-size: 1rem;
    max-width: 60ch;
}

@media (max-width: 640px) {
    .bcp-faq-summary { padding: 1.1rem 1.25rem; gap: 0.75rem; }
    .bcp-faq-answer { padding: 0.25rem 1.25rem 1.25rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .bcp-faq-summary, .bcp-faq-toggle { transition: none; }
}

/* Generic text colour fixes — anything inside .bcp-form with admin-theme
   text classes should read on dark. */
.bcp-form [class*="text-slate-9"],
.bcp-form [class*="text-slate-8"],
.bcp-form [class*="text-slate-7"] {
    color: var(--bcp-ink) !important;
}

.bcp-form [class*="text-slate-5"],
.bcp-form [class*="text-slate-6"] {
    color: var(--bcp-ink-muted) !important;
}

.bcp-form [class*="text-slate-4"],
.bcp-form [class*="text-slate-3"] {
    color: var(--bcp-ink-dim) !important;
}

/* "bg-white" inherited from admin theme on legend backings. */
.bcp-form [class*="bg-white"] {
    background: transparent !important;
}

/* ────────────────────────────────────────────────────────────────────
   Scroll reveal — CSS-only via animation-timeline where supported;
   otherwise the controller adds .bcp-reveal-armed to <body> and .is-visible
   to each item as it scrolls in. Nothing is hidden until JS has actually
   taken charge: a page that never gets its JavaScript (slow link, blocked
   script, a crawler without a renderer) stays fully readable instead of
   invisible.
   ──────────────────────────────────────────────────────────────────── */
.bcp-reveal-armed .bcp-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1);
    will-change: opacity, transform;
}

.bcp-reveal-armed .bcp-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@supports (animation-timeline: view()) {
    .bcp-reveal {
        animation: bcp-reveal-in linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 60%;
    }
}

@keyframes bcp-reveal-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ────────────────────────────────────────────────────────────────────
   Utility helpers
   ──────────────────────────────────────────────────────────────────── */
.bcp-muted    { color: var(--bcp-ink-muted); }
.bcp-dim      { color: var(--bcp-ink-dim); }
.bcp-text-primary { color: var(--bcp-primary); }
.bcp-text-accent  { color: var(--bcp-accent); }
.bcp-text-support { color: var(--bcp-support); }

.bcp-divider {
    height: 1px;
    background: var(--bcp-line);
}

/* ────────────────────────────────────────────────────────────────────
   Accessibility — honour reduced-motion
   ──────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .bcp-reveal-armed .bcp-reveal {
        opacity: 1;
        transform: none;
    }
}
