/* Custom CSS for Trinity Workforce Solutions */

/* ─── Root Scale System ───────────────────────────────────────────────────
   Base font-size on :root controls the entire rem scale.
   16px = 100% (default desktop).
   Each breakpoint shrinks it moderately (10–20%) so all rem-based
   sizes — fonts, padding, gaps, border-radius, etc. — shrink in unison.
   ─────────────────────────────────────────────────────────────────────── */
:root {
    font-size: 16px; /* Desktop baseline */

    /* Brand colours as variables for consistency */
    --color-blue:   #1b405f;
    --color-orange: #f78510;
    --color-gray:   #545454;
    --color-light:  #6b7280;
    --color-border: #e5e7eb;
}

/* Laptop: 1025px – 1350px → ~12% smaller */
@media (min-width: 1025px) and (max-width: 1350px) {
    :root { font-size: 14px; }
}

/* Tablet: 768px – 1024px → ~16% smaller */
@media (min-width: 768px) and (max-width: 1024px) {
    :root { font-size: 13.5px; }
}

/* Mobile: below 768px → ~19% smaller */
@media (max-width: 767px) {
    :root { font-size: 13px; }
}

/* ─── Global Reset ───────────────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem; /* inherits from :root — scales with breakpoints */
    overflow-x: hidden;
    line-height: 1.6;
}

/* ─── Animations ─────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(1.875rem); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-3.125rem); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(3.125rem); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%       { transform: scale(1.05); opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-1.25rem); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes shimmer {
    0%   { background-position: -62.5rem 0; }
    100% { background-position:  62.5rem 0; }
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0) scale(1);               opacity: 0; }
    10%       { opacity: 0.5; }
    90%       { opacity: 0.5; }
    50%       { transform: translate(6.25rem, -6.25rem) scale(1.5); }
}

/* Animation utility classes */
.animate-fade-in-up     { animation: fadeInUp     0.8s ease-out forwards; opacity: 0; }
.animate-fade-in        { animation: fadeIn       0.8s ease-out forwards; opacity: 0; }
.animate-slide-in-left  { animation: slideInLeft  0.8s ease-out forwards; opacity: 0; }
.animate-slide-in-right { animation: slideInRight 0.8s ease-out forwards; opacity: 0; }

/* ─── Hero – Rotating Text ───────────────────────────────────────────────── */
.rotating-text-wrapper {
    position: relative;
    display: inline-block;
    min-height: 1.2em;
}

.rotating-text {
    position: absolute;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(1.25rem);
    transition: all 0.5s ease;
}

.rotating-text.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

/* ─── Particles Background ───────────────────────────────────────────────── */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floatParticle 15s infinite ease-in-out;
}

/* ─── Floating Elements ──────────────────────────────────────────────────── */
.floating-element                { position: absolute; animation: float 6s ease-in-out infinite; }
.floating-element:nth-child(2)   { animation-delay: 1s;  animation-duration: 7s;   }
.floating-element:nth-child(3)   { animation-delay: 2s;  animation-duration: 8s;   }
.floating-element:nth-child(4)   { animation-delay: 3s;  animation-duration: 6.5s; }

