/* =========================================================
   OmnixNexus - IT Sector site styles
   Official brand kit: navy #0A2140, teal #02A194, gold #D5A630,
   cream #FEF8EB, paper #FFFDF7, ink #1C2530.
   Light, editorial theme (Playfair Display + Jost) - distinct
   from the corporate blue look.
   ========================================================= */

:root {
    --navy: #0A2140;
    --navy-2: #0E2B4E;
    --accent: #02A194;      /* teal - primary accent */
    --accent-2: #0bbfae;
    --gold: #D5A630;
    --gold-2: #e6bd54;
    --ink: #1C2530;
    --slate: #45505E;
    --muted: #7A8494;
    --line: rgba(10, 33, 64, 0.14);
    --bg: #FFFDF7;          /* paper */
    --bg-alt: #FEF8EB;      /* cream */
    --success: #0f8a5f;
    --danger: #B0473E;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(10, 33, 64, .05), 0 1px 3px rgba(10, 33, 64, .08);
    --shadow-md: 0 10px 30px rgba(10, 33, 64, .08);
    --shadow-lg: 0 24px 60px rgba(10, 33, 64, .12);
    --maxw: 1180px;
    --font: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* Prevent long words/headings from causing horizontal scroll on small screens */
h1, h2, h3, h4, h5, p, a, li { overflow-wrap: break-word; word-wrap: break-word; }

h1, h2, h3, h4, h5 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.01em; font-weight: 600; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--bg-alt); }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 .75rem; }
.lead { font-size: 1.15rem; color: var(--slate); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-sub { color: var(--slate); font-size: 1.05rem; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .98rem; line-height: 1; padding: 14px 22px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(2, 161, 148, .28); }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--accent); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: var(--navy); color: #fff; }
.btn-light:hover { background: var(--accent); color: #fff; }
.btn-block { display: flex; width: 100%; justify-content: center; margin-top: 10px; }

.text-link { font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.text-link i { transition: transform .15s ease; }
.text-link:hover i { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }

/* Clear space around the logo = height of the wordmark "O" (Section 5.1) */
:root { --logo-clearspace: 10px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--navy); font-size: 1.2rem; padding: var(--logo-clearspace); margin: calc(var(--logo-clearspace) * -1); }
.brand:hover { color: var(--navy); }
/* Show the full logo lockup without any cropping (object-fit: contain). */
.brand-logo-wrap { display: block; height: 64px; width: auto; }
.brand-logo { display: block; height: 64px; width: auto; object-fit: contain; }
.brand-footer { margin-bottom: 14px; padding: var(--logo-clearspace); margin-left: calc(var(--logo-clearspace) * -1); }
.brand-footer .brand-logo-wrap { height: 96px; }
.brand-footer .brand-logo { height: 96px; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--navy), var(--accent)); box-shadow: 0 6px 16px rgba(2, 161, 148, .3); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-accent { color: var(--accent); }
.brand-tag { font-size: .6rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; flex-wrap: wrap; }
.primary-nav a { color: var(--ink); font-weight: 500; padding: 9px 11px; border-radius: 8px; font-size: .95rem; }
.primary-nav a:hover { color: var(--accent); background: var(--bg-alt); }
.primary-nav .nav-cta { background: var(--navy); color: #fff; margin-left: 6px; padding: 10px 16px; }
.primary-nav .nav-cta:hover { background: var(--accent); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sub navigation (IT sector) ---------- */
.sub-nav { position: sticky; top: 76px; z-index: 90; background: var(--bg); color: var(--navy); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.sub-nav-inner { display: flex; align-items: center; gap: 18px; min-height: 52px; flex-wrap: wrap; }
.sub-nav-label { font-family: var(--serif); font-weight: 600; font-size: .95rem; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; }
.sub-nav-label i { color: var(--accent); }
.sub-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; flex: 1; }
.sub-nav ul a { color: var(--slate); font-size: .92rem; font-weight: 500; padding: 8px 12px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; }
.sub-nav ul a:hover { color: var(--accent); background: var(--bg-alt); }
.sub-nav-cta { background: var(--accent); color: #fff; font-weight: 600; padding: 9px 16px; border-radius: 6px; font-size: .9rem; }
.sub-nav-cta:hover { background: var(--navy); color: #fff; }

.has-mega { position: relative; }
.mega { position: absolute; top: 100%; left: 0; display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 24px; background: #fff; color: var(--ink); padding: 22px 24px; border-radius: 0 0 12px 12px; box-shadow: var(--shadow-lg); min-width: 560px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s ease; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega h5 { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; margin: 0 0 10px; }
.mega a { display: block; color: var(--ink); padding: 5px 0; font-size: .92rem; }
.mega a:hover { color: var(--accent); }

/* ---------- Hero (light) ---------- */
.hero { position: relative; overflow: hidden; color: var(--ink); background: radial-gradient(900px 460px at 88% -10%, rgba(2,161,148,.12), transparent 60%), radial-gradient(700px 400px at 5% 0%, rgba(213,166,48,.12), transparent 55%), var(--bg-alt); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 80px 0 72px; }
.hero h1 { color: var(--navy); margin-bottom: .4em; }
.hero .eyebrow { color: var(--accent); }
.hero .lead { color: var(--slate); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 32px; }
.hero-stats { list-style: none; display: flex; gap: 36px; padding: 0; margin: 0; flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--navy); font-weight: 700; }
.hero-stats span { color: var(--muted); font-size: .9rem; }

.hero-visual { display: grid; place-items: center; }
.orbit { position: relative; width: 320px; height: 320px; }
.orbit-core, .orbit-icon { position: absolute; display: grid; place-items: center; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); color: var(--accent); }
.orbit-core { inset: 50% auto auto 50%; width: 104px; height: 104px; transform: translate(-50%, -50%); font-size: 2rem; background: linear-gradient(135deg, var(--navy), var(--accent)); border: 0; color: #fff; }
.orbit-icon { width: 66px; height: 66px; font-size: 1.4rem; animation: float 6s ease-in-out infinite; }
.orbit-icon.i1 { top: 0; left: 50%; transform: translateX(-50%); }
.orbit-icon.i2 { top: 50%; right: 0; transform: translateY(-50%); animation-delay: .8s; }
.orbit-icon.i3 { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 1.6s; }
.orbit-icon.i4 { top: 50%; left: 0; transform: translateY(-50%); animation-delay: 2.4s; }
@keyframes float { 0%,100% { margin-top: 0; } 50% { margin-top: -12px; } }

/* ---------- Products / Services split cards (FR-1.2) ---------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.split-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.split-card .service-icon { margin-bottom: 16px; }

/* ---------- Capabilities strip (FR-1.3) ---------- */
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .9rem; font-weight: 500; color: var(--navy); box-shadow: var(--shadow-sm); }

/* ---------- Cards / grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-icon { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; color: var(--accent); background: rgba(2, 161, 148, .1); margin-bottom: 16px; }
.service-icon-lg { width: 72px; height: 72px; font-size: 1.9rem; }
.service-card h3 { margin-bottom: .35em; }
.service-card p { color: var(--slate); }
.mini-list { list-style: none; padding: 0; margin: 14px 0 18px; }
.mini-list li { color: var(--slate); font-size: .92rem; padding: 4px 0; }
.mini-list i { color: var(--success); margin-right: 8px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(213,166,48,.16); color: #8a6a12; }
.badge-core { background: rgba(22,121,74,.14); color: var(--success); }

/* ---------- Industries strip ---------- */
.industry-strip { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.industry-pill { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-weight: 600; color: var(--navy); box-shadow: var(--shadow-sm); }
.industry-pill i { color: var(--accent); }
.industry-pill:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Comparison table ---------- */
.compare-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { background: var(--navy); color: #fff; font-size: .95rem; }
.compare-table tbody th { font-weight: 600; color: var(--navy); width: 26%; background: var(--bg-alt); }
.compare-table td { color: var(--slate); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }

/* ---------- Process / steps ---------- */
.process-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.process-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.process-steps li { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.step-num { font-family: var(--serif); font-weight: 700; color: var(--gold); font-size: 1.1rem; background: rgba(213,166,48,.14); border-radius: 10px; width: 46px; height: 46px; display: grid; place-items: center; flex: none; }
.process-steps h4 { margin: 0 0 4px; }
.process-steps p { margin: 0; color: var(--slate); }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.testimonial blockquote { margin: 0 0 18px; font-size: 1.02rem; color: var(--ink); }
.testimonial figcaption strong { display: block; color: var(--navy); }
.testimonial figcaption span { color: var(--muted); font-size: .9rem; }

/* ---------- Case studies ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.filter-bar a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: .9rem; color: var(--navy); background: #fff; }
.filter-bar a.active, .filter-bar a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.case-card .case-tag { margin-bottom: 12px; }
.case-card h3 { margin-bottom: 6px; }
.case-meta { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.case-card h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin: 14px 0 4px; }
.case-card p { color: var(--slate); margin: 0 0 8px; }

/* ---------- CTA band (light, gold-accented) ---------- */
.cta-band { background: var(--bg-alt); border-top: 3px solid var(--gold); border-bottom: 1px solid var(--line); color: var(--ink); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 52px 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--navy); margin-bottom: .25em; }
.cta-band p { color: var(--slate); margin: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: radial-gradient(900px 400px at 88% -20%, rgba(2,161,148,.1), transparent 60%), radial-gradient(600px 300px at 4% 0%, rgba(213,166,48,.1), transparent 55%), var(--bg-alt); padding: 40px 0 52px; border-bottom: 1px solid var(--line); }
/* .navy modifier kept for markup compatibility but rendered light with a gold accent bar */
.page-hero.navy { border-bottom: 3px solid var(--gold); }
.page-hero.navy h1 { color: var(--navy); }
.page-hero.navy .lead { color: var(--slate); }
.page-hero h1 { margin-bottom: .3em; }
.page-hero .lead { max-width: 760px; }

.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--slate); }

/* ---------- Detail pages ---------- */
.detail-head { display: flex; gap: 20px; align-items: center; }
.detail-grid { display: grid; grid-template-columns: 1.6fr .9fr; gap: 40px; align-items: start; }
.detail-body h2 { margin-top: 1.4em; }
.detail-body h2:first-child { margin-top: 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { color: var(--slate); }
.check-list i { color: var(--success); margin-right: 10px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 5px 11px; font-size: .85rem; color: var(--navy); font-weight: 500; }
.aside-card { position: sticky; top: 140px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-md); }
.aside-card h3 { margin-bottom: .4em; }
.aside-card p { color: var(--slate); }
.related-note { background: var(--bg-alt); border-left: 3px solid var(--accent); padding: 14px 16px; border-radius: 0 8px 8px 0; color: var(--navy); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 18px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\002B"; color: var(--accent); font-size: 1.3rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--slate); margin: 0 0 14px; }

/* ---------- Forms ---------- */
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.lead-form, .contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; color: var(--navy); font-size: .92rem; }
.form-control { font-family: inherit; font-size: 1rem; color: var(--ink); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; width: 100%; }
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(2,161,148,.15); }
textarea.form-control { resize: vertical; min-height: 120px; }
.field-error { color: var(--danger); font-size: .85rem; }
.input-validation-error { border-color: var(--danger) !important; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; }
.checkbox-row input { margin-top: 4px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
.checkbox-grid label { font-weight: 400; color: var(--ink); display: flex; gap: 8px; align-items: center; font-size: .92rem; }
.honeypot { position: absolute; left: -5000px; height: 0; overflow: hidden; }

.alert { border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 20px; display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.alert-error { background: #fdeaea; color: #8f1d1d; border: 1px solid #f5c2c2; }

.contact-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 40px; align-items: start; }
.contact-aside { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--slate); }
.contact-list strong { color: var(--navy); }
.ci { width: 40px; height: 40px; border-radius: 10px; background: rgba(2,161,148,.1); color: var(--accent); display: grid; place-items: center; flex: none; }

.thankyou-icon { font-size: 3.5rem; color: var(--success); margin-bottom: 12px; }

/* ---------- Footer (light) ---------- */
.site-footer { background: var(--bg-alt); color: var(--slate); padding-top: 52px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 38px; }
.footer-tagline { color: var(--slate); font-size: .95rem; max-width: 340px; }
.footer-group { color: var(--muted); font-size: .88rem; margin: 0; }
.footer-group a { color: var(--accent); font-weight: 600; }
.footer-col h4 { color: var(--navy); font-family: var(--serif); font-weight: 600; font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--slate); font-size: .95rem; }
.footer-col a:hover { color: var(--accent); }
.footer-contact { color: var(--slate); font-size: .92rem; }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact i { color: var(--accent); width: 18px; }
.footer-bottom { border-top: 1px solid var(--line); }
/* Reserve space on the right so the fixed chatbot launcher sits on the same row
   as the copyright without overlapping it. */
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; flex-wrap: wrap; gap: 12px; padding-right: 210px; }
@media (max-width: 640px) { .footer-bottom-inner { padding-right: 24px; padding-bottom: 80px; } }
.footer-bottom p { margin: 0; font-size: .88rem; color: var(--muted); }
.social { display: flex; gap: 10px; }
.social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--slate); }
.social a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Responsive ---------- */

