/*
 * services-accordion.css
 * Four-lane horizontal accordion for the homepage services section.
 * Scroll-driven expansion via GSAP ScrollTrigger.
 *
 * @package Prysmedge
 */

/* ══ LANE ACCORDION ══════════════════════════════════════════════════════════ */

.la-section {
    background: #ffffff;
    position: relative;
    padding: 5rem 0 6rem;
    overflow: hidden;
}

/* Subtle warm-white texture */
.la-section-noise {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.012) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ── Intro row ──────────────────────────────────────────────────────────── */
.la-inner {
    max-width: 80rem; margin: 0 auto; padding: 0 1.5rem;
    position: relative; z-index: 10;
}
@media (min-width: 1024px) { .la-inner { padding: 0 3rem; } }

.la-intro {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 2rem; padding: 0 0 2.75rem;
}
@media (max-width: 767px) {
    .la-intro { flex-direction: column; align-items: flex-start; padding-bottom: 2rem; }
}

.la-eyebrow {
    display: block; margin-bottom: 0.75rem;
    font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase; color: #f97316;
}

.la-heading {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.875rem); font-weight: 400;
    color: #111; line-height: 1.1; margin: 0;
}

/* "Lanes" accent word */
.la-heading strong {
    font-weight: 700;
    color: #f97316;
}

.la-all-link {
    font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 600;
    letter-spacing: 0.08em; color: rgba(0,0,0,0.35);
    text-decoration: none; display: flex; align-items: center; gap: 0.4rem;
    white-space: nowrap; transition: color 0.2s; flex-shrink: 0; padding-bottom: 4px;
}
.la-all-link:hover { color: #f97316; }

/* ── Track: panels aligned top, track height = tallest (active) panel ─────── */
.la-track {
    display: flex;
    align-items: flex-start;   /* short panels sit at the top */
    height: 540px;             /* = active panel height */
    gap: 4px;
}

/* ── Individual panel ────────────────────────────────────────────────────── */
.la-panel {
    position: relative;
    flex: 1; min-width: 0;
    overflow: hidden;
    cursor: pointer;
    border-radius: 14px;
    transition:
        flex         0.65s cubic-bezier(0.4, 0, 0.2, 1),
        height       0.65s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow   0.4s ease;
    text-decoration: none; color: inherit; display: block;
    /* Collapsed = 75% of active height */
    height: 405px;
}

.la-panel.is-active {
    flex: 2.8;
    height: 540px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.10);
}

