/* ============================================
   MANEJE - Sistema de Gestão para Produção Animal
   Paleta de Cores: Verde Mar Claro
   ============================================ */

/* Variables */
:root {
    --verde-mar: #20B2AA;
    --verde-mar-escuro: #008B8B;
    --verde-mar-claro: #48D1CC;
    --verde-agua: #7FDBDA;
    --creme: #F0FAFA;
    --azul-petroleo: #2C3E50;
    --branco: #FFFFFF;
    --cinza-escuro: #2C3E50;
    --cinza-medio: #5D6D7E;
    --cinza-claro: #f8f9fa;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--cinza-escuro);
    background-color: var(--creme);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: rgba(32, 178, 170, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--verde-mar-escuro);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--branco) !important;
}

.navbar-brand .brand-icon {
    background: var(--creme);
    color: var(--verde-mar);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.navbar-brand .brand-leaf {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-brand .brand-leaf::before {
    content: '';
    position: absolute;
    width: 36px;
    height: 36px;
    background: var(--creme);
    border-radius: 50% 0 50% 0;
    transform: rotate(45deg);
}

.navbar-brand .brand-leaf i {
    position: relative;
    z-index: 1;
    color: var(--verde-mar);
    font-size: 1.1rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    margin: 0 4px;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--branco) !important;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-nav .btn-caderno {
    background: var(--creme);
    color: var(--verde-mar) !important;
    font-weight: 600;
}

.navbar-nav .btn-caderno:hover {
    background: var(--branco);
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--verde-mar) 0%, var(--verde-mar-escuro) 100%);
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=1920&h=1080&fit=crop') center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.8) 0%, rgba(0, 139, 139, 0.85) 100%);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(245, 245, 220, 0.2);
    color: var(--creme);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(245, 245, 220, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    color: var(--branco);
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-title .text-highlight {
    color: var(--creme);
    position: relative;
}

.hero-title .text-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(245, 245, 220, 0.3);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-primary-custom {
    background: var(--creme);
    color: var(--verde-mar);
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: var(--branco);
    color: var(--verde-mar-escuro);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-custom {
    background: transparent;
    color: var(--branco);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 12px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--branco);
    color: var(--branco);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--creme);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-image-container {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: var(--branco);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--cinza-escuro);
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--verde-mar);
}

.floating-card.card-1 {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 45%;
    left: 5%;
    animation-delay: 0.5s;
}

.floating-card.card-3 {
    bottom: 15%;
    right: 20%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.hero-wave svg {
    display: block;
    width: 100%;
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    padding: 100px 0;
}

.section-badge {
    display: inline-block;
    background: rgba(32, 178, 170, 0.1);
    color: var(--verde-mar);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.8rem;
    color: var(--cinza-escuro);
    margin-bottom: 20px;
}

.section-title .text-primary-custom {
    color: var(--verde-mar);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--cinza-medio);
    max-width: 600px;
    margin: 0 auto;
}

.section-text {
    font-size: 1.05rem;
    color: var(--cinza-medio);
    margin-bottom: 20px;
}

/* ============================================
   SOBRE SECTION
   ============================================ */
.sobre-section {
    background: var(--creme);
}

.sobre-image {
    position: relative;
}

.sobre-image img {
    border: 5px solid var(--branco);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--verde-mar);
    color: var(--branco);
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.experience-badge .text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.sobre-content {
    padding-left: 40px;
}

.features-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px 15px;
    background: var(--branco);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.feature-item i {
    color: var(--verde-mar);
    font-size: 1.3rem;
}

.feature-item span {
    font-weight: 500;
    color: var(--cinza-escuro);
}

/* ============================================
   FLUXO SECTION
   ============================================ */
.fluxo-section {
    background: linear-gradient(135deg, var(--verde-mar) 0%, var(--verde-mar-escuro) 100%);
    padding: 80px 0;
}

.fluxo-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
}

.fluxo-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    max-width: 150px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.fluxo-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.fluxo-icon {
    font-size: 2rem;
    color: var(--creme);
    margin-bottom: 15px;
}

.fluxo-content h4 {
    color: var(--branco);
    font-size: 1rem;
    margin-bottom: 8px;
}

.fluxo-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin: 0;
}

.fluxo-arrow {
    color: var(--creme);
    font-size: 1.5rem;
    align-self: center;
    opacity: 0.5;
}

/* ============================================
   CADEIAS SECTION
   ============================================ */
.cadeias-section {
    background: var(--branco);
}

.cadeia-card {
    background: var(--branco);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.cadeia-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.cadeia-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.cadeia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.cadeia-card:hover .cadeia-image img {
    transform: scale(1.1);
}

.cadeia-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
}

