/* =========================================================
   JRD Secure System — home page only
   ========================================================= */

/* ---------- Hero slider ---------- */
.hs {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(circle at 85% 20%, rgba(31,58,138,.9), transparent 55%),
    radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--navy-deep);
}
.hs::after { /* brand stripe bottom-left */
  content: ""; position: absolute; left: -40px; bottom: 0; width: 420px; height: 12px;
  background: linear-gradient(90deg, var(--red) 0 70%, var(--gold) 70%);
  transform: skewX(-30deg);
}
.hs-slides { display: grid; }
.hs-slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}
.hs-slide.is-active { opacity: 1; visibility: visible; }
.hs-slide .wrap {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(6.5rem, 10vw, 8.5rem);
}
.hs-tag {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  color: var(--gold); margin-bottom: 1rem;
}
.hs-tag::before { content: ""; width: 28px; height: 3px; background: var(--red); }
.hs h1, .hs h2.hs-title {
  color: var(--white); font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.05; margin-bottom: 1.1rem;
}
.hs-title span { color: var(--gold); display: block; }
.hs p.hs-sub { font-size: 1.18rem; color: #C9D2EC; max-width: 48ch; }
.hs-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.9rem; }

/* text enters when slide becomes active */
.hs-copy > * { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.is-active .hs-copy > * { opacity: 1; transform: none; }
.is-active .hs-copy > :nth-child(2) { transition-delay: .12s; }
.is-active .hs-copy > :nth-child(3) { transition-delay: .24s; }
.is-active .hs-copy > :nth-child(4) { transition-delay: .36s; }

/* image frame */
.hs-media { position: relative; }
.hs-media::before { /* red offset block */
  content: ""; position: absolute; inset: 22px -18px -18px 22px;
  background: var(--red); border-radius: 18px; transform: skewX(-4deg);
}
.hs-frame {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 6px solid var(--white); background: var(--white);
  aspect-ratio: 4 / 3; box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.hs-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 6s ease; }
.is-active .hs-frame img { transform: scale(1); }
.hs-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: .7rem;
  background: var(--white); color: var(--ink); border-radius: 12px;
  padding: .7rem 1rem; box-shadow: 0 14px 30px rgba(10,24,67,.3);
  font-size: .92rem; line-height: 1.25;
}
.hs-chip i {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--navy); color: var(--white);
}
.hs-chip strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1rem; }
.hs-chip--tl { top: -18px; left: -24px; }
.hs-chip--br { bottom: -22px; right: -8px; }
.hs-chip img { height: 38px; width: auto; }

/* controls */
.hs-controls {
  position: absolute; left: 0; right: 0; bottom: 5.2rem; z-index: 3; pointer-events: none;
}
.hs-controls .wrap { display: flex; align-items: center; gap: 1rem; }
.hs-dots { display: flex; gap: .5rem; pointer-events: auto; }
.hs-dot {
  width: 34px; height: 5px; border: 0; padding: 0; border-radius: 3px; cursor: pointer;
  background: rgba(255,255,255,.3); position: relative; overflow: hidden;
}
.hs-dot.is-active::after {
  content: ""; position: absolute; inset: 0; background: var(--gold);
  animation: hsProgress 6s linear forwards;
}
@keyframes hsProgress { from { transform: translateX(-100%); } to { transform: none; } }
.hs.is-paused .hs-dot.is-active::after { animation-play-state: paused; }
.hs-arrow {
  pointer-events: auto; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.35); background: transparent; color: var(--white);
}
.hs-arrow:hover { background: var(--white); color: var(--navy); }

@media (max-width: 900px) {
  .hs-slide .wrap { grid-template-columns: 1fr; padding-bottom: 10.5rem; }
  .hs-media { max-width: 520px; margin: 1rem auto 0; width: 92%; }
  .hs-chip--tl { left: -10px; }
  .hs-controls { bottom: 5rem; }
}
@media (max-width: 520px) {
  .hs-chip { font-size: .82rem; padding: .55rem .75rem; }
  .hs-chip i { width: 32px; height: 32px; }
}

