/*
 * main-style.css
 * Shared, site-wide design tokens + reusable layout rules for City pages.
 * Load this AFTER the City framework (mv-main.css / mv-style.css) and
 * BEFORE any page-specific stylesheet (e.g. ebikes.css), so pages can use
 * these tokens and override these rules.
 *
 * Contents:
 *   1. Design tokens (:root)      4. Entrance animation
 *   2. Hero banner (base)         5. Disclaimer note
 *   3. Section layout
 */

/* ==========================================================================
   1. DESIGN TOKENS  — semantic aliases on top of the City brand variables
   ========================================================================== */
:root {
  --primary: #1a3a6b;
  --accent:  #f5a800;
  --white:   var(--neutral-white, #ffffff);
  --blue: var(--brand-blue, #1a3a6b);
  --orange: var(--vims-accent, #f5a800);
  --green: #2e7d32; 
  --red: #b3261e;
  --surface: var(--neutral-gray-light, #f1f1f2);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.13);

  --font-display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --radius:  10px;
  --text: var(--neutral-gray-dark, #4d515f);
}
/* ==========================================================================
   LAYOUT GRID
   ========================================================================== */

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

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

/*----------- Sections ---------------------------------*/
.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;
}

.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;
}

/* ==========================================================================
 HERO BANNER  (base — pages add their own .hero--<name> background)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  background-color: var(--primary);
  border-top: 3px solid var(--accent);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* The diagonal dark blue overlay */
.hero-overlay {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 30, 70, 0.65),
    rgba(14, 30, 70, 0.95)
  );
  clip-path: polygon(0% 0%,0% 100%,50% 100%,35% 0% );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 0 3.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-left: 4rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;

}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 2.4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0.6rem 0 0;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .hero { min-height: 320px; }
}


/* ==========================================================================
   SECTION LAYOUT
   ========================================================================== */
section {
	padding: 4rem 0;
	display: flex;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 2.42rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 3.4vw, 4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--brand-blue);
  margin: 0 0 1.2rem;
  line-height: 1.1;
}

/* On the dark blue band, heading + eyebrow flip to light */
.bk-blue .section-title  { color: var(--neutral-white); }
.bk-blue .section-eyebrow { color: var(--accent); }

.row { display: flex; flex-wrap: wrap; }


/* WORKSHOP CARD */

.workshop {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md, 0 6px 20px rgba(0,0,0,0.13));
  padding: 1.6rem 1.6rem 1.8rem;
  color: var(--blue);
  position: relative;
  z-index: 2;
}
.workshop-icon { font-size: 2.4rem; color: var(--orange); margin-bottom: 0.5rem; }
.workshop-title {
  font-family: var(--font-display, sans-serif);
  font-size: 2rem; font-weight: 700; text-transform: uppercase;
 margin: 0 0 0.6rem;
}
.workshop p { font-size: 1.4rem; line-height: 1.6; margin: 0 0 0.6rem; }
.workshop-meta { display: flex; align-items: flex-start; gap: 0.6rem; }
.workshop-meta i { color: var(--orange); margin-top: 3px; }


/* ==========================================================================
    ENTRANCE ANIMATION
   ========================================================================== */
@keyframes vimsSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim    { animation: vimsSlideUp 0.6s ease both; }
.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.22s; }

/* =========================================================================
	Panels
    ========================================================================*/
.panel {
  background: var(--white, #fff);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.08));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.panel-head {
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display, sans-serif);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
}
.panel-body { padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.feature { display: flex; gap: 1.1rem; align-items: flex-start; }
.feature-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
}
.feature-icon--blue { background: rgba(26,58,107,0.10); color: var(--blue); }
.feature-title {
  font-family: var(--font-display, sans-serif);
  font-size: 2.1rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--blue); margin: 0 0 0.4rem;
}
.feature p { font-size: 1.6rem; line-height: 1.6; color: var(--text); margin: 0; }

/* ==========================================================================
   FLEX BOX ADDITIONS
   ========================================================================== */

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


/* ==========================================================================
   Margin & Padding
   ========================================================================== */
