/* CogniFlux — Light Premium Cognitive AI Workflow Platform */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&family=Literata:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-white: #FFFFFF;
  --text-on-light: #1E2230;
  --bg-cloud: #F4F6FA;
  --bg-accent: #6C5CE7;
  --text-on-accent: #FFFFFF;
  --bg-violet-soft: #EDE9FE;
  --text-muted: #5A6275;
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Literata', Georgia, serif;
  --radius: 16px;
  --radius-sm: 8px;
  --section-pad: 80px;
  --section-pad-mob: 48px;
  --header-h: 72px;
  --shadow: 0 8px 32px rgba(30, 34, 48, 0.08);
  --shadow-hover: 0 16px 48px rgba(108, 92, 231, 0.15);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.site-flux {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-on-light);
  background: var(--bg-white);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }

a { color: var(--bg-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.surface-light { background: #FFFFFF; color: #1E2230; }
.surface-cloud { background: #F4F6FA; color: #1E2230; }
.surface-accent { background: #6C5CE7; color: #FFFFFF; }
.surface-violet { background: #EDE9FE; color: #1E2230; }
.surface-light *, .surface-cloud *, .surface-violet * { color: inherit; }
.surface-accent a { color: #FFFFFF; text-decoration: underline; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg-accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}

.flux-tag {
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--bg-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.text-muted { color: var(--text-muted); }

.section { padding: var(--section-pad) 24px; }
@media (max-width: 767px) { .section { padding: var(--section-pad-mob) 20px; } }

.container { max-width: 1200px; margin: 0 auto; }

/* Header */
.flux-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  border-bottom: 1px solid rgba(30, 34, 48, 0.06);
  transition: box-shadow 0.25s var(--ease);
}

.flux-header.is-scrolled { box-shadow: var(--shadow); }

.flux-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.flux-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-on-light);
}

.flux-logo:hover { text-decoration: none; }

.flux-logo__mark { width: 36px; height: 36px; flex-shrink: 0; }

.flux-logo__text {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.flux-nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flux-nav-desktop a {
  padding: 10px 16px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-on-light);
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.flux-nav-desktop a:hover,
.flux-nav-desktop a.active {
  background: var(--bg-violet-soft);
  color: var(--bg-accent);
  text-decoration: none;
}

.flux-hamburger {
  display: none;
  background: none;
  border: 2px solid var(--bg-accent);
  color: var(--bg-accent);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1023px) {
  .flux-nav-desktop { display: none; }
  .flux-hamburger { display: flex; }
}

@media (min-width: 1024px) {
  .flux-overlay { display: none !important; }
}

/* Fullscreen overlay nav */
.flux-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.flux-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.flux-overlay__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: 2px solid var(--bg-accent);
  color: var(--bg-accent);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.flux-overlay__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.flux-overlay__links a {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--text-on-light);
  padding: 12px 24px;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.2s;
}

.flux-overlay.is-open .flux-overlay__links a {
  opacity: 1;
  transform: scale(1);
}

.flux-overlay.is-open .flux-overlay__links a:nth-child(1) { transition-delay: 0.05s; }
.flux-overlay.is-open .flux-overlay__links a:nth-child(2) { transition-delay: 0.1s; }
.flux-overlay.is-open .flux-overlay__links a:nth-child(3) { transition-delay: 0.15s; }
.flux-overlay.is-open .flux-overlay__links a:nth-child(4) { transition-delay: 0.2s; }
.flux-overlay.is-open .flux-overlay__links a:nth-child(5) { transition-delay: 0.25s; }
.flux-overlay.is-open .flux-overlay__links a:nth-child(6) { transition-delay: 0.3s; }
.flux-overlay.is-open .flux-overlay__links a:nth-child(7) { transition-delay: 0.35s; }

.flux-overlay__links a:hover { color: var(--bg-accent); text-decoration: none; }

/* Hero Pattern A — 60/40 editorial */
.hero-editorial {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0;
  align-items: stretch;
}

@media (max-width: 900px) {
  .hero-editorial { grid-template-columns: 1fr; min-height: auto; }
}

.hero-editorial__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 48px 80px max(24px, calc((100vw - 1200px) / 2 + 24px));
}

@media (max-width: 900px) {
  .hero-editorial__content { padding: 60px 24px 40px; }
}

.hero-serial {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.hero-sub {
  font-size: 18px;
  margin-bottom: 1.75rem;
  max-width: 560px;
  color: var(--text-muted);
}

.hero-trust {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.hero-editorial__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 4px solid var(--bg-accent);
  min-height: 70vh;
}

@media (max-width: 900px) {
  .hero-editorial__visual { border-left: none; border-top: 4px solid var(--bg-accent); min-height: 50vh; }
}

.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
  min-height: 70vh;
}

@media (max-width: 900px) {
  .hero-portrait { min-height: 50vh; aspect-ratio: 4/3; }
}

.hero-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-head);
  font-weight: 600;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s var(--ease);
  text-decoration: none;
}

.btn-primary {
  background: var(--bg-accent);
  color: var(--text-on-accent);
}

.btn-primary:hover {
  background: #5a4bd6;
  color: var(--text-on-accent);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--bg-accent);
  border: 2px solid var(--bg-accent);
}

.btn-outline:hover {
  background: var(--bg-accent);
  color: var(--text-on-accent);
  text-decoration: none;
}

.btn-outline-light {
  background: transparent;
  color: var(--text-on-accent);
  border: 2px solid var(--text-on-accent);
}

.btn-outline-light:hover {
  background: var(--text-on-accent);
  color: var(--bg-accent);
  text-decoration: none;
}

/* Stats */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
  padding: 48px 24px;
}

