/* ==========================================================================
   SmartPark Solutions — site styles
   Brand: SmartPark blue (#0566B2). Fonts: Inter (body), Gugi (brand).
   ========================================================================== */

:root {
  /* Primary — SmartPark blue */
  --color-primary-50:  #eaf3fb;
  --color-primary-100: #cfe4f5;
  --color-primary-200: #a4cbea;
  --color-primary-300: #6dabda;
  --color-primary-400: #2f88c8;
  --color-primary-500: #0566B2;
  --color-primary-600: #05579a;
  --color-primary-700: #064a82;
  --color-primary-800: #083c68;
  --color-primary-900: #0a3050;
  --color-primary-950: #061f34;

  /* Supporting surfaces */
  --color-tonal: #d9eaf7;
  --color-muted: #eef4fa;

  /* Ink */
  --color-ink:      #10202e;
  --color-heading:  #0c1a26;
  --color-body:     #4a5766;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-brand: "Gugi", sans-serif;

  --container: 1200px;
}

/* --- base ---------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-primary-600); text-decoration: none; }
a:hover { color: var(--color-primary-700); }
img { max-width: 100%; }

.site { width: 100%; overflow-x: hidden; background: #fff; }
.container { max-width: var(--container); margin: 0 auto; }

/* --- scroll-reveal animation --------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: none; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.8); opacity: 0; } }
@keyframes dash { to { stroke-dashoffset: -100; } }

/* --- shared typography for section intros -------------------------------- */
.eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--color-primary-500);
}
.section-head { max-width: 720px; }
.section-title {
  margin: 14px 0 0; font-size: 42px; line-height: 1.1;
  letter-spacing: -1px; font-weight: 800; color: var(--color-heading);
}
.section-lead { margin: 18px 0 0; font-size: 19px; line-height: 1.6; color: var(--color-body); }

/* --- brand wordmark ------------------------------------------------------ */
.brand { font-family: var(--font-brand); color: var(--color-ink); white-space: nowrap; }
.brand-accent { color: var(--color-primary-500); }
.brand-suffix { color: #7a8896; }

/* --- buttons ------------------------------------------------------------- */
.btn {
  display: inline-block; font-weight: 600; border-radius: 12px;
  transition: background .2s, transform .2s, box-shadow .2s, border-color .2s;
}
.btn--primary {
  color: #fff; background: var(--color-primary-500);
  box-shadow: 0 10px 26px rgba(5,102,178,.30);
}
.btn--primary:hover {
  color: #fff; background: var(--color-primary-600);
  transform: translateY(-2px); box-shadow: 0 16px 34px rgba(5,102,178,.4);
}
.btn--outline {
  color: var(--color-primary-700); background: #fff;
  border: 1.5px solid var(--color-primary-200);
}
.btn--outline:hover {
  color: var(--color-primary-700); border-color: var(--color-primary-400);
  transform: translateY(-2px);
}
.btn--lg { padding: 15px 30px; font-size: 16px; }

/* --- header / nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(5,102,178,.12);
}
.nav {
  max-width: var(--container); margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand { font-size: 19px; letter-spacing: .2px; }
.nav-brand .brand-suffix { font-size: 15px; }
.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-toggle {
  display: none; /* shown on mobile */
  align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: -6px -8px -6px 0;
  padding: 0; border: none; background: transparent;
  color: var(--color-ink); cursor: pointer; border-radius: 10px;
}
.nav-toggle:hover { background: rgba(5,102,178,.08); }
.nav-toggle .icon-close { display: none; }
.nav-link {
  padding: 8px 14px; font-size: 15px; font-weight: 500;
  color: #48566a; border-radius: 8px;
}
.nav-link:hover { color: var(--color-primary-600); }
.nav-cta {
  margin-left: 6px; padding: 10px 20px; font-size: 15px; border-radius: 10px;
  box-shadow: 0 6px 18px rgba(5,102,178,.28);
}
.nav-cta:hover { box-shadow: 0 10px 24px rgba(5,102,178,.36); }

