/* CognitionBridge — bridge-cognitive theme. Light, warm, editorial. Human-AI collaboration. */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700;900&display=swap');

:root {
  --teal: #0D9488;
  --teal-dark: #0b7d73;
  --sand: #FEF3C7;
  --sand-soft: #fff9ec;
  --navy: #1E293B;
  --coral: #FB7185;
  --white: #FFFFFF;
  --ink: #334155;
  --muted: #64748B;
  --line: #ece6d6;
  --paper: #fbfaf6;
  --shadow: 0 18px 44px rgba(30, 41, 59, 0.08);
  --shadow-sm: 0 6px 18px rgba(30, 41, 59, 0.06);
  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Lato', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Libre Baskerville', Georgia, serif; line-height: 1.2; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.38rem); }
p { color: var(--ink); }
a { color: var(--teal); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--coral); }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
section { padding: clamp(54px, 7.5vw, 104px) 0; position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .72rem; color: var(--teal); font-weight: 700; font-family: 'Lato', sans-serif; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons — fill teal, hover coral, white text */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 30px; border-radius: 4px; font-weight: 700;
  font-family: 'Lato', sans-serif; cursor: pointer; border: none;
  font-size: .95rem; letter-spacing: .02em;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn-primary { background-color: var(--teal); color: var(--white); box-shadow: 0 10px 26px rgba(13, 148, 136, .25); }
.btn-primary:hover { background-color: var(--coral); color: var(--white); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(251, 113, 133, .32); }
.btn-ghost { background-color: var(--white); color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { background-color: var(--navy); color: var(--white); border-color: var(--navy); transform: translateY(-2px); }

/* Header / nav — white warm bar, serif logo */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: 'Libre Baskerville', serif; font-weight: 700; font-size: 1.42rem; color: var(--navy); letter-spacing: -0.01em; }
.logo .mark {
  width: 38px; height: 38px; border-radius: 50% 50% 50% 6px; position: relative;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
}
.logo .mark::after { content: ""; position: absolute; left: 9px; top: 18px; width: 20px; height: 3px; background: var(--sand); border-radius: 2px; box-shadow: 0 6px 0 rgba(254,243,199,.7); }
.logo b { color: var(--teal); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: var(--navy); font-weight: 700; font-size: .9rem; letter-spacing: .01em; }
.nav-links a:hover { color: var(--teal); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 26px; height: 2px; background: var(--navy); transition: .3s; border-radius: 2px; }

/* Hero — warm split */
.hero { background: linear-gradient(170deg, var(--sand-soft) 0%, var(--paper) 70%); padding: clamp(46px, 6vw, 86px) 0; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -120px; right: -80px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(13,148,136,.10), transparent 65%); }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero h1 em { font-style: italic; color: var(--teal); }
.hero-actions { display: flex; gap: 15px; margin-top: 32px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: 10px 10px 60px 10px; box-shadow: var(--shadow); }
.hero-chip { position: absolute; bottom: -22px; left: -22px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 8px; padding: 14px 20px; display: flex; gap: 13px; align-items: center; box-shadow: var(--shadow); }
.hero-chip .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(251,113,133,.16); }
.hero-chip small { color: var(--muted); display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-chip strong { color: var(--navy); font-family: 'Libre Baskerville', serif; font-size: 1.02rem; }

/* section heads */
.sec-head { max-width: 660px; margin-bottom: 50px; }
.sec-head.center { margin-left: auto; margin-right: auto; }
.sec-head h2 { margin: 12px 0 14px; }
.tinted { background: var(--sand-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Grids */
.grid { display: grid; gap: 26px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Bridge cards — white, teal top border 3px, soft shadow */
.bcard {
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--teal);
  border-radius: 6px; padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative;
  transition: transform .3s ease, box-shadow .3s ease, border-top-color .3s ease;
}
.bcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-top-color: var(--coral); }
.bcard .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; margin-bottom: 16px; font-size: 1.5rem; line-height: 1; }
.bcard h3 { margin-bottom: 9px; }
.bcard p { color: var(--muted); font-size: .96rem; }
.bcard .tag { display: inline-block; margin-top: 15px; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--teal); font-weight: 700; }

/* Partner band */
.partner-band { background: var(--navy); }
.partner-band .wrap { text-align: center; }
.partner-band .eyebrow { color: var(--sand); }
.partner-band h2 { color: var(--white); margin: 12px 0 30px; }
.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; }
.partner-pill { color: var(--sand); font-family: 'Libre Baskerville', serif; font-size: 1.15rem; padding: 10px 24px; border: 1px solid rgba(254,243,199,.28); border-radius: 4px; }

