/* 
Theme Name: AJ Carpentry (Nativo)
Theme URI: https://arkaleads.com
Author: Mike Lins (https://arkaleads.com)
Author URI: https://arkaleads.com
Description: Tema nativo WordPress para AJ Carpentry, seguindo a estrutura do HTML de referência, com foco em SEO e pixel-perfect.
Version: 1.1.1
Text Domain: arka
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* New Light Color Palette with Red-Orange Accent:
--light-bg-primary: #FFFFFF; (Main background)
--light-bg-secondary: #F8F8F8; (Sections and card backgrounds)
--light-bg-header-footer: #FFFFFF; (Header and footer background)
--light-text-dark: #333333; (General dark text for light background)
--light-text-medium: #666666; (Secondary text)
--light-text-heading: #1A1A1A; (Headings)

--accent-primary: #f94b3f; (New red-orange primary accent)
--accent-secondary: #d63f36; (Darker red-orange for hover/accents)
*/

/* Basic Reset & Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: #333333; /* Dark gray text for light background */
    background-color: #FFFFFF; /* White background */
    scroll-behavior: smooth;
}
body.no-scroll {
    overflow: hidden; /* Prevent scrolling when mobile menu is open */
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    color: #1A1A1A; /* Very dark gray for headings */
    line-height: 1.2;
    text-transform: uppercase; /* All uppercase for headings */
}
a {
    text-decoration: none;
    color: #f94b3f; /* Accent primary */
    transition: color 0.3s ease;
}
a:hover {
    color: #d63f36; /* Accent secondary */
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}
/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
}
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: -1;
}
.navbar {
    padding: 20px 0;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.logo img {
    height: 100px;
}
.nav-links {
    list-style: none;
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.nav-links li {
    margin: 0 17.5px;
}
.nav-links a {
    color: #ffffff; /* White for nav links */
    font-weight: 500;
    font-size: 1.05em;
    position: relative;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #f94b3f; /* Accent primary */
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}
/* Button Styling */
.cta-button {
    background-color: #f94b3f; /* Accent primary */
    color: #fff !important; /* White text for contrast */
    padding: 12px 25px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 600;
    white-space: nowrap;
}
.cta-button:hover {
    background-color: #d63f36; /* Accent secondary */
    transform: translateY(-2px);
}
/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}
.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff; /* White for hamburger on dark header */
    border-radius: 2px;
    transition: all 0.3s ease;
}
/* Hamburger to X animation */
.mobile-menu-toggle.open span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.open span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}
/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Keep dark for better contrast with white links */
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}
.mobile-nav-overlay.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.mobile-nav-overlay .close-btn {
    display: none;
}
.mobile-nav-overlay ul {
    list-style: none;
    text-align: center;
    padding-top: 80px;
}
.mobile-nav-overlay ul li {
    margin-bottom: 30px;
}
.mobile-nav-overlay ul li a {
    color: #FFFFFF; /* White links on dark overlay */
    font-size: 2em;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    transition: color 0.3s ease;
}
.mobile-nav-overlay ul li a:hover {
    color: #f94b3f; /* Accent primary */
}
/* Hero Section */
.hero {
    /* NOTE: Hero text remains white on dark overlay to maintain readability with potentially dark background images.
       If hero images are changed to light, adjust text color and overlay accordingly. */
    color: #fff; /* Keep text white */
    text-align: center;
    padding: 120px 25px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
/* Styles for slideshow */
.hero .swiper-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.hero .swiper-slide {
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slideshow-overlay {
    background-color: rgba(0,0,0,0.6); /* Keep dark overlay for white text readability */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}
.hero h1 {
    font-size: 4em;
    margin-bottom: 20px;
    color: #fff; /* White */
    text-shadow: 0 4px 8px rgba(0,0,0,0.4);
}
.hero p {
    font-size: 1.5em;
    margin-bottom: 40px;
    max-width: 900px;
    color: #E0E0E0; /* Light gray */
    text-shadow: 0 2px 5px rgba(0,0,0,0.4);
}
.hero .cta-button {
    font-size: 1.3em;
    padding: 18px 35px;
}
/* Section Styling */
section {
    padding: 100px 0;
    text-align: center;
    background-color: #FFFFFF; /* White default section background */
}
section:nth-of-type(even) {
    background-color: #F8F8F8; /* Slightly off-white for even sections */
}
section h2 {
    font-size: 3em;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    color: #1A1A1A; /* Dark heading */
}
section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background-color: #f94b3f; /* Accent primary */
    border-radius: 3px;
}
/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}
.service-item {
    background-color: #FFFFFF; /* White card background */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); /* Lighter shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}
.service-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.service-item .service-image {
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}
.service-item .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.service-item:hover .service-image img {
    transform: scale(1.05);
}
.service-item h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #1A1A1A; /* Dark heading */
}
.service-item p {
    font-size: 1.05em;
    color: #666666; /* Medium gray for service text */
}
/* Portfolio Section */
.portfolio-grid-wrapper {
    margin-top: 50px;
    position: relative;
    padding: 0 50px;
    overflow: hidden;
}
.portfolio-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1); /* Lighter shadow */
    position: relative;
    cursor: pointer;
}
.portfolio-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.portfolio-item:hover img {
    transform: scale(1.08);
}

