/* ================================
   MEKAR SARI FLORIST - STYLESHEET
   ================================ */

:root {
  --primary: #C0392B;
  --primary-dark: #96281B;
  --secondary: #27AE60;
  --secondary-dark: #1E8449;
  --bg: #FFFDF8;
  --bg-alt: #F8F6F1;
  --white: #FFFFFF;
  --text: #2C2C2C;
  --text-light: #777777;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
}

/* Reset */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font-body);color:var(--text);background:var(--bg);line-height:1.7;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}

/* Typography */
h1,h2,h3,h4{font-family:var(--font-heading);color:var(--text);line-height:1.3}
h1{font-size:clamp(2rem,5vw,3.2rem);font-weight:700}
h2{font-size:clamp(1.6rem,4vw,2.4rem);font-weight:600;margin-bottom:10px}
h3{font-size:clamp(1.1rem,2vw,1.3rem);font-weight:600}
p{color:var(--text-light);margin-bottom:12px}

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

/* Section */
.section{padding:clamp(48px,8vw,96px) 0}
.section-alt{background:var(--bg-alt)}
.section-dark{background:#2C2C2C;color:var(--white)}
.section-dark h2{color:var(--white)}
.section-dark p{color:rgba(255,255,255,0.7)}
.section-header{text-align:center;margin-bottom:clamp(32px,5vw,56px);max-width:700px;margin-left:auto;margin-right:auto}
.section-header .subtitle{color:var(--primary);font-weight:600;font-size:14px;text-transform:uppercase;letter-spacing:2px;margin-bottom:8px;font-family:var(--font-body)}
.section-header p{font-size:clamp(0.95rem,1.5vw,1.1rem);color:var(--text-light)}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:8px;padding:14px 32px;border-radius:50px;font-weight:600;font-size:15px;cursor:pointer;transition:var(--transition);border:none;font-family:var(--font-body)}
.btn-primary{background:var(--primary);color:var(--white)}
.btn-primary:hover{background:var(--primary-dark);transform:translateY(-2px);box-shadow:var(--shadow)}
.btn-secondary{background:var(--white);color:var(--primary);border:2px solid var(--primary)}
.btn-secondary:hover{background:var(--primary);color:var(--white);transform:translateY(-2px)}
.btn-wa{background:#25D366;color:var(--white)}
.btn-wa:hover{background:#1DA851;transform:translateY(-2px);box-shadow:0 4px 20px rgba(37,211,102,0.3)}
.btn-wa-outline{background:transparent;color:var(--white);border:2px solid rgba(255,255,255,0.5)}
.btn-wa-outline:hover{background:rgba(255,255,255,0.1);border-color:var(--white)}

/* ========== NAVBAR ========== */
.navbar{position:fixed;top:0;left:0;width:100%;z-index:1000;padding:20px 0;transition:var(--transition)}
.navbar.scrolled{background:rgba(255,253,248,0.97);box-shadow:var(--shadow-sm);padding:12px 0;backdrop-filter:blur(10px)}
.navbar .container{display:flex;align-items:center;justify-content:space-between}
.navbar .logo{font-family:var(--font-heading);font-size:24px;font-weight:700;display:flex;align-items:center;gap:8px}
.navbar .logo span{color:var(--primary)}
.navbar.scrolled .logo{color:var(--text)}
.navbar .logo-icon{width:36px;height:36px;background:linear-gradient(135deg,var(--primary),var(--primary-dark));border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--white);font-size:16px}
.nav-links{display:flex;align-items:center;gap:28px}
.nav-links a{font-size:14px;font-weight:500;color:rgba(255,255,255,0.9);transition:var(--transition);position:relative}
.navbar.scrolled .nav-links a{color:var(--text)}
.nav-links a::after{content:'';position:absolute;bottom:-4px;left:0;width:0;height:2px;background:var(--primary);transition:var(--transition)}
.nav-links a:hover::after{width:100%}
.nav-links .btn-wa{padding:10px 22px;font-size:13px;color:var(--white)}
.nav-links .btn-wa::after{display:none}
.nav-toggle{display:none;flex-direction:column;cursor:pointer;gap:5px;padding:4px;background:none;border:none}
.nav-toggle span{width:26px;height:2.5px;background:var(--white);border-radius:2px;transition:var(--transition)}
.navbar.scrolled .nav-toggle span{background:var(--text)}
.nav-toggle.active span:nth-child(1){transform:rotate(45deg) translate(4px,6px)}
.nav-toggle.active span:nth-child(2){opacity:0}
.nav-toggle.active span:nth-child(3){transform:rotate(-45deg) translate(4px,-6px)}

/* ========== HERO ========== */
.hero{min-height:100vh;display:flex;align-items:center;position:relative;overflow:hidden;background:linear-gradient(135deg,rgba(150,40,27,0.88) 0%,rgba(192,57,43,0.82) 50%,rgba(39,174,96,0.75) 100%)}
.hero::before{content:'';position:absolute;inset:0;background:url('https://placehold.co/1920x1080/96281B/C0392B?text=') center/cover no-repeat fixed;opacity:0.08;mix-blend-mode:overlay}
.hero .container{position:relative;z-index:2;text-align:center;max-width:800px}
.hero h1{color:var(--white);margin-bottom:16px}
.hero p{color:rgba(255,255,255,0.85);font-size:clamp(1rem,2vw,1.2rem);margin-bottom:36px}
.hero-btns{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}
.hero .hero-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,0.15);backdrop-filter:blur(10px);padding:10px 20px;border-radius:50px;color:var(--white);font-size:13px;margin-bottom:24px}

