/* ========================================
   ReviewZone Indonesia - CSS Stylesheet
   Color Scheme: Amber/Yellow (#d97706)
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #d97706;
    --primary-dark: #b45309;
    --primary-light: #f59e0b;
    --primary-lighter: #fbbf24;
    --primary-bg: #fffbeb;
    --primary-bg-alt: #fef3c7;
    --text: #1c1917;
    --text-light: #57534e;
    --text-lighter: #78716c;
    --bg: #ffffff;
    --bg-alt: #fafaf9;
    --border: #e7e5e4;
    --border-light: #f5f5f4;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary);
}

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

ul {
    list-style: none;
}

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

/* --- Navbar --- */
.navbar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-icon {
    color: var(--primary);
    font-size: 1.5rem;
}

.logo-accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--primary-bg-alt) 50%, #fff 100%);
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    color: var(--text);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 680px;
    margin: 0 auto 28px;
    line-height: 1.8;
}

.hero-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.rating-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.rating-count {
    color: var(--text-lighter);
    font-size: 0.95rem;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Page Header (inner pages) --- */
.page-header {
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--primary-bg-alt) 100%);
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 16px;
    color: var(--text-lighter);
}

.breadcrumb a {
    color: var(--primary-dark);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text);
}

.page-header-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 720px;
    line-height: 1.8;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

/* --- Stars --- */
.stars {
    display: inline-flex;
    gap: 2px;
}

.star {
    font-size: 1.3rem;
    color: var(--border);
}

.star.filled {
    color: var(--primary-lighter);
}

.big-stars .star {
    font-size: 1.8rem;
}

/* --- Sections --- */
.section {
    padding: 64px 0;
}

.section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}

.section-desc {
    color: var(--text-light);
    font-size: 1.02rem;
    max-width: 720px;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* --- Rating Summary --- */
.rating-summary-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.rating-overview {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: center;
    background: var(--bg);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.rating-big {
    text-align: center;
}

.rating-big-number {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
    margin-bottom: 8px;
}

.rating-big-label {
    display: block;
    color: var(--text-lighter);
    font-size: 0.9rem;
    margin-top: 8px;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bar-row {
    display: grid;
    grid-template-columns: 80px 1fr 48px;
    gap: 12px;
    align-items: center;
}

.bar-label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-light);
    white-space: nowrap;
}

.bar-track {
    height: 10px;
    background: var(--border-light);
    border-radius: 20px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-lighter), var(--primary));
    border-radius: 20px;
    transition: width 0.6s ease;
}

.bar-percent {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    text-align: right;
}

/* --- Review Cards --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.review-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
}

.review-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-lighter);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-lighter), var(--primary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.review-date {
    font-size: 0.82rem;
    color: var(--text-lighter);
}

.review-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
}

.review-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 12px;
}

.review-stars .star {
    font-size: 1.1rem;
}

.rating-text {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-dark);
    margin-left: 8px;
}

.review-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.review-text {
    color: var(--text-light);
    font-size: 0.94rem;
    line-height: 1.7;
}

.review-body p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 14px;
}

.review-body p:last-child {
    margin-bottom: 0;
}

.review-body a {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.reviews-cta {
    text-align: center;
    margin-top: 40px;
}

/* --- Features/Why Section --- */
.why-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

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

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-lighter);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--primary-bg-alt) 100%);
    text-align: center;
    padding: 72px 0;
    border-top: 1px solid var(--border);
}

.cta-section h2 {
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

/* --- Footer --- */
.footer {
    background: var(--text);
    color: #d6d3d1;
    padding: 56px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #44403c;
}

.footer h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #a8a29e;
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer ul a {
    color: #a8a29e;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer ul a:hover {
    color: var(--primary-lighter);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #78716c;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        padding: 48px 0 40px;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .page-header {
        padding: 32px 0;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .section {
        padding: 48px 0;
    }

    .section h2 {
        font-size: 1.4rem;
    }

    .rating-overview {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 28px 20px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.45rem;
    }

    .review-card {
        padding: 20px;
    }

    .bar-row {
        grid-template-columns: 70px 1fr 40px;
        gap: 8px;
    }

    .rating-big-number {
        font-size: 3.2rem;
    }
}
