/* ==========================================================================
   eCommerce Placement: City Landing Pages
   Shared stylesheet for /ecommerce-recruiting-[city]/
   Upload to: public_html/css/city-pages.css
   Bust cache with ?v=N on the <link> tag after every edit.
   ========================================================================== */

:root {
  --navy: #1a3a6b;
  --navy-dark: #12294d;
  --navy-light: #2b5490;
  --sky: #e8f0fb;
  --sky-deep: #d3e3f7;
  --teal: #2a9d8f;
  --ink: #1c2434;
  --slate: #56637a;
  --line: #dfe5ee;
  --paper: #ffffff;
  --paper-alt: #f7f9fc;
}

/* --------------------------------------------------------------------------
   Reset. These pages have no page-level <style> block, so they inherit the
   browser default body margin (8px), which pushes the hero away from the nav
   and insets it on the sides. Zero it here.
   -------------------------------------------------------------------------- */

body.city-page { margin: 0; }

.city-page *,
.city-page *::before,
.city-page *::after { box-sizing: border-box; }

/* includes/nav.php is position:fixed with height:68px AND a 1px border-bottom.
   Under content-box that renders 69px tall. Force border-box so the total is
   exactly 68px and the hero can sit flush against it. */
.city-page nav { box-sizing: border-box; }

.city-page {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  line-height: 1.65;
  /* Exactly the nav height. Hero starts on the nav's bottom border. */
  padding-top: 68px;
}

/* Guard: includes/nav.php styles the bare `nav` element selector, which would
   capture any <nav> on this page. Breadcrumbs are gone, but this keeps any
   future <nav> inside the page body from being pinned to the viewport top. */
.city-page main nav,
.city-page section nav {
  position: static;
  height: auto;
  padding: 0;
  background: none;
  backdrop-filter: none;
  border-bottom: none;
}

.city-page h1,
.city-page h2,
.city-page h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.city-page em {
  font-style: italic;
  color: var(--teal);
}

.city-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.city-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

/* ---------- Hero (matches /ecommerce-recruiting-canada/) ---------- */

.city-hero {
  background: var(--navy);
  color: #fff;
  padding: 84px 0 92px;
}

.city-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: start;
}

.city-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cdd8e8;
  margin-bottom: 30px;
}

.city-eyebrow-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8fd4cb;
  flex: none;
}

.city-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  margin: 0 0 26px;
  max-width: 18ch;
}

/* Canada page uses a white italic accent in the headline, not a color shift */
.city-hero h1 em { color: #fff; }

.city-hero p {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: #cdd8e8;
  max-width: 56ch;
  margin: 0 0 34px;
}

.city-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.city-btn {
  display: inline-block;
  padding: 15px 30px;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.city-btn-primary { background: #fff; color: var(--navy); }
.city-btn-primary:hover { background: #e8eef7; }

.city-btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.city-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.city-btn-solid { background: var(--navy); color: #fff; }
.city-btn-solid:hover { background: var(--navy-dark); }

.city-btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.city-btn-outline:hover { background: var(--sky); }

/* ---------- Hero stat card ---------- */

.city-hero-stats {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.city-stat-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 10px;
}

.city-stat-label {
  font-size: 0.9rem;
  color: #b9c9df;
  line-height: 1.5;
}

/* ---------- Sections ---------- */

.city-section { padding: 68px 0; }
.city-section-alt { background: var(--paper-alt); }

.city-section h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin: 0 0 16px;
  max-width: 24ch;
}

.city-lede {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 68ch;
  margin: 0 0 34px;
}

.city-body p {
  color: var(--slate);
  max-width: 72ch;
  margin: 0 0 18px;
}

/* ---------- Card grid ---------- */

.city-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.city-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 24px;
}

.city-card-icon { font-size: 1.6rem; margin-bottom: 12px; }

.city-card h3 {
  font-size: 1.12rem;
  margin: 0 0 10px;
}

.city-card p {
  font-size: 0.95rem;
  color: var(--slate);
  margin: 0;
}

/* ---------- Roles grid ---------- */

.city-roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.city-role-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}

.city-role-group h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 14px;
}

.city-role-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.city-role-group li {
  font-size: 0.94rem;
  color: var(--ink);
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.city-role-group li:last-child { border-bottom: none; }

/* ---------- Salary table ---------- */

.city-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.city-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.city-table th {
  background: var(--sky);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.city-table td {
  padding: 14px 20px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.city-table tr:last-child td { border-bottom: none; }
.city-table tr:nth-child(even) td { background: #fbfcfe; }
.city-table td:last-child { font-weight: 700; color: var(--navy); white-space: nowrap; }

.city-table-note {
  font-size: 0.86rem;
  color: var(--slate);
  margin-top: 14px;
  max-width: 72ch;
}

/* ---------- Process ---------- */

.city-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.city-step-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sky-deep);
  line-height: 1;
  margin-bottom: 10px;
}

.city-step h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.city-step p {
  font-size: 0.94rem;
  color: var(--slate);
  margin: 0;
}

/* ---------- FAQ ---------- */

.city-faq { max-width: 860px; }

.city-faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}

.city-faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  list-style: none;
  position: relative;
  padding-right: 52px;
}

.city-faq summary::-webkit-details-marker { display: none; }

.city-faq summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--teal);
}

.city-faq details[open] summary::after { content: '\2212'; }

.city-faq .city-faq-body {
  padding: 0 22px 20px;
  color: var(--slate);
  font-size: 0.96rem;
}

.city-faq .city-faq-body p { margin: 0 0 12px; }
.city-faq .city-faq-body p:last-child { margin-bottom: 0; }
.city-faq a { color: var(--navy); font-weight: 600; }

/* ---------- Pill band (cross-links) ---------- */

.city-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.city-pill {
  display: inline-block;
  padding: 9px 16px;
  background: var(--sky);
  border: 1px solid var(--navy);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.15s ease;
}

.city-pill:hover { background: var(--sky-deep); }

/* ---------- CTA ---------- */

.city-cta {
  background: var(--navy);
  color: #fff;
  padding: 78px 0;
  text-align: center;
}

.city-cta h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin: 0 auto 14px;
  max-width: 22ch;
}

.city-cta h2 em { color: #8fd4cb; }

.city-cta p {
  color: #d5e0f0;
  max-width: 56ch;
  margin: 0 auto 28px;
}

.city-cta .city-btn-row { justify-content: center; }

@media (max-width: 900px) {
  .city-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .city-hero-stats { flex-direction: row; flex-wrap: wrap; gap: 28px 48px; padding: 30px 28px; }
  .city-hero-stats .city-stat { flex: 1 1 150px; }
}

@media (max-width: 640px) {
  .city-hero { padding: 56px 0 60px; }
  .city-hero-stats { flex-direction: column; gap: 26px; }
  .city-section { padding: 48px 0; }
  .city-btn { width: 100%; text-align: center; }
}
