/* Variáveis de Cores (Baseadas na Logo) */
:root {
    --text-dark: #3F3F3F;
    --text-light: #5A5A5A;
    --bg-white: #FFFFFF;
    --bg-gray: #F4F6F8;
    --footer-bg: #1A1A1A;
    --brand-orange: #F26D3D;
    --brand-purple: #8338EC;
    --brand-blue: #00A8FF;
    --brand-gradient: linear-gradient(90deg, var(--brand-orange) 0%, var(--brand-purple) 50%, var(--brand-blue) 100%);
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --nav-height: 80px;
}

/* Dark Mode Variables & Overrides */
body.dark-mode {
    --text-dark: #EAEAEA;
    --text-light: #B0B0B0;
    --bg-white: #1F2937;
    --bg-gray: #111827;
    --footer-bg: #0D1117;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.2);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.3);
}

body.dark-mode .nav-menu.is-active {
    background-color: var(--bg-white);
}

body.dark-mode .header .logo img {
    filter: invert(1) brightness(1.5);
}

body.dark-mode .btn-outline {
    border-color: #4B5563;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
}

body.dark-mode .plan-card {
    border-color: #374151;
}

body.dark-mode .plan-card.popular {
    border-color: var(--brand-purple);
}

body.dark-mode .rural-plans {
    background-color: #161d2b;
    border-top-color: #374151;
}

body.dark-mode .rural-plans .plan-features ul {
    border-top-color: #374151 !important; /* Override inline style */
}

body.dark-mode .info-card:hover {
    background: #111827;
}

body.dark-mode .map-container iframe {
    filter: invert(90%) hue-rotate(180deg);
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-gray);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--brand-blue);
    color: white;
}
.btn-primary:hover {
    background-color: #008DDB;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid #ccc;
}
.btn-outline:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--brand-blue);
    border: 2px solid var(--brand-blue);
}
.btn-outline-primary:hover {
    background-color: var(--brand-blue);
    color: white;
}

.btn-gradient {
    background: var(--brand-gradient);
    color: white;
}
.btn-gradient:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.full-width-btn {
    width: 100%;
    margin-top: 20px;
}

/* Theme Toggle Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "☀️";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

input:checked + .slider {
    background-color: var(--brand-purple);
}

input:checked + .slider:before {
    content: "🌙";
    transform: translateX(24px);
}

/* Header */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid transparent;
    border-image: var(--brand-gradient);
    border-image-slice: 1;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--brand-blue);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
    z-index: 1001; /* Para ficar acima do menu */
}

/* Estilo do logo no header */
.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Banner Principal */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 20px 140px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Acesso Rápido */
.quick-access {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.action-card {
    background: var(--bg-white);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    border-bottom: 4px solid transparent;
}

.action-card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--brand-orange);
}

.action-card.highlight {
    border-bottom: 4px solid var(--brand-blue);
}

.action-card.highlight:hover {
    background-color: var(--brand-blue);
    color: white;
}

.action-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

/* Planos */
.plans-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.plan-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid #eaeaea;
}

.plan-card.popular {
    box-shadow: var(--shadow-md);
    border: 2px solid var(--brand-purple);
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-gradient);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.speed {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--brand-blue);
    line-height: 1;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.speed span {
    font-size: 1.2rem;
    color: var(--text-light);
    display: block;
    margin-top: 5px;
}

.plan-features {
    margin-bottom: 30px;
    text-align: left;
}

.plan-features ul {
    list-style: none;
}

.plan-features li {
    margin-bottom: 12px;
    color: var(--text-light);
}