.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--bg-accent);
}

.stat-label { font-size: 0.95rem; margin-top: 0.5rem; }

@media (max-width: 600px) {
  .stat-strip { grid-template-columns: 1fr; gap: 24px; }
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

.flux-card {
  background: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius);
  border-top: 4px solid var(--bg-accent);
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}

.flux-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.flux-card svg {
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  stroke: var(--bg-accent);
  fill: none;
}

/* Split layouts */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) { .split-layout { grid-template-columns: 1fr; } }

.photo-frame {
  border: 3px solid var(--bg-accent);
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Bento mosaic */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-a { grid-column: span 7; }
.bento-b { grid-column: span 5; margin-top: 40px; }
.bento-c { grid-column: span 5; }
.bento-d { grid-column: span 7; margin-top: 40px; }

@media (max-width: 900px) {
  .bento-a, .bento-b, .bento-c, .bento-d { grid-column: span 12; margin-top: 0; }
}

.bento-tile {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--bg-accent);
}

.bento-tile img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.bento-tile__body { padding: 24px; }

/* Method steps */
.method-list { counter-reset: method; }

.method-step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(30, 34, 48, 0.08);
}

.method-step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.method-step__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--bg-violet-soft);
  color: var(--bg-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
}

/* FAQ Accordion */
.faq-accordion { max-width: 800px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid rgba(30, 34, 48, 0.1);
  margin-bottom: 0;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-on-light);
}

