/* assets/css/components.css */
/* ===========================================================================
   TechBasePro — Component-specific styles.
   Navbar, hero, proof bar, problem, story, verticals, proof numbers,
   process, who-we-help, FAQ, contact, footer.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   NAVBAR
   --------------------------------------------------------------------------- */
.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: var(--z-nav);
    padding: 1.1rem 0;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color var(--transition-smooth), padding var(--transition-smooth),
        border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.site-nav.is-scrolled {
    background: rgba(9, 12, 16, 0.85);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-nav);
    padding: 0.7rem 0;
}

.site-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
}

.site-nav__brand:hover {
    color: var(--color-text-primary);
}

/* "interactive solutions" logo (real vector) */
.site-nav__logo {
    height: 26px;
    width: auto;
    display: block;
}

.site-nav.is-scrolled .site-nav__logo {
    height: 24px;
}

.site-footer__logo {
    height: 52px;
    width: auto;
    display: block;
    margin-bottom: 1.25rem;
}

@media (max-width: 575px) {
    .site-nav__logo { height: 22px; }
    .site-footer__logo { height: 46px; }
}

.site-nav__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    position: relative;
    padding: 0.25rem 0;
}

.site-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.site-nav__link:hover,
.site-nav__link.is-active {
    color: var(--color-text-primary);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
    width: 100%;
}

.site-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    padding: 0 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-text-primary);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile slide-down panel */
.mobile-menu {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    z-index: var(--z-overlay);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 6rem 1.5rem 2.5rem;
    transform: translateY(-100%);
    transition: transform var(--transition-smooth);
    box-shadow: var(--shadow-nav);
}

.mobile-menu.is-open {
    transform: translateY(0);
}

.mobile-menu__list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-menu__list a {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-text-primary);
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
}

@media (max-width: 991px) {
    .site-nav__menu,
    .site-nav__actions .btn-accent {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
}

/* ---------------------------------------------------------------------------
   HERO
   --------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
    background-color: var(--color-bg);
}

/* Background stock video */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
}

.hero-video.is-ready {
    opacity: 0.5;
}

/* Dark scrim over the video so headline + CTAs stay high-contrast */
.hero-video__scrim {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(9, 12, 16, 0.55) 0%, rgba(9, 12, 16, 0.78) 100%),
        linear-gradient(90deg, rgba(9, 12, 16, 0.85) 0%, rgba(9, 12, 16, 0.30) 60%, transparent 100%);
}

/* Subtle radial mesh — the only gradient allowed */
.hero-mesh {
    position: absolute;
    inset: -20%;
    z-index: 0;
    background:
        radial-gradient(40% 50% at 20% 20%, rgba(10, 128, 67, 0.10), transparent 70%),
        radial-gradient(35% 45% at 85% 30%, rgba(0, 108, 53, 0.08), transparent 70%);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: var(--fs-h1);
    max-width: 16ch;
    margin-bottom: 1.75rem;
}

.hero .lead {
    max-width: 56ch;
    margin-bottom: 2.25rem;
}

.hero__antihype {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-primary);
    max-width: 54ch;
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 3px solid var(--color-accent);
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

/* Proof bar */
.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.hero-proof__item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.hero-proof__num {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1;
}

.hero-proof__label {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 1.75rem;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--color-text-secondary);
}

/* ---------------------------------------------------------------------------
   PROBLEM
   --------------------------------------------------------------------------- */
.problem-col {
    height: 100%;
    padding: 2rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--border-radius-md);
}

.problem-col__tag {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.85rem;
}

/* ---------------------------------------------------------------------------
   STORY (43 -> 24)
   --------------------------------------------------------------------------- */
.story {
    position: relative;
    background: var(--color-surface);
}

/* Founder pull-quote */
.story__quote {
    margin: 0 0 2rem;
    padding: 1.75rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--border-radius-md);
}

.story__quote blockquote {
    margin: 0 0 1.25rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

.story__quote figcaption {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.story__quote figcaption strong {
    color: var(--color-text-primary);
    display: block;
}

.story__quote-role {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.story__quote-avatar {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
}

.story__counter {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.story__num {
    font-size: var(--fs-stat);
    color: var(--color-accent);
}

.story__num--from {
    color: var(--color-text-muted);
}

.story__arrow {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--color-text-secondary);
}

.story__caption {
    font-family: var(--font-heading);
    color: var(--color-text-secondary);
    margin-top: 1rem;
    font-size: 1.05rem;
}

.story__text p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

.story__text strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.story__kicker {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-primary);
    border-left: 3px solid var(--color-accent);
    padding-left: 1.25rem;
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .story__counter-wrap {
        position: sticky;
        top: 120px;
    }
}

/* ---------------------------------------------------------------------------
   AUTOMATION VERTICALS
   --------------------------------------------------------------------------- */
.vertical-card {
    height: 100%;
    padding: 2rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-left: 3px solid transparent;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth),
        border-color var(--transition-smooth);
}

.vertical-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-left-color: var(--color-accent);
}