/* ─── Service Cards ──────────────────────────────────────────────────────── */
.service-card {
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(247, 133, 16, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before { left: 100%; }
.service-card:hover          { transform: translateY(-0.625rem); }

.service-card .card-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.service-card:hover .card-expanded { max-height: 18.75rem; }

/* ─── Industry Cards ─────────────────────────────────────────────────────── */
.industry-card       { transform: translateY(0); transition: all 0.3s ease; }
.industry-card:hover { transform: translateY(-0.625rem); }

/* ─── Counter Animation ──────────────────────────────────────────────────── */
.counter { display: inline-block; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn { position: relative; overflow: hidden; z-index: 1; }

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before { width: 18.75rem; height: 18.75rem; }

/* ─── Loading Spinner ────────────────────────────────────────────────────── */
.spinner {
    border: 0.1875rem solid rgba(255, 255, 255, 0.3);
    border-top: 0.1875rem solid var(--color-orange);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    animation: spin 1s linear infinite;
}

/* ─── Toast Notifications ────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(1.25rem);
    transition: all 0.3s ease;
    z-index: 9999;
    font-size: 0.9rem;
}

.toast.show    { opacity: 1; transform: translateY(0); }
.toast.success { border-left: 0.25rem solid #10b981; }
.toast.error   { border-left: 0.25rem solid #ef4444; }
.toast.info    { border-left: 0.25rem solid #3b82f6; }

/* ─── Modal ──────────────────────────────────────────────────────────────── */
.modal      { transition: all 0.3s ease; }
.modal.show { display: flex !important; }

/* ─── Form Styles ────────────────────────────────────────────────────────── */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 0.125rem solid var(--color-border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 0.1875rem rgba(247, 133, 16, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-blue);
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover { box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.15); }

/* ─── Utilities ──────────────────────────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.progress-bar {
    height: 0.25rem;
    background: var(--color-border);
    border-radius: 0.125rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-blue), var(--color-orange));
    transition: width 0.3s ease;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary   { background: var(--color-blue);   color: white; }
.badge-secondary { background: var(--color-gray);   color: white; }
.badge-accent    { background: var(--color-orange);  color: white; }

.divider {
    height: 0.0625rem;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
    margin: 2rem 0;
}

/* ─── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar        { width: 0.625rem; height: 0.625rem; }
::-webkit-scrollbar-track  { background: #f1f1f1; }
::-webkit-scrollbar-thumb  { background: var(--color-blue); border-radius: 0.3125rem; }
::-webkit-scrollbar-thumb:hover { background: var(--color-orange); }

/* ─── Responsive fine-tuning ─────────────────────────────────────────────── */

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .service-card:hover .card-expanded { max-height: none; }

    .toast {
        bottom: 1.5rem;
        right: 1.5rem;
        left: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .service-card .card-expanded { max-height: none !important; }

    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .card { border-radius: 0.75rem; }
}

/* ─── Print ──────────────────────────────────────────────────────────────── */
@media print {
    .no-print { display: none !important; }
}

/* ─── Accessibility ──────────────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

*:focus-visible  { outline: 0.125rem solid var(--color-orange); outline-offset: 0.125rem; }
::selection      { background: var(--color-orange); color: white; }

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 999;
    width: 3.5rem;
    height: 3.5rem;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.25);
    animation: pulse 2.4s ease-in-out infinite;
    transition: transform 0.15s ease, background 0.15s ease;
}

.whatsapp-float:hover {
    background: #1ebe57;
    transform: scale(1.08);
    animation-play-state: paused;
}

@media (max-width: 640px) {
    .whatsapp-float {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
    }
}

/* Regional Presence cards (about page) — city image, circular flag, hover reveal */
.region-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
    cursor: pointer;
    outline: none;
}

.region-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.region-card:hover .region-card-img,
.region-card:focus-within .region-card-img,
.region-card.is-active .region-card-img {
    transform: scale(1.08);
}

.region-card-flag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.region-card-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.region-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(27, 64, 95, 0.96) 0%, rgba(27, 64, 95, 0.6) 42%, rgba(27, 64, 95, 0.05) 78%);
    color: #fff;
}

.region-card-overlay h3 {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}

.region-card-overlay .region-card-city {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.region-card-desc {
    font-size: 0.83rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
}

.region-card:hover .region-card-desc,
.region-card:focus-within .region-card-desc,
.region-card.is-active .region-card-desc {
    max-height: 8rem;
    opacity: 1;
}

/* Regional Presence — homepage variant. Deliberately not the About page's
   overlaid-caption card: the photo stays completely clean (no gradient/tint
   of any kind) and the city/country/flag live in a plain caption strip
   underneath instead of on top of the image. */
.region-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.region-strip-card {
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eef2f7;
    box-shadow: 0 0.375rem 1.25rem rgba(15, 30, 45, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.region-strip-card:hover {
    box-shadow: 0 0.75rem 2rem rgba(15, 30, 45, 0.14);
    transform: translateY(-0.25rem);
}

.region-strip-photo {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.region-strip-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* No overlay, no filter, no tint — the zoom-on-hover is the only motion,
       and it's a transform, not a color treatment, so the photo itself
       stays exactly as clear at rest and on hover. */
    transition: transform 0.5s ease;
}

.region-strip-card:hover .region-strip-img {
    transform: scale(1.06);
}

.region-strip-caption {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
}

.region-strip-flag {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eef2f7;
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.12);
}

.region-strip-caption h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #1b405f;
    line-height: 1.2;
}

.region-strip-caption p {
    font-size: 0.8rem;
    color: #6b7280;
}

@media (min-width: 640px) {
    .region-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .region-strip { grid-template-columns: repeat(5, 1fr); }
}

/* Insight like/share engagement buttons */
.insight-engage-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border: 2px solid #e5e7eb;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #545454;
    background: #fff;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.insight-engage-btn:hover {
    border-color: #f78510;
    color: #f78510;
}