/* Testimonials Section */
.testimonials {
    background-color: #F8F8F8; /* Slightly off-white background */
    padding: 100px 0;
}
.testimonials-grid-wrapper {
    margin-top: 50px;
    position: relative;
    padding: 0 50px;
    overflow: hidden;
}
.testimonial-card {
    background: #FFFFFF; /* White card background */
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1); /* Lighter shadow */
    padding: 35px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.stars {
    color: #f94b3f; /* Changed to accent primary */
    margin-bottom: 15px;
    font-size: 1.3em;
}
.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #666666; /* Medium gray for testimonial text */
    font-size: 1.05em;
}
.reviewer-name {
    font-weight: 600;
    color: #1A1A1A; /* Dark for reviewer names */
    font-size: 1.1em;
}

/* Swiper Customizations */
.swiper-button-next, .swiper-button-prev {
    color: #f94b3f !important; /* Accent primary */
    transition: transform 0.2s ease;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    transform: scale(1.1);
}
.swiper-pagination-bullet-active {
    background-color: #f94b3f !important; /* Accent primary */
}

/* About Us Section */
.about-us-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
    text-align: left;
    margin-top: 50px;
}
.about-us-text {
    flex: 2;
    min-width: 350px;
    font-size: 1.05em;
    color: #333333; /* Dark gray for about us text */
}
.about-us-text p {
    margin-bottom: 15px;
}
.about-us-image {
    flex: 1;
    min-width: 300px;
}
.about-us-image img {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); /* Lighter shadow */
}

