/* =========================================================
   Calder Investigations — custom styles
   Built on Bootstrap 5.3 (local, vendored — see css/bootstrap.min.css)
   ========================================================= */

/* ---- Design tokens ------------------------------------- */
:root{
  --ink:        #101c26;   /* primary deep navy-charcoal */
  --ink-2:      #17293530; 
  --ink-panel:  #1a2b38;   /* secondary dark panel */
  --paper:      #eeece3;   /* stone / parchment background */
  --paper-alt:  #e5e2d5;   /* deeper parchment for alternating sections */
  --line:       #c9c3ae;   /* hairline rule on paper */
  --line-soft:  #d8d4c4;
  --line-dark:  rgba(238,236,228,0.16); /* hairline rule on dark */
  --brass:      #a9812e;
  --brass-light:#c9a24a;
  --text:       #1b1b18;
  --text-soft:  #55534a;
  --cream:      #f7f6f1;

  --font-serif: Georgia, 'Iowan Old Style', 'Times New Roman', Times, serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* re-point a few Bootstrap variables so components inherit our palette */
  --bs-body-font-family: var(--font-sans);
  --bs-body-color: var(--text);
  --bs-body-bg: var(--paper);
  --bs-link-color: var(--brass);
  --bs-link-hover-color: #8a691f;
  --bs-primary: #a9812e;
  --bs-primary-rgb: 169,129,46;
}

*{ box-sizing: border-box; }

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

