/* ===================================
   Ateliê da Obra - Estilos Principais
   Landing Page - Campinas/SP
   =================================== */

/* === Variables === */
:root {
    --primary: #1a5f4a;
    --primary-dark: #134538;
    --primary-light: #2d8b6e;
    --secondary: #2c3e50;
    --accent: #c9a962;
    --accent-light: #dfc88a;
    --light: #f8f9fa;
    --dark: #1a1a1a;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --border-radius: 15px;
    --border-radius-lg: 20px;
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

/* === Navbar === */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.12);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary) !important;
}

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

.nav-link {
    color: var(--secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

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

.navbar-toggler {
    border: none;
    padding: 0;
}

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

.btn-whatsapp-nav {
    background: #25D366;
    color: #ffffff !important;
    border-radius: 50px;
    padding: 0.5rem 1.5rem !important;
    font-weight: 600;
    transition: var(--transition);
}

.btn-whatsapp-nav:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* === Buttons === */
.btn-primary-custom {
    background: #25D366;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-custom:hover {
    background: #1da851;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.btn-secondary-custom {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

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

.btn-dark-custom {
    background: #25D366;
    color: #ffffff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-dark-custom:hover {
    background: #1da851;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
}

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

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 500px;
}

/* ========================================
   NOVA ESTRUTURA - Duas Imagens Sobrepostas
   ======================================== */
.hero-images-container {
    position: relative;
    height: 520px;
    width: 100%;
}

/* Elemento decorativo no canto superior direito */
.hero-images-container::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100px;
    height: 100px;
    border: 3px solid var(--accent);
    border-radius: var(--border-radius-lg);
    opacity: 0.4;
    z-index: 0;
}

/* Imagem de trás (maior, no fundo) */
.hero-img-back {
    position: absolute;
    top: 0;
    right: 0;
    width: 88%;
    height: 380px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-img-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-img-back:hover img {
    transform: scale(1.03);
}

/* Imagem da frente (menor, sobreposta) */
.hero-img-front {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 65%;
    height: 300px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: 5px solid var(--white);
    z-index: 2;
}

.hero-img-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-img-front:hover img {
    transform: scale(1.03);
}

/* Badge de experiência - agora posicionado sobre as imagens */
.hero-badge {
    position: absolute;
    bottom: 40px;
    right: 20px;
    background: var(--accent);
    color: var(--dark);
    padding: 1.2rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 15px 40px rgba(201, 169, 98, 0.4);
    z-index: 3;
}

.hero-badge .number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.hero-badge .text {
    font-size: 0.85rem;
    font-weight: 500;
}

/* === Features Section === */
.features {
    padding: 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.feature-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.feature-card h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* === Section Styles === */
.section-subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

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

/* === About Section === */
.about {
    padding: 100px 0;
    background: var(--light);
}

.about-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.about-list li i {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 3px;
}

.about-img {
    position: relative;
}

.about-img-real {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-experience {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--primary);
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.about-experience .years {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.about-experience span {
    font-size: 0.9rem;
}

/* === Services Section === */
.services {
    padding: 100px 0;
    background: var(--white);
}

.service-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.service-content {
    padding: 1.5rem;
    background: var(--white);
}

.service-content h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.service-content p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.service-link {
    background: #25D366;
    color: #ffffff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
    font-size: 0.9rem;
    text-decoration: none;
}

.service-link:hover {
    background: #1da851;
    color: #ffffff;
    gap: 0.75rem;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* === Why Us Section === */
.why-us {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    position: relative;
}

.why-us .section-subtitle {
    color: var(--accent);
}

.why-us .section-title {
    color: var(--white);
}

.why-us .section-title span {
    color: var(--accent);
}

.why-card {
    text-align: center;
    padding: 2rem 1.5rem;
    transition: var(--transition);
}

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

.why-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.why-card:hover .why-icon {
    background: rgba(255, 255, 255, 0.25);
}

.why-icon i {
    font-size: 2rem;
    color: var(--accent);
    transition: var(--transition);
}

.why-card h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.why-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

/* === Testimonials Section === */
.testimonials {
    padding: 100px 0;
    background: var(--white);
}

.testimonial-card {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    position: relative;
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    opacity: 0.1;
    line-height: 1;
}

.testimonial-stars {
    color: var(--accent);
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--gray);
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

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

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.25rem;
}

.testimonial-info h4 {
    margin: 0;
    color: var(--secondary);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
}

.testimonial-info span {
    color: var(--gray);
    font-size: 0.85rem;
}

/* === CTA Section === */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    text-align: center;
}

.cta h2 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.cta p {
    color: var(--secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* === Footer === */
.footer {
    background: var(--secondary);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand span {
    color: var(--accent);
}

.footer-text {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.7);
}

.footer-contact li i {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 3px;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

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

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

/* === WhatsApp Float Button === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    color: var(--white);
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* === Animations === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE - Tablet
   ======================================== */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Hero Images Container - Tablet */
    .hero-images-container {
        height: 450px;
        margin-top: 2rem;
    }
    
    .hero-img-back {
        width: 90%;
        height: 320px;
    }
    
    .hero-img-front {
        width: 70%;
        height: 260px;
    }
    
    .hero-badge {
        bottom: 30px;
        right: 10px;
        padding: 1rem 1.2rem;
    }
    
    .hero-badge .number {
        font-size: 2rem;
    }
    
    .about-experience {
        position: relative;
        bottom: auto;
        left: auto;
        display: inline-block;
        margin-top: 1rem;
    }
}

/* ========================================
   RESPONSIVE - Mobile
   ======================================== */
@media (max-width: 767px) {
    .hero {
        padding: 120px 0 80px;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Hero Images Container - Mobile */
    .hero-images-container {
        height: 380px;
        margin-top: 2rem;
    }
    
    .hero-images-container::before {
        display: none;
    }
    
    .hero-img-back {
        width: 95%;
        height: 260px;
        right: 0;
    }
    
    .hero-img-front {
        width: 75%;
        height: 200px;
        bottom: 10px;
        left: 0;
        border-width: 3px;
    }
    
    .hero-badge {
        bottom: 20px;
        right: 5px;
        padding: 0.8rem 1rem;
    }
    
    .hero-badge .number {
        font-size: 1.75rem;
    }
    
    .hero-badge .text {
        font-size: 0.75rem;
    }
    
    .features {
        margin-top: 40px;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
    
    .about, .services, .why-us, .testimonials {
        padding: 60px 0;
    }
    
    .about-content {
        text-align: center;
    }
    
    .about-content .btn-primary-custom {
        display: inline-flex;
        margin: 0 auto;
    }
    
    .about-list {
        text-align: left;
        display: inline-block;
    }
    
    .about-experience {
        position: relative;
        bottom: auto;
        left: auto;
        display: block;
        margin: 1.5rem auto 0;
        width: fit-content;
    }
    
    .about-img {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .about-img-real {
        height: 300px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .service-img {
        height: 200px;
    }
    
    .testimonial-card {
        margin-bottom: 1.5rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.75rem;
    }
    
    .btn-group-hero {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
        text-align: center;
    }
    
    .btn-group-hero .btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer {
        padding: 60px 0 20px;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
}

/* ========================================
   RESPONSIVE - Small Mobile
   ======================================== */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom,
    .btn-dark-custom {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Hero Images Container - Small Mobile */
    .hero-images-container {
        height: 320px;
    }
    
    .hero-img-back {
        width: 100%;
        height: 220px;
    }
    
    .hero-img-front {
        width: 80%;
        height: 170px;
        bottom: 5px;
    }
    
    .hero-badge {
        bottom: 15px;
        right: 0;
        padding: 0.6rem 0.8rem;
    }
    
    .hero-badge .number {
        font-size: 1.5rem;
    }
    
    .hero-badge .text {
        font-size: 0.7rem;
    }
}