/* ============================================================
   COMPONENTS — Buttons · Navbar · Footer · Page Header
                Shared Cards (used on multiple pages)
   ============================================================ */

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary { background: var(--gold); color: var(--text-dark); }
.btn-primary:hover {
    background: var(--gold-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-green { background: var(--green-dark); color: var(--white); }
.btn-green:hover {
    background: var(--green-mid);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.55);
}
.btn-outline-white:hover {
    background: var(--white);
    color: var(--green-dark);
    border-color: var(--white);
}

.btn-outline-green {
    background: transparent;
    color: var(--green-dark);
    border: 2px solid var(--green-dark);
}
.btn-outline-green:hover {
    background: var(--green-dark);
    color: var(--white);
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled { box-shadow: var(--shadow-md); }

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--navbar-h);
}

.navbar__logo img { height: 46px; width: auto; }

.navbar__menu {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.navbar__links a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-body);
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-sm);
}
.navbar__links a:hover,
.navbar__links a.active {
    color: var(--green-dark);
    background: var(--green-light);
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.navbar__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar__mobile {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--border);
}
.navbar__mobile.open { display: block; }

.navbar__mobile a {
    display: block;
    padding: 0.85rem var(--space-lg);
    font-weight: 500;
    color: var(--text-body);
    border-bottom: 1px solid var(--border);
    font-size: var(--text-base);
}
.navbar__mobile a:hover { background: var(--green-light); color: var(--green-dark); }
.navbar__mobile .btn    { margin: var(--space-sm) var(--space-lg); display: block; text-align: center; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
    background: #0D1A0F;
    color: rgba(255,255,255,0.70);
    padding: var(--space-3xl) 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand img {
    height: 42px;
    margin-bottom: var(--space-md);
    filter: brightness(0) invert(1);
}
.footer__brand p    { font-size: var(--text-sm); line-height: 1.85; max-width: 280px; }

.footer__tagline {
    display: inline-block;
    margin-top: var(--space-md);
    font-family: var(--font-display);
    font-style: italic;
    color: var(--gold);
    font-size: var(--text-base);
}

.footer__col h5 {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer__col ul             { display: flex; flex-direction: column; gap: 0.65rem; }
.footer__col ul li a        { font-size: var(--text-sm); color: rgba(255,255,255,0.60); }
.footer__col ul li a:hover  { color: var(--gold); padding-left: 4px; }

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    margin-bottom: 0.75rem;
}
.footer__contact-item .icon { color: var(--gold); flex-shrink: 0; }

.footer__socials        { display: flex; gap: var(--space-xs); margin-top: var(--space-md); }
.footer__social-link {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.60);
    transition: var(--transition);
}
.footer__social-link:hover { border-color: var(--gold); color: var(--gold); }

.footer__bottom {
    padding: var(--space-lg) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.35);
}
.footer__bottom a           { color: rgba(255,255,255,0.35); }
.footer__bottom a:hover     { color: var(--gold); }
.footer__bottom-links       { display: flex; gap: var(--space-md); }

/* ── Page Header (all interior pages) ────────────────────── */
.page-header {
    background: var(--green-dark);
    padding: calc(var(--space-3xl) + var(--navbar-h)) 0 var(--space-3xl);
}
.page-header h1 { color: var(--white); margin-bottom: var(--space-sm); }
.page-header p  { color: rgba(255,255,255,0.72); font-size: var(--text-md); max-width: 580px; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.45);
    margin-bottom: var(--space-sm);
}
.breadcrumb a       { color: var(--gold); }
.breadcrumb a:hover { color: var(--white); }

/* ── About Strip (shared: homepage + about page) ─────────── */
.about-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-strip__image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: visible;
    aspect-ratio: 4/3;
    background: var(--green-light);
}
.about-strip__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    position: relative;
    z-index: 1;
}
.about-strip__image::before {
    content: '';
    position: absolute;
    top: -14px; left: -14px; right: 14px; bottom: 14px;
    border: 2px solid var(--gold);
    border-radius: var(--radius-md);
    z-index: 0;
}

.about-strip__content h2 { margin-bottom: var(--space-md); }
.about-strip__content p  { margin-bottom: var(--space-lg); color: var(--text-muted); line-height: 1.85; }

/* ── Insight Card (shared: homepage preview + insights page) */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.insight-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}
.insight-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.insight-card__image {
    aspect-ratio: 16/9;
    background: var(--green-light);
    overflow: hidden;
}
.insight-card__image img { width: 100%; height: 100%; object-fit: cover; }

.insight-card__body    { padding: var(--space-lg); }
.insight-card__meta {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
}
.insight-card__body h3       { font-size: var(--text-lg); margin-bottom: var(--space-xs); color: var(--text-dark); }
.insight-card__body h3 a:hover { color: var(--green-dark); }
.insight-card__body p        { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7; }


