/* =========================================================
   LANDING PAGE - /landing
   Dedicated styles (prefix: .ld-)
   Landing-only palette from brand guide
   ========================================================= */

:root {
    --bg: var(--ld-surface);
    --panel: #ffffff;
    --border: var(--ld-mist);
    --text: var(--ld-ink);
    --muted: var(--ld-muted-blue);
    --userBubble: var(--ld-cream);
    --assistantBubble: #ffffff;
    --shadow: 0 8px 20px rgba(11, 76, 69, .10);

    /* Section Spacing Tokens */
    --ld-section-py: 64px;
    --ld-section-px: 24px;
}

/* Page shell */
.ld-page {
    min-height: 100vh;
    min-height: 100dvh;
    min-height: var(--ld-viewport-height, 100dvh);
    display: flex;
    flex-direction: column;
    background: var(--bg);
    font-size: var(--ld-fs-body);
    line-height: var(--ld-lh-body);
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

/* Sticky nav */
.ld-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    /* border-bottom: 1px solid var(--border); */
    background: var(--panel);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 16px;
}

.ld-nav-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    max-width: 100%;
}

.ld-nav-brand-picture {
    display: inline-flex;
}

.ld-nav-logo {
    display: block;
    width: clamp(170px, 18vw, 260px);
    height: auto;
    max-height: 64px;
    object-fit: contain;
}

.ld-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ld-nav-anchor {
    font-size: var(--ld-fs-ui);
    font-weight: 600;
    line-height: var(--ld-lh-ui);
    color: var(--muted);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 10px;
    transition: background .15s;
}

    .ld-nav-anchor:hover {
        background: var(--ld-surface-soft);
        color: var(--text);
    }

.ld-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ld-nav-collapse {
    gap: 18px;
}

.ld-nav-panel {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ld-nav-mobile-aside {
    display: none;
}

.ld-nav-toggler {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px 10px;
}

.ld-nav-toggler:focus {
    box-shadow: 0 0 0 3px rgba(11, 76, 69, .18);
}

.ld-nav-toggler .navbar-toggler-icon {
    width: 1.1em;
    height: 1.1em;
}

.ld-nav-link {
    font-size: var(--ld-fs-ui);
    font-weight: 600;
    line-height: var(--ld-lh-ui);
    color: var(--muted);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 10px;
    transition: background .15s;
}

    .ld-nav-link:hover {
        background: var(--ld-surface-soft);
        color: var(--text);
    }

.ld-nav-btn {
    font-size: var(--ld-fs-ui);
    font-weight: 700;
    line-height: var(--ld-lh-ui);
    background: var(--ld-primary-deep);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .15s;
}

    .ld-nav-btn:hover {
        opacity: .88;
        color: #fff;
    }

/* Hero */
.ld-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    place-items: center;
    align-content: center;
    gap: clamp(14px, 1.6vw, 22px);
    text-align: center;
    min-height: max(clamp(460px, 62vh, 640px), calc(var(--ld-viewport-height, 100dvh) - var(--ld-nav-height, 76px)));
    padding: clamp(82px, 10vw, 130px) 24px clamp(72px, 8vw, 108px);
    background: linear-gradient(165deg, rgba(14, 147, 144, .20) 0%, rgba(197, 182, 131, .30) 44%, var(--bg) 86%);
}

/* Anchor offset for sticky nav */
#ldServices,
#ldComposer {
    scroll-margin-top: calc(var(--ld-nav-height, 76px) + 16px);
}

@media (max-width: 680px) {
    #ldServices,
    #ldComposer {
        scroll-margin-top: calc(var(--ld-nav-height, 60px) + 12px);
    }
}

.ld-hero::before,
.ld-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.ld-hero::before {
    width: clamp(280px, 38vw, 500px);
    aspect-ratio: 1;
    top: clamp(-120px, -11vw, -54px);
    left: clamp(-120px, -10vw, -34px);
    background: radial-gradient(circle, rgba(14, 147, 144, .24) 0%, rgba(14, 147, 144, 0) 72%);
}

.ld-hero::after {
    width: clamp(320px, 42vw, 560px);
    aspect-ratio: 1;
    right: clamp(-150px, -12vw, -40px);
    bottom: clamp(-180px, -14vw, -90px);
    background: radial-gradient(circle, rgba(197, 182, 131, .28) 0%, rgba(197, 182, 131, 0) 74%);
}

.ld-hero > * {
    position: relative;
    z-index: 1;
}

.ld-hero-logo-wrap {
    display: flex;
    justify-content: center;
    margin: 0 auto 12px;
    width: min(100%, 540px);
}

