/* LogicWave — logic-flow theme. Light surfaces, navy accents, mint waves. */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Nunito+Sans:wght@400;600;700&display=swap');

:root {
  --navy: #1E3A8A;
  --deep: #172554;
  --mint: #34D399;
  --grey: #F1F5F9;
  --sky: #38BDF8;
  --ink: #0F172A;
  --slate: #475569;
  --line: #E2E8F0;
  --white: #FFFFFF;
  --wave-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='12' viewBox='0 0 44 12'%3E%3Cpath d='M0 7 Q 11 0 22 7 T 44 7 V12 H0 Z' fill='%231E3A8A'/%3E%3C/svg%3E");
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  background: var(--white);
  color: var(--slate);
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Manrope', sans-serif; line-height: 1.14; color: var(--deep); font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; }
p { color: var(--slate); }
a { color: var(--navy); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--mint); }
img { max-width: 100%; display: block; }
.shell { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.block { padding: clamp(58px, 8vw, 112px) 0; position: relative; }
.block.tight { padding-top: 18px; }
.kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .74rem; color: var(--navy); font-weight: 700; font-family: 'Manrope', sans-serif; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--slate); max-width: 640px; }
.mid { text-align: center; }
.mid .lead { margin-left: auto; margin-right: auto; }

/* Buttons — fill navy, hover mint, white text. Squared with soft radius. */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 10px; font-weight: 700;
  font-family: 'Manrope', sans-serif; cursor: pointer; border: 2px solid transparent;
  font-size: .98rem; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn--fill { background: var(--navy); color: var(--white); }
.btn--fill:hover { background: var(--mint); color: var(--deep); transform: translateY(-2px); }
.btn--line { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn--line:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: var(--mint); color: var(--deep); border-color: var(--mint); }

/* Top bar — transparent over navy hero, solid white on scroll */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  background: transparent; border-bottom: 1px solid transparent;
}
.topbar.solid { background: var(--white); box-shadow: 0 6px 24px rgba(23,37,84,.08); border-bottom-color: var(--line); }
.bar-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.36rem; color: var(--white); letter-spacing: -.01em; }
.topbar.solid .brand { color: var(--deep); }
.brand .glyph { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--mint), var(--sky)); position: relative; overflow: hidden; flex: 0 0 36px; }
.brand .glyph::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: var(--wave-card); background-size: 18px 8px; opacity: .9; }
.brand b { color: var(--mint); }
.topbar.solid .brand b { color: var(--navy); }
.menu { display: flex; align-items: center; gap: 30px; list-style: none; }
.menu a { color: rgba(255,255,255,.92); font-weight: 600; font-size: .96rem; }
.menu a:hover { color: var(--mint); }
.topbar.solid .menu a { color: var(--slate); }
.topbar.solid .menu a:hover { color: var(--navy); }
.bar-cta { display: flex; align-items: center; gap: 16px; }
.topbar:not(.solid) .bar-cta .btn--fill { background: var(--mint); color: var(--deep); }
.topbar:not(.solid) .bar-cta .btn--fill:hover { background: var(--white); color: var(--navy); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 26px; height: 2px; background: var(--white); transition: .3s; }
.topbar.solid .menu-toggle span { background: var(--deep); }

