/* =======================================================
*
* Custom Styles for Penjual Bata Ringan
* This file overrides and extends style.css
*
* ======================================================= */

/* 1. General Style & Brand Identity
-------------------------------------------------- */
:root {
    --primary-color: #0D47A1; /* A strong, professional blue */
    --secondary-color: #1565C0; /* A slightly lighter blue for accents */
    --accent-color: #FF7043; /* An orange for standout CTAs (e.g., WhatsApp) */
    --text-color: #333;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
}

/* Improve scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Reversing the original font choice for better readability */
body {
    font-family: 'Montserrat', sans-serif; /* Use sans-serif for body */
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif; /* Use serif for headings */
    font-weight: 700;
    color: var(--primary-color);
}

/* Override default link color */
a {
    color: var(--secondary-color);
}
a:hover {
    color: var(--primary-color);
}


/* 2. Navigation Bar
-------------------------------------------------- */
.fh5co-nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1020;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* 14. Perbaikan Font & Layout Logo
-------------------------------------------------- */

/* Wadah utama untuk logo dan tagline */
#fh5co-logo {
    padding-top: 5px; /* Sedikit ruang di atas */
}

/* Style untuk LOGO UTAMA ("PUSAT HEBEL") */
#fh5co-logo a {
    font-family: 'Oswald', sans-serif; /* Menggunakan font Oswald yang baru */
    font-size: 26px; /* Ukuran font lebih besar dan tegas */
    font-weight: 700; /* Tebal */
    text-transform: uppercase;
    letter-spacing: 1.5px; /* Jarak antar huruf agar terlihat lebih premium */
    color: var(--primary-color); /* Menggunakan warna primer yang sudah kita tentukan */
    line-height: 1.1;
    padding: 0;
}
#fh5co-logo a:hover {
    text-decoration: none; /* Hilangkan garis bawah saat di-hover */
}

/* Style untuk TAGLINE */
.logo-tagline {
    font-family: 'Montserrat', sans-serif; /* Tetap menggunakan Montserrat yang rapi */
    font-size: 13px; /* Ukuran lebih kecil dari logo */
    font-weight: 400; /* Ketebalan normal */
    color: #555; /* Warna abu-abu gelap agar tidak bersaing dengan logo */
    letter-spacing: 0.5px; /* Sedikit jarak agar mudah dibaca */
    margin-top: 4px; /* Jarak antara logo dan tagline */
    display: block; /* Pastikan tagline berada di baris baru */
}

.fh5co-nav .menu-1 ul li a {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.7);
}

.fh5co-nav .menu-1 ul li.active>a {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.fh5co-nav .menu-2 .nav-cta a {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 14px;
}
.fh5co-nav .menu-2 .nav-cta .btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    margin-left: 10px;
    font-size: 13px;
    transition: background-color 0.3s ease;
}
.fh5co-nav .menu-2 .nav-cta .btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
}


/* 3. Hero Section
-------------------------------------------------- */
#fh5co-hero .flexslider .slider-text > .slider-text-inner .desc {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}
#fh5co-hero .flexslider .slider-text > .slider-text-inner .desc h2 {
    font-size: 48px;
    color: var(--primary-color);
}
#fh5co-hero .btn.btn-primary.btn-outline {
    border-color: var(--accent-color);
    color: var(--accent-color);
}
#fh5co-hero .btn.btn-primary.btn-outline:hover {
    background-color: var(--accent-color);
    color: white;
}


/* 4. Product Section
-------------------------------------------------- */
#fh5co-product .card {
    border: none;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Ensures the image corners are rounded */
}

#fh5co-product .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 250px;
    object-fit: cover;
}

#fh5co-product .card-body {
    min-height: 200px; /* Ensure cards have a consistent height */
    display: flex;
    flex-direction: column;
}

#fh5co-product .card-body .btn {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    margin-top: auto; /* Pushes the button to the bottom */
}
#fh5co-product .card-body .btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}


/* 5. Counter & About Section
-------------------------------------------------- */
#fh5co-counter {
    background-attachment: fixed; /* Parallax effect */
    position: relative;
}
/* Add a dark overlay for better text readability */
#fh5co-counter::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13, 71, 161, 0.7); /* Dark blue overlay */
    z-index: 1;
}
#fh5co-counter .container {
    position: relative;
    z-index: 2;
}
#fh5co-counter .feature-center {
    background: none;
}
#fh5co-counter .counter, #fh5co-counter .counter-label {
    color: white;
}
#fh5co-counter .icon {
    background: var(--accent-color);
}
#fh5co-about .icon {
    background: var(--primary-color);
}


/* 6. Partners Section
-------------------------------------------------- */
#fh5co-started figure img {
    max-width: 150px;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

#fh5co-started figure img:hover {
    filter: grayscale(0%);
    opacity: 1;
}


/* 7. Testimonial Section
-------------------------------------------------- */
#fh5co-testimonial {
    background: var(--bg-light);
}

#fh5co-testimonial .testimony-slide blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    font-style: italic;
    font-size: 1.1em;
}


/* 8. Contact Form
-------------------------------------------------- */
/* We assume you add .form-control class to your Django form fields */
#fh5co-contact .form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
}
#fh5co-contact .form-control:focus {
    border-color: var(--primary-color);
}
#fh5co-contact .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
}
#fh5co-contact .btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* 9. Floating WhatsApp Button
-------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 40px; /* MOVED from right to left */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    z-index: 100;
    transition: transform 0.3s ease;
    /* ADD these lines for centering the SVG */
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* We no longer need the .whatsapp-float i rule */

/* 10. Product Grid Fix (Flexbox)
-------------------------------------------------- */
.product-grid-container {
    display: flex; /* Activates Flexbox */
    flex-wrap: wrap; /* Allows items to wrap to the next line */
    justify-content: center; /* Centers the items in the container */
    gap: 30px; /* Creates a 30px space between all items, vertically and horizontally */
    padding-top: 20px; /* Adds some space below the category title */
}

/* This will be our new product item class */
.product-item {
    width: 100%; /* Full width on mobile by default */
    margin-bottom: 0; /* The 'gap' property handles spacing, so we remove the old margin */
}

/* On medium screens and up (laptops, desktops) */
@media (min-width: 768px) {
    .product-item {
        /* We want 3 columns, so we calculate the width. 
           100% / 3 = 33.33%. We subtract the gap space for a perfect fit. */
        width: calc(33.333% - 22px);
    }
}

/* On large screens, you can optionally go to 4 columns */
@media (min-width: 1200px) {
    .product-item {
        /* Example for 4 columns on very large screens */
        width: calc(25% - 24px);
    }
}

/* 11. Partner Logo Grid Fix (Flexbox)
-------------------------------------------------- */
.partner-grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Horizontally center the logos */
    align-items: center;     /* Vertically center logos if they have different heights */
    gap: 50px 30px;          /* 50px vertical space, 30px horizontal space */
    margin-top: 40px;
}

.partner-item {
    /* Each logo container will have a flexible base width */
    flex: 0 1 180px; /* flex-grow: 0, flex-shrink: 1, flex-basis: 180px */
    text-align: center;
}

/* We already have the grayscale effect from a previous CSS rule, 
   but let's ensure the image itself is responsive. */
.partner-item img {
    max-width: 150px; /* Control the max size of the logo */
    height: auto;
}

/* We remove the default margin from the <figure> tag that can mess up alignment */
.partner-item figure {
    margin: 0;
}


