/* ================================================
   CORPORATIVO KOSMOS - MAIN STYLESHEET
   ================================================ */

/* CSS Variables */
:root {
    --primary-color: #E41D26;
    --secondary-color: #1a1a1a;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --font-primary: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ================================================
   HEADER STYLES
   ================================================ */
.header-wrapper {
    position: relative;
    z-index: 1000;
}

.header-main {
    background: var(--white);
    padding: 15px 0;
    transition: var(--transition);
}

.header-main.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: var(--shadow);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.main-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area img {
    max-width: 207px;
    height: auto;
}

/* Navigation */
.header-nav nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-nav nav ul li {
    position: relative;
}

.header-nav nav ul li a.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    padding: 10px 0;
    position: relative;
}

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

.header-nav nav ul li a.nav-link:hover::after {
    width: 100%;
}

.header-nav nav ul li a.nav-link:hover {
    color: var(--primary-color);
}

/* Dropdown Menu */
.has-dropdown .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-radius: 8px;
}

.has-dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-color);
}

.submenu li a:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

/* Actions Area */
.actions-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-btn {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.btn-primary-custom {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: #c4171f;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(228, 29, 38, 0.3);
}

/* ================================================
   BANNER SLIDER
   ================================================ */
.banner-swiper-wrapper {
    position: relative;
    margin-top: 0;
}

.banner-swiper {
    width: 100%;
    height: auto;
}

.banner-slide {
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.banner-slide .container {
    position: relative;
    z-index: 2;
}

.banner-content {
    padding: 100px 0;
}

.banner-content .pre {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.banner-content .pre span {
    color: var(--primary-color);
    font-weight: 700;
}

.banner-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.banner-content .disc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.banner-swiper .swiper-pagination {
    bottom: 30px;
}

.banner-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--white);
    opacity: 0.5;
}

.banner-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

/* ================================================
   SERVICES SECTION
   ================================================ */
.services-section {
    padding: 80px 0;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.service-card .icon-area {
    margin-bottom: 20px;
}

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

.service-card .title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card a:hover .title {
    color: var(--primary-color);
}

.service-card .disc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-card .link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.service-card .link:hover {
    gap: 15px;
}

/* ================================================
   ABOUT SECTION
   ================================================ */
.about-section {
    padding: 100px 0;
    position: relative;
}

.title-area-left .pre {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.title-area-left .title {
    font-size: 40px;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-content .disc {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-button-area {
    margin-top: 30px;
}

.thumbnail-about {
    position: relative;
}

.thumbnail-about img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--primary-color);
    color: var(--white);
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(228, 29, 38, 0.3);
}

.experience-badge .title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.experience-badge p {
    font-size: 14px;
    margin: 0;
}

/* ================================================
   COMPANIES SECTION
   ================================================ */
.companies-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.title-area-center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.title-area-center .pre {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.title-area-center .title {
    font-size: 40px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.title-area-center .text {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 25px;
}

.company-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.company-card .thumbnail {
    display: block;
    overflow: hidden;
}

.company-card .thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.company-card:hover .thumbnail img {
    transform: scale(1.1);
}

.company-card .content {
    padding: 20px;
    text-align: center;
}

.company-card .title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

/* ================================================
   SUSTAINABILITY SECTION
   ================================================ */
.sustainability-section {
    padding: 100px 0;
}

.sustainability-section .title-area-left .title {
    font-size: 36px;
}

.sustainability-content {
    margin-top: 20px;
}

.sustainability-content p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

.sustainability-images {
    position: relative;
    padding-left: 40px;
}

.sustainability-images .thumbnail-small {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.sustainability-images .thumbnail-small img {
    width: 227px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.sustainability-images .thumbnail-large {
    margin-top: 90px;
    margin-left: 100px;
}

.sustainability-images .thumbnail-large img {
    width: 100%;
    max-width: 528px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ================================================
   FOUNDATION SECTION
   ================================================ */
.foundation-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    position: relative;
    overflow: hidden;
}

.foundation-content {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: center;
}

.review-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.review-card .disc {
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.foundation-section .shape-left,
.foundation-section .shape-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
}

.foundation-section .shape-left {
    left: -100px;
}

.foundation-section .shape-right {
    right: -100px;
}

.foundation-section .shape-left img,
.foundation-section .shape-right img {
    max-width: 300px;
}

/* ================================================
   GALLERY SECTION
   ================================================ */
.gallery-section {
    padding: 80px 0;
    background: var(--white);
}

.gallery-swiper {
    width: 100%;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item .thumbnail {
    display: block;
}

.gallery-item .thumbnail img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .thumbnail img {
    transform: scale(1.05);
}

.gallery-pagination {
    margin-top: 30px;
}

/* ================================================
   MOBILE SIDEBAR
   ================================================ */
.side-bar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 9999;
    transition: var(--transition);
    padding: 30px;
    box-shadow: var(--shadow);
}

.side-bar.active {
    left: 0;
}

.close-icon-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
}

.mobile-menu-main {
    margin-top: 60px;
}

.mainmenu li {
    margin-bottom: 15px;
}

.mainmenu li a {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.mainmenu li a:hover {
    color: var(--primary-color);
}

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

.footer-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-component .logo-footer img {
    max-width: 180px;
}

.footer-component .disc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-component .title-area .title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
}

.pages-footer li {
    margin-bottom: 12px;
}

.pages-footer li a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.pages-footer li a:hover {
    color: var(--primary-color);
}

.pages-footer li a i {
    font-size: 10px;
    color: var(--primary-color);
}

.pages-footer li a p {
    margin: 0;
}

.footer-contact-wrapper .contact-single {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-contact-wrapper .contact-single .icon svg {
    width: 30px;
    height: 30px;
}

.footer-contact-wrapper .info-content .title {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 5px;
}

.footer-contact-wrapper .info-content span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ================================================
   RESPONSIVE STYLES
   ================================================ */
@media (max-width: 1199px) {
    .header-nav {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .footer-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991px) {
    .banner-title {
        font-size: 36px;
    }

    .title-area-left .title,
    .title-area-center .title {
        font-size: 32px;
    }

    .experience-badge {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 20px;
        display: inline-block;
    }

    .sustainability-images {
        padding-left: 0;
        margin-top: 40px;
    }

    .sustainability-images .thumbnail-small {
        position: relative;
    }

    .sustainability-images .thumbnail-large {
        margin-top: 20px;
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .banner-slide {
        min-height: 500px;
    }

    .banner-content {
        padding: 60px 0;
    }

    .banner-title {
        font-size: 28px;
    }

    .services-section {
        padding: 40px 0;
        margin-top: -40px;
    }

    .about-section,
    .companies-section,
    .sustainability-section,
    .foundation-section,
    .gallery-section {
        padding: 60px 0;
    }

    .title-area-left .title,
    .title-area-center .title {
        font-size: 28px;
    }

    .footer-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pages-footer li a {
        justify-content: center;
    }

    .footer-contact-wrapper .contact-single {
        justify-content: center;
    }

    .btn-primary-custom {
        padding: 10px 20px;
        font-size: 12px;
    }

    .foundation-section .shape-left,
    .foundation-section .shape-right {
        display: none;
    }
}

@media (max-width: 575px) {
    .actions-area .btn-primary-custom {
        display: none;
    }

    .logo-area img {
        max-width: 150px;
    }
}

/* ================================================
   ANIMATIONS
   ================================================ */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

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

/* Scroll reveal animation classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
