/* JDH CONSTRUCTION INC STYLE */

:root {
    --florida-blue: #004B7C; 
    --tropical-green: #2D5A27; 
    --warm-white: #FFFDF9;
    --accent-gold: #F7B500;
}

body { 
    font-family: 'Helvetica Neue', Arial, sans-serif; 
    margin: 0; 
    background-color: var(--warm-white); 
    color: #333; 
    overflow-x: hidden; /* Prevents side-scrolling on mobile */
}

.banner-container { width: 100%; text-align: center; padding: 0; background: #fff; }
.banner-img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

.cta-bar { background: var(--florida-blue); color: white; padding: 15px; text-align: center; font-size: 1.2rem; }
.cta-bar a { color: white; text-decoration: none; font-weight: bold; }

.container { max-width: 1000px; margin: auto; padding: 40px 20px; }

h2 { color: var(--florida-blue); border-left: 5px solid var(--accent-gold); padding-left: 15px; margin-top: 40px; }
h3 { color: var(--florida-blue); margin-bottom: 10px; }

/* Services Grid Layout */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    margin-top: 20px;
}
.service-item { background: rgba(0, 75, 124, 0.05); padding: 20px; border-radius: 8px; border-bottom: 3px solid var(--accent-gold); }

/* Project Grid */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 50px; }
.project-card { background: white; padding: 15px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); text-align: center; }
.project-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 5px; transition: transform 0.3s ease; }
.project-card img:hover { transform: scale(1.02); } /* Subtle lift on hover */

/* Form Card */
.form-card { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
input, textarea { width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; font-size: 1rem; }
button { background: var(--florida-blue); color: white; border: none; padding: 15px 30px; border-radius: 4px; cursor: pointer; font-size: 1.1rem; font-weight: bold; width: 100%; }
button:hover { background: #00365a; }

footer { background: #111; color: white; padding: 40px 20px; text-align: center; line-height: 1.8; }

/* The Surfin' Bum Glow Animation */
@keyframes beachGlow {
    0% { color: #FF8C00; text-shadow: 0 0 5px #FF8C00; }
    50% { color: #FFD700; text-shadow: 0 0 15px #FFD700; }
    100% { color: #FF8C00; text-shadow: 0 0 5px #FF8C00; }
}

.surfin-bum-link {
    font-weight: bold;
    text-decoration: none;
    animation: beachGlow 3s infinite;
    font-size: 1.1rem;
    letter-spacing: 1px;
    display: inline-block; /* Crucial for animation transform and padding */
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border: 3px solid var(--accent-gold);
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(247, 181, 0, 0.5);
}

.lightbox:target {
    display: flex;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    text-decoration: none;
}

input[type="file"] {
    border: none;
    padding: 10px 0;
    background: transparent;
}

/* Placeholder Text Styling */
.project-card p small {
    color: #888;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ensure the banner image is also not a stock construction photo of a different building */
/* If 'coolheader.jpg' is a stock photo, consider replacing it with a logo or a generic texture for now. */

/* Gallery CTA Section */
.gallery-cta {
    background: linear-gradient(rgba(0, 75, 124, 0.9), rgba(0, 75, 124, 0.9)), url('../images/coolheader.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
    text-align: center;
    border-radius: 12px;
    margin: 40px 0;
    color: white;
}

.gallery-cta h2 {
    color: white;
    border: none;
    padding: 0;
    font-size: 2rem;
}

.badass-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--accent-gold);
    color: var(--florida-blue) !important;
    padding: 20px 40px;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 20px;
}

.badass-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(247, 181, 0, 0.4);
    background: white;
}

/* Back to Top Button Styling */
/* Fixed Back to Top Button Styling */
#backToTop {
    display: none; 
    position: fixed; 
    bottom: 20px; 
    right: 30px; 
    z-index: 99; 
    border: none; 
    outline: none; 
    background-color: var(--accent-gold); 
    color: var(--florida-blue); 
    cursor: pointer; 
    
    /* ADD THESE FIXED DIMENSIONS */
    width: 60px;
    height: 60px;
    
    padding: 0; /* Remove padding to keep the icon centered */
    border-radius: 50%; 
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#backToTop:hover {
    background-color: var(--florida-blue);
    color: white;
    transform: scale(1.1);
}