/*
Deltech Parking Systems and Solutions Inc.
Brand theme: navy / red / yellow drawn from the corporate logo.
Signage-inspired: condensed caps, lane stripes, high-contrast panels.
*/

:root {
  --navy: #0e2e6d;
  --navy-deep: #08204f;
  --navy-ink: #061838;
  --red: #e01f26;
  --yellow: #ffc629;
  --sky: #eaf1fa;
  --sky-2: #d8e6f6;

  --background: #ffffff;
  --foreground: #3f4a5c;
  --ink: var(--navy-ink);
  --muted: var(--sky);
  --muted-foreground: #6a778c;
  --border: #d9e2ee;
  --accent: var(--navy);
  --radius: 4px;
  --maxw: 1140px;
  --font: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Barlow Condensed", "Barlow", Arial Narrow, sans-serif;
}

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

html { 
  -webkit-text-size-adjust: 100%; 
  scroll-behavior: smooth; 
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { 
  max-width: 100%; 
  height: auto; 
  display: block; 
}

a { 
  color: inherit; 
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.02;
  text-transform: uppercase;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 4.6vw, 3.6rem); max-width: 18ch; }
h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
h3 {
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.35;
}

p { margin: 0; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 33%, var(--yellow) 33% 66%, var(--red) 66%);
}

.muted { color: var(--muted-foreground); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(224, 31, 38, 0.24);
}
.btn:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: none; }

.link-underline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 3px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.link-underline:hover { color: var(--red); border-color: var(--red); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg, var(--navy) 0 40%, var(--yellow) 40% 70%, var(--red) 70% 100%);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  line-height: 1;
}
.site-brand img { height: 44px; width: auto; transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.site-brand small {
  display: block;
  font-family: var(--font);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
  font-weight: 600;
  margin-top: 3px;
}
.site-header.is-scrolled .site-brand img { height: 34px; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  position: relative;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  padding-bottom: 4px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px; width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav a:hover::after,
.site-nav .current-menu-item > a::after { transform: scaleX(1); }
.site-nav .current-menu-item > a::after { background: var(--yellow); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--navy);
}

/* Sections */
.section { padding: 108px 0; }
.section-tight { padding: 72px 0; }
.bordered-top { border-top: 1px solid var(--border); }
.bordered-bottom { border-bottom: 1px solid var(--border); }
.soft { background: var(--sky); }

/* Grid Layout Fixes */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}
/* Prevents horizontal overflow from Swiper/large images */
.grid-2 > * {
  min-width: 0;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px 30px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--navy) 0 45%, var(--yellow) 45% 75%, var(--red) 75% 100%);
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(14, 46, 109, 0.12); border-color: var(--sky-2); }
.card:hover::before { transform: scaleX(1); }
.card p { margin-top: 10px; font-size: 15px; color: var(--muted-foreground); }