/* Tablet / small-laptop: two-up grids */
@media (max-width: 1024px) {
    .card-grid, .card-grid.cols-4, .testimonial-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Below 900px the full top nav (9 links + CTAs) no longer fits: switch to the
   hamburger menu and stack the hero. */
@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: absolute; top: 100%; left: 0; right: 0; background: #fff;
        border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden;
        transition: max-height .25s ease; box-shadow: var(--shadow-md);
    }
    .primary-nav.open { max-height: 80vh; overflow-y: auto; }
    .primary-nav ul { flex-direction: column; align-items: stretch; padding: 10px; gap: 2px; }
    .primary-nav a { padding: 12px 14px; font-size: 1rem; border-radius: 8px; }
    .primary-nav .nav-cta { margin: 8px 0 0; justify-content: center; text-align: center; display: flex; }

    .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 56px 0 48px; }
    .hero-visual { order: -1; }
    .orbit { width: 240px; height: 240px; }

    .split-grid, .process-grid, .detail-grid, .contact-grid, .about-story { grid-template-columns: 1fr; }
    .aside-card { position: static; }

    /* Sub-nav: keep it usable - allow horizontal scroll of the links + collapse mega */
    .sub-nav-inner { flex-wrap: nowrap; gap: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .sub-nav-label { flex: none; }
    .sub-nav ul { flex: none; }
    .sub-nav ul a { white-space: nowrap; }
    .sub-nav-cta { flex: none; }
    .mega { display: none; } /* mega dropdown hidden on touch; use footer/links instead */
}

