/* =========================================================
   PinPoint Bowling — Main Stylesheet
   Warna utama boleh ditukar di :root
   ========================================================= */
:root {
  --red: #e5141c;
  --red-dark: #b80d14;
  --dark: #141414;
  --dark-2: #1e1e1e;
  --text: #4a4a4a;
  --heading: #111;
  --light: #f6f6f6;
  --border: #e8e8e8;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4, h5 { color: var(--heading); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.bg-light { background: var(--light); }
.text-center { text-align: center; }

.section-title { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-title .eyebrow {
  display: inline-block; color: var(--red); font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; font-size: 13px; margin-bottom: 8px;
}
.section-title h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-title p { color: #777; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white); border: 2px solid var(--red);
  padding: 13px 30px; border-radius: 6px; font-weight: 600; font-size: 15px;
  cursor: pointer; transition: all .25s; font-family: inherit;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--red); border-color: var(--white); }

/* =========================================================
   IMAGE PLACEHOLDER
   Gantikan <div class="ph" ...> dengan <img src="assets/images/nama-fail.jpg" alt="...">
   ========================================================= */
.ph {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 16px;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.035) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #e9e9e9, #d6d6d6);
  color: #777; border: 2px dashed #bdbdbd; overflow: hidden;
  font-size: 13px; font-weight: 500; width: 100%; height: 100%;
}
.ph::before {
  content: "\f03e"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  font-size: 30px; color: #a9a9a9;
}
.ph::after {
  content: attr(data-label);
  max-width: 90%; line-height: 1.4;
}
.ph-dark {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #2b2b2b, #161616);
  color: #8a8a8a; border-color: #444;
}
.ph-dark::before { color: #555; }
.ph-round { border-radius: 50%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--dark); color: #bbb; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #bbb; }
.topbar a:hover { color: var(--white); }
.topbar .info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar i { color: var(--red); margin-right: 6px; }
.topbar .social { display: flex; gap: 14px; }
.topbar .social i { color: inherit; margin: 0; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,.06);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 800; color: var(--heading); }
.logo:hover { color: var(--heading); }
.logo-mark {
  width: 44px; height: 44px; border-radius: 50%; background: var(--red);
  display: grid; place-items: center; color: var(--white); font-size: 20px;
  box-shadow: inset -6px -6px 0 rgba(0,0,0,.15);
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.logo span { color: var(--red); }

.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 10px 16px; color: var(--heading); font-weight: 600; font-size: 15px;
  border-radius: 6px; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--red); transform: scaleX(0); transition: transform .25s;
}
.nav a:hover, .nav a.active { color: var(--red); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding: 10px 22px; }
.menu-toggle {
  display: none; background: none; border: 0; font-size: 24px; color: var(--heading); cursor: pointer; padding: 6px;
}

/* ---------- Hero slider ---------- */
.hero { position: relative; height: min(88vh, 720px); min-height: 480px; overflow: hidden; background: var(--dark); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.slide.active { opacity: 1; z-index: 1; }
.slide .ph { position: absolute; inset: 0; border: 0; justify-content: flex-start; padding-top: 30px; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.65)); }
.slide-content {
  position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; color: var(--white); padding: 0 16px;
}
.slide-content h1 {
  color: var(--white); font-size: clamp(32px, 5.5vw, 62px); max-width: 820px; font-weight: 800;
  transform: translateY(30px); opacity: 0; transition: all .8s .3s;
}
.slide-content p { max-width: 560px; color: #eee; font-size: 17px; transform: translateY(30px); opacity: 0; transition: all .8s .5s; }
.slide-content .btn { transform: translateY(30px); opacity: 0; transition: all .8s .7s, background .25s; }
.slide.active .slide-content h1,
.slide.active .slide-content p,
.slide.active .slide-content .btn { transform: none; opacity: 1; }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5);
  background: transparent; color: var(--white); font-size: 18px; cursor: pointer; transition: all .25s;
}
.hero-arrow:hover { background: var(--red); border-color: var(--red); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }
.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 20px; border: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: all .3s; padding: 0; }
.hero-dots button.active { width: 34px; background: var(--red); }

