/* 
 * Family Event: Traditional Heritage
 * Theme: Maroon, Earth Tone, Nostalgia, Batik/Songket fusion
 */

 :root {
    --clr-maroon: #70161E;
    --clr-maroon-dark: #4A0E13;
    --clr-earth: #A47B5A;
    --clr-earth-light: #C29A76;
    --clr-cream: #F7F3E8;
    --clr-dark: #2C2C2C;
    
    --font-head: 'Merriweather', serif; /* Classic look */
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.4s ease;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body { background-color: #FAFAFA; font-family: var(--font-body); color: var(--clr-dark); line-height: 1.7; }
h1,h2,h3,h4 { font-family: var(--font-head); color: var(--clr-maroon); font-weight: 700; margin-bottom: 10px; }

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; border-radius: 4px; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-md { max-width: 800px; }
.section-padding { padding: 90px 0; }
.text-center { text-align: center; }
.text-maroon { color: var(--clr-maroon); }
.text-white { color: white; }
.bg-cream { background-color: var(--clr-cream); }
.bg-maroon { background-color: var(--clr-maroon); color: white; }
.mb-3 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }
.opacity-80 { opacity: 0.8; }
.desc-text { font-size: 1.1rem; color: #555; }

/* Borders & Dividers */
.trad-border {
    height: 10px; width: 100%;
    background: repeating-linear-gradient(45deg, var(--clr-maroon), var(--clr-maroon) 10px, var(--clr-earth) 10px, var(--clr-earth) 20px);
}
.trad-border.top { position: fixed; top: 0; z-index: 10001; }
.trad-border.bottom { padding-bottom: 15px;}

.divider-trad { margin: 15px auto 30px; position: relative; width: 150px; text-align: center; }
.divider-trad::before {
    content:''; position:absolute; top: 50%; left:0; width:100%; height:1px; background-color: var(--clr-earth); z-index:1;
}
.divider-trad span {
    position: relative; z-index:2; background-color: #FAFAFA; padding: 0 10px; color: var(--clr-maroon); font-size: 1.2rem;
}
.bg-cream .divider-trad span { background-color: var(--clr-cream); }

/* Nav */
nav {
    position: fixed; top: 10px; left:0; width: 100%; padding: 20px 0; z-index: 1000; transition: var(--transition);
}
nav.scrolled {
    background-color: white; padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); top:0;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-head); font-size: 1.5rem; color: var(--clr-dark); font-weight: bold; }
.logo i { color: var(--clr-earth); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--clr-dark); }
.nav-links a:hover { color: var(--clr-maroon); }

.nav-btn {
    border: 1px solid var(--clr-maroon); padding: 8px 20px; border-radius: 20px; color: var(--clr-maroon) !important;
}
.nav-btn:hover { background-color: var(--clr-maroon); color: white !important; }

/* Mobile Menu */
.mobile-menu-btn { display: none; font-size: 1.8rem; cursor: pointer; color: var(--clr-dark); }
.mobile-nav {
    position: fixed; top:0; right: -100%; height: 100vh; width: 300px;
    background-color: var(--clr-cream); z-index: 2000; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; transition: var(--transition);
}
.mobile-nav.active { right:0; }
.close-menu { position: absolute; top:20px; right: 20px; font-size: 2rem; cursor: pointer; }
.mobile-nav a { font-family: var(--font-head); font-size: 1.3rem; color: var(--clr-maroon); }

/* Buttons */
.btn { display: inline-block; padding: 12px 30px; border-radius: 30px; font-family: var(--font-head); transition: var(--transition); cursor: pointer; }
.btn-outline { border: 2px solid var(--clr-earth); color: var(--clr-earth); }
.btn-outline:hover { background-color: var(--clr-earth); color: white; }
.btn-solid { background-color: var(--clr-earth); color: white; border: none; }
.btn-solid:hover { background-color: var(--clr-maroon); }

/* Hero */
.hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; }
.hero-bg {
    position: absolute; top:0; left:0; width:100%; height:100%; z-index:1;
    background-image: url('https://images.unsplash.com/photo-1596484552834-6a58f850e0a1?q=80&w=2070&auto=format&fit=crop');
    background-size: cover; background-position: center; filter: sepia(0.4);
}
.hero-ovlt { position: absolute; top:0; left:0; width:100%; height:100%; background-color: rgba(44,44,44,0.6); z-index:2; }
.hero-content { position: relative; z-index:3; width: 100%; max-width: 800px; padding: 20px; text-align: center; }

