/* Shared site foundation: colors, type, header, labels, store badges, footer */
:root {
  --bg: #1b1e1c;
  --bg-2: #232725;
  --bg-3: #2b302d;
  --text: #f7f4ef;
  --text-soft: #e3ded4;
  --muted: #b9b4aa;
  --line: rgba(247, 244, 239, 0.14);
  --line-strong: rgba(247, 244, 239, 0.4);
  --accent: #d4a574;
  --accent-hover: #e0b688;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --radius: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.display {
  margin: 0;
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

/* Header */
.header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
}

.header.is-sticky {
  position: sticky;
  top: 0;
  background: rgba(27, 30, 28, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.header.is-sticky .wrap { height: 72px; }

.brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 32px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav a:hover { border-color: var(--accent); }

/* A whole card or row clickable via its title link; other links sit above it */
.has-stretch { position: relative; }

.stretch::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.above { position: relative; z-index: 2; }

/* Store badges */
.stores {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.store img {
  height: 40px;
  width: auto;
  transition: opacity 0.2s ease;
}

.store:hover img { opacity: 0.8; }

.store-pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.store-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Text link with arrow */
.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.more span { transition: transform 0.25s ease; }

.has-stretch:hover .more span { transform: translateX(4px); }

/* Pill button */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #1b1e1c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .nav { gap: 20px; }
  .brand { letter-spacing: 0.24em; }
}

/* Keep small labels legible over photos */
.hero .eyebrow { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }

/* ---------- Brand pages ---------- */

/* Solid sticky header that picks up each page's own background */
.header.is-solid {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header.is-solid .wrap { height: 72px; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

/* "Brands" dropdown */
.dropdown { position: relative; }

.dropdown > button {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.dropdown > button::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 0 3px 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: -12px;
  padding-top: 10px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.open .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

.dropdown-menu-inner {
  min-width: 230px;
  padding: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.nav .dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  transition: background 0.15s ease;
}

.nav .dropdown-menu a:hover { background: var(--bg-3); }

.dropdown-menu img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

/* Section headings and spacing */
.h2 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section { padding: clamp(64px, 10vw, 120px) 0; }

.section + .section { border-top: 1px solid var(--line); }

.lede {
  margin: 20px 0 0;
  max-width: 620px;
  font-size: 18px;
  color: var(--text-soft);
}

.footer a { border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }

.footer a:hover { border-color: currentColor; }

/* On phones brand pages show just the logo; a .brand-keep name (home page "DHV") stays */
@media (max-width: 600px) {
  .brand-mark span:not(.brand-keep) { display: none; }
}

/* Home page: header floats over the photo, then turns solid once you scroll */
.header.is-overlay {
  position: fixed;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header.is-overlay.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header.is-overlay.scrolled .wrap { height: 72px; }

.header.is-overlay .wrap { transition: height 0.3s ease; }

/* Keep in-page jump targets clear of the sticky/fixed header */
[id] { scroll-margin-top: 88px; }
