/*
==========================================================
Driver Nation
==========================================================
*/

#drivernation {
  box-sizing: border-box;
  margin: 0;
  padding: 50px 20px;
  text-align: center;
  line-height: 1.6;
  font-family: 'Titillium Web', Arial, sans-serif;
  color: #fff;
  background-color: #000;
  background-image: radial-gradient(600px 600px at 50% 75%, rgba(235, 84, 69, 0.18), transparent 60%);
}

/* ---------- Stacked (default) ---------- */

#drivernation .dn-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

#drivernation .dn-phone {
  flex: 0 0 auto;
  width: clamp(160px, 28vw, 220px);
  height: auto;
  margin: 6px 0;
}

#drivernation .dn-content {
  flex: 0 0 auto;
  width: 100%;
  max-width: 520px;
}

/* ---------- Text block ---------- */

#drivernation .dn-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

#drivernation .dn-icon {
  width: 55px;
  margin: 6px 0;
  border-radius: 16px;
  border: 1px solid #888;
}

#drivernation .dn-title {
  margin: 0;
  padding: 0 10px;
  font-family: inherit;
  font-size: clamp(2em, 7vw, 3em);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: none;
  background: linear-gradient(90deg, #EB5445 0%, #FF7A66 50%, #EB5445 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#drivernation .dn-title-row:hover .dn-title {
  filter: brightness(1.1);
}

#drivernation .dn-claim {
  display: block;
  width: fit-content;
  max-width: 600px;
  margin: 14px auto 10px;
  font-family: inherit;
  font-size: 1.25em;
  font-weight: 600;
  color: #dedede;
}

#drivernation .dn-text {
  max-width: 600px;
  margin: 20px auto;
  font-family: inherit;
  color: #999;
}

#drivernation .dn-badges {
  margin-top: 12px;
  white-space: nowrap;
  container-type: inline-size;
  container-name: dn-badges;
}

#drivernation .dn-badges a {
  display: inline-block;
}

#drivernation .dn-badges img {
  height: 45px;
  margin: 8px;
  transition: transform 0.2s ease;
}

#drivernation .dn-badges a:hover img {
  transform: scale(1.04);
}

@container dn-badges (max-width: 440px) {
  #drivernation .dn-badges a {
    display: block;
    width: min(100%, 180px);
    margin: 16px auto;
  }
  #drivernation .dn-badges img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
  }
}

#drivernation .dn-links {
  margin-top: 24px;
}

#drivernation .dn-links a {
  display: inline-block;
  margin: 0 6px;
  font-size: 0.9em;
  color: #333;
  text-decoration: none;
}

/* ---------- Side by side (wide screens, not embedded) ---------- */

@media (min-width: 901px) {
  #drivernation:not(.dn-compact) {
    background-image: radial-gradient(700px 600px at 52% 50%, rgba(235, 84, 69, 0.18), transparent 60%);
  }
  #drivernation:not(.dn-compact) .dn-card {
    flex-direction: row;
  }
  #drivernation:not(.dn-compact) .dn-phone {
    width: 240px;
  }
  #drivernation:not(.dn-compact) .dn-content {
    flex: 0 1 520px;
    width: auto;
  }
}

/* ---------- Embedded half-width on the main page (always stacked) ---------- */

@media (min-width: 901px) {
  #drivernation.dn-compact {
    padding: 40px 20px;
  }
  #drivernation.dn-compact .dn-title {
    font-size: clamp(1.6em, 2.4vw, 2.4em);
  }
  #drivernation.dn-compact .dn-title-row {
    flex-wrap: wrap;
  }
}

/* ---------- Standalone page ---------- */

body.dn-page {
  margin: 0;
  background: #000;
}

body.dn-page #drivernation {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
}

/*
==========================================================
Subpages (privacy.html, about.html)
==========================================================
*/

body.dn-doc {
  margin: 6px;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #000;
  background-image: radial-gradient(700px 600px at 52% 50%, rgba(235, 84, 69, 0.18), transparent 60%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  line-height: 1.6;
}

body.dn-doc a {
  display: inline-block;
}

body.dn-doc p {
  max-width: 900px;
  margin: 20px auto;
}

body.dn-doc h1 {
  margin: 0;
  padding: 0 10px;
}

body.dn-doc .dn-doc-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 800px;
  text-align: left;
}

/* Page title */
body.dn-doc .dn-doc-title {
  width: 100%;
  margin-top: 40px;
  text-align: center;
  color: #EB5445;
}

/* Section heading ("Privacy Policy", "Legal Information") */
body.dn-doc .dn-doc-heading {
  margin-top: 40px;
  text-align: center;
  color: #EB5445;
}

body.dn-doc .dn-doc-box {
  margin: 20px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

body.dn-doc .dn-doc-link {
  color: #EB5445;
  text-decoration: underline;
}

body.dn-doc .dn-doc-back {
  margin-top: 24px;
  color: #333;
  font-size: 0.9em;
}

@media (max-width: 520px) {
  body.dn-doc {
    background-image: radial-gradient(600px 600px at 50% 75%, rgba(235, 84, 69, 0.18), transparent 60%);
  }
}
