/* Custom CSS for Latin Brick LLC Website */

/* Root Variables */
:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #DAA520;
    --dark-color: #2C1810;
    --light-color: #F5F5DC;
    --text-dark: #333333;
    --text-light: #666666;
}

/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Custom Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

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

/* Navigation Styles */
.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

/* Navbar Logo Styles */
.navbar-brand img {
    border-radius: 4px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Hero Section */
.hero-section {
    /* Default gradient background when no admin image is set */
    background: linear-gradient(rgba(139, 69, 19, 0.8), rgba(210, 105, 30, 0.6)), 
                linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    
    /* Base color for when image doesn't cover full area */
    background-color: var(--dark-color);
    
    /* Background properties for admin-uploaded images */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
}

.hero-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding-top: 120px;
}

/* Feature Boxes */
.feature-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

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

.service-icon i {
    font-size: 3.5rem;
    color: var(--primary-color);
}

/* Value Cards */
.value-card {
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

/* Process Steps */
.step-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    font-weight: bold;
}

.process-step {
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

/* Contact Form */
.contact-form {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 5px;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
}

/* Image Placeholders */
.services-image-placeholder,
.about-image-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 60px 20px;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Footer Styles */
footer {
    background: var(--dark-color) !important;
}

footer a:hover {
    color: var(--accent-color) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Background Patterns */
.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        text-align: center;
    }
    
    .hero-logo {
        max-width: 200px;
        margin-top: 30px;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .hero-buttons .btn {
        margin: 5px;
        display: block;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Scroll Animations */
.scroll-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animation.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Item Hover Effects */
.contact-item {
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 8px;
}

.contact-item:hover {
    background: rgba(139, 69, 19, 0.05);
    transform: translateX(10px);
}

/* Service Category Styling */
.service-category {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left: 4px solid var(--primary-color);
}

/* Featured Projects */
.featured-project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.no-image-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
}

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

.featured-project-card:hover .project-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    padding: 20px;
}

/* Testimonials */
.testimonial-card {
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.stars i {
    font-size: 1.2rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}