/* Shared chrome — match homepage header + footer */
@import "./dg-fonts.css";

.dg-chrome-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(3,18,26,0.08), 0 4px 16px rgba(3,18,26,0.06);
  transition: background .2s ease, box-shadow .2s ease;
}
.dg-chrome-header.is-scrolled {
  background: #fff;
  box-shadow: 0 1px 0 rgba(3,18,26,0.08), 0 4px 16px rgba(3,18,26,0.06);
}
.dg-chrome-header__shade {
  position: absolute;
  inset: 0;
  background-image: none;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity .2s ease;
}
.dg-chrome-header.is-scrolled .dg-chrome-header__shade { opacity: 0; }
.dg-chrome-header__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 1222px);
  margin: 0 auto;
}
.dg-chrome-header__row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 0;
}
.dg-chrome-brand {
  display: inline-flex;
  align-items: center;
  height: 43px;
  text-decoration: none;
  flex: 0 0 auto;
}
.dg-chrome-brand__text {
  font-family: "Better Together", "Godwit", sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: #03121A;
  transition: color .2s ease;
}
.dg-chrome-header.is-scrolled .dg-chrome-brand__text { color: #03121A; }

.dg-chrome-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
  margin: 0 8px;
}
.dg-chrome-nav a {
  color: #03121A;
  font-family: "Better Together", "Godwit", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  padding: 8px 12px;
  white-space: nowrap;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.dg-chrome-nav a:hover { background: rgba(3,18,26,0.06); color: #03121A; }
.dg-chrome-nav a.is-active { background: rgba(3,18,26,0.06); }
.dg-chrome-header.is-scrolled .dg-chrome-nav a { color: #03121A; }
.dg-chrome-header.is-scrolled .dg-chrome-nav a:hover,
.dg-chrome-header.is-scrolled .dg-chrome-nav a.is-active {
  background: rgba(3,18,26,0.06);
  color: #03121A;
}

.dg-chrome-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.dg-chrome-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #03121A;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  transition: color .2s ease;
}
.dg-chrome-header.is-scrolled .dg-chrome-lang { color: #03121A; }
.dg-chrome-lang img {
  width: 20px;
  height: 14px;
  display: block;
  border-radius: 2px;
  object-fit: cover;
}
.dg-chrome-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 3px solid transparent;
  font-family: "Better Together", "Godwit", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  cursor: default;
}
.dg-chrome-btn--login {
  background: #FFE8D1;
  color: #8B3A00;
}
.dg-chrome-btn--signup {
  background: #FF5E1F;
  color: #fff;
}

.dg-chrome-marquee-wrap {
  position: relative;
  z-index: 1;
  height: 36px;
  overflow: hidden;
  border-top: 1px solid rgba(3,18,26,0.06);
  background: #fff;
  transition: border-color .2s ease, background .2s ease;
}
.dg-chrome-header.is-scrolled .dg-chrome-marquee-wrap {
  border-top-color: rgba(3,18,26,0.06);
  background: #fff;
}
.dg-chrome-marquee {
  width: min(100% - 40px, 1222px);
  margin: 0 auto;
  height: 36px;
  overflow: hidden;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.dg-chrome-marquee__track {
  display: flex;
  width: max-content;
  gap: 64px;
  animation: dg-chrome-marquee 42s linear infinite;
}
.dg-chrome-marquee__item {
  flex: 0 0 auto;
  white-space: nowrap;
  color: #03121A;
  font-family: "Better Together", "Godwit", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 36px;
  text-shadow: none;
  transition: color .2s ease;
}
.dg-chrome-header.is-scrolled .dg-chrome-marquee__item {
  color: #03121A;
  text-shadow: none;
}
@keyframes dg-chrome-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Inner pages: pull page hero under transparent header */
body.dg-inner .dg-page-hero {
  margin-top: -100px;
  padding-top: 100px;
  min-height: clamp(300px, 42vh, 420px);
}

/* ===== Footer (matches Next.js SiteFooter) ===== */
.dg-chrome-footer {
  background: #03121A url("../images/dg-footer-bg.png") center / cover no-repeat;
  color: #fff;
  padding: 48px 0 0;
  font-family: "Better Together", "Godwit", sans-serif;
}
.dg-chrome-footer__inner {
  width: min(100% - 40px, 1222px);
  margin: 0 auto;
  padding-bottom: 48px;
}
.dg-chrome-footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.05fr) 2fr;
  gap: 32px 40px;
  align-items: start;
}
.dg-chrome-footer__logo {
  width: 200px;
  height: auto;
  margin-bottom: 8px;
}
.dg-chrome-footer__block-title {
  margin: 24px 0 12px;
  font-size: 16px;
  font-weight: 900;
  line-height: 20px;
  letter-spacing: 0.01em;
  -webkit-text-stroke: 0.35px currentColor;
}
.dg-chrome-footer__contact {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
  color: rgba(255,255,255,0.92);
}
.dg-chrome-footer__contact a {
  color: #FFC48A;
  text-decoration: none;
}
.dg-chrome-footer__creds {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(255, 245, 230, 0.88);
}
.dg-chrome-footer__creds strong {
  color: #FFE7A8;
  font-weight: 700;
}


.dg-chrome-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.dg-chrome-payments img {
  width: 84px;
  height: 28px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  padding: 2px;
  box-sizing: border-box;
}

.dg-chrome-footer__right {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 32px;
  min-width: 0;
}
.dg-chrome-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 28px;
}
.dg-chrome-footer__cols--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dg-chrome-footer__col-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 900;
  line-height: 20px;
  letter-spacing: 0.01em;
  -webkit-text-stroke: 0.35px currentColor;
}
.dg-chrome-footer__col-title--spaced { margin-top: 28px; }
.dg-chrome-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.dg-chrome-footer__links a {
  color: rgba(240,241,242,0.92);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.dg-chrome-footer__links a:hover { color: #fff; text-decoration: underline; }

.dg-chrome-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.dg-chrome-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  transition: transform .2s ease, background .2s ease;
}
.dg-chrome-social a:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.16);
}
.dg-chrome-social img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.dg-chrome-qr { margin-top: 16px; }
.dg-chrome-qr a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-decoration: none;
  color: #fff;
}
.dg-chrome-qr__label {
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}
.dg-chrome-qr__frame {
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  line-height: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.dg-chrome-qr__frame img {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.dg-chrome-newsletter {
  margin-top: 32px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 20px 24px;
}
.dg-chrome-newsletter__title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.dg-chrome-newsletter__form {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.dg-chrome-newsletter__form input {
  flex: 1 1 220px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  background: #fff;
  padding: 0 16px;
  font-family: inherit;
  font-size: 14px;
  color: #03121A;
  outline: none;
}
.dg-chrome-newsletter__form input:focus {
  border-color: #FF6B21;
  box-shadow: 0 0 0 3px rgba(255,107,33,0.25);
}
.dg-chrome-newsletter__form button {
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #FF6B21;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 0 20px;
  cursor: pointer;
}
.dg-chrome-newsletter__form button:hover { background: #E85E18; }
.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;
}

.dg-chrome-footer__copy {
  margin: 0;
  padding: 12px 16px;
  background: #000;
  border-top: 0;
  text-align: center;
  font-size: 14px;
  color: #F0F1F2;
}

@media (max-width: 980px) {
  .dg-chrome-footer__grid,
  .dg-chrome-footer__right,
  .dg-chrome-footer__cols,
  .dg-chrome-footer__cols--two { grid-template-columns: 1fr; }
  .dg-chrome-lang { display: none; }
  .dg-chrome-nav { gap: 2px; margin: 0 4px; }
  .dg-chrome-nav a { padding: 6px 8px; font-size: 13px; }
  .dg-chrome-btn--login { display: none; }
}
@media (max-width: 640px) {
  .dg-chrome-header__inner,
  .dg-chrome-marquee,
  .dg-chrome-footer__inner { width: min(100% - 28px, 1222px); }
  .dg-chrome-btn--signup { font-size: 14px; padding: 0 12px; }
  body.dg-inner .dg-page-hero {
    margin-top: -92px;
    padding-top: 92px;
  }
}
