/* =============================================
   RoemahKita — Main Stylesheet
   Design: Warm & Modern Construction Theme
   Font: Plus Jakarta Sans + Fraunces
   ============================================= */

:root {
    --primary: #1B3A2D;        /* Deep Forest Green */
    --primary-light: #2D5940;
    --accent: #E8801A;          /* Warm Amber/Orange */
    --accent-light: #F5A54A;
    --accent-dark: #C4640A;
    --text: #1A1A1A;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --bg: #FAFAF8;
    --bg-warm: #F5F2ED;
    --bg-card: #FFFFFF;
    --border: #E5E0D8;
    --border-light: #F0EDE8;
    --success: #16A34A;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow: 0 4px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
    --shadow-xl: 0 24px 64px rgba(0,0,0,.16);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-display: 'Fraunces', serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* Container */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
    background: var(--primary);
    color: rgba(255,255,255,.85);
    font-size: 0.8rem;
    padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--accent-light); }
.topbar i { margin-right: 5px; }
.wa-topbar { background: #25D366; color: white !important; padding: 4px 12px; border-radius: 20px; font-weight: 600; }
.wa-topbar:hover { background: #1DB954; }
.separator { opacity: .4; }

/* =============================================
   HEADER / NAVBAR
   ============================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-size: 1.25rem; font-weight: 700; color: var(--primary); line-height: 1.2; letter-spacing: -0.5px; }
.logo-main strong { color: var(--accent); }
.logo-sub { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* Nav */
.nav ul { display: flex; align-items: center; gap: 4px; }
.nav > ul > li { position: relative; }
.nav > ul > li > a {
    display: flex; align-items: center; gap: 5px;
    padding: 8px 14px; border-radius: 8px;
    font-size: 0.9rem; font-weight: 500; color: var(--text);
    transition: var(--transition);
}
.nav > ul > li > a:hover, .nav > ul > li > a.active {
    color: var(--accent); background: rgba(232,128,26,.08);
}
.nav > ul > li > a.active { font-weight: 600; }
.nav > ul > li > a i { font-size: 0.7rem; transition: var(--transition); }
.nav > ul > li:hover > a i { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    background: white; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); min-width: 220px; padding: 8px;
    opacity: 0; visibility: hidden; transition: var(--transition);
    pointer-events: none;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; pointer-events: all; }
.dropdown li a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 8px; font-size: 0.875rem; color: var(--text);
    transition: var(--transition);
}
.dropdown li a:hover { background: var(--bg-warm); color: var(--accent); }
.dropdown li a i { width: 18px; color: var(--accent); font-size: 0.85rem; }
.dropdown .see-all a { color: var(--accent); font-weight: 600; justify-content: center; border-top: 1px solid var(--border); margin-top: 4px; padding-top: 10px; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-wa {
    display: flex; align-items: center; gap: 8px;
    background: var(--accent); color: white;
    padding: 10px 20px; border-radius: 50px; font-size: 0.875rem; font-weight: 600;
    transition: var(--transition); white-space: nowrap;
}
.btn-wa:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,128,26,.4); color: white; }
.btn-wa i { font-size: 1.1rem; }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 899; }

/* =============================================
   HERO SLIDER
   ============================================= */
.hero-slider { position: relative; overflow: hidden; background: var(--primary); height: 600px; }
.slider-track { display: flex; height: 100%; transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.slide {
    flex: 0 0 100%; height: 100%;
    position: relative; overflow: hidden;
    display: flex; align-items: center;
}
.slide-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform 8s ease;
}
.slide.active .slide-bg { transform: scale(1.05); }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(27,58,45,.85) 40%, rgba(27,58,45,.4) 100%); }
.slide-content {
    position: relative; z-index: 2; max-width: 600px;
    padding: 0 80px;
    opacity: 0; transform: translateY(30px);
    transition: opacity .6s ease .3s, transform .6s ease .3s;
}
.slide.active .slide-content { opacity: 1; transform: translateY(0); }
.slide-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(232,128,26,.2); border: 1px solid rgba(232,128,26,.4);
    color: var(--accent-light); padding: 6px 16px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px;
    margin-bottom: 20px; text-transform: uppercase;
}
.slide-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); color: white; line-height: 1.2; margin-bottom: 16px; font-weight: 700; }
.slide-title em { color: var(--accent-light); font-style: italic; }
.slide-text { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 32px; line-height: 1.7; }
.slide-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
    background: var(--accent); color: white; padding: 14px 28px; border-radius: 50px;
    font-weight: 700; font-size: 0.95rem; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,128,26,.5); color: white; }
