/* DataBlueprintAI — style.css */
:root {
  --dark: #0C1929;
  --light: #EFF6FF;
  --accent: #0D9488;
  --steel: #1E3A5F;
  --accent-light: #14B8A6;
  --text-muted: #94A3B8;
  --white: #FFFFFF;
  --radius: 8px;
  --nav-width: 300px;
  --header-h: 64px;
  --transition-nav: 320ms cubic-bezier(0.4, 0, 0.2, 1);
  --font-head: 'Outfit', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dark);
  background: var(--light);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
}

/* Surface pairs */
.surface-dark { background: var(--dark); color: var(--light); }
.surface-dark a { color: var(--accent-light); }
.surface-light { background: var(--light); color: var(--dark); }
.surface-accent { background: var(--accent); color: var(--white); }
.surface-accent a { color: var(--white); text-decoration: underline; }
.surface-steel { background: var(--steel); color: var(--light); }
.surface-steel a { color: var(--accent-light); }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(12, 25, 41, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--light);
  letter-spacing: -0.02em;
}

.logo:hover { color: var(--accent-light); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-contact {
  color: var(--white) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s;
}

.header-contact:hover {
  background: rgba(13, 148, 136, 0.2);
  border-color: var(--accent);
  color: var(--white) !important;
}

.hamburger {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--light);
  transition: transform var(--transition-nav), opacity var(--transition-nav);
}

body.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Sidebar nav */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 25, 41, 0.6);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-nav), visibility var(--transition-nav);
}

body.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
}

.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-width);
  height: 100vh;
  background: var(--dark);
  z-index: 1002;
  transform: translateX(-100%);
  transition: transform var(--transition-nav);
  padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.08);
}

body.nav-open .sidebar-nav { transform: translateX(0); }

.sidebar-nav ul { list-style: none; }
.sidebar-nav li { margin-bottom: 0.25rem; }

.sidebar-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--light);
  font-family: var(--font-head);
  font-size: 1.05rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(13, 148, 136, 0.15);
  color: var(--accent-light);
}

.sidebar-nav .nav-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-nav .nav-section a {
  color: var(--white);
  font-weight: 500;
}

.sidebar-nav .nav-section a:hover,
.sidebar-nav .nav-section a.active {
  color: var(--accent-light);
}

.sidebar-nav .nav-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 1rem;
  margin-bottom: 0.5rem;
}

/* Main layout */
main { padding-top: var(--header-h); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.surface-light .section-lead { color: var(--dark); }

.surface-dark .section-lead,
.surface-steel .section-lead { color: rgba(239, 246, 255, 0.7); }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border-top: 4px solid var(--accent);
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(12, 25, 41, 0.08);
}

.surface-dark .card,
.surface-steel .card {
  background: rgba(255,255,255,0.05);
  border-top-color: var(--accent-light);
  box-shadow: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.card p { font-size: 0.95rem; }

/* CTA button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
}

a.btn-primary,
button.btn-primary {
  color: var(--white);
}

.btn-primary:hover {
  color: var(--white);
  box-shadow: 0 6px 24px rgba(13, 148, 136, 0.45);
}

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

.btn-outline:hover { background: rgba(13, 148, 136, 0.1); color: var(--accent); }

/* Hero Pattern K */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 148, 136, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 2rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 1rem;
  color: var(--light);
}

.hero-serial {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(13, 148, 136, 0.4);
  border-radius: 4px;
}

.hero-content p {
  font-size: 1.125rem;
  color: rgba(239, 246, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.node-card {
  position: absolute;
  background: rgba(12, 25, 41, 0.92);
  border: 1px solid rgba(13, 148, 136, 0.4);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--light);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.node-card strong {
  display: block;
  color: var(--accent-light);
  font-family: var(--font-head);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.node-card--1 { top: 8%; right: -5%; }
.node-card--2 { bottom: 20%; left: -8%; }
.node-card--3 { bottom: 5%; right: 10%; }

/* Page hero (inner pages) */
.page-hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.page-hero p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.85;
}

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

.split img {
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(12, 25, 41, 0.15);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--accent);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-5px);
}