/* Special Offer Section */
.special-offer {
    /* NOTE: This section has a dark background overlay for text readability,
       as the original design implied an image background with white text.
       If the background image changes to a light one, this overlay or text color should be adjusted. */
    color: #fff; /* Keep text white */
    padding: 80px 25px;
    text-align: center;
}
.special-offer h3 {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #fff; /* White */
}
.special-offer p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #E0E0E0; /* Light gray */
}
.special-offer .cta-button {
    font-size: 1.2em;
    padding: 15px 30px;
    background-color: #f94b3f; /* Accent primary */
    color: #fff !important; /* White text */
}
.special-offer .cta-button:hover {
    background-color: #d63f36; /* Accent secondary */
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    margin-top: 50px;
}
.contact-form {
    flex: 2;
    min-width: 350px;
    background-color: #FFFFFF; /* White form background */
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); /* Lighter shadow */
    text-align: left;
}
.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333333; /* Dark gray label */
    font-size: 1.05em;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid #CCCCCC; /* Light gray border */
    border-radius: 8px;
    font-size: 1.05em;
    color: #333333; /* Dark text in inputs */
    background-color: #F0F0F0; /* Light gray input background */
}
.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}
.contact-form button {
    background-color: #f94b3f; /* Accent primary */
    color: #fff !important; /* White text */
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.contact-form button:hover {
    background-color: #d63f36; /* Accent secondary */
    transform: translateY(-2px);
}
.contact-info {
    flex: 1;
    min-width: 300px;
    text-align: left;
    font-size: 1.05em;
    color: #333333; /* Dark gray for contact info text */
}
.contact-info p {
    margin-bottom: 20px;
}
.contact-info p i {
    color: #f94b3f; /* Accent primary icon */
    margin-right: 15px;
    width: 30px;
    text-align: center;
}
.social-links {
    margin-top: 30px;
}
.social-links a {
    display: inline-block;
    color: #f94b3f; /* Accent primary for social icons */
    font-size: 2em;
    margin-right: 20px;
    transition: color 0.3s ease, transform 0.2s ease;
}
.social-links a:hover {
    color: #d63f36; /* Accent secondary on hover */
    transform: translateY(-3px);
}
.map-container {
    margin-top: 60px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); /* Lighter shadow */
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
/* Floating CTA Button */
.floating-cta {
    position: fixed;
    bottom: 35px;
    right: 35px;
    background-color: #f94b3f; /* Accent primary */
    color: #fff !important; /* White text */
    padding: 18px 30px;
    border-radius: 50px;
    font-size: 1.15em;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15); /* Lighter shadow */
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}
.floating-cta:hover {
    background-color: #d63f36; /* Accent secondary */
    transform: translateY(-8px);
}
.floating-cta i {
    font-size: 1.4em;
}
/* Footer */
footer {
    background-color: #F0F0F0; /* Light gray footer background */
    color: #666666; /* Medium gray text for footer */
    padding: 60px 0 30px;
    text-align: center;
    font-size: 0.95em;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 40px;
}
.footer-col {
    flex: 1;
    min-width: 250px;
    margin: 25px;
}
.footer-col h4 {
    color: #f94b3f; /* Accent primary for footer headings */
    margin-bottom: 25px;
    font-size: 1.3em;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 12px;
}
.footer-col ul li a {
    color: #666666; /* Medium gray links */
    font-weight: 400;
}
.footer-col ul li a:hover {
    color: #333333; /* Darker on hover */
}
.footer-col .social-links a {
    color: #666666; /* Medium gray social icons */
    font-size: 1.8em;
}
.footer-col .social-links a:hover {
    color: #f94b3f; /* Accent primary on hover */
    transform: translateY(-3px);
}
.footer-bottom {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(0,0,0,0.1); /* Subtle dark border */
}
.footer-bottom p {
    margin-bottom: 8px;
}
.footer-bottom a {
    color: #f94b3f; /* Accent primary for bottom links */
    font-weight: 600;
}
/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3em;
    }
    .hero p {
        font-size: 1.3em;
    }
    section h2 {
        font-size: 2.5em;
        color: #1A1A1A; /* Dark for headings on mobile */
    }
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .about-us-content, .contact-content, .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .about-us-content {
        flex-direction: column-reverse;
    }
    .about-us-image img {
        max-width: 60%;
        margin: 0 auto 30px;
    }
    .about-us-text, .contact-form, .contact-info, .footer-col {
        min-width: unset;
        width: 100%;
        margin: 0;
        color: #333333; /* Dark text on mobile */
    }
    .contact-form, .testimonial-card {
        padding: 30px;
    }
    .contact-info p {
        text-align: center;
    }
    .contact-info p i {
        margin-right: 10px;
    }
    .social-links {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-right: 0;
    }
    .social-links a {
        margin-right: 0;
    }
    .floating-cta {
        bottom: 25px;
        right: 25px;
        padding: 15px 25px;
        font-size: 1em;
        display: flex !important;
    }
}
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .cta-button {
        display: none;
    }
    .hero {
        padding: 80px 20px;
        min-height: 450px;
    }
    .hero h1 {
        font-size: 2.2em;
    }
    .hero p {
        font-size: 1em;
    }
    .hero .cta-button {
        font-size: 1.1em;
        padding: 15px 25px;
    }
    section {
        padding: 70px 0;
    }
    section h2 {
        font-size: 2em;
        margin-bottom: 40px;
    }
    .services-grid {
        gap: 25px;
    }
    .service-item, .portfolio-item, .testimonial-card {
        padding: 25px;
    }
    .service-item .service-icon i {
        font-size: 3em;
    }
    .service-item h3 {
        font-size: 1.6em;
    }
    .portfolio-item img {
        height: 220px;
    }
    .map-container {
        height: 300px;
    }
    .floating-cta {
        bottom: 15px;
        right: 15px;
        padding: 12px 20px;
        font-size: 0.9em;
        display: flex !important;
    }
    /* Adjust Swiper navigation for smaller screens */
    .swiper-button-next, .swiper-button-prev {
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5em;
        width: 30px;
        height: 30px;
        margin-top: -15px;
    }
    .swiper-button-prev {
        left: 10px;
    }
    .swiper-button-next {
        right: 10px;
    }
    .portfolio-grid-wrapper, .testimonials-grid-wrapper {
        padding: 0 30px;
    }
    /* Smaller logo size for mobile */
    .logo img {
        height: 70px;
    }
}
