/* =========================================================
   Asphalt Intelligence — MoMA-inspired look
   Stark black/white, oversized type, sharp corners,
   generous whitespace, minimal chrome.
   (Bootstrap still loaded first)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink: #000;                 /* primary text */
  --paper: #fff;               /* background */
  --muted: #6b6b6b;           /* secondary text */
  --rule: #e6e6e6;            /* subtle borders */
  --accent: #000;             /* buttons/links (black) */

  --radius: 0;                /* sharp corners */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);

  /* Bootstrap bridge */
  --bs-body-bg: var(--paper);
  --bs-body-color: var(--ink);
  --bs-border-color: var(--rule);
  --bs-border-radius: 0;
  --bs-border-radius-lg: 0;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Use your loaded fonts (Archivo + League Spartan) */
body { font-family: 'Archivo', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
h1,h2,h3,h4,h5,h6 {
  font-family: 'League Spartan', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 .6rem 0;
  line-height: .95;
}

/* Headline scale: BIG, confident */
h1 { font-size: clamp(3rem, 8vw, 7rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }

/* Paragraph rhythm */
p, ul, ol, pre, blockquote { margin-bottom: 1.1rem; }
ul, ol { padding-left: 1.25rem; }
img { display:block; max-width:100%; height:auto; }

/* Constrain main text width a bit for readability */
main.container { max-width: 1120px; }

/* ---------- Top nav (ghost) ---------- */
.navbar--ghost {
  background: transparent !important;
  border-bottom: 1px solid var(--rule);
  padding-block: .5rem;
}
.navbar-toggler {
  border: 0; padding: .35rem .5rem;
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
  width: 1.75rem; height: 1.75rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat:no-repeat; background-position:center; background-size:100% 100%;
}

/* ---------- Full-screen menu (offcanvas) ---------- 
.menu-canvas.offcanvas {
  height: 100vh;
  background: var(--paper);
  color: var(--ink);
  border: none;
}
.menu-canvas .offcanvas-header { border: none; padding: 1rem 1.25rem; }
.menu-canvas .btn-close { filter: invert(0); opacity:.75; }
.menu-canvas .offcanvas-body {
  display:flex; flex-direction:column; justify-content:center;
  gap: 1rem; padding: clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
}
*/


/* Big, museum-like menu links 
.menu-list { list-style:none; margin:0; padding:0; }
.menu-list a {
  display:inline-block;
  text-decoration:none;
  color: var(--ink);
  font-weight: 900;
  line-height: .95;
  font-size: clamp(2.25rem, 7vw, 7rem);
  letter-spacing: -0.02em;
  border-bottom: 2px solid transparent;
}
.menu-list a:hover {
  border-bottom-color: var(--ink);
}
*/

/* ---------- Links in body ---------- */
a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
a:hover { border-bottom-color: var(--ink); }

/* ---------- Buttons: black rectangles, invert on hover ---------- 
.btn,
.btn-primary {
  background: var(--accent) !important;
  color: #fff !important;
  border: 2px solid var(--accent) !important;
  border-radius: var(--radius);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: .6rem 1.1rem;
  transition: transform .06s ease, background .2s ease, color .2s ease;
}
.btn:hover,
.btn-primary:hover {
  background: transparent !important;
  color: var(--ink) !important;
}
.btn:active,
.btn-primary:active { transform: translateY(1px); box-shadow:none; }
*/


/* ---------- Cards / panels (subtle, minimal) ---------- */
.card,
.panel,
.alert {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- Forms: minimal chrome ---------- */
.form-control, .form-select, .form-check-input {
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}
.form-control:focus, .form-select:focus {
  border-color: var(--ink);
  box-shadow: none;
}

/* ---------- Hero: full-bleed, no rounded, no overlay ---------- */
.hero-flat {
  border-radius: 0 !important;
  min-height: 68vh;
}
.hero-flat::after { content:none !important; }
.hero-flat .hero-content { display:none !important; }

/* Generic full-bleed hero wrapper you might use */
.hero-bleed {
  position:relative; min-height:68vh; overflow:hidden;
  display:grid; align-items:end; background:#f4f4f4;
}
.hero-bleed .hero-bg {
  position:absolute; inset:0; background-size:cover; background-position:center;
}

/* ---------- Section spacers ---------- */
.section { padding-block: 3rem; }
.section-sm { padding-block: 1.75rem; }

/* ---------- Utilities ---------- */
.rule { border-top: 1px solid var(--rule); }
.stack > * + * { margin-top: 1rem; }
.flow > * + * { margin-top: .75rem; }

/* ---------- Below-hero headings (MoMA vibe) ---------- */
.page-headline,
.below-hero-title {
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.page-headline { font-size: clamp(3rem, 8vw, 7rem); margin: .25rem 0 1rem; }
.below-hero-title { font-size: clamp(1.75rem, 4vw, 3rem); margin: .5rem 0 .75rem; }
.below-hero-kicker { font-weight: 800; color: var(--ink); margin: 0 0 .75rem; }

/* ---------- Tables ---------- */
.table { margin-bottom: 2rem; }
.table > :not(caption) > * > * { border-bottom-color: var(--rule); }



/* =========================================================
   Fullscreen Map Overrides for upload_screenshot.html
   (kept from your previous file)
   ========================================================= */
html, body { height: 100%; margin: 0; padding: 0; }
#map {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh; z-index: 0;
}
#status { z-index: 1000; }

/* --- Status and Zoom banners (stacked neatly, bottom center) --- */
#status,
#zoomBanner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #000;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #000;
  padding: 0.5rem 1.2rem;
  font-size: 0.95rem;
  border-radius: 2px;
  z-index: 1200;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Slight vertical separation between the two banners */
#zoomBanner {
  bottom: 3.8rem; /* top banner */
}
#status {
  bottom: 2rem;   /* below zoomBanner */
}


/* Modern gallery layout for Recent Jobs */
.job-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.2rem;
}

