/* Smarteek public interface — service marketplace (emerald / amber architecture) */

:root {
    --smarteek-glass: rgba(255, 255, 255, 0.09);
    --smarteek-glass-border: rgba(255, 255, 255, 0.16);
    --smarteek-glow: rgba(5, 150, 105, 0.35);
    --smarteek-service-accent: #059669;
    --smarteek-warm-accent: #d97706;
    --smarteek-rw-link: #2563eb;
    --smarteek-body-text: #1e293b;
    --smarteek-muted-text: #64748b;
    --smarteek-surface: #f8fafc;
    --smarteek-border: #e2e8f0;
    --smarteek-type-base: 0.9375rem;
    --smarteek-type-small: 0.8125rem;
    --smarteek-type-heading: 1.5rem;
    --smarteek-type-h1: clamp(1.375rem, 2.2vw, 1.625rem);
    --smarteek-type-h2: clamp(1.2rem, 1.8vw, 1.375rem);
    --smarteek-type-h3: 1.125rem;
    --smarteek-type-h4: 1.0625rem;
    --smarteek-type-h5: 1rem;
    --smarteek-type-h6: 0.875rem;
    --smarteek-type-lead: 1rem;
}

/* Consistent public typography */
.app--smarteek:not(.app--login-page) main {
    font-size: var(--smarteek-type-base);
    color: var(--smarteek-body-text);
    line-height: 1.55;
}

.app--smarteek:not(.app--login-page) .text-muted,
.app--smarteek:not(.app--login-page) small.text-muted {
    color: var(--smarteek-muted-text) !important;
}

.app--smarteek:not(.app--login-page) main h1,
.app--smarteek:not(.app--login-page) main .h1 {
    font-size: var(--smarteek-type-h1);
}

.app--smarteek:not(.app--login-page) main h2,
.app--smarteek:not(.app--login-page) main .h2 {
    font-size: var(--smarteek-type-h2);
}

.app--smarteek:not(.app--login-page) main h3,
.app--smarteek:not(.app--login-page) main .h3 {
    font-size: var(--smarteek-type-h3);
}

.app--smarteek:not(.app--login-page) main h4,
.app--smarteek:not(.app--login-page) main .h4 {
    font-size: var(--smarteek-type-h4);
}

.app--smarteek:not(.app--login-page) main h5,
.app--smarteek:not(.app--login-page) main .h5 {
    font-size: var(--smarteek-type-h5);
}

.app--smarteek:not(.app--login-page) main h6,
.app--smarteek:not(.app--login-page) main .h6 {
    font-size: var(--smarteek-type-h6);
}