/* Hero — navy logic-flow band */
.hero { background: linear-gradient(160deg, var(--deep) 0%, var(--navy) 70%, #234aa8 100%); color: var(--white); padding: 168px 0 120px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(56,189,248,.18) 1px, transparent 0); background-size: 26px 26px; opacity: .5; }
.hero .shell { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center; }
.hero .kicker { color: var(--mint); }
.hero h1 { color: var(--white); margin: 16px 0; }
.hero h1 .accent { color: var(--mint); }
.hero p.lead { color: #cdd9f3; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: 16px; box-shadow: 0 30px 70px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.12); }
.hero-badge { position: absolute; bottom: -20px; left: -16px; background: var(--white); border-radius: 12px; padding: 14px 18px; display: flex; gap: 12px; align-items: center; box-shadow: 0 18px 40px rgba(23,37,84,.3); }
.hero-badge .pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(52,211,153,.25); animation: beat 1.8s infinite; }
.hero-badge small { color: var(--slate); display: block; font-size: .72rem; }
.hero-badge strong { color: var(--deep); font-family: 'Manrope', sans-serif; }
@keyframes beat { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* Wave divider */
.wave-sep { display: block; width: 100%; height: 64px; line-height: 0; }
.wave-sep svg { width: 100%; height: 100%; display: block; }

/* Pipeline band — Automate | Scale | Optimise */
.pipeline { background: var(--deep); color: var(--white); padding: 30px 0; }
.pipeline-track { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.pipeline-node { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(1.1rem, 2.4vw, 1.6rem); color: var(--white); letter-spacing: .02em; display: flex; align-items: center; gap: 14px; }
.pipeline-node .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--mint); }
.pipeline-sep { color: var(--sky); font-size: 1.4rem; font-weight: 700; }

/* Section heads */
.head { max-width: 680px; margin-bottom: 46px; }
.head.mid { margin-left: auto; margin-right: auto; }
.head h2 { margin: 12px 0 14px; }

/* Grid */
.grid { display: grid; gap: 24px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }

/* Flow card — grey, rounded 14px, navy bottom wave border */
.flow-card {
  background: var(--grey); border-radius: 14px; padding: 28px 26px 36px;
  position: relative; overflow: hidden; border: 1px solid var(--line);
  transition: transform .35s ease, box-shadow .35s ease;
}
.flow-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--wave-card); background-size: 44px 12px; }
.flow-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(23,37,84,.13); }
.flow-card .step { font-family: 'Manrope', sans-serif; color: var(--navy); font-weight: 800; font-size: .9rem; letter-spacing: .08em; }
.flow-card h3 { margin: 10px 0 8px; }
.flow-card p { font-size: .96rem; }
.flow-card .chip { display: inline-block; margin-top: 14px; font-size: .74rem; color: var(--navy); background: rgba(52,211,153,.22); padding: 5px 13px; border-radius: 999px; font-weight: 700; font-family: 'Manrope', sans-serif; }

/* Package cards (home) */
.pkg-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px 34px; position: relative; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; }
.pkg-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--wave-card); background-size: 44px 12px; }
.pkg-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(23,37,84,.14); }
.pkg-card .price-tag { font-family: 'Manrope', sans-serif; font-weight: 800; color: var(--navy); font-size: 1.15rem; margin-top: 14px; }
.pkg-card .price-tag span { color: var(--slate); font-size: .8rem; font-weight: 600; }

/* Requirements strip */
.req-strip { background: var(--grey); border-radius: 18px; padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.req-item { display: flex; gap: 14px; align-items: flex-start; }
.req-item .tick { flex: 0 0 30px; height: 30px; border-radius: 8px; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 800; font-family: 'Manrope', sans-serif; }
.req-item h4 { color: var(--deep); margin-bottom: 3px; font-size: 1.02rem; }
.req-item p { font-size: .92rem; }

/* Process pipeline (5 steps, bold) */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 12px; padding: 26px 20px; position: relative; }
.step-card .n { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 2rem; color: var(--mint); line-height: 1; }
.step-card h3 { margin: 10px 0 8px; font-size: 1.1rem; }
.step-card p { font-size: .9rem; }

/* Services blocks */
.svc { display: flex; gap: 20px; align-items: flex-start; padding: 26px; background: var(--grey); border-radius: 14px; border-left: 4px solid var(--navy); transition: transform .3s ease, box-shadow .3s ease; }
.svc:hover { transform: translateX(6px); box-shadow: 0 16px 36px rgba(23,37,84,.1); }
.svc .svc-ic { flex: 0 0 54px; height: 54px; border-radius: 12px; background: linear-gradient(135deg, var(--navy), var(--sky)); color: var(--white); display: grid; place-items: center; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.1rem; }
.svc h3 { margin-bottom: 6px; }
.svc p { font-size: .95rem; }