.vertical-card__icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    background: var(--color-accent-soft);
    color: var(--color-accent);
    margin-bottom: 1.25rem;
}

.vertical-card__icon svg {
    width: 26px;
    height: 26px;
}

.vertical-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.vertical-card__list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.vertical-card__list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.6rem;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.vertical-card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
}

.vertical-card__result {
    font-size: 0.92rem;
    color: var(--color-text-primary);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 0.9rem;
    margin-bottom: 1.25rem;
}

/* ---------------------------------------------------------------------------
   PROOF NUMBERS
   --------------------------------------------------------------------------- */
.proof-numbers {
    background: #05070A;
}

.proof-stat {
    text-align: center;
    padding: 1.5rem 0.5rem;
}

.proof-stat__num {
    font-family: var(--font-heading);
    font-size: var(--fs-stat);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    letter-spacing: -0.03em;
}

.proof-stat__label {
    margin-top: 0.85rem;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* ---------------------------------------------------------------------------
   PROCESS
   --------------------------------------------------------------------------- */
.process {
    position: relative;
}

.process-grid {
    position: relative;
}

/* Connecting line (desktop) */
.process-line {
    position: absolute;
    top: 38px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}

.process-line__fill {
    position: absolute;
    inset: 0;
    background: var(--color-accent);
}

@media (max-width: 991px) {
    .process-line {
        display: none;
    }
}

.process-step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 1rem;
}

.process-step__num {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    background: var(--color-accent);
    border: 4px solid var(--color-bg);
    border-radius: 50%;
}

.process-step__meta {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
}

.process-step p {
    color: var(--color-text-secondary);
    font-size: 0.97rem;
}

/* ---------------------------------------------------------------------------
   WHO WE HELP / WHO WE DON'T
   --------------------------------------------------------------------------- */
.who-col {
    height: 100%;
    padding: 2.25rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-surface-2);
}

.who-col--for {
    border-top: 3px solid var(--color-success);
}

.who-col--not {
    border-top: 3px solid var(--color-text-muted);
}

.who-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.who-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

.who-list--for li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}

.who-list--not li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: var(--color-text-muted);
    font-weight: 700;
}

/* ---------------------------------------------------------------------------
   FAQ
   --------------------------------------------------------------------------- */
.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    background: var(--color-surface-2);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item__q {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 1.4rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.faq-item__icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    position: relative;
    transition: transform var(--transition-base);
}

.faq-item__icon::before,
.faq-item__icon::after {
    content: "";
    position: absolute;
    background: var(--color-accent);
    border-radius: 2px;
}

.faq-item__icon::before {
    top: 10px; left: 0; width: 22px; height: 2px;
}

.faq-item__icon::after {
    top: 0; left: 10px; width: 2px; height: 22px;
    transition: transform var(--transition-base);
}

.faq-item.is-open .faq-item__icon::after {
    transform: rotate(90deg);
}

.faq-item__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
}

.faq-item__a-inner {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ---------------------------------------------------------------------------
   CONTACT / CTA
   --------------------------------------------------------------------------- */
.cta {
    background: #05070A;
}

.contact-card {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
}

@media (max-width: 575px) {
    .contact-card {
        padding: 1.5rem;
    }
}

.form-success {
    display: none;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    text-align: center;
}

.form-success.is-visible {
    display: block;
}

.form-success__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    color: var(--color-success);
}

.form-alert {
    display: none;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--border-radius-md);
    padding: 0.9rem 1.1rem;
    color: #fca5a5;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
}

.form-alert.is-visible {
    display: block;
}

/* ---------------------------------------------------------------------------
   OFFER LADDER (services)
   --------------------------------------------------------------------------- */
.offer-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth),
        border-color var(--transition-smooth);
}

.offer-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.offer-card--featured {
    border: 2px solid var(--color-accent);
    background: var(--color-surface);
}

.offer-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.offer-card__badge {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: var(--color-accent-soft);
    padding: 0.35rem 0.75rem;
    border-radius: var(--border-radius-pill);
}

