/* ═══════════════════════════════════════════════════════════════════════════
   ce.edu.dental — Main Stylesheet
   Clean, professional dental education design
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0f1b2d;
  --navy-light: #1a2b45;
  --teal: #00c2a8;
  --teal-dark: #009e8a;
  --teal-light: #e6faf7;
  --blue: #3e8ede;
  --blue-light: #eef5fc;
  --slate: #475569;
  --slate-light: #94a3b8;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-900: #0f172a;
  --white: #ffffff;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Lora', Georgia, serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── Intake.dental Top Bar ────────────────────────────────────────────────── */
#intake-bar {
  background: var(--navy);
  color: #fff;
  padding: 9px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
  border-bottom: 2px solid var(--teal);
  line-height: 1.4;
}
#intake-bar strong { color: var(--teal); }
#intake-bar span { color: #aab4c0; }
#intake-bar .ib-cta {
  background: var(--teal);
  color: var(--navy);
  padding: 5px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .4px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s;
}
#intake-bar .ib-cta:hover { background: #fff; color: var(--navy); }
#intake-bar .ib-x {
  background: none; border: none; color: #556; font-size: 15px;
  cursor: pointer; padding: 2px 6px; line-height: 1;
}
#intake-bar .ib-x:hover { color: #fff; }
@media(max-width:640px) {
  #intake-bar { font-size: 11px; padding: 7px 12px; gap: 8px; flex-wrap: wrap; }
}

/* Sticky wrap for bar + header */
.sticky-wrap {
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* ─── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo img { height: 44px; width: auto; }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  color: var(--slate);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all .2s;
}
.main-nav a:hover {
  color: var(--teal-dark);
  background: var(--teal-light);
}

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--navy);
  margin: 5px 0; transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media(max-width:900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 2px solid var(--teal);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--gray-100); }
}

/* ─── Hero Section ─────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero p {
  font-size: 1.125rem;
  color: var(--slate-light);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero .hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
}
.hero .hero-stat { text-align: center; }
.hero .hero-stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  display: block;
}
.hero .hero-stat-label {
  font-size: 13px;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}
@media(max-width:640px) {
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 1.75rem; }
  .hero .hero-stats { gap: 24px; flex-wrap: wrap; }
}

/* ─── Section ──────────────────────────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-alt { background: var(--gray-50); }
.section-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-subtitle {
  color: var(--slate);
  font-size: 1rem;
  margin-bottom: 32px;
}

/* ─── Cards ────────────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all .2s;
  display: block;
  color: inherit;
}
.card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}
.card-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal);
  margin-bottom: 8px;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}
.card p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.5;
}
.card-footer {
  margin-top: 12px;
  font-size: 13px;
  color: var(--teal-dark);
  font-weight: 600;
}

/* State grid — compact */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.state-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
  transition: all .15s;
}
.state-card:hover {
  border-color: var(--teal);
  background: var(--teal-light);
  color: var(--teal-dark);
}

/* ─── Content / Article ────────────────────────────────────────────────────── */
.content-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}
.content-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}
.content-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 12px;
}
.content-header .content-meta {
  font-size: 14px;
  color: var(--slate);
}
.content-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--gray-900);
}
.content-body h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 40px 0 16px;
  padding-top: 16px;
}
.content-body h3 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
  font-weight: 600;
}
.content-body p { margin-bottom: 16px; }
.content-body ul, .content-body ol {
  margin: 0 0 16px 24px;
}
.content-body li { margin-bottom: 6px; }
.content-body img {
  border-radius: var(--radius-lg);
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.content-body blockquote {
  border-left: 3px solid var(--teal);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--gray-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--slate);
  font-style: italic;
}
.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.content-body th, .content-body td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.content-body th {
  background: var(--gray-50);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--slate);
}

/* ─── Inline Intake.dental Ads (in content) ────────────────────────────────── */
a.ida-inline {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
  cursor: pointer;
}
a.ida-inline:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}
a.ida-inline .ida-tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 4px;
}
a.ida-inline .ida-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 4px;
}
a.ida-inline .ida-desc {
  font-size: 13px;
  color: var(--slate);
  margin: 0;
  line-height: 1.5;
}
a.ida-inline .ida-btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  padding: 8px 18px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  transition: background .2s;
}
a.ida-inline:hover .ida-btn { background: var(--teal-dark); }
a.ida-inline.ida-dark {
  background: var(--navy);
  border-color: var(--navy-light);
  border-left-color: var(--teal);
}
a.ida-inline.ida-dark .ida-title { color: #fff; }
a.ida-inline.ida-dark .ida-desc { color: #8896a7; }
@media(max-width:640px) {
  a.ida-inline { flex-direction: column; text-align: center; gap: 12px; padding: 16px; }
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
  border: none;
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--gray-100); color: var(--navy); }

/* ─── Intake Footer CTA ───────────────────────────────────────────────────── */
.intake-footer-cta {
  background: var(--navy);
  padding: 48px 0;
}
.intake-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.intake-footer-inner .intake-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}
.intake-footer-inner h3 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.intake-footer-inner p {
  color: var(--slate-light);
  font-size: 14px;
  max-width: 560px;
}
@media(max-width:768px) {
  .intake-footer-inner { flex-direction: column; text-align: center; }
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--slate);
  padding: 4px 0;
}
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  font-size: 13px;
  color: var(--slate);
}
.footer-disclaimer {
  font-size: 12px;
  color: var(--slate-light);
  margin-top: 8px;
}
@media(max-width:640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ─── Breadcrumbs ──────────────────────────────────────────────────────────── */
.breadcrumbs {
  padding: 12px 0;
  font-size: 13px;
  color: var(--slate-light);
}
.breadcrumbs a { color: var(--slate); }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs span { margin: 0 6px; color: var(--gray-300); }

/* ─── Utilities ────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-teal { color: var(--teal); }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
