/* Shared site styles loaded on every page.
   Holds the phone layout fixes and the Invest Now prompts so they live in one place. */

:root {
    --fc-amber: #f5b428;
    --fc-amber-hover: #ffc645;
    --fc-ink: #0f2530;
}

/* ---------- Phone layout: stop pages sliding sideways ---------- */
html, body { overflow-x: clip; }
footer .logo-img,
footer .footer-brand img { width: 220px; max-width: 100%; height: auto; }

@media (max-width: 768px) {
    .compare-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
    .condo-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
    .sub-nav { overflow-x: auto; max-width: 100vw; scrollbar-width: none; }
    .sub-nav::-webkit-scrollbar { display: none; }
}

/* ---------- Amber accent button ---------- */
.fc-btn-amber {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: var(--fc-amber); color: var(--fc-ink) !important;
    padding: 0.85rem 1.6rem; border-radius: 999px;
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.9rem; line-height: 1.2;
    text-decoration: none !important; white-space: nowrap; border: 0; cursor: pointer;
    box-shadow: 0 8px 24px rgba(245, 180, 40, 0.35);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.fc-btn-amber:hover { background: var(--fc-amber-hover); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(245, 180, 40, 0.45); }

/* ---------- Invest Now in the top menu ---------- */
.fc-nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.fc-nav-actions .fc-nav-invest { padding: 0.75rem 1.4rem; font-size: 0.85rem; box-shadow: none; }
@media (max-width: 1240px) { .fc-nav-actions .fc-nav-invest { display: none; } }

/* ---------- Floating Invest Now button ---------- */
.fc-fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 900;
    opacity: 0; transform: translateY(16px); pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.fc-fab.show { opacity: 1; transform: none; pointer-events: auto; }
.fc-fab .fc-btn-amber { padding: 0.95rem 1.5rem; font-size: 0.92rem; box-shadow: 0 12px 32px rgba(15, 37, 48, 0.28); }
@media (max-width: 600px) { .fc-fab { right: 14px; bottom: 14px; } }

/* ---------- One time slide in card ---------- */
.fc-slide {
    position: fixed; left: 22px; bottom: 22px; z-index: 950; width: 360px; max-width: calc(100vw - 28px);
    background: #fff; border-radius: 18px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 37, 48, 0.28);
    font-family: 'Inter', sans-serif; color: #23333d;
    opacity: 0; transform: translateY(24px); pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.fc-slide.show { opacity: 1; transform: none; pointer-events: auto; }
.fc-slide-top { background: var(--fc-amber); padding: 18px 22px 16px; color: var(--fc-ink); }
.fc-slide-top .fc-eyebrow { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; }
.fc-slide-top h4 { margin: 6px 0 0; padding-right: 34px; font-family: 'Playfair Display', 'DM Serif Display', serif; font-size: 1.35rem; line-height: 1.2; font-weight: 600; color: var(--fc-ink); }
.fc-slide-body { padding: 16px 22px 20px; }
.fc-slide-body p { margin: 0 0 14px; font-size: 0.9rem; line-height: 1.6; color: #4d5b63; }
.fc-slide-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fc-slide-actions .fc-btn-amber { padding: 0.75rem 1.3rem; box-shadow: none; background: var(--fc-ink); color: #fff !important; }
.fc-slide-actions .fc-btn-amber:hover { background: #1a3a4a; }
.fc-slide-actions .fc-link { font-size: 0.86rem; font-weight: 600; color: #0f2530; text-decoration: underline; text-underline-offset: 3px; }
.fc-slide .fc-fine { margin: 14px 0 0; font-size: 0.7rem; line-height: 1.5; color: #8a969c; }
.fc-slide-close {
    position: absolute; top: 10px; right: 12px; width: 30px; height: 30px; border-radius: 50%;
    border: 0; background: rgba(15, 37, 48, 0.1); color: var(--fc-ink); font-size: 1.1rem; line-height: 30px; cursor: pointer;
}
.fc-slide-close:hover { background: rgba(15, 37, 48, 0.2); }
@media (max-width: 600px) {
    .fc-slide { left: 14px; right: 14px; bottom: 14px; width: auto; }
}

/* ---------- Yellow card at the top of each Insights letter ---------- */
.fc-yellow-card {
    display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
    background: #fff4d6; border: 1px solid #f3d48a; border-left: 5px solid var(--fc-amber);
    border-radius: 14px; padding: 20px 24px; margin: 0 0 2rem;
    font-family: 'Inter', sans-serif;
}
.fc-yellow-card .fc-eyebrow { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #8a6510; }
.fc-yellow-card strong { display: block; margin: 4px 0 4px; font-size: 1.08rem; color: var(--fc-ink); }
.fc-yellow-card span.fc-sub { display: block; font-size: 0.88rem; line-height: 1.55; color: #5a5440; max-width: 460px; }
.fc-yellow-card .fc-card-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.fc-yellow-card .fc-card-actions a.fc-link { font-size: 0.8rem; font-weight: 600; color: #5a5440; text-decoration: underline; text-underline-offset: 3px; }
.fc-yellow-card .fc-fine { flex-basis: 100%; margin: 0; font-size: 0.7rem; line-height: 1.5; color: #8a7a52; }
