/* ==========================================================
   LPK Sakura Karir — Design Tokens
   Palette: washi paper + sumi ink + a single hinomaru red accent
   ========================================================== */
:root{
  --ink:        #17140F;   /* sumi black-brown, primary dark */
  --ink-soft:   #241F18;
  --red:        #BC002D;   /* hinomaru red, the one accent */
  --red-dark:   #8E0021;
  --gold:       #B08B3D;   /* muted brass, used very sparingly */
  --paper:      #F7F3EA;   /* washi off-white */
  --paper-2:    #EFE8D8;
  --line:       #E1D8C4;
  --ink-70:     rgba(23,20,15,.72);
  --ink-50:     rgba(23,20,15,.5);

  --font-display: 'Shippori Mincho', 'Noto Serif', serif;
  --font-body:    'Noto Sans', 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --radius: 14px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 84px; }

body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name{
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

p{ color: var(--ink-70); line-height: 1.7; }
a{ color: inherit; text-decoration: none; }
.text-red{ color: var(--red); }

/* ---------- Eyebrow ---------- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .13em;
  font-weight: 500;
  color: var(--red-dark);
  margin: 0 0 .9rem;
  display: flex; align-items: center; gap: .5rem;
}
.eyebrow::before{ content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); display: inline-block; }
.eyebrow-light{ color: var(--red); }

/* ---------- Buttons ---------- */
.btn-wa{
  background: #1F9D55; color: #fff; border: none; border-radius: 6px;
  font-weight: 600; padding: .6rem 1.3rem;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn-wa:hover{ background: #188345; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31,157,85,.28); }
.btn-wa.btn-lg{ padding: .9rem 1.8rem; font-size: 1rem; }
.btn-wa.btn-sm{ padding: .42rem 1rem; font-size: .85rem; }

.btn-outline-ink{
  border: 1.5px solid var(--ink); color: var(--ink); border-radius: 6px;
  font-weight: 600; padding: .85rem 1.8rem;
  display: inline-flex; align-items: center;
  transition: background .15s ease, color .15s ease;
}
.btn-outline-ink:hover{ background: var(--ink); color: var(--paper); }

/* ============ NAVBAR ============ */
#mainNav{ background: transparent; padding: 1.1rem 0; transition: background .25s ease, padding .25s ease, box-shadow .25s ease; }
#mainNav.scrolled{ background: rgba(247,243,234,.92); backdrop-filter: blur(10px); padding: .65rem 0; box-shadow: 0 1px 0 var(--line); }
.navbar-brand{ display: flex; align-items: center; gap: .6rem; }
.brand-mark{
  font-family: var(--font-display);
  background: var(--red); color: var(--paper);
  font-size: 1rem; font-weight: 700;
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-name{ font-size: 1.05rem; color: var(--ink); }
.nav-link{ font-weight: 500; color: var(--ink) !important; font-size: .93rem; padding: .5rem .85rem !important; }
.nav-link:hover{ color: var(--red-dark) !important; }

/* ============ HERO ============ */
.hero{
  padding: 8.5rem 0 5rem;
  background:
    radial-gradient(700px 320px at 8% -10%, rgba(188,0,45,.07), transparent 60%),
    var(--paper);
}
.hero-title{ font-size: clamp(2.2rem, 4vw, 3.3rem); }
.hero-lead{ max-width: 44ch; margin: 1.3rem 0 2rem; font-size: 1.05rem; }
.hero-cta{ display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Signature element: boarding pass ---------- */
.ticket{
  background: #fff;
  border-radius: var(--radius);
  display: flex;
  box-shadow: 0 30px 60px rgba(23,20,15,.12);
  border: 1px solid var(--line);
  overflow: hidden;
}
.ticket-main{ flex: 1 1 auto; padding: 1.7rem 1.6rem; }
.ticket-eyebrow{ font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; color: var(--ink-50); }
.ticket-row-top{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.ticket-circle{ width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.ticket-route{ display: flex; align-items: center; justify-content: space-between; }
.ticket-code{ display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; }
.ticket-city{ display: block; font-family: var(--font-mono); font-size: .68rem; color: var(--ink-50); letter-spacing: .04em; }
.ticket-plane{ color: var(--red); font-size: 1.3rem; transform: rotate(90deg); }
.ticket-divider{ display: flex; align-items: center; gap: 6px; margin: 1.5rem 0; }
.ticket-divider span{ flex: 1; height: 1px; border-top: 1.5px dashed var(--line); }
.ticket-divider i{ font-size: 6px; color: var(--red); }
.ticket-details{ display: flex; flex-direction: column; gap: .7rem; }
.ticket-details div{ display: flex; justify-content: space-between; font-size: .85rem; }
.ticket-details span{ font-family: var(--font-mono); font-size: .68rem; color: var(--ink-50); letter-spacing: .05em; align-self: center; }
.ticket-details strong{ font-weight: 600; }
.ticket-stub{
  flex: 0 0 150px;
  background: var(--ink);
  color: var(--paper);
  padding: 1.7rem 1.2rem;
  display: flex; flex-direction: column;
  border-left: 2px dashed rgba(247,243,234,.25);
  position: relative;
}
.ticket-stub .ticket-eyebrow{ color: rgba(247,243,234,.5); }
.ticket-big{ font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--red); margin: .6rem 0 .2rem; line-height: 1; }
.ticket-sub{ font-size: .74rem; color: rgba(247,243,234,.65); }
.ticket-barcode{
  margin-top: auto;
  height: 34px;
  background: repeating-linear-gradient(90deg, var(--paper) 0 2px, transparent 2px 5px, var(--paper) 5px 6px, transparent 6px 9px);
  opacity: .8;
}

/* ============ SECTIONS ============ */
.section{ padding: 5.5rem 0; }
.section-paper{ background: var(--paper-2); }
.section-ink{ background: var(--ink); }
.section-ink p{ color: rgba(247,243,234,.6); }
.section-head{ max-width: 640px; margin: 0 0 3rem; }
.section-head h2{ font-size: clamp(1.55rem, 2.5vw, 2.1rem); }

/* ---------- Program cards ---------- */
.prog-card{
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; height: 100%; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.prog-card:hover{ transform: translateY(-6px); box-shadow: 0 18px 36px rgba(23,20,15,.08); border-color: var(--red); }
.prog-icon{
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--paper-2); border-radius: 50%; color: var(--red-dark); font-size: 1.25rem; margin-bottom: 1.1rem;
}
.prog-card h3{ font-size: 1.1rem; margin-bottom: .5rem; }
.prog-card p{ font-size: .92rem; flex-grow: 1; }
.prog-meta{
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em; color: var(--ink-50);
  display: flex; justify-content: space-between; margin: 1rem 0 .6rem;
}
.prog-card .btn-wa{ align-self: flex-start; }

/* ---------- Why us spec cards ---------- */
.spec-card{ border-top: 2px solid var(--red); padding-top: 1.1rem; }
.spec-num{ font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--red); display: block; margin-bottom: .4rem; }
.spec-card p{ font-size: .92rem; margin: 0; max-width: 32ch; }

/* ---------- Process (numbered — a real sequence) ---------- */
.process-list{ display: flex; flex-direction: column; }
.process-item{ display: flex; gap: 1.6rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.process-item:last-child{ border-bottom: none; }
.process-num{
  font-family: var(--font-mono); font-size: 1rem; color: var(--red-dark);
  border: 1.5px solid var(--red); border-radius: 50%;
  width: 46px; height: 46px; min-width: 46px;
  display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.process-item h3{ font-size: 1.03rem; margin-bottom: .35rem; }
.process-item p{ font-size: .92rem; max-width: 60ch; margin: 0; }

/* ---------- Gallery ---------- */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 1rem;
}
.gallery-item{
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.gallery-item.tall{ grid-row: span 2; }
.gallery-item.wide{ grid-column: span 2; }
.gallery-img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(23,20,15,.82) 0%, rgba(23,20,15,0) 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: .9rem;
  opacity: 0;
  transition: opacity .2s ease;
}
.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay{ opacity: 1; }
.gallery-item:hover .gallery-img,
.gallery-item:focus-visible .gallery-img{ transform: scale(1.06); }
.gallery-tag{
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .05em;
  color: var(--red); text-transform: uppercase; margin-bottom: .2rem; display: block;
}
.gallery-title{ color: var(--paper); font-size: .82rem; font-weight: 600; margin: 0; line-height: 1.3; }
.gallery-zoom{
  position: absolute; top: .7rem; right: .7rem;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(247,243,234,.15);
  backdrop-filter: blur(4px);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  opacity: 0;
  transition: opacity .2s ease, background .2s ease;
}
.gallery-item:hover .gallery-zoom{ opacity: 1; }
.gallery-item:hover .gallery-zoom{ background: var(--red); }

/* ---------- Lightbox ---------- */
.lightbox{
  position: fixed; inset: 0;
  background: rgba(23,20,15,.94);
  z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  padding: 1.5rem;
}
.lightbox.is-open{ opacity: 1; visibility: visible; }
.lightbox-stage{
  display: flex; flex-direction: column; align-items: center;
  max-width: 640px; width: 100%;
}
.lightbox-frame{
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  border: 1px solid rgba(247,243,234,.15);
  position: relative;
  transform: scale(.96);
  transition: transform .25s ease;
}
.lightbox.is-open .lightbox-frame{ transform: scale(1); }
.lightbox-img{
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity .2s ease;
}
.lightbox-frame.is-loading .lightbox-img{ opacity: 0; }
.lightbox-frame.is-loading::after{
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: 2px solid rgba(247,243,234,.25);
  border-top-color: var(--red);
  animation: lbspin .7s linear infinite;
}
@keyframes lbspin{ to{ transform: rotate(360deg); } }
.lightbox-caption{ text-align: center; margin-top: 1.1rem; }
.lightbox-tag{
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em;
  color: var(--red); text-transform: uppercase; display: block; margin-bottom: .4rem;
}
.lightbox-caption p{ color: var(--paper); font-size: 1rem; font-weight: 600; margin: 0 0 .4rem; }
.lightbox-count{ font-family: var(--font-mono); font-size: .72rem; color: rgba(247,243,234,.45); }
.lightbox-close{
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(247,243,234,.1); border: none; color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; transition: background .15s ease;
}
.lightbox-close:hover{ background: var(--red); }
.lightbox-nav{
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(247,243,234,.1); border: none; color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer; transition: background .15s ease;
  flex: 0 0 auto;
  margin: 0 1rem;
}
.lightbox-nav:hover{ background: var(--red); }

/* ---------- Testimonial slider ---------- */
.testi-card{ background: #fff; border-radius: var(--radius); padding: 1.8rem; margin: 0 .6rem; border: 1px solid var(--line); height: 100%; }
.testi-quote{ font-size: .97rem; color: var(--ink); margin-bottom: 1.3rem; }
.testi-quote::before{ content: "\201C"; color: var(--red); font-family: var(--font-display); font-size: 1.6rem; }
.testi-person{ display: flex; align-items: center; gap: .8rem; }
.testi-avatar{
  width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--red);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 600; font-size: .82rem;
}
.testi-name{ font-weight: 600; font-size: .9rem; color: var(--ink); }
.testi-role{ font-family: var(--font-mono); font-size: .7rem; color: var(--ink-50); }

/* ---------- CTA banner ---------- */
.cta-banner{
  background: var(--ink);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before{
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: var(--red);
  opacity: .12;
  top: -220px; right: -140px;
}
.cta-banner h2{ color: var(--paper); font-size: clamp(1.55rem, 3vw, 2.2rem); margin: .5rem 0 2rem; position: relative; }
.cta-banner .eyebrow, .cta-banner .btn{ position: relative; }

/* ---------- Blog slider ---------- */
.blog-card{ background: #fff; border-radius: var(--radius); overflow: hidden; margin: 0 .6rem; border: 1px solid var(--line); height: 100%; display: flex; flex-direction: column; }
.blog-thumb{
  height: 170px; background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 2rem; position: relative;
}
.blog-tag{
  position: absolute; top: .8rem; left: .8rem; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .05em;
  background: var(--red); color: var(--paper); padding: .25rem .6rem; border-radius: 3px; font-weight: 600;
}
.blog-body{ padding: 1.3rem; display: flex; flex-direction: column; flex-grow: 1; }
.blog-date{ font-family: var(--font-mono); font-size: .7rem; color: var(--ink-50); margin-bottom: .5rem; }
.blog-body h3{ font-size: 1rem; margin-bottom: .6rem; line-height: 1.4; }
.blog-body p{ font-size: .87rem; flex-grow: 1; }
.blog-read{ font-size: .82rem; font-weight: 600; color: var(--red-dark); margin-top: .8rem; display: inline-flex; align-items: center; gap: .35rem; }
.blog-read i{ transition: transform .15s ease; }
.blog-card:hover .blog-read i{ transform: translateX(4px); }

/* Slick overrides */
.slick-prev, .slick-next{ z-index: 2; width: 42px; height: 42px; }
.slick-prev{ left: -6px; } .slick-next{ right: -6px; }
.slick-prev:before, .slick-next:before{ color: var(--ink); opacity: 1; font-size: 26px; }
.slick-dots li button:before{ color: var(--ink); opacity: .3; }
.slick-dots li.slick-active button:before{ opacity: 1; color: var(--red-dark); }
.slick-slide{ padding-bottom: 6px; }
.testi-slider .slick-track, .blog-slider .slick-track{ display: flex !important; }
.testi-slider .slick-slide, .blog-slider .slick-slide{ height: auto; }
.testi-slider .slick-slide > div, .blog-slider .slick-slide > div{ height: 100%; }

/* ============ FOOTER ============ */
.site-footer{ background: var(--ink); color: rgba(247,243,234,.7); padding: 4.5rem 0 1.5rem; }
.footer-mark{
  font-family: var(--font-display); display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: var(--paper); font-weight: 700;
  width: 34px; height: 34px; border-radius: 50%; font-size: .95rem; margin-bottom: .6rem;
}
.footer-name{ font-family: var(--font-display); font-size: 1.2rem; color: var(--paper); font-weight: 700; margin-bottom: .8rem; }
.footer-desc{ font-size: .88rem; max-width: 34ch; color: rgba(247,243,234,.55); }
.footer-social{ display: flex; gap: .7rem; margin-top: 1.2rem; }
.footer-social a{
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(247,243,234,.2);
  display: flex; align-items: center; justify-content: center; transition: background .15s ease, border-color .15s ease;
}
.footer-social a:hover{ background: var(--red); color: var(--paper); border-color: var(--red); }
.footer-head{ font-family: var(--font-mono); font-size: .73rem; letter-spacing: .08em; color: var(--red); margin-bottom: 1.1rem; }
.footer-links{ list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; font-size: .87rem; }
.footer-links a:hover{ color: var(--red); }
.footer-links i{ color: var(--red); margin-right: .4rem; }
.footer-bottom{
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  border-top: 1px solid rgba(247,243,234,.12); margin-top: 3.2rem; padding-top: 1.5rem;
  font-size: .8rem; color: rgba(247,243,234,.45);
}
#backToTop{
  width: 38px; height: 38px; border-radius: 50%; background: transparent; border: 1px solid rgba(247,243,234,.25);
  color: var(--paper); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s ease;
}
#backToTop:hover{ background: var(--red); color: var(--paper); border-color: var(--red); }

/* ============ WhatsApp floating button ============ */
.wa-float{
  position: fixed; bottom: 22px; right: 22px; width: 58px; height: 58px; background: #1F9D55; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.6rem;
  box-shadow: 0 10px 30px rgba(31,157,85,.4); z-index: 1000;
}
.wa-ping{ position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1F9D55; animation: ping 2s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping{ 0%{ transform: scale(1); opacity: .6; } 100%{ transform: scale(1.6); opacity: 0; } }

/* ============ Scroll reveal ============ */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity: 1; transform: none; transition: none; }
  .wa-ping{ animation: none; display: none; }
}

/* ============ Responsive ============ */
@media (max-width: 991.98px){
  .hero{ padding: 7rem 0 3.5rem; }
  .navbar-collapse{ background: var(--paper); margin-top: .8rem; padding: 1rem; border-radius: 12px; border: 1px solid var(--line); }
  .section{ padding: 4rem 0; }
  .ticket{ margin-top: 1rem; }
  .gallery-grid{ grid-template-columns: repeat(3, 1fr); grid-auto-rows: 130px; }
}

@media (max-width: 767.98px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: .7rem; }
  .gallery-item.wide{ grid-column: span 2; }
  .gallery-item.tall{ grid-row: span 1; }
  .lightbox-nav{ width: 38px; height: 38px; font-size: 1rem; margin: 0 .4rem; }
  .lightbox-close{ top: .8rem; right: .8rem; }
}

@media (max-width: 575.98px){
  .hero-cta{ flex-direction: column; align-items: stretch; }
  .hero-cta .btn{ justify-content: center; }
  .ticket{ flex-direction: column; }
  .ticket-stub{ flex: none; flex-direction: row; align-items: center; gap: 1rem; border-left: none; border-top: 2px dashed rgba(247,243,234,.25); }
  .ticket-barcode{ display: none; }
  .wa-float{ width: 52px; height: 52px; bottom: 16px; right: 16px; font-size: 1.4rem; }
  .cta-banner{ padding: 3.5rem 0; }
  .footer-bottom{ justify-content: center; text-align: center; }
}