/**
 * Estilos da Landing Page do Portal do Contribuinte PGE/AM
 * Página pública apresentando os serviços disponíveis
 */

/* Reset e Configurações Básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Variáveis de Cores */
:root {
    --primary: #039be5;
    --primary-light: #90caf9;
    --primary-medium: #42a5f5;
    --primary-dark: #3f51b5;
    --primary-navy: #173051;
    --accent-light: #e3f2fd;
    --accent-gray: #eceff1;
    --status-available: #43a047;
    --status-busy: #d32f2f;
    --status-unavailable: #bdbdbd;
}

/* Estilos de Foco para Acessibilidade */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Header */
.landing-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 2.5rem 0;
}

.landing-header.solid-bg {
    background: var(--primary-navy);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 218px;
    height: 33px;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    padding-bottom: 0.25rem;
    transition: all 200ms;
}

.nav-link:hover {
    border-bottom: 2px solid white;
}

.btn-login {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 200ms;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    text-decoration: none;
}

@media (min-width: 768px) {
    .btn-login {
        padding: 0.375rem 1.25rem;
        min-height: 0;
    }
}

.btn-login:hover {
    background: white;
    color: var(--primary-navy);
}

.btn-login img {
    width: 14px;
    height: 10px;
    margin-left: auto;
    filter: brightness(0) invert(1);
}

.btn-login:hover img {
    filter: none;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    display: none;
    margin-top: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu .nav-link {
    color: var(--primary-navy);
    font-size: 1rem;
    padding: 0.5rem 0;
}

.mobile-menu .nav-link:hover {
    color: var(--primary);
}

.mobile-menu .btn-login {
    background: var(--primary-navy);
    color: white;
    margin-top: 0.5rem;
    justify-content: center;
}

.mobile-menu .btn-login:hover {
    background: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 8rem 1.5rem 5rem;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .hero {
        padding: 10rem 1.5rem 8rem;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 155, 229, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

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

.hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

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

.btn-primary {
    background: white;
    color: var(--primary-navy);
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 300ms;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    width: 100%;
    justify-content: center;
}

@media (min-width: 640px) {
    .btn-primary {
        width: auto;
    }
}

.btn-primary:hover {
    background: var(--primary-navy);
    color: white;
    border: 1px solid white;
}

.btn-primary img {
    width: 18px;
    height: 14px;
    margin-left: auto;
}

.btn-primary:hover img {
    filter: brightness(0) invert(1);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 300ms;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    width: 100%;
    justify-content: center;
}

@media (min-width: 640px) {
    .btn-secondary {
        width: auto;
    }
}

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

.btn-secondary img {
    width: 16px;
    height: 16px;
    margin-left: auto;
    filter: brightness(0) invert(1);
}

.btn-secondary:hover img {
    filter: brightness(1) invert(0);
}

/* Services Section */
.services {
    padding: 4rem 1.5rem;
    background: white;
}

@media (min-width: 768px) {
    .services {
        padding: 5rem 1.5rem;
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--primary-navy);
    text-align: center;
    margin-bottom: 3rem;
}

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

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

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

.service-card {
    background: var(--accent-light);
    padding: 1.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 300ms;
    display: flex;
    flex-direction: column;
}

.service-card.available:hover {
    background: var(--primary-medium);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-card-icon img {
    width: 88px;
    height: 88px;
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.service-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 200ms;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    text-decoration: none;
}

@media (min-width: 768px) {
    .service-btn {
        padding: 0.5rem 1rem;
        min-height: 0;
    }
}

.service-btn.available {
    background: var(--primary-dark);
    color: white;
}

.service-btn.available:hover {
    background: var(--primary-navy);
}

.service-btn.unavailable {
    background: var(--status-unavailable);
    color: #374151;
    cursor: not-allowed;
}

.service-btn img {
    width: 14px;
    height: 10px;
    margin-left: auto;
    filter: brightness(0) invert(1);
}

/* Benefits Section */
.benefits {
    padding: 4rem 1.5rem;
    background: var(--accent-light);
}

@media (min-width: 768px) {
    .benefits {
        padding: 5rem 1.5rem;
    }
}

.benefits-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 3rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.benefit-card {
    background: var(--primary);
    padding: 2rem;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 300ms;
}

.benefit-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.benefit-card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.benefit-card-icon img {
    width: 88px;
    height: 88px;
}

.benefit-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-align: center;
    margin-bottom: 1rem;
}

.benefit-card p {
    font-size: 1rem;
    color: white;
    text-align: center;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 4rem 1.5rem;
    background: white;
}

@media (min-width: 768px) {
    .contact {
        padding: 5rem 1.5rem;
    }
}

.contact-list {
    max-width: 56rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.375rem;
    transition: all 300ms;
}

.contact-item:hover {
    background: var(--accent-light);
}

.contact-item-icon {
    flex-shrink: 0;
}

.contact-item-icon img {
    width: 48px;
    height: 48px;
    opacity: 0.8;
}

.contact-item-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.contact-item-content p {
    font-size: 1.125rem;
    color: #374151;
}

/* Footer */
.landing-footer {
    background: var(--primary-navy);
    color: white;
    padding: 3rem 1.5rem 1.5rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.footer-logos {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.footer-logos img {
    width: 80px;
    height: 80px;
}

.footer-description {
    font-size: 0.875rem;
    color: #d1d5db;
    line-height: 1.6;
}

.landing-footer h3 {
    font-weight: 500;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.landing-footer ul {
    list-style: none;
}

.landing-footer ul li {
    margin-bottom: 0.5rem;
}

.landing-footer ul a {
    color: white;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 200ms;
}

.landing-footer ul a:hover {
    color: var(--primary-light);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.footer-contact-item img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

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

.footer-copyright {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-copyright p {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 300ms;
    z-index: 50;
    display: none;
}

.back-to-top.visible {
    display: block;
}

.back-to-top:hover {
    background: var(--primary-dark);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    transition: transform 300ms;
}

.back-to-top:hover svg {
    transform: translateY(-4px);
}
