/*
Theme Name: PISL Website
Theme URI: https://pisl.hk
Author: Projohn Integrated Services Limited
Author URI: https://pisl.hk
Description: Official website theme for Projohn Integrated Services Limited – a Hong Kong-based strategy, design and event management consultancy.
Version: 1.0.0
License: All Rights Reserved
Text Domain: pisl
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:          #05445E;
  --bg-card:     #022E41;
  --fg:          #D4F1F4;
  --fg-muted:    #8BB8BE;
  --fg-dim:      #5c8e95;
  --border:      #1A6080;
  --primary:     #ACDABB;
  --primary-fg:  #05445E;
  --secondary:   #189AB4;
  --secondary-fg:#D4F1F4;
  --font:        'Plus Jakarta Sans', sans-serif;
  --container:   1280px;
  --radius:      2px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 768px) {
  .container { padding-left: 3rem; padding-right: 3rem; }
}

.grid-2 { display: grid; gap: 4rem; }
.grid-3 { display: grid; gap: 2rem; }
@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-12 { display: grid; gap: 4rem; }
@media (min-width: 1024px) {
  .grid-12 { grid-template-columns: repeat(12, 1fr); }
}

.col-4 { grid-column: span 4; }
.col-8 { grid-column: span 8; }

/* ============================================================
   COMPONENTS — SHARP PANEL / BUTTONS
   ============================================================ */
.sharp-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.sharp-panel::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sharp-panel:hover::after { opacity: 1; }
.sharp-panel:hover { transform: translateY(-4px); }

.sharp-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.3s ease, color 0.3s ease;
  cursor: pointer;
}
.sharp-button:hover { background: var(--secondary); color: #fff; }

.sharp-button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--primary);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  transition: background 0.3s ease, color 0.3s ease;
  cursor: pointer;
}
.sharp-button-outline:hover { background: var(--primary); color: var(--primary-fg); }

.icon-box {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(172,218,187,0.2);
  background: rgba(172,218,187,0.06);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.icon-box.secondary {
  border-color: rgba(24,154,180,0.25);
  background: rgba(24,154,180,0.06);
}
.icon-box svg { width: 22px; height: 22px; }

.icon-box-lg {
  width: 3.5rem; height: 3.5rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s;
}
.icon-box-lg svg { width: 26px; height: 26px; }
.sharp-panel:hover .icon-box-lg { border-color: var(--primary); background: rgba(172,218,187,0.06); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.eyebrow-line {
  height: 1px; width: 3rem;
  background: var(--secondary);
  flex-shrink: 0;
}
.eyebrow span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
}
.eyebrow.primary .eyebrow-line { background: var(--primary); }
.eyebrow.primary span { color: var(--primary); }

/* ============================================================
   NAVBAR
   ============================================================ */
#pisl-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  border-bottom: 1px solid transparent;
  transition: padding 0.3s, background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
#pisl-nav.scrolled {
  padding: 1rem 0;
  background: rgba(5, 68, 94, 0.95);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center;
  width: 10rem; height: 2.5rem;
}
.nav-logo img {
  max-height: 100%; object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.nav-logo:hover img { opacity: 1; }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-link {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(212,241,244,0.8);
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 100%; height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-burger {
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  transition: color 0.2s, border-color 0.2s;
}
.nav-burger:hover { color: var(--primary); border-color: var(--primary); }
@media (min-width: 768px) { .nav-burger { display: none; } }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 1rem 1.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(212,241,244,0.8);
  border-bottom: 1px solid rgba(26,96,128,0.4);
  transition: color 0.2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--primary); }

/* ============================================================
   HERO
   ============================================================ */
