/*
Theme Name: Ridolfi Construction
Author: Your Name
Description: Custom portfolio theme for Ridolfi Construction
Version: 1.0
Text Domain: ridolfi
*/

/* --- Slider Section --- */

/* Main slider container styles */
.my-slider-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Force slider height for desktop */
.my-slider-container .n2-ss-slider {
    height: 600px !important;
}

/* Tablet responsiveness */
@media (max-width: 768px) {
    .my-slider-container .n2-ss-slider {
        height: 400px !important;
    }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .my-slider-container .n2-ss-slider {
        height: 300px !important;
    }
}

/* --- Project Cards Section --- */

/* Ensure all card images have the same height and ratio */
.card-img-top {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important; /* Crops the image to fill the area without distortion */
    object-position: center !important; /* Keeps the center of the image visible */
}

/* --- Navigation Menu Section --- */

/* Remove default list styling and align items */
.nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px; /* Space between menu items */
}

/* Navigation link styling */
.nav li a {
    color: #ffffff !important; /* Forces white color */
    text-decoration: none !important; /* Removes blue underline */
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Hover state for links */
.nav li a:hover {
    color: #ffc107 !important; /* Changes color to gold/yellow on hover */
}

/* --- Hero Header Section --- */

.site-header {
    position: relative;
    /* Replace 'your-image-url.jpg' with your actual image path */
    background-image: url('https://ridolficonstruction.com/wp-content/uploads/2025/05/NNN.home_.jpg'); 
    background-size: cover;
    background-position: center 100%;
    /*background-attachment: fixed; /* Optional: creates a parallax effect */*/
    min-height: 400px; /* Adjust height as needed */
    display: flex;
    flex-direction: column;
}

/* Dark overlay to make white text pop */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 0.5 is the opacity of the fade */
    z-index: 1;
}

/* Ensures content stays above the overlay */
.header-container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Centering the hero text */
.hero-content {
    margin: auto 0; /* Vertically centers the text within the header */
    padding: 30px 0;
}

.hero-content h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adds shadow for even better readability */
}

.top-bar {
    background-color: #1a1a1a; /* Darker than the main header for contrast */
    color: #cccccc;
    position: relative;
    z-index: 10; /* Ensures it stays above the overlay */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Top Bar Styling --- */
.top-bar span {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.top-bar i {
    color: #ffc107; /* Gold color for the icons */
    margin-right: 5px;
}

/* --- Footer Icon Styling --- */

/* Ensures footer icons match the header's gold color */
.footer-contact i {
    color: #ffc107 !important; /* The same gold color used in the top bar */
    margin-right: 8px;
    font-size: 1rem; /* Slightly larger for better visibility */
}

/* Optional: Slight hover effect for the icons */
.footer-contact span:hover i {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

/* --- Hero Button Styling --- */

.btn-outline-gold {
    color: #ffc107 !important;
    border: 2px solid #ffc107 !important;
    background-color: transparent;
    transition: all 0.3s ease-in-out;
    border-radius: 0; /* Square edges for a more construction/architectural feel */
    letter-spacing: 2px;
}

.btn-outline-gold:hover {
    background-color: #ffc107 !important;
    color: #000000 !important;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
}

/* Optional: Add some spacing to the letters in the hero title */
.hero-content h2 {
    letter-spacing: 4px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

/* Enable smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Offset for the scroll to account for the top bar height */
#projects {
    scroll-margin-top: 50px; 
}

/* --- Compact Header for Single Posts --- */

/* If it's a single post, remove background image and fixed height */
.header-compact {
    background-image: none !important;
    min-height: auto !important;
    background-color: #1a1a1a; /* Clean dark background instead of the image */
}

/* Ensure no overlay spacing issues on compact header */
.header-compact .header-overlay {
    display: none;
}