/* ========================================
   VARIÁVEIS E RESET
   ======================================== */

:root {
    --color-primary: #053365;
    --color-secondary: #0e4f31;
    --color-dark: #303438;
    --color-white: #ffffff;
    --color-light-gray: #f5f5f5;
    --color-border: #e0e0e0;
    
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-dark);
    background-color: var(--color-white);
    line-height: 1.6;
}

/* ========================================
   CONTAINER E LAYOUT
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER E NAVEGAÇÃO
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 75px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-dark);
    transition: var(--transition);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #053365 0%, #0e4f31 100%);
    overflow: hidden;
    border-radius: 10px;
    margin: 5px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("assets/images/geotecnologia_final_v2.png"); 
    background-size: cover;
    background-position: center;
    opacity: 0.15; 
    z-index: 0;
    border-radius: 10px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
    color: #ffffff; 
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
    color: #ffffff; 
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* ========================================
   BOTÕES
   ======================================== */

.btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 16px 35px !important;
    border-radius: 12px !important; 
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
    border: none !important;
    min-width: 250px;
    gap: 10px;
    color: #ffffff !important;
}

.btn-primary {
    background: linear-gradient(135deg, #084682 0%, #053365 100%) !important;
    box-shadow: 0 4px 15px rgba(14, 79, 49, 0.3);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #1a7a4b 0%, #0e4f31 100%) !important;
    box-shadow: 0 4px 15px rgba(5, 51, 101, 0.3);
}

.btn-secondary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn i {
    color: #ffffff !important;
}

/* ========================================
   SEÇÕES GERAIS
   ======================================== */

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-dark);
    opacity: 0.8;
}

/* ========================================
   SEÇÃO QUEM SOMOS
   ======================================== */
.about {
    background-color: #303438;
    border-radius: 10px;
    margin: 5px; 
    color: #ffffff;
}
.about .section-title, 
.about .section-subtitle {
    color: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    color: #ffffff;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ffffff;
    text-align: justify;
}

.about-text p {
    margin-bottom: 20px;
    color: #ffffff;
}

.about-text h3 {
    color: #ffffff;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.value-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.value-card h3 {
    color: #303438;
    margin-bottom: 15px;
    font-weight: 700;
}

.value-card p {
    color: #303438;
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: left;
}

/* ========================================
   SEÇÃO SERVIÇOS
   ======================================== */
.services .section-title {
    color: #303438 !important;
    text-align: center;
    margin-bottom: 40px;
}

.services {
    background-color: #ffffff;
    border: 3px solid #ffffff;
    border-radius: 10px;
    margin: 5px; 
    padding: 60px 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #0e4f31;
    padding: 40px 30px;
    border-radius: 8px;
    border-left: 4px solid #0a3a24;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

.service-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.service-card h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    transition: all 0.3s ease;
}

.service-card:hover .service-number,
.service-card:hover h3,
.service-card:hover p {
    color: #0e4f31;
}

.service-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.service-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ffffff;
    font-weight: bold;
}

.service-card:hover .service-list li {
    color: #0e4f31;
}

.service-card:hover .service-list li::before {
    color: #0e4f31;
}

/* ========================================
   SEÇÃO CASES
   ======================================== */
.cases .section-title {
    color: #303438 !important;
    text-align: center;
    margin-bottom: 40px;
}

