/*
Theme Name: Noni Bali Modern Conversion
Theme URI: https://nonibali.com/
Author: Web Architecture Specialist
Description: Theme WordPress kustom berkinerja tinggi, modern, ringan, dan dioptimalkan khusus untuk konversi penjualan & keanggotaan Tahitian Noni di wilayah Bali. Built-in dengan desain responsif mobile-first dan tombol WhatsApp terintegrasi.
Version: 2.5.0
Text Domain: nonibali
*/

/* Core CSS Reset & Variables */
:root {
    --primary-color: #0f3a20;     /* Hijau botol tua herbal premium */
    --secondary-color: #1b5e20;   /* Hijau daun segar */
    --accent-color: #25d366;      /* Hijau khas WhatsApp */
    --gold-accent: #c5a059;        /* Aksen premium emas redup */
    --text-dark: #2c3e50;         /* Warna teks utama */
    --text-light: #7f8c8d;        /* Warna teks sekunder */
    --bg-light: #f4f7f5;          /* Warna latar belakang natural */
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header & Navigation */
header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-area .brand-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo-area .brand-tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.main-navigation a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 5px 0;
    position: relative;
}

.main-navigation a:hover,
.main-navigation ul li.current-menu-item a {
    color: var(--secondary-color);
}

.header-cta .btn-header {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
}

.header-cta .btn-header:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(15,58,32,0.95) 0%, rgba(27,94,32,0.85) 100%);
    color: var(--bg-white);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://images.unsplash.com/photo-1540206395-68808572332f?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    opacity: 0.12;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    background-color: var(--gold-accent);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 35px;
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-whatsapp {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}

/* Trust Badges / Local Features */
.features-section {
    padding: 50px 0;
    background-color: var(--bg-white);
    margin-top: -40px;
    position: relative;
    z-index: 10;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 15px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(27,94,32,0.08);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    font-weight: bold;
}

.feature-item h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Product Section */
.products-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--gold-accent);
    border-radius: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-img-wrapper {
    background-color: #fcfcfc;
    padding: 40px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.product-dummy-img {
    width: 140px;
    height: 220px;
    background: linear-gradient(to bottom, #111, #333);
    border-radius: 8px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-align: center;
    font-size: 0.9rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.product-dummy-img.maxidoid {
    background: linear-gradient(to bottom, #7b1fa2, #4a148c);
}

.product-dummy-img.extra {
    background: linear-gradient(to bottom, #e65100, #bf360c);
}

.product-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-content h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-meta {
    font-size: 0.85rem;
    color: var(--gold-accent);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.product-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-price-box {
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
}

.price-label {
    font-size: 0.8rem;
    color: var(--text-light);
    display: block;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.price-subtext {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Testimonial / Story Section */
.testimonials-section {
    background-color: var(--bg-white);
    padding: 80px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    position: relative;
}

.testimonial-card::before {
    content: "“";
    font-size: 5rem;
    color: rgba(27,94,32,0.1);
    position: absolute;
    top: -10px;
    left: 20px;
    line-height: 1;
}

.testimonial-text {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.testimonial-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-avatar {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.profile-info h4 {
    font-size: 0.95rem;
    color: var(--primary-color);
}

.profile-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Dynamic Blog / Info Section */
.info-section {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid var(--border-color);
}

.blog-img {
    height: 180px;
    background-color: var(--primary-color);
    opacity: 0.8;
}

.blog-body {
    padding: 20px;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
    display: block;
}

.blog-body h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.blog-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Footer & Disclaimers */
footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--bg-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.disclaimer-box {
    background-color: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 30px;
    border-left: 3px solid var(--gold-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-color);
    color: var(--bg-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Mobile Responsiveness Rules */
@media (max-width: 992px) {
    .hero-section h1 { font-size: 2.2rem; }
    .main-navigation { display: none; } /* Standard toggle state fallback */
}

@media (max-width: 576px) {
    .hero-section { padding: 60px 0 50px; }
    .hero-section h1 { font-size: 1.8rem; }
    .hero-section p { font-size: 1rem; }
    .product-grid { grid-template-columns: 1fr; }
    .floating-whatsapp { bottom: 20px; right: 20px; width: 55px; height: 55px; }
}