/* ========== ROOT VARIABLES & GLOBAL ========== */
:root {
    --primary: #2d5a27;
    --primary-light: #4a8c42;
    --primary-dark: #1a3c16;
    --secondary: #c8a247;
    --secondary-light: #e0c062;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --light: #f8f9fa;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    overflow-x: hidden;
    background: var(--light);
}
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; font-weight: 700; }
a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 10px; }

/* ========== SECTION TITLES ========== */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 {
    font-size: 2.5rem; color: var(--primary-dark);
    position: relative; display: inline-block; padding-bottom: 15px;
}
.section-title h2::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 80px; height: 4px;
    background: var(--secondary); border-radius: 2px;
}
.section-title p {
    color: var(--text-light); font-size: 1.05rem; margin-top: 10px;
    max-width: 600px; margin-left: auto; margin-right: auto;
}
.section-padding { 
    padding: 100px 0;
    clear: both;
    position: relative;
    width: 100%; }

/* ========== NAVBAR ========== */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
    background: transparent !important;
    z-index: 1000;
}
.navbar.scrolled { background: rgba(26, 26, 46, 0.95) !important; backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.navbar-brand { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.5rem; }
.navbar-brand span { color: var(--secondary); }
.navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500; padding: 8px 16px !important;
    border-radius: 8px; transition: var(--transition); position: relative;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--secondary) !important; }
.navbar .nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 16px; right: 16px;
    height: 2px; background: var(--secondary);
    transform: scaleX(0); transform-origin: center; transition: transform 0.3s ease;
}
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler { border: none; color: var(--white); font-size: 1.5rem; }
/* ========== PAGE HEADER (halaman non-beranda) ========== */
.page-header {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    height: 50vh; min-height: 350px;
}

/* ========== HERO SLIDER ========== */
.hero-section { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.hero-slider { width: 100%; height: 100%; }
.hero-slider .swiper-slide {
    position: relative; display: flex;
    align-items: flex-end; justify-content: flex-start;
}
.hero-slider .swiper-slide::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(26,60,22,0.92) 0%, rgba(26,60,22,0.3) 45%, rgba(15,15,26,0.1) 100%);
    z-index: 1;
}
.hero-slide-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center;
}
.hero-content {
    position: relative; z-index: 2; text-align: left;
    max-width: 900px; padding: 50px 40px; margin-bottom: 30px;
}
.hero-content .badge {
    background: var(--secondary) !important; color: var(--dark);
    font-weight: 600; padding: 6px 18px; border-radius: 50px;
    font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 12px; display: inline-block;
}
.hero-content h1 {
    font-size: 3.2rem; font-weight: 700; color: var(--white);
    margin-bottom: 12px; line-height: 1.2;
}
.hero-content h1 span { color: var(--secondary); }
.hero-content p {
    font-size: 1rem; color: rgba(255,255,255,0.92);
    line-height: 1.7; max-width: 700px;
}
.hero-content .hero-buttons { display: none; }
.hero-section .swiper-button-next,
.hero-section .swiper-button-prev {
    color: var(--secondary); background: rgba(255,255,255,0.15);
    width: 50px; height: 50px; border-radius: 50%;
    backdrop-filter: blur(5px); transition: var(--transition);
}
.hero-section .swiper-button-next:hover,
.hero-section .swiper-button-prev:hover { background: var(--secondary); color: var(--dark); }
.hero-section .swiper-pagination-bullet { background: var(--white); opacity: 0.5; width: 12px; height: 12px; }
.hero-section .swiper-pagination-bullet-active {
    background: var(--secondary); opacity: 1; width: 30px; border-radius: 10px;
}

/* ========== ABOUT / BACKGROUND ========== */
#about { background: var(--white); }
.about-image {
    position: relative; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); height: 100%; min-height: 400px;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-image::after {
    content: ''; position: absolute; bottom: -20px; right: -20px;
    width: 100%; height: 100%; border: 4px solid var(--secondary);
    border-radius: var(--radius); z-index: -1;
}
.about-content h3 { font-size: 1.8rem; color: var(--primary-dark); margin-bottom: 20px; }
.about-content p { color: var(--text-light); line-height: 1.8; margin-bottom: 15px; }
.about-stats { display: flex; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.stat-item {
    text-align: center; padding: 20px; background: var(--light);
    border-radius: var(--radius); flex: 1; min-width: 120px;
}
.stat-item h4 { font-size: 2rem; color: var(--primary); font-family: 'Poppins', sans-serif; }
.stat-item p { font-size: 0.85rem; color: var(--text-light); margin: 0; }

/* ========== NEWS ========== */
#news { background: var(--light); }
.news-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition); height: 100%;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.news-card-img { height: 220px; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body { padding: 25px; }
.news-date {
    font-size: 0.85rem; color: var(--secondary); font-weight: 500;
    display: flex; align-items: center; gap: 5px; margin-bottom: 10px;
}
.news-card-body h5 { font-size: 1.1rem; margin-bottom: 10px; font-family: 'Poppins', sans-serif; font-weight: 600; }
.news-card-body p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; margin-bottom: 15px; }
.news-card-body a { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.news-card-body a:hover { color: var(--secondary); }
.navbar-toggler:focus { box-shadow: none; }
/* ========== COMPANY PROFILE (VERTICAL LAYOUT) ========== */
#profile { background: var(--white); }
.profile-hero {
    position: relative; height: 400px; border-radius: var(--radius);
    overflow: hidden; margin-bottom: 60px;
}
.profile-hero img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.profile-hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(26,60,22,0.7), rgba(15,15,26,0.6));
}
.profile-hero-text { position: absolute; bottom: 40px; left: 40px; right: 40px; z-index: 2; color: var(--white); }
.profile-hero-text h2 { font-size: 2.5rem; margin-bottom: 10px; }
.profile-hero-text p { font-size: 1.05rem; opacity: 0.9; max-width: 700px; }

