/* LISIS Website Styles */

/* CSS Variables */
:root {
    --golden-green: #184339;
    --steel-grey: #738691;
    --rock-blue: #A1B3CB;
    --dawn-pink: #ECECEC;
    --white: #FFFFFF;
    --font-title: 'Jost', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(24, 67, 57, 0.1);
    --border-radius: 12px;
    --container-max: 1200px;
    --container-padding: 1rem;
    --section-space: 4rem;
    --grid-gap: 2rem;
}
 
@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
    --section-space: 6rem;
    --grid-gap: 2.5rem;
  }
}

/* Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Reserve scrollbar space to keep layout width consistent across browsers */
    scrollbar-gutter: stable;
    /* Prevent horizontal scrollbar */
    overflow-x: hidden;
    /* Force consistent width calculation across browsers */
    width: 100%;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--golden-green);
    background-color: var(--white);
    overflow-x: hidden;
    /* Ensure body takes full width consistently */
    width: 100%;
    margin: 0;
    padding: 0;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    /* Force consistent box model across browsers */
    box-sizing: border-box;
    width: 100%;
}

/* Container específico para hero com mais padding lateral */
.hero-content .container {
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

p {
    margin-bottom: 1rem;
    color: var(--steel-grey);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: none;
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
    border-bottom: none;
}

/* Navbar state when scrolled */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: 5px;
    padding-right: 5px;
    /* Force consistent box model */
    box-sizing: border-box;
    width: 100%;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--golden-green);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    /* Prevent any text rendering issues in Chrome */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

.nav-link::before {
    content: none !important;
}

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

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--golden-green);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 70px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    color: var(--golden-green);
    overflow: hidden;
    margin-top: 70px;
    padding: var(--section-space) 0;
    box-sizing: border-box;
    width: 100%;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: -1;
}

.hero-background::before {
    content: none;
}

.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,67,57,0.55) 0%, rgba(24,67,57,0.25) 40%, rgba(24,67,57,0.15) 100%); z-index: 0; }

.hero-slides { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0; transform: scale(1.02); transition: opacity 1s ease-in-out, transform 6s ease; will-change: opacity, transform; }
.hero-slide.active { opacity: 1; transform: scale(1.06); }

/* Hero slider arrows */
.hero-arrows { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; z-index: 2; pointer-events: none; }
.hero-arrow { pointer-events: auto; width: 44px; height: 44px; border-radius: 9999px; border: 1.5px solid rgba(255,255,255,0.6); background: rgba(0,0,0,0.35); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .2s ease, background-color .2s ease, border-color .2s ease; backdrop-filter: blur(2px); margin: 0 12px; }
.hero-arrow:hover { transform: scale(1.06); background: rgba(0,0,0,0.55); border-color: rgba(255,255,255,0.85); }
.hero-arrow span { font-size: 22px; line-height: 1; }
.hero-arrow.prev { margin-left: 16px; }
.hero-arrow.next { margin-right: 16px; }
@media (max-width: 768px) { .hero-arrow { width: 38px; height: 38px; } .hero-arrow span { font-size: 18px; } }
@media (max-width: 480px) { .hero-arrow { width: 34px; height: 34px; } .hero-arrows { align-items: center; } }

/* Improve hero text contrast over backgrounds */
.hero .hero-welcome,
.hero .hero-title,
.hero .hero-subtitle { color: #FFFFFF; text-shadow: 0 2px 8px rgba(0,0,0,0.35); }

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

.hero-content .container {
    max-width: var(--container-max);
    margin: 0 auto;
    box-sizing: border-box;
}

/* Two-column layout for hero */
.hero-flex {
    display: flex;
    align-items: center;
    gap: 2rem;
    box-sizing: border-box;
    max-width: 100%;
}

.hero-text {
    flex: 0 0 60%;
    max-width: 60%;
}

.hero-visual {
    flex: 1 1 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual img {
    width: 100%;
    max-width: 380px;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    filter: drop-shadow(0 12px 24px rgba(24, 67, 57, 0.15));
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
    display: block;
}

.hero-welcome {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--golden-green);
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 1.1s forwards;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-align: center;
    min-width: 180px;
}

/* Smaller CTA buttons in hero only */
.hero .cta-button {
    padding: 0.8rem 1.4rem;
    font-size: 1rem;
    min-width: 150px;
}

.cta-button.primary {
    background: var(--rock-blue);
    color: var(--white);
}

.cta-button.primary:hover {
    background: var(--golden-green);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(24, 67, 57, 0.2);
}

.cta-button.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-button.secondary:hover {
    background: var(--white);
    color: var(--golden-green);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

/* Hero-specific override for 'Ver Projectos' button */
.hero .cta-button.secondary {
    background: var(--golden-green);
    color: var(--white);
    border: none;
}

.hero .cta-button.secondary:hover {
    background: var(--steel-grey);
    color: var(--golden-green);
}

/* Partners Section */
.partners {
    padding: var(--section-space) 0;
    background: #025373;
    overflow: hidden;
}

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

.partners-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 3rem;
    font-weight: 500;
}

/* Partners Carousel */
.partners-carousel-wrapper {
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.partners-carousel {
    display: flex;
    gap: 3rem;
    animation: scroll-partners 20s linear infinite;
    width: fit-content;
    max-width: none;
}

.partners-carousel:hover {
    animation-play-state: paused;
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 120px;
    min-width: 200px;
    flex-shrink: 0;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(24, 67, 57, 0.15);
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition);
}

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

/* Responsive adjustments for partners */
@media (max-width: 768px) {
    .partners-carousel {
        gap: 2rem;
        animation-duration: 15s;
    }
    
    .partner-logo {
        height: 100px;
        min-width: 160px;
        padding: 1rem;
    }
    
    .partner-logo img {
        max-height: 60px;
    }
}

/* What We Do Section */
.what-we-do {
    padding: var(--section-space) 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: var(--golden-green);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--grid-gap);
    margin-top: 3rem;
    max-width: 100%;
    overflow: hidden;
}