/* ── Responsive: Components ───────────────────────────────── */
@media (max-width: 1024px) {
    .footer__grid   { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
    .insights-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar__menu   { display: none; }
    .navbar__toggle { display: flex; }

    .about-strip                { grid-template-columns: 1fr; gap: var(--space-xl); }
    .about-strip__image::before { display: none; }

    .insights-grid  { grid-template-columns: 1fr; }
    .footer__grid   { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
}

/* ── ══════════════════════════════════════════════════════ ── */
/* ── CHAT WIDGET                                            ── */
/* ── ══════════════════════════════════════════════════════ ── */
.chat-widget {
    position: fixed;
    bottom  : 1.5rem;
    right   : 1.5rem;
    z-index : 999;
}

/* ── Trigger Button ───────────────────────────────────────── */
.chat-trigger {
    display        : flex;
    align-items    : center;
    gap            : 0.6rem;
    background     : var(--green-dark);
    color          : var(--white);
    border         : none;
    border-radius  : 100px;
    padding        : 0.85rem 1.4rem 0.85rem 1.1rem;
    font-family    : var(--font-body);
    font-size      : var(--text-sm);
    font-weight    : 600;
    cursor         : pointer;
    box-shadow     : 0 4px 20px rgba(27,92,40,0.35);
    transition     : var(--transition);
}
.chat-trigger:hover {
    background : var(--green-mid);
    transform  : translateY(-2px);
    box-shadow : 0 6px 24px rgba(27,92,40,0.45);
}

.chat-trigger.hidden {
    opacity        : 0;
    pointer-events : none;
    transform      : scale(0.8) translateY(8px);
}

.chat-trigger__icon {
    width          : 28px;
    height         : 28px;
    background     : rgba(255,255,255,0.15);
    border-radius  : 50%;
    display        : flex;
    align-items    : center;
    justify-content: center;
    flex-shrink    : 0;
}

.chat-trigger__label { letter-spacing: 0.02em; }

/* ── Chat Panel ───────────────────────────────────────────── */
.chat-panel {
    position      : absolute;
    bottom        : calc(100% + 1rem);
    right         : 0;
    width         : 340px;
    background    : var(--white);
    border-radius : var(--radius-lg);
    box-shadow    : 0 8px 40px rgba(0,0,0,0.18);
    overflow      : hidden;
    opacity       : 0;
    transform     : translateY(16px) scale(0.97);
    pointer-events: none;
    transition    : opacity 0.25s ease, transform 0.25s ease;
}

.chat-panel.open {
    opacity        : 1;
    transform      : translateY(0) scale(1);
    pointer-events : all;
}

/* Header */
.chat-panel__header {
    background     : var(--green-dark);
    padding        : 1rem 1.25rem;
    display        : flex;
    align-items    : center;
    justify-content: space-between;
}

.chat-panel__brand {
    display    : flex;
    align-items: center;
    gap        : 0.75rem;
}

.chat-panel__brand img {
    height : 32px;
    width  : auto;
    filter : brightness(0) invert(1);
}

.chat-panel__brand strong {
    display     : block;
    color       : var(--white);
    font-family : var(--font-body);
    font-size   : var(--text-sm);
    font-weight : 700;
    line-height : 1.2;
}

.chat-panel__brand span {
    font-size  : var(--text-xs);
    color      : rgba(255,255,255,0.65);
}

.chat-panel__close {
    color      : rgba(255,255,255,0.75);
    cursor     : pointer;
    transition : var(--transition);
    padding    : 0.25rem;
    flex-shrink: 0;
}
.chat-panel__close:hover { color: var(--white); }

/* Body */
.chat-panel__body {
    min-height: 260px;
    max-height: 380px;
    overflow-y: auto;
}

/* Footer */
.chat-panel__footer {
    border-top : 1px solid var(--border);
    padding    : 0.85rem 1.25rem;
    text-align : center;
}

.chat-panel__footer-link {
    font-size  : var(--text-xs);
    font-weight: 600;
    color      : var(--green-dark);
}
.chat-panel__footer-link:hover { color: var(--gold-dark); }

/* ── Placeholder Content ──────────────────────────────────── */
.chat-placeholder {
    padding        : 1.5rem 1.25rem 1rem;
    display        : flex;
    flex-direction : column;
    align-items    : flex-start;
    gap            : 1rem;
}

.chat-placeholder__avatar img {
    height       : 42px;
    width        : auto;
    border-radius: var(--radius-sm);
}

.chat-placeholder__bubble {
    background   : var(--off-white);
    border       : 1px solid var(--border);
    border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
    padding      : 0.85rem 1rem;
}

.chat-placeholder__bubble p {
    font-size  : var(--text-sm);
    color      : var(--text-dark);
    line-height: 1.6;
}

.chat-placeholder__bubble p + p { margin-top: 0.4rem; }

.chat-placeholder__options {
    display       : flex;
    flex-direction: column;
    gap           : 0.5rem;
    width         : 100%;
}

.chat-option {
    display      : block;
    padding      : 0.65rem 1rem;
    border       : 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size    : var(--text-sm);
    font-weight  : 600;
    color        : var(--text-dark);
    transition   : var(--transition);
    background   : var(--white);
}
.chat-option:hover {
    border-color: var(--green-dark);
    color       : var(--green-dark);
    background  : var(--green-light);
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 480px) {
    .chat-widget {
        bottom: 1rem;
        right : 1rem;
    }

    .chat-panel {
        width : calc(100vw - 2rem);
        right : 0;
    }

    .chat-trigger__label { display: none; }

    .chat-trigger {
        width          : 52px;
        height         : 52px;
        border-radius  : 50%;
        padding        : 0;
        justify-content: center;
    }

    .chat-trigger__icon {
        background: transparent;
        width     : 24px;
        height    : 24px;
    }
}