.insight-engage-btn--active {
    border-color: #f78510;
    color: #f78510;
    background: rgba(247, 133, 16, 0.08);
}

.insight-engage-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Admin-managed hanging/bouncing hero announcement (e.g. hiring announcements).
   position:fixed on the wrapper — not just absolute within the hero — so it
   stays on screen as the visitor scrolls the rest of the page, with a glowing
   pulse ring + shimmering gradient fill so it reads as "urgent/new" at a glance. */
.hero-announce-wrap {
    position: fixed;
    /* top clears the fixed 80px nav bar with room to spare — a smaller
       offset here sits *behind* the nav (z-index:1000) */
    top: 6.5rem;
    right: 1.75rem;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: calc(100vw - 2rem);
}

.hero-announce-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    background: linear-gradient(110deg, #f78510 0%, #ffb15c 45%, #f78510 100%);
    background-size: 220% 100%;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    padding: 0.7rem 1.35rem;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 0.6rem 1.75rem rgba(0, 0, 0, 0.35);
    animation:
        heroAnnounceBounce 2.4s ease-in-out infinite,
        heroAnnounceShine 3.2s linear infinite;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    max-width: calc(100vw - 6rem);
}

.hero-announce-btn::before {
    content: '';
    position: absolute;
    inset: -0.3rem;
    border-radius: 9999px;
    border: 2px solid #ffb15c;
    animation: heroAnnouncePing 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
    pointer-events: none;
}

.hero-announce-btn:hover {
    box-shadow: 0 0.85rem 2.25rem rgba(0, 0, 0, 0.42);
    animation-play-state: paused;
    transform: scale(1.04);
}

.hero-announce-btn .material-symbols-rounded {
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
    text-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.25);
}

.hero-announce-btn span:not(.material-symbols-rounded) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.2);
}

/* Dismiss control — a fixed, always-visible badge needs an escape hatch so it
   never feels like it's trapping the page; sits outside the <a> since a
   <button> can't nest inside interactive content. */
.hero-announce-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: rgba(27, 64, 95, 0.85);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 0.3rem 0.75rem rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.hero-announce-close:hover {
    background: rgba(27, 64, 95, 1);
    transform: scale(1.08);
}

@keyframes heroAnnounceBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.5rem); }
}

@keyframes heroAnnounceShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 220% 50%; }
}

@keyframes heroAnnouncePing {
    0% { transform: scale(1); opacity: 0.8; }
    75%, 100% { transform: scale(1.25); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-announce-btn,
    .hero-announce-btn::before {
        animation: none !important;
    }
}

@media (max-width: 640px) {
    .hero-announce-wrap {
        top: 6.25rem;
        right: 1rem;
        gap: 0.3rem;
        max-width: calc(100vw - 1.5rem);
    }

    .hero-announce-btn {
        font-size: 0.75rem;
        padding: 0.55rem 1rem;
        max-width: calc(100vw - 4.5rem);
    }

    .hero-announce-close {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
    }
}

/* WhatsApp inquiry modal — solid overlay (no backdrop blur) by design */
.wa-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(15, 23, 42, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.wa-modal-overlay.hidden {
    display: none;
}

.wa-modal-card {
    background: #fff;
    border-radius: 1rem;
    width: 100%;
    max-width: 30rem;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.3);
}

.wa-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1rem;
    background: #1b405f;
    color: #fff;
    border-radius: 1rem 1rem 0 0;
}

