/* =========================================================
   Mile High Credentialing Solutions - Brand Styles
   Design system: deep navy + teal + warm accent
   ========================================================= */

:root {
  --navy: #461220;
  --navy-2: #8c2f39;
  --navy-soft: #f6e9e8;
  --teal: #8c2f39;
  --teal-dark: #461220;
  --teal-light: #fcb9b2;
  --accent: #b23a48;
  --accent-dark: #8c2f39;
  --gold-light: #fed0bb;
  --gray-bg: #f7f5f4;
  --gray-100: #f0eae8;
  --border: #e6dcda;
  --text: #2a1216;
  --text-light: #6b565b;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(70, 18, 32, 0.1);
  --shadow-hover: 0 12px 32px rgba(70, 18, 32, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4, .brand-font {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-weight: 700; }

p { color: var(--text-light); }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
@media (max-width: 767.98px) {
  .section { padding: 3rem 0; }
}

.bg-soft { background: var(--gray-bg); }
.bg-navy { background: var(--navy); }
.bg-teal-light { background: var(--teal-light); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.75rem;
}

.section-head { max-width: 720px; margin-bottom: 2.75rem; }
.section-head p { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; padding: 0.7rem 1.5rem; transition: all 0.2s ease; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.btn-accent {
  background: var(--accent);
  border: 2px solid var(--accent);
  color: var(--white);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); transform: translateY(-1px); }

.btn-navy-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-navy-outline:hover { background: var(--navy); color: var(--white); }

.btn-light-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-light-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }

.btn-teal {
  background: var(--teal);
  border: 2px solid var(--teal);
  color: var(--white);
}
.btn-teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }

.btn-sm-card { font-size: 0.9rem; padding: 0.55rem 1.1rem; }

/* ---------- Navbar ---------- */
.site-navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  transition: box-shadow 0.25s ease, padding 0.25s ease;
}
.site-navbar.is-scrolled {
  box-shadow: 0 6px 20px rgba(70, 18, 32, 0.14);
  padding: 0.55rem 0;
}
.site-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.15rem;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.site-navbar .nav-link {
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 0.9rem !important;
  border-radius: 8px;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus { color: var(--teal-dark); }
.site-navbar .nav-link.active {
  color: var(--navy);
  font-weight: 700;
}
.navbar-cta { margin-left: 0.5rem; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 0;
  overflow: hidden;
}
.hero h1 { color: var(--white); }
.hero p.lead { color: rgba(255,255,255,0.85); font-size: 1.15rem; }
.hero .eyebrow { color: var(--gold-light); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-photo {
  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(255,255,255,0.3);
  border-radius: var(--radius);
  min-height: 280px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}
.hero-photo .icon {
  width: 2.5rem;
  height: 2.5rem;
  color: rgba(255,255,255,0.5);
}
.hero-photo p {
  margin: 0;
  max-width: 260px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0 3.5rem;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 700px; }
.page-hero .eyebrow { color: var(--gold-light); }

/* ---------- Info strip ---------- */
.info-strip { background: var(--white); border-bottom: 1px solid var(--border); }
.info-strip .item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.5rem 0;
  min-width: 0;
}
.info-strip .icon-circle {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal-light); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.info-strip .item > div { min-width: 0; }
.info-strip strong { display: block; color: var(--navy); font-size: 0.95rem; }
.info-strip span { color: var(--text-light); font-size: 0.9rem; overflow-wrap: anywhere; }
.info-strip a { overflow-wrap: anywhere; }

/* ---------- Cards ---------- */
.card-soft {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-soft:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.icon-badge {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--teal-light);
  color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.category-card .icon-badge { background: var(--navy); color: var(--white); }

.service-card { display: flex; flex-direction: column; }
.service-card .who-for {
  font-size: 0.85rem;
  color: var(--teal-dark);
  font-weight: 600;
  margin-top: auto;
  padding-top: 0.75rem;
}
.service-card .btn { margin-top: 1rem; align-self: flex-start; }

/* ---------- Steps ---------- */
.step {
  text-align: center;
  padding: 1.5rem;
}
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text);
}
.checklist li:last-child { border-bottom: none; }
.checklist .icon { color: var(--teal); font-size: 1.2rem; margin-top: 0.15rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 3rem;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 0; }

/* ---------- Value / why-us boxes ---------- */
.value-box { padding: 1.5rem 0; }
.value-box .icon-badge { background: var(--white); border: 2px solid var(--teal); color: var(--teal-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 4rem 0 1.5rem; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--white); font-family: "Lora", Georgia, serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.9rem; }
.footer-brand .brand-mark { background: var(--teal); }
.footer-tagline { max-width: 320px; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Copy to clipboard ---------- */
.copy-row { display: inline-flex; align-items: center; gap: 0.5rem; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-light);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.copy-btn .icon { width: 0.85rem; height: 0.85rem; }
.copy-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.copy-btn.copied { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-light); }
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 1.75rem;
  transform: translate(-50%, 12px);
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1040;
}
.copy-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Service description preview ---------- */
.service-description {
  font-size: 0.85rem;
  color: var(--teal-dark);
  background: var(--teal-light);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin: 0.6rem 0 0;
  display: none;
}
.service-description.show { display: block; }

/* ---------- Contact page ---------- */
.info-card-contact {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.info-card-contact .row-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.info-card-contact .row-item:last-child { margin-bottom: 0; }
.info-card-contact .icon-badge { margin-bottom: 0; flex-shrink: 0; width: 46px; height: 46px; font-size: 1.15rem; }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.25rem;
}
.form-label { font-weight: 600; color: var(--navy); font-size: 0.92rem; }
.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.65rem 0.9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(140, 47, 57, 0.18);
}
.notice-banner {
  background: var(--teal-light);
  border: 1px solid var(--teal);
  color: var(--teal-dark);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}
.form-success {
  display: none;
  background: var(--teal-light);
  border: 1px solid var(--teal);
  color: var(--teal-dark);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  font-weight: 600;
}
.form-success.show { display: block; }

/* ---------- About page ---------- */
.team-photo-placeholder {
  background: var(--gray-100);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
  padding: 1.5rem;
}

/* ---------- Icons (custom inline SVG sprite) ---------- */
.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1030;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--teal-dark); }
.back-to-top .icon { width: 1.3rem; height: 1.3rem; }

/* ---------- Services filter + search ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: center; }
.filter-btn {
  border: 2px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.18s ease;
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.search-box { position: relative; max-width: 320px; width: 100%; }
.search-box input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.search-box input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(140, 47, 57, 0.18);
}
.search-box .icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}
.service-card-col[hidden] { display: none !important; }
.category-block[hidden] { display: none !important; }
.no-results { display: none; text-align: center; color: var(--text-light); padding: 2.5rem 0; }
.no-results.show { display: block; }

/* ---------- Hero fade-in ---------- */
.fade-in-up { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-up.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-in-up { opacity: 1; transform: none; transition: none; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Misc ---------- */
.map-placeholder {
  background: var(--gray-100);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

.divider-line { height: 1px; background: var(--border); border: none; }

/* ---------- Print (readiness checklist) ---------- */
.print-only { display: none; }
@media print {
  body * { visibility: hidden; }
  #printableChecklist, #printableChecklist * { visibility: visible; }
  #printableChecklist {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: none;
    border: none;
  }
  #printableChecklist .no-print { display: none !important; }
  .print-only {
    display: flex !important;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--navy);
  }
  .print-only strong { font-family: "Lora", Georgia, serif; font-size: 1.1rem; color: var(--navy); }
}