/* --- hero ---------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-muted) 100%);
}
.hero-glow {
  position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 520px;
  background: radial-gradient(ellipse at center, rgba(5,102,178,.16), rgba(5,102,178,0) 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative; max-width: 920px; margin: 0 auto;
  padding: 104px 32px 108px; text-align: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px;
  background: var(--color-tonal); color: var(--color-primary-700);
  border-radius: 999px; font-size: 13px; font-weight: 600;
  letter-spacing: .4px; text-transform: uppercase;
}
.hero-title {
  margin: 24px 0 0; font-size: 64px; line-height: 1.03;
  letter-spacing: -1.8px; font-weight: 800; color: var(--color-heading);
}
.hero-title .accent { color: var(--color-primary-500); }
.hero-lead {
  margin: 26px auto 0; font-size: 21px; line-height: 1.55;
  color: var(--color-body); max-width: 640px;
}
.chips {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-top: 30px;
}
.chip {
  padding: 9px 18px; background: #fff; border: 1px solid var(--color-primary-200);
  border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--color-primary-700);
}
.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px; margin-top: 36px;
}

/* --- value band (dark) --------------------------------------------------- */
.valueband { position: relative; overflow: hidden; background: var(--color-primary-950); }
.valueband-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% -30%, rgba(47,136,200,.30), transparent 62%);
  pointer-events: none;
}
.valueband-grid {
  position: relative; max-width: var(--container); margin: 0 auto; padding: 58px 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 36px 40px;
}
.value { display: flex; gap: 16px; align-items: flex-start; }
.value-icon {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: rgba(124,192,255,.12); border: 1px solid rgba(124,192,255,.22); color: #8fc4f0;
}
.value-title { font-size: 17px; font-weight: 700; color: #fff; }
.value-desc { margin-top: 5px; font-size: 14.5px; line-height: 1.5; color: #9fbad3; }

/* --- products (ParkFlow / NextPark) -------------------------------------- */
.product { max-width: var(--container); margin: 0 auto; padding: 72px 32px 0; }
.product--spaced { padding-top: 84px; }
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px; align-items: center;
}
.product-media { position: relative; min-width: 0; }
.product-body { min-width: 0; }
/* On the NextPark row the copy sits first in source but renders second */
.product--reverse .product-body { order: 2; }
.product--reverse .product-media { order: 1; }

.media-frame {
  position: relative; width: 100%; height: 400px; border-radius: 24px; overflow: hidden;
  background: var(--color-muted); box-shadow: 0 26px 64px rgba(6,31,52,.16);
  border: 1px solid rgba(5,102,178,.14);
}
.media-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.product-name { font-family: var(--font-brand); font-size: 24px; color: var(--color-primary-700); }
.product-title {
  margin: 14px 0 0; font-size: 32px; letter-spacing: -.6px;
  font-weight: 800; line-height: 1.12; color: var(--color-heading);
}
.product-desc { margin: 14px 0 0; font-size: 17.5px; line-height: 1.62; color: var(--color-body); }

.contact-card {
  display: flex; flex-wrap: wrap; gap: 22px 40px; margin-top: 24px; padding: 22px 26px;
  background: var(--color-muted); border: 1px solid var(--color-primary-100); border-radius: 18px;
}
.contact-label {
  font-size: 12px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: #8494a3;
}
.contact-value { font-size: 18px; font-weight: 700; color: var(--color-heading); }
.contact-value:hover { color: var(--color-primary-600); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 22px; font-size: 16px; font-weight: 600;
}
.link-arrow span { font-size: 18px; }

/* --- solutions ----------------------------------------------------------- */
.solutions { background: var(--color-muted); margin-top: 104px; }
.solutions-inner { max-width: var(--container); margin: 0 auto; padding: 100px 32px; }
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-top: 48px;
}
.card {
  background: #fff; border: 1px solid rgba(5,102,178,.12); border-radius: 20px;
  padding: 26px 24px; box-shadow: 0 10px 30px rgba(6,31,52,.05);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(6,31,52,.12); }