.job-tile {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.job-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.job-preview {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.no-preview {
  width: 100%;
  height: 240px;
  background: #f0f0f0;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.job-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.job-tile:hover .job-overlay {
  opacity: 1;
}

.job-meta {
  text-align: center;
  margin-bottom: 0.5rem;
}

.job-links a.btn {
  font-size: 0.85rem;
  border: none;
}

/* --- Capture Header (smaller + non-overlapping) --- */
.capture-header {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--ink);
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.capture-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.05;
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.capture-header p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}



/* --- Scale line visibility (bottom-left) --- */
.ol-scale-line {
  bottom: 1.2rem !important;
  left: 1.2rem !important;
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid var(--ink) !important;
  color: var(--ink) !important;
  font-weight: 600;
  font-family: 'Archivo', sans-serif;
  padding: 2px 6px !important;
  border-radius: 2px;
}

.btn.btn-sm.btn-outline-dark {
  padding: 0.1rem 0.3rem;
  line-height: 1;
}

/* ======= Core Theme Colors ======= 
:root {
  --accent: #31d17c;
  --black: #000;
  --gray: #111;
}

/* ======= Buttons ======= 
.btn-dark:hover,
.btn-outline-dark:hover {
  background-color: var(--accent) !important;
  color: var(--black) !important;
  border-color: var(--accent) !important;
}
*/


/* ======= Form Focus ======= */
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(99, 255, 23, 0.25);
}

/* ======= Flash Messages ======= */
.alert-success-ai {
  background-color: var(--accent);
  color: #000;
}

.alert-danger-ai {
  background-color: #ff1744;
  color: #fff;
}

.alert-warning-ai {
  background-color: #fff59d;
  color: #000;
}

.alert-info-ai,
.alert-default-ai {
  background-color: #e0e0e0;
  color: #000;
}

/* ======= Navbar hover ======= */
.navbar a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ======= Curie widget fixes ======= */
#curie-widget {
  z-index: 2000; /* keep above other UI elements */
}

#curieButton {
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#curieButton:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Prevent awkward wrapping in profile definition lists */
.card dl dt {
  white-space: nowrap;
}

.job-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 0.5rem;
}

.job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.job-card .card-body {
  font-size: 0.95rem;
}

.job-card .btn {
  font-size: 0.85rem;
}

.job-preview {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
}

/* --- Curie helper popup --- */
#curie-helper {
  position: fixed;
  bottom: 90px;
  right: 24px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0.3rem;
  z-index: 2100;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  text-decoration: none;
  transition: background 0.2s ease, opacity 1s ease;
  cursor: pointer;
  opacity: 0;
}

#curie-helper.visible {
  opacity: 1;
}

#curie-helper:hover {
  background: rgba(0, 0, 0, 1);
}

/* =========================================================
   UNIVERSAL BUTTON STYLE — White background, black text
   Inverts to black background + white text on hover
   ========================================================= */

.btn,
.btn-primary,
.btn-outline-dark,
.btn-outline-light {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
  border-radius: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: none;
  transition: all 0.25s ease-in-out;
}

.btn:hover,
.btn-primary:hover,
.btn-outline-dark:hover,
.btn-outline-light:hover {
  background: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}

/* Optional: Slight press effect */
.btn:active {
  transform: translateY(1px);
}

/* =========================================================
   FORCE BUTTON HOVER COLORS (override Bootstrap)
   ========================================================= */
.btn:hover,
.btn:focus,
.btn:active,
.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-dark:active,
.btn-dark:hover,
.btn-dark:focus,
.btn-dark:active {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
  text-decoration: none !important;
}

/* =========================================================
   FIX: Flash / Alert Messages (unify with button style)
   ========================================================= */

.alert {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: none !important;
}

.alert-success,
.alert-danger,
.alert-warning,
.alert-info {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
}

/* Close button on alerts */
.alert .btn-close {
  filter: invert(1);
  opacity: 0.7;
}
.alert .btn-close:hover {
  opacity: 1;
}

