/* 
* Luciano Master Finish Carpentry - Custom Styles
* Mobile-first design with responsive breakpoints
*/

/* Base Styles */
:root {
    --primary-color: #8B4513;
    --secondary-color: #A0522D;
    --accent-color: #D4AF37;
    --dark-color: #333333;
    --light-color: #FFFFFF;
    --gray-color: #4A4A4A;
    --light-gray: #E5E5E5;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.section-padding {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto;
}

.section-intro {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Header/Navigation */
header {
    background-color: #000000;
    box-shadow: var(--box-shadow);
    padding: 10px 0;
    z-index: 1000;
    position: fixed;
    width: 100%;
    top: 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--light-color);
    font-size: 1.2rem;
}

.navbar-brand:hover {
    color: var(--accent-color);
}

.navbar-toggler {
    border: none;
    padding: 0;
    color: var(--light-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: none;
}

.nav-link {
    color: var(--light-color);
    font-weight: 500;
    padding: 8px 15px;
    margin: 0 5px;
    position: relative;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.nav-link.active {
    color: var(--accent-color) !important;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 30px);
}

/* Adjust mobile menu background */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #000000;
        padding: 1rem;
        margin: 0 -1rem;
    }

    .nav-link::after {
        bottom: -2px;
    }
}

/* Adjust hero section to account for fixed header */
.hero-section {
    padding-top: 76px;
}

.carousel-item {
    height: 100vh;
}

.carousel-item img {
    height: 100vh;
    width: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    color: var(--light-color);
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 2rem;
    color: var(--light-color);
    margin-bottom: 1rem;
}

.hero-content p {
    margin-bottom: 1.5rem;
}

.hero-content .btn {
    margin-top: 10px;
}

/* About Section */
.about-section {
    background-color: var(--light-gray);
}

/* Services Section */
.services-grid {
    margin-top: 30px;
}

.service-item {
    margin-bottom: 30px;
}

.service-card {
    background-color: var(--light-color);
    border-radius: 5px;
    padding: 25px 20px;
    height: 100%;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Portfolio Section */
.portfolio-section {
    background-color: var(--light-color);
}

.portfolio-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 25px;
    border: none;
}

.portfolio-tab-link {
    color: var(--gray-color);
    border: none;
    border-radius: 0;
    position: relative;
    margin: 0 5px 10px;
    padding: 8px 15px;
    transition: var(--transition);
    background: none;
    cursor: pointer;
}

.portfolio-tab-link:hover {
    color: var(--primary-color);
    background: none;
}

.portfolio-tab-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
    background: none;
}

.portfolio-tab-link.active::after {
    content: '';
    display: block;
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: -2px;
    height: 2px;
    background-color: var(--primary-color);
    width: auto;
}

.category-description {
    text-align: center;
    margin-bottom: 25px;
}

.gallery-grid {
    margin-bottom: 30px;
}

.gallery-item {
    margin-bottom: 20px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

/* Why Choose Us */
.why-choose-section {
    background-color: var(--light-gray);
}

.why-choose-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.why-choose-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.why-choose-list li i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.2rem;
    margin-top: 3px;
}

/* Contact Section */
.contact-section {
    background-color: var(--dark-color);
    color: var(--light-color);
}

.contact-section .section-title,
.contact-section .section-intro {
    color: var(--light-color);
}

.contact-section .section-title:after {
    background-color: var(--accent-color);
}

.contact-info {
    margin-top: 30px;
}

.contact-item-parent {
    margin-bottom: 20px;
}

.contact-item {
    margin-bottom: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    height: 100%;
}

.contact-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.contact-item p {
    margin: 0;
}

.contact-item a {
    color: var(--light-color);
}

.contact-item a:hover {
    color: var(--accent-color);
}

/* Footer */
.footer-section {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 50px 0 20px;
}

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

.tagline {
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-color);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
}

.social-link:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Media Queries */
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .hero-content {
        text-align: left;
        margin: 0;
    }
    
    .carousel-overlay {
        text-align: left;
    }
    
    .carousel-item img {
        height: 100vh;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 36px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Gallery Modal Styles */
.modal-content {
    background-color: transparent;
    border: none;
}

.modal-body {
    padding: 0;
}

.gallery-modal-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.modal-gallery-img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--light-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

.btn-close {
    background-color: var(--light-color);
    opacity: 0.8;
    z-index: 1;
}

.btn-close:hover {
    opacity: 1;
}

/* Add cursor pointer to gallery images */
.gallery-img {
    cursor: pointer;
}

/* Modal Styles */
.modal-backdrop.show {
    opacity: 0.9 !important;
    background-color: #000;
}

.modal-content {
    background-color: transparent;
    border: none;
}

/* Coming Soon Modal */
#comingSoonModal .modal-content {
    background-color: var(--light-color);
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#comingSoonModal .modal-header {
    padding: 1rem 1rem 0;
}

