/* 
  Bem Estar Home Care - Design System
  Primary Color: #104071 (Azul Confiança)
  Fonts: Montserrat (Titles), Inter (Body)
*/

:root {
    --primary-color: #104071;
    --primary-light: #1a5a9e;
    --secondary-color: #E33231;
    /* Accent from original JSON */
    --bg-light: #F4F7F9;
    --white: #FFFFFF;
    --text-dark: #122150;
    --text-muted: #4A5568;
    --border-radius: 12px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 30px rgba(16, 64, 113, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--bg-light);
}

/* Typographic Scale */
h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 40px;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 36px;
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-medium);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(16, 64, 113, 0.2);
}

.btn-accent {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-accent:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Cards */
.card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #FFFFFF 0%, #F4F7F9 100%);
    position: relative;
    padding-top: 120px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(16, 64, 113, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

/* Mobile duplicate image: hidden on desktop */
.hero-image-mobile {
    display: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 400;
}

.logo-text strong {
    font-weight: 700;
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: center;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--primary-color);
}

/* Services Carousel */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.carousel-track-container {
    overflow: hidden;
    border-radius: var(--border-radius);
    flex: 1;
    width: 0;
    /* force flex child to not overflow */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    width: 100%;
    min-width: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--border-radius);
    display: block;
}

.carousel-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 28px;
    background: linear-gradient(transparent 0%, rgba(10, 40, 80, 0.9) 100%);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    color: var(--white);
}

.carousel-slide-content h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 0;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary-color);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card blockquote {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 24px;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-info h4 {
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Checklist Section */
.checklist-section {
    background-color: var(--primary-color);
    color: var(--white);
}

.checklist-section h2 {
    color: var(--white);
}

.checklist-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.checklist-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.checklist-item i {
    color: #48BB78;
}

/* ==============================
   RESPONSIVE - Mobile Optimization 
   ============================== */

/* Tablet */
@media (max-width: 992px) {

    .hero-grid,
    .checklist-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        margin: 0 auto;
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .checklist-items {
        grid-template-columns: 1fr;
    }

    .checklist-section .checklist-grid {
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    h1 {
        font-size: 1.85rem;
        margin-bottom: 16px;
    }

    h2 {
        font-size: 1.6rem;
        margin-bottom: 28px;
    }

    h3 {
        font-size: 1.2rem;
    }

    /* Header Mobile */
    header {
        padding: 12px 0;
    }

    .header-flex {
        gap: 10px;
    }

    .logo h2 {
        font-size: 1.1rem !important;
    }

    .header-flex .btn {
        padding: 8px 14px !important;
        font-size: 0.85rem;
    }

    /* Hero Mobile */
    .hero {
        min-height: auto;
        padding: 110px 0 60px;
    }

    .hero-grid {
        gap: 20px;
    }

    /* Badge: mais espaço acima para não colar no header */
    .hero-badge {
        display: inline-block;
        font-size: 0.8rem;
        padding: 6px 14px;
        margin-bottom: 16px;
        margin-top: 12px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 16px;
    }

    /* Hero image: mobile version aparece dentro do hero-content */
    .hero-image-mobile {
        display: block;
        width: 100%;
        margin: 16px 0;
    }

    /* Desktop image: esconde no mobile */
    .hero-image-desktop {
        display: none;
    }

    .hero-btns .btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 1rem;
    }

    .hero-image img {
        border-radius: 16px;
        width: 100%;
        height: auto;
    }

    /* Benefits Mobile */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Carousel Mobile */
    .carousel-slide img {
        height: 300px;
    }

    .carousel-slide-content {
        padding: 16px 18px;
    }

    .carousel-slide-content h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .card {
        padding: 28px 20px;
    }

    .benefit-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
        margin-bottom: 16px;
    }

    /* Services Mobile */
    .services-carousel {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .services-carousel .card {
        min-width: 260px !important;
        scroll-snap-align: center;
    }

    /* Testimonials Mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card blockquote {
        font-size: 0.95rem;
    }

    /* Checklist Mobile */
    .checklist-section {
        padding: 50px 0;
    }

    .checklist-grid {
        gap: 30px !important;
    }

    .checklist-item {
        font-size: 0.95rem;
    }

    .checklist-section .btn {
        padding: 18px 30px !important;
        font-size: 1rem !important;
        width: 100%;
    }

    /* Contact / Location Mobile */
    #contato .checklist-grid {
        grid-template-columns: 1fr !important;
    }

    #contato .card {
        height: 280px !important;
    }

    #contato .btn {
        padding: 16px 24px;
    }

    /* Footer Mobile */
    footer .container {
        flex-direction: column;
        text-align: center;
    }

    /* Buttons Mobile - Touch-Friendly */
    .btn {
        min-height: 48px;
        font-size: 0.95rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .hero {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .card {
        padding: 20px 16px;
    }

    .checklist-items {
        gap: 16px;
    }
}

/* Animations */
.fade-in-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-content.fade-in-hidden {
    transform: translateX(-30px);
    opacity: 0;
}

.hero-image.fade-in-hidden {
    transform: translateX(30px);
    opacity: 0;
}

.hero-content.fade-in-visible,
.hero-image.fade-in-visible {
    transform: translateX(0);
    opacity: 1;
}