/*
Theme Name: GarasiMedia
Theme URI: https://garasimedia.id
Author: GarasiMedia.id
Author URI: https://garasimedia.id
Description: Custom theme WordPress untuk GarasiMedia.id — vendor dokumentasi fotografi, videografi, photobooth/videobooth, & Fotoyu sejak 2022, Kota Serang. Layanan, paket harga, testimoni, dan partner dapat dikelola langsung dari Dashboard (memerlukan plugin Advanced Custom Fields).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.7
Text Domain: garasimedia
*/

:root{
  --bg:#fafbfe;
  --surface:#ffffff;
  --text:#1a1d2e;
  --muted:#6b7280;
  --accent:#39b0f7;
  --accent2:#6bc8ff;
  --border:#e4e6ef;
  --success:#10b981;
  --grad:linear-gradient(135deg,var(--accent),var(--accent2));
  --accent-tint:#e6f5ff;
  --navbar-bg:rgba(250,251,254,.85);
  --shadow-color:rgba(26,29,46,.12);
}

html[data-theme="dark"]{
  --bg:#0e1016;
  --surface:#171a23;
  --text:#f1f3f9;
  --muted:#9aa2b8;
  --accent:#39b0f7;
  --accent2:#6bc8ff;
  --border:#2b2f3d;
  --success:#22c58e;
  --accent-tint:rgba(57,176,247,.16);
  --navbar-bg:rgba(14,16,22,.85);
  --shadow-color:rgba(0,0,0,.35);
}
html[data-theme="dark"] .navbar-toggler-icon{ filter:invert(1); }
html{ transition:background-color .25s ease; }
body{ transition:background-color .25s ease, color .25s ease; }

/* ---------- Logo terang/gelap ---------- */
.site-logo{ max-height:44px; width:auto; display:block; }
.logo-dark{ display:none; }
html.has-dark-logo[data-theme="dark"] .logo-light{ display:none; }
html.has-dark-logo[data-theme="dark"] .logo-dark{ display:block; }

/* ---------- Toggle dark/light mode ---------- */
.theme-toggle{
  width:42px;height:42px;border-radius:8px;
  border:1.5px solid var(--border);
  background:var(--surface);color:var(--text);
  display:inline-flex;align-items:center;justify-content:center;
  font-size:1.05rem;cursor:pointer;transition:all .2s;
  flex:0 0 auto;
}
.theme-toggle:hover{ border-color:var(--accent); color:var(--accent); }
.theme-toggle .icon-dark{ display:inline; }
.theme-toggle .icon-light{ display:none; }
html[data-theme="dark"] .theme-toggle .icon-dark{ display:none; }
html[data-theme="dark"] .theme-toggle .icon-light{ display:inline; }

body{
  font-family:'Inter',sans-serif;
  background-color:var(--bg);
  color:var(--text);
}

h1,h2,h3,h4,.font-display{
  font-family:'Syne',sans-serif;
  letter-spacing:-0.01em;
}

a{ text-decoration:none; }

