/* DentalCE.Blog — static site styles
   Brand tokens are pulled from the logo and banners: deep navy, bright sky blue,
   and the soft lavender-white of the hero photo. */

:root {
  --navy: #0b2a6f;
  --navy-deep: #061c4d;
  --blue: #1a8fe3;
  --blue-light: #5fc0ff;
  --ink: #1b2340;
  --ink-soft: #55607a;
  --line: #dfe5f2;
  --paper: #ffffff;
  --paper-tint: #f4f6fc;
  --lavender: #ece9f8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 42, 111, 0.10);
  --font: "Plus Jakarta Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.section { padding: 5rem 0; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section-foot { margin-top: 2.5rem; text-align: center; }

.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff;
  padding: .5rem 1rem; border-radius: 6px; z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); }
.btn-link { background: transparent; color: var(--navy); padding-inline: .5rem; }
.btn-link:hover { text-decoration: underline; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 1rem; }
.brand img { width: 240px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a { color: var(--navy); font-weight: 600; }
.site-nav a:hover { color: var(--blue); text-decoration: none; }
.site-nav .nav-cta { background: var(--navy); color: #fff; padding: .55rem 1.1rem; border-radius: 999px; }
.site-nav .nav-cta:hover { background: var(--blue); color: #fff; }

.nav-toggle {
  display: none; align-items: center; gap: .5rem; background: none; border: 2px solid var(--line);
  border-radius: 8px; padding: .45rem .75rem; font-family: inherit; font-weight: 700; color: var(--navy); cursor: pointer;
}
.nav-toggle-bar {
  width: 18px; height: 2px; background: currentColor; position: relative; display: block;
}
.nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle-bar::before { top: -6px; } .nav-toggle-bar::after { top: 6px; }

/* Hero */
.hero {
  background: var(--lavender) url("assets/hero-banner.webp") center right / cover no-repeat;
  min-height: 560px; display: flex; align-items: center;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(240,238,250,.96) 0%, rgba(240,238,250,.85) 45%, rgba(240,238,250,0) 70%);
}
.hero-inner { position: relative; padding: 4rem 0; }
.hero-copy { max-width: 600px; }
.hero-kicker { color: var(--blue); font-weight: 700; margin-bottom: .75rem; }
.hero-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0; }
.hero-proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--navy); font-weight: 600; font-size: .95rem; }
.hero-proof li::before { content: "✓"; color: var(--blue); margin-right: .4rem; font-weight: 800; }