.offer-card__step {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.offer-card__price {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1;
}

.offer-card__name {
    font-size: 1.2rem;
    margin: 0.85rem 0 0.35rem;
}

.offer-card__duration {
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.offer-card__desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.offer-card__who {
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.offer-card__who-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
}

.offer-card__who p {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 0.95rem;
}

/* ---------------------------------------------------------------------------
   TRUSTED-BY LOGOS + TESTIMONIALS (within proof section)
   --------------------------------------------------------------------------- */
.proof-logos {
    margin-top: 4rem;
    text-align: center;
}

.proof-logos__label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.proof-logos__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

.proof-logos__img {
    height: 32px;
    width: auto;
    opacity: 0.7;
    filter: grayscale(1);
    transition: opacity var(--transition-base), filter var(--transition-base);
}

.proof-logos__img:hover {
    opacity: 1;
    filter: grayscale(0);
}

.proof-logos__name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--color-text-muted);
    letter-spacing: -0.01em;
}

.testimonial-card {
    height: 100%;
    margin: 0;
    padding: 1.75rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
}

.testimonial-card blockquote {
    margin: 0 0 1.5rem;
    color: var(--color-text-primary);
    font-size: 1rem;
    line-height: 1.6;
    flex: 1 1 auto;
}

.testimonial-card figcaption {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.testimonial-card figcaption strong {
    display: block;
    color: var(--color-text-primary);
}

.testimonial-card__role {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
}

.testimonial-card__avatar {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card__avatar--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
}

/* Trust micro-copy under CTAs */
.process-trust,
.cta-trust {
    margin-top: 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.cta-trust {
    margin-top: 1.25rem;
}

/* ---------------------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------------------- */
.site-footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 4.5rem 0 2rem;
}

.site-footer__brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.site-footer__about {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 60ch;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 1.1rem;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.65rem;
}

.footer-col a {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--color-text-primary);
}

.site-footer__bottom {
    margin-top: 3.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.site-footer__tagline {
    font-family: var(--font-heading);
    color: var(--color-text-secondary);
}

/* Footer contact list (TechBasePro KSA details) */
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-contact li {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 0.6rem;
}
.footer-contact a {
    color: var(--color-text-secondary);
}
.footer-contact a:hover {
    color: var(--color-text-primary);
}

/* Inner-page breadcrumb */
.page-breadcrumb {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1.75rem;
}
.page-breadcrumb a { color: var(--color-text-secondary); }
.page-breadcrumb a:hover { color: var(--color-accent); }
.page-breadcrumb span { margin: 0 0.4rem; }

/* Case studies */
.cs-tag {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-accent);
    background: var(--color-accent-soft);
    padding: 0.3rem 0.7rem;
    border-radius: var(--border-radius-pill);
}
.cs-tag--draft {
    color: var(--color-warning);
    background: rgba(245, 158, 11, 0.12);
}
.cs-result {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    border-top: 1px solid var(--color-border);
    padding-top: 0.85rem;
}
.cs-result__stat {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-accent);
}
.cs-result__label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}
.cs-draft-note {
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fcd34d;
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1.1rem;
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

/* Contact page */
.contact-detail {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
}
.contact-detail__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-size: 24px;
    margin-bottom: 1rem;
}
.contact-detail__label {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}
.contact-detail__line {
    display: block;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}
a.contact-detail__line:hover { color: var(--color-accent); }
.map-wrap {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    filter: grayscale(0.3) contrast(1.05);
}

/* Blog */
.blog-meta {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: var(--color-text-muted);
}
.article-body {
    font-size: 1.075rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}
.article-body h2 {
    font-size: 1.5rem;
    color: var(--color-text-primary);
    margin: 2.25rem 0 0.9rem;
}
.article-body p { margin: 0 0 1.3rem; }
.article-body ul { margin: 0 0 1.3rem; padding-left: 0; list-style: none; }
.article-body ul li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.7rem;
}
.article-body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
}
.article-body strong { color: var(--color-text-primary); font-weight: 600; }
.article-body a { color: var(--color-accent); }

/* ===========================================================================
   AI CHAT WIDGET
   =========================================================================== */
.chat { position: fixed; right: 22px; bottom: 22px; z-index: var(--z-modal); }
.chat__bubble {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--color-accent); color: #fff; border: 0; cursor: pointer;
    box-shadow: 0 10px 30px rgba(10, 128, 67, 0.45);
    display: flex; align-items: center; justify-content: center;
    transition: transform var(--transition-base), background var(--transition-base);
}
.chat__bubble:hover { background: var(--color-accent-hover); transform: scale(1.05); }
.chat__bubble-icon { width: 26px; height: 26px; position: absolute; transition: opacity .2s, transform .2s; }
.chat__bubble-icon--close { opacity: 0; transform: rotate(-90deg); }
.chat.is-open .chat__bubble-icon--open { opacity: 0; transform: rotate(90deg); }
.chat.is-open .chat__bubble-icon--close { opacity: 1; transform: rotate(0); }

