/* 
* EspinoArq - Architecture & Construction Website
* Main Stylesheet
*/

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #c0a080;
    --light-color: #f5f5f5;
    --dark-color: #333;
    --gray-color: #f9f9f9;
    --text-color: #555;
    --border-color: #eaeaea;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.separator {
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

.btn-primary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
}

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

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--secondary-color);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
}

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

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, var(--secondary-color), #d4b795);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    transition: var(--transition);
}

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

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
}

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

.logo img {
    max-height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    color: white;
}

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

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

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

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), var(--primary-color);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 100px 0;
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    position: relative;
}

.placeholder-img-about {
    width: 100%;
    height: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 5px solid var(--secondary-color);
    top: 20px;
    left: 20px;
    z-index: -1;
}

.about-image img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-stats {
    display: flex;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat {
    flex: 1;
    min-width: 120px;
    margin-right: 20px;
    margin-bottom: 20px;
}

.stat .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
}

.stat .label {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

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

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

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: 100px 0;
    background-color: var(--light-color);
}

.project-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    padding: 8px 20px;
    margin: 0 5px 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 30px;
    font-weight: 500;
    color: var(--text-color);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.project-img {
    height: 250px;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

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

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

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.project-info p {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.project-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    display: inline-block;
}

.project-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.project-link:hover i {
    transform: translateX(5px);
}

.projects-cta {
    text-align: center;
    margin-top: 50px;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 100px 0;
    background-color: white;
}

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

.testimonial-card {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 20px;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.placeholder-img-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.author-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.prev-btn,
.next-btn {
    background-color: var(--secondary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.prev-btn:hover,
.next-btn:hover {
    background-color: var(--primary-color);
}

/* ===== PROCESS SECTION ===== */
.process {
    padding: 100px 0;
    background-color: var(--light-color);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 50px;
}

.process-step {
    flex-basis: calc(20% - 20px);
    text-align: center;
    position: relative;
}

.process-step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 40px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    z-index: 0;
}

.step-number {
    width: 80px;
    height: 80px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.9rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 100px 0;
    background-color: white;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-details {
    margin: 30px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-right: 15px;
    width: 20px;
}

.social-links {
    display: flex;
    margin-top: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: white;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo,
.footer-links,
.footer-services,
.footer-newsletter {
    flex-basis: 22%;
    margin-bottom: 30px;
}

.footer-logo h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

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

.footer-logo p {
    font-size: 0.9rem;
}

.footer-links h3,
.footer-services h3,
.footer-newsletter h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after,
.footer-services h3:after,
.footer-newsletter h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-services ul li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-newsletter p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.newsletter-form button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: white;
    color: var(--secondary-color);
}

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

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .process-step {
        flex-basis: calc(33.333% - 30px);
        margin-bottom: 40px;
    }
    
    .process-step:nth-child(3):after {
        display: none;
    }
}

@media (max-width: 992px) {
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 40px;
    }
    
    .footer-logo,
    .footer-links,
    .footer-services,
    .footer-newsletter {
        flex-basis: 45%;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .process-step {
        flex-basis: calc(50% - 20px);
    }
    
    .process-step:nth-child(2):after {
        display: none;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .process-step {
        flex-basis: 100%;
    }
    
    .process-step:after {
        display: none;
    }
    
    .footer-logo,
    .footer-links,
    .footer-services,
    .footer-newsletter {
        flex-basis: 100%;
    }
}

/* Placeholder styles for development */
.img-placeholder {
    background-color: #e0e0e0;
    min-height: 200px;
}