/* ---------- Aksesibilitas: skip link & focus state ---------- */
.skip-link{
  position:absolute;
  top:-100px;left:1rem;
  background:var(--text);color:#fff;
  padding:.7rem 1.2rem;border-radius:8px;
  font-family:'Syne',sans-serif;font-weight:600;font-size:.85rem;
  z-index:2000;
  transition:top .2s;
}
.skip-link:focus{ top:1rem; color:#fff; }

a:focus-visible,
button:focus-visible,
.tab-pill:focus-visible,
.slider-arrow:focus-visible,
.social-icon:focus-visible{
  outline:3px solid var(--accent);
  outline-offset:2px;
  border-radius:6px;
}

/* ---------- Navbar ---------- */
.navbar-gm{
  background:var(--navbar-bg);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
  transition:background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}

/* ---------- Navbar transparan di atas hero video, solid saat discroll ---------- */
.navbar-transparent{
  background:transparent;
  border-bottom-color:transparent;
  backdrop-filter:none;
}
/* Saat login sebagai admin, WordPress mendorong body ke bawah untuk toolbar admin —
   navbar fixed perlu ikut turun supaya tidak ada celah (ini TIDAK muncul untuk
   pengunjung biasa yang tidak login). */
body.admin-bar .navbar-transparent.fixed-top{ top:32px; }
@media screen and (max-width:782px){
  body.admin-bar .navbar-transparent.fixed-top{ top:46px; }
}
.navbar-transparent .nav-link-gm,
.navbar-transparent .navbar-brand-text{
  color:#fff !important;
}
.navbar-transparent .theme-toggle{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.3);
  color:#fff;
}
.navbar-transparent .btn-gm-primary{
  box-shadow:0 8px 20px rgba(0,0,0,.25);
}
.navbar-transparent.navbar-scrolled{
  background:var(--navbar-bg);
  border-bottom-color:var(--border);
  backdrop-filter:blur(12px);
}
.navbar-transparent.navbar-scrolled .nav-link-gm,
.navbar-transparent.navbar-scrolled .navbar-brand-text{
  color:var(--text) !important;
}
.navbar-transparent.navbar-scrolled .theme-toggle{
  background:var(--surface);
  border-color:var(--border);
  color:var(--text);
}
.brand-icon{
  width:38px;height:38px;border-radius:10px;
  background:var(--grad);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:15px;
}
.navbar-brand-text{
  font-family:'Syne',sans-serif;
  font-weight:700;font-size:1.1rem;color:var(--text);
}
.nav-link-gm{
  font-weight:500;font-size:.92rem;color:var(--text)!important;
  margin:0 .6rem;
}
.nav-link-gm:hover{ color:var(--accent)!important; }

.btn-gm-primary{
  background:var(--grad);
  color:#fff;border:none;
  font-family:'Syne',sans-serif;font-weight:600;font-size:.9rem;
  padding:.6rem 1.3rem;border-radius:8px;
  transition:transform .2s, box-shadow .2s;
}
.btn-gm-primary:hover{
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 10px 20px rgba(57,176,247,.28);
}
.btn-gm-outline{
  border:1.5px solid var(--border);
  color:var(--text);
  font-family:'Syne',sans-serif;font-weight:600;font-size:.9rem;
  padding:.6rem 1.3rem;border-radius:8px;
  transition:all .2s;
}
.btn-gm-outline:hover{ border-color:var(--accent); color:var(--accent); }

/* ---------- Hero ---------- */
/* ---------- Hero + Partner: satu layar penuh di layar besar (HD ke atas) ---------- */
.hero-partners-viewport{ display:block; }
@media (min-width:992px) and (min-height:700px){
  /* Navbar transparan (nempel di atas hero) — hero sendiri isi 100% tinggi layar */
  nav.navbar-transparent ~ main .hero-partners-viewport .hero{ min-height:100vh; }
  /* Navbar normal (ambil ruang sendiri di atas) — dikurangi tinggi navbar-nya */
  nav:not(.navbar-transparent) ~ main .hero-partners-viewport .hero{ min-height:calc(100vh - 82px); }

  .hero-partners-viewport .hero{
    display:flex;
    align-items:center;
    padding-top:6.5rem;
    padding-bottom:2rem;
  }
  .hero-partners-viewport .hero > .container{ width:100%; }
}

.hero{
  padding:5rem 0 3rem;
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:'';
  position:absolute; top:-15%; right:-10%;
  width:550px;height:550px;border-radius:50%;
  background:radial-gradient(circle, rgba(57,176,247,.10) 0%, rgba(250,251,254,0) 70%);
  z-index:0;
}

