/* Davey Gravel Design System: core tokens
 * Source: lucifer/DaveyGravel (Webflow + Relume Client-First V2.1)
 * Brand is anchored by Montserrat + a single saturated brand red (#b01010)
 * on a neutral grayscale, with black type as default.
 */

/* ---------- Fonts ----------
 * Montserrat (Google Fonts) is the single typeface for the entire brand.
 * Weights 100–900 are all loaded; 400 / 500 / 600 / 700 are the workhorses.
 */
/* cyrillic-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/0bb912fe-c0ae-49d4-9068-ef4eb297defe.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/86c0bdf4-6198-4a8e-a52a-363ede39d7e8.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/be81499a-493e-43e1-bb5e-ac8bc06802a9.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/f8a47e2c-240c-452b-aa94-9b379d80b3cd.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/6c8fcb59-a0ef-43af-9b15-80ab166ff4c0.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/a7c84835-d15f-4688-9d98-e1cb482c3586.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/7ca7c9f5-434c-43d2-bdcc-1d089e34e99a.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/925e74fd-25d3-4274-99ec-478b11bd075a.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/909cd835-d630-4fce-ba87-95c0995fdfbc.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/06f381f3-db8b-4485-8592-c8242894d7ce.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  /* ---------- Brand ---------- */
  --davey-red: #b01010;            /* Primary brand red for buttons, accents, and logo bars */
  --davey-red-hover: #8e0d0d;      /* Darker red for hover states */
  --davey-gray: #e2e2e2;           /* Brand gray for soft section backgrounds */

  /* ---------- Neutrals ---------- */
  --neutral-black: #000000;
  --neutral-darkest: #111111;
  --neutral-darker: #222222;
  --neutral-dark: #444444;
  --neutral: #666666;
  --neutral-light: #aaaaaa;
  --neutral-lighter: #cccccc;
  --neutral-lightest: #eeeeee;
  --neutral-white: #ffffff;

  /* ---------- Semantic ---------- */
  --success-green: #027a48;
  --success-green-light: #ecfdf3;
  --error-red: #b42318;
  --error-red-light: #fef3f2;

  /* Surfaces */
  --bg-primary:     var(--neutral-white);     /* Default page background */
  --bg-secondary:   var(--neutral-lightest);  /* Alternating section */
  --bg-tertiary:    var(--neutral-light);     /* Dividers / dim panels */
  --bg-alternate:   var(--neutral-black);     /* Inverted sections */
  --bg-brand-soft:  var(--davey-gray);        /* Brand-toned soft panel */

  /* Text */
  --text-primary:   var(--neutral-black);     /* Default body + headings */
  --text-secondary: var(--neutral-dark);      /* Muted body */
  --text-muted:     var(--neutral);           /* Captions, microcopy */
  --text-alternate: var(--neutral-white);     /* On dark */
  --text-brand:     var(--davey-red);

  /* Borders */
  --border-primary:   var(--neutral-black);
  --border-secondary: var(--neutral-light);
  --border-alternate: var(--neutral-white);

  /* Links */
  --link-primary:   var(--neutral-black);
  --link-alternate: var(--neutral-white);
  --link-focus:     #4d65ff;

  /* ---------- Typography ---------- */
  --font-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fw-light:    300;
  --fw-normal:   400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-xbold:    800;

  /* Heading scale (rem, Client-First) */
  --h1: 3.5rem;   /* 56px */
  --h2: 3rem;     /* 48px */
  --h3: 2.5rem;   /* 40px */
  --h4: 2rem;     /* 32px */
  --h5: 1.5rem;   /* 24px */
  --h6: 1.25rem;  /* 20px */

  --lh-tight: 1.2;    /* h1–h3 */
  --lh-snug:  1.3;    /* h4 */
  --lh-normal:1.4;    /* h5–h6 */
  --lh-body:  1.7;    /* paragraphs */

  /* Body sizes */
  --text-tiny:    0.75rem;   /* 12px */
  --text-small:   0.875rem;  /* 14px: legal text and footer credits */
  --text-regular: 1rem;      /* 16px */
  --text-medium:  1.125rem;  /* 18px: default body */
  --text-large:   1.25rem;   /* 20px: intro paragraph */

  /* ---------- Spacing (Client-First t-shirt scale) ---------- */
  --space-tiny:    0.25rem;
  --space-xxsmall: 0.5rem;
  --space-xsmall:  1rem;
  --space-small:   1.5rem;
  --space-medium:  2rem;
  --space-large:   3rem;
  --space-xlarge:  4rem;
  --space-xxlarge: 5rem;
  --space-huge:    6rem;
  --space-xhuge:   7rem;
  --space-xxhuge:  10rem;

  /* Section padding (vertical rhythm) */
  --section-small:  3rem;
  --section-medium: 5rem;
  --section-large:  7rem;

  /* Containers */
  --container-small:  48rem;   /* 768 */
  --container-medium: 64rem;   /* 1024 */
  --container-large:  80rem;   /* 1280 */

  /* ---------- Radii ----------
   * Davey is almost entirely hard-edged. Buttons/cards are squared.
   * A tiny radius is used for a few soft chips/callouts only.
   */
  --radius-0:    0;
  --radius-xs:   0.25rem;
  --radius-sm:   0.5rem;
  --radius-md:   0.6875rem;  /* 11px: callout chips */
  --radius-full: 9999px;

  /* ---------- Shadows (Webflow scale) ---------- */
  --shadow-xxsmall: 0 1px 2px #0000000d;
  --shadow-xsmall:  0 1px 3px #0000001a, 0 1px 2px #0000000f;
  --shadow-small:   0 4px 8px -2px #0000001a, 0 2px 4px -2px #0000000f;
  --shadow-medium:  0 12px 16px -4px #00000014, 0 4px 6px -2px #00000008;
  --shadow-large:   0 20px 24px -4px #00000014, 0 8px 8px -4px #00000008;
  --shadow-xlarge:  0 24px 48px -12px #0000002e;
  --shadow-xxlarge: 0 32px 64px -12px #00000024;

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur:      220ms;
  --dur-slow: 400ms;
}