/* Hero */
.hero {
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 90% at 92% 12%, rgba(255, 198, 41, 0.16), transparent 62%),
    radial-gradient(75% 85% at 8% 100%, rgba(14, 46, 109, 0.09), transparent 65%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 { margin-top: 26px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p.lead { margin-top: 26px; max-width: 33rem; font-size: 1.08rem; color: var(--muted-foreground); }
.hero .actions { margin-top: 40px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  width: 100%;
  box-shadow: 0 26px 60px rgba(6, 24, 56, 0.22);
}

.media {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hero .media {
  padding: 14px 0 0 14px;
}
.hero .media::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 62%; height: 62%;
  border-top: 6px solid var(--yellow);
  border-left: 6px solid var(--yellow);
  border-radius: var(--radius);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  margin: -46px 0 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 44px rgba(6, 24, 56, 0.18);
}
.stats > div { padding: 30px 28px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.stats > div:first-child { border-left: 0; }
.stats strong {
  display: block;
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--yellow);
}
.stats span {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* Steps */
.steps { list-style: none; margin: 30px 0 0; padding: 0; }
.steps li { display: flex; gap: 18px; margin-top: 26px; }
.steps .num {
  flex: none;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
}
.steps li:nth-child(2) .num { background: var(--yellow); color: var(--navy-ink); }
.steps li:nth-child(3) .num { background: var(--red); }

.entry-content { max-width: 46rem; }
.entry-content > * + * { margin-top: 1.1rem; }
.entry-content a { color: var(--accent); }
.entry-content ul, .entry-content ol { padding-left: 1.2rem; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--navy);
}
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(14, 46, 109, 0.12);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  border-top: 4px solid var(--yellow);
}
.site-footer .site-brand { color: #fff; }
.site-footer .site-brand small { color: rgba(255, 255, 255, 0.55); }
.site-footer .muted { color: rgba(255, 255, 255, 0.6); }
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding: 68px 0;
}
.site-footer h4 {
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 700;
}
.site-footer ul { list-style: none; margin: 18px 0 0; padding: 0; }
.site-footer li { margin-top: 11px; font-size: 14.5px; }
.site-footer a { text-decoration: none; color: rgba(255, 255, 255, 0.72); transition: color 0.2s ease; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  padding: 22px 0;
}

.post-list article { border-top: 1px solid var(--border); padding: 24px 0; }
.post-list h2 { font-size: 1.4rem; }
.post-list a { text-decoration: none; }

.screen-reader-text { position: absolute; left: -9999px; }

/* Product catalogue */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.product {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s, border-color 0.4s;
}
.product:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(14,46,109,0.12); border-color: var(--sky-2); }
.product figure { margin: 0; background: var(--sky); display: flex; align-items: center; justify-content: center; padding: 26px; }
.product figure img { max-height: 210px; width: auto; max-width: 100%; object-fit: contain; }
.product .body { padding: 22px 24px 26px; border-top: 3px solid var(--yellow); }
.product h3 { font-size: 1.25rem; }
.product ul { list-style: none; margin: 14px 0 0; padding: 0; }
.product li { position: relative; padding-left: 18px; font-size: 15px; color: var(--muted-foreground); margin-top: 8px; }
.product li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 2px; background: var(--red); }

/* Capability list */
.tick-list { list-style: none; margin: 24px 0 0; padding: 0; columns: 2; column-gap: 40px; }
.tick-list li { break-inside: avoid; position: relative; padding-left: 26px; margin-top: 12px; font-weight: 500; color: var(--ink); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px;
  background: var(--navy); border-radius: 2px; box-shadow: 3px 3px 0 var(--yellow);
}