.wa-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
}

.wa-modal-header h3 i {
    color: #25d366;
}

.wa-modal-header p {
    margin-top: 0.35rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
}

.wa-modal-close {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: background 0.15s ease;
}

.wa-modal-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.wa-modal-body {
    padding: 1.5rem;
}

.wa-service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 480px) {
    .wa-service-grid {
        grid-template-columns: 1fr;
    }
}

.wa-service-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1b405f;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.wa-service-chip:has(input:checked) {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.08);
}

.wa-service-chip input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: #25d366;
    flex-shrink: 0;
}

.wa-note-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1b405f;
    margin-bottom: 0.4rem;
}

.wa-note-input {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 0.6rem;
    padding: 0.75rem;
    font-size: 0.9rem;
    color: #374151;
    resize: vertical;
}

.wa-note-input:focus {
    outline: none;
    border-color: #25d366;
}

.wa-modal-footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.wa-continue-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    padding: 0.85rem 1.25rem;
    border-radius: 0.6rem;
    font-size: 0.95rem;
    transition: background 0.15s ease, transform 0.15s ease;
}

.wa-continue-btn:hover {
    background: #1ebe57;
    transform: translateY(-1px);
}

.wa-skip-btn {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    padding: 0.4rem;
}

.wa-skip-btn:hover {
    color: #1b405f;
}

/* Homepage industry->service quiz option buttons */
.quiz-option-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #1b405f;
    font-weight: 600;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.quiz-option-btn:hover {
    border-color: #f78510;
    background: #fff7ed;
    transform: translateX(0.25rem);
}

/* Trusted-by marquee (below hero) */
.trust-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(247, 133, 16, .95);
    box-shadow: 0 0 0 4px rgba(247, 133, 16, .16);
    display: inline-block;
    flex: 0 0 auto;
}

.logo-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .9rem;
    border-radius: 999px;
    color: #1b405f;
    font-weight: 700;
    font-size: .85rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
}

.marquee {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 32s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.trust-logos-marquee {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 14px;
    flex-shrink: 0;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* AI-assisted services discovery */
.ai-category-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.1rem;
    border-radius: 999px;
    background: #153a56;
    border: 0;
    color: #fff;
    font-weight: 600;
    font-size: .85rem;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.ai-category-chip .material-symbols-rounded { color: #f78510; font-size: 1.1rem; }

.ai-category-chip:hover {
    transform: translateY(-2px);
    background: #204c6b;
}

.ai-typing-indicator {
    display: flex;
    gap: .35rem;
    width: fit-content;
}

.ai-typing-indicator span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #f78510;
    animation: aiTypingBounce 1.2s ease-in-out infinite;
}

.ai-typing-indicator span:nth-child(2) { animation-delay: .15s; }
.ai-typing-indicator span:nth-child(3) { animation-delay: .3s; }

@keyframes aiTypingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: .5; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.ai-response-text { line-height: 1.7; }
.ai-response-text p { margin-bottom: .85rem; }
.ai-response-text p:last-child { margin-bottom: 0; }
.ai-response-text ul { list-style: none; margin: 0 0 .85rem; padding: 0; }
.ai-response-text li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: .5rem;
}
.ai-response-text li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55rem;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #f78510;
}
.ai-response-text strong { color: #1b405f; font-weight: 700; }
::-moz-selection { background: var(--color-orange); color: white; }
/* ─── Material Symbols and flat homepage icon treatment ──────────────── */
.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'liga';
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    text-shadow: none !important;
    box-shadow: none !important;
}

.material-inline-icon {
    flex: 0 0 auto;
    font-size: 1.15em;
    vertical-align: -0.2em;
}

.logo-material-icon {
    color: var(--color-orange);
    font-size: 1rem;
}

.homepage-check-icon,
.systems-check-icon,
.industry-check-icon {
    flex: 0 0 auto;
    color: var(--color-orange);
    box-shadow: none;
}

