/*
Theme Name: Viana Construction V2
Description: Tema WordPress profissional para Viana Designer Construction - Empresa de construção e reforma na Califórnia. Design responsivo e campos personalizados editáveis.
Version: 1.0.4
Author: Mike Lins - Arkaleads
Text Domain: viana-construction
*/

/* --- Global Styles & Resets --- */
:root {
    --primary-color: #0d2c4f; /* Dark Blue */
    --secondary-color: #d4a017; /* Gold/Yellow Accent */
    --dark-gray: #333333;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --star-color: #f39c12; /* Star yellow */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
section {
    padding: 60px 0;
}
h1, h2, h3, h4 {
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 20px;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p {
    margin-bottom: 15px;
}
a {
    text-decoration: none;
    color: var(--secondary-color);
}
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    background-color: var(--secondary-color);
    color: var(--white);
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background-color: #b8860b; /* Darker Gold */
}

/* --- Header & Navigation --- */
.main-header {
    background-color: transparent;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}
.main-header.scrolled {
    background-color: var(--white);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    max-height: 150px;
}
.main-nav ul {
    list-style: none;
    display: flex;
}
.main-nav ul li {
    margin-left: 25px;
}
.main-nav ul li a {
    color: var(--primary-color);
    font-weight: bold;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}
.main-nav ul li a:hover {
    border-color: var(--secondary-color);
}

/* --- Mobile Menu Toggle Icon --- */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- Hero Section --- */
#home {
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    position: relative;
}
#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 44, 79, 0.7);
    z-index: 1;
}
#home .container {
    position: relative;
    z-index: 2;
}
#home h1 {
    color: var(--white);
    font-size: 3.5rem;
}
#home p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 20px auto 30px;
}

/* --- Trust Bar --- */
#trust-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
    text-align: center;
}
#trust-bar .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}
#trust-bar span {
    font-weight: bold;
    margin: 5px 15px;
    font-size: 0.9rem;
}

/* --- About Section --- */
#about .container {
    display: flex;
    align-items: center;
    gap: 40px;
}
#about .about-content { flex: 1; }
#about .about-image { flex: 1; }
#about .about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
#about .license {
    font-weight: bold;
    color: var(--primary-color);
    background-color: var(--light-gray);
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 15px;
}

/* --- Services Section --- */
#services {
    background-color: var(--light-gray);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.service-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.service-card-content {
    padding: 25px;
}

/* --- Gallery Section (Carousel) --- */
.gallery-swiper {
    padding: 40px 0 60px 0;
    margin-top: 40px;
}
.gallery-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}
.gallery-swiper .swiper-slide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.gallery-swiper .swiper-slide:hover img {
    transform: scale(1.05);
}
.project-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(13, 44, 79, 0.8) 0%, rgba(13, 44, 79, 0) 100%);
    color: var(--white);
    padding: 30px 15px 15px;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.gallery-swiper .swiper-slide:hover .project-title-overlay {
    opacity: 1;
    transform: translateY(0);
}
.project-title-overlay span {
    font-weight: bold;
    font-size: 1rem;
}
.gallery-button-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* --- Testimonials Section --- */
#testimonials {
    background-color: var(--light-gray);
    position: relative;
}
.testimonial-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
}
.testimonial-rating {
    color: var(--star-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.testimonial-author {
    font-weight: bold;
    margin-top: 15px;
    color: var(--primary-color);
}

/* Swiper Carousel Styles */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    transition: color 0.3s ease;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: var(--secondary-color);
}
.swiper-pagination-bullet-active {
    background: var(--secondary-color);
}

/* --- Location Section --- */
.location-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}
.map-container, .service-area-info {
    flex: 1;
}
.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 8px;
}
.service-area-info h3 {
    color: var(--secondary-color);
}

/* --- Contact Section --- */
#contact {
    background-color: var(--light-gray);
}
.contact-wrapper {
    display: flex;
    margin-top: 40px;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.contact-info {
    flex: 1;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-info h3 {
    color: var(--white);
    margin-bottom: 25px;
}
.contact-info p {
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--light-gray);
}
.contact-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.contact-info .info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    width: 25px;
}
.contact-info .info-item a {
    color: var(--white);
    transition: color 0.3s ease;
}
.contact-info .info-item a:hover {
    color: var(--secondary-color);
}
.contact-form {
    flex: 1.5;
    padding: 40px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--dark-gray);
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* --- Floating Phone Button --- */
#floating-phone-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--secondary-color);
    color: var(--white);
    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);
    z-index: 1001;
    transition: transform 0.3s ease;
}
#floating-phone-btn:hover {
    transform: scale(1.1);
}
#floating-phone-btn svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--primary-color);
    color: var(--light-gray);
    padding: 60px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.footer-column h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}
.footer-column p {
    font-size: 0.95rem;
    line-height: 1.8;
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.footer-column ul li i {
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 1.1rem;
}
.footer-column ul li a,
.footer-column ul li span {
    color: var(--light-gray);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.footer-column ul li a:hover {
    color: var(--secondary-color);
}
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}
.social-icons a {
    color: var(--white);
    font-size: 1.8rem;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    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;
    color: rgba(255,255,255,0.7);
}

/* --- WordPress Core Styles --- */
.alignleft { float: left; margin-right: 1rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { text-align: center; font-style: italic; }

/* --- Media Queries --- */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    #about .container, .location-wrapper, .contact-wrapper {
        flex-direction: column;
        text-align: center;
    }
    #about .about-content, #about .about-image,
    .map-container, .service-area-info,
    .contact-info, .contact-form {
        flex: none;
        width: 100%;
    }
    .contact-info {
        padding: 30px;
        text-align: left;
    }
    .contact-form {
        padding: 30px;
    }
    .main-nav {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100%;
        background-color: var(--primary-color);
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: right 0.3s ease-in-out;
        z-index: 999;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .main-nav.active {
        right: 0;
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    .main-nav ul li {
        margin: 0 0 20px 0;
        width: 100%;
    }
    .main-nav ul li a {
        color: var(--white);
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .main-nav ul li:last-child a {
        border-bottom: none;
    }
    .main-nav ul li a:hover {
        border-color: var(--secondary-color);
        color: var(--secondary-color);
    }
    .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2rem;
        color: var(--white);
        cursor: pointer;
    }
    body.no-scroll {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    section { padding: 40px 0; }
    .service-card-content { padding: 20px; }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column ul {
        align-items: center;
        padding-left: 0;
    }
    .footer-column ul li {
        justify-content: center;
    }
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #home h1 { font-size: 2rem; }
    #home p { font-size: 1rem; }
    .btn { padding: 10px 20px; font-size: 0.9rem; }
    #trust-bar span { font-size: 0.8rem; margin: 5px 10px; }
    .main-header .container { padding: 0 15px; }
    .logo img { max-height: 150px; }
    #floating-phone-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    #floating-phone-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}