/* 
    NiduPalmoil - Main Design System
    Fonts: Manrope (Headings), Inter (Body)
*/

:root {
    --primary: #4a7c2c;
    --primary-light: #8ab440;
    --primary-dark: #1a2e0e;
    --secondary: #d4e3c1;
    --accent: #f59e0b; /* Earthy Amber for CTAs */
    --bg-light: #fdfdfb;
    --text-main: #1e291b;
    --text-muted: #64748b;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

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

/* Header & Nav */
.navbar {
    padding: 20px 0;
    background: transparent;
    transition: var(--transition);
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar.scrolled {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: fixed;
}

.nav-link {
    font-weight: 600;
    color: var(--white);
    margin: 0 20px;
    font-size: 0.95rem;
}

.navbar.scrolled .nav-link {
    color: var(--text-main);
}

.nav-link:hover {
    color: var(--primary-light);
}

.brand-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--white);
    letter-spacing: -0.5px;
}

.navbar.scrolled .brand-text {
    color: var(--primary);
}

/* Mobile Menu Slide from Right */
.offcanvas-end {
    width: 300px;
    background-color: var(--primary-dark);
    color: white;
}

.offcanvas-header .btn-close {
    filter: invert(1);
}

/* Buttons */
.btn-cta {
    background-color: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-cta:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 124, 44, 0.2);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

/* Hero Section */
.hero-swiper {
    height: 100vh;
    width: 100%;
}

.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
    color: white;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Section Styling */
.section {
    padding: 100px 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title .badge {
    color: var(--primary);
    background: var(--secondary);
    padding: 8px 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 20px;
    display: inline-block;
}

/* Creative Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* CTA Section */
.nidu-ecosystem {
    background-color: var(--primary-dark);
    padding: 80px 0;
    color: white;
    border-radius: 40px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.nidu-ecosystem::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.2;
    border-radius: 50%;
}

/* Global Utility Overrides (Remove Blue) */
.text-primary, .text-info {
    color: var(--primary) !important;
}

.btn-primary, .bg-primary, .bg-info {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    color: white !important;
}

.accordion-button:not(.collapsed) {
    background-color: var(--secondary) !important;
    color: var(--primary-dark) !important;
}

.accordion-button:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(74, 124, 44, 0.25) !important;
}