.cadeia-tag {
    background: var(--verde-mar);
    color: var(--branco);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.cadeia-body {
    padding: 25px;
}

.cadeia-body h3 {
    font-size: 1.3rem;
    color: var(--verde-mar);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.cadeia-body p {
    color: var(--cinza-medio);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.cadeia-species {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cadeia-species li {
    background: var(--creme);
    color: var(--verde-mar);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ============================================
   FUNCIONALIDADES SECTION
   ============================================ */
.funcionalidades-section {
    background: var(--creme);
}

.func-card {
    background: var(--branco);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.func-card:hover {
    border-color: var(--verde-mar);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.func-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--verde-mar) 0%, var(--verde-mar-claro) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--branco);
}

.func-card h4 {
    font-size: 1.1rem;
    color: var(--cinza-escuro);
    margin-bottom: 10px;
}

.func-card p {
    color: var(--cinza-medio);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   BENEFÍCIOS SECTION
   ============================================ */
.beneficios-section {
    background: linear-gradient(135deg, var(--verde-mar-escuro) 0%, var(--verde-mar) 100%);
}

.beneficios-list {
    margin-top: 30px;
}

.beneficio-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.beneficio-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.beneficio-icon {
    width: 50px;
    height: 50px;
    background: var(--creme);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.beneficio-icon i {
    font-size: 1.5rem;
    color: var(--verde-mar);
}

.beneficio-content h4 {
    color: var(--branco);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.beneficio-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

.beneficios-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--creme);
    padding: 80px 0;
}

.cta-content {
    background: linear-gradient(135deg, var(--verde-mar) 0%, var(--verde-mar-claro) 100%);
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

.cta-content h2 {
    color: var(--branco);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-light {
    background: var(--branco);
    color: var(--verde-mar);
    border: none;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 10px;
}

.cta-buttons .btn-light:hover {
    background: var(--creme);
    transform: translateY(-3px);
}

.cta-buttons .btn-outline-light {
    border: 2px solid var(--branco);
    color: var(--branco);
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 10px;
}

.cta-buttons .btn-outline-light:hover {
    background: var(--branco);
    color: var(--verde-mar);
}

/* ============================================
   FOOTER
   ============================================ */
.footer-section {
    background: var(--cinza-escuro);
    padding: 60px 0 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-brand .brand-icon {
    background: var(--verde-mar);
    color: var(--branco);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.footer-brand .brand-leaf {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-brand .brand-leaf::before {
    content: '';
    position: absolute;
    width: 36px;
    height: 36px;
    background: var(--verde-mar);
    border-radius: 50% 0 50% 0;
    transform: rotate(45deg);
}

.footer-brand .brand-leaf i {
    position: relative;
    z-index: 1;
    color: var(--branco);
    font-size: 1.1rem;
}

.footer-brand .brand-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--branco);
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-section h5 {
    color: var(--branco);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

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

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--verde-mar-claro);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 40px 0 20px;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.modal-header {
    background: var(--verde-mar);
    color: var(--branco);
    border: none;
    padding: 20px 25px;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 30px 25px;
}

.modal-body .input-group-text {
    background: var(--verde-mar);
    color: var(--branco);
    border: none;
}

.modal-body .form-control {
    border: 2px solid var(--creme);
    padding: 12px 15px;
}

.modal-body .form-control:focus {
    border-color: var(--verde-mar);
    box-shadow: 0 0 0 3px rgba(32, 178, 170, 0.2);
}

.modal-footer {
    border: none;
    padding: 15px 25px 25px;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }

    .fluxo-timeline {
        gap: 15px;
    }

    .fluxo-item {
        max-width: 130px;
        padding: 20px 15px;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 25px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .sobre-content {
        padding-left: 0;
        margin-top: 40px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .fluxo-arrow {
        display: none;
    }

    .fluxo-item {
        max-width: 45%;
    }
}

@media (max-width: 767px) {
    section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-item {
        flex: 1;
        min-width: 80px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .fluxo-item {
        max-width: 100%;
    }

    .experience-badge {
        right: 10px;
        bottom: -10px;
        padding: 15px 20px;
    }

    .experience-badge .number {
        font-size: 1.5rem;
    }

    .cta-content {
        padding: 40px 25px;
    }

    .cta-content h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 575px) {
    .navbar-brand .brand-text {
        font-size: 1.2rem;
    }

    .hero-section {
        padding-top: 100px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-primary-custom {
    color: var(--verde-mar) !important;
}

.bg-primary-custom {
    background-color: var(--verde-mar) !important;
}

/* Smooth scrolling offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}
