/* Binfo Group — brand colours taken from the original site (teal #59BDB8, mint #8ACDA8, slate #51555E) */
:root {
    --teal: #59bdb8;
    --teal-dark: #2f8f8a;
    --mint: #8acda8;
    --navy: #0f2f35;
    --navy-2: #163f47;
    --slate: #51555e;
    --text: #1f2a30;
    --muted: #5f6b72;
    --bg: #ffffff;
    --bg-alt: #f2f8f8;
    --line: #dfe9ea;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(15, 47, 53, .08);
    --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 17px/1.65 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
a[href^="mailto:"], address { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: 'Poppins', sans-serif; line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 999px; border: 2px solid var(--teal);
    background: var(--teal); color: #fff; font: 600 .95rem 'Poppins', sans-serif;
    text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-1px); }
.btn-sm { padding: 8px 18px; font-size: .88rem; }
.btn-outline { background: transparent; color: var(--teal-dark); }
.btn-outline:hover { color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--navy); }
.btn-light:hover { background: var(--bg-alt); border-color: var(--bg-alt); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(15, 47, 53, .96); backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font: 600 1.15rem 'Poppins', sans-serif; }
.brand img { width: 52px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
    color: rgba(255,255,255,.82); text-decoration: none; padding: 8px 14px; border-radius: 8px;
    font: 500 .95rem 'Poppins', sans-serif;
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: #fff; background: rgba(255,255,255,.08); }
.site-nav .btn { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero {
    position: relative; color: #fff;
    background: linear-gradient(100deg, rgba(10, 33, 38, .94) 0%, rgba(15, 47, 53, .8) 45%, rgba(15, 47, 53, .35) 100%),
                url('../img/hero.jpg') center / cover no-repeat;
}
.hero-inner { padding: clamp(80px, 12vw, 150px) 20px; max-width: var(--max); }
.hero h1 { color: #fff; max-width: 760px; }
.hero .lead { font-size: 1.2rem; max-width: 620px; color: rgba(255,255,255,.88); margin-bottom: 2em; }
.eyebrow { font: 600 .8rem 'Poppins', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: .8em; }
.hero .eyebrow { color: var(--mint); }

/* Page header */
.page-header { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 64px 0 56px; }
.page-header h1 { color: #fff; margin-bottom: .3em; }
.page-header .lead { color: rgba(255,255,255,.82); font-size: 1.12rem; max-width: 680px; }
.page-header .actions { margin-top: 1.5em; }
.crumbs { font-size: .88rem; margin-bottom: 14px; color: rgba(255,255,255,.6); }
.crumbs a { color: var(--mint); text-decoration: none; }
.crumbs span { margin: 0 8px; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split.top { align-items: start; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.prose p { color: #344047; }
.narrow { max-width: 780px; }
.prose h2 { margin-top: 1.4em; font-size: 1.35rem; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .96rem; flex: 1; }
.more { color: var(--teal-dark); font: 600 .9rem 'Poppins', sans-serif; }

.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.platform {
    display: block; padding: 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
    border-top: 4px solid var(--teal); text-decoration: none; color: inherit; transition: box-shadow .25s, transform .25s;
}
.platform:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.platform p { color: var(--muted); margin: 0; font-size: .96rem; }

.stack { display: grid; gap: 72px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.reverse img { order: 2; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; font-weight: 600; }
.ticks li::before {
    content: ''; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
    background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Facts & chips */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 64px; }
.fact { text-align: center; padding: 28px 12px; border-radius: var(--radius); background: var(--bg-alt); }
.fact b { display: block; font: 700 2.4rem 'Poppins', sans-serif; color: var(--teal-dark); }
.fact span { color: var(--muted); font-weight: 600; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.sectors .chips { justify-content: center; }
.chips li { padding: 10px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--navy); }

/* CTA */
.cta { background: linear-gradient(110deg, var(--teal-dark), var(--teal) 60%, var(--mint)); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .25em; }
.cta p { margin: 0; color: rgba(255,255,255,.92); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.contact-card { background: var(--bg-alt); border-radius: var(--radius); padding: 30px; }
.contact-card dl { margin: 0 0 20px; }
.contact-card dt { font: 600 .78rem 'Poppins', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }
.contact-card dd { margin: 4px 0 0; font-weight: 600; }
.map { width: 100%; height: 240px; border: 0; border-radius: 10px; }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--navy); }
.form input, .form select, .form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #c9d7d9; border-radius: 10px; font: inherit; font-weight: 400;
    color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(89,189,184,.25); }
.form button { justify-self: start; }
.field-error { color: #b42318; font-weight: 600; font-size: .85rem; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 18px 22px; border-radius: 10px; margin-bottom: 18px; }
.notice.success { background: #e7f6ef; border: 1px solid #b7e2cc; }
.notice.success h2 { font-size: 1.3rem; margin-bottom: .3em; }
.notice.error { background: #fdecea; border: 1px solid #f5c2bc; color: #8a1c12; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 64px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h3 { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: var(--mint); }
.site-footer .muted { color: rgba(255,255,255,.6); margin-top: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding: 22px 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }

/* Floating back-to-top button */
.to-top {
    position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center; background: var(--teal); color: #fff; text-decoration: none;
    font: 700 1.3rem/1 'Poppins', sans-serif; box-shadow: 0 6px 18px rgba(15,47,53,.25);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--teal-dark); }

/* Responsive */
@media (max-width: 1000px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
        background: var(--navy); padding: 12px 20px 20px; border-bottom: 1px solid rgba(255,255,255,.1);
        display: none;
    }
    .site-nav.open { display: flex; }
    .site-nav a:not(.btn) { padding: 12px 10px; }
    .site-nav .btn { margin: 10px 0 0; }
    .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); }
    .split, .feature, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .feature.reverse img { order: 0; }
    .facts { grid-template-columns: repeat(2, 1fr); margin-bottom: 48px; }
    body.menu-open { overflow: hidden; }
    .hero { background: linear-gradient(180deg, rgba(10, 33, 38, .9), rgba(15, 47, 53, .82)), url('../img/hero.jpg') center / cover no-repeat; }
    .section-head { margin-bottom: 32px; }
    .stack { gap: 56px; }
    .contact-card { padding: 24px; }
    .map { height: 220px; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    html { scroll-padding-top: 80px; }
    .container, .hero-inner { padding-left: 16px; padding-right: 16px; }
    .header-inner { height: 64px; }
    .site-nav { top: 64px; }
    .brand { font-size: 1.05rem; gap: 10px; }
    .brand img { width: 44px; }
    .hero-inner { padding-top: 64px; padding-bottom: 72px; }
    .hero .lead { font-size: 1.05rem; }
    .page-header { padding: 40px 0 36px; }
    .page-header .lead { font-size: 1rem; }
    .cards, .form .row, .footer-grid { grid-template-columns: 1fr; }
    .footer-grid { gap: 28px; }
    .site-footer ul { gap: 4px; }
    .site-footer ul a { display: inline-block; padding: 6px 0; }
    .footer-bottom { flex-direction: column; gap: 8px; margin-top: 32px; padding: 18px 16px 76px; }
    .actions .btn, .form button, .contact-card + div .btn { width: 100%; }
    .form button { justify-self: stretch; }
    .fact { padding: 20px 8px; }
    .fact b { font-size: 1.9rem; }
    .chips li { padding: 8px 16px; font-size: .95rem; }
    .cta { padding: 44px 0; }
    .rounded { border-radius: 10px; }
    .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
