/* ============================================
   VARIÁVEIS E CORES
   ============================================ */
:root {
    --primary-color: #003d7a;
    --primary-light: #0066cc;
    --secondary-color: #00a86b;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --border-color: #bbbbbb;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ============================================
   RESET E CONFIGURAÇÕES GLOBAIS
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

p {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
}

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

a:hover {
    color: var(--primary-light);
}

/* ============================================
   CONTAINER E GRID
   ============================================ */
.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background-image: url(assets/images/slide/slide1_jc_pocos_artesianos.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw;
    max-height: 800px;
    overflow: hidden;
}

.carousel-item {
    width: 100vw;
    height: 800px;
}

.hero-overlay {
    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 1200 800"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="800" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.hero-content {
    animation: slideInLeft 0.8s ease-out;
    padding-left: calc(var(--bs-gutter-x) * 6);
    margin-top:3em;
    margin-bottom: auto;
    
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: .5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.5rem;
    color: white;
    font-weight: 800;
    line-height: 1.1;
    margin: 1.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
}

.hero-buttons .btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
}

.hero-buttons .btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-buttons .btn-success:hover {
    background-color: #00a86b;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-badge-google {
    animation: slideInRight 0.8s ease-out;
}

.google-badge {
    background-color: white;
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
}

.google-badge i {
    font-size: 2rem;
    color: #4285F4;
}

.google-badge strong {
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

.stars {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.stars i {
    color: #FFC107;
    font-size: 1rem;
}

.stars span {
    color: #666;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* ============================================
   SEÇÕES GERAIS
   ============================================ */
section {
    position: relative;
}

.section-badge {
    display: inline-block;
    background-color: #e8f4f8;
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.section-text {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ============================================
   CARDS DE SERVIÇOS
   ============================================ */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary-light);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.service-link:hover {
    gap: 1rem;
    color: var(--primary-color);
}

/* ============================================
   VIDEO CONTAINER
   ============================================ */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   FEATURE BOXES
   ============================================ */
.feature-box {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.feature-box h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-box i {
    color: var(--primary-light);
    transition: var(--transition);
}

.feature-box:hover i {
    transform: scale(1.1);
}

.feature-box-compact {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.feature-box-compact:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.feature-box-compact h5 {
    color: var(--primary-color);
    font-size: 1rem;
    margin: 0.75rem 0;
}

.feature-box-compact p {
    font-size: 0.9rem;
    margin: 0;
}

.feature-box-compact i {
    font-size: 1.8rem;
    color: var(--primary-light);
    transition: var(--transition);
}

.feature-box-compact:hover i {
    transform: scale(1.1);
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1;
}

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

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 61, 122, 0.9) 0%, rgba(0, 102, 204, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h5 {
    color: white;
    text-align: center;
    font-size: 1.3rem;
}

/* ============================================
   FORMULÁRIO DE CONTATO
   ============================================ */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.contact-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-form .btn {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: var(--transition);
}

.contact-form .btn:hover {
    background-color: #008a5c;
    border-color: #008a5c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   INFORMAÇÕES DE CONTATO
   ============================================ */
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    height: 100%;
}

.contact-info h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.info-item h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.info-item i {
    margin-right: 0.5rem;
}

.contact-link {
    display: block;
    color: #555;
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-light);
    padding-left: 0.5rem;
}

/* ============================================
   SOCIAL LINKS
   ============================================ */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-btn.whatsapp {
    background-color: var(--secondary-color);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   BADGES DE CIDADES
   ============================================ */
.cities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.city-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.city-badge:hover {
    background-color: var(--primary-light);
    transform: scale(1.05);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background-color: #1a1a1a;
    color: #ddd;
}

footer h5 {
    color: white;
    font-size: 1.2rem;
}

.footer-link {
    color: #ddd;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--secondary-color);
    padding-left: 0.5rem;
}

footer p {
    color: #bbb;
}

/* ============================================
   BOTÃO FLUTUANTE WHATSAPP
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #008a5c;
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 168, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0, 168, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 168, 107, 0);
    }
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ============================================
   RESPONSIVIDADE - TABLET
   ============================================ */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* ============================================
   RESPONSIVIDADE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }

    .hero-section {
        background-position: right center;
        background-image: url(assets/images/slide/mobile_slide1_jc_pocos_artesianos.png);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .carousel-item {
        width: 100%;
    }

    .hero-content {
        padding-left: 1rem !important;
        padding-right: 1rem;
        margin-top: 2em;
        margin-bottom: 25em;
    }
    .grid-container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .logo-navbar {
        height: 40px;
    }

    .navbar .btn-primary {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .hero-badge-google {
        margin-top: 2rem;
    }

    .google-badge {
        flex-direction: column;
        text-align: center;
    }

    .contact-form,
    .contact-info {
        margin-bottom: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 1.5rem;
    }

    .cities-grid {
        gap: 0.75rem;
    }

    .city-badge {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .hero-buttons .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ============================================
   RESPONSIVIDADE - MOBILE PEQUENO
   ============================================ */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
        margin: 1rem 0;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .navbar-brand {
        flex: 1;
    }

    .navbar-toggler {
        border: none;
    }

    .navbar-collapse {
        margin-top: 1rem;
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }

    .navbar .btn-primary {
        width: 100%;
        margin-top: 1rem;
    }

    .hero-buttons {
        gap: 0.5rem;
    }

    .hero-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .service-card {
        padding: 1.25rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .feature-box {
        padding: 1.5rem;
    }

    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }

    .contact-form .form-control,
    .contact-form .form-select {
        padding: 0.6rem 0.75rem;
        font-size: 0.95rem;
    }

    .city-badge {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    h1, h2, h3, h4, h5, h6 {
        word-break: break-word;
    }
}

/* ============================================
   IMPRESSÃO
   ============================================ */
@media print {
    .navbar,
    .whatsapp-float,
    .hero-buttons {
        display: none;
    }
}
