/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
.header {
    background: url('../images/wood-background.jpg') center center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #5a5a5a;
    padding: 40px 0 60px 0;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.lbp-corner {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.lbp-corner .lbp-logo {
    height: 80px;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main-logo-container {
    margin-bottom: 30px;
    position: relative;
    width: 319px;
    height: 240px;
    margin-left: auto;
    margin-right: auto;
}

.main-logo {
    width: 319px;
    height: 240px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    background: transparent;
    transition: opacity 0.5s ease;
}

.main-logo-wood {
    width: 319px;
    height: 240px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.services-text {
    font-size: 1.4em;
    font-weight: 500;
    color: #4a4a4a;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.3);
}

.services-text p {
    margin: 8px 0;
    letter-spacing: 1px;
}

/* Remove old logo styles that are no longer needed */
.logo-images {
    display: none;
}

.logo h1 {
    display: none;
}

.tagline {
    display: none;
}

.header-info {
    display: none;
}

/* Navigation Styles */
.navigation {
    background-color: #5A5A5A;
    border-bottom: 3px solid #C53030;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 20px 0;
    font-weight: 500;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover {
    color: #C53030;
    border-bottom-color: #C53030;
}

/* Section Styles */
section {
    padding: 60px 0;
}

section h2 {
    font-size: 2.5em;
    color: #4A4A4A;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

section h3 {
    font-size: 1.5em;
    color: #5A5A5A;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
}

/* About Section */
.about-section {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.about-text p {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
}

.dave-image-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.dave-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: opacity 0.5s ease;
}

.dave-image-color {
    /* Color photo is base layer - always visible */
    opacity: 1;
}

#daveBW {
    /* B&W photo is overlay - positioned on top */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1; /* Initially visible */
}

/* Services Section */
.services-section {
    background-color: #ecf0f1;
}

.services-intro {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 40px;
    color: #555;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-item h4 {
    font-size: 1.4em;
    color: #C53030;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-item p {
    color: #666;
    line-height: 1.6;
}

/* Work Section */
.work-section {
    background-color: white;
}

.work-projects {
    margin-top: 40px;
}

.project {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.project:nth-child(even) {
    grid-template-columns: 2fr 1fr;
}

.project:nth-child(even) .project-image {
    order: 2;
}

.project:nth-child(even) .project-content {
    order: 1;
}

.project-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.project-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-image:hover img {
    transform: scale(1.05);
}

.view-photos-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(230, 126, 34, 0.9);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.project-image:hover .view-photos-btn {
    opacity: 1;
}

.view-photos-btn:hover {
    background: rgba(230, 126, 34, 1);
    transform: translate(-50%, -50%) scale(1.05);
}

.project-content h3 {
    font-size: 2em;
    color: #4A4A4A;
    margin-bottom: 15px;
    text-align: left;
}

.project-content h4 {
    font-size: 1.3em;
    color: #C53030;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.project-content p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #555;
}

/* Gallery Section */
.gallery-section {
    background-color: #ecf0f1;
}

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

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
    }
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Testimonials Section */
.referrals-section {
    background-color: white;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    overflow: hidden;
}

.testimonials-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 300px;
}

.testimonial {
    display: none;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    border-left: 5px solid #C53030;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: left;
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial.active {
    display: block;
}

.testimonial blockquote {
    font-style: italic;
    line-height: 1.8;
    margin: 0;
}

.testimonial p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1em;
}

.testimonial cite {
    display: block;
    text-align: center;
    font-weight: 600;
    color: #C53030;
    font-style: normal;
    margin-top: 25px;
    font-size: 1.2em;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.slider-btn {
    background: #C53030;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: #A52A2A;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #C53030;
    transform: scale(1.2);
}

.dot:hover {
    background: #A52A2A;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Contact Section */
.contact-section {
    background-color: #ecf0f1;
}

.contact-info-centered {
    max-width: 1000px;
    margin: 40px auto 0;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-method {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
}

.contact-method h3 {
    color: #4A4A4A;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.contact-method p {
    margin-bottom: 10px;
    color: #666;
}

.contact-method a {
    color: #C53030;
    text-decoration: none;
    font-weight: 600;
}

.contact-method a:hover {
    text-decoration: underline;
}

.dave-profile {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.dave-profile h3 {
    color: #4A4A4A;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.dave-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.highlight {
    padding: 20px;
    border-left: 4px solid #C53030;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

.highlight h4 {
    color: #C53030;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.highlight p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #4A4A4A, #5A5A5A);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: white;
}

.footer p {
    font-size: 1.1em;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        min-height: 400px;
        padding: 30px 0 50px 0;
    }

    .lbp-corner .lbp-logo {
        height: 60px;
    }

    .main-logo {
        width: 240px;
        height: 180px;
    }

    .main-logo-wood {
        width: 240px;
        height: 180px;
    }

    .main-logo-container {
        width: 240px;
        height: 180px;
    }

    .services-text {
        font-size: 1.2em;
    }
    
    /* Mobile navigation - keep horizontal but smaller */
    .navigation {
        padding: 5px 0;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .nav-menu li {
        margin: 0 5px;
        flex: 0 0 auto;
    }
    
    .nav-menu a {
        padding: 8px 10px;
        font-size: 0.85em;
        font-weight: 500;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .project {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .project:nth-child(even) .project-image,
    .project:nth-child(even) .project-content {
        order: initial;
    }
    
    .testimonials-slider {
        max-width: 90%;
    }
    
    .testimonial {
        padding: 30px 20px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .dave-highlights {
        grid-template-columns: 1fr;
    }
    
    section h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        min-height: 350px;
        padding: 20px 0 40px 0;
    }

    .lbp-corner {
        top: 15px;
        left: 15px;
    }

    .lbp-corner .lbp-logo {
        height: 50px;
    }

    .main-logo {
        width: 190px;
        height: 143px;
    }

    .main-logo-wood {
        width: 190px;
        height: 143px;
    }

    .main-logo-container {
        width: 190px;
        height: 143px;
    }

    .services-text {
        font-size: 1.1em;
    }

    .main-logo-container {
        margin-bottom: 20px;
    }
    
    /* Extra small mobile navigation */
    .navigation {
        padding: 3px 0;
    }
    
    .nav-menu a {
        padding: 6px 8px;
        font-size: 0.75em;
    }
    
    section {
        padding: 40px 0;
    }
    
    .contact-method {
        padding: 25px;
    }
    
    .dave-profile {
        padding: 30px;
    }
}

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

/* Image placeholder styling for missing images */
img {
    background-color: #ddd;
    background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0),
                      linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    transition: transform 0.15s ease;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #C53030;
}

#lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 1.2em;
    background: rgba(0, 0, 0, 0.7);
    margin-top: 10px;
    border-radius: 5px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(230, 126, 34, 0.8);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    pointer-events: all;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(230, 126, 34, 1);
    transform: scale(1.1);
}

.lightbox-prev {
    margin-left: -60px;
}

.lightbox-next {
    margin-right: -60px;
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }
    
    .lightbox-close {
        top: -30px;
        font-size: 30px;
    }
    
    #lightbox-image {
        max-height: 70vh;
        touch-action: pan-x;
    }
    
    .lightbox-caption {
        font-size: 1em;
        padding: 10px;
    }
    
    /* Improved mobile gallery navigation */
    .lightbox-nav {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        display: flex;
        gap: 20px;
        pointer-events: all;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 15px 20px;
        font-size: 18px;
        border-radius: 25px;
        margin: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    /* Touch-friendly swipe area */
    .lightbox-content::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
        background: linear-gradient(90deg, 
            rgba(0,0,0,0.1) 0%, 
            transparent 20%, 
            transparent 80%, 
            rgba(0,0,0,0.1) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .lightbox-content.swiping::after {
        opacity: 1;
    }
}

/* Animation for elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-item,
.project,
.referral {
    animation: fadeInUp 0.6s ease-out;
} 