/* ========== KATEGORI ========== */
.kategori-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:24px}
.kategori-card{background:var(--white);border-radius:var(--radius);padding:32px 20px;text-align:center;box-shadow:var(--shadow-sm);transition:var(--transition);cursor:pointer}
.kategori-card:hover{transform:translateY(-8px);box-shadow:var(--shadow)}
.kategori-card .icon{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;font-size:24px}
.kategori-card .icon.red{background:#fdf2f2;color:var(--primary)}
.kategori-card .icon.green{background:#f0faf4;color:var(--secondary)}
.kategori-card h4{font-family:var(--font-body);font-size:14px;font-weight:600;color:var(--text)}

/* ========== PRODUK ========== */
.produk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:28px}
.produk-card{background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm);transition:var(--transition)}
.produk-card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.produk-card .foto-wrap{position:relative;overflow:hidden;aspect-ratio:4/3}
.produk-card .foto-wrap img{width:100%;height:100%;object-fit:cover;transition:var(--transition)}
.produk-card:hover .foto-wrap img{transform:scale(1.05)}
.produk-card .badge{position:absolute;top:12px;left:12px;background:var(--white);padding:4px 12px;border-radius:20px;font-size:11px;font-weight:600;color:var(--primary);box-shadow:var(--shadow-sm)}
.produk-card .body{padding:20px}
.produk-card .body h3{font-family:var(--font-body);font-size:17px;margin-bottom:6px}
.produk-card .body .kategori{font-size:12px;color:var(--secondary);font-weight:600;margin-bottom:8px;display:block}
.produk-card .body p{font-size:14px;color:var(--text-light);margin-bottom:16px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.produk-card .footer{display:flex;align-items:center;justify-content:space-between}
.produk-card .harga{font-family:var(--font-heading);font-size:20px;font-weight:700;color:var(--primary)}
.produk-card .btn-wa{padding:10px 18px;font-size:13px;border-radius:8px}
.produk-card .btn-wa i{margin-right:6px}

/* ========== ABOUT ========== */
.about-wrap{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.about-image{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.about-image img{width:100%;height:400px;object-fit:cover}
.about-content h2{font-size:clamp(1.6rem,3vw,2.2rem)}
.about-content p{margin-bottom:16px;font-size:15px}
.about-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:32px}
.about-stats .stat{text-align:center}
.about-stats .stat .num{font-family:var(--font-heading);font-size:32px;font-weight:700;color:var(--primary)}
.about-stats .stat .label{font-size:13px;color:var(--text-light)}

/* ========== AREA SERVIS ========== */
.area-grid{display:flex;flex-wrap:wrap;gap:16px;justify-content:center}
.area-badge{display:flex;align-items:center;gap:8px;background:var(--white);border:2px solid var(--secondary);padding:14px 28px;border-radius:50px;font-size:14px;font-weight:600;color:var(--secondary);transition:var(--transition)}
.area-badge:hover{background:var(--secondary);color:var(--white);transform:translateY(-3px);box-shadow:0 4px 16px rgba(39,174,96,0.2)}
.area-badge i{font-size:16px}

/* ========== GALLERY ========== */
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:260px;gap:12px}
.gallery-item{position:relative;overflow:hidden;border-radius:var(--radius-sm);cursor:pointer}
.gallery-item:nth-child(1){grid-row:span 2}
.gallery-item:nth-child(4){grid-column:span 2}
.gallery-item img{width:100%;height:100%;object-fit:cover;transition:var(--transition)}
.gallery-item:hover img{transform:scale(1.08)}
.gallery-item .overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,0.6),transparent);opacity:0;transition:var(--transition);display:flex;align-items:flex-end;padding:20px}
.gallery-item:hover .overlay{opacity:1}
.gallery-item .overlay span{color:var(--white);font-weight:600;font-size:14px}

