/* =====================================================================
   Pronetsys Limited — main stylesheet
   Modern, self-contained. Brand: red #ED1C24 / blue #1273BC / navy #0A1E3F
   ===================================================================== */

:root {
    --red: #ED1C24;
    --red-dark: #c9151c;
    --blue: #1273BC;
    --blue-dark: #0f5f9c;
    --cyan: #29ABE2;
    --navy: #0a1e3f;
    --navy-2: #103063;

    --ink: #16233a;
    --muted: #5c6b80;
    --line: #e6ecf3;
    --soft: #f4f8fc;
    --white: #ffffff;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 10px rgba(16, 38, 76, .06);
    --shadow: 0 14px 40px rgba(16, 38, 76, .10);
    --shadow-lg: 0 24px 60px rgba(16, 38, 76, .16);
    --container: 1160px;
    --ease: cubic-bezier(.22, 1, .36, 1);

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

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    font-size: 16.5px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; color: var(--navy); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

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

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

.text-red { color: var(--red); }
.eyebrow {
    text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; font-weight: 600;
    color: var(--cyan); margin: 0 0 .8rem;
}
.eyebrow-dark { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    font-weight: 600; font-size: .98rem; padding: .82em 1.6em; border-radius: 999px;
    border: 2px solid transparent; cursor: pointer; transition: all .25s var(--ease);
    white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(237, 28, 36, .28); }
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(237, 28, 36, .36); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }

.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; width: auto; height: 42px; max-width: 100%; }