.app--smarteek:not(.app--login-page) main h1,
.app--smarteek:not(.app--login-page) main .h1,
.app--smarteek:not(.app--login-page) main h2,
.app--smarteek:not(.app--login-page) main .h2,
.app--smarteek:not(.app--login-page) main h3,
.app--smarteek:not(.app--login-page) main .h3,
.app--smarteek:not(.app--login-page) main h4,
.app--smarteek:not(.app--login-page) main .h4,
.app--smarteek:not(.app--login-page) main h5,
.app--smarteek:not(.app--login-page) main .h5,
.app--smarteek:not(.app--login-page) main h6,
.app--smarteek:not(.app--login-page) main .h6 {
    color: var(--smarteek-body-text);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.app--smarteek:not(.app--login-page) main .lead {
    font-size: var(--smarteek-type-lead);
    font-weight: 400;
    line-height: 1.55;
}

.app--smarteek:not(.app--login-page) main .breadcrumb {
    font-size: var(--smarteek-type-small);
}

.app--smarteek:not(.app--login-page) main .card-body {
    font-size: var(--smarteek-type-base);
}

/* CMS and long-form public copy */
.app--smarteek:not(.app--login-page) .page-body,
.app--smarteek:not(.app--login-page) .smarteek-prose,
.app--smarteek:not(.app--login-page) .become-agent-cms-intro,
.app--smarteek:not(.app--login-page) .writer-apply-cms-intro {
    font-size: var(--smarteek-type-base);
    line-height: 1.55;
}

.app--smarteek:not(.app--login-page) .page-body p,
.app--smarteek:not(.app--login-page) .smarteek-prose p,
.app--smarteek:not(.app--login-page) .become-agent-cms-intro p,
.app--smarteek:not(.app--login-page) .writer-apply-cms-intro p {
    font-size: inherit;
    margin-bottom: 0.75rem;
}

.app--smarteek:not(.app--login-page) .page-body ul,
.app--smarteek:not(.app--login-page) .page-body ol,
.app--smarteek:not(.app--login-page) .smarteek-prose ul,
.app--smarteek:not(.app--login-page) .smarteek-prose ol,
.app--smarteek:not(.app--login-page) .become-agent-cms-intro ul,
.app--smarteek:not(.app--login-page) .become-agent-cms-intro ol,
.app--smarteek:not(.app--login-page) .writer-apply-cms-intro ul,
.app--smarteek:not(.app--login-page) .writer-apply-cms-intro ol {
    font-size: inherit;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.app--smarteek:not(.app--login-page) .page-body li,
.app--smarteek:not(.app--login-page) .smarteek-prose li,
.app--smarteek:not(.app--login-page) .become-agent-cms-intro li,
.app--smarteek:not(.app--login-page) .writer-apply-cms-intro li {
    margin-bottom: 0.35rem;
}

.app--smarteek:not(.app--login-page) .page-body .lead,
.app--smarteek:not(.app--login-page) .smarteek-prose .lead,
.app--smarteek:not(.app--login-page) .become-agent-cms-intro .lead,
.app--smarteek:not(.app--login-page) .writer-apply-cms-intro .lead {
    font-size: var(--smarteek-type-lead);
}

.app--smarteek {
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 140px);
}

.app--smarteek main {
    background: transparent;
}

.app--smarteek .btn-primary {
    background: linear-gradient(135deg, #059669, #047857);
    border-color: #047857;
}

.app--smarteek .btn-primary:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    border-color: #065f46;
}

/* Nav refinements */
.navbar.smarteek-main-nav {
    background: linear-gradient(105deg, #064e3b 0%, #047857 42%, #059669 100%) !important;
    box-shadow: 0 4px 24px rgba(6, 78, 59, 0.22);
    border-bottom: 2px solid rgba(52, 211, 153, 0.45);
}

/* Full horizontal nav from first paint on tablet/desktop (no JS expand) */
@media (min-width: 768px) {
    .navbar.smarteek-main-nav .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        visibility: visible;
    }

    .navbar.smarteek-main-nav .navbar-toggler {
        display: none;
    }
}

.smarteek-nav-container {
    max-width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.navbar.smarteek-main-nav .navbar-nav {
    flex-wrap: nowrap;
}

.navbar.smarteek-main-nav .nav-link {
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.4rem 0.45rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.navbar.smarteek-main-nav .navbar-brand,
.navbar.smarteek-main-nav .smarteek-brand {
    font-size: 1.15rem;
    padding-right: 0.5rem;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .navbar.smarteek-main-nav .navbar-brand,
    .navbar.smarteek-main-nav .smarteek-brand {
        font-size: 1.12rem;
        max-width: none;
    }
}

.navbar.smarteek-main-nav .nav-link--se-primary {
    font-weight: 700;
    color: #fff !important;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.55), rgba(5, 150, 105, 0.45));
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.5rem;
    box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.2), 0 4px 14px rgba(5, 150, 105, 0.25);
}

.navbar.smarteek-main-nav .nav-link--se-primary:hover,
.navbar.smarteek-main-nav .nav-link--se-primary.active {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.7), rgba(5, 150, 105, 0.55));
    color: #fff !important;
}

.navbar.smarteek-main-nav .nav-link.active {
    color: #fff !important;
    background: var(--smarteek-glass);
    border-radius: 0.375rem;
}

.navbar.smarteek-main-nav .dropdown-menu {
    border: none;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
    border-radius: 0.5rem;
}

.btn-nav-cta {
    border-radius: 2rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    white-space: nowrap;
}

.btn-nav-desk {
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--smarteek-glass-border);
    color: #fff !important;
    font-weight: 600;
}

.btn-nav-desk:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff !important;
}

