/* ===== Ternus Consulting ===== */
:root {
  --ink: #142433;
  --navy: #1c3a57;
  --navy-deep: #10263c;
  --teal: #1f6f6b;
  --teal-deep: #185a56;
  --gold: #b0854b;
  --paper: #f8f6f1;
  --paper-alt: #f1ece3;
  --white: #ffffff;
  --line: #e3ddd1;
  --line-strong: #d3caba;
  --text: #2a3844;
  --muted: #5f6b74;
  --muted-light: #a9b6c0;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1120px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(20, 36, 51, 0.04), 0 12px 32px rgba(20, 36, 51, 0.06);
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 18px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px;
  padding: 14px 26px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; transition: all 0.18s ease;
  letter-spacing: 0.01em;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(20,36,51,0.03); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 246, 241, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 5px;
  background: var(--ink); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
}
.footer-brand .brand-mark { background: var(--teal); width: 30px; height: 30px; font-size: 14px; }
.brand-text { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--ink); letter-spacing: -0.01em; }
.nav { display: flex; gap: 30px; margin-left: auto; margin-right: 30px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color 0.15s; }
.nav a:hover { color: var(--ink); }
.nav-cta { flex-shrink: 0; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: 0.2s; }

.mobile-nav { display: none; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 28px 18px; }
.mobile-nav a { padding: 12px 0; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--line); }
.mobile-nav.open { display: flex; }

/* ===== Hero ===== */
.hero { padding: 96px 0 80px; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-alt) 100%); }
.hero-inner { max-width: 860px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 600; margin-bottom: 26px; letter-spacing: -0.02em; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 680px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { list-style: none; display: flex; gap: 48px; flex-wrap: wrap; padding-top: 34px; border-top: 1px solid var(--line-strong); }
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--teal); line-height: 1; }
.stat-label { font-size: 14px; color: var(--muted); max-width: 160px; }

/* ===== Trust strip ===== */
.trust-strip { background: var(--ink); color: #d6dde3; padding: 22px 0; }
.trust-strip p { font-size: 15px; text-align: center; max-width: 820px; margin: 0 auto; color: #c3ccd4; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 18px; }
.section-sub { font-size: 18px; color: var(--muted); }
.section-head-light h2, .section-head-light .section-sub { color: #eef2f5; }
.section-head-light .section-sub { color: #b7c4cf; }

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

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow);
  position: relative;
}
.card-index { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--gold); letter-spacing: 0.08em; }
.card h3 { font-size: 21px; margin: 14px 0 12px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* ===== Curriculum ===== */
.curriculum { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; counter-reset: none; }
.curriculum li { display: flex; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--line-strong); }
.mod-num {
  flex-shrink: 0; font-family: var(--sans); font-weight: 600; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal);
  padding-top: 5px; width: 84px;
}
.mod-body h3 { font-size: 20px; margin-bottom: 8px; }
.mod-body p { color: var(--muted); font-size: 15.5px; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.about-photo { position: sticky; top: 100px; }
.photo-frame {
  aspect-ratio: 4 / 5; border-radius: 6px; border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  overflow: hidden; box-shadow: var(--shadow);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.about-body h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 8px; }
.about-role { font-size: 15px; color: var(--teal); font-weight: 600; margin-bottom: 24px; }
.about-body p { color: var(--text); margin-bottom: 18px; }
.cred-list { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.cred-list li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--ink); font-weight: 500; }
.cred-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