/* ---------- Hero: video background (opsional) ---------- */
.hero-bg-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
}
.hero-bg-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(10,12,18,.72) 0%, rgba(10,12,18,.58) 60%, rgba(10,12,18,.72) 100%);
  z-index:0;
}
.hero-has-video::before{ display:none; }
.hero-has-video .badge-eyebrow{
  background:rgba(255,255,255,.14); color:#fff;
  backdrop-filter:blur(6px);
}
.hero-has-video h1{ color:#fff; }
.hero-has-video h1 span{
  background:none;
  -webkit-background-clip:initial;
  background-clip:initial;
  -webkit-text-fill-color:initial;
  color:var(--accent2);
}
.hero-has-video .lead-gm{ color:rgba(255,255,255,.85); }
.hero-has-video .btn-gm-outline{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.35);
  color:#fff;
}
.hero-has-video .btn-gm-outline:hover{ border-color:#fff; color:#fff; }
.badge-eyebrow{
  background:var(--accent-tint);color:var(--accent);
  padding:.4rem 1rem;border-radius:20px;
  font-size:.78rem;font-weight:600;
  display:inline-flex;align-items:center;gap:6px;
}
.hero h1{
  font-size:2.7rem;font-weight:700;line-height:1.22;
  margin:1.2rem 0 1.2rem;
}
.hero h1 span{
  background:var(--grad);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
}
.hero p.lead-gm{
  color:var(--muted);font-size:1.02rem;max-width:520px;
}

/* Polaroid-stack signature illustration */
.polaroid-stack{ position:relative; height:420px; }
.polaroid{
  position:absolute;
  background:#fff;
  border-radius:6px;
  box-shadow:0 20px 40px var(--shadow-color);
  padding:10px 10px 34px;
}
.polaroid .frame{
  width:100%;height:100%;border-radius:3px;
  display:flex;align-items:center;justify-content:center;
  font-size:1.8rem;color:#fff;
  overflow:hidden;
}
.polaroid .frame img{ width:100%;height:100%;object-fit:cover; }
.p1{ width:200px;height:230px; top:10px; left:20px; transform:rotate(-8deg); z-index:1; }
.p2{ width:210px;height:240px; top:60px; left:170px; transform:rotate(6deg); z-index:2; }
.p3{ width:190px;height:215px; top:170px; left:55px; transform:rotate(-3deg); z-index:3; }
.p1 .frame{ background:linear-gradient(135deg,#1a1d2e,#39516b); }
.p2 .frame{ background:linear-gradient(135deg,var(--accent),var(--accent2)); }
.p3 .frame{ background:linear-gradient(135deg,#ffb648,#ff8a3d); }

/* ---------- Stats strip ---------- */
.stats-strip{
  background:#1a1d2e;border-radius:20px;
  padding:2.5rem 1.5rem;
  margin-top:3.5rem;
}
.stat-item{ text-align:center; padding:.5rem; }
.stat-item .num{
  font-family:'Syne',sans-serif;font-weight:700;
  font-size:1.9rem;color:#fff;
}
.stat-item .lbl{
  font-size:.78rem;color:#9ca3af;
  margin-top:.2rem;
}

/* ---------- Section heading ---------- */
.section-pad{ padding:5rem 0; }
.section-title{ margin-bottom:3rem; }
.section-title .eyebrow{
  color:var(--accent);font-weight:600;font-size:.8rem;
  text-transform:uppercase;letter-spacing:.08em;
}
.section-title h2{ font-size:2rem;font-weight:700;margin:.4rem 0 .6rem; }
.section-title p{ color:var(--muted);font-size:.95rem;max-width:560px; }

/* ---------- Service / feature cards ---------- */
.card-gm{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:2.2rem 1.8rem;
  height:100%;
  transition:all .2s;
}
.card-gm:hover{ border-color:var(--accent); transform:translateY(-4px); }
.card-gm .icon-wrap{
  width:56px;height:56px;border-radius:12px;
  background:var(--accent-tint);color:var(--accent);
  display:flex;align-items:center;justify-content:center;
  font-size:1.4rem;margin-bottom:1.2rem;
}
.card-gm h3{ font-size:1.05rem;font-weight:600;margin-bottom:.6rem; }
.card-gm p{ font-size:.88rem;color:var(--muted);margin-bottom:0; }

/* ---------- Proses kerja ---------- */
.proses-item{ position:relative; padding-left:0; }
.proses-no{
  font-family:'Syne',sans-serif;font-weight:800;
  font-size:2.4rem;color:var(--border);
  line-height:1;margin-bottom:.6rem;
}
.proses-item h4{ font-size:1rem;font-weight:600;margin-bottom:.4rem; }
.proses-item p{ font-size:.86rem;color:var(--muted); }

/* ---------- Harga ---------- */
.price-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:2.2rem 1.8rem;
  height:100%;
  display:flex;
  flex-direction:column;
  position:relative;
  transition:all .2s;
}
.price-card.popular{
  border-color:var(--accent);
  box-shadow:0 20px 40px rgba(57,176,247,.08);
}
.price-badge{
  position:absolute;top:18px;right:18px;
  background:var(--grad);color:#fff;
  padding:.25rem .7rem;border-radius:12px;
  font-size:.65rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.04em;
}
.price-card h3{ font-size:1rem;font-weight:600;margin-bottom:.4rem; }
.price-card .kategori{
  font-size:.72rem;font-weight:700;color:var(--accent);
  text-transform:uppercase;letter-spacing:.06em;margin-bottom:.5rem;display:block;
}
.price-card .amount{
  font-family:'Syne',sans-serif;font-weight:700;
  font-size:1.9rem;color:var(--text);
  margin:1.2rem 0;display:flex;align-items:baseline;gap:4px;flex-wrap:wrap;
}
.price-card .amount span{
  font-size:.78rem;color:var(--muted);font-weight:400;font-family:'Inter',sans-serif;
}
.price-features{ list-style:none;padding:0;margin:0 0 1.6rem; }
.price-features li{
  font-size:.85rem;color:var(--text);
  display:flex;align-items:center;gap:8px;
  margin-bottom:.7rem;
}
.price-features li i{ color:var(--success); }

/* ---------- Harga: tab kategori ---------- */
.price-tabs{
  display:flex;flex-wrap:wrap;gap:.6rem;
  justify-content:center;margin-bottom:2.5rem;
}
.tab-pill{
  border:1.5px solid var(--border);
  background:var(--surface);
  color:var(--text);
  font-family:'Syne',sans-serif;font-weight:600;font-size:.85rem;
  padding:.55rem 1.3rem;border-radius:30px;
  transition:all .2s;cursor:pointer;
}
.tab-pill:hover{ border-color:var(--accent);color:var(--accent); }
.tab-pill.active{
  background:var(--grad);border-color:transparent;color:#fff;
  box-shadow:0 8px 18px rgba(57,176,247,.25);
}

/* ---------- Harga: slider ---------- */
.price-slider-wrap{ position:relative;margin:0 -8px; }
.price-slider{
  display:flex;gap:1.25rem;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  padding:.5rem 8px 1.5rem;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.price-slider::-webkit-scrollbar{ display:none; }
.price-slide{
  flex:0 0 auto;
  width:300px;
  scroll-snap-align:center;
}
.slider-arrow{
  position:absolute;top:42%;transform:translateY(-50%);
  width:44px;height:44px;border-radius:50%;
  background:#fff;border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  color:var(--text);cursor:pointer;z-index:5;
  box-shadow:0 8px 20px var(--shadow-color);
  transition:all .2s;
}
.slider-arrow:hover{ border-color:var(--accent);color:var(--accent); }
.slider-arrow-left{ left:-6px; }
.slider-arrow-right{ right:-6px; }
@media (max-width:767px){
  .slider-arrow{ display:none; }
  .price-slide{ width:84vw; }
}

/* ---------- Partner Marquee ---------- */
.partners-section{ padding:3.5rem 0; }
.partners-marquee-wrap{
  overflow:hidden;
  position:relative;
  -webkit-mask-image:linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image:linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.partners-track{
  display:flex;
  align-items:stretch;
  gap:1.75rem;
  width:max-content;
  animation:partners-scroll 34s linear infinite;
}
.partners-marquee-wrap:hover .partners-track{ animation-play-state:paused; }
@keyframes partners-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}
.partner-item{
  flex:0 0 auto;
  width:var(--partner-w, 576px);
  display:flex;
  flex-direction:column;
  align-items:var(--partner-items-align, center);
  gap:.7rem;
}
.partner-logo{
  flex:0 0 auto;
  width:var(--partner-w, 576px);
  height:var(--partner-h, 303px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.7rem;
  padding:0;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  text-align:center;
  overflow:hidden;
  transition:all .2s;
}
.partner-item:hover .partner-logo{
  border-color:var(--accent);
  transform:translateY(-3px);
  box-shadow:0 14px 28px var(--shadow-color);
}
.partner-caption{
  font-family:'Syne',sans-serif;font-weight:700;font-size:.85rem;
  color:var(--text);text-align:var(--partner-text-align, center);
  width:100%;
  box-sizing:border-box;
  padding:0 .5rem;
  overflow-wrap:break-word;
  margin:0;
}
.partner-logo-icon{
  width:52px;height:52px;border-radius:12px;
  background:var(--accent-tint);color:var(--accent);
  display:flex;align-items:center;justify-content:center;
  font-size:1.4rem;
}
.partner-logo-name{
  font-family:'Syne',sans-serif;font-weight:700;font-size:.8rem;
  color:var(--muted);line-height:1.3;
}
.partner-logo img{
  width:100%;
  height:100%;
  object-fit:var(--partner-fit, cover);
  display:block;
}
@media (max-width:767px){
  .partner-logo{ width:min(var(--partner-w, 576px), 88vw); height:calc(min(var(--partner-w, 576px), 88vw) * var(--partner-ratio, 0.5260)); }
  .partner-item{ width:min(var(--partner-w, 576px), 88vw); }
}
@media (prefers-reduced-motion: reduce){
  .partners-track{ animation:none; }
}

/* ---------- Tentang ---------- */
.about-visual{
  background:var(--grad);
  border-radius:20px;
  min-height:380px;
  display:flex;align-items:center;justify-content:center;
  color:#fff;text-align:center;padding:2rem;
  position:relative;overflow:hidden;
}
.about-visual i{ font-size:3rem;opacity:.9;margin-bottom:1rem; }
.about-visual::after{
  content:'';position:absolute;inset:0;
  background:radial-gradient(circle at 70% 20%, rgba(255,255,255,.18), transparent 60%);
}

/* ---------- Galeri ---------- */
.gallery-tile{
  background:var(--surface);
  border:1px dashed var(--border);
  border-radius:14px;
  aspect-ratio:4/5;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  color:var(--muted);
  transition:all .2s;
  overflow:hidden;
  position:relative;
}
.gallery-tile:hover{ border-color:var(--accent); color:var(--accent); }
.gallery-tile i{ font-size:1.8rem;margin-bottom:.6rem; }
.gallery-tile span{ font-size:.82rem;font-weight:600; }
.gallery-tile img{
  position:absolute;inset:0;
  width:100%;height:100%;object-fit:cover;
  border-radius:14px;
}
.gallery-tile img + span,
.gallery-tile img ~ i{ display:none; }
.gallery-tile.has-photo{ border-style:solid; }

/* ---------- Galeri: video upload & embed YouTube/Vimeo ---------- */
.gallery-tile.has-video{ border-style:solid; background:#000; }
.gallery-video{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
  border-radius:14px;
}
.gallery-tile.has-embed{ padding:0; }
.gallery-tile.has-embed iframe{
  position:absolute;inset:0;
  width:100%!important;height:100%!important;
  border:0;border-radius:14px;
}

/* ---------- Testimoni ---------- */
.testi-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:1.8rem;
  height:100%;
}
.testi-card .stars{ color:#f59e0b;font-size:.8rem;margin-bottom:.8rem; }
.testi-card p.isi{ font-size:.9rem;color:var(--text);margin-bottom:1rem; }
.testi-card .nama{ font-size:.82rem;font-weight:600;color:var(--muted); }

/* ---------- CTA ---------- */
.cta-band{
  background:#1a1d2e;border-radius:24px;
  padding:3.5rem 2rem;text-align:center;color:#fff;
}
.cta-band h2{ font-size:1.9rem;font-weight:700;margin-bottom:.8rem; }
.cta-band p{ color:#9ca3af;font-size:.92rem;max-width:480px;margin:0 auto 1.8rem; }

/* ---------- Footer ---------- */
footer{ border-top:1px solid var(--border);padding:3rem 0 1.5rem; }
footer h5{ font-family:'Syne',sans-serif;font-size:.95rem;font-weight:700;margin-bottom:1rem; }
footer p, footer li{ font-size:.85rem;color:var(--muted); }
footer ul{ list-style:none;padding:0; }
footer ul li{ margin-bottom:.5rem; }
footer ul li a{ color:var(--muted); }
footer ul li a:hover{ color:var(--accent); }
.social-icon{
  width:36px;height:36px;border-radius:50%;
  border:1px solid var(--border);
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--text);margin-right:.5rem;transition:all .2s;
}
.social-icon:hover{ background:var(--accent);border-color:var(--accent);color:#fff; }

@media (max-width:991px){
  .polaroid-stack{ height:300px;margin-top:2rem; }
  .p1{ width:150px;height:175px; left:0; }
  .p2{ width:160px;height:185px; left:130px; top:40px; }
  .p3{ width:145px;height:165px; left:40px; top:130px; }
  .hero h1{ font-size:2.1rem; }
  .hero-has-video{ padding-top:7rem; }
}
@media (max-width:767px){
  .stats-strip{ border-radius:14px; padding:1.25rem .5rem; }
  .stats-strip .row{
    display:flex;
    flex-wrap:nowrap;
    justify-content:space-between;
    margin:0;
  }
  .stats-strip .row > div{
    flex:1 1 0;
    max-width:20%;
    padding:0 .15rem;
  }
  .stat-item{ padding:0; }
  .stat-item .num{ font-size:1rem; }
  .stat-item .lbl{ font-size:.52rem;line-height:1.25; }

  /* Section padding & judul lebih ringkas di layar sempit */
  .section-pad{ padding:3rem 0; }
  .section-title{ margin-bottom:2rem; }
  .section-title h2{ font-size:1.5rem; }
  .section-title p{ font-size:.88rem; }

  /* Kartu Layanan & Kenapa Pilih Kami — padding & ikon dikecilkan supaya proporsional */
  .card-gm{ padding:1.6rem 1.4rem; }
  .card-gm .icon-wrap{ width:48px;height:48px;font-size:1.2rem;margin-bottom:.9rem; }
  .card-gm h3{ font-size:1rem; }
  .card-gm p{ font-size:.85rem; }

  /* Tentang Kami — ilustrasi & teks menyesuaikan layar sempit */
  .about-visual{ min-height:220px;padding:1.5rem; }
  .about-visual i{ font-size:2.2rem;margin-bottom:.6rem; }
  .about-visual h3{ font-size:1.1rem; }
}

@media (max-width:380px){
  .stat-item .num{ font-size:.85rem; }
  .stat-item .lbl{ font-size:.46rem; }
  .stats-strip{ padding:1rem .35rem; }
}

/* ---------- Hormati preferensi "reduce motion" pengguna ---------- */
@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}