.btn-outline {
    background: rgba(255,255,255,.1); color: white; padding: 14px 28px; border-radius: 50px;
    font-weight: 600; font-size: 0.95rem; border: 2px solid rgba(255,255,255,.3);
    transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { background: white; color: var(--primary); border-color: white; }

/* Slider Nav */
.slider-prev, .slider-next {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    width: 52px; height: 52px; background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%; color: white; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); backdrop-filter: blur(8px);
}
.slider-prev { left: 24px; }
.slider-next { right: 24px; }
.slider-prev:hover, .slider-next:hover { background: var(--accent); border-color: var(--accent); }
.slider-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.slider-dot { width: 8px; height: 8px; background: rgba(255,255,255,.4); border-radius: 50%; transition: var(--transition); cursor: pointer; }
.slider-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* =============================================
   SECTIONS - COMMON
   ============================================= */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--accent); font-size: 0.8rem; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 12px;
}
.section-tag::before, .section-tag::after {
    content: ''; display: block; width: 24px; height: 2px; background: var(--accent);
}
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--primary); line-height: 1.25; margin-bottom: 12px; }
.section-sub { color: var(--text-muted); max-width: 560px; margin: 0 auto; font-size: 1rem; }

/* =============================================
   STATS STRIP
   ============================================= */
.stats-strip { background: var(--primary); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.1); }
.stat-item { text-align: center; padding: 24px 20px; background: var(--primary); }
.stat-number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--accent-light); line-height: 1; }
.stat-label { color: rgba(255,255,255,.7); font-size: 0.85rem; margin-top: 6px; }

/* =============================================
   FEATURES / KEUNGGULAN
   ============================================= */
