/* ===== Mataer Parking — landing page ===== */
:root {
  --navy-900: #081129;
  --navy-800: #0b1531;
  --navy-700: #12234d;
  --navy-600: #1a3168;
  --line: rgba(120, 160, 230, .22);
  --green: #4cb748;
  --blue: #1f6fc4;
  --text: #e9eef8;
  --muted: #b7c3db;
  --radius: 14px;
  --wrap: 1180px;
  --head: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--navy-900); }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 100% 0%, rgba(31,111,196,.18), transparent 60%),
    radial-gradient(900px 600px at 0% 45%, rgba(31,111,196,.10), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; color: var(--muted); }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.15; color: #fff; }
ul, ol { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0 0; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 17, 41, .82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { width: 150px; height: auto; }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
  text-decoration: none; font-family: var(--head); font-size: 16px;
  letter-spacing: .02em; color: var(--muted); transition: color .2s;
}
.site-nav a:hover { color: #fff; }
.site-nav .nav-cta {
  color: #fff; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--green); background: rgba(76,183,72,.12);
}
.site-nav .nav-cta:hover { background: var(--green); }
.nav-toggle { display: none; }

/* ----- Section titles ----- */
.section-title {
  font-family: var(--head); font-weight: 500; text-transform: uppercase;
  font-size: clamp(30px, 4vw, 42px); letter-spacing: .01em;
  display: inline-block; padding-bottom: 12px; margin-bottom: 28px; position: relative;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--green) 0 22%, var(--blue) 22% 55%, rgba(31,111,196,.35) 55%);
}
.section-title.center { display: block; width: max-content; margin-inline: auto; }
.section-head { max-width: 560px; margin-bottom: 40px; }

/* ----- Hero ----- */
.hero { padding: clamp(40px, 6vw, 72px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 {
  font-family: var(--body); font-weight: 400;
  font-size: clamp(34px, 4.6vw, 54px); line-height: 1.12; margin-bottom: 22px;
}
.hero h1 .accent { color: var(--green); display: block; }
.hero p { font-size: 18px; max-width: 520px; }
.hero-media img, .about-media img, .why-media img, .solution img {
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.6);
}

/* Pill bar */
.pill-bar {
  margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0;
  padding: 14px 28px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(26,49,104,.45);
  font-family: var(--head); font-weight: 600; font-size: 19px; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 30px -15px rgba(31,111,196,.6);
}
.pill-bar li { display: flex; align-items: center; }
.pill-bar li + li::before {
  content: ""; width: 6px; height: 6px; background: var(--green); margin: 0 16px; border-radius: 1px;
}
.pill-bar.small { font-size: 17px; margin-top: 32px; }
.pill-bar.small li + li::before { width: 1px; height: 18px; background: var(--muted); margin: 0 14px; }

/* ----- About ----- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.about-media img { margin-bottom: 22px; margin-top: 76px; }

/* ----- Solutions ----- */
.solutions { display: grid; gap: 36px; }
.solution { display: grid; grid-template-columns: 360px 1fr; gap: clamp(24px, 4vw, 44px); align-items: center; }
.solution h3 { font-family: var(--head); font-size: 24px; margin-bottom: 12px; }
.solution h3 span { color: var(--green); }
.solution p { max-width: 520px; }

/* ----- CCTV ----- */
.cctv-media { max-width: 960px; margin: 0 auto; }
.cctv-media img {
  /* soften the crop edges so the render blends into the page background */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(180deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(180deg, transparent, #000 4%, #000 96%, transparent);
  mask-composite: intersect;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cctv-cards { display: none; }

/* ----- Why ----- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.why-lead { font-family: var(--head); font-size: clamp(28px, 3.2vw, 36px); margin-bottom: 16px; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 64px; text-align: center; }
.pillars svg {
  width: 56px; height: 56px; margin: 0 auto 14px; display: block;
  fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.pillars h3 { font-family: var(--head); font-size: 21px; margin-bottom: 8px; }
.pillars p { font-size: 15.5px; line-height: 1.55; }

/* ----- Experience ----- */
.exp-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4vw, 56px); }
.exp-lead { font-family: var(--head); font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
.client-list { columns: 1; }
.client-list li { padding-left: 20px; position: relative; color: var(--text); line-height: 1.95; }
.client-list li::before { content: ""; position: absolute; left: 0; top: .9em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.sites {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start;
}
.site figure {
  background: #fff; border-radius: 10px; padding: 12px 12px 14px;
  box-shadow: 0 14px 30px -16px rgba(0,0,0,.7);
  transition: transform .25s ease;
}
.site figure:hover { transform: translateY(-4px); }
.site figcaption {
  font-family: var(--body); color: #2b3446; font-size: 15px; line-height: 1.25;
  text-align: center; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 10px; min-height: 2.6em;
}
.site figcaption small { display: block; font-size: 12px; color: #6b7487; letter-spacing: .06em; }
.site img { width: 100%; border-radius: 3px; }

/* ----- Footer ----- */
.site-footer { margin-top: clamp(72px, 10vw, 128px); padding: 56px 0 28px; border-top: 1px solid var(--line); background: rgba(8,17,41,.7); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end; }
.footer-grid img { width: 150px; margin-bottom: 24px; }
.company strong { color: #fff; text-transform: uppercase; letter-spacing: .02em; }
.contact-links li + li { margin-top: 10px; }
.contact-links a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.contact-links a:hover { color: var(--green); }
.contact-links svg { width: 22px; height: 22px; fill: none; stroke: var(--green); stroke-width: 2; }
.contact-links svg .dot { fill: var(--green); stroke: none; }
.legal { margin-top: 40px; font-size: 14px; color: #7c89a6; }

/* ----- Reveal on scroll ----- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----- Responsive ----- */
@media (max-width: 1020px) {
  .sites { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav-toggle {
    display: grid; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; align-items: stretch;
    background: var(--navy-900); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav.open { max-height: 420px; }
  .site-nav a { padding: 14px 16px; border-top: 1px solid var(--line); font-size: 17px; }
  .site-nav .nav-cta { border-radius: 0; border: 0; border-top: 1px solid var(--line); }

  .hero-grid, .about-grid, .why-grid, .exp-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .about-media img { margin-top: 0; }
  .solution { grid-template-columns: 1fr; gap: 16px; }
  .pill-bar { border-radius: 18px; font-size: 16px; padding: 14px 16px; }
  .pill-bar li + li::before { margin: 0 10px; }

  /* CCTV: the baked-in callouts are too small to read on phones, so show HTML cards */
  .cctv-cards { display: grid; gap: 14px; margin-top: 20px; }
  .cctv-cards article {
    position: relative; padding: 18px 18px 14px 58px; border-radius: 12px;
    background: linear-gradient(160deg, rgba(42,140,140,.35), rgba(26,49,104,.5)); border: 1px solid var(--line);
  }
  .cctv-cards .num {
    position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%;
    background: var(--green); color: #fff; font-weight: 600; display: grid; place-items: center; font-size: 15px;
  }
  .cctv-cards h3 { font-size: 19px; margin-bottom: 8px; font-family: var(--head); }
  .cctv-cards p { font-size: 15px; margin-bottom: .5em; }
  .sites { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .pillars { grid-template-columns: 1fr; }
  .sites { grid-template-columns: 1fr; }
  .pill-bar { flex-direction: column; align-items: flex-start; }
  .pill-bar li::before,
  .pill-bar li + li::before,
  .pill-bar.small li + li::before {
    content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 0 0;
    background: var(--green); border-radius: 1px;
  }
}