#comingSoonModal .btn-close {
    color: var(--dark-color);
}

#comingSoonModal .coming-soon-icon {
    font-size: 3rem;
    color: var(--primary-color);
    display: block;
    margin: 0 auto;
    animation: hammer-swing 2s infinite;
}

#comingSoonModal .modal-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2rem;
}

#comingSoonModal .coming-soon-text {
    color: var(--gray-color);
    font-size: 1.1rem;
    max-width: 80%;
    margin: 0 auto;
}

@keyframes hammer-swing {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-20deg);
    }
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.contact-form .form-control,
.contact-form .form-select {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--dark-color);
    padding: 12px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    background-color: var(--light-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.contact-form .form-control::placeholder {
    color: rgba(74, 74, 74, 0.7);
}

.contact-form .form-label {
    color: var(--light-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.description-info {
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    color: var(--accent-color) !important;
}

.description-info:hover {
    color: var(--primary-color) !important;
}

.project-details-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.project-details-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.project-details-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.5em;
    line-height: 1;
}

#descriptionInfoModal .modal-content {
    background-color: var(--light-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: none;
}

#descriptionInfoModal .modal-header {
    padding: 1.5rem 1.5rem 0.5rem;
    align-items: center;
}

#descriptionInfoModal .modal-body {
    padding: 1.5rem;
}

#descriptionInfoModal .modal-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.5rem;
}

#descriptionInfoModal .btn-close {
    opacity: 1;
    transition: var(--transition);
}

#descriptionInfoModal .btn-close:hover {
    opacity: 0.7;
}

/* Mobile-first adjustments */
@media (max-width: 576px) {
    .contact-form {
        padding: 20px;
    }
    
    .contact-form .btn {
        width: 100%;
    }
    
    #descriptionInfoModal .modal-dialog {
        margin: 1rem;
    }
    
    #descriptionInfoModal .modal-body {
        padding: 1rem;
    }
    
    #descriptionInfoModal .modal-title {
        font-size: 1.3rem;
    }
    
    .project-details-list li {
        font-size: 1rem;
    }
}

.contact-form .form-text {
    font-size: 0.85rem;
    opacity: 0.8;
}

.attachments-info {
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    color: var(--accent-color) !important;
}

.attachments-info:hover {
    color: var(--primary-color) !important;
}

#attachmentsInfoModal .modal-content {
    background-color: var(--light-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: none;
}

#attachmentsInfoModal .modal-header {
    padding: 1.5rem 1.5rem 0.5rem;
    align-items: center;
}

#attachmentsInfoModal .modal-body {
    padding: 1.5rem;
}

#attachmentsInfoModal .modal-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.5rem;
}

.attachments-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.attachments-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.attachments-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.5em;
    line-height: 1;
}

/* Custom file input styling */
.contact-form input[type="file"] {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    cursor: pointer;
    padding: 0.75rem 0.375rem;
    margin-bottom: 0.5rem;
}

.contact-form input[type="file"]::-webkit-file-upload-button {
    background-color: var(--accent-color);
    border: none;
    color: var(--dark-color);
    padding: 8px 16px;
    margin-right: 16px;
    margin-left: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form input[type="file"]::-webkit-file-upload-button:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* For Firefox */
.contact-form input[type="file"]::file-selector-button {
    background-color: var(--accent-color);
    border: none;
    color: var(--dark-color);
    padding: 8px 16px;
    margin-right: 16px;
    margin-left: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form input[type="file"]::file-selector-button:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* Email Success Modal */
#emailSuccessModal .modal-content {
    background-color: var(--light-color);
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#emailSuccessModal .modal-header {
    padding: 1rem 1rem 0;
}

#emailSuccessModal .btn-close {
    color: var(--dark-color);
}

#emailSuccessModal .success-icon {
    font-size: 3.5rem;
    color: #28a745;
    display: block;
    margin: 0 auto;
    animation: scaleIn 0.5s ease-in-out;
}

#emailSuccessModal .modal-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2rem;
}

#emailSuccessModal .success-text {
    color: var(--gray-color);
    font-size: 1.1rem;
    max-width: 80%;
    margin: 0 auto;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
} 