.plan-apps {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

.plan-apps li {
    margin-bottom: 0; /* Remove a margem herdada de .plan-features li */
}

.plan-apps img {
    max-height: 40px;
    width: auto;
}

/* Estilos específicos para Planos Rurais */
.rural-grid {
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.rural-title {
    color: #FF9800;
}

.rural-badge {
    background: #FF9800;
}

.rural-features-list {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

/* Seção Carrossel de Logos de Apps */
.app-logos-section {
    padding: 40px 0;
    background-color: var(--bg-white);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

body.dark-mode .app-logos-section {
    background-color: var(--bg-gray);
    border-color: #374151;
}

.app-logos-swiper {
    width: 100%;
    height: 60px;
    -webkit-mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
    mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
}

.app-logos-swiper .swiper-wrapper {
    align-items: center;
    transition-timing-function: linear !important;
}

.app-logos-swiper .swiper-slide {
    text-align: center;
    width: auto;
}

.app-logos-swiper .swiper-slide img {
    max-height: 40px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.app-logos-swiper .swiper-slide:hover img {
    filter: none;
    opacity: 1;
}

/* Footer (Inspirado no SAAE) */
.footer {
    background-color: var(--footer-bg);
    color: #e0e0e0;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
    /* Aplica um filtro para deixar a logo branca, caso necessário */
    filter: brightness(0) invert(1); 
}

.footer h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--brand-blue);
}

.portal-btn {
    display: block;
    width: 100%;
    margin-top: 15px;
    background-color: rgba(0, 168, 255, 0.1);
    border: 1px solid var(--brand-blue);
    color: var(--brand-blue);
}

.portal-btn:hover {
    background-color: var(--brand-blue);
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.social-icon {
    font-size: 1rem;
    padding: 8px;
    border: 1px solid #555;
    border-radius: 8px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #888;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    height: 170px;
    box-shadow: var(--shadow-sm);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsividade Mobile */
@media (max-width: 992px) {
    .plan-card.popular {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 10px 0;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        box-shadow: var(--shadow-md);
        padding: 20px;
        border-top: 1px solid #eee;
    }

    .nav-menu.is-active {
        display: flex;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .nav-menu li {
        text-align: center;
    }
    
    .menu-toggle {
        display: block;
        order: 3; /* Garante que o hamburguer seja o último item */
    }

    .header-actions .btn {
        display: none;
    }

    .theme-switch-wrapper {
        order: 2;
        margin-right: 20px; /* Space before hamburger */
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .footer-grid {
        /* Duas colunas em tablet, uma em celular */
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
    /* Estilos para o Preço nos Planos */
.plan-price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    color: var(--brand-blue); /* Pode alterar para a cor da sua preferência */
    margin-bottom: 20px;
}

.plan-price .currency {
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 5px;
}

.plan-price .value {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -2px;
}

.plan-price .cents {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

/* Fundo diferenciado para a secção rural para não confundir com os planos da cidade */
.rural-plans {
    background-color: #f0f4f8; 
    border-top: 1px solid #e1e8ed;
}

body.dark-mode .rural-features-list {
    border-top-color: #374151;
}
/* Seção Sobre Nós */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-content .lead-text {
    font-size: 1.25rem;
    color: var(--brand-blue);
    font-weight: 500;
    margin-bottom: 30px;
}

.about-slogan {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--bg-gray);
}

.about-slogan h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
}

.about-slogan span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    font-size: 1.8rem;
    margin-top: 5px;
}

/* Cards da Direita */
.about-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--bg-gray);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--brand-orange);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:nth-child(2) {
    border-left-color: var(--brand-purple);
}

.info-card:nth-child(3) {
    border-left-color: var(--brand-blue);
}

.info-card:hover {
    transform: translateX(-10px);
    box-shadow: var(--shadow-sm);
    background: #fff;
}

.info-card .icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

/* Responsividade do Sobre Nós */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .info-card:hover {
        transform: translateY(-5px); /* Muda o efeito no mobile */
    }
}

.team-section {
    padding: 80px 0;
    background-color: var(--bg-gray);
}

.team-swiper {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 50px; /* Espaço para paginação */
}

.team-swiper .swiper-slide {
    display: flex;
    justify-content: center;
}

.team-member {
    background: none;
    padding: 0;
    text-align: center;
    box-shadow: none;
    transition: none;
}

.team-member:hover {
    transform: none;
    box-shadow: none;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--brand-blue);
    box-shadow: var(--shadow-sm);
}

.team-member-caption {
    color: var(--text-dark);
    line-height: 1.4;
}

.team-member-caption strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.team-member-caption span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Dark Mode para a seção de equipe */
body.dark-mode .team-member {
    background: none;
}

body.dark-mode .team-member img {
    border-color: var(--brand-purple); /* Muda a cor da borda no dark mode */
}

body.dark-mode .team-member:hover {
    background: none;
}

body.dark-mode .team-member-caption span {
    color: var(--text-light);
}

/* Estilos para navegação e paginação do Swiper */
.team-swiper .swiper-button-next,
.team-swiper .swiper-button-prev {
    color: var(--brand-blue);
}

.team-swiper .swiper-pagination-bullet-active {
    background: var(--brand-blue);
}