.ld-hero-logo {
    display: block;
    width: min(100%, 520px);
    height: auto;
    max-height: min(32vh, 210px);
    margin: 0 auto;
    object-fit: contain;
}

.ld-hero-badge {
    display: inline-block;
    font-size: var(--ld-fs-overline);
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    background: var(--ld-cream);
    color: var(--ld-primary-deep);
    border: 1px solid var(--ld-accent);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.ld-hero-headline {
    font-size: var(--ld-fs-title-lg);
    font-weight: 700;
    line-height: var(--ld-lh-heading);
    letter-spacing: -.5px;
    color: var(--text);
    margin: 0 auto;
    max-width: 780px;
}

.ld-hero-sub {
    font-size: var(--ld-fs-lead);
    color: var(--muted);
    line-height: var(--ld-lh-body);
    max-width: 620px;
    margin: 0 auto 14px;
}

.ld-hero-scroll {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--ld-fs-ui);
    font-weight: 700;
    line-height: var(--ld-lh-ui);
    color: #ffffff;
    text-decoration: none;
    padding: 10px 22px;
    border: 2px solid #0e9390;
    background: #0e9390;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(11, 76, 69, .10);
    transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}

    .ld-hero-scroll:hover {
        background: var(--ld-primary-deep);
        border-color: var(--ld-primary-deep);
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(11, 76, 69, .14);
    }

/* Services */
.ld-svc {
    background: var(--panel);
    /* border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border); */
    padding: var(--ld-section-py) var(--ld-section-px);
}

.ld-svc-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.ld-svc-label {
    text-align: center;
    font-size: var(--ld-fs-overline);
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--ld-primary-deep);
    margin: 0 0 8px;
}

.ld-svc-title {
    text-align: center;
    font-size: var(--ld-fs-title-md);
    font-weight: 700;
    line-height: var(--ld-lh-heading);
    margin: 0 0 40px;
    color: var(--text);
}

.ld-svc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 1.6vw, 28px);
}

.ld-svc-card {
    background: var(--bg);
    /* border: 1px solid var(--border); */
    border-radius: 16px;
    padding: 30px 24px;
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}

    .ld-svc-card:hover {
        box-shadow: 0 12px 30px rgba(11, 76, 69, .14);
        transform: translateY(-2px);
    }

.ld-svc-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.ld-svc-icon img {
    display: block;
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.ld-svc-card-title {
    font-size: var(--ld-fs-title-sm);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px;
    color: var(--text);
    min-height: 2.6em; /* Ensures minimum 2 lines so descriptions align */
}

.ld-svc-card-desc {
    font-size: var(--ld-fs-body);
    color: var(--muted);
    line-height: var(--ld-lh-body);
    margin: 0;
    flex-grow: 1;
}

/* Chat composer section */
.ld-chat {
    padding: var(--ld-section-py) var(--ld-section-px);
    background: var(--ld-primary-soft);
}

.ld-chat-inner {
    max-width: 860px;
    margin: 0 auto;
}

.ld-chat-label {
    text-align: center;
    font-size: var(--ld-fs-title-md);
    font-weight: 600;
    color: white;
    letter-spacing: .3px;
    margin-bottom: 14px;
}

.ld-chat-card {
    background: var(--panel);
    /* border: 1px solid var(--border); */
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(11, 76, 69, .12);
    padding: 8px 8px 14px;
    overflow: hidden;
}

    .ld-chat-card .composer {
        border: none;
        box-shadow: none;
        border-radius: 12px;
        /* background: var(--ld-surface); */
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }

.ld-chat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 6px;
}

.ld-chat-hint {
    font-size: var(--ld-fs-caption);
    line-height: var(--ld-lh-body);
    color: var(--muted);
}

    .ld-chat-hint a {
        color: var(--ld-primary-deep);
        font-weight: 600;
        text-decoration: none;
    }

        .ld-chat-hint a:hover {
            text-decoration: underline;
        }

/* Activities gallery */
.ld-gallery {
    padding: var(--ld-section-py) var(--ld-section-px);
    background: var(--panel);
    /* border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border); */
}

.ld-gallery-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.ld-gallery-label {
    text-align: center;
    font-size: var(--ld-fs-overline);
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--ld-primary-deep);
    margin: 0 0 8px;
}

.ld-gallery-title {
    text-align: center;
    font-size: var(--ld-fs-title-md);
    font-weight: 700;
    line-height: var(--ld-lh-heading);
    margin: 0 0 36px;
    color: var(--text);
}

.ld-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ld-gallery-slot {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: var(--ld-surface-soft);
    border: 2px dashed var(--ld-accent);
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: var(--ld-fs-caption);
    font-weight: 600;
}

