/* Homepage layout & button fixes — loaded after inline index styles */

:root {
  --dg-nav-height: 72px;
}

/* Fixed header — prevents logo overlapping hero on load/resize */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 10px 5%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease, padding 0.25s ease;
  overflow: visible;
  z-index: 1100;
}

.navbar.fixed,
.navbar.scrolled {
  position: fixed;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  padding: 10px 5%;
}

.nav-container {
  gap: 12px;
  min-height: 52px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  max-width: min(240px, 48vw);
  line-height: 1;
}

.logo img {
  height: auto;
  max-height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-family: var(--dg-display, 'Playfair Display', serif);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  background: linear-gradient(45deg, #3c3c3c, #f26727);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo:not(.logo--has-image) .logo-text {
  display: inline;
}

.logo.logo--has-image .logo-text {
  display: none;
}

/* Hero clears fixed navbar */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  padding: calc(var(--dg-nav-height) + 32px) 5% 48px;
  box-sizing: border-box;
}

.hero-content {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.15;
  word-break: break-word;
}

.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
}

.hero-buttons {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Clean pill CTAs — no underline pseudo-elements */
.nav-links a.get-started-btn::after,
.nav-links a.stores-btn::after,
.hero-buttons a::after {
  display: none !important;
}

.get-started-btn,
.stores-btn,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.25;
  border-radius: 999px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.get-started-btn,
.btn-primary {
  background: linear-gradient(135deg, #f26727, #ff8a50);
  color: #3c3c3c !important;
  box-shadow: 0 4px 14px rgba(242, 103, 39, 0.35);
}

.get-started-btn:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(242, 103, 39, 0.4);
}

.stores-btn::before {
  display: none;
}

.dg-hero-pills {
  display: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(242, 103, 39, 0.35);
  border-radius: 10px;
  background: #fff;
  color: #3c3c3c;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1.15rem;
  margin-left: auto;
  position: relative;
  z-index: 1102;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-toggle i {
  pointer-events: none;
}

.nav-toggle:focus-visible {
  outline: 2px solid #f26727;
  outline-offset: 2px;
}

@media (min-width: 993px) {
  .nav-toggle {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 992px) {
  :root {
    --dg-nav-height: 64px;
  }

  .nav-toggle {
    display: inline-flex !important;
  }

  .nav-links {
    display: none !important;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(242, 103, 39, 0.15);
    max-height: calc(100dvh - var(--dg-nav-height) - 24px);
    overflow-y: auto;
    z-index: 1101;
    list-style: none;
  }

  .nav-links.open {
    display: flex !important;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav-links a:hover {
    background: rgba(242, 103, 39, 0.08);
    transform: none;
  }

  .nav-links .get-started-btn,
  .nav-links .stores-btn {
    width: 100%;
    text-align: center;
    margin-top: 4px;
  }

  .nav-container {
    position: relative;
    flex-wrap: nowrap;
  }

  .logo img {
    max-height: 42px;
  }
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 14px 20px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 8px 4%;
  }

  .logo {
    max-width: 55vw;
  }

  .logo img {
    max-height: 38px;
  }
}

/* Footer legal links (Delete Account, Privacy, etc.) — readable black on light footer */
.footer.dg-site-footer,
.footer.dg-site-footer .footer-section {
  color: #1a1a1a;
}

.footer.dg-site-footer a,
.footer.dg-site-footer .dg-footer-links a,
.footer.dg-site-footer .dg-footer-legal a,
.footer.dg-site-footer .footer-section a {
  color: #000;
}

.footer.dg-site-footer .dg-footer-bottom,
.footer.dg-site-footer .dg-footer-bottom p {
  color: #333;
}
