/* ============================================
   THE DELIBERATE COMPANY - THEME
   The getdeliberate.ai design language, layered over styles.css.
   Palette and type match getdeliberate.ai's marketing site:
   Blueprint Blue, Copper, Assembly Black, Steel Gray,
   Draft Paper, Line White; Inter and JetBrains Mono.
   Every page keeps its markup and copy; this file only restyles.
   ============================================ */

:root {
  /* Official palette (getdeliberate.ai) */
  --blueprint: #0B3D6B;
  --blueprint-50: #EBF1F7;
  --blueprint-100: #D3E0EC;
  --blueprint-500: #1A5A93;
  --blueprint-800: #082E51;
  --blueprint-900: #051F37;
  --copper: #B06A2B;
  --copper-100: #F2DCC2;
  --copper-200: #E5B889;
  --copper-700: #8B5320;
  --draft-paper: #F0EDE6;
  --line-white: #FAF8F5;
  --ink-100: #E9E7E2;
  --ink-200: #D4D1CA;
  --ink-500: #6B7280;
  --ink-600: #4E5560;
  --ink-700: #353A43;
  --ink-900: #1C1C1E;

  /* Legacy tokens, remapped so every existing rule and inline style follows */
  --navy: var(--blueprint);
  --navy-deep: var(--blueprint-900);
  --gold: var(--copper);
  --gold-muted: var(--copper);
  --gray: var(--ink-200);
  --gray-light: var(--ink-100);
  --white: var(--line-white);
  --white-pure: #FFFFFF;
  --text-primary: var(--ink-900);
  --text-secondary: var(--ink-600);
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

body {
  line-height: 1.6;
  background-color: var(--line-white);
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -0.01em; }
h4 { font-size: 1rem; letter-spacing: -0.005em; }

/* Headings read near-black on light sections, as on getdeliberate.ai */
h1[style*="var(--navy)"],
h2[style*="var(--navy)"],
h3[style*="var(--navy)"] {
  color: var(--ink-900) !important;
}

em { font-style: italic; }

.lead {
  font-size: 1.15rem;
  line-height: 1.65;
}

.small-caps {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--copper);
}

/* ---------- Navigation ---------- */
.nav {
  background: rgba(250, 248, 245, 0.92);
  border-bottom: 1px solid var(--ink-100);
}

.nav__logo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.nav__logo-mark,
.footer__logo-mark {
  border-radius: 8px;
  background: var(--blueprint);
}

.nav__logo-mark svg,
.footer__logo-mark svg {
  stroke: var(--copper-100);
}

.nav__link {
  font-weight: 500;
  color: var(--ink-700);
}

.nav__link:hover,
.nav__link--active {
  color: var(--ink-900);
}

.nav__dropdown-menu {
  border-color: var(--ink-200);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(28, 28, 30, 0.10);
}

.nav__dropdown-link:hover {
  background: var(--blueprint-50);
  color: var(--blueprint);
}

.nav__cta {
  background: var(--blueprint);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
}

.nav__cta:hover {
  background: var(--blueprint-800);
}

/* ---------- Buttons ---------- */
.btn {
  font-weight: 600;
  border-radius: 8px;
  padding: 0.85rem 1.5rem;
}

.btn--primary {
  background: var(--blueprint);
  color: #fff;
}

.btn--primary:hover {
  background: var(--blueprint-800);
}

.btn--secondary {
  color: var(--ink-900);
  border: 1px solid var(--ink-200);
  background: #fff;
}

.btn--secondary:hover {
  border-color: var(--blueprint);
  color: var(--blueprint);
}

/* "Gold" buttons sit on dark panels: white, as on getdeliberate.ai */
.btn--gold {
  background: #fff;
  color: var(--ink-900);
}

.btn--gold:hover {
  background: var(--draft-paper);
}