/* Recognition strip */
.ld-recog {
    padding: var(--ld-section-py) var(--ld-section-px);
}

.ld-recog-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.ld-recog-label {
    font-size: var(--ld-fs-overline);
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--ld-primary-deep);
    margin: 0 0 8px;
}

.ld-recog-title {
    font-size: var(--ld-fs-title-md);
    font-weight: 700;
    line-height: var(--ld-lh-heading);
    margin: 0 0 28px;
    color: var(--text);
}

.ld-recog-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px; /* reduced from 24px to fit 2 items on narrow screens */
    flex-wrap: wrap;
}

.ld-recog-slot {
    width: calc(50% - 8px); /* 2 columns on mobile */
    max-width: 180px;       /* Caps size on desktop */
    height: 72px;
    border-radius: 10px;
    background: var(--ld-surface-soft);
    border: 2px dashed var(--ld-accent);
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: var(--ld-fs-small);
    font-weight: 600;
}

/* Clientele strip */
.ld-clients {
    padding: var(--ld-section-py) var(--ld-section-px);
    background: var(--panel);
    /* border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border); */
}

.ld-clients-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.ld-clients-label {
    font-size: var(--ld-fs-overline);
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--ld-primary-deep);
    margin: 0 0 8px;
}

.ld-clients-title {
    font-size: var(--ld-fs-title-md);
    font-weight: 700;
    line-height: var(--ld-lh-heading);
    margin: 0 0 28px;
    color: var(--text);
}

.ld-clients-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    /* padding: 24px 0; */
}

.ld-clients-slot {
    width: 220px;
    height: 100px;
    border-radius: 10px;
    background: var(--ld-surface-soft);
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: var(--ld-fs-small);
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0.7;
    filter: grayscale(100%);
    overflow: hidden;
    box-sizing: border-box;
}

.ld-clients-slot:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
    background: var(--panel);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.ld-clients-slot--logo {
    background: #fff;
    /* border: 1px solid var(--border); */
    opacity: 1;
    padding: 16px 28px;
    filter: grayscale(0%);
}

.ld-clients-slot--logo picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ld-clients-slot--logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ld-clients-slot--placeholder {
    background: var(--ld-surface-soft);
}

/* CTA */
.ld-cta {
    text-align: center;
    padding: var(--ld-section-py) var(--ld-section-px);
}

.ld-cta-title {
    font-size: var(--ld-fs-title-md);
    font-weight: 700;
    line-height: var(--ld-lh-heading);
    margin: 0 0 8px;
    color: var(--text);
}

.ld-cta-title-main {
    display: inline;
}

.ld-cta-title-emphasis {
    display: inline;
}

.ld-cta-sub {
    font-size: var(--ld-fs-body);
    line-height: var(--ld-lh-body);
    color: var(--muted);
    margin: 0 0 28px;
}

.ld-cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ld-cta-primary {
    background: var(--ld-primary-deep);
    color: #fff;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: var(--ld-fs-ui);
    line-height: var(--ld-lh-ui);
    text-decoration: none;
    transition: opacity .15s;
}

    .ld-cta-primary:hover {
        opacity: .88;
        color: #fff;
    }

.ld-cta-secondary {
    background: #fff;
    color: var(--text);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: var(--ld-fs-ui);
    line-height: var(--ld-lh-ui);
    text-decoration: none;
    border: 1px solid var(--border);
    transition: background .15s;
}

    .ld-cta-secondary:hover {
        background: var(--ld-surface-soft);
    }

/* Footer */
.ld-footer {
    margin-top: auto;
    padding: 24px 32px;
    /* border-top: 1px solid var(--border); */
    background: var(--ld-primary-deep);
    text-align: center;
    font-size: var(--ld-fs-caption);
    line-height: var(--ld-lh-ui);
    color: var(--ld-mist);
}

    .ld-footer a {
        color: var(--ld-cream);
        text-decoration: none;
    }

        .ld-footer a:hover {
            text-decoration: underline;
            color: #fff;
        }

/* Landing-only overrides for shared composer styles */
.ld-page .btn {
    border: 1px solid var(--ld-primary-deep);
    background: var(--ld-primary-deep);
    color: #fff;
    font-size: var(--ld-fs-ui);
    line-height: var(--ld-lh-ui);
    padding: 12px 18px;
}

    .ld-page .btn:hover {
        background: var(--ld-primary);
        border-color: var(--ld-primary);
        opacity: 1;
    }