body{
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4{
  font-family: var(--font-serif);
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0;
}

p{ max-width: 62ch; }

a{ color: var(--brass); text-decoration: none; }
a:hover{ color: #8a691f; }

.container{ max-width: 1140px; }

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
.nav-link:focus-visible{
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  z-index: 2000;
}
.skip-link:focus{ left: 12px; top: 12px; }

/* ---- Navigation ----------------------------------------- */
.site-nav{
  background: transparent;
  padding: 22px 0;
  transition: background-color .25s ease, padding .25s ease, box-shadow .25s ease;
}
.site-nav.scrolled{
  background: var(--ink);
  padding: 12px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

.navbar-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
}
.brand-mark{
  display: inline-flex;
  color: var(--brass-light);
}
.brand-text{
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: var(--cream);
}
.brand-text em{ font-style: normal; color: var(--brass-light); }

.navbar-nav .nav-link{
  color: rgba(247,246,241,0.82);
  padding: 8px 16px;
  font-size: 0.98rem;
}
.navbar-nav .nav-link:hover{ color: var(--cream); }
.nav-cta{
  border: 1px solid rgba(247,246,241,0.4);
  border-radius: 2px;
  margin-left: 6px;
}
.nav-cta:hover{ border-color: var(--brass-light); color: var(--brass-light) !important; }

.navbar-toggler{
  border-color: rgba(247,246,241,0.4);
}
.navbar-toggler-icon{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(247,246,241,0.85)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.navbar-collapse{
  background: var(--ink);
}
@media (max-width: 991.98px){
  .navbar-collapse{ padding: 18px 4px; margin-top: 12px; border-radius: 3px; }
}

/* ---- Hero ------------------------------------------------ */
.hero{
  background: var(--ink);
  padding: 168px 0 96px;
  position: relative;
}
.hero-lead{
  color: var(--brass-light);
  font-size: 1.02rem;
  margin-bottom: 14px;
}
.hero-title{
  color: var(--cream);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.14;
  margin-bottom: 22px;
  max-width: 14ch;
}
.hero-sub{
  color: rgba(247,246,241,0.78);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-actions{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.btn-brass{
  background: var(--brass);
  border: 1px solid var(--brass);
  color: var(--ink);
  padding: 13px 26px;
  font-size: 0.98rem;
  border-radius: 2px;
  font-weight: 600;
  transition: background-color .18s ease, border-color .18s ease;
}
.btn-brass:hover{
  background: var(--brass-light);
  border-color: var(--brass-light);
  color: var(--ink);
}

.hero-link{
  color: rgba(247,246,241,0.82);
  border-bottom: 1px solid rgba(247,246,241,0.35);
  padding-bottom: 2px;
  font-size: 0.98rem;
}
.hero-link:hover{ color: var(--brass-light); border-color: var(--brass-light); }

.portrait-wrap{
  display: flex;
  justify-content: center;
}
.portrait-art{
  width: 100%;
  max-width: 420px;
  height: auto;
}
.stamp-text-main{
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  fill: var(--brass-light);
  letter-spacing: 2px;
}
.stamp-text-sub{
  font-family: var(--font-sans);
  font-size: 11px;
  fill: var(--brass-light);
  letter-spacing: 2px;
  opacity: 0.85;
}
.stamp{
  transform-origin: 330px 382px;
  animation: stampPress .6s cubic-bezier(.2,.9,.25,1.05) .35s both;
}
@media (prefers-reduced-motion: reduce){
  .stamp{ animation: none; }
}
@keyframes stampPress{
  0%   { opacity: 0; transform: translate(330px,382px) rotate(-9deg) scale(1.9); }
  70%  { opacity: 1; transform: translate(330px,382px) rotate(-9deg) scale(0.94); }
  100% { opacity: 1; transform: translate(330px,382px) rotate(-9deg) scale(1); }
}

/* ---- Trust strip ------------------------------------------ */
.trust-strip{
  background: var(--ink-panel);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 18px 0;
}
.trust-list{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
}
.trust-list li{
  color: rgba(247,246,241,0.75);
  font-size: 0.9rem;
  padding: 4px 22px;
  border-left: 1px solid var(--line-dark);
}
.trust-list li:first-child{ border-left: none; }

/* ---- Generic sections -------------------------------------- */
.section{ padding: 96px 0; }
.section-alt{ background: var(--paper-alt); padding: 96px 0; }

.section-title{
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  margin-bottom: 22px;
}
.lede{
  font-size: 1.08rem;
  color: var(--text-soft);
  margin-bottom: 28px;
}

/* ---- About -------------------------------------------------- */
.credential-list{
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.credential-row{
  display: flex;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.credential-row dt{
  flex: 0 0 150px;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.credential-row dd{
  margin: 0;
  font-size: 0.98rem;
}

.stats-block{
  border-top: 1px solid var(--line);
}
.stat{
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.stat-number{
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--brass);
  line-height: 1;
  flex: 0 0 auto;
}
.stat-label{
  color: var(--text-soft);
  font-size: 0.98rem;
  max-width: 26ch;
}

/* ---- Services ------------------------------------------------ */
.service-list{
  border-top: 1px solid var(--line);
}
.service-row{
  display: flex;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.service-row h3{
  font-size: 1.18rem;
  margin-bottom: 6px;
}
.service-row p{
  color: var(--text-soft);
  font-size: 0.97rem;
  margin-bottom: 0;
}
.service-icon{
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg{
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 768px){
  .service-list{ display: flex; flex-wrap: wrap; }
  .service-row{ width: 50%; }
  .service-row:nth-child(odd){ padding-right: 32px; }
  .service-row:nth-child(even){ padding-left: 32px; border-left: 1px solid var(--line); }
}

/* ---- Process --------------------------------------------------- */
.process-step{
  border-top: 2px solid var(--brass);
  padding-top: 16px;
  height: 100%;
}
.process-num{
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--brass);
  display: block;
  margin-bottom: 8px;
}
.process-step h3{
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.process-step p{
  font-size: 0.94rem;
  color: var(--text-soft);
}

/* ---- Testimonial ------------------------------------------------ */
.testimonial-section{ padding: 80px 0; }
.testimonial{
  max-width: 62ch;
  margin: 0 auto;
  text-align: center;
  border: none;
}
.testimonial p{
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.55;
  color: var(--text);
  max-width: none;
  margin-bottom: 16px;
}
.testimonial cite{
  font-style: normal;
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* ---- Contact -------------------------------------------------- */
.contact-section{ padding-top: 40px; }
.contact-card{
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding: 56px;
  border-radius: 2px;
}
.contact-title{ color: var(--cream); }
.contact-section p{ color: rgba(247,246,241,0.78); }

.corner{
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--brass);
}
.corner-tl{ top: 14px; left: 14px; border-right: none; border-bottom: none; }
.corner-br{ bottom: 14px; right: 14px; border-left: none; border-top: none; }

.contact-details{ border-top: 1px solid var(--line-dark); padding-top: 8px; }
.contact-label{
  display: block;
  color: var(--brass-light);
  font-size: 0.86rem;
  margin-bottom: 6px;
}
.contact-value{
  display: block;
  font-size: 1.02rem;
  line-height: 1.5;
}
.contact-value a{ color: var(--cream); border-bottom: 1px solid rgba(247,246,241,0.35); }
.contact-value a:hover{ color: var(--brass-light); border-color: var(--brass-light); }

@media (max-width: 575.98px){
  .contact-card{ padding: 32px 22px; }
}

/* ---- Footer ------------------------------------------------------ */
.site-footer{
  background: var(--ink);
  padding: 34px 0;
  border-top: 1px solid var(--line-dark);
}
.footer-inner{ text-align: center; }
.footer-brand{
  font-family: var(--font-serif);
  color: var(--cream);
  margin-bottom: 6px;
}
.footer-meta, .footer-copy{
  color: rgba(247,246,241,0.6);
  font-size: 0.86rem;
  margin-bottom: 4px;
}

/* ---- Responsive tweaks -------------------------------------------- */
@media (max-width: 991.98px){
  .hero{ padding: 140px 0 72px; }
  .service-row:nth-child(even){ border-left: none; }
}
@media (max-width: 575.98px){
  .section, .section-alt{ padding: 64px 0; }
  .credential-row{ flex-direction: column; gap: 4px; }
  .credential-row dt{ flex-basis: auto; }
}
