@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Inter:wght@300;400;500&display=swap');

.lpc-root { --lpc-accent: #b89468; --lpc-accent-lt: #d4b48a; }

.lpc-carousel {
    position: relative;
    overflow: hidden;
    background: #141414;
    width: 100%;
    aspect-ratio: 16/7;
}

.lpc-slide {
    position: absolute;
    inset: 0;
    display: flex;
    opacity: 0;
    transition: opacity 0.7s ease;
    z-index: 1;
}
.lpc-slide.lpc-active { opacity: 1; z-index: 2; }

.lpc-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 9s ease;
}
.lpc-slide.lpc-active .lpc-img { transform: scale(1.04); }
.lpc-kb-off .lpc-img { transform: scale(1) !important; transition: none !important; }

.lpc-overlay { position: absolute; inset: 0; }

/* Extra contrast layer — always-on dark gradient on the left third,
   sits beneath the dynamic overlay so text is always readable */
.lpc-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(10, 10, 10, 0.62) 0%,
        rgba(10, 10, 10, 0.28) 50%,
        rgba(10, 10, 10, 0.0)  100%
    );
    z-index: 2;
    pointer-events: none;
}

.lpc-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 56px) clamp(24px, 6vw, 64px);
    height: 100%;
    max-width: 600px;
}

.lpc-eyebrow {
    display: block;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: clamp(8px, 1.2vw, 11px);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--lpc-accent-lt);
    margin-bottom: 10px;
    /* Dark pill backdrop so eyebrow pops off any image */
    background: rgba(10, 10, 10, 0.45);
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    margin-bottom: 10px;
}

.lpc-badge {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: clamp(8px, 1vw, 10px);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    width: fit-content;
    /* Stronger backdrop for badge */
    box-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* Force white on all headline text — beats theme h1/h2 colour overrides */
.lpc-wrap .lpc-headline,
.lpc-content h1,
.lpc-content h2,
h1.lpc-headline,
h2.lpc-headline { color: #ffffff !important; }

.lpc-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 3.5vw, 3rem);
    font-weight: 700;
    color: #ffffff !important;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    text-shadow:
        0 1px 3px rgba(0,0,0,0.7),
        0 2px 12px rgba(0,0,0,0.5),
        0 4px 32px rgba(0,0,0,0.35);
}
.lpc-headline em {
    font-style: italic;
    color: var(--lpc-accent-lt) !important;
    text-shadow:
        0 1px 3px rgba(0,0,0,0.6),
        0 2px 12px rgba(0,0,0,0.4);
}

.lpc-sub {
    font-family: 'Inter', sans-serif;
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.72;
    margin: 0 0 28px;
    max-width: 420px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6), 0 2px 16px rgba(0,0,0,0.4);
}

.lpc-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.lpc-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--lpc-accent);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: clamp(11px, 1.3vw, 13px);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 3px;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: background 0.18s, transform 0.1s, box-shadow 0.18s;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.lpc-btn-primary:hover {
    background: var(--lpc-accent, #9a7a52);
    filter: brightness(0.9);
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.45);
}

.lpc-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: clamp(11px, 1.3vw, 13px);
    font-weight: 500;
    padding: 12px 22px;
    border-radius: 3px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: background 0.18s, border-color 0.18s;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.lpc-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
}

/* Arrows */
.lpc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: clamp(32px, 4vw, 44px);
    height: clamp(32px, 4vw, 44px);
    border-radius: 50%;
    background: rgba(250, 247, 242, 0.1);
    border: 1px solid rgba(250, 247, 242, 0.2);
    color: rgba(250, 247, 242, 0.85);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s;
    font-family: sans-serif;
    line-height: 1;
}
.lpc-arrow:hover { background: rgba(250, 247, 242, 0.22); }
.lpc-prev { left: 16px; }
.lpc-next { right: 16px; }

/* Dots */
.lpc-dots {
    position: absolute;
    bottom: 18px;
    left: clamp(24px, 6vw, 64px);
    z-index: 10;
    display: flex;
    gap: 7px;
    align-items: center;
}
.lpc-dot {
    width: 18px;
    height: 2.5px;
    border-radius: 2px;
    background: rgba(250, 247, 242, 0.3);
    cursor: pointer;
    transition: background 0.25s, width 0.25s;
    border: none;
    padding: 0;
}
.lpc-dot.lpc-active { background: var(--lpc-accent); width: 28px; }

/* Progress bar */
.lpc-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 2.5px;
    background: var(--lpc-accent);
    z-index: 10;
    width: 0;
    border-radius: 0 2px 2px 0;
    transition: none;
}

/* Responsive */
@media (max-width: 768px) {
    .lpc-carousel { aspect-ratio: 4/3; }
    .lpc-headline { font-size: 1.5rem; }
    .lpc-actions { flex-direction: column; }
    .lpc-btn-primary, .lpc-btn-ghost { width: 100%; justify-content: center; }
    .lpc-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .lpc-img { transition: none !important; transform: none !important; }
    .lpc-slide { transition: none !important; }
}