/* Split editorial */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split img { border-radius: 16px; box-shadow: 0 20px 50px rgba(23,37,84,.16); }
.split.rev .split-txt { order: 2; }

/* Testimonials */
.quote-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px; position: relative; }
.quote-card::before { content: "\201C"; font-family: 'Manrope', sans-serif; font-size: 3.6rem; color: var(--mint); line-height: .6; display: block; margin-bottom: 8px; }
.quote-card p { color: var(--ink); }
.quote-card .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote-card .av { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--navy), var(--mint)); display: grid; place-items: center; font-weight: 800; color: var(--white); font-family: 'Manrope', sans-serif; }
.quote-card .who b { color: var(--deep); display: block; }
.quote-card .who small { color: var(--slate); }

/* Navy CTA */
.cta { background: linear-gradient(135deg, var(--deep), var(--navy)); border-radius: 22px; padding: clamp(40px, 6vw, 70px); text-align: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: var(--wave-card); background-size: 60px 18px; opacity: .6; }
.cta h2 { color: var(--white); }
.cta p { color: #cdd9f3; max-width: 580px; margin: 14px auto 26px; }
.cta .btn--fill { background: var(--mint); color: var(--deep); }
.cta .btn--fill:hover { background: var(--white); color: var(--navy); }

/* Note band */
.note { text-align: center; font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--navy); font-size: clamp(1.05rem, 2vw, 1.3rem); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 26px; border-radius: 14px; background: var(--grey); border-bottom: 4px solid var(--navy); }
.stat b { font-family: 'Manrope', sans-serif; font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--navy); display: block; }
.stat span { color: var(--slate); font-size: .9rem; }

