/* Becker Credentialing Services — site styles */

:root {
  --teal-900: #03363d;
  --teal-700: #13474f;
  --teal-500: #2a9d9f;
  --teal-100: #e6f2f2;
  --ink: #1d2327;
  --muted: #55636a;
  --line: #dde5e6;
  --bg: #ffffff;
  --bg-soft: #f6f9f9;
  --radius: 10px;
  --max: 1120px;
  --font-head: "Cabin", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

*, *::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: var(--bg);
}

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

a { color: var(--teal-700); }
a:hover { color: var(--teal-500); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--teal-900);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--teal-700); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 84px;
}
.logo img { height: 68px; width: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.nav a, .nav button {
  display: block; padding: 8px 12px;
  font: inherit; font-size: 1rem; color: var(--ink);
  text-decoration: none; background: none; border: 0; cursor: pointer;
  border-radius: 6px;
}
.nav a:hover, .nav button:hover { color: var(--teal-700); background: var(--teal-100); }
.nav a[aria-current="page"] { color: var(--teal-700); font-weight: 600; }

.has-sub { position: relative; }
.has-sub > button::after { content: " \25BE"; font-size: .8em; }
.nav .sub {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 190px; width: max-content; padding: 8px !important;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  flex-direction: column; align-items: stretch !important;
}
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub, .nav .has-sub.open .sub { display: flex; }

.nav-cta { background: var(--teal-700) !important; color: #fff !important; margin-left: 6px; }
.nav-cta:hover { background: var(--teal-900) !important; }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 12px; font: inherit; cursor: pointer;
}

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; }
  .nav .sub { display: flex; position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 0 16px !important; }
  .has-sub > button { display: none; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 28px;
  background: var(--teal-700); color: #fff; text-decoration: none;
  border: 2px solid var(--teal-700); border-radius: 999px;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--teal-900); border-color: var(--teal-900); color: #fff; }
.btn-light { background: #fff; color: var(--teal-900); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; border-color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  background: linear-gradient(rgba(3,54,61,.55), rgba(3,54,61,.55)), url("../images/hero-books.jpg") center/cover no-repeat;
  padding: 120px 0 130px;
}
.hero h1 { color: #fff; max-width: 820px; margin: 0 auto .4em; }
.hero .lead { font-size: 1.25rem; margin-bottom: 1.6em; }
.hero .phone { display: inline-block; color: #fff; font-size: 1.15rem; margin-bottom: 18px; text-decoration: none; letter-spacing: .03em; }

.page-hero {
  background: linear-gradient(rgba(3,54,61,.72), rgba(3,54,61,.72)), url("../images/hero-books.jpg") center/cover no-repeat;
  color: #fff; text-align: center; padding: 70px 0;
}
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { margin: .5em auto 0; max-width: 680px; font-size: 1.15rem; opacity: .95; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--teal-900); color: #e8f1f2; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); }
.narrow { max-width: 780px; margin: 0 auto; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: 0 4px 18px rgba(3,54,61,.05);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 24px; left: 30px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal-700); color: #fff; font-weight: 700;
  display: grid; place-items: center;
}

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2313474f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

.cta-band { text-align: center; }
.cta-band p { max-width: 620px; margin: 0 auto 1.4em; }

/* ---------- Content blocks ---------- */
.intro { font-size: 1.15rem; }
.expert {
  display: flex; gap: 18px; align-items: center;
  margin-top: 28px; padding: 20px 22px;
  background: var(--teal-100); border-radius: var(--radius);
}
.expert img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.expert p { margin: 0; }
.expert .expert-name { font-family: var(--font-head); font-weight: 600; color: var(--teal-900); margin-bottom: 4px; }
.deliverable { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .95rem; }
.scope-note { margin-top: 28px; padding: 14px 18px; border-left: 4px solid var(--teal-500); background: var(--bg-soft); }
a.card-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.card-link:hover { border-color: var(--teal-500); transform: translateY(-2px); color: inherit; }
a.card-link h3 { color: var(--teal-700); }

.jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.jump-links a {
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-size: .95rem;
}
.jump-links a:hover { border-color: var(--teal-500); background: var(--teal-100); }
.provider-sections article { scroll-margin-top: 100px; }
.provider-sections article + article { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--line); }

/* ---------- Guides ---------- */
.article h2 { margin-top: 1.8em; scroll-margin-top: 100px; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .4em; }
.article .checklist { padding-left: 0; }
.byline { color: var(--muted); font-size: .95rem; }
.toc { margin: 28px 0 8px; padding: 20px 24px; background: var(--bg-soft); border-radius: var(--radius); }
.toc p { margin-bottom: .5em; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.numbered li { margin-bottom: .8em; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
.data-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--teal-100); color: var(--teal-900); }
.data-table td:last-child { white-space: nowrap; }
.article .faq { margin-top: 40px; }

/* ---------- Team ---------- */
.team-member { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.team-member + .team-member { margin-top: 70px; padding-top: 70px; border-top: 1px solid var(--line); }
.team-member img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 260px; }
.team-member .role { color: var(--teal-500); font-weight: 600; margin-top: -.4em; }
@media (max-width: 760px) {
  .team-member { grid-template-columns: 1fr; text-align: center; }
  .team-member img { margin: 0 auto; width: 200px; }
  .team-member .bio { text-align: left; }
}

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--teal-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--teal-500); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 22px 18px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form label { display: block; font-weight: 600; margin-bottom: 6px; }
.form .field { margin-bottom: 18px; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; font: inherit;
  border: 1px solid #c9d5d7; border-radius: 8px; background: #fff;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--teal-500); outline-offset: 1px; border-color: var(--teal-500); }
.form textarea { min-height: 140px; resize: vertical; }
.form .hidden { display: none; }
.form .optional { font-weight: 400; color: var(--muted); font-size: .92em; }
.form input[type="file"] { padding: 10px; background: var(--bg-soft); cursor: pointer; }
.form input[type="file"] + input[type="file"] { margin-top: 8px; }
.form input[hidden] { display: none; }
.field-hint { margin: -2px 0 10px; font-size: .92rem; color: var(--muted); }
.field-error { color: #b42318; margin: 8px 0 0; font-size: .95rem; }

.info-list { list-style: none; padding: 0; margin: 0 0 24px; }
.info-list li { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: #161616; color: #bfc6c8; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: .8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.socials { display: flex; gap: 12px; }
.socials a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: #2a2a2a;
}
.socials a:hover { background: var(--teal-700); text-decoration: none; }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid #2c2c2c; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