.timeline-year {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.timeline-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 100%;
  max-width: 180px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border-top: 4px solid var(--accent);
}

.team-member h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.team-member .role { color: var(--accent); font-size: 0.9rem; font-weight: 500; margin-bottom: 0.5rem; }
.team-member p { font-size: 0.9rem; color: var(--text-muted); }

/* FAQ two-column */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}

.faq-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(12, 25, 41, 0.1);
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--steel);
}

.faq-item p { font-size: 0.95rem; }

.surface-dark .faq-item { border-color: rgba(255,255,255,0.1); }
.surface-dark .faq-item h3 { color: var(--accent-light); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(12, 25, 41, 0.15);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

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

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.consent-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.consent-group input { width: auto; margin-top: 0.25rem; }

.form-success {
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--steel);
}

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
}

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

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  color: var(--accent-light);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(239, 246, 255, 0.75); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent-light); }
.footer-col p { font-size: 0.9rem; color: rgba(239, 246, 255, 0.7); line-height: 1.6; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(239, 246, 255, 0.5);
}

.ai-disclaimer {
  font-size: 0.8rem;
  color: rgba(239, 246, 255, 0.45);
  margin-top: 1rem;
  padding: 0.75rem;
  border-left: 3px solid var(--accent);
  background: rgba(13, 148, 136, 0.08);
}

.ai-disclaimer--prominent {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--steel);
  background: rgba(13, 148, 136, 0.14);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
}

.ai-disclaimer--prominent strong {
  color: var(--dark);
  font-size: 1.1rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: var(--light);
  padding: 1.25rem 1.5rem;
  z-index: 2000;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible { transform: translateY(0); }

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

.cookie-inner p { font-size: 0.9rem; max-width: 600px; }

.cookie-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.cookie-actions .btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; }

.btn-cookie-accept,
.btn-cookie-reject,
.btn-cookie-customise {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-family: var(--font-head);
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
}

.btn-cookie-accept { background: var(--accent); color: var(--white); border: none; }
.btn-cookie-reject { background: transparent; color: var(--light); border: 1px solid rgba(255,255,255,0.3); }
.btn-cookie-customise { background: transparent; color: var(--accent-light); border: 1px solid rgba(255,255,255,0.2); text-decoration: none; }

/* Legal content */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content .card h3 {
  font-size: 1.25rem;
  color: var(--steel);
}

.legal-content .card p {
  font-size: 1rem;
  color: var(--dark);
}
.legal-content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.legal-content p, .legal-content li { margin-bottom: 0.75rem; font-size: 0.95rem; }
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }

.legal-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.legal-nav a {
  padding: 0.65rem 1.35rem;
  border: 2px solid var(--steel);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  color: var(--steel);
  background: var(--white);
}

.legal-nav a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

/* 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-page h1 { font-size: 6rem; color: var(--accent); line-height: 1; }
.error-page h2 { margin: 1rem 0; }

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

.js .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Feature list */
.feature-list { list-style: none; }
.feature-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid rgba(12, 25, 41, 0.08);
}
.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--accent);
}

.stat-item span { font-size: 0.85rem; color: var(--text-muted); }

.surface-dark .stat-item span { color: rgba(239,246,255,0.6); }

/* Program/service detail */
.card.program-card {
  overflow: hidden;
  padding-top: 0;
}

.program-card img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: 0 0 1.25rem;
}

.img-side-compact {
  max-width: 300px;
  width: 100%;
}

.contact-images img {
  max-width: 200px;
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.img-page-banner {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding: 3rem 1.5rem; }
  .hero { min-height: auto; padding-top: 2rem; }
  .hero-visual { order: -1; }
  .node-card--1 { right: 5%; top: 5%; }
  .node-card--2 { left: 5%; }
  .split { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-contact { display: none; }
  .cookie-inner { flex-direction: column; text-align: center; }
}