/* ========== TESTIMONI ========== */
.testimoni-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px}
.testimoni-card{background:var(--white);border-radius:var(--radius);padding:32px;box-shadow:var(--shadow-sm);position:relative}
.testimoni-card::before{content:'"';position:absolute;top:16px;right:24px;font-family:var(--font-heading);font-size:64px;color:var(--primary);opacity:0.12;line-height:1}
.testimoni-card .stars{color:#f1c40f;font-size:14px;margin-bottom:16px}
.testimoni-card p{font-size:14px;font-style:italic;margin-bottom:20px;line-height:1.7}
.testimoni-card .author{display:flex;align-items:center;gap:12px}
.testimoni-card .author .avatar{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:var(--white);display:flex;align-items:center;justify-content:center;font-weight:600;font-size:16px}
.testimoni-card .author .name{font-weight:600;font-size:14px}
.testimoni-card .author .loc{font-size:12px;color:var(--text-light)}

/* ========== BLOG PREVIEW ========== */
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:28px}
.blog-card{background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm);transition:var(--transition)}
.blog-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.blog-card .thumb{aspect-ratio:16/9;overflow:hidden}
.blog-card .thumb img{width:100%;height:100%;object-fit:cover;transition:var(--transition)}
.blog-card:hover .thumb img{transform:scale(1.05)}
.blog-card .body{padding:24px}
.blog-card .date{font-size:12px;color:var(--text-light);margin-bottom:8px;display:block}
.blog-card .body h3{font-family:var(--font-body);font-size:17px;margin-bottom:10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.blog-card .body p{font-size:14px;color:var(--text-light);margin-bottom:16px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.blog-card .read-more{color:var(--primary);font-weight:600;font-size:13px;display:inline-flex;align-items:center;gap:6px}
.blog-card .read-more i{transition:var(--transition)}
.blog-card:hover .read-more i{transform:translateX(4px)}

/* ========== CTA / KONTAK ========== */
.cta{background:linear-gradient(135deg,var(--primary-dark),var(--primary),var(--secondary));color:var(--white);text-align:center;padding:clamp(48px,6vw,80px) 0}
.cta h2{color:var(--white);font-size:clamp(1.6rem,3.5vw,2.4rem)}
.cta p{color:rgba(255,255,255,0.85);margin-bottom:32px;font-size:16px}
.cta-btns{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}
.cta .area-badge{border-color:rgba(255,255,255,0.3);color:var(--white);background:rgba(255,255,255,0.1)}
.cta .area-badge:hover{background:rgba(255,255,255,0.2);border-color:var(--white)}

/* ========== FOOTER ========== */
.footer{background:#1a1a1a;color:rgba(255,255,255,0.7);padding:60px 0 0}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;margin-bottom:40px}
.footer-brand .logo{font-family:var(--font-heading);font-size:22px;font-weight:700;color:var(--white);margin-bottom:16px;display:flex;align-items:center;gap:8px}
.footer-brand .logo span{color:var(--primary)}
.footer-brand p{font-size:14px;line-height:1.7;margin-bottom:20px}
.footer-sosmed{display:flex;gap:12px}
.footer-sosmed a{width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,0.2);display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,0.6);transition:var(--transition);font-size:15px}
.footer-sosmed a:hover{background:var(--primary);border-color:var(--primary);color:var(--white)}
.footer h4{color:var(--white);font-family:var(--font-body);font-size:15px;font-weight:700;margin-bottom:20px}
.footer-links a{display:block;padding:6px 0;font-size:14px;color:rgba(255,255,255,0.6);transition:var(--transition)}
.footer-links a:hover{color:var(--primary);padding-left:4px}
.footer-contact p{font-size:14px;margin-bottom:8px;display:flex;align-items:center;gap:8px}
.footer-contact i{width:16px;color:var(--primary)}
.footer-bottom{border-top:1px solid rgba(255,255,255,0.08);padding:20px 0;font-size:13px;text-align:center;color:rgba(255,255,255,0.5)}

/* ========== FLOATING WA ========== */
.floating-wa{position:fixed;bottom:24px;right:24px;z-index:999;width:60px;height:60px;background:#25D366;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--white);font-size:28px;box-shadow:0 4px 20px rgba(37,211,102,0.35);transition:var(--transition);animation:waPulse 2s infinite}
.floating-wa:hover{transform:scale(1.08);box-shadow:0 6px 28px rgba(37,211,102,0.5)}
@keyframes waPulse{0%,100%{box-shadow:0 4px 20px rgba(37,211,102,0.35)}50%{box-shadow:0 4px 30px rgba(37,211,102,0.55)}}

/* ========== LIGHTBOX ========== */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,0.9);z-index:2000;display:none;align-items:center;justify-content:center;padding:40px;cursor:pointer}
.lightbox.active{display:flex}
.lightbox img{max-width:90vw;max-height:90vh;object-fit:contain;border-radius:8px}
.lightbox .close{position:absolute;top:24px;right:32px;color:var(--white);font-size:36px;cursor:pointer;transition:var(--transition);background:none;border:none}
.lightbox .close:hover{transform:rotate(90deg);color:var(--primary)}
.lightbox .caption{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);color:var(--white);font-size:15px;background:rgba(0,0,0,0.5);padding:8px 20px;border-radius:8px}