.chat__panel {
    position: absolute; right: 0; bottom: 76px;
    width: 380px; max-width: calc(100vw - 32px);
    height: 560px; max-height: calc(100vh - 120px);
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg); box-shadow: var(--shadow-nav);
    display: flex; flex-direction: column; overflow: hidden;
    transform: translateY(16px) scale(0.98); opacity: 0;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
    transform-origin: bottom right;
}
.chat.is-open .chat__panel { transform: translateY(0) scale(1); opacity: 1; }

.chat__header { display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    background: var(--color-surface-2); border-bottom: 1px solid var(--color-border); }
.chat__avatar { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
    background: var(--color-accent); color: #fff; font-family: var(--font-heading);
    font-weight: 700; display: flex; align-items: center; justify-content: center; }
.chat__id { display: flex; flex-direction: column; line-height: 1.3; flex: 1 1 auto; }
.chat__name { font-family: var(--font-heading); font-weight: 600; font-size: .95rem; color: var(--color-text-primary); }
.chat__status { font-size: .75rem; color: var(--color-success); }
.chat__min { background: transparent; border: 0; color: var(--color-text-secondary); cursor: pointer; width: 30px; height: 30px; }
.chat__min svg { width: 22px; height: 22px; }

.chat__log { flex: 1 1 auto; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat__msg { display: flex; }
.chat__msg--user { justify-content: flex-end; }
.chat__bubble-msg { max-width: 82%; padding: .65rem .85rem; border-radius: 14px; font-size: .92rem; line-height: 1.5; }
.chat__msg--assistant .chat__bubble-msg { background: var(--color-surface-2); border: 1px solid var(--color-border); color: var(--color-text-primary); border-bottom-left-radius: 4px; }
.chat__msg--user .chat__bubble-msg { background: var(--color-accent); color: #fff; border-bottom-right-radius: 4px; }
.chat__bubble-msg a { color: var(--color-link); text-decoration: underline; }
.chat__msg--user .chat__bubble-msg a { color: #fff; }

.chat__dot { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%;
    background: var(--color-text-secondary); animation: chat-bounce 1.2s infinite; }
.chat__dot:nth-child(2) { animation-delay: .15s; }
.chat__dot:nth-child(3) { animation-delay: .3s; }
@keyframes chat-bounce { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 8px; }
.chat__chip { font-family: var(--font-heading); font-size: .78rem; color: var(--color-accent);
    background: var(--color-accent-soft); border: 1px solid transparent; border-radius: var(--border-radius-pill);
    padding: .4rem .75rem; cursor: pointer; transition: background var(--transition-base); }
.chat__chip:hover { background: rgba(10, 128, 67, 0.2); }

.chat__form { display: flex; gap: 8px; padding: 12px 16px 6px; border-top: 1px solid var(--color-border); }
.chat__input { flex: 1 1 auto; background: var(--color-bg); border: 1px solid var(--color-border-strong);
    border-radius: var(--border-radius-pill); padding: .6rem 1rem; color: var(--color-text-primary); font-size: .92rem; }
.chat__input:focus { outline: none; border-color: var(--color-accent); }
.chat__send { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--color-accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.chat__send:hover { background: var(--color-accent-hover); }
.chat__send svg { width: 20px; height: 20px; }
.chat__disclaimer { font-size: .7rem; color: var(--color-text-muted); text-align: center; padding: 0 16px 10px; margin: 0; }
.chat__disclaimer a { color: var(--color-text-secondary); }

@media (max-width: 575px) {
    .chat { right: 14px; bottom: 14px; }
    .chat__panel { height: calc(100vh - 100px); }
}
@media (prefers-reduced-motion: reduce) {
    .chat__panel, .chat__bubble, .chat__bubble-icon { transition: none; }
    .chat__dot { animation: none; }
}

/* Cookie consent banner */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--z-modal);
    opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s; pointer-events: none; }
.consent.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.consent__inner { max-width: 1000px; margin: 0 auto; background: var(--color-surface-2);
    border: 1px solid var(--color-border); border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-nav); padding: 1rem 1.25rem; display: flex; align-items: center;
    gap: 1.25rem; flex-wrap: wrap; }
.consent__text { margin: 0; color: var(--color-text-secondary); font-size: .9rem; flex: 1 1 320px; line-height: 1.6; }
.consent__text a { color: var(--color-accent); }
.consent__actions { display: flex; gap: .6rem; flex: 0 0 auto; }
@media (max-width: 575px) { .consent { left: 10px; right: 10px; bottom: 10px; } .consent__actions { width: 100%; } .consent__actions .btn { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }
