/*
 * Shared design language. Written ONCE against the token knobs (--df-*).
 * It contains zero hard-coded brand values. Swap the tokens.css file in front
 * of this and the entire look changes. This is the "reskin, not rebuild" engine.
 */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--df-font-family-sans);
  font-size: var(--df-font-size-base);
  line-height: var(--df-font-line-height-normal);
  color: var(--df-color-text-default);
  background: var(--df-color-surface-default);
}

.df-container {
  max-width: var(--df-container-default);
  margin-inline: auto;
  padding-inline: var(--df-container-padding);
}

h1, h2, h3 {
  font-family: var(--df-font-family-serif);
  line-height: var(--df-font-line-height-tight);
  /* Defaults to `normal`, so a skin that says nothing renders exactly as before.
     Brands whose display type is optically tracked (large weights usually want
     slightly negative tracking) set font.letterSpacing.heading in their skin. */
  letter-spacing: var(--df-font-letter-spacing-heading);
  color: var(--df-color-brand-secondary);
  margin: 0 0 var(--df-space-4);
}
h1 { font-size: var(--df-font-size-4xl); font-weight: var(--df-font-weight-display); }
h2 { font-size: var(--df-font-size-2xl); font-weight: var(--df-font-weight-heading); }
h3 { font-size: var(--df-font-size-xl); font-weight: var(--df-font-weight-heading); }

/* h4-h6 had no rule at all and fell back to the UA sheet. The size and weight
   defaults below reproduce that fallback exactly (1em / 0.83em / 0.67em, bold),
   so nothing moves for an existing skin - they simply become addressable, which
   a brand with a full display scale needs. Family, color, line-height and the UA
   margins are deliberately left inherited, as they are today. */
h4 { font-size: var(--df-font-size-h4); font-weight: var(--df-font-weight-heading); line-height: var(--df-font-line-height-h4); }
h5 { font-size: var(--df-font-size-h5); font-weight: var(--df-font-weight-heading); line-height: var(--df-font-line-height-h5); }
h6 { font-size: var(--df-font-size-h6); font-weight: var(--df-font-weight-heading); line-height: var(--df-font-line-height-h6); }

p { margin: 0 0 var(--df-space-4); color: var(--df-color-text-default); }
.df-muted { color: var(--df-color-text-muted); }

/* Button */
/* The button has its own shape knobs rather than borrowing radius.md / the space
   scale, because a brand routinely wants a pill button on top of square cards
   (or the reverse). Both default to the values this rule used before
   (radius.md, space.3 / space.6), so no existing skin changes. */
.df-btn {
  display: inline-block;
  /* Button elements do NOT inherit the page font the way an anchor does: the UA
     sheet pins them to `font: 400 13.333px Arial`, so a <button class="df-btn">
     (the inquiry form's Submit) rendered smaller and in the wrong family than an
     <a class="df-btn"> beside it. `font: inherit` makes the element opt in to the
     document font exactly like the anchor already does; the weight line below
     then re-asserts the button's own weight. */
  font: inherit;
  padding: var(--df-button-padding-y) var(--df-button-padding-x);
  border-radius: var(--df-button-radius);
  background: var(--df-color-brand-primary);
  color: var(--df-color-text-inverse);
  font-weight: var(--df-button-weight);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  /* Invisible until a skin actually changes the hover colors. */
  transition: background-color 0.2s ease, color 0.2s ease;
}
/* Hover / keyboard focus. Both knobs default to the button's own resting colors,
   so a skin that says nothing renders exactly as before: no hover at all, which
   is what every existing client has today. A brand opts in by setting
   button.hover.* (Blink swaps red -> black, mirroring its live site).
   The UA focus ring is deliberately left alone; this only adds color feedback. */
.df-btn:hover,
.df-btn:focus-visible {
  background: var(--df-button-hover-bg);
  color: var(--df-button-hover-color);
}

/* Variants re-assert their own resting colors on hover, so adding the rule above
   cannot change them. They get their own hover knobs when a client first needs
   one - today none does. */
.df-btn--accent { background: var(--df-color-brand-accent); color: var(--df-color-neutral-900); }
.df-btn--accent:hover,
.df-btn--accent:focus-visible { background: var(--df-color-brand-accent); color: var(--df-color-neutral-900); }
.df-btn--ghost {
  background: transparent;
  color: var(--df-color-text-inverse);
  border: 1px solid color-mix(in srgb, var(--df-color-text-inverse) 55%, transparent);
}
.df-btn--ghost:hover,
.df-btn--ghost:focus-visible { background: transparent; color: var(--df-color-text-inverse); }
.df-btn--outline {
  background: var(--df-color-text-inverse);
  color: var(--df-color-brand-secondary);
}
.df-btn--outline:hover,
.df-btn--outline:focus-visible { background: var(--df-color-text-inverse); color: var(--df-color-brand-secondary); }