/* ========== SCROLL REVEAL ========== */
.reveal{opacity:0;transform:translateY(30px);transition:all 0.7s ease}
.reveal.active{opacity:1;transform:translateY(0)}

/* ========== ARTICLE PAGE ========== */
.article-hero{background:linear-gradient(135deg,rgba(150,40,27,0.88),rgba(192,57,43,0.7));padding:140px 0 60px;text-align:center;color:var(--white)}
.article-hero h1{color:var(--white);font-size:clamp(1.6rem,3.5vw,2.4rem)}
.article-hero p{color:rgba(255,255,255,0.8)}
.article-content{max-width:800px;margin:0 auto;padding:48px 24px}
.article-content .meta{display:flex;gap:16px;color:var(--text-light);font-size:14px;margin-bottom:32px;padding-bottom:24px;border-bottom:1px solid #eee}
.article-content .featured-img{width:100%;border-radius:var(--radius);margin-bottom:32px;max-height:450px;object-fit:cover}
.article-body{font-size:16px;line-height:1.9}
.article-body h3{font-family:var(--font-body);font-size:20px;font-weight:700;margin:32px 0 12px}
.article-body p{margin-bottom:16px}
.article-body ul{padding-left:20px;margin-bottom:16px}
.article-body ul li{list-style:disc;margin-bottom:8px;color:var(--text-light)}
.article-cta{background:var(--bg-alt);border-radius:var(--radius);padding:32px;text-align:center;margin-top:48px}
.article-cta h3{margin-bottom:12px}
.article-cta p{margin-bottom:20px}

/* ========== BLOG LIST PAGE ========== */
.blog-list-wrap{padding:140px 24px 60px;max-width:900px;margin:0 auto}
.blog-list-wrap h1{margin-bottom:8px}
.blog-list-wrap .sub{color:var(--text-light);margin-bottom:40px}
.blog-list-item{display:flex;gap:24px;background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm);margin-bottom:20px;transition:var(--transition)}
.blog-list-item:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.blog-list-item .thumb{width:280px;min-height:180px;flex-shrink:0}
.blog-list-item .thumb img{width:100%;height:100%;object-fit:cover}
.blog-list-item .body{padding:24px 24px 24px 0;display:flex;flex-direction:column;justify-content:center}
.blog-list-item .body .date{font-size:12px;color:var(--text-light);margin-bottom:6px}
.blog-list-item .body h2{font-size:19px;margin-bottom:8px}
.blog-list-item .body h2 a{color:var(--text);transition:var(--transition)}
.blog-list-item .body h2 a:hover{color:var(--primary)}
.blog-list-item .body p{font-size:14px;margin-bottom:12px}
.pagination{display:flex;gap:8px;justify-content:center;margin-top:40px}
.pagination a{padding:10px 18px;border:1px solid #ddd;border-radius:8px;font-size:14px;transition:var(--transition);color:var(--text)}
.pagination a:hover,.pagination a.active{background:var(--primary);color:var(--white);border-color:var(--primary)}

/* ========== RESPONSIVE ========== */
@media(max-width:992px){
  .about-wrap{grid-template-columns:1fr;gap:40px}
  .footer-grid{grid-template-columns:1fr 1fr}
  .gallery-grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:200px}
  .gallery-item:nth-child(4){grid-column:span 2}
  .blog-list-item .thumb{width:200px;min-height:140px}
}
@media(max-width:768px){
  .nav-links{position:fixed;top:0;right:-100%;width:280px;height:100vh;background:var(--white);flex-direction:column;padding:80px 30px 30px;gap:20px;transition:var(--transition);box-shadow:-4px 0 20px rgba(0,0,0,0.1)}
  .nav-links.open{right:0}
  .nav-links a{color:var(--text)!important}
  .nav-toggle{display:flex}
  .produk-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
  .blog-list-item{flex-direction:column}
  .blog-list-item .thumb{width:100%;min-height:200px}
  .blog-list-item .body{padding:16px 20px}
  .hero-btns{flex-direction:column;align-items:center}
  .hero-btns .btn{width:100%;justify-content:center}
  .gallery-grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:160px}
  .footer-grid{grid-template-columns:1fr}
  .testimoni-grid{grid-template-columns:1fr}
  .kategori-grid{grid-template-columns:repeat(3,1fr);gap:16px}
}
@media(max-width:480px){
  .kategori-grid{grid-template-columns:repeat(2,1fr)}
  .gallery-grid{grid-template-columns:1fr 1fr;grid-auto-rows:120px}
  .section{padding:40px 0}
  .produk-grid{grid-template-columns:1fr}
}
