/* ============================================
   FGI Datasolution - Estilos CSS
   Site otimizado para Hostinger
   ============================================ */

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@300;400;500;600&display=swap');

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #3A752B;
    --color-primary-dark: #2d5c22;
    --color-secondary: #2B6BA5;
    --color-accent: #F7B538;
    --color-text: #4A4A4A;
    --color-text-light: #6B7280;
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-600: #4b5563;
    --color-dark: #4A4A4A;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === UTILITIES === */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

.flex-grow {
    flex: 1;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* === HEADER === */
.header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 48px;
    width: auto;
}

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

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid var(--color-gray-200);
    animation: slideDown 0.3s ease;
}

.nav-mobile.open {
    display: flex;
}

.nav-mobile .nav-link {
    display: block;
    padding: 0.75rem 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(58, 117, 43, 0.1) 0%, rgba(43, 107, 165, 0.1) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 0.8s ease;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 2rem;
}

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

/* === ABOUT SECTION === */
.about {
    background-color: var(--color-white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.about p {
    font-size: 1.125rem;
    color: var(--color-text);
    line-height: 1.8;
}

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

/* === SERVICES SECTION === */
.services {
    background-color: var(--color-gray-50);
}

.services h2 {
    font-size: 2rem;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 3rem;
}

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

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

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

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

.service-card {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease backwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.6;
}

/* === SOLUTIONS PAGE === */
.page-header {
    background: linear-gradient(135deg, rgba(58, 117, 43, 0.1) 0%, rgba(43, 107, 165, 0.1) 100%);
    padding: 5rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--color-text);
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

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

.features {
    background-color: var(--color-white);
}

.features h2 {
    font-size: 2rem;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 4rem;
}

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

.feature-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 6rem;
}

.feature-item:last-child {
    margin-bottom: 0;
}

@media (min-width: 1024px) {
    .feature-item {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-item.reverse .feature-image {
        order: 2;
    }
    
    .feature-item.reverse .feature-text {
        order: 1;
    }
}

.feature-image img {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-xl);
}

.feature-text h3 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.feature-text p {
    font-size: 1.125rem;
    color: var(--color-text);
    line-height: 1.8;
}

@media (min-width: 768px) {
    .feature-text h3 {
        font-size: 1.875rem;
    }
}

.cta-section {
    text-align: center;
    margin-top: 4rem;
}

/* === CONTACT PAGE === */
.contact-section {
    background: linear-gradient(135deg, rgba(58, 117, 43, 0.1) 0%, rgba(43, 107, 165, 0.1) 100%);
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.contact-form-card,
.contact-info-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.contact-form-card h3,
.contact-info-card h3 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

/* === FORMS === */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    border: 1px solid var(--color-gray-300);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(58, 117, 43, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* === CONTACT INFO === */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.contact-icon.email {
    background-color: rgba(58, 117, 43, 0.1);
    color: var(--color-primary);
}

.contact-icon.phone {
    background-color: rgba(43, 107, 165, 0.1);
    color: var(--color-secondary);
}

.contact-icon.location {
    background-color: rgba(247, 181, 56, 0.1);
    color: var(--color-accent);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-details span {
    display: block;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.contact-details a {
    color: var(--color-secondary);
}

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

.contact-details p {
    color: var(--color-text);
}

.contact-image {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-200);
}

.contact-image img {
    width: 100%;
    height: 256px;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* === FOOTER === */
.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    margin-top: auto;
}

.footer-content {
    padding: 3rem 1rem;
}

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

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

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 0.875rem;
    color: var(--color-gray-300);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--color-gray-300);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-gray-300);
    margin-bottom: 0.75rem;
}

.footer-contact-item svg {
    width: 16px;
    height: 16px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    color: var(--color-gray-300);
}

.footer-social a:hover {
    color: var(--color-white);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid var(--color-gray-600);
    padding: 1.5rem 1rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--color-gray-300);
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--color-primary);
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast-title {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 640px) {
    .hero {
        min-height: 500px;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 1.5rem;
    }
}