.features { background: var(--bg-warm); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature-card {
    background: white; border-radius: var(--radius-lg); padding: 32px 28px;
    text-align: center; border: 1px solid var(--border); transition: var(--transition);
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0); transition: var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 64px; height: 64px; background: rgba(232,128,26,.1); border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 1.6rem; color: var(--accent);
    transition: var(--transition);
}
.feature-card:hover .feature-icon { background: var(--accent); color: white; transform: scale(1.1) rotate(-5deg); }
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* =============================================
   PRODUCT CATEGORIES
   ============================================= */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card {
    background: white; border-radius: var(--radius-lg); padding: 28px 20px;
    text-align: center; border: 1px solid var(--border);
    transition: var(--transition); cursor: pointer;
    display: block;
}
.category-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--accent); }
.category-card:hover .cat-icon { background: var(--accent); color: white; }
.cat-icon {
    width: 56px; height: 56px; background: var(--bg-warm); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px; font-size: 1.4rem; color: var(--primary);
    transition: var(--transition);
}
.category-card h3 { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.category-card span { font-size: 0.775rem; color: var(--text-muted); }

/* =============================================
   PRODUCT CARDS
   ============================================= */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card {
    background: white; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border); transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.product-img { height: 200px; overflow: hidden; background: var(--bg-warm); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-body { padding: 18px; }
.product-cat { font-size: 0.75rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.product-body h3 { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.product-price { font-family: var(--font-display); font-size: 1.15rem; color: var(--primary); font-weight: 700; margin-bottom: 14px; }
.product-price span { font-family: var(--font-body); font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }
.btn-wa-product {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #25D366; color: white; padding: 10px; border-radius: 8px;
    font-size: 0.85rem; font-weight: 600; transition: var(--transition); width: 100%;
}
.btn-wa-product:hover { background: #1DB954; color: white; }

/* =============================================
   ARTICLE CARDS
   ============================================= */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.article-card {
    background: white; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border); transition: var(--transition);
}
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.article-img { height: 210px; overflow: hidden; background: var(--bg-warm); position: relative; }
.article-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.article-card:hover .article-img img { transform: scale(1.05); }
.article-cat-badge {
    position: absolute; top: 14px; left: 14px;
    background: var(--accent); color: white; padding: 4px 12px; border-radius: 50px;
    font-size: 0.75rem; font-weight: 600;
}
.article-body { padding: 22px; }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; }
.article-meta i { color: var(--accent); }
.article-body h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.45; }
.article-body h3 a:hover { color: var(--accent); }
.article-body p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { color: var(--accent); font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.read-more:hover { gap: 10px; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials { background: var(--bg-warm); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testimonial-card {
    background: white; border-radius: var(--radius-lg); padding: 32px;
    border: 1px solid var(--border); position: relative;
}
.testimonial-card::before {
    content: '"'; font-family: var(--font-display); font-size: 5rem; color: var(--accent);
    opacity: .15; position: absolute; top: 12px; right: 24px; line-height: 1;
}
.stars { color: #F59E0B; font-size: 0.875rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { color: var(--text); font-size: 0.925rem; line-height: 1.75; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
    width: 46px; height: 46px; border-radius: 50%; background: var(--bg-warm);
    overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--primary); font-weight: 700;
}
.author-name { font-weight: 700; font-size: 0.9rem; color: var(--primary); }
.author-pos { font-size: 0.78rem; color: var(--text-muted); }

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; top: -60%; right: -10%;
    width: 500px; height: 500px; background: rgba(232,128,26,.08);
    border-radius: 50%;
}
.cta-section .container { position: relative; z-index: 1; text-align: center; padding: 80px 24px; }
.cta-section h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.8rem); color: white; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 500px; margin: 0 auto 36px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: #111A15; color: rgba(255,255,255,.75); }
.footer-top { padding: 72px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; }
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand .logo-main { color: white; }
.footer-brand p { font-size: 0.875rem; line-height: 1.75; margin-bottom: 24px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 38px; height: 38px; background: rgba(255,255,255,.08); border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
    transition: var(--transition);
}
.social-links a:hover { background: var(--accent); color: white; transform: translateY(-2px); }
.footer-col h4 { color: white; font-size: 0.95rem; font-weight: 700; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.875rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--accent-light); padding-left: 4px; }
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-list li { display: flex; gap: 12px; font-size: 0.875rem; }
.contact-list i { color: var(--accent); font-size: 0.9rem; margin-top: 2px; flex-shrink: 0; }
.contact-list a:hover { color: var(--accent-light); }
.btn-wa-footer {
    display: inline-flex; align-items: center; gap: 10px;
    background: #25D366; color: white; padding: 12px 22px; border-radius: 50px;
    font-weight: 600; font-size: 0.875rem; margin-top: 20px;
    transition: var(--transition);
}
.btn-wa-footer:hover { background: #1DB954; transform: translateY(-2px); color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0;
    display: flex; 
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--accent-light); }
.footer-bottom .fa-heart { color: var(--accent); }

/* =============================================
   FLOATING ELEMENTS
   ============================================= */
.wa-float {
    position: fixed; bottom: 28px; right: 28px; z-index: 800;
    width: 58px; height: 58px; background: #25D366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: white; box-shadow: 0 4px 20px rgba(37,211,102,.4);
    transition: var(--transition); animation: pulse-wa 2s ease-in-out infinite;
}
.wa-float:hover { background: #1DB954; transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.6); animation: none; }
.wa-tooltip {
    position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.75); color: white; padding: 6px 14px; border-radius: 50px;
    font-size: 0.8rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: var(--transition);
}
.wa-float:hover .wa-tooltip { opacity: 1; }
@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
    50% { box-shadow: 0 4px 32px rgba(37,211,102,.7); }
}

.back-top {
    position: fixed; bottom: 28px; left: 28px; z-index: 800;
    width: 44px; height: 44px; background: var(--primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.85rem; box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transform: translateY(10px);
    transition: var(--transition);
}
.back-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-top:hover { background: var(--accent); }

/* =============================================
   UTILITY
   ============================================= */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }

.btn-sec {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--accent); padding: 12px 24px; border-radius: 50px;
    font-weight: 700; font-size: 0.9rem; border: 2px solid var(--accent);
    transition: var(--transition);
}
.btn-sec:hover { background: var(--accent); color: white; }