/* Phones */
@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .section { padding: 44px 0; }
    .section-head { margin-bottom: 32px; }

    .card-grid, .card-grid.cols-2, .card-grid.cols-4, .testimonial-grid, .form-row, .checkbox-grid, .footer-grid { grid-template-columns: 1fr; }

    .hero-actions .btn, .cta-inner .btn { width: 100%; justify-content: center; }
    .hero-actions { gap: 10px; }
    .hero-stats { gap: 22px; }

    .cta-inner { flex-direction: column; align-items: stretch; text-align: left; padding: 40px 20px; }

    /* Keep the IT sub-nav as a horizontally scrollable strip on phones (don't
       hide it - it holds Products/Overview/Case Studies + Request a Demo). */
    .sub-nav-label span, .sub-nav-label { font-size: .85rem; }
    .sub-nav-cta { padding: 8px 12px; font-size: .82rem; }
    .sub-nav ul a { padding: 8px 10px; font-size: .85rem; }

    /* Comparison table -> stacked cards */
    .compare-table thead { display: none; }
    .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: 100%; }
    .compare-table tr { border-bottom: 2px solid var(--line); }
    .compare-table tbody th { width: auto; background: var(--bg-alt); }

    .info-panel { flex-direction: column; gap: 14px; padding: 20px; }
    .detail-head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .breadcrumb { font-size: .8rem; }

    .footer-bottom-inner { padding-right: 18px; padding-bottom: 84px; text-align: center; justify-content: center; }
}

