/*
Theme Name: HR Herbals Official
Theme URI: https://hrherbal.com
Author: HR Herbals International
Description: Official WordPress theme matching hrherbal.com - Light theme slider, badge logo, WhatsApp integration
Version: 2.0.0
License: GPL v2 or later
Text Domain: hrherbal
*/

:root {
    --primary: #1a5d1a;
    --primary-dark: #0d4d0d;
    --accent: #ff9800;
    --accent-light: #ffb74d;
    --red: #FF0000;
    --whatsapp: #25D366;
    --email-blue: #2196F3;
    --text-dark: #333;
    --text-light: #666;
    --bg-cream: #f5f5eb;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --radius: 8px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: var(--text-dark); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius); font-weight: 600; cursor: pointer; border: none; transition: var(--transition); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: white; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* TOP BAR */
.top-bar { background: var(--primary); padding: 12px 0; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-left { display: flex; align-items: center; gap: 15px; }
.phone-link { display: flex; align-items: center; gap: 10px; color: white; font-weight: 600; }
.phone-link .icon { width: 32px; height: 32px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.youtube-btn { width: 36px; height: 36px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; }
.youtube-btn:hover { transform: scale(1.1); }
.search-box { display: flex; background: white; border-radius: var(--radius); overflow: hidden; }
.search-box input { width: 220px; padding: 12px 15px; border: none; outline: none; }
.search-box button { background: var(--primary-dark); border: none; padding: 12px 18px; color: white; cursor: pointer; }

/* HEADER */
.site-header { background: white; padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }

/* BADGE LOGO */
.site-logo { display: flex; align-items: center; gap: 12px; }
.logo-badge { width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(145deg, #2e7d2e, #1a5d1a); border: 4px solid #c5a028; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(0,0,0,0.2); }
.logo-badge img { width: 55px; height: 55px; object-fit: contain; }
.logo-badge-text { text-align: center; color: white; font-size: 0.55rem; font-weight: 700; line-height: 1.2; }
.logo-text .company-name { font-size: 1.4rem; font-weight: 700; color: var(--primary); display: block; }
.logo-text .tagline { font-size: 0.8rem; color: var(--accent); font-weight: 600; letter-spacing: 1px; }

/* NAVIGATION */
.main-nav ul { display: flex; gap: 30px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { color: var(--text-dark); font-weight: 500; padding: 10px 0; display: flex; align-items: center; gap: 5px; }
.main-nav > ul > li > a:hover, .main-nav .current-menu-item > a { color: var(--primary); }
.main-nav .menu-item-has-children > a::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.65rem; margin-left: 5px; }
.main-nav ul ul { display: none; position: absolute; top: 100%; left: 0; background: white; min-width: 220px; box-shadow: var(--shadow); border-radius: var(--radius); padding: 10px 0; z-index: 100; }
.main-nav li:hover > ul { display: block; }
.main-nav ul ul a { padding: 10px 20px; display: block; }
.main-nav ul ul a:hover { background: #f5f5f5; color: var(--primary); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* HERO SLIDER - Light Background */
.hero-slider { position: relative; background: linear-gradient(135deg, #e8f5e8 0%, #f5f5eb 50%, #e8f0e8 100%); overflow: hidden; }
.slide { display: none; min-height: 550px; }
.slide.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.slide-inner { display: flex; align-items: center; min-height: 550px; padding: 40px 0; }
.slide-content { flex: 1; padding-right: 40px; z-index: 2; }
.slide-content h1 { font-size: 4.5rem; color: var(--primary); font-weight: 800; line-height: 1; margin-bottom: 5px; text-transform: uppercase; }
.slide-content h2 { font-size: 3.5rem; color: var(--primary); font-weight: 800; line-height: 1; margin-bottom: 20px; text-transform: uppercase; }
.slide-content p { font-size: 1.2rem; color: var(--text-light); margin-bottom: 25px; }
.slide-image { flex: 1.2; display: flex; justify-content: center; align-items: center; }
.slide-image img { max-height: 480px; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.15)); }
.slide-placeholder { width: 350px; height: 350px; background: linear-gradient(135deg, #c8e6c9, #a5d6a7); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 5rem; }

/* SLIDER NAV - Orange Arrows */
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: var(--accent-light); border: none; border-radius: 50%; color: white; font-size: 1.2rem; cursor: pointer; z-index: 10; opacity: 0.9; transition: var(--transition); }
.slider-nav:hover { background: var(--accent); opacity: 1; }
.slider-prev { left: 30px; }
.slider-next { right: 30px; }
.slider-dots { display: flex; justify-content: center; gap: 10px; padding: 20px 0; }
.slider-dot { width: 12px; height: 12px; border-radius: 50%; background: #ccc; border: none; cursor: pointer; transition: var(--transition); }
.slider-dot.active, .slider-dot:hover { background: var(--primary); }

/* FLOATING BUTTONS - Left Side */
.floating-buttons { position: fixed; left: 20px; top: 50%; transform: translateY(-50%); z-index: 999; display: flex; flex-direction: column; gap: 15px; }
.float-btn { width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: var(--transition); }
.float-btn:hover { transform: scale(1.1); }
.whatsapp-btn { background: var(--whatsapp); }
.email-btn { background: var(--email-blue); }

/* SECTIONS */
.section { padding: 80px 0; }
.section-light { background: #f9f9f9; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.2rem; color: var(--primary); margin-bottom: 15px; }
.section-header p { color: var(--text-light); max-width: 700px; margin: 0 auto; }

/* PRODUCTS */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.product-card { background: white; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.product-image { height: 200px; overflow: hidden; background: linear-gradient(135deg, #e8f5e9, #f1f8e9); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.product-card:hover .product-image img { transform: scale(1.1); }
.product-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 3rem; }
.product-info { padding: 20px; }
.product-info h3 { font-size: 1.1rem; margin-bottom: 10px; }
.product-info h3 a { color: var(--text-dark); }
.product-info h3 a:hover { color: var(--primary); }
.product-info p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 15px; }
.product-link { color: var(--primary); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 5px; }
.product-link:hover { gap: 10px; }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.feature-card { background: white; padding: 30px; border-radius: 15px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); }
.feature-card:hover { transform: translateY(-5px); }
.feature-icon { width: 70px; height: 70px; background: linear-gradient(135deg, #4caf50, var(--primary)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: white; font-size: 1.8rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* TESTIMONIALS */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testimonial-card { background: white; padding: 30px; border-radius: 15px; box-shadow: var(--shadow); position: relative; }
.testimonial-card::before { content: '"'; position: absolute; top: 15px; right: 25px; font-size: 4rem; color: var(--primary); opacity: 0.1; font-family: Georgia, serif; }
.testimonial-card p { color: var(--text-light); font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 50px; height: 50px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 600; }
.author-info h4 { font-size: 1rem; margin: 0 0 3px; }
.author-info span { font-size: 0.85rem; color: var(--text-light); }
.author-stars { color: var(--accent); font-size: 0.85rem; }

/* FAQ */
.faq-container { max-width: 900px; margin: 0 auto; }
.faq-item { background: white; border-radius: var(--radius); margin-bottom: 15px; box-shadow: var(--shadow); overflow: hidden; }
.faq-question { padding: 20px 25px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; transition: var(--transition); }
.faq-question:hover { color: var(--primary); }
.faq-question i { transition: var(--transition); color: var(--primary); }
.faq-item.active .faq-question { background: var(--primary); color: white; }
.faq-item.active .faq-question i { transform: rotate(180deg); color: white; }
.faq-answer { padding: 0 25px; max-height: 0; overflow: hidden; transition: all 0.3s ease; }
.faq-item.active .faq-answer { padding: 20px 25px; max-height: 500px; }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card { background: white; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.blog-card:hover { transform: translateY(-5px); }
.blog-image { height: 200px; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.blog-card:hover .blog-image img { transform: scale(1.05); }
.blog-content { padding: 25px; }
.blog-meta { font-size: 0.85rem; color: var(--text-light); margin-bottom: 10px; }
.blog-content h3 { font-size: 1.1rem; margin-bottom: 10px; }
.blog-content h3 a { color: var(--text-dark); }
.blog-content h3 a:hover { color: var(--primary); }
.read-more { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

/* CTA */
.cta-section { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; padding: 70px 0; text-align: center; }
.cta-section h2 { color: white; font-size: 2.2rem; margin-bottom: 15px; }
.cta-section p { opacity: 0.9; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* PAGE HEADER */
.page-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; padding: 80px 0; text-align: center; }
.page-header h1 { font-size: 2.5rem; color: white; margin-bottom: 10px; }
.breadcrumb { margin-top: 15px; font-size: 0.9rem; opacity: 0.8; }
.breadcrumb a { color: white; }
.breadcrumb a:hover { color: var(--accent); }

/* FOOTER */
.site-footer { background: #1a1a1a; color: white; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-about .footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-about .logo-circle { width: 50px; height: 50px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.3rem; }
.footer-about h3 { color: white; font-size: 1.2rem; margin: 0; }
.footer-about > p { opacity: 0.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); }
.footer-widget h4 { font-size: 1.1rem; margin-bottom: 25px; }
.footer-widget ul li { margin-bottom: 12px; }
.footer-widget ul a { color: rgba(255,255,255,0.7); }
.footer-widget ul a:hover { color: var(--accent); padding-left: 5px; }
.footer-bottom { text-align: center; padding: 25px 0; margin-top: 50px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom p { opacity: 0.6; margin: 0; }

/* RESPONSIVE */
@media (max-width: 1200px) { .products-grid, .features-grid { grid-template-columns: repeat(2, 1fr); } .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 992px) { .testimonials-grid, .blog-grid { grid-template-columns: 1fr; } .slide-content h1 { font-size: 3rem; } .slide-content h2 { font-size: 2.5rem; } }
@media (max-width: 768px) {
    .top-bar-inner { flex-direction: column; gap: 15px; }
    .search-box { width: 100%; }
    .search-box input { flex: 1; width: auto; }
    .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: white; display: none; box-shadow: var(--shadow); padding: 20px; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li { border-bottom: 1px solid #eee; }
    .main-nav a { display: block; padding: 15px 0; }
    .main-nav ul ul { position: static; box-shadow: none; padding-left: 20px; }
    .menu-toggle { display: block; }
    .slide-inner { flex-direction: column; text-align: center; }
    .slide-content { padding-right: 0; }
    .slide-content h1 { font-size: 2.5rem; }
    .slide-content h2 { font-size: 2rem; }
    .products-grid, .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-social { justify-content: center; }
    .floating-buttons { left: 10px; }
    .float-btn { width: 45px; height: 45px; font-size: 1.2rem; }
}

.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--primary); color: white; border: none; border-radius: 50%; cursor: pointer; font-size: 1.2rem; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); }
