/**
 * AEROCS INTERNATIONAL — Layout, Header, Topbar & Footer Styles
 */

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.container-fluid {
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}

/* TOPBAR */
.site-topbar {
    background: #07172b;
    color: #94a3b8;
    font-size: 0.82rem;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.80rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.topbar-item:hover {
    color: var(--color-secondary-light);
}

.topbar-item i {
    color: var(--color-secondary-light);
    font-size: 0.85rem;
}

.topbar-badge {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.28);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.topbar-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}

.topbar-global-network {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 2px 11px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(2, 132, 199, 0.06));
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 20px;
    color: #f1f5f9;
    font-size: 0.76rem;
    letter-spacing: 0.01em;
}

.topbar-global-network i {
    color: #38bdf8;
    font-size: 0.85rem;
}

.topbar-global-network strong {
    color: #38bdf8;
    font-weight: 700;
}

.lang-dropdown-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition-fast);
}

.lang-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #38bdf8;
}

/* MAIN HEADER & NAVIGATION */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 37, 69, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(7, 19, 34, 0.25);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all var(--transition-normal);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.header-logo-link {
    display: flex;
    align-items: center;
    height: 52px;
    flex-shrink: 0;
}

.header-logo-img {
    height: 44px;
    width: auto;
    transition: transform var(--transition-fast);
}

.header-logo-link:hover .header-logo-img {
    transform: scale(1.02);
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav-list {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.3vw, 20px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link-item {
    font-family: var(--font-heading);
    font-size: 0.87rem;
    font-weight: 600;
    color: #e2e8f0;
    text-decoration: none;
    padding: 8px 3px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.nav-dropdown-icon {
    font-size: 0.70rem;
    color: #94a3b8;
    transition: transform var(--transition-fast);
}

.nav-link-item::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #38bdf8);
    border-radius: 2px;
    transition: width var(--transition-normal);
}

.nav-link-item:hover, .nav-link-item.active {
    color: #ffffff;
}

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

.nav-item-dropdown:hover .nav-dropdown-icon {
    transform: rotate(180deg);
    color: #38bdf8;
}

/* DROPDOWN MENUS */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 280px;
    background: #0a203c;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    padding: 12px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
}

.dropdown-menu-wide {
    min-width: 320px;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #e2e8f0;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.dropdown-link i {
    font-size: 1.3rem;
    color: #38bdf8;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.dropdown-link div strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.dropdown-link div span {
    display: block;
    font-size: 0.74rem;
    color: #94a3b8;
    line-height: 1.3;
    margin-top: 2px;
}

.dropdown-link:hover {
    background: rgba(56, 189, 248, 0.12);
}

.dropdown-link:hover i {
    transform: scale(1.15);
    color: #10b981;
}

.dropdown-link:hover div strong {
    color: #38bdf8;
}

/* HEADER ACTION CLUSTER */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-action-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.header-action-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-2px);
}

.action-badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.4);
    transition: transform var(--transition-fast);
}

.badge-hidden {
    display: none !important;
}

.header-cta-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all var(--transition-normal);
}

.header-cta-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
    transform: translateY(-2px);
}

/* HAMBURGER TOGGLE */
.mobile-nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 42px;
    height: 42px;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

.hamburger-bar {
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* QUICK SEARCH MODAL OVERLAY */
.search-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 19, 34, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.search-modal-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

.search-modal-container {
    width: 100%;
    max-width: 680px;
    padding: 0 20px;
}

.search-modal-box {
    background: #0b2545;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.search-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-icon {
    position: absolute;
    left: 16px;
    font-size: 1.2rem;
    color: #38bdf8;
}

.search-modal-input {
    width: 100%;
    background: #07172b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 14px 16px 14px 48px;
    font-size: 1rem;
    color: #ffffff;
    outline: none;
    transition: border-color var(--transition-fast);
}

.search-modal-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.search-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.search-modal-close:hover {
    background: #e11d48;
    color: #ffffff;
}

.search-shortcuts {
    margin-top: 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shortcuts-label {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
}

.search-tag {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.76rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.search-tag:hover {
    background: #38bdf8;
    color: #0b2545;
    font-weight: 600;
}

/* MOBILE OFFCANVAS DRAWER */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    height: 100vh;
    background: #081a30;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1600;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.is-active {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-logo {
    height: 38px;
    width: auto;
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-search-wrap {
    margin: 20px 0 10px;
}

.drawer-search-form {
    display: flex;
    position: relative;
}

.drawer-search-input {
    width: 100%;
    background: #040e1a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 40px 10px 14px;
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
}

.drawer-search-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 38px;
    background: transparent;
    border: none;
    color: #38bdf8;
    cursor: pointer;
}

.drawer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drawer-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.drawer-nav-link:hover, .drawer-nav-link.active {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.drawer-nav-link i {
    font-size: 1.1rem;
    color: #38bdf8;
}

.drawer-accordion-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 8px;
    text-align: left;
    transition: all var(--transition-fast);
}

.drawer-accordion-toggle span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawer-accordion-toggle i {
    font-size: 1.1rem;
    color: #38bdf8;
}

.accordion-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.drawer-accordion-group.is-open .accordion-arrow {
    transform: rotate(180deg);
}

.drawer-accordion-content {
    display: none;
    padding-left: 28px;
    padding-bottom: 8px;
}

.drawer-accordion-group.is-open .drawer-accordion-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-sublink {
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.drawer-sublink:hover {
    color: #38bdf8;
    background: rgba(255, 255, 255, 0.05);
}

.drawer-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-action-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.drawer-action-card:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
}

.drawer-action-card i {
    font-size: 1.3rem;
    color: #38bdf8;
}

.drawer-cta-wrap {
    margin-top: 10px;
}

/* FOOTER */
.site-footer {
    background: var(--color-primary-dark);
    color: #94a3b8;
    padding: 80px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col-about .footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-col-about p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #94a3b8;
    margin-bottom: 24px;
}

.footer-social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.social-btn:hover {
    background: var(--color-secondary);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-col-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--color-secondary);
}

.footer-menu-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu-links a {
    font-size: 0.88rem;
    color: #94a3b8;
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-menu-links a:hover {
    color: var(--color-secondary-light);
    transform: translateX(4px);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 0.88rem;
}

.f-contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.f-contact-item i {
    color: var(--color-secondary-light);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-bottom-bar {
    background: #040d18;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.82rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: #cbd5e1;
}

/* SECTION UTILITIES */
.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 680px;
    line-height: 1.65;
}

.section-header.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.badge-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(2, 132, 199, 0.1);
    color: var(--color-secondary);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

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

.text-success { color: var(--color-success) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-warning { color: var(--color-warning) !important; }

.btn-whatsapp-drawer {
    background: #25d366;
    border-color: #25d366;
    color: #ffffff !important;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
}

.btn-whatsapp-drawer:hover {
    background: #1ebc59;
    border-color: #1ebc59;
    color: #ffffff !important;
}