/* Very small phones */
@media (max-width: 380px) {
    h1 { font-size: 1.7rem; }
    .brand-logo { height: 44px; }
    .brand-logo-wrap { height: 48px; width: 118px; }
    .hero-stats strong { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; transition: none !important; } }

/* ---------- Careers: remote-only statement ---------- */
.badge-remote { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; background: rgba(2,161,148,.12); color: var(--accent); border: 1px solid rgba(2,161,148,.28); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .9rem; }
.info-panel { display: flex; gap: 20px; align-items: flex-start; background: var(--bg-alt); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 34px; }
.info-panel-icon { width: 52px; height: 52px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--navy), var(--accent)); }
.info-panel h2 { margin: 0 0 .5em; font-size: 1.35rem; }
.info-panel p { color: var(--slate); }
@media (max-width: 560px) { .info-panel { flex-direction: column; gap: 14px; } }

/* ---------- Chatbot widget ---------- */
.onx-chat { position: fixed; right: 22px; bottom: 22px; z-index: 1000; font-family: var(--font); }
.onx-chat-launcher { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; background: var(--accent); color: #fff; font-weight: 600; font-size: .95rem; padding: 13px 20px; border-radius: 999px; box-shadow: 0 12px 30px rgba(15,44,82,.28); transition: transform .15s ease, background .15s ease; }
.onx-chat-launcher:hover { background: var(--navy); transform: translateY(-2px); }
.onx-chat-launcher i { font-size: 1.15rem; }
.onx-chat.open .onx-chat-launcher { display: none; }

/* Panel base styles (visibility handled below via the .open class + [hidden]). */
.onx-chat-panel { width: 360px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 100px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 70px rgba(15,44,82,.3); flex-direction: column; overflow: hidden; animation: onxpop .18s ease; display: none; }
/* Visibility is driven by the .open class on .onx-chat (JS toggles it). The
   [hidden] attribute wins over everything so the panel always closes. */
.onx-chat.open .onx-chat-panel { display: flex; }
.onx-chat-panel[hidden] { display: none !important; }
@keyframes onxpop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.onx-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: linear-gradient(135deg, var(--navy), var(--accent)); color: #fff; }
.onx-chat-head-brand { display: flex; align-items: center; gap: 10px; }
.onx-chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; font-size: 1.1rem; }
.onx-chat-head-brand strong { display: block; font-size: .98rem; }
.onx-chat-status { font-size: .78rem; color: #d6e2f2; display: inline-flex; align-items: center; gap: 6px; }
.onx-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
.onx-chat-close { background: none; border: 0; color: #fff; cursor: pointer; font-size: 1.1rem; padding: 6px; border-radius: 6px; }
.onx-chat-close:hover { background: rgba(255,255,255,.15); }

.onx-chat-log { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg-alt); display: flex; flex-direction: column; gap: 10px; }
.onx-msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.5; }
.onx-msg a { font-weight: 600; }
.onx-msg-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.onx-msg-user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.onx-msg-user a { color: #fff; text-decoration: underline; }
.onx-typing { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: inline-flex; gap: 4px; }
.onx-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: onxblink 1.2s infinite ease-in-out; }
.onx-typing span:nth-child(2) { animation-delay: .2s; }
.onx-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes onxblink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.onx-chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--line); }
.onx-quick-btn { border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: 7px 13px; font-size: .82rem; font-weight: 500; cursor: pointer; transition: .15s ease; }
.onx-quick-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.onx-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.onx-chat-input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font-family: inherit; font-size: .92rem; }
.onx-chat-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(2,161,148,.15); }
.onx-chat-send { border: 0; cursor: pointer; background: var(--accent); color: #fff; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: background .15s ease; }
.onx-chat-send:hover { background: var(--navy); }

@media (max-width: 480px) {
    .onx-chat { right: 14px; bottom: 14px; }
    .onx-chat-launcher-text { display: none; }
    .onx-chat-launcher { padding: 15px; }
    .onx-chat-panel { height: calc(100vh - 90px); }
}
@media (prefers-reduced-motion: reduce) {
    .onx-chat-panel, .onx-typing span { animation: none !important; }
}

/* ---------- Content protection (light deterrent) ---------- */
/* Text selection is ALLOWED (better usability/accessibility). We only deter
   easy image saving/dragging. */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    user-drag: none;
}
