/* ============================================================
   App Theme — Merah & Putih (Modern Company Profile)
   ============================================================ */

:root {
    --primary:       #b91c1c;   /* deep red */
    --primary-light: #dc2626;   /* bright red */
    --primary-dark:  #991b1b;   /* darker red */
    --accent:        #dc2626;
    --accent-dark:   #b91c1c;
    --text-dark:     #111827;
    --text-muted:    #6b7280;
    --bg-light:      #f9fafb;
    --bg-white:      #ffffff;
    --border-light:  #f3f4f6;
}

/* ── Reset / Base ─────────────────────────────────────────── */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar          { width: 6px; }
::-webkit-scrollbar-track    { background: #f1f1f1; }
::-webkit-scrollbar-thumb    { background: var(--primary); border-radius: 3px; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
    background: #ffffff !important;
    backdrop-filter: blur(10px);
    padding: 0.875rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f3f4f6;
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-dark) !important;
}

.navbar-brand span {
    color: var(--accent);
}

.nav-link {
    color: #374151 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23374151' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.hero-title span {
    color: #fecaca; /* light red tint for contrast */
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.7;
}

.hero-stats {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 2rem;
}

.stat-item { text-align: center; }

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    margin-top: 0.25rem;
}

/* ── Section Helpers ──────────────────────────────────────── */
.section-badge {
    display: inline-block;
    background: rgba(220,38,38,0.08);
    color: var(--accent);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    border-radius: 2px;
    margin: 1rem 0;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark), #7f1d1d);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(185,28,28,0.35);
}

.btn-outline-custom {
    border: 2px solid rgba(255,255,255,0.55);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-custom:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

/* ── Cards ────────────────────────────────────────────────── */
.product-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    background: #fff;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(185,28,28,0.13);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.product-card .card-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Category Cards ───────────────────────────────────────── */
.category-card {
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(185,28,28,0.22);
    border-color: transparent;
}

.category-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(220,38,38,0.08), rgba(220,38,38,0.16));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: var(--accent);
    transition: all 0.3s;
}

.category-card:hover .category-icon {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* ── Feature Icons ────────────────────────────────────────── */
.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(220,38,38,0.08), rgba(220,38,38,0.16));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

/* ── About Section ────────────────────────────────────────── */
.about-img-wrapper { position: relative; }

.about-img-wrapper img {
    border-radius: 20px;
    width: 100%;
    object-fit: cover;
}

.about-badge-float {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent);
    color: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(185,28,28,0.3);
}

/* ── Page Hero (breadcrumb pages) ─────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    padding: 5rem 0 4rem;
}

/* ── Badges ───────────────────────────────────────────────── */
.badge-featured {
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
    background: #111827;
}

footer a {
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent) !important;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ── On-Primary (elements on red background) ──────────────── */
.on-primary .section-badge {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.on-primary .section-divider {
    background: rgba(255,255,255,0.5);
}

.on-primary .feature-icon {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* ── Utilities ────────────────────────────────────────────── */
.bg-red-soft  { background: rgba(220,38,38,0.06); }
.text-primary-custom { color: var(--primary) !important; }
.text-accent  { color: var(--accent) !important; }
