:root {
  /* Palette: slate #5C7E8F, gray #A2A2A2, mist #D4DDE2, white #FFFFFF */
  --primary: #5c7e8f;
  --primary-dark: #4a6875;
  --gray: #a2a2a2;
  --mist: #d4dde2;
  --paper: #ffffff;
  --ink: #2e363b;
  --accent: var(--primary);
  --accent-dark: var(--primary-dark);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

.display {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.02em;
  line-height: 0.95;
}

/* NAV */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--primary);
  color: #fff;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
}

.nav-logo span { color: var(--mist); }

.nav-links a {
  color: #fff;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
}

.nav-links a.cta {
  background: #fff;
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.nav-links a.cta:hover { background: var(--mist); }

/* HERO */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--primary);
  color: #fff;
  overflow: hidden;
}

.hero-bg,
.hero-bg .bg-layer,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.bg-layer {
  background-size: cover;
  background-position: center right;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.bg-layer.active { opacity: 1; }

/* Fades the photo into the slate background behind the headline and grid */
.hero-overlay {
  background:
    linear-gradient(to top, var(--primary) 5%, rgba(92, 126, 143, 0) 45%),
    linear-gradient(105deg, var(--primary) 32%, rgba(92, 126, 143, 0.55) 62%, rgba(92, 126, 143, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
}

.hero h1 em {
  font-style: normal;
  color: var(--mist);
}

/* CASE-TYPE BUTTON GRID */
.case-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.case-btn {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 6.5rem;
  padding: 1rem;
  background: #fff;
  color: var(--primary);
  text-decoration: none;
  border-radius: 6px;
}

.case-btn:hover { background: var(--mist); }

@media (max-width: 900px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 4px;
}

.btn-primary:hover { background: var(--accent-dark); }

/* CASE INTAKE PAGES */
.case-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 45vh;
  background: var(--primary) var(--case-photo, none) center right / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.case-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--primary) 5%, rgba(92, 126, 143, 0) 60%),
    linear-gradient(105deg, var(--primary) 25%, rgba(92, 126, 143, 0.6) 60%, rgba(92, 126, 143, 0.2) 100%);
}

.case-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 5rem 2rem 2.5rem;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 0.75rem;
}

.case-hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  max-width: 18ch;
}

.case-intro {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 300;
  max-width: 38rem;
}

.case-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.case-form h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.form-help {
  max-width: 38rem;
  margin-bottom: 1rem;
}

.prep-list {
  margin: 0 0 2rem 1.25rem;
  max-width: 38rem;
}

.prep-list li { margin-bottom: 0.375rem; }

/* INTAKE FORM */
.intake-form { max-width: 44rem; }

.hidden-field { display: none; }

.form-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f1f5f7;
  border: 1px solid var(--mist);
  border-radius: 8px;
}

.form-section h3 {
  font-size: 1.375rem;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.form-grid.uploads { grid-template-columns: 1fr 1fr 1fr; }

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.field .req { color: var(--primary); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--gray);
  border-radius: 4px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}

.field input[type="file"] {
  padding: 0.45rem 0.5rem;
  font-size: 0.85rem;
  background: #fff;
}

.hint {
  font-size: 0.875rem;
  color: #5c6b74;
  margin-bottom: 1rem;
}

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem;
}

.consent input { margin-top: 0.25rem; }

button.btn-primary {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
}

@media (max-width: 700px) {
  .form-grid, .form-grid.uploads { grid-template-columns: 1fr; }
}

/* FOOTER */
.site-footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: #5c6b74;
  background: var(--mist);
}
