/* ============================================================================
 * site.css — Odimba Technology
 * ----------------------------------------------------------------------
 * ONE stylesheet for the entire public site (the old site duplicated a
 * ~150-line <style> block across all 14 pages — see chat notes). Loaded
 * once via partials/head.php and long-cached (see root .htaccess).
 *
 * Deliberately uses the OS system font stack rather than custom webfonts:
 * zero extra network requests, zero render-blocking @font-face, and it
 * still looks sharp on every platform. This is one of the biggest single
 * levers for the "as fast as possible" goal — a custom webfont is
 * routinely 100-300KB+ and blocks text rendering until it loads.
 * ========================================================================== */

:root {
    --ink:          #0b1220;
    --ink-soft:     #4a5468;
    --brand:        #1b3a8a;
    --brand-dark:   #12275e;
    --brand-tint:   #eaf0fd;
    --accent:       #f2a900;
    --accent-dark:  #c98a00;
    --border:       #e3e7ef;
    --surface:      #ffffff;
    --surface-alt:  #f6f8fc;
    --radius:       12px;
    --radius-sm:    8px;
    --container:    1180px;
    --shadow:       0 4px 24px rgba(11, 18, 32, 0.06);

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Reset ---------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-soft); }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; color: var(--ink-soft); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---- Reusable primitives --------------------------------------------- */
.app-tag, .eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-tint);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.button, .submit-btn, button[type="submit"].submit-btn {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
}
.button:hover, .submit-btn:hover { background: var(--brand-dark); }
.button.secondary { background: transparent; color: var(--brand); border: 1px solid var(--border); }

.section { padding: 72px 0; }
.section-alt { background: var(--surface-alt); }
.header, .page-header {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}
.header h1, .page-header h1 { font-size: clamp(2rem, 4vw, 3rem); }
.header p, .page-header p { font-size: 1.1rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

/* ---- Header / nav ------------------------------------------------------ */
.app-header { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(6px); z-index: 50; }
.app-header .navbar { max-width: var(--container); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.app-header .logo img { height: 32px; width: auto; }
.app-header .links { display: flex; align-items: center; gap: 28px; }
.app-header .links a { color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.app-header .links a:hover { color: var(--brand); }
.app-button.contact { background: var(--brand); color: #fff; border: none; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; }
.menu-mobile { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 860px) {
    .app-header .links { position: fixed; inset: 64px 0 0 0; background: #fff; flex-direction: column; padding: 24px; gap: 20px; transform: translateY(-110%); transition: transform 0.2s ease; }
    .app-header .links.is-open { transform: translateY(0); }
    .menu-mobile { display: block; }
}

/* ---- Footer ------------------------------------------------------------ */
.app-footer { background: var(--ink); color: #c7cee0; padding: 48px 0; margin-top: 80px; }
.app-footer .footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.app-footer a { color: #c7cee0; }
.app-footer a:hover { color: #fff; }
.app-footer nav { display: flex; gap: 20px; }

/* ---- Hero (homepage + service pages) ----------------------------------- */
.hero { padding: 96px 0 72px; text-align: center; background: linear-gradient(180deg, var(--brand-tint), #fff); }
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); max-width: 900px; margin: 0 auto 20px; }
.hero p.lead { font-size: 1.2rem; max-width: 640px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Methodology / numbered steps --------------------------------------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; counter-reset: step; }
.step-card { position: relative; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); }
.step-card::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: -14px; left: 24px; background: var(--brand); color: #fff; font-weight: 700; font-size: 0.8rem; padding: 4px 10px; border-radius: 999px; }
.step-card h3 { margin-top: 8px; }
.step-card .step-tag { display: block; margin-top: 12px; font-size: 0.85rem; color: var(--brand); font-weight: 600; }

/* ---- Service divisions grid (homepage + services hub) ------------------- */
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card h3 { margin-bottom: 8px; }
.service-card a.discover { margin-top: auto; font-weight: 600; }

/* ---- Testimonials -------------------------------------------------------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial-card blockquote { margin: 0 0 16px; font-style: italic; color: var(--ink); }
.testimonial-card cite { font-style: normal; font-weight: 600; color: var(--ink-soft); font-size: 0.9rem; }

/* ---- Industry tag strip (text-only — no third-party logos, see README) -- */
.industry-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.industry-strip span { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 0.85rem; color: var(--ink-soft); }

/* ---- CTA banner ----------------------------------------------------------- */
.cta-banner { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 56px; text-align: center; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #c7cee0; }

/* ---- Jobs (careers) -------------------------------------------------------- */
.jobs .intro { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.missions { max-width: var(--container); margin: 0 auto; padding: 0 24px; display: grid; gap: 20px; }
.mission { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.mission .tags { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.mission .tags span { background: var(--surface-alt); border-radius: 999px; padding: 4px 12px; font-size: 0.8rem; color: var(--ink-soft); }

/* ---- Contact / forms -------------------------------------------------------- */
.contact-page { max-width: 760px; margin: 0 auto; padding: 64px 24px; }
.form-container { background: var(--surface-alt); border-radius: var(--radius); padding: 32px; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-group { flex: 1; min-width: 220px; margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-group .required { color: #c0392b; }
input, select, textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font: inherit; color: var(--ink); background: #fff;
}
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.alert-success { background: #e6f4ea; color: #1e7e34; }
.alert-error { background: #fbeaea; color: #a02020; }
.alert-error ul { margin: 0; padding-left: 1.1em; }

/* ---- Portfolio -------------------------------------------------------------- */
.portfolio-listing, .insights-listing, .project-detail, .insight-detail, .not-found {
    max-width: var(--container); margin: 0 auto; padding: 64px 24px;
}
.project-grid, .post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.project-card, .post-card { display: block; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.project-card:hover, .post-card:hover { box-shadow: var(--shadow); }
.project-card img, .post-card img { aspect-ratio: 16 / 9; object-fit: cover; }
.project-card-body, .post-card-body { padding: 20px; }
.project-client, .post-category { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.project-tech { font-size: 0.85rem; color: var(--ink-soft); }
.project-cover, .post-cover { border-radius: var(--radius); margin: 24px 0; aspect-ratio: 16/9; object-fit: cover; }
.project-body p, .post-body p { max-width: 720px; margin-left: auto; margin-right: auto; }
.post-body { max-width: 720px; margin: 0 auto; }
.post-body h2, .post-body h3 { margin-top: 1.5em; }
.post-body pre { background: var(--ink); color: #e8edfb; padding: 16px; border-radius: var(--radius-sm); overflow-x: auto; }
.post-body code { background: var(--surface-alt); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.post-body pre code { background: none; padding: 0; }
.post-meta { color: var(--ink-soft); font-size: 0.9rem; }
.related-posts { margin-top: 64px; border-top: 1px solid var(--border); padding-top: 32px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--ink); }
.pagination a.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---- Legal pages ------------------------------------------------------------- */
.legal-page { max-width: 760px; margin: 0 auto; padding: 64px 24px; }
.legal-page h2 { margin-top: 2em; font-size: 1.4rem; }
.legal-page h3 { margin-top: 1.2em; font-size: 1.1rem; }
.legal-page .updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 32px; }

/* ---- Not found ---------------------------------------------------------------- */
.not-found { text-align: center; padding: 120px 24px; }