/* ── Per-lane card backgrounds ───────────────────────────────────────────── */
/* Lanes 1, 2, 4: light warm card */
.la-panel--1,
.la-panel--2,
.la-panel--4 { background: #fafafa; border: 1px solid #e8e4de; }

/* Lane 3 (Luxury): stays dark */
.la-panel--3 { background: #0f0e0b; border: 1px solid #2a2516; }

/* Active card subtle glow */
.la-panel--1.is-active,
.la-panel--2.is-active,
.la-panel--4.is-active {
    background: #fff;
    border-color: rgba(249,115,22,0.3);
}
.la-panel--3.is-active {
    border-color: rgba(212,175,55,0.4);
}

/* Radial colour blush — visible when active */
.la-bg {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    opacity: 0; transition: opacity 0.6s;
}
.la-panel.is-active .la-bg { opacity: 1; }

.la-panel--1 .la-bg,
.la-panel--2 .la-bg,
.la-panel--4 .la-bg {
    background: radial-gradient(ellipse 70% 55% at 85% 10%, rgba(249,115,22,0.08) 0%, transparent 70%);
}
.la-panel--3 .la-bg {
    background: radial-gradient(ellipse 70% 55% at 85% 10%, rgba(212,175,55,0.18) 0%, transparent 70%);
}

/* Top accent line (active only) */
.la-accent-line {
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    opacity: 0; z-index: 6; transition: opacity 0.4s;
    border-radius: 14px 14px 0 0;
}
.la-panel--1 .la-accent-line,
.la-panel--2 .la-accent-line,
.la-panel--4 .la-accent-line { background: #f97316; }
.la-panel--3 .la-accent-line { background: #d4af37; }
.la-panel.is-active .la-accent-line { opacity: 1; }

/* Large ghost number – decorative, sits in mid-panel */
.la-ghost-num {
    position: absolute;
    bottom: 3rem; left: 50%; transform: translateX(-50%);
    font-family: 'Barlow', sans-serif;
    font-size: 140px; font-weight: 900; line-height: 1;
    letter-spacing: -0.04em; user-select: none; pointer-events: none;
    z-index: 1; white-space: nowrap;
    transition: opacity 0.3s;
}
.la-panel--1 .la-ghost-num,
.la-panel--2 .la-ghost-num,
.la-panel--4 .la-ghost-num { color: rgba(0,0,0,0.04); }
.la-panel--3 .la-ghost-num { color: rgba(255,255,255,0.04); }
/* Hide ghost when expanded (content overlaps it) */
.la-panel.is-active .la-ghost-num { opacity: 0; }

/* ── COLLAPSED STATE ──────────────────────────────────────────────────────
   Lane number "01" at the TOP.
   Large orange title (wrappable, 2 rows ok) at the BOTTOM.
   No rotation anywhere.
   ─────────────────────────────────────────────────────────────────────── */

/* Lane number badge — TOP of panel */
.la-c-num-badge {
    position: absolute; top: 1.5rem; left: 1.5rem;
    z-index: 4;
    font-family: 'Manrope', sans-serif; font-size: 10px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    display: flex; align-items: center; gap: 0.35rem;
    opacity: 1; transition: opacity 0.2s;
}
.la-panel.is-active .la-c-num-badge { opacity: 0; pointer-events: none; }
.la-c-num-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

.la-panel--1 .la-c-num-badge,
.la-panel--2 .la-c-num-badge,
.la-panel--4 .la-c-num-badge { color: rgba(0,0,0,0.3); }
.la-panel--3 .la-c-num-badge { color: rgba(255,255,255,0.28); }

/* Title — BOTTOM of panel, large, orange, wrappable */
.la-c-title-block {
    position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.25rem;
    z-index: 4;
    opacity: 1; transition: opacity 0.2s;
}
.la-panel.is-active .la-c-title-block { opacity: 0; pointer-events: none; }

.la-c-title {
    font-family: 'Barlow', sans-serif;
    font-size: 1.375rem; font-weight: 700;
    line-height: 1.2;
    word-break: break-word; overflow-wrap: break-word; hyphens: auto;
}
/* Orange titles on light panels */
.la-panel--1 .la-c-title,
.la-panel--2 .la-c-title,
.la-panel--4 .la-c-title { color: #f97316; }
/* Gold title on dark luxury panel */
.la-panel--3 .la-c-title { color: #d4af37; }

/* ── ICON: top-left of EXPANDED panel ───────────────────────────────────── */
.la-icon-corner {
    position: absolute; top: 1.75rem; left: 1.75rem; z-index: 5;
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(-8px);
    transition: opacity 0.35s 0.25s, transform 0.35s 0.25s;
    pointer-events: none;
}
.la-panel.is-active .la-icon-corner { opacity: 1; transform: translateY(0); }

/* ── EXPANDED CONTENT — slides up from bottom ────────────────────────────── */
.la-expanded {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 1.75rem 1.75rem 1.75rem;
    z-index: 4; min-width: 260px;
    opacity: 0; transform: translateY(14px);
    transition: opacity 0.38s ease 0.22s, transform 0.38s ease 0.22s;
    pointer-events: none;
}
.la-panel.is-active .la-expanded { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Expanded lane label */
.la-e-label {
    font-family: 'Manrope', sans-serif; font-size: 10px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 0.35rem;
}
.la-panel--1 .la-e-label,
.la-panel--2 .la-e-label,
.la-panel--4 .la-e-label { color: rgba(0,0,0,0.28); }
.la-panel--3 .la-e-label { color: rgba(255,255,255,0.28); }

/* Expanded title */
.la-e-title {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 700;
    line-height: 1.15; margin-bottom: 0.6rem;
}
.la-panel--1 .la-e-title,
.la-panel--2 .la-e-title,
.la-panel--4 .la-e-title { color: #111; }
.la-panel--3 .la-e-title { color: #fff; }

/* Description */
.la-e-desc {
    font-family: 'Manrope', sans-serif; font-size: 0.8125rem;
    line-height: 1.7; margin-bottom: 1.1rem; max-width: 400px;
}
.la-panel--1 .la-e-desc,
.la-panel--2 .la-e-desc,
.la-panel--4 .la-e-desc { color: rgba(0,0,0,0.5); }
.la-panel--3 .la-e-desc { color: rgba(255,255,255,0.48); }

/* Feature list */
.la-e-features { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.la-e-feature {
    display: flex; align-items: center; gap: 0.55rem;
    font-family: 'Manrope', sans-serif; font-size: 0.8rem;
}
.la-panel--1 .la-e-feature,
.la-panel--2 .la-e-feature,
.la-panel--4 .la-e-feature { color: rgba(0,0,0,0.58); }
.la-panel--3 .la-e-feature { color: rgba(255,255,255,0.62); }
.la-e-dot { width: 4px; height: 4px; border-radius: 50%; flex-shrink: 0; }

/* CTA row */
.la-e-cta {
    display: flex; align-items: center; gap: 0.6rem; padding-top: 1.1rem;
}
.la-panel--1 .la-e-cta,
.la-panel--2 .la-e-cta,
.la-panel--4 .la-e-cta { border-top: 1px solid rgba(0,0,0,0.08); }
.la-panel--3 .la-e-cta { border-top: 1px solid rgba(255,255,255,0.08); }

.la-e-cta-label {
    font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase; transition: color 0.2s;
}
/* Active label colour */
.la-panel--1.is-active .la-e-cta-label,
.la-panel--2.is-active .la-e-cta-label,
.la-panel--4.is-active .la-e-cta-label { color: #ea580c; }
.la-panel--3.is-active .la-e-cta-label { color: #d4af37; }
/* Default (non-active) label colour */
.la-panel--1 .la-e-cta-label,
.la-panel--2 .la-e-cta-label,
.la-panel--4 .la-e-cta-label { color: rgba(0,0,0,0.3); }
.la-panel--3 .la-e-cta-label { color: rgba(255,255,255,0.3); }

.la-e-cta-btn {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.06); transition: background 0.25s, transform 0.25s;
}
.la-panel--3 .la-e-cta-btn { background: rgba(255,255,255,0.07); }

.la-panel--1.is-active .la-e-cta-btn,
.la-panel--2.is-active .la-e-cta-btn,
.la-panel--4.is-active .la-e-cta-btn { background: rgba(249,115,22,0.15); }
.la-panel--3.is-active .la-e-cta-btn { background: rgba(212,175,55,0.22); }
.la-panel.is-active:hover .la-e-cta-btn { transform: translateX(4px); }

/* Arrow icon colour */
.la-panel--1 .la-e-cta-btn i,
.la-panel--2 .la-e-cta-btn i,
.la-panel--4 .la-e-cta-btn i { color: #444 !important; }
.la-panel--3 .la-e-cta-btn i { color: #fff !important; }
.la-panel--1.is-active .la-e-cta-btn i,
.la-panel--2.is-active .la-e-cta-btn i,
.la-panel--4.is-active .la-e-cta-btn i { color: #ea580c !important; }

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .la-track { flex-direction: column; height: auto; align-items: stretch; }
    .la-panel, .la-panel.is-active { flex: none !important; height: auto !important; }
    /* Hide collapsed-state elements — expanded content is always shown on mobile */
    .la-c-num-badge,
    .la-c-title-block { display: none !important; }
    .la-ghost-num { display: none; }
    .la-icon-corner { opacity: 1 !important; transform: none !important; top: 1.5rem; left: 1.5rem; }
    .la-expanded { position: relative; opacity: 1 !important; transform: none !important; pointer-events: auto !important; padding: 1.5rem; }
    .la-section { padding: 3.5rem 0 4rem; }
    .la-intro { flex-direction: column; align-items: flex-start; }
    /* Ensure icon corner is in flow above content on mobile */
    .la-panel { padding-top: 4.5rem; }
}