.padding-no-bottom {padding-bottom: 0 !important;}

/* ==========================================================================
   Text Color
   ========================================================================== */
.txt-light { color: #fff !important;}
.txt-dark { color: #000 !important;}
.txt-yellow { color: var(--accent) !important;}

.txt-center { text-align: center; }
.txt-right  { text-align: right; }
.txt-left   { text-align: left; }



/* ==========================================================================
   5. DISCLAIMER NOTE  (footer strip inside a dark blue band)
   ========================================================================== */
.req-note {
  width: 100%;
  margin: 4rem auto 0;
  padding: 2.1rem 2rem;
  background: rgba(255,255,255,0.08);
  border-top: 4px solid var(--accent);
  border-radius: 4px;
  font-size: 1.7rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  text-align: center;
}

/* ==========================================================================
   STICKY SUB-NAV
   ========================================================================== */
.subnav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid rgba(0,0,0,0.08);
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	border-top: 4px solid var(--alert-amber);
}

.subnav .container {
	display: flex;
	align-items: center;
}

.subnav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	width: 100%;
}

.subnav-list li { margin: 5px; }

.subnav-link {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	padding: 1.05rem 1.1rem;
	font-family: var(--font-display);
	font-size: 1.65rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--alert-text-muted);
	text-decoration: none;
	border-bottom: 3px solid transparent;
	transition: color var(--alert-transition), border-color var(--alert-transition), background var(--alert-transition);
	white-space: nowrap;
}

.subnav-link i { color: var(--alert-blue); transition: color var(--alert-transition); }

.subnav-link:hover {
	color: var(--alert-blue);
	background: rgba(46,90,147,0.05);
	text-decoration: none;
}

.subnav-link.is-active {
	color: var(--alert-red);
	border-bottom-color: var(--alert-red);
	background: rgba(196,38,46,0.04);
}
.subnav-link.is-active i { color: var(--alert-red); }

.subnav-toggle {
	display: none;
	width: 100%;
	background: transparent;
	border: none;
	padding: 1rem 0;
	font-family: var(--font-display);
	font-size: 1.6rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--alert-blue);
	text-align: left;
	cursor: pointer;
}

@media (max-width: 980px) {
	.subnav-list {
		display: none;
		flex-direction: column;
		width: 100%;
		padding: 0.5rem 0 1rem;
		border-top: 1px solid rgba(0,0,0,0.06);
	}
	.subnav-list li { margin: 0; }
	.subnav-list.is-open { display: flex; }
	.subnav-link {
		width: 100%;
		padding: 1rem 0.75rem;       /* >=44px touch target */
		min-height: 44px;
		border-bottom: none;
		border-left: 3px solid transparent;
		white-space: normal;          /* allow long labels to wrap on small screens */
	}
	.subnav-link.is-active { border-bottom: none; border-left-color: var(--alert-red); }
	.subnav-toggle { display: block; padding: 1rem 0.75rem; min-height: 48px; }
	.subnav .container { flex-direction: column; align-items: stretch; padding: 0 12px; }
	.hero-content { padding-left: 5px;}
}


/* ==========================================================================
   MISC STYLING
   ========================================================================== */
.bold {
	font-weight: 700;
}


/* ##########################################################################
   SHARED SITE CHROME  —  reusable across all pages
   (header, Google Translate, primary nav, search bar, alert banner, footer)
   Added on top of the framework. Uses additive --* tokens only, so it
   never overrides existing framework/page variables.
   ########################################################################## */

/* --- extra shared tokens (additive — safe everywhere) --- */
:root {
  --blue-mid:    #2e5a93;
  --blue-deep:   #0e1e46;
  --accent-dark: #d98e00;
  --red:         #c4262e;
  --gray-bg:     #f4f6f9;
  --gray-line:   #e2e6ec;
  --text:        #23282f;
  --text-muted:  #5a6472;
  --radius:      8px;
  --transition:  0.2s ease;
  --font-body:   'Lato', Arial, Helvetica, sans-serif;
}

