﻿*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--cr-header-height) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cr-graphite);
  background: var(--cr-white);
  -webkit-font-smoothing: antialiased;
}

body.has-mobile-bar {
  padding-bottom: var(--cr-mobile-bar-height);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cr-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--cr-cyan);
}

h1,
h2,
h3,
h4,
.brand {
  font-family: var(--font-brand);
  font-weight: 600;
  line-height: 1.25;
  color: var(--cr-graphite);
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--cr-cyan);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--cr-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--cr-bg);
}

.section__header {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section__header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__subtitle {
  color: var(--cr-blue);
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.section__lead {
  font-size: 1.125rem;
  color: var(--cr-graphite);
  opacity: 0.85;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .section {
    padding: 5rem 0;
  }
}

.placeholder-image {
  background: linear-gradient(135deg, var(--cr-bg) 0%, #e8eef4 100%);
  border: 2px dashed var(--cr-border);
  border-radius: var(--cr-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--cr-graphite);
  opacity: 0.7;
  font-size: 0.875rem;
  min-height: 200px;
}

.placeholder-image span {
  max-width: 240px;
}

.breadcrumb {
  padding: 1rem 0;
  font-size: 0.875rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--cr-border);
}

.breadcrumb a {
  color: var(--cr-blue);
}

.breadcrumb [aria-current='page'] {
  color: var(--cr-graphite);
  opacity: 0.7;
}

.page-hero {
  background: var(--cr-bg);
  padding: 3rem 0;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
}

.page-hero p {
  margin: 0;
  font-size: 1.125rem;
  opacity: 0.85;
  max-width: 640px;
}