.card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--color-tonal); color: var(--color-primary-500);
}
.card-title { margin: 18px 0 0; font-size: 18px; font-weight: 700; color: var(--color-heading); }
.card-desc { margin: 7px 0 0; font-size: 14.5px; line-height: 1.55; color: #5a6675; }

/* --- global presence ----------------------------------------------------- */
.global { background: #fff; }
.global-inner { max-width: var(--container); margin: 0 auto; padding: 100px 32px; }
.map {
  position: relative; margin-top: 44px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(circle at 50% 22%, #0c4a7d 0%, var(--color-primary-950) 72%);
  /* Definite width so a min-height floor can't inflate the width via aspect-ratio */
  width: 100%; aspect-ratio: 16 / 8; min-height: 340px;
  border: 1px solid rgba(5,102,178,.35); box-shadow: 0 30px 70px rgba(6,31,52,.22);
}
.map-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.11) 1.3px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 55%, transparent 90%);
  mask-image: radial-gradient(ellipse at 50% 45%, #000 55%, transparent 90%);
}
.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.map-lines g { animation: dash 6s linear infinite; }

.pin { position: absolute; transform: translate(-50%, -50%); }
.pin-dot { position: relative; width: 11px; height: 11px; }
.pin-ping {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--color-primary-300); animation: ping 2.8s ease-out infinite;
}
.pin-core {
  position: absolute; inset: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px rgba(124,192,255,.9);
}
.pin-label {
  position: absolute; left: 15px; top: -3px; white-space: nowrap;
  font-size: 11px; font-weight: 600; color: #cfe4f5;
}
.pin-label--right { left: auto; right: 15px; }
.pin--hq .pin-dot { width: 15px; height: 15px; }
.pin--hq .pin-ping { background: var(--color-primary-400); }
.pin--hq .pin-core { box-shadow: 0 0 16px rgba(124,192,255,1); }
.pin--hq .pin-label { left: 19px; top: -4px; font-size: 12px; font-weight: 800; color: #fff; }
.pin--hq .pin-label small { font-weight: 600; color: #8fc4f0; font-size: 100%; }

.map-stats {
  position: absolute; left: 0; right: 0; bottom: 22px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0 20px;
}
.stat {
  padding: 9px 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; backdrop-filter: blur(6px); color: #fff; font-size: 14px; font-weight: 600;
}

/* --- footer -------------------------------------------------------------- */
.footer { background: var(--color-primary-950); color: #bcd3e8; }
.footer-grid {
  max-width: var(--container); margin: 0 auto; padding: 64px 32px 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px;
}
.footer-brand { font-size: 22px; color: #fff; }
.footer-brand .brand-accent { color: var(--color-primary-400); }
.footer-brand .brand-suffix { color: #7f9bb6; font-size: 16px; }
.footer-about { margin: 16px 0 0; font-size: 15px; line-height: 1.6; max-width: 320px; color: #9fbad3; }
.footer-label {
  font-size: 13px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: #6f8ba8;
}
.footer-text { margin: 14px 0 0; font-size: 15px; line-height: 1.7; color: #c6d8ea; }
.footer-links { margin: 14px 0 0; font-size: 15px; line-height: 1.9; }
.footer-links a { color: #c6d8ea; }
.footer-links a:hover { color: #fff; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.10); }
.footer-bar-inner {
  max-width: var(--container); margin: 0 auto; padding: 22px 32px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between;
}
.footer-legal { font-size: 13px; color: #6f8ba8; }

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 720px) {
  .nav { padding: 14px 20px; gap: 14px; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open .nav-toggle .icon-open { display: none; }
  .nav.is-open .nav-toggle .icon-close { display: block; }

  /* Collapse the menu into a dropdown panel under the sticky header */
  .nav-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 10px 16px 18px;
    background: rgba(255,255,255,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(5,102,178,.12);
    box-shadow: 0 18px 40px rgba(6,31,52,.12);
  }
  .nav.is-open .nav-menu { display: flex; }
  .nav-menu .nav-link { padding: 12px 12px; font-size: 16px; border-radius: 10px; }
  .nav-menu .nav-cta { margin: 8px 0 0; text-align: center; }
  .hero-inner { padding: 72px 22px 76px; }
  .hero-title { font-size: 42px; letter-spacing: -1px; }
  .hero-lead { font-size: 18px; }
  .section-title { font-size: 32px; }
  .section-lead { font-size: 17px; }
  .product, .solutions-inner, .global-inner { padding-left: 20px; padding-right: 20px; }
  .solutions-inner, .global-inner { padding-top: 64px; padding-bottom: 64px; }
  .footer-grid, .footer-bar-inner, .valueband-grid { padding-left: 20px; padding-right: 20px; }

  /* Map: give the pins more vertical room so they don't collide with the
     stat pills once the wide 2:1 canvas is squeezed to a phone width. */
  .map { min-height: 430px; }
  .pin-label { font-size: 10px; }
  .stat { background: rgba(255,255,255,.14); }
}