/* Editorial quote */
.quote-band { background: var(--sand); text-align: center; }
.quote-band q { font-family: 'Libre Baskerville', serif; font-style: italic; font-size: clamp(1.5rem, 3.6vw, 2.5rem); color: var(--navy); display: block; max-width: 900px; margin: 0 auto; line-height: 1.4; }
.quote-band q::before { content: ""; }
.quote-band .by { display: block; margin-top: 22px; font-family: 'Lato', sans-serif; font-style: normal; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); font-weight: 700; }

/* Services 3 columns */
.svc-col { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 32px 28px; transition: transform .3s ease, box-shadow .3s ease; }
.svc-col:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-col .no { font-family: 'Libre Baskerville', serif; font-size: 2.4rem; color: var(--sand); line-height: 1; }
.svc-col h3 { margin: 8px 0 10px; }
.svc-col p { color: var(--muted); font-size: .96rem; }

/* Split case study */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: 10px 60px 10px 10px; box-shadow: var(--shadow); }
.split.rev .txt { order: 2; }
.split .stat-row { display: flex; gap: 34px; margin-top: 24px; flex-wrap: wrap; }
.split .stat-row b { font-family: 'Libre Baskerville', serif; font-size: 1.9rem; color: var(--teal); display: block; }
.split .stat-row span { font-size: .82rem; color: var(--muted); }

/* Human-centred features */
.feat-row { display: flex; gap: 22px; align-items: flex-start; padding: 26px 0; border-bottom: 1px dashed var(--line); }
.feat-row:last-child { border-bottom: none; }
.feat-ic { flex: 0 0 54px; height: 54px; border-radius: 50% 50% 50% 8px; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); display: grid; place-items: center; font-family: 'Libre Baskerville', serif; font-weight: 700; color: var(--white); font-size: 1.2rem; }
.feat-row h3 { margin-bottom: 5px; }
.feat-row p { color: var(--muted); font-size: .97rem; }

/* Testimonials carousel */
.carousel { position: relative; }
.tcard { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 34px 30px; box-shadow: var(--shadow-sm); }
.tcard q { font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 1.06rem; color: var(--navy); display: block; }
.tcard .who { display: flex; align-items: center; gap: 13px; margin-top: 20px; }
.tcard .av { width: 46px; height: 46px; border-radius: 50%; background: var(--sand); color: var(--teal); display: grid; place-items: center; font-weight: 900; font-family: 'Libre Baskerville', serif; }
.tcard .who small { color: var(--muted); display: block; font-size: .82rem; }
.tcard .who b { color: var(--navy); font-family: 'Libre Baskerville', serif; }
.car-dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.car-dots button { width: 11px; height: 11px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; padding: 0; transition: background .25s ease, transform .25s ease; }
.car-dots button.active { background: var(--teal); transform: scale(1.2); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); border-radius: 14px; padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border: 30px solid rgba(255,255,255,.08); border-radius: 50%; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.92); max-width: 580px; margin: 14px auto 28px; }
.cta-band .btn-primary { background-color: var(--white); color: var(--teal); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.cta-band .btn-primary:hover { background-color: var(--coral); color: var(--white); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 28px 18px; background: var(--white); border: 1px solid var(--line); border-bottom: 3px solid var(--teal); border-radius: 6px; }
.stat b { font-family: 'Libre Baskerville', serif; font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--navy); display: block; }
.stat span { color: var(--muted); font-size: .88rem; }

/* Page hero (inner) */
.page-hero { background: linear-gradient(170deg, var(--sand-soft), var(--paper)); padding: clamp(46px, 6vw, 72px) 0 clamp(36px, 4vw, 50px); border-bottom: 1px solid var(--line); }
.breadcrumb { color: var(--muted); font-size: .85rem; margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal); }