/* ===== Enroll (dark) ===== */
.section-dark { background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.pricing { max-width: 900px; margin: 0 auto; }
.pricing-single { max-width: 480px; }
.plan {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px; padding: 38px 34px; position: relative;
}
.plan-featured { background: rgba(255,255,255,0.07); border-color: var(--teal); }
.plan-badge {
  position: absolute; top: -13px; left: 34px;
  background: var(--teal); color: #fff; font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 14px; border-radius: 3px;
}
.plan-name { color: #fff; font-size: 26px; margin-bottom: 4px; }
.plan-desc { color: var(--muted-light); font-size: 15px; margin-bottom: 22px; }
.plan-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 26px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.price-amt { font-family: var(--serif); font-size: 42px; font-weight: 600; color: #fff; }
.price-note { font-size: 13px; color: var(--muted-light); }
.plan-features { list-style: none; display: grid; gap: 14px; margin-bottom: 30px; }
.plan-features li { position: relative; padding-left: 26px; font-size: 15.5px; color: #dde4ea; }
.plan-features li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 11px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.plan-featured .plan-features li::before { border-color: #4bb3ac; }
.pricing-foot { text-align: center; margin-top: 30px; font-size: 14px; color: var(--muted-light); }

/* ===== FAQ ===== */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-list { display: grid; gap: 0; }
.faq-list details { border-bottom: 1px solid var(--line-strong); padding: 6px 0; }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 18px;
  font-family: var(--sans); font-size: 26px; font-weight: 400; color: var(--teal); transition: transform 0.2s;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding: 0 40px 24px 0; color: var(--muted); font-size: 16px; }

/* ===== Contact CTA ===== */
.contact-cta { padding: 88px 0; }
.cta-box {
  color: #fff; border-radius: 8px; padding: 64px 48px; text-align: center;
  background: linear-gradient(165deg, var(--navy) 0%, var(--ink) 100%);
}
.cta-box h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.cta-box > p { color: #c3ccd4; font-size: 18px; max-width: 520px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.cta-box .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-box .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.cta-contact { font-size: 14.5px; color: var(--muted-light); display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-contact .dot { opacity: 0.5; }

/* ===== Book a Call ===== */
.book-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.book-intro { position: sticky; top: 100px; }
.book-points { list-style: none; display: grid; gap: 24px; }
.book-points li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--muted); max-width: 360px; }
.book-points li strong { display: block; color: var(--ink); font-weight: 600; font-size: 16px; margin-bottom: 3px; }
.book-points li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 13px; height: 8px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}

.book-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: 28px; box-shadow: var(--shadow);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-title { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); }
.cal-nav {
  width: 34px; height: 34px; border: 1px solid var(--line-strong); background: var(--white);
  border-radius: 6px; cursor: pointer; font-size: 20px; color: var(--ink); line-height: 1;
  display: grid; place-items: center; transition: background 0.15s, border-color 0.15s;
}
.cal-nav:hover:not(:disabled) { background: var(--paper-alt); border-color: var(--muted); }
.cal-nav:disabled { opacity: 0.3; cursor: default; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.cal-dow span { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  aspect-ratio: 1 / 1; border: 0; background: transparent; border-radius: 6px;
  font-family: var(--sans); font-size: 15px; color: var(--text); cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.cal-day:hover:not(:disabled) { background: var(--paper-alt); }
.cal-day:disabled { color: var(--line-strong); cursor: default; }
.cal-day.is-available { color: var(--ink); font-weight: 600; }
.cal-day.is-available::after {
  content: ""; display: block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--teal); margin: 2px auto 0;
}
.cal-day.is-selected { background: var(--teal); color: #fff; }
.cal-day.is-selected::after { background: #fff; }
.cal-hint { margin-top: 14px; font-size: 12.5px; color: var(--muted); text-align: center; }

.slots { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.slots-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.slots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot {
  padding: 10px 4px; border: 1px solid var(--line-strong); background: var(--white);
  border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer;
  transition: all 0.14s;
}
.slot:hover { border-color: var(--teal); }
.slot.is-selected { background: var(--teal); border-color: var(--teal); color: #fff; }

.book-form { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.book-form-when { font-size: 15px; color: var(--ink); font-weight: 600; }
.book-form-when span { color: var(--teal); }
.book-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.label-hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.book-success { text-align: center; padding: 24px 8px 8px; }
.success-check { width: 56px; height: 56px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; margin: 0 auto 20px; }
.success-check svg { width: 28px; height: 28px; color: #fff; }
.book-success h3 { font-size: 25px; margin-bottom: 12px; color: var(--ink); }
.book-success p { color: var(--muted); font-size: 15.5px; max-width: 380px; margin: 0 auto 8px; }
.book-success strong { color: var(--ink); font-weight: 600; }
.success-actions { margin-top: 22px; }
.book-form input {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--paper);
}
.book-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,111,107,0.12); }
.form-status { font-size: 14px; color: var(--teal); font-weight: 500; min-height: 1px; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #aab6c0; padding: 48px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 19px; color: #fff; font-weight: 600; }
.footer-tagline { font-size: 14.5px; color: #97a4ae; }
.footer-legal { font-size: 13px; color: #6f7d88; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .curriculum { grid-template-columns: 1fr; gap: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { position: static; max-width: 320px; }
  .book-grid { grid-template-columns: 1fr; gap: 32px; }
  .book-intro { position: static; }
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-stats { gap: 28px; }
  .grid-2 { grid-template-columns: 1fr; }
  .cta-box { padding: 44px 24px; }
  .container { padding: 0 20px; }
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
}