.profile-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.profile-tab-btn {
    padding: 12px 28px; border-radius: 50px; border: 2px solid var(--primary);
    background: transparent; color: var(--primary); font-weight: 600;
    cursor: pointer; transition: var(--transition); font-size: 0.9rem;
}
.profile-tab-btn:hover, .profile-tab-btn.active { background: var(--primary); color: var(--white); }
.profile-panel { display: none; animation: fadeIn 0.5s ease; }
.profile-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.vision-box {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white); padding: 40px; border-radius: var(--radius); margin-bottom: 30px;
}
.vision-box h4 { font-size: 1.5rem; margin-bottom: 15px; color: var(--secondary); }
.vision-box p { font-size: 1.05rem; line-height: 1.8; opacity: 0.9; }
.mission-box {
    padding: 25px 30px; background: var(--light); border-radius: var(--radius);
    margin-bottom: 15px; border-left: 4px solid var(--secondary);
}
.mission-box .mission-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 35px; height: 35px; background: var(--secondary); color: var(--dark);
    border-radius: 50%; font-weight: 700; margin-right: 10px;
}
.mission-box h5 { display: inline; font-family: 'Poppins', sans-serif; font-weight: 600; }
.mission-box p { margin-top: 10px; color: var(--text-light); line-height: 1.7; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; }
.value-card {
    text-align: center; padding: 35px 20px; background: var(--light);
    border-radius: var(--radius); transition: var(--transition);
}
.value-card:hover { background: var(--primary); color: var(--white); transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.value-card:hover .value-icon { background: rgba(255,255,255,0.2); color: var(--white); }
.value-icon {
    width: 70px; height: 70px; background: rgba(45,90,39,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px; font-size: 1.8rem; color: var(--primary); transition: var(--transition);
}
.value-card h5 { font-family: 'Poppins', sans-serif; font-weight: 600; margin-bottom: 8px; }
.value-card p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

.board-card {
    text-align: center; padding: 30px 20px; background: var(--light);
    border-radius: var(--radius); transition: var(--transition); height: 100%;
}
.board-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.board-card .board-avatar {
    width: 100px; height: 100px; border-radius: 50%; background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px; font-size: 2.5rem; color: var(--white);
}
.board-card h5 { font-family: 'Poppins', sans-serif; font-weight: 600; margin-bottom: 5px; }
.board-card .position {
    color: var(--secondary); font-weight: 600; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px;
}
.board-section-title {
    text-align: center; margin: 30px 0 20px; padding: 10px;
    background: var(--primary); color: var(--white); border-radius: var(--radius);
}

.awards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.award-card {
    display: flex; align-items: center; gap: 20px; padding: 25px;
    background: var(--light); border-radius: var(--radius); transition: var(--transition);
}
.award-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.award-card .award-icon { font-size: 2.5rem; color: var(--secondary); }
.award-card h5 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1rem; margin-bottom: 5px; }
/* ========== PRODUCTS (VERTICAL LAYOUT) ========== */
#products { background: var(--light); }
.product-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition); margin-bottom: 30px;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.product-card-img { height: 350px; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { padding: 30px; }
.product-card-body .product-tag {
    display: inline-block; padding: 4px 14px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 600; margin-bottom: 10px;
}
.tag-palm { background: rgba(45,90,39,0.1); color: var(--primary); }
.tag-sugar { background: rgba(200,162,71,0.15); color: #8a6d1a; }
.product-card-body h4 { font-size: 1.5rem; margin-bottom: 12px; }
.product-card-body p { color: var(--text-light); font-size: 0.95rem; line-height: 1.8; margin-bottom: 15px; }
.product-card-body .location-info {
    display: flex; align-items: flex-start; gap: 8px;
    color: var(--text-light); font-size: 0.9rem;
}
.product-card-body .location-info i { color: var(--secondary); margin-top: 3px; }

/* ========== SHAREHOLDERS ========== */
#shareholders { background: var(--white); }
.shareholder-card {
    text-align: center; padding: 50px 30px;
    background: linear-gradient(135deg, var(--light), var(--white));
    border-radius: var(--radius); box-shadow: var(--shadow);
    transition: var(--transition); height: 100%;
    border: 1px solid rgba(200,162,71,0.2);
}
.shareholder-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.shareholder-card .share-icon {
    width: 100px; height: 100px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center; margin: 0 auto 25px;
    font-size: 3rem; color: var(--white);
}
.shareholder-card h4 { font-size: 1.5rem; margin-bottom: 10px; }
.shareholder-card .share-percent {
    font-size: 3rem; font-weight: 700; color: var(--secondary);
    font-family: 'Playfair Display', serif;
}
.shareholder-card .share-sub { color: var(--text-light); margin-top: 5px; }

/* ========== POLICIES ========== */
#policies { background: var(--light); }
.policy-card {
    background: var(--white); border-radius: var(--radius); padding: 35px;
    box-shadow: var(--shadow); transition: var(--transition); height: 100%; border-bottom: 4px solid var(--secondary);
}
.policy-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.policy-card .policy-icon { font-size: 2.5rem; color: var(--secondary); margin-bottom: 15px; }
.policy-card h4 { font-size: 1.3rem; margin-bottom: 15px; }
.policy-card ul { list-style: none; padding: 0; }
.policy-card ul li {
    padding: 8px 0; color: var(--text-light); font-size: 0.95rem;
    line-height: 1.6; display: flex; align-items: flex-start; gap: 10px;
}
.policy-card ul li i { color: var(--primary); margin-top: 4px; flex-shrink: 0; }
.policy-sub-item {
    padding: 20px; background: var(--light); border-radius: var(--radius);
    margin-bottom: 12px; border-left: 3px solid var(--primary);
}
.policy-sub-item h5 {
    font-family: 'Poppins', sans-serif; font-weight: 600;
    font-size: 1rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px;
}
.policy-sub-item h5 i { color: var(--primary); }
.policy-sub-item p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; margin: 0; }
/* ========== LOCATION ========== */
#location { background: var(--white); }
.location-info-card {
    padding: 40px; background: var(--light); border-radius: var(--radius); height: 100%;
}
.location-info-card h3 { font-size: 1.6rem; color: var(--primary-dark); margin-bottom: 25px; }
.location-info-card .info-item {
    display: flex; gap: 15px; margin-bottom: 25px;
}
.location-info-card .info-item .info-icon {
    width: 50px; height: 50px; background: var(--primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 1.2rem; flex-shrink: 0;
}
.location-info-card .info-item h5 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1rem; }
.location-info-card .info-item p { color: var(--text-light); font-size: 0.9rem; margin: 0; }
.map-container {
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    height: 100%; min-height: 400px;
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ========== FOOTER (tanpa navigasi) ========== */
.footer {
    background: var(--dark); color: rgba(255,255,255,0.8); padding: 60px 0 0;
}
.footer h4 {
    color: var(--white); font-size: 1.3rem; margin-bottom: 20px;
    font-family: 'Poppins', sans-serif; font-weight: 600;
}
.footer-brand {
    font-family: 'Playfair Display', serif; font-size: 1.8rem;
    font-weight: 700; color: var(--white); margin-bottom: 15px;
}
.footer-brand span { color: var(--secondary); }
.footer p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 15px; }
.footer-contact-item {
    display: flex; gap: 12px; margin-bottom: 15px; font-size: 0.9rem;
}
.footer-contact-item i { color: var(--secondary); margin-top: 4px; flex-shrink: 0; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
    width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 1.1rem; transition: var(--transition);
}
.footer-social a:hover { background: var(--secondary); color: var(--dark); transform: translateY(-3px); }
.footer-bottom {
    margin-top: 40px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center; font-size: 0.85rem;
}
.footer-bottom a { color: var(--secondary); }

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
    border-radius: 50%; background: var(--secondary); color: var(--dark);
    border: none; font-size: 1.2rem; cursor: pointer; z-index: 999;
    display: none; align-items: center; justify-content: center;
    box-shadow: var(--shadow); transition: var(--transition);
}
.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--secondary-light); transform: translateY(-3px); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1199px) {
    .hero-content h1 { font-size: 2.8rem; }
}
@media (max-width: 991px) {
    .section-padding { padding: 70px 0; }
    .hero-content h1 { font-size: 2.4rem; }
    .profile-hero { height: 300px; }
    .product-card-img { height: 280px; }
    .about-image { margin-bottom: 30px; }
    .about-image::after { display: none; }
    .navbar-nav { background: rgba(26,26,46,0.98); padding: 20px; border-radius: var(--radius); margin-top: 10px; }
}
@media (max-width: 767px) {
    .section-title h2 { font-size: 2rem; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content { padding: 30px 20px; }
    .hero-content p { font-size: 0.95rem; }
    .profile-hero-text { left: 20px; right: 20px; bottom: 20px; }
    .profile-hero-text h2 { font-size: 1.8rem; }
    .profile-tab-btn { padding: 10px 20px; font-size: 0.8rem; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .product-card-img { height: 220px; }
}
@media (max-width: 575px) {
    .hero-content h1 { font-size: 1.6rem; }
    .hero-section { height: 80vh; }
    .values-grid { grid-template-columns: 1fr; }
    .awards-grid { grid-template-columns: 1fr; }
    .location-info-card h3 { font-size: 1.3rem; }
}
.award-card p { color: var(--text-light); font-size: 0.85rem; margin: 0; }