/* * Custom CSS for PlaasJaap
 * This file contains custom styles to complement the Tailwind CSS framework,
 * ensuring a unique and rugged, heritage-inspired look for the website.
 */

/* General body styling for a clean look */
body {
    font-family: 'Lato', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Hero Section Styling for a distinct feel */
.main-hero {
    /* Use a placeholder image for a rustic, dark aesthetic */
    background-image: url('images/plaashero.jpg'); 
    background-size: cover;
    background-position: center 60%; /* Adjusted for a better focal point */
    min-height: 85vh; /* Less harsh than 100vh, but still dramatic */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.main-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Stronger, darker overlay for dramatic effect */
    background-color: rgba(0, 0, 0, 0.25); 
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Modal styling for a smooth, centered pop-up */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 20px;
    transition: background-color 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #f9f9f9; /* pjp-white */
    padding: 30px;
    border: 3px solid #D4AC0D; /* pjp-yellow border */
    width: 95%;
    max-width: 900px;
    border-radius: 8px; /* Slightly less rounded than original */
    position: relative;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.close-btn {
    color: #1F1F1F; /* pjp-black */
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}
.close-btn:hover {
    color: #D4AC0D; /* pjp-yellow */
}

/* Modal Animations */
@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateY(-50px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}


/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 1100;
}
.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #1F1F1F; /* pjp-black */
    transition: all 0.3s linear;
    transform-origin: 1px;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background-color: #EFECE0; /* pjp-tan */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    z-index: 999;
    border-top: 2px solid #D4AC0D;
}

.mobile-menu.show {
    display: block;
}

/* Media Query for Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .desktop-nav {
        display: none !important;
    }
    .main-hero h1 {
        font-size: 4rem; /* Adjust heading size for small screens */
    }
}

/* Custom styling for product cards to look more rugged */
.product-card-sub, .carousel-item {
    border: 1px solid #D4AC0D; /* Yellow outline */
    border-radius: 4px; /* Square/rugged corners */
}
/* SEO restructure additions */
.offer-card, .service-card, .content-card { transition: transform .25s ease, box-shadow .25s ease; }
.offer-card:hover, .service-card:hover, .content-card:hover { transform: translateY(-4px); box-shadow: 0 16px 35px rgba(0,0,0,.14); }
.page-hero { background: linear-gradient(rgba(0,0,0,.58), rgba(0,0,0,.58)), url('images/plaashero.jpg'); background-size: cover; background-position: center 58%; min-height: 48vh; display: flex; align-items: center; }
.brand-link { color: #D4AC0D; }
.footer-bottom-fixed p { margin: .25rem 0; }

/* Image-driven sections added for Plaasjaap service pages */
.image-feature-card img,
.product-image-card img,
.service-image-strip img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.product-image-card { overflow: hidden; }
.product-image-card img { transition: transform .35s ease; }
.product-image-card:hover img { transform: scale(1.04); }
.image-caption-dark { background: rgba(31,31,31,.92); color: #F9F9F9; }
@media (max-width: 768px) {
  .image-feature-card img,
  .product-image-card img,
  .service-image-strip img { height: 210px; }
}