/* Page head (inner navy band) */
.page-head { background: linear-gradient(160deg, var(--deep), var(--navy)); color: var(--white); padding: 150px 0 70px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(56,189,248,.16) 1px, transparent 0); background-size: 26px 26px; opacity: .5; }
.page-head .shell { position: relative; z-index: 1; }
.page-head h1 { color: var(--white); margin: 10px 0; }
.page-head .kicker { color: var(--mint); }
.page-head .lead { color: #cdd9f3; }
.crumb { color: rgba(255,255,255,.7); font-size: .86rem; margin-bottom: 12px; }
.crumb a { color: rgba(255,255,255,.7); }
.crumb a:hover { color: var(--mint); }

/* Collection cards */
.sol-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .35s ease, box-shadow .35s ease; }
.sol-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(23,37,84,.16); }
.sol-card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.sol-body { padding: 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; border-bottom: 4px solid var(--navy); }
.sol-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--navy); font-weight: 800; font-family: 'Manrope', sans-serif; }
.sol-ref { font-family: 'Manrope', sans-serif; font-size: .76rem; color: var(--slate); }
.sol-meta { list-style: none; font-size: .87rem; color: var(--slate); display: grid; gap: 4px; }
.sol-meta li b { color: var(--deep); font-weight: 700; }
.sol-price { font-family: 'Manrope', sans-serif; font-size: 1.2rem; color: var(--navy); font-weight: 800; margin-top: auto; }
.sol-price span { color: var(--slate); font-size: .8rem; font-weight: 600; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-btn { background: var(--white); border: 1px solid var(--line); color: var(--slate); padding: 9px 18px; border-radius: 999px; cursor: pointer; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .86rem; transition: .25s; }
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Forms */
.form-card { background: var(--grey); border: 1px solid var(--line); border-radius: 18px; padding: clamp(26px, 4vw, 42px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 7px; color: var(--deep); font-size: .92rem; font-family: 'Manrope', sans-serif; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); font-family: inherit; font-size: .96rem; transition: border-color .25s ease, box-shadow .25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,58,138,.15); }
.field textarea { min-height: 130px; resize: vertical; }
.field .err { color: #dc2626; font-size: .82rem; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #dc2626; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.success-msg { display: none; text-align: center; padding: 30px; }
.success-msg.show { display: block; animation: fadein .6s ease; }
.success-msg .ic { width: 66px; height: 66px; border-radius: 16px; background: linear-gradient(135deg, var(--navy), var(--mint)); display: grid; place-items: center; margin: 0 auto 18px; font-size: 1.9rem; color: var(--white); }
.success-msg h2 { color: var(--deep); }
@keyframes fadein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Contact info */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.info-card { background: var(--grey); border-radius: 12px; border-left: 4px solid var(--navy); padding: 20px; }
.info-card small { color: var(--navy); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 800; font-family: 'Manrope', sans-serif; }
.info-card p { color: var(--deep); margin-top: 6px; font-weight: 600; }

/* Legal prose */
.prose { max-width: 840px; }
.prose h2 { margin: 36px 0 14px; font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.prose h3 { margin: 26px 0 10px; color: var(--navy); }
.prose p, .prose li { color: var(--slate); margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 14px; }
.prose strong { color: var(--deep); }
.prose a { color: var(--navy); }
.prose a:hover { color: var(--mint); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.cert-list { list-style: none; display: grid; gap: 12px; }
.cert-list li { padding: 14px 18px; background: var(--grey); border-radius: 12px; display: flex; gap: 12px; align-items: center; color: var(--deep); font-weight: 600; }
.cert-list li::before { content: "\25B8"; color: var(--mint); font-weight: 800; }

/* Footer */
footer.site { background: var(--deep); color: #c7d2ec; padding: 62px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; }
.foot-grid h4 { color: var(--white); margin-bottom: 16px; font-size: 1rem; }
.foot-brand { display: flex; align-items: center; gap: 11px; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--white); }
.foot-brand b { color: var(--mint); }
.foot-about p { color: #aab8db; font-size: .92rem; margin-top: 14px; }
.foot-links { list-style: none; display: grid; gap: 9px; }
.foot-links a { color: #aab8db; font-size: .92rem; }
.foot-links a:hover { color: var(--mint); }
.foot-contact p { color: #aab8db; font-size: .9rem; margin-bottom: 8px; }
.foot-contact b { color: var(--white); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #8ea0cc; font-size: .84rem; }

/* Cookie banner */
.cookie-bar { position: fixed; left: 22px; right: 22px; bottom: 22px; max-width: 560px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; z-index: 200; display: none; box-shadow: 0 22px 50px rgba(23,37,84,.22); border-bottom: 4px solid var(--navy); }
.cookie-bar.show { display: block; animation: fadein .5s ease; }
.cookie-bar p { font-size: .88rem; color: var(--slate); }
.cookie-bar .row { display: flex; gap: 12px; margin-top: 14px; align-items: center; }
.cookie-bar .btn { padding: 10px 22px; font-size: .88rem; }
.cookie-bar a { color: var(--navy); font-weight: 700; }
.cookie-bar a:hover { color: var(--mint); }

/* Scroll animations — visible by default, hidden only with JS; wave-slide + rise */
.rise, .flow-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
html.js .rise { opacity: 0; transform: translateY(30px); }
html.js .flow-in { opacity: 0; transform: translateX(-34px); }
html.js .rise.visible, html.js .flow-in.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid, .split, .about-grid { grid-template-columns: 1fr; }
  .split.rev .split-txt { order: 0; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .req-strip { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu { position: fixed; top: 76px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 24px; gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-150%); transition: transform .35s ease; box-shadow: 0 12px 30px rgba(23,37,84,.12); }
  .menu a { color: var(--slate); }
  .menu.open { transform: translateY(0); }
  .menu-toggle { display: flex; }
  .bar-cta .btn { display: none; }
  .g3, .g2, .info-grid, .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .g4, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
