/* =============================================================================
   eTempah - Landing Page CSS
   ============================================================================= */

:root {
    --et-red: #E63946;
    --et-red-dark: #c1121f;
    --et-navy: #1d2b4f;
    --et-gold: #f4a261;
    --et-bg: #f8f9fc;
    --et-white: #ffffff;
    --et-text: #2d3142;
    --et-muted: #6b7280;
    --et-border: #e5e7eb;
    --et-shadow: 0 4px 24px rgba(0,0,0,.08);
    --et-radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.landing-body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--et-bg);
    color: var(--et-text);
    overflow-x: hidden;
}

/* ── Navbar ─────────────────────────────────────────────────────── */
.lp-navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--et-border);
    padding: 0 1.5rem;
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    transition: box-shadow .3s;
}
.lp-navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.1); }
.lp-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.lp-brand-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, var(--et-red), var(--et-red-dark));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem;
}
.lp-brand-name { font-weight: 800; font-size: 1.25rem; color: var(--et-text); }
.lp-brand-name span { color: var(--et-red); }
.lp-nav-links { display: flex; align-items: center; gap: 1.5rem; }
.lp-nav-links a { text-decoration: none; color: var(--et-muted); font-size: .9rem; font-weight: 500; transition: color .2s; }
.lp-nav-links a:hover { color: var(--et-red); }
.btn-lp-login {
    padding: .5rem 1.25rem; border-radius: 10px;
    background: var(--et-red); color: #fff;
    font-weight: 600; font-size: .875rem; text-decoration: none;
    transition: background .2s, transform .15s;
    border: none; cursor: pointer;
}
.btn-lp-login:hover { background: var(--et-red-dark); transform: translateY(-1px); color: #fff; }

/* ── Hero ────────────────────────────────────────────────────────── */
.lp-hero {
    margin-top: 64px;
    min-height: 520px;
    background: linear-gradient(135deg, var(--et-navy) 0%, #2d4a8a 60%, #1a3a6e 100%);
    position: relative;
    display: flex; align-items: center;
    overflow: hidden;
    padding-bottom: 80px;
}
/* Full-bleed background carousel */
.lp-hero-carousel-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.lp-hero-carousel-bg .lp-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
}
.lp-hero-carousel-bg .lp-carousel-slide.active { opacity: 1; }
.lp-hero-carousel-bg .lp-carousel-slide img {
    width: 100%; height: 100%; object-fit: cover;
}
/* Left-to-right fade overlay: solid navy on left, transparent on right */
.lp-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to right,
        var(--et-navy) 0%,
        var(--et-navy) 30%,
        rgba(29,43,79,.85) 50%,
        rgba(29,43,79,.3) 75%,
        transparent 100%
    );
}
/* Subtle bottom fade so wave blends naturally */
.lp-hero-overlay::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(26,58,110,.6), transparent);
}
.lp-hero-content {
    position: relative; z-index: 2;
    max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem;
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
/* Hide right column — image is now full background */
.lp-hero-visual { display: none; }
.lp-hero-title {
    font-size: clamp(2rem, 4vw, 3rem); font-weight: 900;
    color: #fff; line-height: 1.15; margin-bottom: 1rem;
}
.lp-hero-title span { color: var(--et-gold); }
.lp-hero-sub { color: rgba(255,255,255,.75); font-size: 1.05rem; line-height: 1.6; margin-bottom: 2rem; }
.lp-hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-hero-primary {
    padding: .75rem 1.75rem; border-radius: 12px;
    background: var(--et-red); color: #fff;
    font-weight: 700; font-size: .95rem; text-decoration: none;
    transition: all .2s; border: none; cursor: pointer;
    box-shadow: 0 8px 24px rgba(230,57,70,.35);
}
.btn-hero-primary:hover { background: var(--et-red-dark); transform: translateY(-2px); color: #fff; }
.btn-hero-outline {
    padding: .75rem 1.75rem; border-radius: 12px;
    background: transparent; color: #fff;
    font-weight: 600; font-size: .95rem; text-decoration: none;
    border: 2px solid rgba(255,255,255,.4); transition: all .2s;
}
.btn-hero-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.lp-hero-stats {
    display: flex; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap;
}
.lp-stat { text-align: center; }
.lp-stat-num { font-size: 1.75rem; font-weight: 900; color: var(--et-gold); }
.lp-stat-label { font-size: .75rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em; }

/* Hero carousel image */
.lp-hero-visual { position: relative; }
.lp-hero-carousel {
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.3);
    aspect-ratio: 4/3; background: rgba(255,255,255,.05);
}
.lp-carousel-slide {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: rgba(255,255,255,.3);
    position: absolute; inset: 0;
    opacity: 0; transition: opacity .6s ease;
}
.lp-carousel-slide.active { opacity: 1; }
.lp-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.lp-carousel-dots {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 2;
}
.lp-carousel-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.4); cursor: pointer; transition: background .3s;
    border: none;
}
.lp-carousel-dot.active { background: #fff; width: 20px; border-radius: 4px; }

/* ── Wave divider ────────────────────────────────────────────────── */
.lp-wave-divider {
    background: linear-gradient(135deg, var(--et-navy) 0%, #2d4a8a 60%, #1a3a6e 100%);
    line-height: 0;
    margin-top: -1px;
}
.lp-wave-divider svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ── Section wrapper ─────────────────────────────────────────────── */
.lp-section { max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem; }
.lp-section-title { font-size: 1.75rem; font-weight: 800; margin-bottom: .5rem; }
.lp-section-sub { color: var(--et-muted); font-size: .95rem; margin-bottom: 2.5rem; }
.lp-divider { height: 3px; width: 48px; background: var(--et-red); border-radius: 2px; margin-bottom: 1rem; }

/* ── Venue cards ─────────────────────────────────────────────────── */
.lp-venue-card {
    background: var(--et-white); border-radius: var(--et-radius);
    overflow: hidden; box-shadow: var(--et-shadow);
    transition: transform .2s, box-shadow .2s; cursor: pointer;
    border: 1px solid var(--et-border);
}
.lp-venue-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.lp-venue-img {
    height: 200px; background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: #6366f1; position: relative; overflow: hidden;
}
.lp-venue-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.lp-venue-img-icon { position: relative; z-index: 1; }
.lp-venue-badge {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    padding: .25rem .75rem; border-radius: 20px; font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
}
.badge-awam { background: #dcfce7; color: #166534; }
.badge-staff { background: #dbeafe; color: #1e40af; }
.lp-venue-body { padding: 1.25rem; }
.lp-venue-type { font-size: .72rem; color: var(--et-red); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.lp-venue-name { font-size: 1.05rem; font-weight: 800; margin-bottom: .4rem; }
.lp-venue-tagline { font-size: .82rem; color: var(--et-muted); margin-bottom: 1rem; line-height: 1.5; }
.lp-venue-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.lp-venue-cap { font-size: .8rem; color: var(--et-muted); }
.lp-venue-cap i { color: var(--et-red); margin-right: .3rem; }
.lp-venue-price { font-size: 1rem; font-weight: 800; color: var(--et-navy); }
.lp-venue-price span { font-size: .72rem; font-weight: 400; color: var(--et-muted); }
.btn-view-calendar {
    width: 100%; margin-top: 1rem; padding: .6rem;
    border-radius: 10px; border: 1.5px solid var(--et-red);
    background: transparent; color: var(--et-red);
    font-weight: 600; font-size: .875rem; cursor: pointer;
    transition: all .2s;
}
.btn-view-calendar:hover { background: var(--et-red); color: #fff; }

/* ── Calendar modal ─────────────────────────────────────────────── */
.lp-cal-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.55);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    padding: 1rem; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.lp-cal-modal-overlay.open { opacity: 1; pointer-events: all; }
.lp-cal-modal {
    background: #fff; border-radius: 20px;
    width: 100%; max-width: 500px;
    box-shadow: 0 24px 64px rgba(0,0,0,.2);
    transform: translateY(20px); transition: transform .25s;
    overflow: hidden;
}
.lp-cal-modal-overlay.open .lp-cal-modal { transform: translateY(0); }
.lp-cal-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--et-navy), #2d4a8a);
    color: #fff; display: flex; align-items: center; justify-content: space-between;
}
.lp-cal-header h5 { font-weight: 800; margin: 0; }
.lp-cal-close {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255,255,255,.15); border: none; color: #fff;
    cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center;
}
.lp-cal-nav {
    padding: 1rem 1.5rem .5rem;
    display: flex; align-items: center; justify-content: space-between;
}
.lp-cal-nav-btn {
    width: 36px; height: 36px; border-radius: 8px;
    border: 1.5px solid var(--et-border); background: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: .9rem;
    transition: all .15s;
}
.lp-cal-nav-btn:hover { border-color: var(--et-red); color: var(--et-red); }
.lp-cal-month { font-weight: 700; font-size: 1rem; }
.lp-cal-grid {
    padding: 0 1.5rem 1.5rem;
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.lp-cal-day-label {
    text-align: center; font-size: .72rem; font-weight: 700;
    color: var(--et-muted); padding: .4rem 0; text-transform: uppercase;
}
.lp-cal-day {
    aspect-ratio: 1; border-radius: 8px; border: none; cursor: default;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; font-weight: 500; transition: all .15s;
    background: transparent; color: var(--et-text);
}
.lp-cal-day.empty { background: transparent; }
.lp-cal-day.available { background: #dcfce7; color: #166534; font-weight: 700; }
.lp-cal-day.unavailable { background: #fee2e2; color: #991b1b; text-decoration: line-through; }
.lp-cal-day.booked { background: #fef3c7; color: #92400e; }
.lp-cal-day.not-configured { background: #f3f4f6; color: #9ca3af; }
.lp-cal-day.today { outline: 2px solid var(--et-red); outline-offset: -2px; }
.lp-cal-legend {
    padding: .75rem 1.5rem 1.25rem;
    display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center;
}
.lp-cal-legend-item { display: flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--et-muted); }
.lp-cal-legend-dot { width: 12px; height: 12px; border-radius: 3px; }
.lp-cal-loading {
    padding: 2rem; text-align: center; color: var(--et-muted);
}

/* ── Features section ────────────────────────────────────────────── */
.lp-feat-card {
    background: var(--et-white); border-radius: var(--et-radius);
    padding: 2rem; box-shadow: var(--et-shadow); text-align: center;
    border: 1px solid var(--et-border);
}
.lp-feat-icon {
    width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.lp-feat-title { font-weight: 700; margin-bottom: .5rem; }
.lp-feat-desc { font-size: .875rem; color: var(--et-muted); line-height: 1.6; }

/* ── CTA Section ─────────────────────────────────────────────────── */
.lp-cta {
    background: linear-gradient(135deg, var(--et-red), var(--et-red-dark));
    padding: 4rem 1.5rem; text-align: center; color: #fff;
}
.lp-cta h2 { font-size: 2rem; font-weight: 900; margin-bottom: .75rem; }
.lp-cta p { font-size: 1rem; opacity: .85; margin-bottom: 2rem; }
.btn-cta-white {
    padding: .85rem 2.5rem; border-radius: 12px;
    background: #fff; color: var(--et-red);
    font-weight: 700; font-size: 1rem; text-decoration: none;
    display: inline-block; transition: all .2s;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.2); color: var(--et-red-dark); }

/* ── Footer ─────────────────────────────────────────────────────── */
.lp-footer {
    background: var(--et-navy); color: rgba(255,255,255,.6);
    padding: 2rem 1.5rem; text-align: center; font-size: .82rem;
}
.lp-footer strong { color: #fff; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .lp-hero-content { grid-template-columns: 1fr; gap: 2rem; }
    .lp-hero-visual { display: none; }
    .lp-nav-links { display: none; }
    .lp-hero-stats { gap: 1.5rem; }
}
