/* ------------------------------
   Variables & reset (scoped)
   ------------------------------ */
:root{
  --yellow:#ffd95a;
  --accent:#8e562c;
  --text:#222;
  --muted:#666;
  --glass:rgba(255,255,255,0.75);
  --katalog:#f9f4ee;
  --radius:14px;
  --max:1100px;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color:var(--text);
  line-height:1.5;
  background: #fffaf6;
}
body{
  background: url("../FOTO/Background.png") center/cover no-repeat fixed;
  position: relative;
  font-family: 'Poppins', sans-serif;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  background:linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.55));
  z-index:-1;
}


/* CONTAINER */
.container{max-width:var(--max);margin:0 auto;padding:0 20px}

/* ===== HEADER ===== */
.site-header{
  position:sticky; top:0; z-index:120;
  display:grid;
  grid-template-columns: 160px 1fr 220px;
  align-items:center;
  gap:16px;
  padding:14px 36px;
  background: linear-gradient(180deg, rgba(255,217,90,0.95), rgba(255,217,90,0.88));
  border-bottom: 5px solid;
  border-image: linear-gradient(to right, var(--accent), var(--yellow-dark), var(--accent)) 1;
  transition:padding 200ms ease, box-shadow 200ms ease;
}

/* reduced header on scroll */
.site-header.scrolled{ padding:8px 28px; box-shadow:0 6px 18px rgba(0,0,0,0.09)}

/* logo */
.logo{height:72px; width:auto}
.logo-link{display:inline-block}

/* search center */
.search-bar{
  display:flex; justify-content:center;
}
.search-bar input{
  width:70%; max-width:540px;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.08);
  outline:none;
  font-size:0.95rem;
  background:rgba(255,255,255,0.98);
  transition:box-shadow 180ms ease, transform 120ms ease;
}
.search-bar input:focus{ box-shadow:0 6px 18px rgba(0,0,0,0.12); transform:translateY(-2px) }
.search-bar button{
  margin-left:8px;
  padding:10px 12px;
  border-radius:8px;
  border:none; background:var(--accent); color:white; cursor:pointer;
}

/* nav right */
.main-nav{ display:flex; justify-content:flex-end; gap:12px; align-items:center }
.main-nav a{
  display:inline-block; padding:8px 12px; border-radius:10px;
  text-decoration:none; color:var(--text); font-weight:600;
  transition:background .2s, color .2s, transform .15s;
  position:relative;
}
.main-nav a:hover{ background: rgba(255,255,255,0.85); color:var(--accent); transform:translateY(-3px) 

}

.main-nav a.active {
  color: var(--accent);
  font-weight: 700;
}

/* ===== HERO ===== */
.bd-hero{
  min-height:62vh; display:flex; align-items:center; justify-content:center; position:relative;
  background: linear-gradient(180deg, rgba(255,217,90,0.85), rgba(255,217,90,0.75));
  overflow:hidden;
}
.bd-hero-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;max-width:var(--max);width:100%;padding:40px 20px}
.bd-hero-text{max-width:620px;opacity:0;transform:translateY(18px);transition:all .7s ease}
.bd-hero-text.in{opacity:1;transform:none}
.bd-hero h1{font-family:'Playfair Display', serif;font-size:2.6rem;margin-bottom:8px;color:var(--text)}
.bd-hero .accent{color:var(--accent)}
.lead{color:var(--text);opacity:.9;margin-bottom:12px}
.btn{display:inline-block;padding:10px 16px;border-radius:10px;text-decoration:none;font-weight:700}
.btn.primary{background:var(--accent);color:white}

/* small ornament */
.bd-hero-ornament{width:120px;height:120px;opacity:.14;filter:blur(1px);}

/* ===== INTRO ===== */
.bd-intro{padding:44px 0}
.section-title{font-family:'Playfair Display', serif;color:var(--accent);font-size:1.5rem;margin-bottom:10px;text-align:center}
.section-sub{color:var(--text);text-align:center;max-width:850px;margin:0 auto 6px}