.view-all-wrap { text-align: center; margin-top: 40px; }

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 60px 0; text-align: center;
}
.page-hero h1 { font-family: var(--font-display); font-size: 2.5rem; color: white; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.75); }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-top: 16px; font-size: 0.85rem; color: rgba(255,255,255,.6); }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb span { color: var(--accent-light); }

/* Alert / Notice */
.alert { padding: 14px 20px; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 20px; }
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }

/* Form */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius);
    font-family: inherit; font-size: 0.9rem; color: var(--text); background: white;
    transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(232,128,26,.1); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    .topbar-left { display: none; }
    .nav { 
        position: fixed; top: 0; right: -100%; width: 80%; max-width: 340px; height: 100vh;
        background: white; overflow-y: auto; z-index: 901;
        box-shadow: var(--shadow-xl); transition: right .35s ease;
        padding: 80px 24px 40px;
        flex-direction: column;
    }
    .nav.open { right: 0; }
    .nav-overlay.open { display: block; }
    .nav ul { flex-direction: column; gap: 4px; }
    .nav > ul > li > a { padding: 12px 16px; font-size: 1rem; border-radius: var(--radius); }
    .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding-left: 16px; pointer-events: all; display: none; }
    .has-dropdown.open .dropdown { display: block; }
    .burger { display: flex; }
    .hero-slider { height: 480px; }
    .slide-content { padding: 0 28px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .btn-wa span { display: none; }
    .btn-wa { padding: 10px 14px; }
}

@media (max-width: 480px) {
    .hero-slider { height: 420px; }
    .slide-title { font-size: 1.6rem; }
    section { padding: 56px 0; }
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { opacity: 0; }
.fade-in-up.visible { animation: fadeInUp .6s ease forwards; }

/* Admin Styles */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar { width: 260px; background: var(--primary); padding: 0; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar .logo { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar .logo-main { color: white; }
.admin-nav { padding: 12px; }
.admin-nav a {
    display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius);
    color: rgba(255,255,255,.7); font-size: 0.875rem; font-weight: 500; transition: var(--transition);
    margin-bottom: 2px;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.1); color: white; }
.admin-nav a i { width: 18px; font-size: 0.9rem; }
.admin-nav .nav-sep { font-size: 0.7rem; text-transform: uppercase; color: rgba(255,255,255,.4); padding: 16px 14px 6px; letter-spacing: 0.8px; }
.admin-content { flex: 1; background: var(--bg); overflow-x: hidden; }
.admin-topbar { background: white; border-bottom: 1px solid var(--border); padding: 0 32px; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.admin-topbar h1 { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.admin-body { padding: 32px; }
.admin-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.admin-card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.admin-card-header h2 { font-size: 1rem; font-weight: 700; color: var(--primary); }
.admin-card-body { padding: 24px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.admin-stat { background: white; border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--border); }
.admin-stat .num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.admin-stat .lbl { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.admin-stat .icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 12px; }
.icon-orange { background: rgba(232,128,26,.1); color: var(--accent); }
.icon-green { background: rgba(22,163,74,.1); color: var(--success); }
.icon-blue { background: rgba(59,130,246,.1); color: #3B82F6; }
.icon-purple { background: rgba(139,92,246,.1); color: #8B5CF6; }

table { width: 100%; border-collapse: collapse; }
table th { text-align: left; padding: 12px 16px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); border-bottom: 2px solid var(--border); }
table td { padding: 14px 16px; font-size: 0.875rem; border-bottom: 1px solid var(--border-light); }
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: var(--bg-warm); }
.badge { display: inline-flex; padding: 3px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.badge-green { background: #D1FAE5; color: #065F46; }
.badge-red { background: #FEE2E2; color: #991B1B; }
.badge-yellow { background: #FEF9C3; color: #854D0E; }
.table-actions { display: flex; gap: 6px; }
.btn-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: var(--transition); }
.btn-edit { background: rgba(59,130,246,.1); color: #3B82F6; }
.btn-delete { background: rgba(239,68,68,.1); color: #EF4444; }
.btn-icon:hover { opacity: 0.8; transform: scale(1.1); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; border-radius: 8px; font-weight: 600; }
.btn-add { background: var(--accent); color: white; display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: var(--radius); font-weight: 600; font-size: 0.875rem; transition: var(--transition); }
.btn-add:hover { background: var(--accent-dark); color: white; }