/* ---------- Page banner (inner pages) ---------- */
.page-banner { position: relative; height: 320px; background: var(--dark); overflow: hidden; }
.page-banner .ph { position: absolute; inset: 0; border: 0; justify-content: flex-start; padding-top: 20px; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.page-banner .container { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.page-banner h1 { color: var(--white); font-size: clamp(32px, 5vw, 50px); margin-bottom: 8px; }
.breadcrumb { color: #ddd; font-size: 15px; }
.breadcrumb a { color: var(--white); }
.breadcrumb i { font-size: 11px; margin: 0 10px; color: var(--red); }

/* ---------- Services circles ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.service-item { text-align: center; }
.service-thumb { position: relative; width: 210px; height: 210px; margin: 0 auto 50px; border-radius: 50%; border: 6px solid var(--white); box-shadow: 0 0 0 3px var(--red); }
.service-thumb .page-banner-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 50%; }
.service-thumb .ph { border-radius: 50%; border: 6px solid var(--white); box-shadow: 0 0 0 3px var(--red); transition: transform .4s; }
.service-icon {
  position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%);
  width: 64px; height: 64px; border-radius: 50%; background: var(--white);
  display: grid; place-items: center; font-size: 24px; color: var(--red);
  box-shadow: var(--shadow); border: 2px solid var(--red); transition: all .3s;
}
.service-item:hover .service-icon { background: var(--red); color: var(--white); }
.service-item h3 { font-size: 20px; margin-bottom: 8px; }
.service-item p { font-size: 14.5px; color: #777; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-media { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; position: relative; }
.split-media .ph { border-radius: var(--radius); }
.split-media .badge {
  position: absolute; right: 20px; bottom: 20px; background: var(--red); color: var(--white);
  padding: 18px 22px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow);
}
.split-media .badge strong { display: block; font-size: 34px; line-height: 1; }
.split-media .badge small { font-size: 13px; }
.split-content h2 { font-size: clamp(26px, 3.2vw, 36px); }
.check-list { list-style: none; padding: 0; margin: 20px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--heading); }
.check-list i { color: var(--red); margin-top: 5px; }

/* ---------- Experience (dark) ---------- */
.experience { position: relative; background: var(--dark); overflow: hidden; }
.experience > .ph { position: absolute; inset: 0; border: 0; justify-content: flex-start; padding-top: 16px; }
.experience::before { content: ""; position: absolute; inset: 0; background: rgba(10,10,10,.82); z-index: 1; }
.experience .container { position: relative; z-index: 2; }
.experience .section-title h2 { color: var(--white); }
.experience .section-title p { color: #bbb; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: var(--white); border-radius: var(--radius); padding: 34px 24px; text-align: center;
  transition: transform .3s, box-shadow .3s; border-bottom: 4px solid transparent;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,.3); border-color: var(--red); }
.feature-card .icon {
  width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%;
  background: rgba(229,20,28,.08); color: var(--red); display: grid; place-items: center; font-size: 28px;
}
.feature-card h3 { font-size: 19px; }
.feature-card p { font-size: 14.5px; color: #777; margin: 0; }

/* ---------- Stats ---------- */
.stats { background: var(--red); color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-size: 46px; font-weight: 800; line-height: 1.1; }
.stat span { opacity: .9; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; grid-auto-flow: dense; }
.gallery-grid .ph { border-radius: var(--radius); }
.gallery-grid .wide { grid-column: span 2; }
.gallery-grid .tall { grid-row: span 2; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--dark); color: var(--white); }
.cta > .ph { position: absolute; inset: 0; border: 0; justify-content: flex-start; padding-top: 16px; }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(229,20,28,.92), rgba(20,20,20,.85)); z-index: 1; }
.cta .container { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta h2 { color: var(--white); font-size: clamp(24px, 3vw, 34px); margin-bottom: 6px; }
.cta p { margin: 0; color: #eee; }

/* ---------- Support strip ---------- */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.support-item { display: flex; gap: 18px; align-items: center; }
.support-item i { font-size: 40px; color: var(--red); flex-shrink: 0; }
.support-item h4 { margin: 0; font-size: 20px; text-transform: uppercase; color: var(--red); }
.support-item p { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: #555; font-weight: 600; }

/* ---------- About page ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; transition: all .3s; }
.value-card:hover { border-color: var(--red); box-shadow: var(--shadow); }
.value-card i { font-size: 32px; color: var(--red); margin-bottom: 14px; }
.value-card h3 { font-size: 20px; }
.value-card p { margin: 0; font-size: 15px; }

.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding: 0 0 36px 64px; }
.timeline-item::before {
  content: ""; position: absolute; left: 10px; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--white); border: 5px solid var(--red);
}
.timeline-item .year { color: var(--red); font-weight: 700; font-size: 14px; letter-spacing: 1px; }
.timeline-item h3 { font-size: 20px; margin: 4px 0 6px; }
.timeline-item p { margin: 0; }

/* ---------- Staff directory ---------- */
.directory-toolbar { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 34px; }
.search-box { position: relative; flex: 1 1 300px; max-width: 420px; }
.search-box i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #999; }
.search-box input {
  width: 100%; padding: 13px 16px 13px 44px; border: 1px solid var(--border); border-radius: 50px;
  font-family: inherit; font-size: 15px; outline: none; transition: border-color .2s;
}
.search-box input:focus { border-color: var(--red); }
.filter-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btns button {
  padding: 9px 18px; border-radius: 50px; border: 1px solid var(--border); background: var(--white);
  font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--heading); transition: all .2s;
}
.filter-btns button:hover { border-color: var(--red); color: var(--red); }
.filter-btns button.active { background: var(--red); color: var(--white); border-color: var(--red); }

.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.staff-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .3s; text-align: center;
}
.staff-card:hover { transform: translateY(-6px); }
.staff-photo { aspect-ratio: 1 / 1; position: relative; }
.staff-photo .ph { border: 0; border-bottom: 2px dashed #bdbdbd; }
.staff-dept {
  position: absolute; top: 14px; left: 14px; background: var(--red); color: var(--white);
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 50px;
}
.staff-body { padding: 20px 18px 22px; }
.staff-body h3 { font-size: 19px; margin-bottom: 2px; }
.staff-body .role { color: var(--red); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.staff-contact { list-style: none; padding: 0; margin: 0 0 14px; font-size: 14px; }
.staff-contact li { margin-bottom: 4px; word-break: break-word; }
.staff-contact i { color: #999; width: 18px; }
.staff-contact a { color: var(--text); }
.staff-contact a:hover { color: var(--red); }
.staff-social { display: flex; justify-content: center; gap: 8px; }
.staff-social a {
  width: 34px; height: 34px; border-radius: 50%; background: var(--light); color: var(--heading);
  display: grid; place-items: center; font-size: 14px; transition: all .2s;
}
.staff-social a:hover { background: var(--red); color: var(--white); }
.no-results { text-align: center; padding: 50px 0; color: #888; display: none; }
.no-results i { font-size: 40px; color: #ccc; margin-bottom: 12px; display: block; }

/* ---------- Policy page ---------- */
.policy-layout { display: grid; grid-template-columns: 280px 1fr; gap: 50px; align-items: start; }
.policy-nav {
  position: sticky; top: 100px; background: var(--light); border-radius: var(--radius); padding: 24px;
}
.policy-nav h4 { font-size: 16px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.policy-nav ul { list-style: none; padding: 0; margin: 0; }
.policy-nav a {
  display: block; padding: 10px 14px; border-radius: 6px; color: var(--heading); font-weight: 500; font-size: 15px;
  border-left: 3px solid transparent;
}
.policy-nav a:hover, .policy-nav a.active { background: var(--white); color: var(--red); border-left-color: var(--red); }
.policy-content section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--border); scroll-margin-top: 100px; }
.policy-content section:last-child { border-bottom: 0; }
.policy-content h2 { font-size: 28px; display: flex; align-items: center; gap: 12px; }
.policy-content h2 i { color: var(--red); font-size: 24px; }
.policy-content h3 { font-size: 19px; margin-top: 24px; }
.policy-content li { margin-bottom: 6px; }
.updated { display: inline-block; background: rgba(229,20,28,.08); color: var(--red); padding: 6px 14px; border-radius: 50px; font-size: 14px; font-weight: 600; margin-bottom: 30px; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #aaa; padding-top: 80px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer .logo { color: var(--white); margin-bottom: 18px; }
.footer h4 { color: var(--white); font-size: 19px; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--red); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: #aaa; }
.footer a:hover { color: var(--red); }
.footer-links a i { font-size: 11px; margin-right: 8px; color: var(--red); }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact i { color: var(--red); margin-top: 5px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: var(--dark-2); display: grid; place-items: center; color: var(--white);
}
.footer-social a:hover { background: var(--red); color: var(--white); }
.newsletter { display: flex; margin-top: 14px; }
.newsletter input {
  flex: 1; min-width: 0; padding: 12px 14px; border: 0; border-radius: 6px 0 0 6px; font-family: inherit; background: var(--dark-2); color: var(--white);
}
.newsletter button { border: 0; background: var(--red); color: var(--white); padding: 0 18px; border-radius: 0 6px 6px 0; cursor: pointer; }
.footer-bottom { border-top: 1px solid #2a2a2a; padding: 22px 0; font-size: 14px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }

.back-to-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--red); color: var(--white); border: 0; cursor: pointer; font-size: 16px;
  opacity: 0; visibility: hidden; transition: all .3s; z-index: 90; box-shadow: var(--shadow);
}
.back-to-top.show { opacity: 1; visibility: visible; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .services-grid, .feature-grid, .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-cta .phone { display: none; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 78px; left: 0; right: 0; background: var(--white);
    box-shadow: 0 15px 25px rgba(0,0,0,.08); max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav.open { max-height: 420px; }
  .nav ul { flex-direction: column; padding: 10px 16px 20px; gap: 0; }
  .nav a { padding: 12px 6px; border-bottom: 1px solid var(--border); }
  .nav a::after { display: none; }
  .split, .policy-layout { grid-template-columns: 1fr; gap: 40px; }
  .policy-nav { position: static; }
  .values-grid, .support-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 70px 0; }
}
@media (max-width: 600px) {
  .topbar .info span:nth-child(3), .topbar .social { display: none; }
  .header-cta .btn { display: none; }
  .services-grid, .feature-grid, .staff-grid, .footer-grid { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .hero-arrow { display: none; }
  .gallery-grid { grid-auto-rows: 160px; }
  .gallery-grid .wide { grid-column: span 2; }
  .stat strong { font-size: 36px; }
  .cta .container { flex-direction: column; text-align: center; }
}

.page-banner-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