/* Edge-style landing: hero image + overlay header (homepage) */
.df-landing {
  position: relative;
  color: var(--df-color-text-inverse);
}
.df-landing__bar {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 3;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--df-space-6);
  padding: var(--df-space-6) var(--df-space-8);
  width: 100%;
}
.df-landing__brand {
  display: inline-flex;
  text-decoration: none;
  line-height: 0;
}
.df-landing__brand img {
  display: block;
  width: min(220px, 52vw);
  height: auto;
}
.df-landing__actions {
  display: flex;
  align-items: center;
  gap: var(--df-space-6);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.df-landing__action-link {
  color: var(--df-color-text-inverse);
  text-decoration: none;
  font-size: var(--df-font-size-sm);
  font-weight: var(--df-font-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--df-font-family-sans);
  padding: var(--df-space-2) 0;
}
.df-landing__action-link:hover {
  color: var(--df-color-brand-accent);
}
.df-landing__actions .df-btn--accent {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--df-font-size-sm);
  padding: var(--df-space-3) var(--df-space-6);
}
.df-landing__nav {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-end: var(--df-space-6);
  z-index: 4;
  min-width: 240px;
  padding: var(--df-space-4);
  background: var(--df-color-brand-secondary);
  border-radius: var(--df-radius-md);
  box-shadow: var(--df-shadow-lg);
}
.df-landing__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.df-landing__nav a {
  display: block;
  padding: var(--df-space-2) 0;
  color: var(--df-color-text-inverse);
  text-decoration: none;
  font-weight: var(--df-font-weight-medium);
}
.df-landing__nav a:hover { color: var(--df-color-brand-accent); }

/* Section: hero */
.df-hero {
  position: relative;
  padding-block: var(--df-space-24);
  background: var(
    --df-color-surface-hero,
    linear-gradient(135deg, var(--df-color-brand-primary), var(--df-color-brand-secondary))
  );
  color: var(--df-color-text-inverse);
}
.df-hero--landing {
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(7rem, 22vh, 12rem) var(--df-space-16);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.df-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(
      180deg,
      color-mix(in srgb, var(--df-color-brand-secondary) 45%, transparent) 0%,
      color-mix(in srgb, var(--df-color-brand-secondary) 55%, transparent) 40%,
      color-mix(in srgb, var(--df-color-brand-secondary) 92%, transparent) 100%
    ),
    var(--df-asset-hero-image, none);
  background-size: cover;
  background-position: center;
}
.df-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: var(--df-space-8);
}
.df-landing .df-hero h1 {
  color: var(--df-color-text-inverse);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: var(--df-font-weight-bold);
  line-height: var(--df-font-line-height-tight);
  max-width: 11em;
  margin-bottom: var(--df-space-10);
  letter-spacing: -0.02em;
}
.df-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--df-font-size-sm);
  font-weight: var(--df-font-weight-bold);
  opacity: 0.85;
  margin-bottom: var(--df-space-4);
}
.df-hero__lede {
  color: var(--df-color-text-inverse);
  opacity: 0.92;
  max-width: var(--df-container-narrow);
  font-size: var(--df-font-size-lg);
  line-height: var(--df-font-line-height-relaxed);
  margin: 0;
}
.df-hero p { color: var(--df-color-text-inverse); opacity: .9; max-width: var(--df-container-narrow); }
.df-hero__locations {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--df-space-4) clamp(var(--df-space-8), 6vw, var(--df-space-16));
  margin-bottom: var(--df-space-10);
}
.df-hero__locations a {
  color: var(--df-color-text-inverse);
  text-decoration: none;
  font-family: var(--df-font-family-serif);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: var(--df-font-weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: var(--df-font-line-height-tight);
}
.df-hero__locations a:hover { color: var(--df-color-brand-accent); }
.df-landing .df-hero__lede {
  margin-top: var(--df-space-6);
  max-width: 36rem;
}

/* Section: feature grid */
.df-features { padding-block: var(--df-space-16); }
.df-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--df-grid-gap);
}
.df-card {
  background: var(--df-color-surface-subtle);
  border: var(--df-card-border-width) solid var(--df-color-neutral-100);
  border-radius: var(--df-card-radius);
  padding: var(--df-card-padding);
  box-shadow: var(--df-card-shadow);
}
.df-card h3 { color: var(--df-color-brand-primary); }

/* Section: product card (commerce) */
.df-product { text-align: left; }
.df-product__media {
  aspect-ratio: 1 / 1;
  background: var(--df-color-neutral-100);
  border-radius: var(--df-radius-md);
  margin-bottom: var(--df-space-3);
}
.df-product__price { font-weight: var(--df-font-weight-bold); color: var(--df-color-brand-secondary); }

/* Swatches (style guide only) */
.df-swatches { display: flex; flex-wrap: wrap; gap: var(--df-space-3); }
.df-swatch { width: 96px; }
.df-swatch__chip { height: 56px; border-radius: var(--df-radius-sm); border: 1px solid var(--df-color-neutral-100); }
.df-swatch__label { font-size: var(--df-font-size-xs); color: var(--df-color-text-muted); margin-top: var(--df-space-1); }

@media (max-width: 800px) { .df-grid { grid-template-columns: 1fr; } }