.homepage-check-icon { margin: .18rem .55rem 0 0; font-size: 1rem; }
.systems-check-icon { margin: .1rem .7rem 0 0; font-size: 1.35rem; }
.industry-check-icon { margin: .12rem .5rem 0 0; font-size: 1.05rem; }
.quiz-success-icon { color: #16a34a; font-size: 2rem; }
.close-material-icon { font-size: 1.75rem; }
.ai-response-icon { color: #fff; font-size: 1.45rem; }

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    border: 0;
    border-radius: .75rem;
    color: #fff;
    box-shadow: none;
    transition: background-color .2s ease;
}
.service-icon--blue { background: var(--color-blue); }
.service-icon--orange { background: var(--color-orange); }
.service-icon .material-symbols-rounded { font-size: 2rem; }

/* Remove the glossy sweep and excessive elevation from homepage cards. */
.service-card,
.industry-card {
    box-shadow: none !important;
}
.service-card::before { display: none; }
.service-card:hover,
.industry-card:hover { transform: translateY(-.25rem); }

/* ─── AI Workforce Insights – flat, solid and product-led ──────────────── */
.aiw-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 6.5rem 0;
    color: #fff;
    background: var(--color-blue);
}

.aiw-container {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 3rem), 82rem);
    margin-inline: auto;
}

.aiw-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(28rem, 1.08fr);
    gap: clamp(3rem, 6vw, 5.5rem);
    align-items: center;
}

.aiw-copy { max-width: 38rem; }

.aiw-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.35rem;
    padding: .55rem .85rem;
    border: 0;
    border-radius: .45rem;
    background: #12334d;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.aiw-eyebrow .material-symbols-rounded {
    color: var(--color-orange);
    font-size: 1.15rem;
}

.aiw-title {
    max-width: 37rem;
    margin: 0;
    color: #fff;
    font-size: clamp(2.65rem, 5vw, 4.75rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.045em;
}
.aiw-title span { display: block; color: var(--color-orange); }

.aiw-lead {
    max-width: 35rem;
    margin: 1.55rem 0 0;
    color: #d8e1e8;
    font-size: 1.12rem;
    line-height: 1.75;
}

.aiw-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 2rem;
}

.aiw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 3.25rem;
    padding: .85rem 1.25rem;
    border: 0;
    border-radius: .55rem;
    box-shadow: none;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.aiw-btn .material-symbols-rounded { font-size: 1.2rem; }
