/* =========================================================================
   DMG Landscaping & Earthworks — Design tokens + base
   Heading: Poppins · Body: Work Sans
   ========================================================================= */

/* Self-hosted. An @import here cost a serial round trip before first paint:
   the browser had to fetch and parse this file before it even learned it
   needed Google's CSS, which then fetched the fonts. Work Sans is a variable
   font, so one file covers 400 and 500. */
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/poppins-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/poppins-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Work Sans'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url('fonts/work-sans-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens ---- */
:root {
  /* Neutrals */
  --white: #ffffff;
  --neutral-lightest: #f2f2f2;
  --neutral-lighter: #dadada;
  --neutral-light: #b6b6b6;
  --neutral: #868686;
  --neutral-dark: #555555;
  --neutral-darker: #252525;
  --neutral-darkest: #0d0d0d;

  /* Deep navy / teal */
  --navy-lightest: #e6e9eb;
  --navy-lighter: #ced4d8;
  --navy-light: #566977;
  --navy: #0e2a3e;
  --navy-dark: #0b2131;
  --navy-darker: #051018;
  --navy-darkest: #040c12;

  /* Sky / azure blue */
  --azure-lightest: #e9f6fb;
  --azure-lighter: #d4edf8;
  --azure-light: #69c0e9;
  --azure: #2aa6e0;
  --azure-dark: #2184b3;
  --azure-darker: #104259;
  --azure-darkest: #0c3143;

  /* Typography */
  --font-heading: "Poppins", system-ui, sans-serif;
  --font-body: "Work Sans", system-ui, sans-serif;

  /* Fluid type scale */
  --text-h1: clamp(3.5rem, calc(1.97rem + 6.29vw), 7rem);        /* 56px → 112px */
  --text-h2: clamp(2.5rem, calc(1.54rem + 3.93vw), 4.6875rem);   /* 40px → 75px  */
  --text-h3: 1.75rem;                                        /* 28px fixed   */
  --text-h4: 1.25rem;                                        /* 20px fixed   */
  --text-h5: clamp(1.25rem, calc(1rem + 1.1vw), 2rem);
  --text-h6: clamp(1.125rem, calc(1rem + 0.6vw), 1.625rem);
  --text-large: clamp(1.125rem, calc(1rem + 0.55vw), 1.375rem);
  --text-medium: clamp(1.0625rem, calc(1rem + 0.3vw), 1.25rem);
  --text-regular: 1rem;      /* 16px */
  --text-small: 0.9375rem;
  --text-tiny: 0.75rem;
  --text-service-num: clamp(3rem, calc(2.34rem + 2.7vw), 4.5rem); /* 48px → 72px  */

  /* Radii */
  --radius-button: 0.75rem;
  --radius-card: 0.5rem;
  --radius-tag: 0.375rem;
  --radius-image: 0.5rem;

  /* Layout */
  --container: 80rem;
  --gutter: 5vw;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(13,13,13,.06), 0 1px 3px rgba(13,13,13,.05);
  --shadow-md: 0 8px 24px rgba(13,13,13,.09), 0 2px 6px rgba(13,13,13,.06);
  --shadow-lg: 0 24px 64px rgba(5,16,24,.22), 0 8px 24px rgba(5,16,24,.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* @kind other */
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-regular);
  line-height: 1.5;
  color: #4B4F58;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { line-height: 0.8; }
h2 { line-height: 1.0; }
h3 { line-height: 1.3; }
h4 { line-height: 1.5; }
h5, h6 { line-height: 1.3; }

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

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

/* ---- Eyebrow ---- */
.eyebrow {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--eyebrow-color, #424242);
}
.eyebrow::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--eyebrow-divider, #424242);
  margin-top: 12px;
}

/* ---- Buttons ---- */
.btn {
  --btn-py: 0.95rem;
  --btn-px: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: var(--btn-py) var(--btn-px);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn-primary {
  color: #ffffff;
  background: var(--azure-light);
  padding: 14px 34px;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--azure);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  color: var(--neutral-darkest);
  background: var(--white);
  border-color: rgba(13,13,13,.14);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: rgba(13,13,13,.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Outline button for dark / hero backgrounds */
.btn-outline-light {
  color: #efefef;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.5);
  backdrop-filter: blur(6px);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.85);
  transform: translateY(-2px);
}

/* ---- Utilities ---- */
.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;
}
.skip-link {
  position: fixed;
  top: -3rem; left: 1rem;
  z-index: 2000;
  background: var(--navy);
  color: var(--white);
  padding: 0.65rem 1rem;
  border-radius: 0 0 var(--radius-button) var(--radius-button);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* Narrow screens: long CTA labels must wrap instead of forcing the page wider.
   .btn is nowrap by default, so a label like "Request My Free Consultation"
   sets a min-content width that no phone-width column can satisfy. */
@media (max-width: 560px) {
  .btn { white-space: normal; line-height: 1.25; }
}

/* Very narrow screens: the h1/h2 clamp floors out at 40px, so a single long
   word ("transformation") is wider than the column. Hyphenate rather than
   let it push the page sideways. Only engages when a word cannot fit. */
@media (max-width: 380px) {
  h1, h2, h3 { -webkit-hyphens: auto; hyphens: auto; }
}
