/* Connecteddatahub — minimalist premium theme */
:root {
  --bg: #f7f6f3;
  --bg-elevated: #ffffff;
  --ink: #14201c;
  --ink-soft: #3d4a44;
  --muted: #6a756f;
  --line: #d9ddd8;
  --accent: #0b3d36;
  --accent-mid: #1a6b5c;
  --accent-soft: #dcebe6;
  --highlight: #c4a35a;
  --danger: #8b3a3a;
  --success: #1f6b4a;
  --shadow: 0 18px 40px rgba(20, 32, 28, 0.08);
  --radius: 2px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(220, 235, 230, 0.7), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 163, 90, 0.12), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

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

a {
  color: var(--accent-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin: 0 0 0.85rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; color: var(--ink-soft); }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 243, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  background:
    linear-gradient(135deg, transparent 48%, var(--accent) 48%, var(--accent) 52%, transparent 52%),
    linear-gradient(45deg, var(--accent-soft), transparent);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 400;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav .nav-cta {
  background: var(--accent);
  color: #f4faf8;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
}

.site-nav .nav-cta:hover {
  background: var(--accent-mid);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

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

.btn-primary {
  background: var(--accent);
  color: #f4faf8;
}

.btn-primary:hover {
  background: var(--accent-mid);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero — editorial full-bleed */
.hero-editorial {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  color: #f4faf8;
  overflow: hidden;
}

.hero-editorial::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 61, 54, 0.35) 0%, rgba(11, 61, 54, 0.78) 70%, rgba(11, 61, 54, 0.92) 100%),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
  z-index: 0;
  animation: hero-zoom 18s var(--ease) infinite alternate;
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero-editorial .container {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  max-width: 12ch;
  animation: rise 0.9s var(--ease) both;
}

.hero-lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 36rem;
  color: rgba(244, 250, 248, 0.88);
  margin-bottom: 2rem;
  animation: rise 0.9s 0.12s var(--ease) both;
}

.hero-actions {
  animation: rise 0.9s 0.22s var(--ease) both;
}

.hero-actions .btn-primary {
  background: #f4faf8;
  color: var(--accent);
}

.hero-actions .btn-primary:hover {
  background: #fff;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.section-intro {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.media-frame:hover img {
  transform: scale(1.03);
}

/* Trust strip */
.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--bg-elevated);
}

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

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

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

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

/* Feature list (not cards by default — clean rows) */
.benefit-list {
  display: grid;
  gap: 0;
}

.benefit-item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.benefit-item:first-child {
  border-top: 1px solid var(--line);
}

.benefit-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--highlight);
}

/* Course preview / listing */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

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

.course-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.course-tile:hover {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow);
}

.course-tile a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.course-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.course-tile-body {
  padding: 1.35rem 1.35rem 1.5rem;
}

.course-tile h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.course-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

/* Featured deep dive */
.featured-band {
  background: var(--accent);
  color: #e8f3f0;
}

.featured-band h2,
.featured-band h3 { color: #f4faf8; }

.featured-band p { color: rgba(232, 243, 240, 0.85); }

.featured-band .btn-primary {
  background: #f4faf8;
  color: var(--accent);
}

.featured-band .btn-ghost {
  color: #f4faf8;
  border-color: rgba(244, 250, 248, 0.35);
}

.module-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.module-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.featured-band .module-list li {
  border-bottom-color: rgba(244, 250, 248, 0.18);
}

.module-list span {
  color: var(--highlight);
  font-family: var(--font-display);
  min-width: 1.5rem;
}

/* Testimonials */
.quote-stack {
  display: grid;
  gap: 2rem;
}

.quote-block {
  padding: 0;
  border: none;
  background: none;
}

.quote-block blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 400;
}

.quote-block cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}

.quote-block.compact blockquote {
  font-size: 1.05rem;
  font-family: var(--font-body);
  line-height: 1.6;
}

.rating {
  color: var(--highlight);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

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

.price-tier {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.price-tier.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--bg-elevated) 40%);
}

.price-tier h3 {
  font-size: 1.5rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  margin: 0.75rem 0;
}

.price-amount small {
  font-size: 1rem;
  color: var(--muted);
  font-family: var(--font-body);
}

.price-tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  flex: 1;
}

.price-tier li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

/* Forms */
.form-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 2rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease);
}

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

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

.field-error {
  display: none;
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

.form-group.has-error .field-error { display: block; }
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--danger);
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  display: none;
  font-size: 0.92rem;
}

.form-status.is-success {
  display: block;
  background: #e7f4ec;
  color: var(--success);
}

.form-status.is-error {
  display: block;
  background: #f8eaea;
  color: var(--danger);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

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

.contact-aside {
  padding: 1.5rem 0;
}

.contact-aside h2 {
  font-size: 1.35rem;
}

.contact-aside p,
.contact-aside address {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Blog */
.blog-list {
  display: grid;
  gap: 2.5rem;
}

.blog-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.75rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

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

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

.blog-row h2 {
  font-size: 1.55rem;
}

.blog-row h2 a {
  text-decoration: none;
  color: var(--ink);
}

.blog-row h2 a:hover { color: var(--accent-mid); }

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin: 1.5rem 0 2rem;
}

.article-body {
  max-width: 42rem;
}

.article-body h2 {
  margin-top: 2.25rem;
  font-size: 1.55rem;
}

.prose-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* Legal */
.legal-page {
  padding: 3.5rem 0 5rem;
}

.legal-page h1 { margin-bottom: 0.5rem; }

.legal-page h2 {
  font-size: 1.35rem;
  margin-top: 2.25rem;
}

.legal-page ul {
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.legal-page li { margin-bottom: 0.45rem; }

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid var(--line);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

.cookie-table th {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 500;
}

/* FAQ */
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--accent-mid);
}

.faq-list details[open] summary::after { content: "−"; }

.faq-list details p {
  margin: 0.75rem 0 0.25rem;
  max-width: 40rem;
}

/* 404 */
.page-404 {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

.page-404 .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  max-width: 420px;
  margin-right: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.4rem;
  display: none;
}

.cookie-banner.is-visible { display: block; animation: rise 0.4s var(--ease); }

.cookie-banner p {
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

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

.cookie-actions .btn {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
}

.inline-script-error {
  background: #f8eaea;
  color: var(--danger);
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

/* Page hero (inner) */
.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero p {
  max-width: 36rem;
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(244, 250, 248, 0.78);
  padding: 4rem 0 0;
  margin-top: 3rem;
}

.footer-grid {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2rem;
  padding-bottom: 3rem;
}

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

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #f4faf8;
  margin-bottom: 0.75rem;
}

.footer-tag {
  color: rgba(244, 250, 248, 0.65);
  font-size: 0.9rem;
  max-width: 22rem;
}

.footer-col h2 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 250, 248, 0.5);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 0.45rem; }

.footer-col a {
  color: rgba(244, 250, 248, 0.82);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover { color: #fff; }

.footer-contact p {
  color: rgba(244, 250, 248, 0.72);
  font-size: 0.88rem;
  margin-bottom: 0.65rem;
}

.footer-base {
  border-top: 1px solid rgba(244, 250, 248, 0.12);
  padding: 1.25rem 0;
}

.footer-base p {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  font-size: 0.8rem;
  color: rgba(244, 250, 248, 0.5);
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

.mt-2 { margin-top: 2rem; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.case-study {
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  padding: 1.75rem 1.75rem 1.75rem 2rem;
  margin: 2rem 0;
}

.case-study h3 {
  margin-bottom: 0.75rem;
}

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  margin: 2rem 0;
}

.instructor img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

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