/* ==========================================================================
   CARPENTER SERVICES PREMIUM THEME
   Color Palette: Warm Browns, Rich Beige, Cream Whites, Charcoal Dark Accent
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary: #8C6239;      /* Warm Wood Brown */
    --primary-dark: #5C3A21; /* Deep Walnut */
    --primary-light: #C69C6D;/* Oak/Pine Beige */
    --secondary: #F7F5F0;    /* Cream Linen */
    --dark: #1E1E1E;         /* Dark Charcoal */
    --light: #FFFFFF;
    --gray: #6E6E6E;
    --border-color: #E2DDD5;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--secondary);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.25;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Helper Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 3rem; }

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    color: var(--light);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--primary-dark);
    color: var(--light);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(230,225,217,0.9), rgba(247,245,240,0.95)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%238C6239" opacity="0.03" width="100" height="100"/><path d="M0 0h100v1h-100zM0 10h100v1h-100z" fill="%238C6239" opacity="0.04"/></svg>');
    padding: 100px 0 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--light);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--light);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--light);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* Cards & Showcase Components */
.card {
    background: var(--light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-light);
    position: relative;
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    margin-bottom: 10px;
}

.card-footer {
    padding: 0 25px 25px 25px;
    display: flex;
    gap: 10px;
}

/* Features/Why Choose Us */
.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(140, 98, 57, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Process Section */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.process-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 20px auto;
    font-size: 1.2rem;
    border: 4px solid var(--secondary);
    box-shadow: var(--shadow-sm);
}

/* Testimonials */
.testimonial-card {
    padding: 30px;
    background: var(--light);
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
}

.stars {
    color: #F39C12;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.author-info {
    margin-top: 20px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
}

.author-location {
    font-weight: 400;
    color: var(--gray);
    font-size: 0.9rem;
}

/* FAQs */
.faq-item {
    background: var(--light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light);
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(140, 98, 57, 0.02);
}

.faq-answer {
    padding: 0 20px 20px 20px;
    display: none;
    color: var(--gray);
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
    display: block;
    border-top-color: var(--border-color);
}

.faq-toggle::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
}

.faq-item.active .faq-toggle::after {
    content: '−';
}

/* Lead Gen Form & Contact Us */
.form-container {
    background: var(--light);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--dark);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(140, 98, 57, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
}

.form-checkbox input {
    margin-top: 4px;
}

.form-notice {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 12px;
    line-height: 1.4;
}

/* Gallery Section & Filter */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    background: var(--light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: var(--light);
    border-color: var(--primary);
}

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

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
    cursor: pointer;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(92, 58, 33, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    color: var(--light);
    padding: 20px;
    text-align: center;
}

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

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

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--light);
    font-size: 2.5rem;
    cursor: pointer;
    font-weight: bold;
}

/* Footer Section */
footer {
    background: var(--dark);
    color: #BDBDBD;
    padding: 60px 0 30px 0;
    border-top: 5px solid var(--primary);
}

footer h3, footer h4 {
    color: var(--light);
    margin-bottom: 20px;
}

footer a {
    color: #BDBDBD;
}

footer a:hover {
    color: var(--primary-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 45px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

/* Floating Actions (Mobile/General Sticky UI) */
.floating-ctas {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: var(--light);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-whatsapp {
    background: #25D366;
}

.floating-call {
    background: var(--primary);
}

.alert-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 25px;
    font-weight: 500;
}
.alert-success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}
.alert-error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    background: #F0EDE6;
    font-size: 0.9rem;
}
.breadcrumbs ul {
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: var(--gray);
}
.breadcrumbs li a {
    color: var(--primary);
}
.breadcrumbs li span {
    color: var(--gray);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .navbar {
        position: relative;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--light);
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 15px;
        align-items: stretch;
        text-align: center;
    }
    
    .nav-menu.open {
        display: flex;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}