.btn--white {
  background: transparent;
  color: var(--copper-200);
  border: none;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.btn--white:hover {
  color: #fff;
}

/* ---------- Sections ---------- */
.section--gray {
  background: var(--draft-paper);
}

.section--navy {
  background: var(--blueprint-900);
}

.section--navy .small-caps {
  color: var(--copper-200);
}

/* ---------- Home hero: full-bleed photo, blue overlay, centered ---------- */
.hero--with-image {
  min-height: 0;
  padding: calc(72px + var(--space-xl)) 0 var(--space-xl);
  color: #fff;
  text-align: center;
}

.hero--with-image .hero__bg {
  width: 100%;
  opacity: 1;
  -webkit-mask-image: none;
  mask-image: none;
}

.hero--with-image .hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero--with-image .hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 31, 55, 0.82) 0%, rgba(11, 61, 107, 0.78) 100%);
}

.hero--with-image .hero__content {
  max-width: 880px;
  margin: 0 auto;
}

.hero--with-image .hero__eyebrow {
  color: var(--copper-200);
}

.hero--with-image .hero__title {
  color: #fff;
}

.hero--with-image .hero__title em {
  color: var(--copper-200);
}

.hero--with-image .hero__subtitle {
  color: rgba(255, 255, 255, 0.88);
  margin-left: auto;
  margin-right: auto;
}

.hero--with-image .hero__ctas {
  justify-content: center;
}

.hero--with-image .btn--primary {
  background: #fff;
  color: var(--ink-900);
}

.hero--with-image .btn--primary:hover {
  background: var(--draft-paper);
}

.hero--with-image .btn--secondary {
  background: transparent;
  border-color: transparent;
  color: var(--copper-200);
}

.hero--with-image .btn--secondary:hover {
  color: #fff;
}

/* ---------- Inner page header ---------- */
.page-header {
  background: linear-gradient(180deg, var(--blueprint-900) 0%, var(--blueprint-800) 100%);
}

.page-header .small-caps {
  color: var(--copper-200);
}

.page-header h1 {
  color: #fff;
}

.page-header .lead {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Cards ---------- */
.sidebar-card,
.service-card {
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(28, 28, 30, 0.04);
}

.sidebar-card h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.5rem;
}

.sidebar-card--highlight {
  background: var(--blueprint);
  border-color: var(--blueprint);
}

.sidebar-card--highlight h4 {
  color: var(--copper-200);
}

.service-card:hover {
  border-color: var(--blueprint-100);
  box-shadow: 0 8px 24px rgba(11, 61, 107, 0.08);
}

.service-card h3 {
  color: var(--ink-900);
}

.service-card__icon {
  border-radius: 8px;
  background: var(--blueprint);
}

.service-card__icon svg {
  stroke: var(--copper-100);
}

/* ---------- Service page lists ---------- */
.service-detail__main ul li strong {
  color: var(--ink-900);
}

/* ---------- CTA band ---------- */
.cta-section h2 {
  color: #fff;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--blueprint-900);
}

.footer__logo {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Numbers and timeline labels in mono ---------- */
.stat,
.stat__value,
.timeline__year {
  font-family: var(--font-mono);
}

/* Headings on light sections read near-black (getdeliberate.ai); dark bands keep white */
.section:not(.section--navy) h2,
.section:not(.section--navy) h3 {
  color: var(--ink-900);
}

/* The base stylesheet hides the hero photo on small screens; the redesigned
   hero needs it (white type sits on the blue overlay) */
@media (max-width: 900px) {
  .hero--with-image .hero__bg {
    display: block;
  }

  .hero--with-image {
    padding: calc(64px + var(--space-lg)) 0 var(--space-lg);
  }
}

/* Links inside page copy */
.service-detail__main a {
  color: var(--blueprint);
  text-decoration: underline;
  text-decoration-color: var(--blueprint-100);
  text-underline-offset: 3px;
}

.service-detail__main a:hover {
  text-decoration-color: var(--blueprint);
}