.cases {
    background-color: #ffffff;
    border-radius: 10px;       
    margin: 5px; 
    padding: 60px 20px;        
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.case-image {
    height: 220px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cases-banner {
    margin-bottom: 40px;
    text-align: center;
}

.cases-banner img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 12px;
}

.case-content {
    padding: 30px;
}

.case-tag {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.case-card h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.case-card p {
    color: var(--color-dark);
    opacity: 0.8;
    line-height: 1.7;
    text-align: justify;
}

/* ========================================
   SEÇÃO CONTATO
   ======================================== */
.contact .section-title {
    color: #ffffff !important;
    text-align: center;
    margin-bottom: 40px;
}

.contact .section-subtitle {
    color: #ffffff !important;
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.9rem; 
}

.contact {
    background-color: #0e4f31;
    border-radius: 10px;       
    margin: 5px; 
    padding: 60px 20px;        
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    color: #ffffff !important;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.contact-info p, 
.contact-info p strong, 
.contact-info .contact-description {
    color: #ffffff !important;
}

.contact-info a {
    color: #ffffff !important;
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--color-primary);
}

.contact-description {
    margin-top: 20px;
    opacity: 0.8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 14px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 1rem;
    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(5, 51, 101, 0.1);
}

.contact-form .btn {
    align-self: flex-start;
}

.social-links {
    margin-top: 25px;
    display: flex;
    justify-content: left;
    gap: 35px;
}

.social-links a {
    color: #ffffff;
    font-size: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #4CAF50;
    transform: scale(1.15);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0 20px;
    border-radius: 10px;       
    margin: 5px; 
}

.footer-content {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    opacity: 1;
}

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

.footer-section ul li {
    margin-bottom: 10px;
    color: #1a7a4b;
    opacity: 1;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-logo {
    height: 100px;
    width: auto;
    border-radius: 10px;
    overflow: hidden;
}

/* ========================================
   ANIMAÇÕES
   ======================================== */

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   RESPONSIVIDADE - TABLET
   ======================================== */

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-link::after {
        display: none;
    }

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

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

    .hero-buttons {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        flex-direction: column;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        min-width: auto;
        padding: 14px 20px !important;
    }

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

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .social-links {
        justify-content: center;
        gap: 25px;
    }
    
    .social-links a {
        font-size: 35px;
    }
}

/* ========================================
   RESPONSIVIDADE - CELULAR (ATÉ 480px)
   ======================================== */

@media (max-width: 480px) {
    .navbar-container {
        height: 70px;
        padding: 0 15px;
    }

    .logo-img {
        height: 45px;
    }

    .hero {
        margin-top: 0;
        min-height: 100vh;
        padding-top: 70px;
    }

    .hero-title {
        font-size: 1.8rem;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    .hero-buttons {
        gap: 12px;
        padding: 0 15px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 16px !important;
        font-size: 0.9rem;
    }

    .section {
        padding: 40px 0;
    }

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

    .section-subtitle {
        font-size: 0.95rem;
    }

    .section-header {
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .container {
        padding: 0 15px;
    }

    /* Ajustes cards */
    .service-card,
    .value-card {
        padding: 25px 18px;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

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

    .case-content {
        padding: 18px;
    }

    .case-card h3 {
        font-size: 1.2rem;
    }

    /* Ajuste textos */
    .about-text {
        font-size: 0.95rem;
        text-align: justify;
        padding: 0 5px;
    }

    .value-card p {
        font-size: 0.9rem;
    }

    /* Contato */
    .contact .section-subtitle {
        font-size: 1.3rem;
    }

    .contact-info h3 {
        font-size: 1.1rem;
    }

    .contact-info p {
        font-size: 0.9rem;
    }

    .contact-form .btn {
        width: 100%;
        align-self: center;
    }

    /* Formulário */
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 0.9rem;
    }

    /* Social links */
    .social-links {
        justify-content: center;
        gap: 20px;
    }
    
    .social-links a {
        font-size: 28px;
    }

    /* Footer */
    .footer {
        padding: 40px 15px 20px;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        text-align: center;
    }
    
    .footer-section ul {
        text-align: center;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
    }

    /* Cases banner */
    .cases-banner img {
        border-radius: 8px;
    }
    
    .case-image {
        height: 180px;
    }
}

/* ========================================
   CELULAR MUITO PEQUENO (ATÉ 375px)
   ======================================== */

@media (max-width: 375px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .btn {
        max-width: 260px;
        padding: 10px 14px !important;
        font-size: 0.85rem;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .social-links a {
        font-size: 24px;
    }
}