*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --pine-deep: #1A3328;
  --pine-forest: #24453A;
  --pine-mid: #355E4C;
  --pine-light: #4E7A63;
  --bark: #6B4E3D;
  --sand: #C4B5A3;
  --cream: #F0EBE3;
  --warmwhite: #F8F5F0;
  --parchment: #FDFBF7;
  --border: #E0DAD0;
  --border-light: #EDE8E0;
  --needle: #5B8C5A;
  --ridge: #C17F4E;
  --ridge-light: #D4A373;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-tertiary: #7A7A7A;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  background: var(--parchment);
  color: var(--text-primary);
}

h1,
h2 {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 1rem;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  margin: 0 0 0.5rem;
  font-family: "DM Sans", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

p,
ul {
  margin: 0 0 1rem;
}

p:last-child,
ul:last-child {
  margin-bottom: 0;
}

a {
  color: var(--pine-deep);
}

.container {
  max-width: 64rem;
  margin-inline: auto;
}

section {
  padding: 4rem 1rem;
  scroll-margin-top: 5rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 4rem;
  min-height: 4rem;
  background: var(--pine-deep);
  box-shadow: 0 1px 2px rgba(26, 51, 40, 0.18);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-height: 4rem;
  max-width: 64rem;
  margin-inline: auto;
  padding: 0.25rem 1rem;
}

.wordmark {
  color: var(--warmwhite);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.75rem;
  margin-left: auto;
}

header nav a {
  color: var(--cream);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

header a.phone-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--ridge-light);
  color: var(--pine-deep);
  font-weight: 700;
  white-space: nowrap;
}

header a.phone-button:active {
  background: var(--ridge);
  color: var(--pine-deep);
}

.eyebrow,
.alert-label {
  margin: 0 0 0.75rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.eyebrow {
  color: var(--pine-mid);
}

.subhead {
  font-size: 1.25rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-primary {
  border: 1px solid var(--pine-deep);
  background: var(--pine-deep);
  color: white;
}

.btn-primary:active {
  border-color: var(--pine-forest);
  background: var(--pine-forest);
}

.btn-secondary {
  border: 1px solid var(--pine-deep);
  background: transparent;
  color: var(--pine-deep);
}

.btn-secondary:active {
  background: var(--cream);
}

.cards,
.steps {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.card,
.step {
  background: var(--warmwhite);
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.callout {
  font-weight: 600;
}

.sample-alert {
  max-width: 22rem;
  margin: 0 0 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-top: 4px solid var(--pine-deep);
  border-radius: 0.5rem;
  background: var(--cream);
  box-shadow: 0 1px 2px rgba(26, 51, 40, 0.12);
}

.alert-label {
  color: var(--pine-deep);
}

.sample-alert p {
  margin: 0;
}

.small {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.hear-it {
  background: var(--pine-deep);
  color: var(--cream);
}

.hear-it h2,
.hear-it p {
  color: var(--cream);
}

.hear-it .btn-primary {
  border-color: var(--ridge-light);
  background: var(--ridge-light);
  color: var(--pine-deep);
}

.hear-it .btn-primary:active {
  border-color: var(--ridge);
  background: var(--ridge);
  color: var(--pine-deep);
}

details {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

summary {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
  cursor: pointer;
}

details p {
  margin: 0.5rem 0 0.25rem;
  color: var(--text-secondary);
}

form {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
  margin-top: 1.5rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--warmwhite);
  color: var(--text-primary);
  font: inherit;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

footer {
  background: var(--pine-deep);
  color: var(--cream);
  padding: 4rem 1rem calc(4rem + env(safe-area-inset-bottom));
}

footer a {
  color: var(--cream);
}

footer p {
  margin: 0 0 0.5rem;
}

:focus-visible {
  outline: 2px solid var(--pine-light);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  header {
    height: auto;
  }
}

@media (min-width: 768px) {
  section {
    padding: 5rem 1rem;
  }

  h1 {
    font-size: 3rem;
  }

  header {
    height: 4rem;
  }

  .header-inner {
    flex-wrap: nowrap;
    height: 4rem;
    padding-top: 0;
    padding-bottom: 0;
  }

  nav {
    flex-wrap: nowrap;
  }

  .cards,
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