.ld-page .suggestion-pill {
    border: 1px solid var(--ld-mist);
    background: #fff;
    color: var(--ld-primary-deep);
    font-size: var(--ld-fs-caption);
    line-height: var(--ld-lh-ui);
    padding: 8px 14px;
}

    .ld-page .suggestion-pill:hover {
        background: var(--ld-surface-soft);
        border-color: var(--ld-accent);
    }

    .ld-page .suggestion-pill.is-selected {
        background: var(--ld-primary);
        border-color: var(--ld-primary);
        color: #fff;
    }

        .ld-page .suggestion-pill.is-selected:hover {
            opacity: 0.92;
        }

    .ld-page .suggestion-pill:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.18);
    }

.ld-page .attach-name {
    font-size: var(--ld-fs-caption);
}

.ld-page .attach-remove:hover {
    background: var(--ld-cream);
}

.ld-page .composer textarea::placeholder {
    color: var(--muted);
}

/* Landing login prompt modal palette */
.login-prompt-backdrop {
    background: rgba(11, 76, 69, .48);
}

.login-prompt-card {
    border: 1px solid var(--ld-mist);
}

.login-prompt-x:hover {
    background: var(--ld-surface-soft);
}

.login-prompt-title {
    font-size: var(--ld-fs-title-md);
    color: var(--ld-primary-deep);
    line-height: var(--ld-lh-heading);
}

.login-prompt-sub {
    font-size: var(--ld-fs-ui);
    line-height: var(--ld-lh-body);
}

/* Scroll-reveal animations */
.ld-reveal {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(4px);
    transition:
        opacity .7s cubic-bezier(.16,1,.3,1),
        transform .7s cubic-bezier(.16,1,.3,1),
        filter .7s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform, filter;
    transition-delay: calc(var(--stagger, 0) * 80ms);
}

.ld-reveal--visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    .ld-reveal {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .ld-svc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991.98px) {
    .ld-nav-collapse {
        overflow: hidden;
    }

    .ld-nav-mobile-aside {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .ld-nav-panel {
        margin-top: 10px;
        padding: 12px;
        border-radius: 14px;
        background: var(--panel);
        box-shadow: 0 16px 32px rgba(11, 76, 69, .16);
        border: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .ld-nav-links,
    .ld-nav-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .ld-nav-anchor,
    .ld-nav-link,
    .ld-nav-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 680px) {
    :root {
        --ld-section-py: 48px;
        --ld-section-px: 16px;
    }

    .ld-nav-logo {
        width: clamp(130px, 42vw, 190px);
        max-height: 46px;
    }

    .ld-nav {
        padding: 12px 16px;
        gap: 10px;
    }

    .ld-nav-btn {
        padding: 10px 16px;
    }

    .ld-hero {
        min-height: max(clamp(420px, 72vh, 560px), calc(var(--ld-viewport-height, 100dvh) - var(--ld-nav-height, 68px)));
        padding: clamp(72px, 15vw, 94px) 18px clamp(62px, 12vw, 84px);
    }

    .ld-hero-logo-wrap {
        width: min(220px, 62vw);
        margin-bottom: 14px;
    }

    .ld-hero-logo {
        max-height: none;
    }

    .ld-svc-grid {
        grid-template-columns: 1fr;
    }

    .ld-svc-card-title {
        min-height: auto; /* Remove forced 2-line title on mobile to close gap */
    }

    .ld-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .ld-nav {
        display: flex;
        align-items: center;
    }

    .ld-nav-collapse {
        display: contents;
    }

    .ld-nav-panel {
        display: contents;
    }

    .ld-nav-brand {
        margin-right: auto;
    }

    .ld-nav-links {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .ld-nav-actions {
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    :root {
        --ld-section-py: 40px;
    }

    .ld-nav {
        padding: 10px 12px;
        gap: 8px;
    }

    .ld-nav-panel {
        margin-top: 8px;
    }

    .ld-hero {
        min-height: max(clamp(390px, 70vh, 500px), calc(var(--ld-viewport-height, 100dvh) - var(--ld-nav-height, 60px)));
        padding: clamp(62px, 17vw, 84px) 16px clamp(54px, 13vw, 72px);
        gap: 14px;
    }

    .ld-hero-sub {
        margin-bottom: 10px;
    }

    .ld-nav-logo {
        width: clamp(116px, 38vw, 150px);
        max-height: 40px;
    }

    .ld-cta-title {
        font-size: clamp(31px, 7vw, 36px);
        line-height: 1.18;
        margin-bottom: 12px;
    }

    .ld-cta-title-main,
    .ld-cta-title-emphasis {
        display: block;
        letter-spacing: .2px;
    }

    .ld-cta-title-emphasis {
        margin-top: 4px;
    }

    .ld-cta-sub {
        max-width: 34ch;
        margin-left: auto;
        margin-right: auto;
    }
}