.primary-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.primary-nav a { color: var(--ink); font-weight: 500; font-size: .96rem; padding: .5em .85em; border-radius: 8px; white-space: nowrap; }
.primary-nav a:hover { color: var(--red); background: var(--soft); }
.primary-nav .nav-cta a {
    display: inline-flex; align-items: center; line-height: 1;
    background: var(--navy); color: #fff; padding: .62em 1.15em; border-radius: 999px; margin-left: 6px;
}
.primary-nav .nav-cta a:hover { background: var(--blue); color: #fff; }
.primary-nav .nav-cta-primary a { background: var(--red); }
.primary-nav .nav-cta-primary a:hover { background: var(--red-dark); }

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

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #17408a 100%);
    padding: 148px 0 96px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob-red { width: 420px; height: 420px; background: var(--red); top: -120px; right: -80px; }
.blob-blue { width: 460px; height: 460px; background: var(--cyan); bottom: -160px; left: -120px; opacity: .45; }
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero .eyebrow { color: var(--cyan); }
.hero h1 { color: #fff; margin-bottom: .35em; }
.grad { background: linear-gradient(100deg, var(--cyan), #7fd0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.16rem; color: rgba(255, 255, 255, .82); max-width: 620px; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.4rem; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 26px; }
.hero-quick a { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 500; font-size: .98rem; }
.hero-quick a:hover { color: var(--cyan); }
.ic { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---------- Hero slider ---------- */
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hero-slider { background: var(--navy); padding-top: 72px; }
.slider { position: relative; overflow: hidden; max-width: 1400px; margin: 0 auto; }
.slider-track { display: flex; transition: transform .6s var(--ease); will-change: transform; }
.slide { flex: 0 0 100%; display: block; line-height: 0; }
.slide img { width: 100%; height: auto; display: block; }

.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(10, 30, 63, .5); color: #fff; display: flex; align-items: center; justify-content: center;
    transition: background .2s, opacity .2s; opacity: .85;
}
.slider:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: var(--red); }
.slider-arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

.slider-dots {
    position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 5;
    display: flex; gap: 9px; padding: 7px 12px; border-radius: 999px; background: rgba(10, 30, 63, .35);
}
.slider-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer; transition: all .2s var(--ease); }
.slider-dots button.active { background: #fff; transform: scale(1.25); }

/* ---------- Intro / CTA bar ---------- */
.intro-bar { background: #fff; border-bottom: 1px solid var(--line); }
.intro-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 30px; padding: 20px 22px; flex-wrap: wrap; }
.intro-lead { margin: 0; font-weight: 600; color: var(--navy); font-size: 1.04rem; max-width: 640px; }
.intro-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

/* ---------- Stats ---------- */
.stats { background: var(--soft); padding: 52px 0; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
}
.stat { background: #fff; padding: 30px 22px; text-align: center; }
.stat-num { display: block; font-size: 2.3rem; font-weight: 800; color: var(--red); line-height: 1; }
.stat-label { display: block; margin-top: 8px; color: var(--muted); font-size: .92rem; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-soft { background: var(--soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.section-head h2 { margin-bottom: .3em; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split-body h2 { margin-bottom: .5em; }
.split-body > p { color: var(--muted); }
.mini-head { margin: 1.6rem 0 .8rem; font-size: 1rem; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }

/* ---------- Feature lists ---------- */
.feature-list { list-style: none; display: grid; gap: .55rem; }
.feature-list.two-col { grid-template-columns: 1fr 1fr; gap: .55rem 1.6rem; }
.feature-list li { position: relative; padding-left: 1.7rem; color: var(--ink); font-size: .95rem; }
.feature-list li::before {
    content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px;
    border-radius: 3px; background: var(--cyan); box-shadow: 0 0 0 4px rgba(41, 171, 226, .14);
}
.feature-list li strong { color: var(--navy); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 1.4rem; }
.chip {
    font-size: .82rem; font-weight: 500; color: var(--navy); background: #fff;
    border: 1px solid var(--line); padding: .42em .9em; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.section-soft .chip { background: #fff; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 34px 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px;
    border-radius: 14px; background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #fff; margin-bottom: 18px; box-shadow: 0 8px 20px rgba(18, 115, 188, .28);
}
.card-icon svg { width: 28px; height: 28px; }
.card:nth-child(3n+1) .card-icon { background: linear-gradient(135deg, var(--red), #ff5a5f); box-shadow: 0 8px 20px rgba(237, 28, 36, .26); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Resource cards ---------- */
.resource-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.resource-card {
    display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.resource-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.resource-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform .5s var(--ease); }
.resource-card:hover img { transform: scale(1.05); }
.resource-body { padding: 22px 24px 26px; }
.resource-body h3 { margin-bottom: .3em; }
.resource-body p { color: var(--muted); font-size: .93rem; margin-bottom: .8rem; }
.resource-link { color: var(--red); font-weight: 600; font-size: .92rem; }

/* ---------- Contact (dark) ---------- */
.section-dark { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.section-dark h2 { color: #fff; }
.contact-split { align-items: start; gap: 50px; }
.contact-intro { color: rgba(255, 255, 255, .78); max-width: 420px; }
.contact-list { list-style: none; display: grid; gap: 16px; margin-top: 1.8rem; }
.contact-list li { display: flex; align-items: center; gap: 13px; color: rgba(255, 255, 255, .9); }
.contact-list li .ic { color: var(--cyan); }
.contact-list a { color: rgba(255, 255, 255, .9); }
.contact-list a:hover { color: var(--cyan); }

.form-card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); color: var(--ink); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-size: .86rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.contact-form .opt { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form textarea {
    width: 100%; font-family: inherit; font-size: .98rem; color: var(--ink);
    padding: .74em .9em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: var(--soft); transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: 0; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(18, 115, 188, .12);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .94rem; font-weight: 500; }
.alert-success { background: #e7f7ee; color: #14683f; border: 1px solid #b6e6cc; }
.alert-error { background: #fdeaea; color: #a11a1a; border: 1px solid #f6c9c9; }

/* ---------- Footer ---------- */
.site-footer { background: #071630; color: rgba(255, 255, 255, .7); padding-top: 62px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 46px; }
.footer-brand { margin-bottom: 4px; }
.footer-brand .brand-logo { height: 46px; }
.footer-about p { margin-top: 16px; font-size: .93rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, .7); font-size: .94rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-contact li { font-size: .94rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; }
.footer-bottom p { margin: 0; font-size: .86rem; text-align: center; color: rgba(255, 255, 255, .55); }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700;
    background: var(--red); color: #fff; border-radius: 50%; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--red-dark); color: #fff; transform: translateY(-3px); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Footer bottom links ---------- */
.footer-bottom a { color: rgba(255, 255, 255, .7); }
.footer-bottom a:hover { color: var(--cyan); }

/* ---------- Sub-page hero ---------- */
.page-hero {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    padding: 128px 0 54px;
}
.page-hero::after {
    content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
    background: var(--red); filter: blur(80px); opacity: .32; top: -150px; right: -70px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: .2em; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero .page-meta { color: rgba(255, 255, 255, .72); font-size: .92rem; margin: 0; }
.breadcrumb { font-size: .85rem; color: rgba(255, 255, 255, .65); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255, 255, 255, .82); }
.breadcrumb a:hover { color: var(--cyan); }

/* ---------- Legal / prose content ---------- */
.legal { padding: 60px 0 88px; }
.legal .container { max-width: 840px; }
.legal .lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.8rem; }
.legal h2 { font-size: 1.32rem; margin: 2.3rem 0 .7rem; scroll-margin-top: 90px; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.04rem; margin: 1.4rem 0 .5rem; color: var(--navy); }
.legal p, .legal li { color: #3a4658; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--blue); text-decoration: underline; }
.legal a:hover { color: var(--blue-dark); }
.legal .toc { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 24px; margin: 0 0 2.4rem; }
.legal .toc h4 { margin: 0 0 .7rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.legal .toc ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.4rem; }
.legal .toc a { text-decoration: none; color: var(--blue); font-size: .93rem; }
.legal .contact-box { background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius-sm); padding: 20px 24px; margin-top: 2rem; }
.legal .contact-box p { margin: .2rem 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .split { grid-template-columns: 1fr; gap: 36px; }
    .split.contact-split .split-media { order: -1; }
    .cards, .resource-cards { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 820px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: fixed; inset: 72px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow); transform: translateY(-140%); transition: transform .35s var(--ease);
        max-height: calc(100vh - 72px); overflow-y: auto;
    }
    .site-header.nav-open .primary-nav { transform: translateY(0); }
    .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px; }
    .primary-nav a { padding: .9em 1em; border-radius: 10px; }
    .primary-nav .nav-cta a { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 620px) {
    .section { padding: 66px 0; }
    .hero { padding: 128px 0 72px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cards, .resource-cards { grid-template-columns: 1fr; }
    .feature-list.two-col { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-quick { gap: 14px 26px; }
    .legal .toc ul { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