/* --- skip link --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.6rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* --- utility bar (incl. Google Translate slot + social) --- */
.utility-bar {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.9);
  font-size: 1.4rem;
}
.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 40px;
  flex-wrap: wrap;
}
.utility-translate { cursor: pointer; white-space: nowrap; }
.utility-links {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.utility-links a,
.utility-translate { color: rgba(255,255,255,0.9); }
.utility-links a:hover { color: var(--accent); text-decoration: none; }
.utility-social { display: flex; gap: 1.1rem; }
.utility-social a {
  color: rgba(255,255,255,0.9);
  font-size: 1.6rem;
  line-height: 1;
  transition: color var(--transition);
}
.utility-social a:hover { color: var(--accent); text-decoration: none; }

/* --- site header + logo --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 78px;
}
.site-logo img { height: 56px; width: auto; }

/* --- mobile menu button (hidden on desktop) --- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: var(--primary);
  color: #fff;
  border: 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius);
  cursor: pointer;
}

/* --- primary nav --- */
.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav li { position: relative; }
.primary-nav > ul > li > a,
.primary-nav > ul > li > button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: transparent;
  border: 0;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li > button:hover {
  background: rgba(46,90,147,0.08);
  color: var(--blue-mid);
  text-decoration: none;
}
.primary-nav button .fa-chevron-down {
  font-size: 1.2rem;
  transition: transform var(--transition);
}
.primary-nav button[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }

/* --- nav dropdowns --- */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--gray-line);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.6rem 0;
  display: none;
  z-index: 50;
}
.primary-nav button[aria-expanded="true"] + .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 0.9rem 1.6rem;
  font-size: 1.6rem;
  color: var(--text);
  border-left: 3px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}
.nav-dropdown a:hover {
  background: var(--gray-bg);
  border-left-color: var(--accent);
  color: var(--primary);
  text-decoration: none;
}

/* --- emergency alert banner --- */
.alert-banner { background: var(--red); color: #fff; }
.alert-banner .container {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  font-size: 1.6rem;
}
.alert-banner a { color: #fff; text-decoration: underline; font-weight: 700; }
.is-hidden { display: none !important; }

/* --- reusable search bar --- */
.hero-search {
  display: flex;
  max-width: 620px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-search input {
  flex: 1;
  border: 0;
  padding: 1.4rem 1.6rem;
  font-family: var(--font-body);
  font-size: 1.7rem;
  color: var(--text);
}
.hero-search input:focus { outline: none; }
.hero-search button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 0;
  cursor: pointer;
  background: var(--accent);
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0 2rem;
  transition: background var(--transition);
}
.hero-search button:hover { background: var(--accent-dark); }

/* --- reusable accent button --- */
.btn-accent {
  display: inline-block;
  background: var(--accent);
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  text-decoration: none;
}

/* --- sitewide footer --- */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.85);
  font-size: 1.6rem;
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-logo img { height: 64px; margin-bottom: 1.2rem; }
.site-footer p { margin: 0 0 1.2rem; line-height: 1.7; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.site-footer h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.2rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 0.7rem; }
.footer-social { display: flex; gap: 1.2rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.7rem;
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--accent); color: var(--blue-deep); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 1.4rem;
  color: rgba(255,255,255,0.7);
}
.footer-bottom a { color: rgba(255,255,255,0.8); }

/* --- shared mobile behaviour for the header/nav --- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--gray-line);
    box-shadow: var(--shadow-md);
    padding: 0.8rem 0;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav > ul > li > a,
  .primary-nav > ul > li > button {
    width: 100%;
    justify-content: space-between;
    border-radius: 0;
    padding: 1.3rem 2rem;
    min-height: 48px;
  }
  .nav-dropdown {
    position: static;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    min-width: 0;
    padding: 0;
    background: var(--gray-bg);
  }
  .nav-dropdown a { padding-left: 3.4rem; }
}

@media (max-width: 600px) {
  .hero-search { flex-direction: column; }
  .hero-search button { padding: 1.2rem; justify-content: center; }
}
