/* ---------------------------------------------------------------------------
 * base.css — reset, type scale, containers, buttons, utilities.
 * Type scale is calibrated to the Figma design width of 1920px.
 * ------------------------------------------------------------------------- */
:root {
  --base-size: 18px; /* 18px — the Figma body size */
  --line-height: 1.4444; /* 26/18 */
  --section-pad: clamp(56px, 4.6vw, 87px); /* ~87px */
  --section-pad-mobile: 44px;
  --gap: clamp(20px, 3vw, 32px);
  --gap-sm: 16px;
  --gutter: clamp(20px, 3vw, 50px);
  --gutter-mobile: 24px;
  --container: 1750px; /* 1750px — the widest Figma content row */
  --container-md: 1454px; /* 1454px — About Standards */
  --container-sm: 1324px; /* 1324px — About Intro */
  --container-xs: 768px;
  --radius: 3px;
  --radius-md: 5px;
  --radius-lg: 11px;
  --radius-xl: 24px;
  --button-padding-y: 17px;
  --button-padding-x: 35px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: var(--base-size, 18px);
  line-height: var(--line-height, 1.44);
  color: var(--ink, #212529);
  background: var(--bg, #ffffff);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand, #008AF7);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--brand-dark, #0070ca);
}

button,
input,
textarea,
select {
  font: inherit;
}

/* Typography — every heading uses the display face at 700, as in Figma. */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--display, system-ui, sans-serif);
  font-weight: 700;
  color: var(--ink, #212529);
}

h1 {
  font-size: clamp(40px, 5.21vw, 100px); /* 100px */
  line-height: 1.11;
}

h2 {
  font-size: clamp(32px, 3.33vw, 64px); /* 64px */
  line-height: 1.234;
}

h3 {
  font-size: clamp(24px, 1.875vw, 36px); /* 36px */
  line-height: 1.222;
}

h4 {
  font-size: clamp(20px, 1.35vw, 26px); /* 26px */
  line-height: 1.25;
}

/* The design pairs a bold DM Sans 900 label with buttons and nav items. */
.t-label {
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.333;
}

p,
ul,
ol,
blockquote {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + (var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-md {
  width: 100%;
  max-width: calc(var(--container-md) + (var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-sm {
  width: 100%;
  max-width: calc(var(--container-sm) + (var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Content stops at 1920px while section backgrounds bleed to the viewport edge
   (client round 9) — the cap lives on the content wrappers, never on body. */
.container-fluid,
.container-full {
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-pad {
  padding-block: var(--section-pad, 80px);
}

/* ---------------------------------------------------------------------------
 * Buttons. Figma uses one label style (DM Sans 900 18px) across four skins:
 * solid blue, blue outline, white outline, and blue outline with a white label.
 * Outlined buttons carry a leading blue arrow; solid ones do not.
 * ------------------------------------------------------------------------- */
.btn-layout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--button-padding-y, 17px) var(--button-padding-x, 35px);
  border: 2px solid transparent;
  border-radius: var(--radius, 3px);
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.333;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, gap 0.2s ease;
}

.btn-layout .cnm-icon {
  flex: none;
  width: 13px;
  height: 10px;
  color: var(--brand, #008AF7);
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Hover micro-animation (client spec, 2026-07-25): the leading arrow shrinks
   slightly while the gap tightens, pulling the label toward it. */
.btn-layout:hover,
.btn-layout:focus-visible {
  transform: translateY(-1px);
  gap: 6px;
}

.btn-layout:hover .cnm-icon,
.btn-layout:focus-visible .cnm-icon {
  transform: scale(0.8);
}

@media (prefers-reduced-motion: reduce) {
  .btn-layout,
  .btn-layout .cnm-icon {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .btn-layout:hover,
  .btn-layout:focus-visible {
    transform: none;
    gap: 10px;
  }

  .btn-layout:hover .cnm-icon,
  .btn-layout:focus-visible .cnm-icon {
    transform: none;
  }
}

.btn-layout.default {
  padding: 18px 40px 19px 43px;
  border-radius: var(--radius-md, 5px);
  background: var(--brand, #008AF7);
  border-color: var(--brand, #008AF7);
  color: var(--white, #ffffff);
}

/* Hover system (client spec, 2026-07-25): solid brand buttons hollow out
   (transparent, brand border/text); white-outlined buttons fill white with
   brand text; the paired secondary CTAs fill brand (scoped below). */
.btn-layout.default:hover,
.btn-layout.default:focus-visible {
  background: transparent;
  border-color: var(--brand, #008AF7);
  color: var(--brand, #008AF7);
}

.btn-layout.hollow {
  background: transparent;
  border-color: var(--brand, #008AF7);
  color: var(--brand, #008AF7);
}

.btn-layout.hollow:hover,
.btn-layout.hollow:focus-visible {
  background: var(--brand, #008AF7);
  color: var(--white, #ffffff);
}

.btn-layout.hollow:hover .cnm-icon,
.btn-layout.hollow:focus-visible .cnm-icon {
  color: var(--white, #ffffff);
}

/* Blue outline, white label — the "Get a Quote" chrome button. */
.btn-layout.hollow.is-light-label {
  color: var(--white, #ffffff);
}

/* White outline, white label — outlined buttons sitting on photography. */
.btn-layout.hollow.is-light {
  border-color: var(--white, #ffffff);
  color: var(--white, #ffffff);
}

.btn-layout.hollow.is-light:hover,
.btn-layout.hollow.is-light:focus-visible {
  background: var(--white, #ffffff);
  border-color: var(--white, #ffffff);
  color: var(--brand, #008AF7);
}

.btn-layout.hollow.is-light:hover .cnm-icon,
.btn-layout.hollow.is-light:focus-visible .cnm-icon {
  color: var(--brand, #008AF7);
}

/* Blue-outline/white-label chrome buttons (nav + footer Get a Quote):
   hover fills white with brand text, and the border goes white with the fill
   (client round 4) — the blue outline would otherwise ring the white pill. */
.btn-layout.hollow.is-light-label:hover,
.btn-layout.hollow.is-light-label:focus-visible {
  background: var(--white, #ffffff);
  border-color: var(--white, #ffffff);
  color: var(--brand, #008AF7);
}

.btn-layout.hollow.is-light-label:hover .cnm-icon,
.btn-layout.hollow.is-light-label:focus-visible .cnm-icon {
  color: var(--brand, #008AF7);
}

.entry-content > * + * {
  margin-top: 20px;
}

.entry-list {
  display: grid;
  gap: var(--gap, 32px);
}

.entry-card {
  padding: 24px;
  border: 1px solid var(--light, #E8E8E8);
  border-radius: var(--radius-lg, 11px);
  background: var(--bg, #ffffff);
}

.entry-card__title {
  margin-bottom: 8px;
}

.entry-card__excerpt > *:last-child {
  margin-bottom: 0;
}

.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;
}

.reveal-pending {
  opacity: 0;
  will-change: opacity, transform;
}

.reveal-pending.scroll,
.reveal-pending.scroll-up,
.reveal-pending[data-reveal="up"] {
  transform: translate3d(0, var(--reveal-distance, 48px), 0);
}

.reveal-pending.scroll-down,
.reveal-pending[data-reveal="down"] {
  transform: translate3d(0, calc(var(--reveal-distance, 48px) * -1), 0);
}

.reveal-pending.scroll-left,
.reveal-pending[data-reveal="left"] {
  transform: translate3d(calc(var(--reveal-distance, 48px) * -1), 0, 0);
}

.reveal-pending.scroll-right,
.reveal-pending[data-reveal="right"] {
  transform: translate3d(var(--reveal-distance, 48px), 0, 0);
}

.ready,
.ready-up,
.ready-down,
.ready-left,
.ready-right {
  opacity: 1;
  animation-duration: var(--reveal-duration, 1.2s);
  animation-delay: var(--reveal-delay, 0ms);
  animation-fill-mode: both;
  animation-timing-function: var(--reveal-ease, cubic-bezier(0.22, 1, 0.36, 1));
  will-change: opacity, transform;
}

.ready,
.ready-up {
  animation-name: fadeInUp;
}

.ready-down {
  animation-name: fadeInDown;
}

.ready-left {
  animation-name: fadeInLeft;
}

.ready-right {
  animation-name: fadeInRight;
}

.reveal-visible {
  opacity: 1;
  transform: none;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, calc(var(--reveal-distance, 48px) * -1), 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, var(--reveal-distance, 48px), 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(calc(var(--reveal-distance, 48px) * -1), 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(var(--reveal-distance, 48px), 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-pending,
  .ready,
  .ready-up,
  .ready-down,
  .ready-left,
  .ready-right,
  .reveal-visible {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 575px) {
  .container,
  .container-md,
  .container-sm,
  .container-fluid,
  .container-full {
    padding-inline: var(--gutter-mobile, 24px);
  }

  .section-pad {
    padding-block: var(--section-pad-mobile, 44px);
  }

  .btn-layout {
    width: 100%;
  }
}