.batik-frame {
    border: 2px solid var(--clr-earth); padding: 50px; background-color: rgba(247, 243, 232, 0.95);
    border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.bismillah { font-family: var(--font-head); font-style: italic; color: var(--clr-earth); margin-bottom: 20px; font-size: 1.1rem; }
.batik-frame h1 { font-size: 2.8rem; line-height: 1.2; margin-bottom: 10px; }
.batik-frame p { color: #444; font-size: 1.1rem; margin-bottom: 30px; }
.batik-frame .divider-trad span { background-color: transparent; }

/* Info Card */
.info-trad-card {
    background-color: white; border-radius: 8px; border: 1px solid #EAEAEA;
    padding: 20px 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin-top: 30px;
}
.info-row { display: flex; align-items: center; gap: 20px; padding: 30px 0; border-bottom: 1px dashed #EAEAEA; }
.info-row:last-child { border-bottom: none; }
.i-icon { width: 60px; height: 60px; background-color: var(--clr-cream); color: var(--clr-maroon); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.8rem; }
.i-text h4 { font-family: var(--font-body); color: var(--clr-dark); margin-bottom: 5px; font-size: 1.1rem; }
.i-text p { color: #666; margin:0; line-height: 1.4; }

/* Timeline */
.timeline-trad { position: relative; max-width: 600px; margin: 40px auto 0; }
.timeline-trad::before { content:''; position: absolute; left: 120px; top:0; bottom:0; width:2px; background-color: var(--clr-earth-light); }
.tl-item { display: flex; margin-bottom: 30px; position: relative; }
.tl-time { width: 100px; font-family: var(--font-head); font-weight: bold; color: var(--clr-maroon); text-align: right; padding-right: 20px; padding-top: 15px; }
.tl-box {
    flex: 1; background-color: white; border: 1px solid var(--clr-earth-light); padding: 15px 25px;
    border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); margin-left: 40px; position: relative;
}
.tl-box::before {
    content:''; position: absolute; left: -26px; top: 15px; width: 10px; height: 10px; border-radius: 50%;
    background-color: var(--clr-earth); border: 3px solid white; box-shadow: 0 0 0 2px var(--clr-earth-light);
}

/* Tree Grid */
.pattern-bg {
    background-image: radial-gradient(var(--clr-earth-light) 1px, transparent 1px);
    background-size: 30px 30px; background-color: var(--clr-cream);
}
.tree-wrapper { display: flex; flex-direction: column; align-items: center; margin-top: 40px; }
.tree-card {
    background: white; border: 2px solid var(--clr-earth); padding: 15px 30px;
    border-radius: 4px; font-family: var(--font-head); font-weight: bold; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.tree-card.elite { background: var(--clr-maroon); color: white; border-color: var(--clr-maroon-dark); font-size: 1.2rem;}
.tree-branch-line { width: 2px; height: 30px; background-color: var(--clr-earth); }
.tree-branches { display: flex; gap: 20px; border-top: 2px solid var(--clr-earth); padding-top: 30px; position: relative; }
.tree-branch { display: flex; flex-direction: column; align-items: center; position: relative; }
.tree-line { position: absolute; top: -30px; width: 2px; height: 30px; background-color: var(--clr-earth); }

/* Galeri Motif Hitam Putih/Sepia */
.grid-nostalgia { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; margin-top: 40px; }
.ns-img { overflow: hidden; border-radius: 4px; height: 280px; position: relative;}
.ns-img img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.6) grayscale(0.5); transition: var(--transition); border-radius: 4px;}
.ns-img:hover img { filter: sepia(0) grayscale(0); transform: scale(1.05); }

/* RSVP Box */
.rsvp-trad-box {
    background-color: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    padding: 50px; border-radius: 8px; backdrop-filter: blur(5px);
}
.book-icon { font-size: 3rem; color: var(--clr-earth); margin-bottom: 20px; }

/* Responsive */
@media(max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .batik-frame { padding: 30px 15px; }
    .batik-frame h1 { font-size: 2rem; }
    
    .timeline-trad::before { left: 20px; }
    .tl-item { flex-direction: column; }
    .tl-time { width: auto; text-align: left; padding: 0 0 10px 40px; }
    .tl-box { margin-left: 40px; }
    
    .tree-branches { flex-direction: column; border-top: none; padding-top: 0; gap: 10px; }
    .tree-branch-line, .tree-line { display: none; }
    
    .info-row { flex-direction: column; text-align: center; }
}
