/* ===========================================================================
   Codace Solutions — custom styles
   Palette taken from the brand mark: bright lime→emerald green on charcoal.
   Tailwind (CDN) does the layout; this file holds the bits Tailwind utilities
   can't express cleanly (keyframes, layered backgrounds, small components).
   =========================================================================== */

:root {
    --bg:        #0b0f0e;
    --bg-panel:  #111615;
    --bg-panel2: #0e1312;
    --line:      rgba(255, 255, 255, 0.08);
    --green:     #33bf5c;
    --lime:      #a3e635;
}

html { -webkit-font-smoothing: antialiased; }
body { background: var(--bg); }

::selection { background: rgba(163, 230, 53, 0.28); color: #fff; }

/* Sticky header: transparent at top, frosted once scrolled -------------------- */
#siteHeader.is-scrolled {
    background: rgba(11, 15, 14, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

/* Hero background: radial green glow + faint dotted grid --------------------- */
.hero-glow {
    position: absolute;
    inset: -20% 0 auto 0;
    height: 720px;
    background:
        radial-gradient(ellipse 55% 55% at 50% 0%, rgba(51, 191, 92, 0.22) 0%, rgba(11, 15, 14, 0) 70%),
        radial-gradient(ellipse 40% 40% at 85% 10%, rgba(163, 230, 53, 0.14) 0%, rgba(11, 15, 14, 0) 70%);
    pointer-events: none;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 75%);
    pointer-events: none;
}

/* Brand wordmark in the logo lockup --------------------------------------------- */
.brand-mark {
    background: linear-gradient(135deg, var(--lime), var(--green));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}

/* Service cards ------------------------------------------------------------------ */
.service-card {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-panel2) 100%);
    padding: 1.5rem;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(163, 230, 53, 0.35);
    box-shadow: 0 18px 40px -20px rgba(51, 191, 92, 0.35);
}
.service-icon {
    display: inline-flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    background: rgba(51, 191, 92, 0.12);
    border: 1px solid rgba(51, 191, 92, 0.25);
    color: var(--lime);
    font-size: 1.4rem;
}

/* Work cards ------------------------------------------------------------------- */
.work-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--bg-panel);
    transition: transform .25s ease, border-color .25s ease;
}
.work-card:hover { transform: translateY(-4px); border-color: rgba(163, 230, 53, 0.3); }
.work-thumb {
    display: flex;
    height: 168px;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--line);
}

/* About tiles ---------------------------------------------------------------- */
.about-tile {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--bg-panel);
    padding: 1.5rem;
}

/* Leadership cards ----------------------------------------------------------- */
.team-card {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-panel2) 100%);
    padding: 1.5rem;
}
.team-avatar {
    display: inline-flex;
    height: 3.25rem;
    width: 3.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(51, 191, 92, 0.15);
    border: 1px solid rgba(51, 191, 92, 0.35);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--lime);
}

/* Team member rows --------------------------------------------------------------- */
.member {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: var(--bg-panel);
    padding: 0.9rem 1rem;
}
.member-avatar {
    display: inline-flex;
    height: 2.5rem;
    width: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(51, 191, 92, 0.13);
    border: 1px solid rgba(51, 191, 92, 0.3);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--lime);
}

/* Process steps ------------------------------------------------------------------ */
.process-step {
    position: relative;
    border-left: 2px solid rgba(51, 191, 92, 0.35);
    padding-left: 1.25rem;
}
.process-num {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--lime);
}

/* Contact ------------------------------------------------------------------------ */
.contact-ico {
    display: inline-flex;
    height: 2.75rem;
    width: 2.75rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    background: rgba(51, 191, 92, 0.12);
    border: 1px solid rgba(51, 191, 92, 0.25);
    color: var(--lime);
    font-size: 1.15rem;
}

.cf-input {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid var(--line);
    background: #0b100f;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #e2e8f0;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.cf-input::placeholder { color: #52616b; }
.cf-input:focus {
    outline: none;
    border-color: rgba(51, 191, 92, 0.6);
    box-shadow: 0 0 0 3px rgba(51, 191, 92, 0.15);
}
.cf-input.is-invalid {
    border-color: rgba(244, 63, 94, 0.6);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12);
}
.cf-error {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #fb7185;
    display: none;
}
.cf-error.is-shown { display: block; }

/* Footer social ------------------------------------------------------------------ */
.footer-social {
    display: inline-flex;
    height: 2.25rem;
    width: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.6rem;
    border: 1px solid var(--line);
    color: #94a3b8;
    font-size: 1.05rem;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.footer-social:hover {
    color: #fff;
    border-color: rgba(163, 230, 53, 0.4);
    background: rgba(51, 191, 92, 0.1);
}

/* Hero code window ------------------------------------------------------------- */
.code-window {
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: #0a0e0d;
    overflow: hidden;
    box-shadow: 0 30px 80px -40px rgba(51, 191, 92, 0.35);
}
.code-window__bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
    background: #0e1312;
    border-bottom: 1px solid var(--line);
}
.code-dot { height: 0.7rem; width: 0.7rem; border-radius: 9999px; display: inline-block; }
.code-window__body {
    margin: 0;
    padding: 1.15rem 1.25rem 1.35rem;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.8rem;
    line-height: 1.75;
    color: #cbd5e1;
    white-space: pre-wrap;
    word-break: break-word;
    text-align: left;
}

/* Testimonials -------------------------------------------------------------------- */
.quote-card {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-panel2) 100%);
    padding: 1.5rem;
}
.quote-avatar {
    display: inline-flex;
    height: 2.5rem;
    width: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(51, 191, 92, 0.15);
    border: 1px solid rgba(51, 191, 92, 0.3);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--lime);
}

/* FAQ -------------------------------------------------------------------------- */
.faq-item { padding: 0.35rem 0; }
.faq-q {
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--lime);
    transition: transform .25s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-a {
    margin: 0;
    padding: 0 0 1.25rem;
    max-width: 42rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #94a3b8;
}

/* CTA band ------------------------------------------------------------------------ */
.cta-band {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(51, 191, 92, 0.25);
    border-radius: 1.5rem;
    background:
        radial-gradient(ellipse 60% 120% at 100% 0%, rgba(51, 191, 92, 0.18) 0%, rgba(11, 15, 14, 0) 60%),
        linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-panel2) 100%);
    padding: 2.5rem;
}
@media (min-width: 640px) { .cta-band { padding: 3.25rem; } }

/* Reveal-on-scroll ------------------------------------------------------------
   Only hidden when JS is running (html.js is set by main.js before paint).
   Without JS — or if the script fails — content stays fully visible. */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
}