/* Client logo wall */
.logo-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 44px; background: var(--border); border: 1px solid var(--border); }
.logo-wall div { background: #fff; aspect-ratio: 3/2; display: flex; align-items: center; justify-content: center; padding: 20px; }
.logo-wall img { max-width: 100%; max-height: 68px; object-fit: contain; filter: grayscale(1); opacity: 0.62; transition: filter 0.35s, opacity 0.35s, transform 0.35s; }
.logo-wall div:hover img { filter: none; opacity: 1; transform: scale(1.06); }

/* Contact detail rows */
.detail-rows { list-style: none; margin: 0; padding: 0; }
.detail-rows li { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.detail-rows dt, .detail-rows .k {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; color: var(--navy); font-size: 15px;
}
.detail-rows .v { color: var(--foreground); }
.detail-rows a { color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--yellow); }
.detail-rows a:hover { color: var(--red); border-color: var(--red); }

/* Installations */
.page-hero h1{max-width:20ch}
.page-hero .lead{max-width:44rem}
.project-list{display:grid;gap:96px}
.project{display:grid;grid-template-columns:minmax(0,0.85fr) minmax(0,1.15fr);gap:48px;align-items:start}
.project.alt .project-copy{order:2}
.project-copy{position:sticky;top:120px}
.project-copy h3{font-family:'Barlow Condensed',var(--font);text-transform:uppercase;font-size:clamp(28px,3.4vw,44px);line-height:1.02;letter-spacing:.01em;margin:10px 0 14px}
.project-copy p{color:var(--muted-foreground);max-width:34rem}
.project-copy .tags{list-style:none;padding:0;margin:22px 0 0;display:flex;flex-wrap:wrap;gap:8px}
.project-copy .tags li{font-family:'Barlow Condensed',var(--font);text-transform:uppercase;letter-spacing:.06em;font-size:14px;line-height:1;padding:8px 12px;border:1px solid rgba(14,46,109,.18);border-left:3px solid var(--yellow);background:#fff;color:var(--navy)}
.project-shots{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.project-shots.shots-1{grid-template-columns:1fr}
.project-shots.shots-3 figure:first-child{grid-column:1/-1}
.project-shots figure{margin:0;overflow:hidden;background:#e9edf5;border:1px solid rgba(14,46,109,.12);box-shadow:14px 14px 0 rgba(14,46,109,.06)}
.project-shots img{display:block;width:100%;height:100%;min-height:200px;object-fit:cover;transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.project-shots figure:hover img{transform:scale(1.04)}

/* Technology specs */
.spec-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:28px;margin-top:36px}
.spec{background:#fff;border:1px solid rgba(14,46,109,.12);border-top:4px solid var(--navy);display:flex;flex-direction:column}
.spec figure{margin:0;background:#f2f4f9;display:flex;align-items:center;justify-content:center;padding:24px;min-height:240px}
.spec figure img{max-height:260px;width:auto;max-width:100%;object-fit:contain}
.spec .body{padding:24px 26px 28px;border-top:1px solid rgba(14,46,109,.1)}
.spec h3{font-family:'Barlow Condensed',var(--font);text-transform:uppercase;font-size:24px;line-height:1.05;margin:0 0 10px}
.spec .body p{color:var(--muted-foreground);font-size:15px}
.spec .body ul{margin:16px 0 0;padding:0;list-style:none}
.spec .body li{position:relative;padding-left:18px;font-size:15px;margin-bottom:7px}
.spec .body li::before{content:"";position:absolute;left:0;top:9px;width:7px;height:7px;background:var(--red)}
.spec-meta{margin-top:18px;padding-top:14px;border-top:1px dashed rgba(14,46,109,.2);font-size:13px;color:var(--muted-foreground)}
.report-list li{font-size:15px}

/* Swiper / Installation Slider Sizing (Fluid Mobile Layout Fix) */
.media {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0; /* Prevents flex/grid children from overflowing */
  overflow: hidden;
}

.media .installation-slider {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(14, 46, 109, 0.12);
  border: 1px solid var(--border);
  box-sizing: border-box;
}

.installation-slider .swiper-wrapper {
  display: flex;
  box-sizing: border-box;
}

.installation-slider .swiper-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.installation-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.installation-slider .swiper-pagination {
  bottom: 12px !important;
}

.installation-slider .swiper-pagination-bullet {
  background: #ffffff;
  opacity: 0.6;
  width: 8px;
  height: 8px;
  transition: all 0.25s ease;
}

.installation-slider .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--yellow);
  width: 20px;
  border-radius: 4px;
}

/* Mobile-Specific Slider & Grid Reset */
@media (max-width: 640px) {
  .hero .media {
    padding: 0; /* Removes offset padding on mobile screens */
  }
  
  .hero .media::before {
    display: none; /* Optional: disables overlapping corner accent on small devices */
  }

  .grid-2 {
    width: 100%;
    overflow: hidden;
  }
}

/* Media Queries */
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .grid-2, .grid-cards, .form-grid, .site-footer .cols { grid-template-columns: 1fr; gap: 32px; }
  .site-nav { display: none; }
  .site-nav.open {
    display: block;
    position: absolute;
    left: 0; right: 0; top: 78px;
    background: #fff;
    border-bottom: 3px solid var(--yellow);
    padding: 8px 28px 18px;
  }
  .site-nav.open ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .site-nav.open li { padding: 12px 0; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .section { padding: 68px 0; }
  .section-tight { padding: 52px 0; }
  .stats { margin-top: 0; grid-template-columns: 1fr; }
  .stats > div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .stats > div:first-child { border-top: 0; }
  .hero .media { padding: 10px 0 0 10px; }
  
  .project{grid-template-columns:1fr;gap:24px}
  .project.alt .project-copy{order:0}
  .project-copy{position:static}
  .project-list{gap:64px}
  .project-shots.shots-3 figure:first-child{grid-column:auto}
}

@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .tick-list { columns: 1; }
  .detail-rows li { grid-template-columns: 1fr; gap: 4px; }
  .wrap { padding: 0 18px; }
}