.aiw-btn:hover { transform: translateY(-1px); }
.aiw-btn--primary { color: #fff; background: var(--color-orange); }
.aiw-btn--primary:hover { background: #e87606; }
.aiw-btn--secondary { color: #fff; background: #12334d; }
.aiw-btn--secondary:hover { background: #0d2b43; }

.aiw-proof {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1.1rem;
    margin-top: 1.35rem;
    color: #c7d4dd;
    font-size: .78rem;
    font-weight: 650;
}
.aiw-proof span { display: inline-flex; align-items: center; gap: .42rem; }
.aiw-proof .material-symbols-rounded { color: var(--color-orange); font-size: 1rem; }

.aiw-visual { position: relative; margin: 0; }
.aiw-visual::before { display: none; }

.aiw-visual-frame {
    position: relative;
    overflow: hidden;
    padding: .5rem;
    border: 0;
    border-radius: 1rem;
    background: #102f49;
    box-shadow: none;
}

.aiw-dashboard-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: .65rem;
}

.aiw-floating-card {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem .85rem;
    border: 0;
    border-radius: .45rem;
    background: #0d2b43;
    color: #fff;
    box-shadow: none;
    font-size: .75rem;
    font-weight: 800;
}
.aiw-floating-card--top { top: -1rem; right: 1.3rem; }
.aiw-floating-card--bottom { bottom: -1rem; left: 1.4rem; }
.aiw-floating-card .material-symbols-rounded { color: var(--color-orange); font-size: 1.05rem; }

.aiw-status-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: #31d17c;
    box-shadow: none;
}

.aiw-capabilities {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
    margin-top: 4.25rem;
    padding: .75rem;
    border: 0;
    border-radius: .8rem;
    background: #153a56;
    box-shadow: none;
}

.aiw-capability {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-width: 0;
    padding: .85rem;
    border-radius: .45rem;
    background: #1a4361;
    transition: background-color .2s ease;
}
.aiw-capability:hover { background: #204c6b; }

.aiw-capability-icon {
    flex: 0 0 auto;
    color: var(--color-orange);
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 1.65rem;
}
.aiw-capability strong,
.aiw-capability small { display: block; }
.aiw-capability strong { color: #fff; font-size: .88rem; line-height: 1.3; }
.aiw-capability small { margin-top: .18rem; color: #b9c9d4; font-size: .69rem; line-height: 1.45; }

.aiw-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin: 5rem 0 1.65rem;
}
.aiw-kicker {
    display: block;
    margin-bottom: .5rem;
    color: var(--color-orange);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.aiw-section-heading h3 {
    max-width: 34rem;
    margin: 0;
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    line-height: 1.15;
    letter-spacing: -.025em;
}
.aiw-section-heading > p {
    max-width: 29rem;
    margin: 0;
    color: #c2d0da;
    font-size: .95rem;
    line-height: 1.65;
}

.aiw-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.aiw-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 17.5rem;
    padding: 1.35rem;
    overflow: hidden;
    border: 0;
    border-radius: .75rem;
    background: #214b69;
    box-shadow: none;
    transition: transform .2s ease, background-color .2s ease;
}
.aiw-card::after { display: none; }
.aiw-card:hover { transform: translateY(-.2rem); background: #285674; box-shadow: none; }
.aiw-card--featured { background: #2c526b; }
.aiw-card--featured:hover { background: #345d77; }

.aiw-card-topline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.aiw-number {
    color: #aac0cf;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .12em;
}
.aiw-icon {
    color: var(--color-orange);
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 2rem;
}
.aiw-card h4,
.aiw-card p,
.aiw-card-link { position: relative; z-index: 1; }
.aiw-card h4 { margin: 0 0 .65rem; color: #fff; font-size: 1.02rem; line-height: 1.4; }
.aiw-card p { margin: 0; color: #c7d4dd; font-size: .81rem; line-height: 1.65; }
.aiw-card-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: auto;
    padding-top: 1.2rem;
    color: #d9e2e8;
    font-size: .72rem;
    font-weight: 750;
}
.aiw-card-link .material-symbols-rounded { color: var(--color-orange); font-size: 1rem; }

.aiw-cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2.3rem;
    padding: 1.4rem 1.5rem;
    border: 0;
    border-radius: .75rem;
    background: #12334d;
    box-shadow: none;
}
.aiw-cta-copy { display: flex; align-items: center; gap: 1rem; }
.aiw-cta-icon {
    flex: 0 0 auto;
    color: var(--color-orange);
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 2rem;
}
.aiw-cta-copy h3 { margin: 0; color: #fff; font-size: 1.12rem; line-height: 1.35; }
.aiw-cta-copy p { margin: .25rem 0 0; color: #b9c9d4; font-size: .78rem; }
.aiw-cta-actions { display: flex; align-items: center; gap: 1rem; flex: 0 0 auto; }
.aiw-text-link {
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--color-orange);
    text-underline-offset: .25rem;
}
.aiw-text-link:hover { color: #ffd4a5; }

@media (max-width: 1100px) {
    .aiw-hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .aiw-copy { max-width: 46rem; }
    .aiw-title { max-width: 44rem; }
    .aiw-lead { max-width: 42rem; }
    .aiw-visual { max-width: 54rem; }
    .aiw-capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aiw-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .aiw-section { padding: 5rem 0; }
    .aiw-container { width: min(calc(100% - 2rem), 82rem); }
    .aiw-title { font-size: clamp(2.35rem, 11vw, 3.35rem); }
    .aiw-lead { font-size: 1rem; }
    .aiw-actions { align-items: stretch; flex-direction: column; }
    .aiw-btn { width: 100%; }
    .aiw-proof { display: grid; grid-template-columns: 1fr; }
    .aiw-floating-card { display: none; }
    .aiw-capabilities { grid-template-columns: 1fr; margin-top: 2.5rem; }
    .aiw-section-heading { align-items: flex-start; flex-direction: column; margin-top: 3.8rem; }
    .aiw-cards { grid-template-columns: 1fr; }
    .aiw-card { min-height: auto; }
    .aiw-card-link { margin-top: 1.2rem; }
    .aiw-cta-panel { align-items: stretch; flex-direction: column; }
    .aiw-cta-actions { align-items: stretch; flex-direction: column; }
    .aiw-text-link { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .aiw-btn,
    .aiw-card { transition: none !important; }
}

/* ─── Homepage Hero Slider ────────────────────────────────────────────────
   Fully externalized from index.php. All selectors are scoped to #hero so
   the homepage slider styles cannot affect other pages or components.
   ─────────────────────────────────────────────────────────────────────── */
#hero .slides {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 30rem;
}

#hero .slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    opacity: 0;
    pointer-events: none;
    background: #0d2539;
    transition: opacity .9s ease;
}

#hero .slide.active {
    opacity: 1;
    pointer-events: auto;
}

#hero .slide-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#hero .slide-image--strategy { object-position: center 48%; }
#hero .slide-image--talent,
#hero .slide-image--digital { object-position: center 50%; }

#hero .slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(rgba(6, 10, 16, .38), rgba(6, 10, 16, .46)),
        radial-gradient(circle at center, rgba(6, 10, 16, .10), rgba(6, 10, 16, .45) 100%);
}

#hero .slide-content {
    position: relative;
    z-index: 2;
    width: 96%;
    max-width: 81.25rem;
    margin: 0 auto;
    padding: 2rem 1.25rem;
    text-align: center;
}

#hero .slide-title {
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
    text-shadow: 0 .125rem .625rem rgba(0, 0, 0, .5);
    animation: heroPopIn .8s ease both;
}

@keyframes heroPopIn {
    from { opacity: 0; transform: translateY(1rem); }
    to   { opacity: 1; transform: translateY(0); }
}

#hero .slide-desc {
    max-width: 45rem;
    margin: 0 auto 2.25rem;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.75;
    text-shadow: 0 .0625rem .375rem rgba(0, 0, 0, .45);
}

#hero .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.15rem;
}

#hero .hero-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: 1.15rem 2.4rem;
    border-radius: .25rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    user-select: none;
    transition: filter .15s ease, transform .15s ease;
}

#hero .hero-btn:active { transform: translateY(.0625rem); }
#hero .btn-dark { color: #fff; background: #14181c; }
#hero .btn-dark:hover { filter: brightness(1.3); }
#hero .btn-orange { color: #fff; background: var(--color-orange); }
#hero .btn-orange:hover { filter: brightness(1.08); }

#hero .dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    z-index: 3;
    display: flex;
    gap: .625rem;
    transform: translateX(-50%);
}

