/* ═══════════════════════════════════════════════════════════
   Masix Smart Automation — Parking Optima (#p-parking)
═══════════════════════════════════════════════════════════ */

.domain-parking .pk-eyebrow,
#p-parking .eyebrow {
  color: var(--d-prime);
}

.pk-h1 {
  font-family: var(--fd);
  font-size: clamp(2.1rem, 4.5vw, 3.45rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.03em;
  color: var(--t1);
  margin-bottom: 1.25rem;
}

.pk-h1 em {
  color: var(--d-prime);
  font-style: normal;
}

.pk-h2 {
  font-family: var(--fd);
  font-size: clamp(1.55rem, 3.2vw, 2.45rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--t1);
  margin-bottom: .75rem;
}

.pk-h2 em {
  color: var(--d-prime);
  font-style: normal;
}

.pk-lead {
  font-size: clamp(.9rem, 1.5vw, 1rem);
  color: var(--t2);
  line-height: 1.8;
  max-width: 52ch;
}

/* ── Hero ──────────────────────────────────────────────────── */
.pk-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.5rem, 6vw, 4.5rem);
  background: linear-gradient(160deg, #ffffff 55%, rgba(200,16,46,.04) 100%);
}

.pk-hero__grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(167,139,250,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,139,250,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 15%, transparent 100%);
}

.pk-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  animation: float 13s ease-in-out infinite;
}

.pk-hero__orb--1 {
  width: 540px;
  height: 540px;
  top: -140px;
  right: -100px;
  background: radial-gradient(circle, rgba(200,16,46,.16), transparent 70%);
}

.pk-hero__orb--2 {
  width: 380px;
  height: 380px;
  bottom: -80px;
  left: -60px;
  background: radial-gradient(circle, rgba(17,17,17,.08), transparent 70%);
  animation-delay: -5s;
}

.pk-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.pk-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--fm);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--d-prime);
  background: var(--d-bg);
  border: 1px solid var(--d-bd);
  border-radius: 999px;
  padding: .4rem 1rem;
  margin-bottom: 1.25rem;
}

.pk-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.75rem 0 2rem;
}

.pk-btn-primary {
  background: linear-gradient(135deg, var(--d-prime2), var(--d-prime));
  border-color: transparent;
  box-shadow: 0 8px 28px var(--d-btn-shadow);
}

.pk-btn-login {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.25rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--t2);
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: var(--r1);
  text-decoration: none;
  transition: border-color .25s, color .25s;
}

.pk-btn-login svg {
  width: 1rem;
  height: 1rem;
  opacity: .7;
}

.pk-btn-login:hover {
  border-color: var(--d-bd);
  color: var(--d-prime);
}

.pk-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.pk-stat__num {
  font-family: var(--fd);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--d-prime);
  line-height: 1;
}

.pk-stat__label {
  font-size: .72rem;
  color: var(--t3);
  margin-top: .35rem;
  max-width: 12ch;
  line-height: 1.4;
}

.pk-hero__frame {
  border-radius: var(--r2);
  overflow: hidden;
  border: 1px solid var(--d-bd);
  box-shadow: 0 24px 64px rgba(0,0,0,.45), 0 0 0 1px rgba(167,139,250,.08);
}

.pk-hero__media img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── System breakdown ──────────────────────────────────────── */
.pk-systems {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--ink2);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}

.pk-systems__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pk-system-card {
  padding: 2rem 1.75rem;
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: var(--r2);
  border-top: 3px solid;
  border-image: var(--d-card-top) 1;
  transition: border-color .3s, transform .3s;
}

.pk-system-card:hover {
  transform: translateY(-4px);
  border-color: var(--d-bd);
}

.pk-system-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.pk-system-card h3 {
  font-family: var(--fd);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--t1);
  margin-bottom: .75rem;
}

.pk-system-card p {
  font-size: .88rem;
  color: var(--t2);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.pk-system-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.pk-system-card li {
  font-size: .82rem;
  color: var(--t3);
  padding-left: 1.1rem;
  position: relative;
}

.pk-system-card li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--d-prime);
}

/* ── Feature bento ─────────────────────────────────────────── */
.pk-bento-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.pk-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pk-bento-card {
  padding: 1.5rem;
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: var(--r2);
  transition: border-color .3s;
}

.pk-bento-card:hover {
  border-color: var(--d-bd);
}

.pk-bento-card--featured {
  grid-column: span 2;
}

.pk-bento-card__icon {
  font-size: 1.5rem;
  margin-bottom: .75rem;
}

.pk-bento-card h3 {
  font-family: var(--fd);
  font-size: .95rem;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: .5rem;
}

.pk-bento-card p {
  font-size: .82rem;
  color: var(--t2);
  line-height: 1.65;
}

/* ── Brochures ─────────────────────────────────────────────── */
.pk-brochures {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--ink2);
  border-top: 1px solid var(--edge);
}

.pk-brochures__grid,
.bd-brochures__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.pk-brochure-btn,
.bd-brochure-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.5rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--t1);
  background: var(--glass);
  border: 1px solid var(--d-bd);
  border-radius: var(--r1);
  text-decoration: none;
  transition: background .25s, border-color .25s, transform .25s;
}

.pk-brochure-btn:hover,
.bd-brochure-btn:hover {
  background: var(--d-bg);
  border-color: var(--d-prime);
  transform: translateY(-2px);
}

/* ── CTA ───────────────────────────────────────────────────── */
.pk-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.pk-cta__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.pk-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

/* ── Building video hero ───────────────────────────────────── */
.bd-hero__frame--video {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #111;
}

.bd-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bd-video-toggle {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  background: rgba(17,17,17,.88);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  transition: background .2s, transform .2s;
}

.bd-video-toggle:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  transform: translateY(-1px);
}

/* Brochure modal */
.brochure-modal[hidden] {
  display: none !important;
}

.brochure-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.brochure-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,.55);
}

.brochure-modal__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--edge);
  border-radius: var(--r2);
  box-shadow: 0 24px 64px rgba(17,17,17,.25);
  padding: 1.75rem 1.5rem 1.5rem;
}

.brochure-modal__panel h2 {
  font-size: 1.25rem;
  margin-bottom: .5rem;
  color: var(--brand-black);
}

.brochure-modal__panel > p {
  font-size: .9rem;
  color: var(--t2);
  margin-bottom: 1.25rem;
}

.brochure-modal__close {
  position: absolute;
  top: .75rem;
  right: .85rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--edge);
  color: var(--t2);
  font-size: 1rem;
}

.brochure-modal__close:hover {
  color: var(--brand-red);
  border-color: var(--brand-red);
}

.brochure-modal .form-group {
  margin-bottom: 1rem;
}

.brochure-modal label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--t2);
  margin-bottom: .35rem;
}

.brochure-modal input {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--edge2);
  border-radius: var(--r);
  background: #fafafa;
  color: var(--brand-black);
}

.bd-brochures {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--ink2);
  border-top: 1px solid var(--edge);
}

@media (max-width: 1100px) {
  .pk-systems__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .pk-hero__inner {
    grid-template-columns: 1fr;
  }

  .pk-bento {
    grid-template-columns: 1fr;
  }

  .pk-bento-card--featured {
    grid-column: span 1;
  }
}