/* ===== GRID CARDS ===== */
.bd-kategori{padding:20px 0 40px}
.grid-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:18px}
.card{
  position:relative;border-radius:16px;height:320px;overflow:hidden;
  background-repeat:no-repeat;background-size:cover;background-position:center;
  cursor:pointer;box-shadow:0 10px 30px rgba(0,0,0,0.08);transition:transform .45s cubic-bezier(.2,.9,.2,1), box-shadow .3s;
  transform-origin:center;
  display:flex;align-items:flex-end;
}
.card.in{transform:none}
.card:hover{transform:translateY(-10px) scale(1.02);box-shadow:0 18px 50px rgba(0,0,0,0.18)}
.card-overlay{position:absolute;inset:0;background:linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.55));z-index:1;transition:background .3s}
.card-body{position:relative;z-index:2;padding:22px;color:#fff}
.card h3{font-family:'Playfair Display', serif;font-size:1.35rem;margin-bottom:6px}
.card p{font-size:0.95rem;opacity:0.95;margin-bottom:10px}
.card-link{display:inline-block;color:var(--yellow);font-weight:700;text-decoration:none;background:transparent;padding:6px 0}

/* Card dengan background gambar */
.card-overlay {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  overflow: hidden;
  color: white;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-overlay:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.2);
}

/* Overlay hitam transparan untuk teks */
.card-overlay .overlay {
  background: rgba(0, 0, 0, 0.612);
  padding: 20px;
  width: 100%;
}
.card-overlay h3 {
  margin-bottom: 6px;
  font-size: 1.3rem;
  font-weight: 700;
}
.card-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Card kategori */
.card-body {
  position: relative;
  z-index: 1;
  color: white;
}

.card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.17);
}

/* gambar */
.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* overlay hitam transparan */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.825), rgba(0, 0, 0, 0.666));
  z-index: 1;
}

/* teks */
.card-body {
  position: relative;
  z-index: 2;
  padding: 20px;
}
.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.card p {
  font-size: 0.95rem;
  opacity: 0.9;
  
}
.card p{ color:(var(--katalog));}
.card h3{ margin-top:4px; color:var(--katalog) }


/* apply inline bg via style attribute --bg */
.card{background-image:var(--bg)}

/* hanya berlaku di section kategori halaman Budaya */
.bd-kategori .card h3 {
  color: #fdfdfc; /* putih gading */
}

.bd-kategori .card p {
  color: rgba(255,255,255,0.85); /* abu terang */
}


/* ===== QUOTES ===== */
.bd-quote{padding:36px 0;background:linear-gradient(90deg, rgba(255, 217, 90, 0.474), rgba(255, 217, 90, 0.474))}
.quote-inner{max-width:880px;margin:0 auto;text-align:center}
.quote{font-family:'Playfair Display', serif;font-size:2.0rem;color:var(--text);min-height:50px;position:relative}
.q-item{position:absolute;left:0;right:0;top:0;opacity:0;transform:translateY(8px);transition:all .6s}
.q-item.show{opacity:1;transform:none}

/* ===== CLOSING (subtle image with overlay) ===== */
.bd-closing{min-height:280px;background:url('../FOTO/Peta\ Bengkalis.webp') center/cover no-repeat fixed;display:flex;align-items:center;justify-content:center;position:relative;margin-top:18px}
.bd-closing-overlay{position:absolute;inset:0;background:linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.4))}
.bd-closing-inner{position:relative;z-index:2;color:#fff;text-align:center}
.bd-closing-inner h2{font-family:'Playfair Display', serif;font-size:2rem;margin-bottom:8px}

/* ===== FOOTER ===== */
.site-footer{background:var(--yellow);padding:28px 20px;color:var(--text);margin-top:24px}
.footer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.footer-grid h4{color:var(--accent);margin-bottom:8px}
.footer-bottom{text-align:center;margin-top:14px;color:var(--text);opacity:.85}


/* ===== RESPONSIVE ===== */
@media (max-width:1024px){
  .grid-cards{grid-template-columns:repeat(2,1fr)}
  .bd-hero-inner{padding:30px}
}
@media (max-width:680px){
  .site-header{grid-template-columns:1fr auto auto;padding:10px}
  .logo{height:56px}
  .grid-cards{grid-template-columns:1fr}
  .card{height:300px}
  .bd-hero h1{font-size:1.8rem}
  .bd-closing{background-attachment:scroll}
  .footer-grid{grid-template-columns:1fr}
}
