/* landing_page/static/landing_page/css/style.css */

:root {
    --primary-blue: #3498db;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff; /* Pure white background for lightness */
    overflow-x: hidden; /* Prevent horizontal scroll (page "dancing") */
}

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

h1, h2, h3 {
    color: #2c3e50; /* Darker grey for headings */
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--primary-blue); /* Blue for links */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    background-color: var(--primary-blue); /* Default button becomes primary blue */
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #2980b9; /* Darker blue on hover */
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-blue); /* Ensure primary CTA is blue */
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #e9ecef; /* Light grey for secondary CTA */
    color: #333; /* Dark text for contrast */
}

.btn-secondary:hover {
    background-color: #d6d8db; /* Slightly darker grey on hover */
    color: #333;
}

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

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: #fff;
}


/* Header */
.fixed-header {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky; /* Make the header sticky */
    top: 0;
    width: 100%;
    z-index: 1000;
}

.fixed-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #3498db; /* Blue logo */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links li a {
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

.btn-acessar {
    background-color: #2c3e50; /* Dark grey for "Acessar" */
    color: #fff;
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
}

.btn-acessar:hover {
    background-color: #34495e;
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background-color: #e8f7fa; /* Very light blue background for lightness */
    padding: 80px 0;
    text-align: center;
}

.hero-section .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.hero-content h1 {
    font-size: 48px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.mockup-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: none; /* Removed the box-shadow */
    border: none; /* Ensure no border is present */
}


/* Benefits Section */
.benefits-section {
    padding: 80px 0;
    background-color: #ffffff;
    text-align: center;
}

.benefits-section h2 {
    font-size: 36px;
    margin-bottom: 60px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.benefit-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.benefit-card .icon {
    font-size: 40px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.benefits-mockup {
    margin-top: 40px;
    width: 60%; /* Overall visible width of the carousel - reduced */
    margin-left: auto;
    margin-right: auto;
    overflow: hidden; /* Hide parts of images outside the current view */
    position: relative; /* Needed for positioning carousel controls if added */
}

.image-carousel {
    display: flex; /* Arrange images side-by-side */
    width: 500%; /* Accommodate all five images (4 original + 1 clone) */
    transition: transform 1.5s ease-in-out; /* Smooth transition for sliding */
}

.carousel-image {
    width: 20%; /* Each image takes 1/5 of the container */
    flex-shrink: 0; /* Prevent images from shrinking */
    height: auto;
    border-radius: 8px;
    box-shadow: none; /* Ensure no box shadow */
    border: none; /* Ensure no border */
    object-fit: cover; /* Cover the area, cropping if necessary */
}

.carousel-dots {
    text-align: center;
    margin-top: 15px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary-blue);
}


/* Segmentation Section */
.segmentation-section {
    background-color: #e8f7fa; /* Very light blue background */
    padding: 40px 0; /* Adjusted padding to move content up */
    text-align: center;
    overflow: visible; /* Ensure content is not clipped by this section */
}

.segmentation-section h2 {
    font-size: 36px;
    margin-bottom: 60px;
}

.segmentation-grid {
    display: flex; /* Change from grid to flex for horizontal layout */
    overflow-x: auto; /* Changed from overflow: visible to enable horizontal scrolling */
    white-space: nowrap; /* Prevent cards from wrapping to the next line */
    gap: 30px;
    padding-bottom: 20px; /* Add some padding for scrollbar */
    justify-content: flex-start; /* Align items to the start */
    /* align-items: stretch; */ /* Removed to allow dynamic height */
}

.segment-card {
    flex: 0 0 auto; /* Prevent cards from growing or shrinking, maintain their content width */
    width: 280px; /* Set a fixed width for the cards in the carousel */
    background-color: #ffffff;
    padding: 30px; /* Adjusted padding-top to be consistent */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    white-space: normal; /* Allow text inside card to wrap */
    position: relative; /* Keep relative for potential future positioning needs */
    overflow: hidden; /* Changed to hidden to contain content within card */
    z-index: 1;
}

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

.segment-card .icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: none; /* Hide Font Awesome icons by default to prioritize images */
}

.card-icon-wrapper {
    /* Removed absolute positioning */
    margin: 0 auto 20px auto; /* Center wrapper and add margin below it */
    width: 120px;
    height: 120px;
    border-radius: 15px;
    background-color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 1; /* Reset z-index */
    display: flex; /* Use flexbox to center image */
    justify-content: center;
    align-items: center;
}

.segment-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border-radius: 0; /* Remove circular shape to make the wrapper's square shape visible */
    border: none; /* Remove border from image itself, let wrapper handle visual styling */
    box-shadow: none; /* Remove shadow from image itself */
}

.segment-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

/* Specific colors for segmentation icons */
.segment-card .red { color: #e74c3c; } /* Example red */
.segment-card .pink { color: #e83e8c; } /* Example pink */
.segment-card .blue { color: var(--primary-blue); }
.segment-card .green { color: #28a745; } /* Example green */
.segment-card .purple { color: #6f42c1; } /* Example purple */


/* Plans Section */
.plans-section {
    padding: 80px 0;
    background-color: #ffffff;
    text-align: center;
}

.plans-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 15px;
    font-size: 18px;
    font-weight: bold;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-blue);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-blue);
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}


.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.plan-card {
    background-color: #f9f9f9;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    word-break: break-word; /* Help prevent text overflow */
}

.plan-card.popular {
    border-color: var(--primary-blue);
    background-color: #ffffff; /* White for popular card background for lightness */
    transform: scale(1.03);
}

.plan-card.popular:hover {
    transform: scale(1.05);
}

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

.plan-card .popular-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-blue);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.plan-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.plan-card .price {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.plan-card .price .period {
    font-size: 18px;
    font-weight: normal;
    color: #555;
}

.plan-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.plan-card ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #555;
    font-size: 16px;
}

.plan-card ul li i {
    font-size: 18px;
    margin-right: 10px;
    color: var(--primary-blue); /* Checkmark blue */
}

.plan-card ul li i.red {
    color: #e74c3c; /* Red for cross icon */
}

.plan-card .btn {
    width: 100%;
    text-align: center;
}


/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    font-size: 14px;
}


/* Responsive Design */
@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .nav-links {
        gap: 15px;
    }

    /* Force 2 columns for plans on tablet and mobile sizes */
    .plans-grid {
        grid-template-columns: 1fr 1fr;
    }

    .plan-card.popular {
        transform: none; /* Remove scaling on smaller screens */
    }
}

@media (max-width: 768px) {
    .fixed-header .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .nav-links {
        order: 1;
        width: 100%;
        justify-content: space-evenly;
        margin-top: 15px;
        padding: 10px 0;
        
        background-color: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        gap: 0;
    }

    .btn-acessar {
        order: 0;
    }

    .container {
        padding: 0 10px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .benefits-section h2,
    .segmentation-section h2,
    .plans-section h2 {
        font-size: 30px;
    }

    .benefits-grid,
    .segmentation-grid {
        grid-template-columns: 1fr;
    }

    /* Adjust spacing and fonts for side-by-side plans on small screens */
    .plans-grid {
        gap: 10px;
    }

    .plan-card {
        padding: 20px 10px;
    }

    .plan-card h3 {
        font-size: 20px;
    }

    .plan-card .price {
        font-size: 32px;
    }

    .plan-card .price .period {
        font-size: 14px;
    }

    .plan-card ul li {
        font-size: 14px;
        margin-bottom: 10px;
    }
}
