:root {
  /* Brand palette inspired by your logo */
  --brand-navy: #1b3550;
  --brand-navy-dark: #0d1827;
  --brand-orange: #f97316;
  --brand-orange-soft: rgba(249, 115, 22, 0.15);
  --brand-light: #f9fafb;

  --bg: radial-gradient(circle at top, #1f2933 0, #050817 45%);
  --bg-alt: #0b1220;
  --bg-card: rgba(12, 18, 31, 0.96);

  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
}

/* RESET / BASE */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* LINKS */

a {
  color: inherit;
  text-decoration: none;
}

/* LAYOUT HELPERS */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* HEADER / NAV */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 23, 0.95),
    rgba(5, 8, 23, 0.9)
  );
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 42px;
  width: auto;
  border-radius: 999px;
  background: #ffffff;
  padding: 0.2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.logo-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.logo-subtitle {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.84rem;
}

.main-nav .nav-link {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.16s;
}

.main-nav .nav-link:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
}

.btn-nav-login {
  border: 1px solid var(--brand-orange);
  color: var(--text) !important;
  background: var(--brand-orange-soft);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text);
}

/* HERO */

.hero {
  padding: 3.5rem 0 2.75rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  margin: 0 0 0.75rem;
}

.hero p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.35rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.15s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-orange), #fbbf24);
  border-color: transparent;
  color: #111827;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.btn-primary:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--brand-orange);
}

.hero-usps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
  font-size: 0.75rem;
}

.hero-usps span {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.92);
  color: var(--muted);
}

/* HERO IMAGE WRAP (uses background plan image) */

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

/* from your existing file, kept but recoloured context */ /* :contentReference[oaicite:1]{index=1} */
.hero-image-wrap {
  width: 100%;
  max-width: 360px;
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.85);
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-image-caption {
  font-size: 0.7rem;
  color: var(--muted);
  padding: 0.45rem 0.7rem 0.6rem;
}

/* STATS */

.stats {
  padding: 1.4rem 0 0.5rem;
}

.stats-inner {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
}

/* GENERIC SECTIONS */

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: 1.6rem;
  margin: 0 0 0.25rem;
}

.section-intro {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 32rem;
}

/* GRID + SPLIT */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.9rem;
}

.card {
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1.25rem;
  font-size: 0.9rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}

.card h3 {
  font-size: 1rem;
  margin-top: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

/* TM GALLERY (for your lane/road closure images) */

.tm-gallery {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.tm-gallery-item {
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.96);
  font-size: 0.8rem;
}

.tm-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.tm-gallery-item figcaption {
  padding: 0.45rem 0.7rem 0.6rem;
  color: var(--muted);
}

/* LISTS */

.list-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.list-checks li + li {
  margin-top: 0.3rem;
}

.list-checks li::before {
  content: "✔";
  margin-right: 0.4rem;
  color: #22c55e;
}

/* CAROUSEL (projects page) */

.carousel {
  position: relative;
  margin-top: 2rem;
  border-radius: 1.2rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1.4rem 3rem;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
}

.carousel-slide {
  min-width: 100%;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s, transform 0.3s;
  font-size: 0.9rem;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(15, 23, 42, 0.97);
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  color: var(--muted);
  cursor: pointer;
}

.carousel-prev {
  left: 0.75rem;
}
.carousel-next {
  right: 0.75rem;
}

/* CONTACT FORM */

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.field label {
  margin-bottom: 0.2rem;
}

.field input,
.field select,
.field textarea {
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
}

.field.full {
  grid-column: 1 / -1;
}

.contact-side {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.contact-phone {
  font-weight: 700;
  font-size: 1.1rem;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 8, 23, 0.97);
  padding: 0.9rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 0.75rem;
}

.footer-links a:hover {
  color: var(--text);
}

/* AUTH (LOGIN) */

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  border-radius: 1.4rem;
  border: 1px solid var(--border);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.15), #050817);
  padding: 1.8rem 1.6rem 1.6rem;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.7);
}

.auth-card h1 {
  margin: 0.3rem 0;
  font-size: 1.35rem;
}

.auth-card p {
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--brand-orange), #fbbf24);
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.auth-form {
  margin-top: 1.6rem;
}

.auth-form .field + .field {
  margin-top: 0.9rem;
}

.auth-footer {
  margin-top: 1.4rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

/* DASHBOARD LAYOUT (manager console) */

.dashboard-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  background: #020617;
}

.dashboard-sidebar {
  border-right: 1px solid var(--border);
  background: #020617;
  padding: 1.2rem 1rem;
}

.dashboard-nav {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.dashboard-nav button {
  text-align: left;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.dashboard-nav button.active,
.dashboard-nav button:hover {
  background: rgba(15, 23, 42, 0.95);
  color: var(--text);
}

.dashboard-main {
  padding: 1.2rem 1.5rem 1.5rem;
}

.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dashboard-card {
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.96);
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
}

.dashboard-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.dashboard-card strong {
  font-size: 1.1rem;
}

.dashboard-section {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.98);
  padding: 1rem 1.1rem;
  font-size: 0.85rem;
}

.dashboard-section h3 {
  margin-top: 0;
  font-size: 0.95rem;
}

/* PAGE SHELL & TRANSITIONS (SPA area) */

.page-shell {
  min-height: calc(100vh - 130px);
  display: flex;
  align-items: stretch;
}

.page-content {
  width: 100%;
}

/* Animations */ /* also from your existing file */
@keyframes pageFadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageFadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

.page-content-initial {
  animation: pageFadeInUp 0.28s ease-out;
}

.page-enter {
  animation: pageFadeInUp 0.25s ease-out;
}

.page-leave {
  animation: pageFadeOutDown 0.25s ease-in;
}

/* Active nav state */
.nav-link.active {
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
}

/* RESPONSIVE */

@media (max-width: 800px) {
  .hero-inner,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    display: none;
  }
}

@media (max-width: 640px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-inner {
    justify-content: flex-start;
  }

  .dashboard-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* =========================================
   GLOBAL BACKGROUND LOGO WATERMARK
   ========================================= */

body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90vmin;                    
  height: 90vmin;
  transform: translate(-50%, -50%);
  background-image: url("images/lstm-logo.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.055;                     
  filter: blur(1.4px) brightness(1.15); 
  z-index: -1;                       
  pointer-events: none;             
}
}