/* Catalog cards */
.cat-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cat-card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.cat-body { padding: 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.cat-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--teal); font-weight: 700; }
.cat-ref { font-family: 'Lato', monospace; font-size: .76rem; color: var(--muted); letter-spacing: .04em; }
.cat-meta { list-style: none; font-size: .87rem; color: var(--muted); display: grid; gap: 5px; }
.cat-meta li b { color: var(--navy); font-weight: 700; }
.cat-price { font-family: 'Libre Baskerville', serif; font-size: 1.28rem; color: var(--navy); font-weight: 700; margin-top: auto; padding-top: 6px; }
.cat-price span { color: var(--teal); font-size: .82rem; font-family: 'Lato', sans-serif; text-transform: uppercase; letter-spacing: .1em; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn { background-color: var(--white); border: 1px solid var(--line); color: var(--navy); padding: 9px 18px; border-radius: 4px; cursor: pointer; font-family: 'Lato', sans-serif; font-size: .86rem; font-weight: 700; transition: background-color .25s, color .25s, border-color .25s; }
.filter-btn:hover { border-color: var(--teal); color: var(--teal); }
.filter-btn.active { background-color: var(--teal); color: var(--white); border-color: var(--teal); }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 8px; padding: clamp(26px, 4vw, 42px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 7px; color: var(--navy); font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 5px; border: 1px solid var(--line);
  background: var(--paper); color: var(--navy); 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(--teal); box-shadow: 0 0 0 3px rgba(13,148,136,.14); background: var(--white); }
.field textarea { min-height: 130px; resize: vertical; }
.field .err { color: var(--coral); font-size: .82rem; margin-top: 6px; display: none; font-weight: 700; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--coral); }
.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 .7s ease; }
.success-msg .ic { width: 70px; height: 70px; border-radius: 50% 50% 50% 10px; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); display: grid; place-items: center; margin: 0 auto 18px; font-size: 2rem; color: var(--white); }
.success-msg h2 { color: var(--teal); }
@keyframes fadein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Contact info cards */
.info-card { background: var(--sand-soft); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 6px; padding: 20px 22px; margin-bottom: 16px; }
.info-card small { color: var(--teal); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; font-weight: 700; }
.info-card p { color: var(--navy); margin-top: 5px; font-weight: 700; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
.cert-list { list-style: none; display: grid; gap: 12px; }
.cert-list li { padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; display: flex; gap: 12px; align-items: center; color: var(--navy); font-weight: 700; font-size: .94rem; box-shadow: var(--shadow-sm); }
.cert-list li::before { content: "→"; color: var(--teal); font-weight: 900; }

/* Legal prose */
.prose { max-width: 820px; }
.prose h2 { margin: 40px 0 14px; font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.prose h3 { margin: 26px 0 10px; color: var(--teal); font-size: 1.18rem; }
.prose p, .prose li { color: var(--ink); margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 14px; }
.prose strong { color: var(--navy); }
.prose .updated { color: var(--muted); font-style: italic; }

/* Footer */
footer.site { background: var(--navy); color: #cbd5e1; padding: 62px 0 28px; }
footer.site .logo { color: var(--white); }
footer.site .logo b { color: var(--sand); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 38px; }
.foot-grid h4 { color: var(--white); margin-bottom: 16px; font-size: 1rem; font-family: 'Libre Baskerville', serif; }
.foot-links { list-style: none; display: grid; gap: 9px; }
.foot-links a { color: #94a3b8; font-size: .9rem; }
.foot-links a:hover { color: var(--sand); }
.foot-about p { color: #94a3b8; font-size: .9rem; margin-top: 14px; }
.foot-contact p { color: #94a3b8; font-size: .88rem; 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: #94a3b8; font-size: .84rem; }

/* Cookie banner */
.cookie { position: fixed; bottom: 22px; left: 22px; right: 22px; max-width: 560px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 10px; padding: 22px 24px; z-index: 200; display: none; box-shadow: var(--shadow); }
.cookie.show { display: block; animation: fadein .5s ease; }
.cookie p { font-size: .9rem; color: var(--ink); }
.cookie .row { display: flex; gap: 14px; margin-top: 15px; align-items: center; }
.cookie .btn { padding: 10px 24px; font-size: .88rem; }
.cookie a { font-weight: 700; }

/* Bridge draw SVG animation */
.bridge-draw { display: block; margin: 0 auto; max-width: 100%; }
.bridge-draw path, .bridge-draw line { stroke-dasharray: 1400; stroke-dashoffset: 0; }
html.js .bridge-draw path, html.js .bridge-draw line { stroke-dashoffset: 1400; transition: stroke-dashoffset 1.6s ease; }
html.js .bridge-draw.visible path, html.js .bridge-draw.visible line { stroke-dashoffset: 0; }

/* Scroll animations — visible by default, JS hides */
.slide-up, .fade-in { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s ease; }
html.js .slide-up { opacity: 0; transform: translateY(28px); }
html.js .fade-in { opacity: 0; }
html.js .slide-up.visible, html.js .fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .split, .about-grid { grid-template-columns: 1fr; }
  .split.rev .txt { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; top: 78px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 24px; gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-160%); transition: transform .35s ease; box-shadow: var(--shadow); }
  .nav-links.open { transform: translateY(0); }
  .burger { display: flex; }
  .nav-cta .btn { display: none; }
  .grid-3, .grid-2, .info-grid, .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