.pisl-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 5rem;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(3,34,48,0.88) 0%,
    rgba(5,68,94,0.75) 60%,
    rgba(24,154,180,0.30) 100%
  );
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.1;
}
.hero-grid-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}
.hero-grid-line:nth-child(1) { left: 25%; }
.hero-grid-line:nth-child(2) { left: 50%; }
.hero-grid-line:nth-child(3) { left: 75%; }

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1000px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.hero-eyebrow-line {
  height: 1px; width: 3rem;
  background: var(--primary);
  flex-shrink: 0;
}
.hero-eyebrow span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}
.hero-headline {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}
.hero-headline .line-1 { color: var(--fg); display: block; }
.hero-headline .line-2 { color: var(--secondary); display: block; margin-top: 0.25em; }
.hero-headline .line-3 { color: var(--primary); display: block; margin-top: 0.25em; }

.hero-tagline {
  border-left: 2px solid var(--secondary);
  padding-left: 1.5rem;
  max-width: 42rem;
  margin-bottom: 3rem;
}
.hero-tagline p {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.75;
  color: rgba(212,241,244,0.8);
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
}
@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; align-items: center; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.pisl-about {
  padding: 8rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-cards { display: grid; gap: 1.5rem; }
@media (min-width: 640px) {
  .about-cards { grid-template-columns: 1fr 1fr; }
  .about-cards .card-wide { grid-column: span 2; }
}
.about-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--bg);
}
.about-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.about-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}
.about-text h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 2.5rem;
}
.about-text h2 .accent { color: var(--secondary); }
.about-text p {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.75;
  color: rgba(212,241,244,0.8);
  margin-bottom: 1.5rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
.pisl-services {
  padding: 8rem 0;
  background: var(--bg);
}
.services-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 5rem;
}
@media (min-width: 768px) { .services-header { flex-direction: row; } }

.services-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.services-header h2 .accent { color: var(--primary); }
.services-header p {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 28rem;
}

.service-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}
.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fg);
  margin: 2rem 0 1rem;
}
.service-card .desc {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--fg-muted);
  margin-bottom: 2rem;
}
.service-features {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(26,96,128,0.5);
}
.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(212,241,244,0.8);
  padding: 0.5rem 0;
}
.service-features li svg { flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   WHY PISL
   ============================================================ */
.pisl-why {
  padding: 8rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
@media (min-width: 1024px) {
  .why-sticky { position: sticky; top: 8rem; }
}
.why-left { grid-column: span 4; }
.why-right { grid-column: span 8; }
.why-left h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.why-left p {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--fg-muted);
}
.why-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }

.why-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--bg);
}
.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.why-card p {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--fg-muted);
}

/* ============================================================
   CONTACT
   ============================================================ */
.pisl-contact {
  padding: 8rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.contact-header { max-width: 48rem; margin-bottom: 5rem; }
.contact-header h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.contact-header h2 .accent { color: var(--secondary); }
.contact-header p {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--fg-muted);
}
.contact-cards {
  display: grid;
  gap: 2rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) { .contact-cards { grid-template-columns: 1fr 1fr; } }

.contact-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 768px) { .contact-card { flex-direction: row; } }

.contact-card .label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}
.contact-card .address {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg);
}
.contact-card a.email {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--fg);
  transition: color 0.2s;
  word-break: break-all;
}
.contact-card a.email:hover { color: var(--primary); }
.contact-card .note {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-dim);
  margin-top: 1rem;
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.pisl-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 4rem 0;
}
.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand-logo {
  width: 8rem; height: 2.5rem;
  display: flex; align-items: center;
  margin-bottom: 1.5rem;
}
.footer-brand-logo img {
  max-height: 100%; object-fit: contain;
  mix-blend-mode: screen; opacity: 0.8;
}
.footer-brand p {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-dim);
  line-height: 1.75;
  max-width: 22rem;
}
.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.footer-col li {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-dim);
  padding: 0.4rem 0;
  transition: color 0.2s;
}
.footer-col li:hover { color: var(--primary); cursor: pointer; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-dim);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: var(--fg-dim); transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.footer-bottom p {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
  opacity: 0.6;
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }
