/* ============================================
   AMPARO VIDA HOME CARE - STYLESHEET
   HTML5 CSS3 - Modern & Elegant Design
   ============================================ */

/* ============================================
   1. RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1C4E80;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ============================================
   2. COLOR PALETTE
   ============================================ */

:root {
    --primary-dark: #1C4E80;
    --primary-light: #4590c9;
    --accent-green: #9BC53D;
    --accent-green-dark: #60B246;
    --text-dark: #1C4E80;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --bg-lighter: #fafafa;
    --border-color: #e0e0e0;
    --white: #ffffff;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: all 0.3s ease-out;
}

a:hover {
    color: var(--accent-green);
}

/* ============================================
   4. CONTAINER & LAYOUT
   ============================================ */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ============================================
   5. HEADER & NAVIGATION
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease-out;
}

.header.scrolled {
    background-color: var(--primary-dark);
    box-shadow: 0 10px 20px rgba(28, 78, 128, 0.15);
}

.header-top {
    background-color: transparent;
    transition: all 0.3s ease-out;
}

.header.scrolled .header-top {
    background-color: var(--primary-dark);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 150px;
    width: auto;
    transition: transform 0.3s ease-out;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 2px;
    transition: all 0.3s ease-out;
}

.header.scrolled .menu-toggle span {
    background-color: var(--white);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-list {
    display: none;
    flex-direction: column;
    list-style: none;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .nav-list {
        display: flex;
        flex-direction: row;
        gap: 2rem;
    }
}

.nav-list.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-dark);
    padding: 2rem;
    gap: 1rem;
}

.nav-link {
    font-weight: 600;
    color: (--primary-dark);
    transition: all 0.3s ease-out;
}
.header.scrolled .nav-menu .nav-list .nav-link {
    color: var(--white);
}

.header.scrolled .nav-menu .nav-list .nav-link:hover {
    color: var(--accent-green);
}


.nav-link:hover {
    color: var(--accent-green);
}
.nav-list.active .nav-link {
    color: var(--white);
}

/* Header Contact Info */
.header-contact {
    display: none;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .header-contact {
        display: flex;
    }
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-dark);
    font-weight: 600;
    transition: all 0.3s ease-out;
}

.header.scrolled .contact-link {
    color: var(--white);
}


.contact-link:hover,
.header.scrolled .contact-link:hover { /* <--- NOVA REGRA ADICIONADA */
    color: var(--accent-green);
}

.phone-number,
.email-text {
    display: none;
}

@media (min-width: 1024px) {
    .phone-number,
    .email-text {
        display: inline;
    }
}

/* ============================================
   6. BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease-out;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--accent-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(155, 197, 61, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-green-dark);
    box-shadow: 0 6px 25px rgba(155, 197, 61, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(155, 197, 61, 0.3);
}

.btn-secondary:hover {
    background-color: var(--accent-green-dark);
    box-shadow: 0 6px 25px rgba(155, 197, 61, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: rgba(28, 78, 128, 0.1);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ============================================
   7. HERO SECTION
   ============================================ */

.hero {
    position: relative;
    padding: 8rem 0 4rem;
    margin-top: 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(155, 197, 61, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(28, 78, 128, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.text-primary {
    color: var(--primary-dark);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
}

/* Trust Indicators */
.trust-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.trust-item {
    text-align: center;
}

.trust-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.trust-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 600;
}

/* ============================================
   8. SECTION HEADERS
   ============================================ */

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

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   9. ABOUT SECTION
   ============================================ */

.about {
    padding: 4rem 0;
    background-color: var(--white);
}

.differentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.differential-card {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(155, 197, 61, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    border: 1px solid rgba(155, 197, 61, 0.2);
    border-radius: 1rem;
    transition: all 0.3s ease-out;
}

.differential-card:hover {
    box-shadow: 0 10px 30px rgba(28, 78, 128, 0.1);
    transform: translateY(-5px);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--accent-green);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 1rem;
}

.differential-card h3 {
    margin-bottom: 0.5rem;
}

.differential-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Mission Box */
.mission-box {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2d5fa3 100%);
    color: var(--white);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(28, 78, 128, 0.2);
}

.mission-box h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.mission-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
}

/* ============================================
   10. SERVICES SECTION
   ============================================ */

.services {
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(250, 250, 250, 0) 0%, rgba(155, 197, 61, 0.05) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    padding: 2rem;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-out;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
}

.service-card,
.service-card:visited,
.service-card:active {
    color: var(--white);
    text-decoration: none;
}

.service-card-1 {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2d5fa3 100%);
}

.service-card-2 {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
}

.service-card-3 {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
}

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

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease-out;
}

.service-card:hover::before {
    background: rgba(0, 0, 0, 0.1);
}

.card-header {
    margin-bottom: 1rem;
}

.card-header h3 {
    color: var(--white);
    margin: 0;
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-link {
    color: var(--white);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease-out;
    margin-bottom: 1.5rem;
}

.service-card:hover .service-link {
    color: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.service-image {
    width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-right: -2rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease-out;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

/* Services CTA */
.services-cta {
    text-align: center;
    padding: 2rem;
}

.services-cta p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ============================================
   11. TESTIMONIALS SECTION
   ============================================ */

.testimonials {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--white) 0%, rgba(155, 197, 61, 0.05) 100%);
}

.testimonial-carousel {
    background-color: var(--white);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(28, 78, 128, 0.1);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 2rem;
}

.testimonial-card {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.testimonial-card.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stars {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.testimonial-relation {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-dark);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--accent-green);
    box-shadow: 0 5px 20px rgba(155, 197, 61, 0.3);
}

.carousel-indicators {
    display: flex;
    gap: 0.75rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease-out;
}

.carousel-indicator.active {
    background-color: var(--accent-green);
    width: 32px;
    border-radius: 6px;
}

.carousel-info {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ============================================
   12. CONTACT SECTION
   ============================================ */

.contact {
    padding: 4rem 0;
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--primary-dark);
    font-weight: 600;
    transition: all 0.3s ease-out;
}

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

/* Contact Form */
.contact-form-wrapper {
    display: flex;
    flex-direction: column;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease-out;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(155, 197, 61, 0.1);
}

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

.success-message {
    background-color: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-message h3 {
    color: #22c55e;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: #16a34a;
}

/* ============================================
   13. FOOTER
   ============================================ */

.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-block {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    height: 150px;
    width:  150px;
    margin-bottom: 1rem;
}

.footer-block p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-block h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--white);
    transition: all 0.3s ease-out;
    font-weight: 700;
}

.social-links a:hover {
    background-color: var(--accent-green);
    color: var(--white);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease-out;
}

.footer-links a:hover {
    color: var(--accent-green);
    transform: translateX(5px);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-contact a {
    color: var(--white);
    font-weight: 600;
}

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

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* ============================================
   14. WHATSAPP FLOATING BUTTON
   ============================================ */

.whatsapp-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--accent-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 10px 30px rgba(155, 197, 61, 0.4);
    transition: all 0.3s ease-out;
    z-index: 999;
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    background-color: var(--accent-green-dark);
    box-shadow: 0 15px 40px rgba(155, 197, 61, 0.5);
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        /* Usando RGBA do verde do WhatsApp */
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); 
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}


/* ============================================
   15. RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero {
        padding: 6rem 0 2rem;
        margin-top: 80px;
    }

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

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

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

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

    .menu-toggle {
        display: flex;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-image {
        height: 150px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* ============================================
   16. UTILITY CLASSES
   ============================================ */

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.pt-2 { padding-top: 1rem; }
.pt-4 { padding-top: 2rem; }

.pb-2 { padding-bottom: 1rem; }
.pb-4 { padding-bottom: 2rem; }

/* ============================================
   17. ANIMATIONS & TRANSITIONS
   ============================================ */

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: slideInUp 0.5s ease-out;
}