#hero .dot {
    width: .625rem;
    height: .625rem;
    border: .0625rem solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, width .2s ease;
}

#hero .dot.active {
    width: 1.625rem;
    background: var(--color-orange);
}

@media (min-width: 640px) {
    #hero .slide-content {
        width: 92%;
        padding: 2.5rem 2rem;
    }
}

@media (min-width: 768px) {
    #hero .slide-content {
        width: 85%;
        padding: 3rem 2.5rem;
    }
}

@media (min-width: 1024px) {
    #hero .slides {
        height: 75vh;
        min-height: 33.75rem;
    }

    #hero .slide-content {
        width: 75%;
        padding: 3.5rem 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #hero .slide { transition: none !important; }
    #hero .slide-title { animation: none !important; }
}

/* ─── Homepage Inline-Style Replacements ─────────────────────────────────
   These utility hooks keep index.php free of presentation CSS.
   ─────────────────────────────────────────────────────────────────────── */
.systems-development-image { aspect-ratio: 480 / 340; }

.ai-service-background-glow {
    background-image:
        radial-gradient(circle at 15% 20%, rgba(247, 133, 16, .5), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(255, 255, 255, .3), transparent 45%);
}

.ai-service-search-input { --tw-ring-color: rgba(247, 133, 16, .4); }
.ai-service-lead-input { color: var(--color-blue); }