/*
Theme Name: GrupoSaru Theme
Author: Gemini
Description: Custom theme for GrupoSaru tailored for Elementor.
Version: 1.0.0
Text Domain: gruposaru
*/

:root {
    --primary-color: #011F41;
    --secondary-color: #f1f1f1;
    --text-color: #333;
}

body {
    font-family: "Arial", sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* Footer Styles */
.site-footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 40px 0;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

.footer-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    display: flex;
    gap: 20px;
}

/* Prevent Margin Collapse on Main Content usually caused by H1 or Elementor Sections */
.site-main::before {
    content: '';
    display: table;
}

html,
body {
    margin-top: 0 !important;
}

/* Header Styles */
.transparent-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding: 20px 0;
}

/* Adjust for Admin Bar - Only if HTML margin is disabled */
body.admin-bar .transparent-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .transparent-header {
        top: 46px;
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1130px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-branding .custom-logo-link img {
    max-height: 80px;
    /* Adjust as needed */
    width: auto;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0px;
}

.main-navigation a {
    color: #fff;
    /* White text for transparent background */
    text-decoration: none;
    font-weight: 600;
    /* text-transform: uppercase; Removed to allow natural case */
    font-size: 14px;
    padding: 5px 15px;
    /* Added padding for hover effect */
    border-radius: 50px;
    /* Pill shape */
    transition: background-color 0.3s ease;
    /* Smooth transition */
}

.main-navigation a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    /* Transparent white background */
    color: #fff;
    /* Ensure text remains white */
}

.footer-navigation a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.footer-navigation a:hover {
    text-decoration: underline;
}

.site-info {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 14px;
    opacity: 0.8;
}

/* -------------------------------------------
   Responsive Design
------------------------------------------- */

/* Hamburger Button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    /* Above mobile menu overlay */
    padding: 10px;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    /* White bars for transparent header */
    margin: 5px 0;
    transition: 0.3s;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu Media Query */
@media screen and (max-width: 768px) {

    .vector_2::after,
    .vector_1::after {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        /* Drawer width */
        height: 100vh;
        background-color: var(--primary-color);
        padding-top: 80px;
        /* Space for close button/header */
        transition: 0.3s ease-in-out;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
    }

    .main-navigation.toggled {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-navigation a {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
    }

    /* Footer Responsive */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-navigation ul {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.vector_1::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 165px;
    border-left: none;
    top: -70px;
    right: 84%;
    z-index: 999999;
    background-image: url('assets/img/vector_1.png');
    background-repeat: no-repeat;
}

.vector_2::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 165px;
    border-left: none;
    top: -27%;
    right: -20%;
    z-index: 999999;
    background-image: url('assets/img/vector_2.png');
    background-repeat: no-repeat;
}