/* Courses */
.courses { background: var(--paper); }
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.75rem; }
.course-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 12px 34px rgba(11,42,111,.14);
}
.course-head {
  position: relative; padding: 1.4rem 1.5rem 1.5rem; color: #fff; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 100%, #1a63c6 0%, #0b2a6f 45%, #061c4d 100%);
}
.course-head::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -55px; height: 120px;
  border-radius: 50%; border-top: 3px solid rgba(95,192,255,.55); opacity: .9;
  transform: rotate(-4deg);
}
.course-head::before {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -30px; height: 90px;
  border-radius: 50%; border-top: 2px solid rgba(95,192,255,.3); transform: rotate(-4deg);
}
.course-tag {
  position: relative; z-index: 1; margin: 0 0 1.1rem; padding-left: 2rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-light);
}
.course-tag::before { content: ""; position: absolute; left: 0; top: .55em; width: 1.3rem; height: 2px; background: var(--blue-light); }
.course-speaker { position: relative; z-index: 1; display: flex; align-items: center; gap: .9rem; }
.course-speaker img, .speaker-initials {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.speaker-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: #fff; font-weight: 800; font-size: 1.1rem; }
.speaker-name { display: block; font-weight: 700; font-size: 1.05rem; color: #fff; }
.speaker-role { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); font-weight: 600; }
.course-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.course-meta { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.course-meta li { background: var(--paper-tint); color: var(--ink-soft); font-size: .85rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px; }
.course-meta li.pill-primary { background: #e3f1fc; color: var(--blue); }
.course-card h3 { font-size: 1.3rem; line-height: 1.3; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.course-card h3 a { color: var(--navy); }
.course-actions { margin-top: auto; display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.course-actions .btn-primary {
  background: linear-gradient(90deg, #0b2a6f, #1a8fe3); border-radius: 12px; padding: .9rem 1.25rem;
}
.course-actions .btn-primary::after { content: "\2192"; margin-left: .5rem; }
.course-actions .btn-primary:hover { background: var(--navy); }
.more-courses { margin-top: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-tint); }
.more-courses summary { cursor: pointer; padding: 1rem 1.5rem; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; }
.more-courses summary::-webkit-details-marker { display: none; }
.more-courses summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
.more-courses[open] summary::after { content: "\2212"; }
.more-courses summary span { color: var(--ink-soft); font-weight: 500; margin-right: auto; margin-left: .5rem; }
.more-courses ul { list-style: none; margin: 0; padding: 0 1.5rem 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 2rem; }
.more-courses li { display: flex; flex-direction: column; padding: .8rem 0; border-top: 1px solid var(--line); }
.more-courses li a { color: var(--navy); font-weight: 600; }
.more-courses li span { font-size: .85rem; color: var(--ink-soft); }

/* How it works */
.how { background: var(--paper-tint); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; counter-reset: step; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; margin-bottom: .9rem;
}
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow); }
.post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-topic { color: var(--blue); font-weight: 700; font-size: .85rem; margin-bottom: .6rem; }
.post-card h3 { font-size: 1.15rem; }
.post-card h3 a { color: var(--navy); }
.post-card p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.post-date { font-size: .85rem; color: var(--ink-soft); }

/* Newsletter */
.newsletter { background: linear-gradient(135deg, var(--navy-deep), var(--navy) 55%, var(--blue)); color: #fff; }
.newsletter-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.newsletter h2 { color: #fff; }
.newsletter-copy p { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 46ch; }
.newsletter-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.75rem; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--navy); }
.field input, .field select {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(26,143,227,.2); }
.field input.is-invalid { border-color: #c0392b; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 1.4em; margin: .85rem 0 .25rem; font-weight: 600; font-size: .95rem; }
.form-status.ok { color: #1a7f4b; }
.form-status.err { color: #c0392b; }
.form-fineprint { font-size: .78rem; color: var(--ink-soft); margin: 0; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.8); padding: 3.5rem 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand img { width: 200px; background: #fff; padding: .6rem .9rem; border-radius: 10px; margin-bottom: 1rem; }
.footer-brand p { font-size: .92rem; max-width: 46ch; }
.footer-links h4 { color: #fff; font-size: .95rem; margin-bottom: .9rem; }
.footer-links a { display: block; color: rgba(255,255,255,.8); margin-bottom: .55rem; font-size: .95rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 1.5rem; font-size: .82rem; color: rgba(255,255,255,.6); }
.footer-bottom p { margin-bottom: .4rem; }

/* Responsive */
@media (max-width: 900px) {
  .newsletter-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 3.5rem 0; }
  .brand img { width: 190px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: .75rem; text-align: center; border: 0; }
  .hero { min-height: 0; background-position: 75% center; }
  .hero::before { background: linear-gradient(180deg, rgba(240,238,250,.97) 0%, rgba(240,238,250,.92) 70%, rgba(240,238,250,.75) 100%); }
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* Blog post pages */
.post-wrap { max-width: 780px; padding: 3rem 0 4rem; }
.post-header h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.post-meta { color: var(--ink-soft); font-size: .92rem; }
.post-hero { border-radius: var(--radius); margin: 1.5rem 0 2.25rem; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; box-shadow: var(--shadow); }
.post-body { font-size: 1.08rem; line-height: 1.75; }
.post-body h2 { font-size: 1.5rem; margin: 2.25rem 0 .75rem; }
.post-body h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.post-body ul, .post-body ol { padding-left: 1.4rem; margin: 0 0 1.25em; }
.post-body li { margin-bottom: .45em; }
.post-body blockquote { margin: 1.75rem 0; padding: 1.1rem 1.5rem; border-left: 4px solid var(--blue); background: var(--paper-tint); border-radius: 0 12px 12px 0; font-weight: 600; color: var(--navy); }
.callout { background: #e3f1fc; border-radius: 12px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.callout h3 { color: var(--navy); }
.callout p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
.post-body table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.post-body th, .post-body td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.post-body th { background: var(--paper-tint); color: var(--navy); }
.compare { display: grid; gap: 1rem; margin: 1.25rem 0; }
.compare > div { border-radius: 12px; padding: 1rem 1.25rem; font-size: 1rem; }
.compare span { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .35rem; }
.compare p { margin: 0; font-style: italic; }
.compare-bad { background: #fbeaea; color: #7a1f1f; }
.compare-good { background: #e6f5ec; color: #1a5a34; }
.post-note { color: var(--ink-soft); font-size: .97rem; border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 2rem; }
.post-course { margin-top: 3rem; padding: 2rem; border-radius: 18px; color: #fff; background: radial-gradient(120% 140% at 100% 100%, #1a63c6 0%, #0b2a6f 45%, #061c4d 100%); }
.post-course-kicker { color: var(--blue-light); font-weight: 700; font-size: .85rem; margin-bottom: .5rem; }
.post-course h2 { color: #fff; font-size: 1.4rem; }
.post-course p { color: rgba(255,255,255,.85); }
.post-course .btn-primary { background: #fff; color: var(--navy); }
.post-course .btn-primary:hover { background: var(--blue-light); }
.post-back { margin-top: 2rem; }