.faq-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--bg-accent);
  color: var(--text-on-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.faq-answer {
  padding: 0 0 24px 48px;
  color: var(--text-muted);
}

.faq-item.is-open .faq-answer { display: block; }

.faq-toggle {
  margin-left: auto;
  font-size: 1.25rem;
  color: var(--bg-accent);
  transition: transform 0.25s;
}

.faq-item.is-open .faq-toggle { transform: rotate(45deg); }

/* No-JS fallback: all FAQ items visible */
html:not(.js) .faq-answer { display: block; padding-left: 48px; }
html:not(.js) .faq-toggle { display: none; }

/* CTA band */
.cta-band { text-align: center; padding: 64px 24px; }

.curved-divider {
  width: 80px;
  height: 28px;
  margin: 0 auto 32px;
}

.curved-divider path { stroke: var(--text-on-accent); fill: none; stroke-width: 2; }

/* Page hero */
.page-hero { padding: 100px 24px 60px; }
.page-hero--compact { padding: 80px 24px 48px; }

/* About editorial */
.about-editorial {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}

@media (max-width: 900px) { .about-editorial { grid-template-columns: 1fr; } }

.portrait-stack { display: flex; flex-direction: column; gap: 24px; }

.portrait-stack img {
  border-radius: var(--radius);
  border: 3px solid var(--bg-accent);
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
}

.portrait-stack img.portrait-stack__primary {
  max-width: 420px;
}

.portrait-stack img.portrait-stack__secondary {
  max-width: 360px;
  align-self: flex-end;
}

/* Programmes */
.programme-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  border-top: 4px solid var(--bg-accent);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.programme-card__layout {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 768px) {
  .programme-card__layout { grid-template-columns: 1fr; }
}

.programme-card__media {
  margin: 0;
}

.programme-card__media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
}

.programme-card__body h2 {
  margin-top: 0;
}

.programme-card .tier {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bg-accent);
  margin-bottom: 0.5rem;
}

.programme-card .flux-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* Services */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid rgba(30, 34, 48, 0.08);
}

@media (max-width: 768px) { .service-row { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(30, 34, 48, 0.15);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--text-on-light);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-group textarea { min-height: 140px; resize: vertical; }

.checkbox-group {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-group input[type="checkbox"] {
  flex-shrink: 0;
  order: 0;
  margin: 3px 0 0;
  min-width: 18px;
  min-height: 18px;
  width: 18px;
  height: 18px;
}

.checkbox-group label {
  flex: 1;
  margin-bottom: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.5;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-success {
  background: var(--bg-violet-soft);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  border-left: 4px solid var(--bg-accent);
}

/* Legal */
.legal-content { max-width: 800px; }
.legal-content h2 { margin-top: 2rem; }
.legal-content ul, .legal-content ol { margin: 1rem 0 1rem 1.5rem; list-style: disc; }
.legal-content ol { list-style: decimal; }

.legal-hero-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 32px;
  border: 3px solid var(--bg-accent);
}

.legal-hub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 768px) { .legal-hub { grid-template-columns: 1fr; } }

.legal-hub a {
  display: block;
  padding: 24px;
  background: var(--bg-violet-soft);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  text-align: center;
}

/* Footer */
.flux-footer { padding: 64px 24px 32px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: var(--bg-accent);
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: var(--text-on-light); font-size: 0.9rem; }
.footer-col a:hover { color: var(--bg-accent); }

.footer-brand .flux-logo { margin-bottom: 12px; }
.footer-slogan { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 24px;
  border-top: 1px solid rgba(30, 34, 48, 0.08);
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-hosting {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--bg-white);
  border-top: 1px solid rgba(30, 34, 48, 0.1);
  box-shadow: 0 -8px 32px rgba(30, 34, 48, 0.1);
  padding: 20px 24px;
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner p { margin: 0; font-size: 0.9rem; flex: 1; min-width: 200px; }

.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.cookie-banner .btn { padding: 10px 20px; font-size: 0.85rem; min-height: 40px; }

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(30, 34, 48, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cookie-modal__box {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px;
  width: 100%;
}

.cookie-modal h3 { margin-bottom: 16px; }

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(30, 34, 48, 0.08);
}

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Intro statement */
.intro-statement {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: 900px;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.error-page img {
  max-width: 400px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  border: 3px solid var(--bg-accent);
}

/* Disclaimer box */
.disclaimer-box {
  background: var(--bg-violet-soft);
  border-left: 4px solid var(--bg-accent);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  font-size: 0.9rem;
}
