/* --- GLOBAL VARIABLES --- */
:root {
    --primary-color: #003366;    /* Deep Blue - Trustworthy */
    --primary-hover: #002244;
    --accent-color: #D4AF37;     /* Gold/Bronze - Quality */
    --accent-hover: #b5952f;
    --text-dark: #333;
    --text-light: #f4f4f4;
    --bg-light: #f9f9f9;
    --border-color: #ddd;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    line-height: 1.6; 
    color: var(--text-dark); 
    background-color: var(--bg-light); 
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

h1, h2, h3 { color: var(--primary-color); margin-bottom: 0.5em; }
h2.title, h1.title { text-align: center; margin: 40px 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- COMPONENTS --- */
.btn {
    display: inline-block;
    background: var(--accent-color);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}
.btn:hover { background: var(--accent-hover); }

/* --- HEADER & NAVIGATION --- */
header { 
    background: #fff; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 20px; 
}

.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); }

.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links li a { font-weight: 500; }
.nav-links li a:hover { color: var(--accent-color); }

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- PROJECT BLOCKS & GALLERIES --- */
.project-block, .project-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 60px;
    border-top: 5px solid var(--accent-color);
}

.project-header { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.project-header h2 { margin: 0; color: var(--primary-color); }
.project-header p { color: #666; margin-top: 5px; font-style: italic; }
        
.project-text { max-width: 800px; margin-bottom: 20px; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-grid-columns { grid-template-columns: 1fr; }
.gallery-grid-columns img { height: 300px; }

.gallery-item { cursor: pointer; overflow: hidden; border-radius: 4px; border: 1px solid var(--border-color); }
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}
.gallery-item:hover img { transform: scale(1.05); }

/* --- LIGHTBOX --- */
.lightbox {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9); justify-content: center; align-items: center;
}
.lightbox img { max-width: 90%; max-height: 90%; border: 2px solid #fff; }
.close-btn { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; }

/* --- FOOTER --- */
footer { background: #222; color: #aaa; padding: 40px 0; font-size: 0.9rem; text-align: center; }
.footer-content { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-between; 
    gap: 30px; 
    text-align: left; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px;
}
.license-info { border-top: 1px solid #444; margin-top: 20px; padding-top: 20px; }

.contact-flex-container {
    display: flex;
    flex-direction: row; /* Forces horizontal layout on desktop */
    align-items: center;
    justify-content: flex-start; 
    gap: 50px; /* Original spacing from your contact page */
    width: 100%;
}

.header-text {
    flex: 1; /* Allows text to occupy available space, pushing the QR code right */
}


/* --- HERO SECTION --- */
.hero {
    /* Corrected to the original teal-green color code */
    background: linear-gradient(rgba(0, 101, 102, 0.8), rgba(0, 101, 102, 0.8)), url('img/ShorelineDeck/ShorelineDeckComplete2.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}
.hero h2 { color: #fff !important; font-size: 1.5rem; }
.hero p { color: #fff; font-size: 1.1rem; }

.trust-badge { 
    background: rgba(255,255,255,0.1); 
    display: inline-block; 
    padding: 5px 15px; 
    border: 1px solid #fff; 
    margin-top: 10px; 
    font-size: 0.9rem; 
    color: #fff;
}

/* --- INFO BAR & CONTACT COMBO --- */
.info-bar { background: var(--bg-light); padding: 40px 0; text-align: center; border-bottom: 1px solid var(--border-color); }
.info-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.contact-combo { display: flex; align-items: center; justify-content: center; gap: 20px; }

/* Specific styles for gallery phase labeling */
.phase-section { margin-bottom: 30px; }
.phase-label { 
	display: inline-block; 
	background: #ddd; 
	padding: 5px 10px; 
	border-radius: 4px; 
	font-weight: bold; 
	margin-bottom: 10px;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.label-before { background: #e0e0e0; color: #555; }
.label-after { background: var(--primary-color); color: #fff; }

/* --- CONTACT BUTTON (vCard) --- */
.vcard-btn {
    display: none; /* Hidden by default on desktop */
    background: var(--primary-color);
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}
.vcard-btn:hover { background: var(--primary-hover); }

@media (max-width: 768px) {
	.menu-toggle { display: block; }
    .nav-links { 
        display: none; flex-direction: column; width: 100%; background: #fff; 
        position: absolute; top: 60px; left: 0; padding: 20px; box-shadow: 0 5px 5px rgba(0,0,0,0.1); 
    }	
    .nav-links.active { display: flex; }
    .footer-content { flex-direction: column; text-align: center; }
    .info-grid { flex-direction: column; }
    .contact-combo { flex-direction: column; text-align: center; gap:20px; }
    .qr-block { display: none !important; }
    .vcard-btn {
        display: inline-block;
        width: 100%;
        margin-top: 15px;
    }
}

