/*
===========================================
STERLING WOODWORKS COLOR PALETTE
===========================================
Based on business card grey tones:

Primary Colors:
- Dark Grey (Main):     #4a453f  // Headers, main text, navbar background
- Medium Grey:          #6b645d  // Subtitles, secondary text
- Light Grey:           #5a5550  // Body text, paragraphs
- Accent Grey:          #a19688  // Dividers, borders, accents

Background Colors:
- Main Background:      #f7f5f3  // Page background
- Section Background:   #ede9e4  // Alternate sections
- Card Background:      #fbf9f7  // Cards, content areas

Neutral:
- White:                #fff     // Text on dark backgrounds
- Black (transparent):  rgba(74, 69, 63, 0.x) // Overlays, shadows
===========================================
*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #4a453f;
    background-color: #f7f5f3;
    margin: 0;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Header and Navigation */
header {
    background-color: #4a453f;
    color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 45px;
}

.navbar {
    padding: 0.5rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tagline {
    font-size: 1rem;
    color: #a19688;
    font-style: italic;
    font-weight: 300;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #f7f5f3;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #a19688;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #a19688;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 900px;
    margin-top: 45px;
    background: linear-gradient(rgba(74, 69, 63, 0.7), rgba(74, 69, 63, 0.7)), url('images/woodwork.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}



.hero-logo-img {
    width: 100%;
    max-width: 650px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    animation: fadeInDown 1s ease-out;
    margin-bottom: 7rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
    margin-top: 100px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: #a19688;
    color: #fff;
    border: 2px solid #a19688;
}

.btn-primary:hover {
    background-color: transparent;
    color: #a19688;
    border-color: #a19688;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(161, 150, 136, 0.4);
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-dark {
    background-color: #ede9e4;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #4a453f;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6b645d;
    margin-top: 1rem;
}

.divider {
    width: 80px;
    height: 4px;
    background-color: #a19688;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5a5550;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: #fbf9f7;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(74, 69, 63, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    color: #a19688;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: #4a453f;
    margin-bottom: 1rem;
}

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

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 69, 63, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay p {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Flickr Gallery Integration */
.flickr-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e0e0e0;
}

.flickr-header {
    text-align: center;
    margin-bottom: 2rem;
}

.flickr-header h3 {
    font-size: 2rem;
    color: #6b645d;
    margin-bottom: 0.5rem;
}


.flickr-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 100%;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Limit to max 6 columns on large screens */
@media (min-width: 1200px) {
    .flickr-gallery {
        grid-template-columns: repeat(6, 1fr);
    }
}

.flickr-photo {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flickr-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.flickr-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.flickr-photo:hover img {
    transform: scale(1.05);
}

.flickr-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.gallery-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-secondary {
    background-color: transparent;
    color: #4a453f;
    border: 2px solid #4a453f;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #4a453f;
    color: #fff;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    color: #a19688;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1.2rem;
    color: #4a453f;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #6b645d;
    font-size: 1.1rem;
}

.contact-item a {
    color: #a19688;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #6b645d;
}

.contact-cta {
    background: linear-gradient(rgba(74, 69, 63, 0.85), rgba(74, 69, 63, 0.85)), url('images/woodwork.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 3rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.contact-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-cta p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #ecf0f1;
}

/* Footer */
footer {
    background-color: #4a453f;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }


    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .flickr-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .flickr-section {
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .flickr-header h3 {
        font-size: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

}