/* ---------- Base element styles (semantic hooks) ---------- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-group(root),
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0s;
  }
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-medium);
  line-height: var(--lh-body);
  font-weight: var(--fw-normal);
  color: var(--text-primary);
  background: var(--bg-primary);
}

h1, .h1 { font-size: var(--h1); font-weight: var(--fw-bold); line-height: var(--lh-tight); }
h2, .h2 { font-size: var(--h2); font-weight: var(--fw-bold); line-height: var(--lh-tight); }
h3, .h3 { font-size: var(--h3); font-weight: var(--fw-bold); line-height: var(--lh-tight); }
h4, .h4 { font-size: var(--h4); font-weight: var(--fw-bold); line-height: var(--lh-snug); }
h5, .h5 { font-size: var(--h5); font-weight: var(--fw-bold); line-height: var(--lh-normal); }
h6, .h6 { font-size: var(--h6); font-weight: var(--fw-bold); line-height: var(--lh-normal); }

/* Responsive heading collapse (mirrors the Webflow breakpoints) */
@media (max-width: 991px) {
  :root { --h1: 3.25rem; --h2: 2.75rem; --h3: 2.25rem; --h4: 1.75rem; }
}
@media (max-width: 767px) {
  :root { --h1: 2.5rem;  --h2: 2.25rem; --h3: 2rem;    --h4: 1.5rem;  }
}

p { margin: 0; }
a { color: var(--link-primary); text-decoration: underline; }

.text-allcaps  { text-transform: uppercase; letter-spacing: .04em; }
.text-muted    { color: var(--text-muted); }
.eyebrow       { font-size: var(--text-small); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: .08em; color: var(--text-primary); }

blockquote, .quote {
  border-left: .1875rem solid var(--text-primary);
  padding: .75rem 1.25rem;
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 0;
}
