/* ── Apex homepage (loquare.fr) ─────────────────────────── */

/* Hero */

.apex-hero {
    background: linear-gradient(135deg, #f8f4f0 0%, var(--bg-page, #fafafa) 100%);
    padding: 5rem 1.5rem 5.5rem;
    position: relative;
    overflow: hidden;
}

.apex-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 60%, rgba(139, 44, 59, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 90% 20%, rgba(230, 168, 23, 0.05) 0%, transparent 45%);
    pointer-events: none;
}

.apex-hero-inner {
    position: relative;
    max-width: 1060px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 4rem;
    align-items: center;
}

.apex-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(139, 44, 59, 0.08);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.apex-hero-copy h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.apex-hero-copy .lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 440px;
}

.apex-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* Override site-wide cta-btn radius/shadow for the apex hero */
.apex-hero .cta-btn {
    border-radius: 8px;
    padding: 0.8rem 1.75rem;
    box-shadow: none;
}

.apex-hero .cta-btn:hover {
    box-shadow: 0 6px 18px rgba(139, 44, 59, 0.25);
}

.cta-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.8rem 1.5rem;
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s;
}

.cta-btn-outline:hover {
    border-color: rgba(139, 44, 59, 0.35);
    color: white;
    transform: translateY(-1px);
    text-decoration: none;
}

.cta-btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    background: white;
    color: var(--primary);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.cta-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: var(--primary);
    text-decoration: none;
}

.apex-hero-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
}

.apex-hero-note .fa-check {
    color: var(--secondary);
}

/* Chat mockup */

.apex-chat-mockup {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.09), 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.apex-chat-header {
    background: var(--primary);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.apex-chat-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.apex-chat-header-text {
    color: white;
}

.apex-chat-header-text strong {
    display: block;
    font-size: 0.9rem;
}

.apex-chat-header-text span {
    font-size: 0.75rem;
    opacity: 0.75;
}

.apex-chat-messages {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.apex-msg {
    max-width: 88%;
    display: flex;
    flex-direction: column;
}

.apex-msg-bot {
    align-self: flex-start;
}

.apex-msg-user {
    align-self: flex-end;
}

.apex-bubble {
    padding: 0.65rem 0.95rem;
    border-radius: 14px;
    font-size: 0.875rem;
    line-height: 1.55;
}

.apex-bubble-bot {
    background: #f2f2f2;
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
}

.apex-bubble-user {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.apex-msg-time {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.apex-msg-user .apex-msg-time {
    text-align: right;
}

.apex-chat-input-row {
    border-top: 1px solid var(--border);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.apex-fake-input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: #fafafa;
    user-select: none;
}

.apex-chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}

/* Towns section */

.apex-towns-section {
    padding: 4rem 0 2rem;
}

.apex-section-overline {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.apex-section-heading {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.apex-section-sub {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 2rem;
    max-width: 480px;
    line-height: 1.6;
}

.apex-towns-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 560px;
}

.apex-town-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    background: white;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.apex-town-card:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 24px rgba(139, 44, 59, 0.10);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.apex-town-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(139, 44, 59, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
}

.apex-town-info {
    flex: 1;
}

.apex-town-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
}

.apex-town-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.apex-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary);
    margin-top: 0.3rem;
}

.apex-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary);
    flex-shrink: 0;
}

.apex-town-arrow {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.15s, transform 0.15s;
    flex-shrink: 0;
}

.apex-town-card:hover .apex-town-arrow {
    color: var(--primary);
    transform: translateX(2px);
}

/* Teaser section */

.apex-teaser-section {
    padding: 2rem 0 4rem;
}

.apex-teaser-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.apex-teaser-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.apex-teaser-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px dashed #ccc;
    border-radius: 999px;
    background: white;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.apex-teaser-pill:hover {
    border-color: var(--primary);
    background: rgba(139, 44, 59, 0.03);
    transform: translateY(-1px);
    color: var(--text-dark);
    text-decoration: none;
}

.apex-teaser-pill-name {
    font-weight: 600;
}

.apex-teaser-pill-sep {
    color: #ccc;
}

.apex-teaser-pill-postal {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.apex-teaser-pill-arrow {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* CTA section */

.apex-cta-section {
    background: var(--primary);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.apex-cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(230, 168, 23, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

.apex-cta-inner {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.apex-cta-inner h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.apex-cta-inner p {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Responsive */

@media (max-width: 860px) {
    .apex-hero-inner {
        grid-template-columns: 1fr;
    }

    .apex-chat-mockup {
        display: none;
    }
}

@media (max-width: 480px) {
    .apex-towns-list {
        max-width: 100%;
    }
}
