/*
 * ebikes.css
 * Page-specific styles for the Electric Bicycles (e-bikes) page.
 *
 * Requires main-style.css to be loaded FIRST (shared tokens + base hero,
 * section, animation and disclaimer rules), which itself sits on top of the
 * City framework (mv-main.css / mv-style.css).
 *
 * Contents:
 *   1. Page tokens (:root)        3. Page-specific layout (.ps-*)
 *   2. Hero variant               4. Responsive adjustments
 */

/* ==========================================================================
   1. PAGE TOKENS  — e-bike-specific colors (with fallbacks to brand tokens)
   ========================================================================== */
:root {
  --ps-blue:    var(--brand-blue, #1a3a6b);
  --ps-orange:  var(--vims-accent, #f5a800);
  --ps-green:   #2e7d32;
  --ps-red:     #b3261e;
  --ps-surface: var(--neutral-gray-light, #f1f1f2);
  --ps-text:    var(--neutral-gray-dark, #4d515f);
  --ps-radius:  10px;
}


/* ==========================================================================
   2. HERO VARIANT  (overrides the base hero from main-style.css)
   ========================================================================== */
.hero--ps { min-height: 400px; }

.hero-bg--ps {
  background-image: url("../img/ebikes-hero.png");
  background-attachment: scroll;
  background-position: center;
}

.hero--ps .hero-title { margin-top: 0; }


/* ==========================================================================
   3. PAGE-SPECIFIC LAYOUT
   ========================================================================== */

/* ---------- Responsive grid ---------- */
.ps-grid { display: grid; gap: 1.6rem; }
.ps-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ps-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ps-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ps-grid.pad-top { margin-top: 1.5rem; }


/*----------- Sections ---------------------------------*/
.ps-section-2 {
	background-image: linear-gradient( to bottom, rgba(14, 30, 70, 0.65), rgba(14, 30, 70, 0.85)),
    url('../img/ebikes-bikelane-hero.png');
	background-repeat: no-repeat;
	background-size: cover;
	min-height: 500px;
	align-items: center;
	justify-content: center;
}

.ps-section-3 {
	background-image: linear-gradient( to bottom, rgba(14, 30, 70, 0.65), rgba(14, 30, 70, 0.85)),
    url('../img/ebikes-bikelane-hero.png');
	min-height: 500px;
	align-items: center;
	justify-content: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.ps-partnership {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.ps-partnership img {
	position: relative;
	z-index: 0;
}

.ps-partnership p {
	margin-top: 10px;
	margin-bottom: -45px;
	z-index: 1;
}
/* ---------- Inline links ---------- */
.ps-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-display, sans-serif);
  font-weight: 700; font-size: 1.4rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ps-blue);
  text-decoration: none; margin-top: 0.6rem;
  transition: gap 0.2s ease, color 0.2s ease;
}
.ps-link + .ps-link { margin-left: 1.2rem; }
.ps-link:hover { gap: 0.7rem; color: var(--ps-orange); text-decoration: none; }

/* ---------- Rule cards (sidewalks / trails) ---------- */
.ps-rule-card {
  background: var(--vims-white, #fff);
  border-radius: var(--ps-radius);
  border-top: 4px solid var(--ps-green);
  box-shadow: var(--vims-shadow-sm, 0 2px 8px rgba(0,0,0,0.08));
  padding: 1.6rem 1.7rem 1.8rem;
}
.ps-rule-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.ps-rule-icon {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--ps-green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.ps-rule-title {
  font-family: var(--font-display, sans-serif);
  font-size: 2rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--ps-blue); margin: 0;
}
.ps-rule-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.ps-rule-list li {
  position: relative; padding-left: 1.6rem;
  font-size: 1.45rem; line-height: 1.6; color: var(--ps-text);
}
.ps-rule-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--ps-green); font-weight: 700;
}
.ps-rule-list li.ps-prohibited { color: var(--ps-red); }
.ps-rule-list li.ps-prohibited::before { content: "\2715"; color: var(--ps-red); }

/* ---------- Binary contrast (legal vs not) ---------- */
.ps-binary { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.6rem; align-items: stretch; }
.ps-binary-col {
  background: var(--vims-white, #fff);
  border-radius: var(--ps-radius);
  box-shadow: var(--vims-shadow-md, 0 6px 20px rgba(0,0,0,0.13));
  overflow: hidden; display: flex; flex-direction: column;
}
.ps-binary-head {
  color: #fff; padding: 1rem 1.4rem;
  font-family: var(--font-display, sans-serif);
  font-size: 1.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.ps-binary-head--legal { background: var(--ps-green); }
.ps-binary-head--illegal { background: var(--ps-red); }
.ps-binary-cite {
  font-size: 1.1rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: none; opacity: 0.9; width: 100%;
}
.ps-class-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: #e2e2e6; padding: 1px; flex: 1;
}
.ps-class-card { background: #fff; padding: 1.2rem 1rem; text-align: center; }
.ps-class-card--mandate { background: #fbf6e7; }
.ps-class-icon { font-size: 2.6rem; color: var(--ps-blue); margin-bottom: 0.5rem; }
.ps-class-icon--red { color: var(--ps-red); }
.ps-class-name {
  font-family: var(--font-display, sans-serif);
  font-size: 1.7rem; font-weight: 700; text-transform: uppercase;
  color: var(--ps-blue); margin: 0 0 0.2rem;
}
.ps-class-tag { font-size: 1.25rem; font-weight: 600; color: var(--ps-text); margin: 0 0 0.3rem; }
.ps-class-speed {
  font-family: var(--font-display, sans-serif);
  font-size: 1.6rem; font-weight: 700; color: var(--ps-orange); margin: 0 0 0.6rem;
}
.ps-class-card ul { list-style: none; margin: 0; padding: 0; text-align: left; }
.ps-class-card ul li {
  font-size: 1.2rem; line-height: 1.45; color: var(--ps-text);
  padding-left: 0.9rem; position: relative; margin-bottom: 0.3rem;
}
.ps-class-card ul li::before { content: "\2022"; position: absolute; left: 0; color: var(--ps-green); }
.ps-class-card--mandate p { font-size: 1.25rem; line-height: 1.5; color: var(--ps-text); text-align: left; margin: 0; }

.ps-illegal-body { padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.8rem; }
.ps-illegal-vehicle { text-align: center; }
.ps-illegal-vehicle .ps-class-icon { font-size: 3.4rem; }
.ps-illegal-vehicle p { font-size: 1.35rem; line-height: 1.55; color: var(--ps-text); margin: 0.3rem 0 0; }
.ps-illegal-subhead {
  font-family: var(--font-display, sans-serif);
  font-size: 1.5rem; font-weight: 700; text-transform: uppercase;
  color: var(--ps-red); margin: 0.4rem 0 0;
}
.ps-illegal-list { list-style: none; margin: 0; padding: 0; }
.ps-illegal-list li {
  font-size: 1.35rem; line-height: 1.5; color: var(--ps-text);
  padding-left: 1.2rem; position: relative; margin-bottom: 0.3rem;
}
.ps-illegal-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--ps-red); font-weight: 700; }
.ps-warning-line { color: var(--ps-red); font-size: 1.3rem; line-height: 1.5; margin: 0.4rem 0 0; }

/* ---------- Callout boxes ---------- */
.ps-callout {
  border-radius: var(--ps-radius); padding: 1.6rem 1.5rem;
  border-top: 5px solid;
  background: var(--vims-white, #fff);
  box-shadow: var(--vims-shadow-sm, 0 2px 8px rgba(0,0,0,0.08));
}
.ps-callout--blue { border-top-color: var(--ps-blue); }
.ps-callout--orange { border-top-color: var(--ps-orange); }
.ps-callout--red { border-top-color: var(--ps-red); }
.ps-callout-icon { font-size: 2.2rem; margin-bottom: 0.5rem; }
.ps-callout--blue .ps-callout-icon { color: var(--ps-blue); }
.ps-callout--orange .ps-callout-icon { color: var(--ps-orange); }
.ps-callout--red .ps-callout-icon { color: var(--ps-red); }
.ps-callout-title {
  font-family: var(--font-display, sans-serif);
  font-size: 1.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.02em; color: var(--ps-blue); margin: 0 0 0.5rem;
}
.ps-callout p { font-size: 1.4rem; line-height: 1.6; color: var(--ps-text); margin: 0; }
.ps-badge {
  display: inline-block; margin-top: 0.9rem; padding: 0.35rem 0.8rem;
  background: rgba(26,58,107,0.08); color: var(--ps-blue);
  font-size: 1.2rem; font-weight: 700; letter-spacing: 0.05em; border-radius: 999px;
}

/* ---------- Resource cards ---------- */
.ps-resource-card {
  display: block; background: var(--vims-white, #fff);
  border-radius: var(--ps-radius); padding: 1.6rem 1.5rem;
  box-shadow: var(--vims-shadow-sm, 0 2px 8px rgba(0,0,0,0.08));
  border-left: 4px solid transparent; text-decoration: none; color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
a.ps-resource-card:hover {
  transform: translateY(-3px); text-decoration: none;
  box-shadow: var(--vims-shadow-md, 0 6px 20px rgba(0,0,0,0.13));
  border-left-color: var(--ps-orange);
}
.ps-resource-icon { font-size: 2.4rem; color: var(--ps-blue); margin-bottom: 0.6rem; }
.ps-resource-card h3 {
  font-family: var(--font-display, sans-serif);
  font-size: 1.85rem; font-weight: 700; color: var(--ps-blue); margin: 0 0 0.4rem;
}
.ps-resource-card p { font-size: 1.4rem; line-height: 1.6; color: var(--ps-text); margin: 0 0 0.6rem; }

/* ---------- Partner network ---------- */
.ps-subsection-title {
  font-family: var(--font-display, sans-serif);
  font-size: 2.2rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ps-blue);
  margin: 3rem 0 1.4rem; padding-top: 1.6rem; border-top: 2px solid #e2e2e6;
}
.ps-partner-card {
  background: var(--ps-surface); border-radius: var(--ps-radius);
  padding: 1.5rem 1.4rem; display: flex; flex-direction: column;
  border-bottom: 4px solid var(--ps-blue);
}
.ps-partner-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; color: var(--ps-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; margin-bottom: 0.8rem;
  box-shadow: var(--vims-shadow-sm, 0 2px 8px rgba(0,0,0,0.08));
}
.ps-partner-card h4 {
  font-family: var(--font-display, sans-serif);
  font-size: 1.7rem; font-weight: 700; color: var(--ps-blue);
  text-transform: uppercase; letter-spacing: 0.02em; margin: 0 0 0.5rem;
}
.ps-partner-card p { font-size: 1.35rem; line-height: 1.55; color: var(--ps-text); margin: 0 0 0.8rem; flex: 1; }
.ps-partner-card .ps-link { margin-top: 0; display: flex; }
.ps-partner-card .ps-link + .ps-link { margin-left: 0; margin-top: 0.4rem; }

/* ---------- Report + workshop ---------- */
.ps-report-row { align-items: flex-start; }
.ps-report-list { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.ps-report-list li {
  font-size: 1.6rem; line-height: 1.6; color: rgba(255,255,255,0.9);
  padding-left: 1.7rem; position: relative;
}
.ps-report-list li::before {
  content: "\f071"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; color: var(--ps-orange); font-size: 1.2rem; top: 2px;
}
.ps-report-list a { color: var(--ps-orange); }
.ps-workshop {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-top: 4px solid var(--ps-orange);
  border-radius: var(--ps-radius);
  box-shadow: var(--vims-shadow-md, 0 6px 20px rgba(0,0,0,0.13));
  padding: 1.6rem 1.6rem 1.8rem;
  color: var(--ps-blue);
  position: relative;
  z-index: 2;
}
.ps-workshop-icon { font-size: 2.4rem; color: var(--ps-orange); margin-bottom: 0.5rem; }
.ps-workshop-title {
  font-family: var(--font-display, sans-serif);
  font-size: 2rem; font-weight: 700; text-transform: uppercase;
 margin: 0 0 0.6rem;
}
.ps-workshop p { font-size: 1.4rem; line-height: 1.6; margin: 0 0 0.6rem; }
.ps-workshop-meta { display: flex; align-items: flex-start; gap: 0.6rem; }
.ps-workshop-meta i { color: var(--ps-orange); margin-top: 3px; }

/* ==========================================================================
   iFrame
   ========================================================================== */

iframe {
	min-height: 550px;
}
/* ---------- In-page jump targets ----------
   Offset for the sticky sub-nav so anchored sections aren't hidden behind it */
#where-to-ride,
#partners,
#trail-map { scroll-margin-top: 90px; }

/* Interactive map embed */
.ps-map-embed iframe { width: 100%; display: block; border: 0; }

/* ==========================================================================
   4. RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 900px) {
  .ps-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ps-binary { grid-template-columns: 1fr; }
  .ps-class-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .ps-report-row { flex-direction: column; }
  .ps-report-row .seven.columns,
  .ps-report-row .five.columns { width: 100%; margin-left: 0; }

  /* Hero overlay: drop the diagonal clip so the dark gradient covers the
     entire hero image for legible text on small screens */
  .hero--ps .hero-overlay {
    clip-path: none;
    background: linear-gradient(
      to bottom,
      rgba(14, 30, 70, 0.65),
      rgba(14, 30, 70, 0.95)
    );
  }

  /* Workshop card: full width on mobile */
  .ps-section-1 .five.columns {
    width: 100%;
    margin-left: 0;
    float: none;
  }
  .ps-section-1 .ps-workshop { width: 100%; }
}
@media (max-width: 670px) {
  .ps-grid--2, .ps-grid--3, .ps-grid--4 { grid-template-columns: 1fr; }
  .ps-class-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   5. FAQ ACCORDION  (awsAccordion plugin — scoped overrides, page blue theme)
   ========================================================================== */
.ps-faq { margin-top: 1.5rem; }
.ps-faq ul { list-style: none; margin: 0; padding: 0; }

/* Question bar (the clickable header) */
#faqAccordion.accordion-ver > ul > li {
  position: relative;
  margin: 0 0 10px;
  background: var(--ps-blue);
  border-radius: var(--ps-radius);
  padding-top: 0 !important; /* cancel the plugin's inline title spacing */
  overflow: hidden;
  transition: background-color .2s ease;
}
#faqAccordion.accordion-ver > ul > li:hover,
#faqAccordion.accordion-ver > ul > li.active { background: #16335f; }
#faqAccordion.accordion-ver > ul > li.last { margin-bottom: 0; }

#faqAccordion.accordion-ver > ul > li > h3 {
  position: static;
  margin: 0;
  padding: 16px 48px 16px 18px;       /* right padding leaves room for the chevron */
  color: #fff;
  font-size: 2.05rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}
#faqAccordion.accordion-ver > ul > li > h3:focus {
  outline: 3px solid var(--ps-orange);
  outline-offset: -3px;
}

/* Chevron icon — plugin emits FA4-style names; FA6 needs family + glyph set */
#faqAccordion.accordion-ver > ul > li > i {
  position: absolute;
  right: 18px;
  top: 18px;
  margin: 0;
  padding: 0 !important;
  color: #fff;
  font-size: 16px;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-style: normal;
  line-height: 1.4;
}
#faqAccordion.accordion-ver > ul > li > i.fa-chevron-down::before { content: "\f078"; }
#faqAccordion.accordion-ver > ul > li > i.fa-chevron-up::before   { content: "\f077"; }

/* Answer panel */
#faqAccordion.accordion-ver > ul > li > div {
  background: #fff;
  border-radius: 0 0 var(--ps-radius) var(--ps-radius);
}
.ps-faq-answer { padding: 16px 18px; color: var(--ps-text); }
.ps-faq-answer p { margin: 0; line-height: 1.6; font-size: 1.8rem;}
.ps-faq-answer p + p { margin-top: .75rem; }

.ps-hero-logo {
	margin-left: 3.5%;
}