.service-column h3 {
    color: var(--golden-green);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-column h3 i {
    font-size: 1.5rem;
    color: var(--rock-blue);
}

.service-column ul {
    list-style: none;
}

.service-column li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--dawn-pink);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.service-column li:hover {
    padding-left: 1rem;
    background: rgba(161, 179, 203, 0.05);
}

.service-column li i {
    color: var(--rock-blue);
    font-size: 0.9rem;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: var(--section-space) 0;
    background: var(--dawn-pink);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--grid-gap);
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(24, 67, 57, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--rock-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--golden-green);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    color: var(--golden-green);
    margin-bottom: 1rem;
}

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

/* Footer */
.footer {
    background: var(--white);
    color: var(--golden-green);
    padding: calc(var(--section-space) - 2rem) 0 1rem;
}

/* Tipografia no rodapé */
.footer p {
    color: var(--steel-grey);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1.5px solid var(--golden-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--golden-green);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Footer links (global) */
.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin: 0.35rem 0;
}

.footer-section ul li a {
    text-decoration: none;
    color: var(--golden-green);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.footer-section ul li a::before {
    content: '›';
    color: rgba(24, 67, 57, 0.6);
    font-weight: 700;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--golden-green);
    background: rgba(24, 67, 57, 0.06);
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(24, 67, 57, 0.08);
}

.footer-section ul li a:hover::before {
    color: var(--golden-green);
    transform: translateX(2px);
}

.footer-section ul li a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(24, 67, 57, 0.25);
    background: rgba(24, 67, 57, 0.06);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(24, 67, 57, 0.12);
    color: var(--steel-grey);
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Coming Soon Section */
.coming-soon {
    padding: var(--section-space) 0;
    background: var(--dawn-pink);
    text-align: center;
}

.coming-soon-content {
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-content i {
    font-size: 5rem;
    color: var(--rock-blue);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.coming-soon-content h2 {
    color: var(--golden-green);
    font-size: 3rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.coming-soon-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.coming-soon-content .cta-button {
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

/* Page Header for other pages */
.page-header {
    background: var(--white);
    color: var(--golden-green);
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--steel-grey);
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

/* Active Navigation Link */
.nav-link.active {
    color: var(--golden-green);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        max-width: 100vw;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 1px solid var(--golden-green);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content .container {
        padding: 0 var(--container-padding);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .cta-button {
        min-width: 200px;
    }
    .hero .cta-button {
        min-width: 160px;
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }

    /* Stack hero columns on mobile */
    .hero-flex {
        flex-direction: column;
        gap: 1.5rem;
        max-width: 100%;
    }
    .hero-text, .hero-visual {
        width: 100%;
        max-width: 100%;
    }
    .hero-text { flex: 0 0 100%; }
    .hero-visual img {
        max-width: 380px;
    }
    
    .container {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Media query para telas muito pequenas */
@media (max-width: 480px) {
    .hero-content .container {
        padding: 0 var(--container-padding);
        max-width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 var(--container-padding);
    }
    .hero-visual img {
        max-width: 320px;
    }
}

/* Events Section (Home) */
.events-section {
    padding: var(--section-space) 0;
    background: #025373;
}

.events-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.events-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.events-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.events-section .section-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

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

/* Featured Events Section */
.featured-events {
    padding: var(--section-space) 0;
    background: linear-gradient(135deg, rgba(2, 83, 115, 0.85) 0%, rgba(75, 0, 130, 0.75) 100%), url('../logos/eventos-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.featured-events::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 83, 115, 0.3);
    pointer-events: none;
}

.featured-events .container {
    position: relative;
    z-index: 1;
}

.featured-events .section-title h2 {
    color: var(--golden-green);
    text-align: center;
    margin-bottom: 3rem;
}

.featured-events .title-underline {
    width: 80px;
    height: 4px;
    background: var(--white);
    margin: 1rem auto 3rem;
}

/* Event Cards Animations */
.event-card,
.featured-grid .event-card,
.events-grid .event-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3) { animation-delay: 0.3s; }
.event-card:nth-child(4) { animation-delay: 0.4s; }
.event-card:nth-child(5) { animation-delay: 0.5s; }
.event-card:nth-child(6) { animation-delay: 0.6s; }

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

/* Hover animation for event cards */
.event-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Accessibility & Mobile Safety: ensure hero image is visible
   If animations are disabled (prefers-reduced-motion) or on small screens,
   do not rely on animation to remove initial opacity. */
@media (prefers-reduced-motion: reduce) {
    .hero-visual img {
        animation: none !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    .hero-visual img {
        opacity: 1;
    }
}
