/*
 * Folha de estilo para o site Lobo GPS Monitoramento Veicular.
 * O design utiliza variáveis CSS para cores e tipografia,
 * resultando em um visual consistente e fácil de ajustar.
 */

/* Variáveis de cores e fontes */
:root {
    --primary-color: #0d47a1;      /* azul escuro */
    --secondary-color: #ff6f00;    /* laranja vibrante */
    --secondary-hover: #e65100;    /* laranja mais escuro para hover */
    --light-bg: #f5f5f5;           /* fundo suave para caixas */
    --text-color: #333333;         /* cor principal do texto */
    --footer-bg: #212121;          /* cor de fundo do rodapé */
    --footer-text: #cccccc;        /* cor do texto no rodapé */
    --font-family: 'Poppins', sans-serif;

    /* Novas variáveis para efeitos de vidro e degradê */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --hero-gradient-start: #0d47a1;
    --hero-gradient-mid: #1976d2;
    --hero-gradient-end: #0d47a1;
}

/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
}

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

a:hover {
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Header e navegação */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo {
    height: 60px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--secondary-color);
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Hero section */
.hero {
    position: relative;
    /* Novo fundo em degradê azul profundo */
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-mid) 50%, var(--hero-gradient-end) 100%);
    color: #ffffff;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}

/* Contêiner interno da seção hero para alinhar texto e imagem */
.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 3rem;
    flex-wrap: wrap;
}

/* Texto da hero adaptado para ocupar o espaço necessário */
.hero-text {
    flex: 1;
    min-width: 260px;
    max-width: 600px;
}

/* Imagem da hero */
.hero-image {
    flex: 1;
    min-width: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Redefinição dos estilos de título e parágrafo dentro da hero */
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #0b3c84;
}

/* Seções genéricas */
section {
    padding: 4rem 0;
}

.about, .services, .contact {
    background-color: #ffffff;
}

.about h2, .services h2, .contact h2, .cta h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
    font-weight: 700;
}

.about p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
}

/* Serviços */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-item img {
    /* As imagens das funcionalidades foram substituídas por ícones Font Awesome. */
    display: none;
}

/* Ícones Font Awesome para os serviços */
.service-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Benefícios */
.benefits {
    background-color: var(--light-bg);
}

.benefits h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    line-height: 1.5;
}

.benefits-list li i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 0.75rem;
}

/* Disposição das seções com imagens (Rastreador e Aplicativo) */
.device, .app {
    padding: 4rem 0;
}

.device-container, .app-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.device-image img, .app-image img {
    width: 100%;
    max-width: 400px;
    max-height: 350px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.device-content, .app-content {
    flex: 1;
    min-width: 280px;
}

.device h2, .app h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.device p, .app p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .device-container, .app-container {
        flex-direction: column;
    }
    .device-image, .app-image {
        order: -1;
    }
}

/* Botões flutuantes de contato */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 999;
}

.floating-buttons a {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, opacity 0.2s;
}

.floating-buttons a:hover {
    transform: scale(1.1);
}

.floating-buttons .whatsapp { background-color: #25d366; }
.floating-buttons .instagram { background-color: #c13584; }
.floating-buttons .email { background-color: var(--secondary-color); }

/* Animações de scroll */
/* As definições de `.animate-on-scroll` e `.animate` foram movidas para o final desta folha de estilos
   para permitir animações mais ricas. */

/* Seção de planos */
.plans {
    background-color: var(--light-bg);
    padding: 4rem 0;
}

.plans h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.plans-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.plan-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    flex: 1 1 260px;
    max-width: 320px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary-color);
}

.plan-card h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.plan-card ul li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.plan-card ul li i {
    margin-right: 0.6rem;
    color: var(--secondary-color);
    font-size: 1rem;
}

.plan-card a {
    display: block;
    width: 100%;
    text-align: center;
}

/* Seção de parceiros */
.partners {
    background-color: #ffffff;
    padding: 4rem 0;
}

.partners h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.partner-logo {
    max-height: 70px;
    max-width: 160px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.service-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.service-item p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
}

/* CTA */
.cta {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 4rem 0;
}

/* How it works section */
.how-it-works {
    background-color: #ffffff;
    padding: 4rem 0;
}

.how-it-works h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.step {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    flex: 1 1 260px;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.step h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.step p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Segments section */
.segments {
    background-color: var(--light-bg);
    padding: 4rem 0;
}

.segments h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

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

.segment {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.segment:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.segment h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.segment p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Testimonials section */
.testimonials {
    background-color: #ffffff;
    padding: 4rem 0;
}

.testimonials h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial {
    position: relative;
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 2rem 1.5rem 3rem 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
    line-height: 1.5;
}

.testimonial i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.testimonial p {
    margin-bottom: 1rem;
}

.testimonial .author {
    display: block;
    font-style: italic;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.cta h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Contato */
.contact-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: 320px;
}

.contact-item img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

/* Ícones Font Awesome no contato */
.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-item p {
    font-size: 1rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Rodapé */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero {
        height: 60vh;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    nav ul {
        gap: 1rem;
    }
}

/*
 * Efeito de vidro (glassmorphism)
 * Aplica um fundo translúcido e desfoque para criar um cartão com aparência de vidro.
 */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Ajustes de animação on scroll para mais dinamismo */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
}

.animate {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}