/* ---------- Quick service cards (overlap hero) ---------- */
.quick { position: relative; z-index: 4; margin-top: -3.8rem; }
.quick-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(10,24,67,.16);
}
.quick-item {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.6rem 1.4rem;
  text-decoration: none; border-right: 1px solid var(--line);
  transition: background .25s, color .25s;
}
.quick-item:last-child { border-right: 0; }
.quick-item i {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center;
  border-radius: 12px; background: var(--paper); color: var(--red); font-size: 1.35rem;
  transition: background .25s, color .25s;
}
.quick-item h3 { font-size: 1.15rem; margin-bottom: .2rem; transition: color .25s; }
.quick-item p { margin: 0; color: var(--muted); font-size: .95rem; transition: color .25s; }
.quick-item:hover { background: var(--navy); }
.quick-item:hover h3 { color: var(--white); }
.quick-item:hover p { color: #C9D2EC; }
.quick-item:hover i { background: var(--red); color: var(--white); }
@media (max-width: 960px) {
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-item:nth-child(2) { border-right: 0; }
  .quick-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .quick-grid { grid-template-columns: 1fr; }
  .quick-item { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Brand marquee ---------- */
.marquee-sec { padding: 3.2rem 0 1.5rem; }
.marquee-title { text-align: center; font-family: var(--font-head); font-weight: 600; color: var(--muted); margin-bottom: 1.2rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track img { height: 64px; width: auto; margin-right: 3rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About snippet ---------- */
.intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.intro-visual { position: relative; }
.intro-visual .logo-disc {
  background: var(--white); border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center;
  box-shadow: 0 30px 60px rgba(10,24,67,.14); padding: 12%; max-width: 420px; margin-inline: auto;
  border: 10px solid var(--paper); outline: 2px solid var(--gold); outline-offset: -2px;
}
.intro-visual .logo-disc img { width: 100%; }
.intro-badges { display: flex; gap: .8rem; justify-content: center; margin-top: -2.2rem; position: relative; }
.intro-badges img { height: 70px; width: auto; background: var(--white); padding: 5px; border-radius: 8px; box-shadow: 0 10px 24px rgba(10,24,67,.18); }
.intro .founder-line { display: flex; align-items: center; gap: .9rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.founder-line i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: 1.2rem; }
.founder-line strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.15rem; }
.founder-line span { color: var(--red); font-weight: 600; font-size: .95rem; }
.intro-points { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.5rem; list-style: none; padding: 0; margin: 1.4rem 0 0; }
.intro-points li { display: flex; gap: .6rem; }
.intro-points i { color: var(--red); margin-top: .32rem; }
@media (max-width: 880px) { .intro { grid-template-columns: 1fr; } .intro-points { grid-template-columns: 1fr; } }

/* ---------- Tabbed solutions ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.tab {
  font: inherit; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  cursor: pointer; padding: .7rem 1.3rem; border-radius: 100px;
  border: 1px solid var(--line); background: var(--white); color: var(--navy);
  display: inline-flex; align-items: center; gap: .5rem;
}
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tab[aria-selected="true"] i { color: var(--gold); }
.tab-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-in { animation: panelIn .45s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }

.pcard {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
}
.pcard:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(10,24,67,.14); }
.pcard-img { height: 170px; display: grid; place-items: center; padding: 1rem; background: linear-gradient(180deg, #fff, var(--paper)); position: relative; }
.pcard-img img { max-height: 100%; width: auto; mix-blend-mode: multiply; transition: transform .4s; }
.pcard:hover .pcard-img img { transform: scale(1.07); }
.pcard-img i { font-size: 3rem; color: var(--navy); }
.pcard-img.cover { padding: 0; }
.pcard-img.cover img { width: 100%; height: 100%; object-fit: cover; max-height: none; mix-blend-mode: normal; }
.pcard-body { padding: 1.1rem 1.3rem 1.3rem; flex: 1; }
.pcard-body h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.pcard-body p { margin: 0; color: var(--muted); font-size: .96rem; }
.pcard-more {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1.3rem; border-top: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .98rem;
  transition: background .25s, color .25s;
}
.pcard:hover .pcard-more { background: var(--red); color: var(--white); }

/* ---------- Feature showcase (gate + solar) ---------- */
.showcase { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.4rem; }
@media (max-width: 880px) { .showcase { grid-template-columns: 1fr; } }
.show {
  position: relative; min-height: 440px; border-radius: 18px; overflow: hidden;
  display: flex; align-items: flex-end; color: var(--white); text-decoration: none;
  isolation: isolate;
}
.show > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.show:hover > img { transform: scale(1.05); }
.show::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,24,67,.05) 20%, rgba(10,24,67,.92) 85%); }
.show-body { padding: clamp(1.5rem, 3vw, 2.2rem); }
.show-label {
  display: inline-block; background: var(--red); color: var(--white);
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  padding: .3rem .8rem; border-radius: 4px; margin-bottom: .8rem;
}
.show--solar .show-label { background: #2E8B3A; }
.show h3 { color: var(--white); font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .4rem; }
.show p { color: #D5DCF0; margin-bottom: 1rem; max-width: 46ch; }
.show-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.show-tags span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: .25rem .7rem; border-radius: 100px; font-size: .88rem; }
.show-link { font-family: var(--font-head); font-weight: 600; color: var(--gold); display: inline-flex; gap: .5rem; align-items: center; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.process::before {
  content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(200,149,44,.7) 0 8px, transparent 8px 16px);
}
.pstep { text-align: center; position: relative; }
.pstep-num {
  width: 68px; height: 68px; margin: 0 auto 1.1rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem;
  background: var(--navy-soft); color: var(--white); border: 3px solid var(--gold);
  position: relative;
}
.pstep-num b {
  position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--red); color: var(--white); font-family: var(--font-head); font-size: .85rem;
  display: grid; place-items: center;
}
.pstep h3 { font-size: 1.2rem; }
.pstep p { color: #B9C4E4; font-size: .98rem; margin: 0 auto; max-width: 26ch; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; row-gap: 2.2rem; } .process::before { display: none; } }
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }

/* ---------- Clients ---------- */
.clients-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.client-tile {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.4rem 1rem; text-align: center; transition: border-color .25s, transform .25s;
}
.client-tile:hover { border-color: var(--navy-soft); transform: translateY(-4px); }
.client-tile i { font-size: 1.8rem; color: var(--navy); margin-bottom: .7rem; }
.client-tile strong { display: block; font-family: var(--font-head); color: var(--navy); line-height: 1.2; }
.client-tile span { font-size: .88rem; color: var(--muted); }
@media (max-width: 960px) { .clients-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .clients-row { grid-template-columns: 1fr 1fr; } }
