/* Autodatabridge — minimalist premium theme */
:root {
  --bg: #f7f5f2;
  --bg-elevated: #ffffff;
  --ink: #1c2421;
  --ink-soft: #4a5752;
  --muted: #7a8681;
  --line: #d9ddd8;
  --accent: #0d5c63;
  --accent-deep: #084048;
  --accent-soft: #dce9e7;
  --highlight: #c4a574;
  --danger: #8b3a3a;
  --success: #1f6b4a;
  --radius: 2px;
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;
  --max: 1120px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --shadow-soft: 0 18px 40px rgba(28, 36, 33, 0.06);
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(13, 92, 99, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 165, 116, 0.08), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

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

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

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

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

h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.65rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }

p { margin: 0 0 1.1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  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, 245, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.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;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--accent);
  opacity: 0.35;
}

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

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  align-items: center;
}

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-nav .nav-cta {
  color: #fff;
  background: var(--accent);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius);
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.45rem 0.75rem;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle-icon {
  width: 1rem;
  height: 1px;
  background: var(--ink);
  box-shadow: 0 -4px 0 var(--ink), 0 4px 0 var(--ink);
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem 1.35rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--space-xl) 0;
}

.section-tight {
  padding: var(--space-lg) 0;
}

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

.lede {
  font-size: 1.2rem;
  max-width: 38rem;
  color: var(--ink-soft);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

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

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

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

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

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

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

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Hero — editorial full-bleed */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroReveal 1.4s ease both;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(247, 245, 242, 0.94) 0%, rgba(247, 245, 242, 0.78) 42%, rgba(247, 245, 242, 0.25) 72%, rgba(13, 92, 99, 0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 6rem) 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 70vh;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--ink);
  animation: riseIn 0.9s ease 0.15s both;
}

.hero-statement {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  max-width: 28rem;
  color: var(--ink-soft);
  margin: 0;
  animation: riseIn 0.9s ease 0.35s both;
}

.hero-cta {
  animation: riseIn 0.9s ease 0.55s both;
}

.hero-rail {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(247, 245, 242, 0.85);
  backdrop-filter: blur(8px);
}

.hero-rail-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.hero-rail strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
}

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

@keyframes heroReveal {
  from { transform: scale(1.06); opacity: 0.6; }
  to { transform: scale(1); opacity: 1; }
}

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

.reveal {
  animation: fadeUp 0.7s ease both;
}

/* Feature / course grids — no card chrome by default */
.benefit-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  margin-top: 2.5rem;
  counter-reset: benefit;
}

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

.benefit-item {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.benefit-item::before {
  counter-increment: benefit;
  content: "0" counter(benefit);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--highlight);
  display: block;
  margin-bottom: 0.65rem;
}

.benefit-item h3 {
  margin-bottom: 0.5rem;
}

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

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

.course-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.course-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 1rem;
  transition: transform 0.5s ease;
}

.course-tile:hover img {
  transform: scale(1.02);
}

.course-tile h3 {
  color: var(--ink);
  margin-bottom: 0.4rem;
  text-decoration: none;
}

.course-tile p {
  font-size: 0.95rem;
}

.course-meta {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Quote / proof */
.proof-band {
  background: var(--accent);
  color: #e8f0ef;
  padding: var(--space-xl) 0;
}

.proof-band h2,
.proof-band p {
  color: #e8f0ef;
}

.proof-band .section-label {
  color: var(--highlight);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

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

.quote-large {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.35;
  color: #fff;
  margin: 0 0 1.25rem;
}

.quote-attr {
  font-size: 0.9rem;
  opacity: 0.85;
}

.quote-side {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 1.5rem;
}

.quote-side blockquote {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: #d5e4e2;
}

/* Page heroes (inner) */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--line);
}

.page-hero .lede {
  margin-top: 0.5rem;
}

.page-hero-media {
  margin-top: 2.5rem;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  width: 100%;
}

/* Forms */
.form {
  display: grid;
  gap: 1.15rem;
  max-width: 36rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--ink);
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

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

.field-error {
  color: var(--danger);
  font-size: 0.85rem;
  display: none;
}

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

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

.form-status.is-success {
  display: block;
  background: rgba(31, 107, 74, 0.1);
  color: var(--success);
  border: 1px solid rgba(31, 107, 74, 0.25);
}

.form-status.is-error {
  display: block;
  background: rgba(139, 58, 58, 0.08);
  color: var(--danger);
  border: 1px solid rgba(139, 58, 58, 0.25);
}

.inline-error {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: rgba(139, 58, 58, 0.08);
  color: var(--danger);
  border: 1px solid rgba(139, 58, 58, 0.2);
  font-size: 0.9rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

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

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

.price-tier.is-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.price-tier h3 { margin-bottom: 0.35rem; }

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

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

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

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

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

.blog-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.75rem;
  text-decoration: none;
  color: inherit;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

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

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

.blog-item h2 {
  font-size: 1.75rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

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

.article-body {
  max-width: 42rem;
  padding: var(--space-lg) 0 var(--space-xl);
}

.article-body h2 {
  margin-top: 2rem;
}

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

/* Reviews */
.review-stack {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.review-block {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.review-block .stars {
  color: var(--highlight);
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.review-block cite {
  display: block;
  margin-top: 0.85rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}

.case-study {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

/* FAQ */
.faq-list {
  margin-top: 1.5rem;
  max-width: 44rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
}

.faq-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Modules */
.module-list {
  counter-reset: module;
  margin: 1.5rem 0;
}

.module-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.module-item::before {
  counter-increment: module;
  content: counter(module, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent);
}

/* Tables */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

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

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

.legal-content {
  max-width: 46rem;
  padding-bottom: var(--space-xl);
}

.legal-content h2 {
  margin-top: 2.25rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  padding: var(--space-lg) 0 var(--space-xl);
}

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

.contact-details {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  height: fit-content;
}

.contact-details h2 {
  font-size: 1.4rem;
}

/* 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: var(--space-xl) 0;
}

.error-page h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  margin-bottom: 0.25rem;
  color: var(--accent);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(28, 36, 33, 0.08);
  padding: 1.15rem 1.5rem;
  transform: translateY(110%);
  transition: transform 0.35s ease;
}

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

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

.cookie-banner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.92rem;
}

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

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c5ccc9;
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-xl);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: #fff;
  margin: 0 0 0.65rem;
}

.footer-tag {
  max-width: 28rem;
  color: #a8b2ae;
  font-size: 0.95rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.footer-col h2 {
  font-size: 1rem;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

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

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

.footer-col a {
  color: #c5ccc9;
  text-decoration: none;
  font-size: 0.92rem;
}

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

.footer-contact p {
  color: #a8b2ae;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: #8a9490;
}

.footer-bottom p { color: inherit; margin: 0; }

/* Misc */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3.5rem;
  margin-top: 2rem;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--ink);
}

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

.prose-wide {
  max-width: 40rem;
}

.cta-band {
  padding: var(--space-xl) 0;
  text-align: left;
  border-top: 1px solid var(--line);
}

.instructor {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin: 2rem 0;
}

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

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

.outcome-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
}

.outcome-list li {
  padding: 0.65rem 0 0.65rem 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.outcome-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  border-radius: 1px;
}