/* Service marketplace hero */
.hero-ecosystem {
    background: linear-gradient(135deg, #064e3b 0%, #047857 45%, #065f46 100%);
    color: #fff;
    padding: 3.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.hero-ecosystem::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 28%, rgba(16, 185, 129, 0.28) 0%, transparent 45%),
        radial-gradient(circle at 82% 72%, rgba(217, 119, 6, 0.18) 0%, transparent 40%);
    pointer-events: none;
}

.hero-ecosystem .container {
    position: relative;
    z-index: 1;
}

.hero-ecosystem__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-ecosystem__tagline {
    opacity: 0.92;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* Pillar cards */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.pillar-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--smarteek-glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pillar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.28);
}

.pillar-card--help {
    border-top: 3px solid var(--smarteek-service-accent);
}

.pillar-card--window {
    border-top: 3px solid var(--smarteek-warm-accent);
}

.pillar-card--featured {
    box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.35), 0 20px 48px rgba(0, 0, 0, 0.22);
    border-color: rgba(52, 211, 153, 0.45);
}

.pillar-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.pillar-card--help .pillar-card__icon {
    background: rgba(5, 150, 105, 0.28);
    color: #6ee7b7;
}

.pillar-card--window .pillar-card__icon {
    background: rgba(217, 119, 6, 0.28);
    color: #fcd34d;
}

.pillar-card__actions {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Logged-in portal strip */
.portal-strip {
    background: linear-gradient(90deg, rgba(5, 150, 105, 0.1), rgba(217, 119, 6, 0.06));
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
}

.portal-strip__link--primary {
    font-weight: 600;
    color: var(--smarteek-service-accent) !important;
    border-color: #bbf7d0 !important;
}

.portal-strip__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: var(--smarteek-dark);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.portal-strip__link:hover {
    border-color: var(--smarteek-service-accent);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.14);
    color: var(--smarteek-service-accent);
}

/* Ecosystem flow diagram (decorative) */
.ecosystem-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: #64748b;
    margin: 2rem 0;
}

.ecosystem-flow__step {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: #f8fafc;
    border-radius: 2rem;
    border: 1px solid #e2e8f0;
}

.ecosystem-flow__arrow {
    color: #94a3b8;
}

/* Sleek public footer */
.site-footer--sleek {
    margin-top: 3rem;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #e2e8f0;
    border-top: 1px solid rgba(52, 211, 153, 0.25);
    font-size: 0.8125rem;
}

.site-footer__main {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr);
    gap: 2.5rem 3rem;
    padding: 2.5rem 0 2rem;
}

@media (max-width: 991.98px) {
    .site-footer__main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.site-footer__logo,
.site-footer__brand .smarteek-logo {
    display: inline-block;
    margin-bottom: 0.65rem;
}

.site-footer__logo .smarteek-logo__img {
    filter: brightness(1.05);
}

.site-footer__logo:hover .smarteek-logo__img {
    opacity: 0.9;
}

.site-footer__tagline {
    color: #94a3b8;
    font-size: 0.8125rem;
    line-height: 1.55;
    max-width: 22rem;
    margin: 0 0 1rem;
}

.site-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.site-footer__contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.78rem;
    transition: color 0.15s ease;
}

.site-footer__contact a:hover {
    color: #fff;
}

.site-footer__contact .bi {
    font-size: 0.85rem;
    opacity: 0.75;
}

.site-footer__nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem 2rem;
}

@media (max-width: 767.98px) {
    .site-footer__nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem 1.5rem;
    }
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.site-footer__label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 0.15rem;
}

.site-footer__col a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.8125rem;
    line-height: 1.45;
    transition: color 0.15s ease;
}

.site-footer__col a:hover {
    color: #fff;
}

.site-footer__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1.15rem 0 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.site-footer__copy {
    margin: 0;
    color: #64748b;
    font-size: 0.75rem;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
}

.site-footer__legal a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.15s ease;
}

.site-footer__legal a:hover {
    color: #e2e8f0;
}

.site-footer__social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.site-footer__social a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(148, 163, 184, 0.25);
}

.site-footer__social--wa:hover {
    color: #fff;
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.35);
}

@media (max-width: 767.98px) {
    .site-footer__bar {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    .navbar.smarteek-main-nav .btn-nav-cta,
    .navbar.smarteek-main-nav .btn-nav-desk {
        margin: 0.5rem 0;
        display: inline-block;
    }
}