#status-banner:empty,
#hint-banner:empty {
  display: none !important;
  pointer-events: none !important;
}

#status-banner,
#hint-banner {
  padding: 0;
  margin: 0;
  min-height: 0;
}

.h-normal {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.75rem; /* close to Bootstrap h2 */
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.card-text, .price {
  font-size: 0.95rem;
  line-height: 1.5;
}

.card ul {
  padding-left: 18px;
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* ===================== */
/*  ABOUT PAGE STYLING   */
/* ===================== */

.about-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.about-menu button {
  background: none;
  border: none;
  padding: .5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all .25s ease;
}

.about-menu button:hover {
  color: #005bbb;
}

.about-menu button.active {
  font-weight: 700;
  border-color: #005bbb;
  color: #005bbb;
}

/* Sections */
.about-section {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
}

.about-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Titles */
.section-title {
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

/* Placeholder video box */
.placeholder-video {
  width: 100%;
  height: 300px;
  background: #e9ecef;
  border: 2px dashed #bbb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  text-align: center;
  font-size: 1.2rem;
}


.video-wrapper {
  max-width: 900px;          /* large, but not fullscreen */
  margin: 0 auto;            /* center horizontally */
  position: relative;
  padding-bottom: 56.25%;    /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===================== */
/*  ABOUT PAGE — LINK TABS */
/*  (Black/white text links with underline on hover + active) */
/* ===================== */

.about-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Basic link look */
.about-menu button {
  background: none;
  border: none;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}

/* Hover */
.about-menu button:hover {
  border-bottom-color: #000;
}

/* Active tab */
.about-menu button.active {
  border-bottom-color: #000;
  color: #000;
}

.pdf-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;   /* matches tab spacing */
  margin-bottom: 1.5rem;
}

#ai-popup-banner {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 2px solid #000;
  padding: 0.5rem 1rem;
  z-index: 2000;

  /* auto-size based on content */
  width: auto;
  max-width: 90vw;

  /* layout */
  display: flex;
  align-items: center;
  gap: 1rem;

  /* typography */
  font-family: "League Spartan", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

#ai-popup-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
}

.ai-banner-popup {
  position: fixed;
  top: 0x; /* BELOW NAVBAR */
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 2px solid #000;
  padding: 0.5rem 1rem;
  z-index: 2000;

  width: auto;
  max-width: 90vw;

  display: flex;
  align-items: center;
  gap: 1rem;

  font-family: "League Spartan", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;

  box-shadow: 4px 4px 0 #000;
}

.ai-banner-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

input[type="date"] {
  z-index: 10;
  position: relative;
  background-color: #fff;
  pointer-events: auto;
}

/* =====================================================
   FORCE LIGHT MODE (disable iOS Safari dark mode)
===================================================== */

:root {
  color-scheme: light;
}

html, body {
  background-color: #ffffff !important;
  color: #111111 !important;
}

@media (max-width: 640px) {

  #curie-widget {
    right: 16px;
    bottom: 16px;
  }

  #curie-bubble {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  #curie-panel {
    left: 12px;
    right: 12px;
    bottom: 80px;

    width: auto;
    max-height: 70vh;
    border-radius: 16px;
  }

  #curie-body {
    max-height: calc(70vh - 120px);
  }

  #curie-inputbar input {
    font-size: 16px; /* prevents iOS zoom */
  }
}

.legend-inner {
  max-width: 420px;   /* adjust between 420–560 as you like */
  background: #fff;
  padding: 16px;
  border-radius: 12px;
}

/* =========================================
   Walkthrough / About Page Typography
   ========================================= */

.about-container {
  font-size: 1.05rem; /* global baseline */
}

/* Section titles */
.about-container h2,
.about-container h3 {
  font-size: 1.4rem;
}

/* Video titles */
.about-container p.fw-semibold {
  font-size: 1.05rem;
}

/* All links on this page */
.about-container a {
  font-size: 1.05rem;
  font-weight: 600;
}

/* View PDF links */
.view-pdf-link {
  display: inline-block;
  margin-top: 0.25rem;
  text-decoration: none;
}

/* Remove tiny text everywhere */
.about-container .small {
  font-size: 1.05rem !important;
}

@media (max-width: 768px) {
  .pdf-embed-wrapper iframe {
    height: 420px;
  }
}

/* Make job selection checkbox clearly visible */
.job-select-checkbox {
  border: 2px solid #000;
  background-color: #fff;
}

/* Improve checked visibility */
.job-select-checkbox:checked {
  background-color: #000;
  border-color: #000;
}

/* Optional: slightly larger click target */
.job-select-checkbox {
  width: 1.1rem;
  height: 1.1rem;
}

#loadMoreBtn:disabled {
  opacity: 0.6;
  cursor: default;
}

@media (max-width: 768px) {
  #curie-widget,
  #curie-panel {
    display: none !important;
  }
}

@media (max-width: 768px) {
  #curie-panel,
  button[title="Chat with Curie"] {
    display: none !important;
  }
}