/* =====================================================================
   Danny's Cycles — Design System v1
   Sitewide custom CSS (Workstand Universal Template)
   ===================================================================== */

:root {
  --dc-ink: #1A1A1A;
  --dc-navy: #1F3A57;
  --dc-navy-dark: #16293D;
  --dc-red: #A32C2E;
  --dc-cream: #F6F3EE;
  --dc-white: #FFFFFF;
  --dc-muted: #6E6A64;
  --dc-line: #DEDAD2;
  --dc-green: #2E7D4F;
  --dc-shadow-sm: 0 1px 2px rgba(26,26,26,.06);
  --dc-shadow: 0 1px 2px rgba(26,26,26,.04), 0 10px 28px rgba(26,26,26,.10);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* --- Section system --- */
.dc-section { padding: 80px 64px; }
@media (max-width: 767px) { .dc-section { padding: 48px 20px; } }
.dc-section-cream { background: var(--dc-cream); }
.dc-section-navy  { background: var(--dc-navy-dark); color: var(--dc-white); }

.dc-eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  font-weight: 700;
  color: var(--dc-red);
  margin-bottom: 10px;
}
.dc-section-navy .dc-eyebrow { color: #B9BFC6; }
.dc-heading { font-size: 34px; line-height: 1.15; font-weight: 700; color: var(--dc-ink); margin: 0; }
.dc-section-navy .dc-heading { color: var(--dc-white); }
.dc-sub { font-size: 17px; line-height: 1.6; margin-top: 10px; color: var(--dc-ink); }
.dc-section-navy .dc-sub { color: var(--dc-white); }

/* --- Buttons ---
   The theme's own content-area link styling (red + underline) is scoped
   with higher specificity than a single class and otherwise wins the
   cascade on every state. Force it off here the same way as .dc-eos-banner,
   so this covers every button site-wide rather than one page at a time. */
.dc-btn,
.dc-btn:link,
.dc-btn:visited,
.dc-btn:hover {
  display: inline-flex;
  align-items: center;
  padding: 15px 30px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: var(--dc-shadow-sm);
  text-decoration: none !important;
}
.dc-btn-dark, .dc-btn-dark:link, .dc-btn-dark:visited       { background: var(--dc-ink); color: var(--dc-white) !important; }
.dc-btn-red, .dc-btn-red:link, .dc-btn-red:visited         { background: var(--dc-red); color: var(--dc-white) !important; }
.dc-btn-white, .dc-btn-white:link, .dc-btn-white:visited     { background: var(--dc-white); color: var(--dc-ink) !important; }
.dc-btn-outline, .dc-btn-outline:link, .dc-btn-outline:visited { border: 1.5px solid var(--dc-ink); color: var(--dc-ink) !important; box-shadow: none; }

/* --- Category tile grid --- */
.dc-tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dc-tile { position: relative; height: 360px; border-radius: 6px; overflow: hidden; box-shadow: var(--dc-shadow); }
.dc-tile img { width: 100%; height: 100%; object-fit: cover; }
.dc-tile span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
@media (max-width: 767px) { .dc-tile-grid { grid-template-columns: 1fr 1fr; } }

/* --- Animated sale banner (flash sale + end-of-summer banner) --- */
.dc-eos-banner {
  position: relative;
  background-color: var(--dc-navy-dark);
  background-size: cover;
  background-position: center;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none !important;
  color: inherit;
}
/* The theme's own content-area link styling (underline + brand red) is
   more specific than a single class selector and otherwise wins the
   cascade on every descendant of the <a>, not just the anchor itself. */
.dc-eos-banner,
.dc-eos-banner:link,
.dc-eos-banner:visited,
.dc-eos-banner:hover,
.dc-eos-banner * {
  text-decoration: none !important;
}
.dc-eos-headline { margin-top: 3%; display: flex; flex-direction: column; align-items: center; line-height: 0.85; }
.dc-eos-line {
  font-weight: 800;
  font-size: clamp(28px, 8vw, 120px);
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(24px);
  animation: dc-eos-in 0.6s ease-out forwards;
}
.dc-eos-solid   { color: #ff751f; }
.dc-eos-outline { color: transparent; -webkit-text-stroke: 2px #ff751f; }
.dc-eos-sale    { font-size: clamp(40px, 12vw, 170px); }
.dc-eos-headline .dc-eos-line:nth-child(1) { animation-delay: 0.1s; }
.dc-eos-headline .dc-eos-line:nth-child(2) { animation-delay: 0.3s; }
.dc-eos-headline .dc-eos-line:nth-child(3) { animation-delay: 0.5s; }
.dc-eos-sub {
  margin-top: auto;
  margin-bottom: 6%;
  text-align: center;
  color: #fff;
  opacity: 0;
  transform: translateY(16px);
  animation: dc-eos-in 0.6s ease-out forwards;
  animation-delay: 0.8s;
}
.dc-eos-percent { font-weight: 800; font-size: clamp(18px, 3vw, 34px); }
.dc-eos-fine { font-weight: 600; font-size: clamp(11px, 1.3vw, 16px); letter-spacing: 0.04em; margin-top: 4px; }
@keyframes dc-eos-in { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .dc-eos-line, .dc-eos-sub { animation: none; opacity: 1; transform: none; }
}

/* --- Jump nav --- */
.dc-jumpnav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: #fff;
  box-shadow: var(--dc-shadow-sm);
}
.dc-jumpnav a {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--dc-cream);
  color: var(--dc-ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.dc-jumpnav a:hover, .dc-jumpnav a.dc-active { background: var(--dc-ink); color: #fff; }

/* --- Discount badge (injected by dc-custom.js on Catalog-block carousels,
   which don't natively render Workstand's .seSavingPercent badge) --- */
.dc-discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  background: var(--dc-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 2px;
  box-shadow: var(--dc-shadow-sm);
  pointer-events: none;
}

/* --- E-Bike vs E-Moto comparison table --- */
.dc-compare { border-radius: 8px; overflow: hidden; box-shadow: var(--dc-shadow); }
.dc-compare-head { display: grid; grid-template-columns: 1fr 1fr; }
.dc-compare-head div { padding: 16px; text-align: center; font-weight: 800; font-size: 16px; color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.dc-compare-head .dc-ce-bike { background: var(--dc-green); }
.dc-compare-head .dc-ce-moto { background: var(--dc-red); }
.dc-compare-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--dc-line); }
.dc-compare-row > div { padding: 18px 22px; font-size: 16px; line-height: 1.6; }
.dc-compare-row .dc-ce-bike-cell { background: #F3F9F5; color: var(--dc-ink); }
.dc-compare-row .dc-ce-moto-cell { background: #FBF2F1; color: var(--dc-ink); }
@media (max-width: 600px) {
  .dc-compare-head div { font-size: 13px; padding: 10px; }
  .dc-compare-row > div { padding: 12px 14px; font-size: 14px; }
}

/* --- Callout statement --- */
.dc-callout {
  background: var(--dc-ink);
  color: #fff;
  padding: 28px 32px;
  border-radius: 8px;
  box-shadow: var(--dc-shadow);
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
}
.dc-callout strong { color: #ff751f; }

/* --- State regulation cards --- */
.dc-state-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dc-state-card { background: var(--dc-cream); border-radius: 8px; padding: 28px; box-shadow: var(--dc-shadow-sm); }
.dc-state-card h3 { margin: 0 0 12px; font-size: 20px; font-weight: 700; color: var(--dc-navy); }
.dc-state-card p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--dc-ink); }
@media (max-width: 700px) { .dc-state-grid { grid-template-columns: 1fr; } }

/* --- Time-boxed event promo banner. Set a Section Settings End Date
   matching the event so it quietly disappears afterward without
   touching the evergreen content around it. --- */
.dc-event-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  background: #ff751f;
  color: #fff;
  padding: 16px 20px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
}
.dc-event-banner a {
  background: #fff;
  color: #ff751f;
  padding: 9px 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* --- Full event details card (also time-boxed via Section Settings) --- */
.dc-event-card { background: var(--dc-navy-dark); color: #fff; border-radius: 10px; padding: 48px 40px; text-align: center; box-shadow: var(--dc-shadow); }
.dc-event-card h3 { font-size: 30px; margin: 0 0 10px; color: #fff; }
.dc-event-when { font-size: 18px; font-weight: 600; margin-bottom: 4px; opacity: .9; }
.dc-event-where { font-size: 15px; margin-bottom: 20px; opacity: .75; }
.dc-event-list { list-style: none; padding: 0; margin: 20px auto; display: inline-block; text-align: left; }
.dc-event-list li { padding: 8px 0; font-size: 16px; }
.dc-event-list li::before { content: "•"; color: #ff751f; margin-right: 10px; font-weight: 800; }
.dc-event-partners { margin-top: 24px; font-size: 14px; opacity: .7; letter-spacing: .02em; }
.dc-event-price { margin-top: 20px; font-size: 15px; font-weight: 700; color: #ff751f; }
