/*
Theme Name: MyGuest Theme
Theme URI: http://example.com/
Author: Adrian
Description: Tema undangan digital khusus untuk MyGuest. Kompatibel dengan Elementor Free dan Pro.
Version: 1.2
Text Domain: myguest
Tags: elementor, custom-colors, custom-menu, custom-logo, featured-images, full-width-template, theme-options
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Inter:wght@400;500;600&display=swap');

/* =========================================================
   CSS Custom Properties — Warna dikendalikan Customizer
   ========================================================= */
:root {
  --color-primary:      #800020;
  --color-primary-dark: #600018;
  --color-accent:       #ffb3c1;
  --color-bg-alt:       #FDF5F6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body, div, p, span, h1, h2, h3, a, button, ul, li, nav, section, footer {
  font-family: 'Inter', sans-serif; 
  line-height: 1.6;
}
body { background: #fff; color: #1a1a1a; overflow-x: hidden; }

/* Container untuk merapikan desktop */
.container { max-width: 1100px; margin: 0 auto; width: 100%; }
.mg { background: #fff; width: 100%; overflow-x: hidden; }

/* Navbar */
.mg-nav { background: var(--color-primary); padding: 0 16px; height: 64px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: #fff !important; text-decoration: none; }
.logo span { color: #ffb3c1 !important; }
.burger { cursor: pointer; }
.burger span { width: 24px; height: 2px; background: #fff; display: block; margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* Nav Links (Desktop) */
.nav-links { display: none; }
.btn-nav { background: #fff; color: #800020 !important; padding: 8px 20px; border-radius: 100px; font-weight: 600; font-size: 13px; text-decoration: none; transition: 0.2s; }
.btn-nav:hover { background: #fdf5f6; transform: translateY(-2px); }

/* Sidebar Styles */
.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 998; opacity: 0; visibility: hidden; transition: 0.3s ease; }
.sidebar-overlay.active { opacity: 1; visibility: visible; }
.sidebar { position: fixed; top: 0; right: 0; width: 280px; height: 100vh; background: #fff; z-index: 999; transform: translateX(100%); transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); display: flex; flex-direction: column; box-shadow: -5px 0 15px rgba(0,0,0,0.1); }
.sidebar.active { transform: translateX(0); }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 16px; border-bottom: 1px solid #f0e8e9; }
.sidebar-header .logo { color: #1a1a1a !important; }
.sidebar-header .logo span { color: #800020 !important; }
.close-btn { background: none; border: none; font-size: 28px; color: #1a1a1a; cursor: pointer; line-height: 1; padding: 0 5px; transition: transform 0.2s; }
.close-btn:hover { transform: scale(1.1); color: #800020; }
.sidebar-links { list-style: none; padding: 24px 16px; flex: 1; overflow-y: auto; }
.sidebar-links li { margin-bottom: 20px; }
.sidebar-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: #1a1a1a; display: block; transition: all 0.2s; }
.sidebar-links a:hover { color: #800020; padding-left: 6px; }
.sidebar-footer { padding: 20px 16px; border-top: 1px solid #f0e8e9; }

/* WP Menu Classes Reset (Menyesuaikan dengan output WordPress) */
.nav-links ul, .sidebar-links ul { list-style: none; margin: 0; padding: 0; display: inherit; gap: inherit; align-items: inherit; }
.nav-links li, .sidebar-links li { margin: 0; }

/* Hero Section */
.hero { background: var(--color-primary); padding: 48px 16px; text-align: center; }
.ey { font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: #ffb3c1 !important; margin-bottom: 12px; display: block; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700; color: #ffffff !important; line-height: 1.2; margin-bottom: 16px; }
.hero h1 em { font-style: italic; color: #ffb3c1 !important; }
.hero-sub { font-size: 14px; color: rgba(255,255,255,0.85) !important; margin-bottom: 24px; line-height: 1.65; display: block; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 12px; margin-bottom: 36px; justify-content: center; flex-wrap: wrap; }
.btn-solid { background: #ffffff !important; color: #800020 !important; padding: 12px 26px; border-radius: 100px; font-weight: 700; font-size: 14px; display: inline-block; border: 2px solid #ffffff !important; cursor: pointer; transition: 0.2s; text-decoration: none;}
.btn-solid:hover { background: #fdf5f6 !important; transform: translateY(-2px); }
.btn-outline { background: transparent !important; border: 2px solid #ffffff !important; color: #ffffff !important; padding: 12px 26px; border-radius: 100px; font-weight: 600; font-size: 14px; display: inline-block; cursor: pointer; transition: 0.2s; text-decoration: none;}
.btn-outline:hover { background: rgba(255,255,255,0.1) !important; transform: translateY(-2px); }

.stats-row { display: flex; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 24px; max-width: 700px; margin: 0 auto; justify-content: space-around; }
.stat-item { flex: 1; text-align: center; }
.stat-item + .stat-item { border-left: 1px solid rgba(255,255,255,0.2); }
.stat-num { display: block; font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: #ffffff !important; }
.stat-lbl { display: block; font-size: 11px; color: rgba(255,255,255,0.7) !important; margin-top: 4px; }

/* Sections */
.sec { padding: 60px 16px; }
.sec-alt { background: var(--color-bg-alt); }
.sec-hd { text-align: center; margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }
.sec-ey { font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: #800020 !important; margin-bottom: 8px; display: block; }
.sec-hd h2 { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: #1a1a1a !important; margin-bottom: 8px; }
.sec-hd p { font-size: 14px; color: #6b6b6b !important; }

/* Features Grid */
.fitur-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fc { background: #ffffff !important; border-radius: 16px; padding: 20px 16px; border: 1px solid #f0e8e9; transition: transform 0.2s, box-shadow 0.2s; }
.fc:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(128,0,32,0.06); }
.fi-ico { width: 44px; height: 44px; border-radius: 12px; background: #FDF5F6; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; color: #800020; }
.fi-ico svg { width: 22px; height: 22px; }
.fc h3 { font-size: 14px; font-weight: 600; color: #1a1a1a !important; margin-bottom: 6px; }
.fc p { font-size: 13px; color: #6b6b6b !important; line-height: 1.5; }

/* Themes & Filter */
.kat-wrap { max-width: 900px; margin: 0 auto; }
.kat-search { display: flex; align-items: center; gap: 8px; background: #f7f7f7; border: 1.5px solid #ebebeb; border-radius: 100px; padding: 10px 18px; margin-bottom: 16px; width: 100%; max-width: 400px; margin-left: auto; margin-right: auto; }
.kat-search svg { color: #999; flex-shrink: 0; width: 16px; height: 16px; }
.kat-search span { font-size: 13px; color: #999 !important; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; justify-content: center; }
.pill { padding: 6px 16px; border-radius: 100px; border: 1.5px solid #ebebeb; background: #fff; font-size: 13px; font-weight: 500; color: #6b6b6b !important; cursor: pointer; transition: 0.2s; }
.pill:hover { border-color: #800020; color: #800020 !important; }
.pill.act { background: #800020; border-color: #800020; color: #ffffff !important; }

/* Themes Grid */
.kat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pc { background: #ffffff !important; border-radius: 12px; border: 1px solid #f0e8e9; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.pc:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.pc-img { aspect-ratio: 9/12; position: relative; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.pc:hover .pc-img img { transform: scale(1.05); }
.kb { position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,0.95); border-radius: 100px; padding: 4px 10px; font-size: 10px; font-weight: 600; color: #800020 !important; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.pc-body { padding: 12px; }
.pc-name { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 600; color: #1a1a1a !important; margin-bottom: 6px; line-height: 1.2; }
.bf { background: #EEF6FF; color: #1d4ed8 !important; font-size: 10px; font-weight: 600; padding: 3px 6px; border-radius: 4px; display: inline-block; margin-bottom: 8px; }
.pr { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.db { background: #FFF0F0; color: #b91c1c !important; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.pc-old { font-size: 11px; color: #aaa !important; text-decoration: line-through; }
.pc-price { font-size: 15px; font-weight: 700; color: #1a1a1a !important; margin-bottom: 12px; }
.pc-btns { display: flex; flex-direction: column; gap: 6px; }
.btn-c { border: 1.5px solid #dedede; color: #1a1a1a !important; padding: 8px 0; border-radius: 8px; font-size: 12px; font-weight: 500; text-align: center; display: block; background: #fff !important; cursor: pointer; transition: background 0.2s; text-decoration: none; }
.btn-c:hover { background: #f7f7f7 !important; }
.btn-p { background: #800020 !important; color: #ffffff !important; padding: 8px 0; border-radius: 8px; font-size: 12px; font-weight: 700; text-align: center; display: block; border: none; cursor: pointer; transition: background 0.2s; text-decoration: none;}
.btn-p:hover { background: #600018 !important; }
.btn-loadmore { display: block; width: 100%; max-width: 300px; margin: 24px auto 0; padding: 12px 0; border: 1.5px solid #800020; color: #800020 !important; border-radius: 100px; font-size: 14px; font-weight: 600; text-align: center; background: #fff !important; cursor: pointer; transition: 0.2s; }
.btn-loadmore:hover { background: #800020 !important; color: #fff !important; }

/* Steps Grid */
.steps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sk { background: #ffffff !important; border-radius: 16px; padding: 24px 20px; border: 1px solid #f0e8e9; text-align: center; position: relative; z-index: 1; }
.si { width: 50px; height: 50px; border-radius: 14px; background: #FDF5F6; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; color: #800020; }
.si svg { width: 24px; height: 24px; }
.sn { font-size: 12px; letter-spacing: 2px; color: #d6b8bd !important; font-weight: 700; margin-bottom: 6px; display: block; }
.sk h3 { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: #1a1a1a !important; margin-bottom: 6px; }
.sk p { font-size: 13px; color: #6b6b6b !important; line-height: 1.5; }

/* Testimonials */
.testi-scroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.testi-scroll::-webkit-scrollbar { height: 4px; }
.testi-scroll::-webkit-scrollbar-track { background: #f0e8e9; border-radius: 4px; }
.testi-scroll::-webkit-scrollbar-thumb { background: #800020; border-radius: 4px; }
.tc { flex: 0 0 280px; background: #FDF5F6 !important; border-radius: 16px; padding: 20px; border: 1px solid #f0e8e9; scroll-snap-align: center; }
.tc-stars { color: #800020 !important; font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; display: block; }
.tc-msg { font-size: 14px; color: #1a1a1a !important; font-style: italic; line-height: 1.6; margin-bottom: 16px; }
.tc-msg::before { content: '\201C'; }
.tc-msg::after { content: '\201D'; }
.tc-foot { display: flex; align-items: center; gap: 12px; }
.tc-av { width: 40px; height: 40px; border-radius: 50%; background: #800020 !important; color: #ffffff !important; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background-size: cover; background-position: center; }
.tc-name { font-weight: 600; font-size: 14px; color: #1a1a1a !important; }
.tc-sub { font-size: 11px; color: #6b6b6b !important; margin-top: 2px; }
.scroll-hint { text-align: center; font-size: 12px; color: #999 !important; margin-top: 12px; display: block; }

/* FAQ Section */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #edd8db; }
.faq-btn { width: 100%; background: transparent !important; border: none; text-align: left; padding: 18px 0; font-size: 15px; font-weight: 600; color: #1a1a1a !important; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; line-height: 1.4; transition: color 0.2s; }
.faq-btn:hover { color: #800020 !important; }
.faq-icon { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #edd8db; background: #fff !important; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 400; color: #800020 !important; flex-shrink: 0; transition: transform 0.3s ease, background 0.3s, color 0.3s; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: #800020 !important; color: #ffffff !important; border-color: #800020; }
.faq-ans { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; }
.faq-item.open .faq-ans { max-height: 500px; }
.faq-ans-inner { padding: 0 0 18px; font-size: 14px; color: #6b6b6b !important; line-height: 1.7; }

/* CTA */
.cta { background: var(--color-primary); padding: 60px 16px; text-align: center; }
.cta .ey { color: #ffb3c1 !important; }
.cta h2 { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; color: #ffffff !important; margin-bottom: 16px; line-height: 1.2; }
.cta h2 em { font-style: italic; color: #ffb3c1 !important; }
.cta p { font-size: 15px; color: rgba(255,255,255,0.85) !important; margin-bottom: 32px; line-height: 1.65; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-wa { display: flex; align-items: center; justify-content: center; gap: 8px; background: #25D366 !important; color: #ffffff !important; padding: 14px 28px; border-radius: 100px; font-weight: 700; font-size: 14px; border: none; cursor: pointer; transition: 0.2s; text-decoration: none;}
.btn-wa:hover { background: #20ba59 !important; transform: translateY(-2px); }
.btn-wh { border: 2px solid rgba(255,255,255,0.75) !important; color: #ffffff !important; padding: 12px 28px; border-radius: 100px; font-size: 14px; font-weight: 600; text-align: center; display: flex; align-items: center; justify-content: center; background: transparent !important; cursor: pointer; transition: 0.2s; text-decoration: none;}
.btn-wh:hover { background: rgba(255,255,255,0.1) !important; transform: translateY(-2px); }

/* Footer */
.footer { background: #111; padding: 48px 16px 24px; }
.footer-inner { display: flex; flex-direction: column; }
.footer-top { display: flex; flex-direction: column; gap: 32px; margin-bottom: 32px; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 22px; color: #ffffff !important; margin-bottom: 8px; }
.footer-logo span { color: #ffb3c1 !important; }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.6) !important; line-height: 1.6; max-width: 300px; }
.footer-cols { display: flex; gap: 48px; }
.footer-col h4 { font-size: 12px; font-weight: 600; color: #ffffff !important; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.5) !important; display: block; margin-bottom: 10px; text-decoration: none; transition: 0.2s; }
.footer-col a:hover { color: #fff !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.4) !important; }

/* Responsive Desktop & Tablet Rules */
@media (min-width: 768px) {
  .burger { display: none; }
  .nav-links { display: flex; align-items: center; gap: 24px; }
  .nav-links a:not(.btn-nav) { color: #fff !important; text-decoration: none; font-size: 14px; font-weight: 500; transition: 0.2s; opacity: 0.85; }
  .nav-links a:not(.btn-nav):hover { opacity: 1; }
  .sidebar, .sidebar-overlay { display: none !important; }

  .hero h1 { font-size: 44px; }
  .sec-hd h2 { font-size: 32px; }
  .fitur-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .kat-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .steps-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .testi-scroll { justify-content: center; overflow-x: visible; }
  .scroll-hint { display: none; }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 52px; }
  .hero { padding: 80px 16px; }
  .sec { padding: 80px 16px; }
  .kat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   Elementor Compatibility
   ========================================================= */

/* Halaman yang diedit Elementor tidak perlu padding dari tema */
.elementor-page .mg-page-content {
  padding: 0;
}

/* Reset margin/padding body saat Elementor edit mode */
.elementor-editor-active .mg {
  overflow: visible;
}

/* Pastikan konten Elementor full-width bisa melebar */
.mg-page-content .elementor-section.elementor-section-stretched {
  width: 100% !important;
  left: 0 !important;
}

/* Style untuk halaman kosong (page.php) agar tidak aneh tanpa Elementor */
.mg-page-content {
  min-height: 50vh;
}

/* Katalog empty state */
.katalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: #6b6b6b;
  font-size: 15px;
}