/**
 * @package     NOE Template
 * @subpackage  Template
 * @author      TV Noe
 * @copyright   (C) 2025 TV Noe. All rights reserved.
 * @license     Internal use only – not for redistribution
 */

/* CSS Variables */
:root {
    --bg-color-primary: #102611;
    --cta-button-bg: var(--noe-primary-color, #04BA13);
}

/* CTA Button Styles */
.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: var(--cta-button-bg);
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    transition: opacity 0.3s;
    border: none;
    cursor: pointer;
}

.cta:hover {
    opacity: 0.9;
    text-decoration: none;
    color: #000;
}

.cta:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.cta .cta-text {
    display: inline-block;
}

.cta .cta-arrow {
    display: inline-block;
    font-size: 1.2rem;
    line-height: 1;
}

/* Responsive CTA */
@media (max-width: 767px) {
    .cta {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ubuntu', sans-serif;
    line-height: 1.6;
    color: #333;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color-primary);
}

/* Container - Mobile = default */
.container {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}



/* Header */
.site-header {
    background-color: #000;
    height: 60px;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Fixed header on mobile/tablet */
@media (max-width: 991px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    /* Add padding to body to prevent content from going under fixed header */
    body {
        padding-top: 80px;
    }
}

.site-header .container {
    display: flex;
    align-items: center;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.site-logo {
    margin-right: 30px;
    display: flex;
    align-items: center;
}

.site-logo a {
    padding-bottom: 8px;
}

.site-logo img {
    max-height: 30px;
    width: auto;
    display: block;
}

/* Hamburger menu toggle button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    z-index: 1001;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    height: 18px;
}

.menu-toggle-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.site-nav {
    flex: 1;
    display: flex;
    align-items: center;
    text-transform: lowercase;
}

.site-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.site-nav ul li {
    display: inline-block;
}

.site-nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 0;
    display: block;
    transition: border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

.site-nav ul li a:hover,
.site-nav ul li.active > a,
.site-nav ul li a.active {
    border-bottom: 2px solid #fff;
}

/* Hide menu on mobile/tablet, show hamburger */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }
    
    .site-nav {
        display: none;
    }
}

/* Off-canvas menu */
.off-canvas-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.off-canvas-overlay.active {
    display: block;
    opacity: 1;
}

.off-canvas-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.off-canvas-menu.active {
    transform: translateX(0);
}

.off-canvas-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.2s;
}

.off-canvas-close:hover {
    opacity: 0.7;
}

.off-canvas-content {
    padding: 60px 20px 20px 20px;
    flex: 1;
}

.off-canvas-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.off-canvas-content ul li {
    margin-bottom: 0;
}

.off-canvas-content ul li a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: padding-left 0.2s;
}

.off-canvas-content ul li a:hover,
.off-canvas-content ul li.active > a,
.off-canvas-content ul li a.active {
    padding-left: 10px;
    border-bottom-color: #fff;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Main content wrapper with gradient background */
.site-content-wrapper {
    background: linear-gradient(to bottom, 
        #071007 0%,
        #071007 20%,
        var(--bg-color-primary) 50%
    );
    color: #fff;
}

.site-main {
    flex: 1;
    padding: 20px 0 40px 0;
    background-color: transparent;
    color: #fff;
}

/* White text and links in main content area */
.site-main {
    color: #fff;
}

.site-main a {
    color: #fff;
}

.site-main a:hover {
    color: #fff;
    opacity: 0.8;
}

/* System messages */
#system-message-container {
    margin: 20px 0;
}

/* Joomla Alert Component */
joomla-alert {
    display: block !important;
    position: relative;
    background-color: transparent !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 8px;
    padding: 20px 50px 20px 20px;
    margin-bottom: 15px;
    color: #333 !important;
}

joomla-alert[type="info"] {
    border-color: #b3d9f2 !important;
}

joomla-alert[type="success"] {
    border-color: #b8e6b8 !important;
}

joomla-alert[type="warning"] {
    border-color: #ffe0b3 !important;
}

joomla-alert[type="error"],
joomla-alert[type="danger"] {
    border-color: #f5b7b1 !important;
}

joomla-alert .alert-heading {
    display: flex !important;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333 !important;
    padding-right: 30px;
}

joomla-alert .alert-heading .visually-hidden {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 0 0 8px !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    border-width: 0 !important;
    text-transform: capitalize;
    font-weight: 600;
    color: #333 !important;
    font-size: 1.1rem;
}

joomla-alert .alert-heading .info,
joomla-alert .alert-heading .success,
joomla-alert .alert-heading .warning,
joomla-alert .alert-heading .error,
joomla-alert .alert-heading .danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: bold;
}

joomla-alert[type="info"] .alert-heading .info {
    background-color: #2196F3;
    color: #fff;
}

joomla-alert[type="success"] .alert-heading .success {
    background-color: #4CAF50;
    color: #fff;
}

joomla-alert[type="warning"] .alert-heading .warning {
    background-color: #FF9800;
    color: #fff;
}

joomla-alert[type="error"] .alert-heading .error,
joomla-alert[type="danger"] .alert-heading .danger {
    background-color: #F44336;
    color: #fff;
}

joomla-alert .alert-wrapper {
    margin-top: 0;
}

joomla-alert .alert-message {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333 !important;
    font-size: 0.95rem;
}

joomla-alert .alert-message:last-child {
    margin-bottom: 0;
}

joomla-alert .joomla-alert--close {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    color: #666 !important;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 8px;
    width: 36px;
    height: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 0 8px 0 0;
    transition: color 0.2s;
    z-index: 10;
    margin: 0 !important;
}

joomla-alert .joomla-alert--close:hover {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    color: #000 !important;
}

joomla-alert .joomla-alert--close:focus {
    outline: 2px solid #666;
    outline-offset: -2px;
}

joomla-alert .joomla-alert--close span {
    line-height: 1;
    color: inherit !important;
}

joomla-alert a {
    color: #0066cc !important;
    text-decoration: underline;
}

joomla-alert a:hover {
    color: #0052a3 !important;
    text-decoration: underline;
}

/* System messages in dark sections - keep light text */
.site-main joomla-alert,
.position-bottom joomla-alert,
.position-social joomla-alert {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.site-main joomla-alert .alert-heading,
.position-bottom joomla-alert .alert-heading,
.position-social joomla-alert .alert-heading {
    color: #fff !important;
}

.site-main joomla-alert .alert-heading .visually-hidden,
.position-bottom joomla-alert .alert-heading .visually-hidden,
.position-social joomla-alert .alert-heading .visually-hidden {
    color: #fff !important;
}

.site-main joomla-alert .alert-message,
.position-bottom joomla-alert .alert-message,
.position-social joomla-alert .alert-message {
    color: #fff !important;
}

.site-main joomla-alert a,
.position-bottom joomla-alert a,
.position-social joomla-alert a {
    color: #90caf9 !important;
}

.site-main joomla-alert a:hover,
.position-bottom joomla-alert a:hover,
.position-social joomla-alert a:hover {
    color: #bbdefb !important;
}

.site-main joomla-alert .joomla-alert--close,
.position-bottom joomla-alert .joomla-alert--close,
.position-social joomla-alert .joomla-alert--close {
    top: 0 !important;
    right: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.site-main joomla-alert .joomla-alert--close:hover,
.position-bottom joomla-alert .joomla-alert--close:hover,
.position-social joomla-alert .joomla-alert--close:hover {
    top: 0 !important;
    right: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    color: #fff !important;
}

/* Positions */
.position-top {
    padding: 10px 0;
    background-color: #f5f5f5;
}

.position-bottom {
    padding: 20px 0;
    background-color: transparent;
}

/* White text and links in position-bottom (same as site-main) */
.position-bottom,
.position-bottom * {
    color: #fff;
}

.position-bottom a {
    color: #fff;
}

.position-bottom a:hover {
    color: #fff;
    opacity: 0.8;
}

/* Footer */
.site-footer {
    background-color: #000;
    color: #fff;
    padding: 30px 0 0 0;
    margin-top: auto;
}

/* Footer modules - ul lists as links without bullets */
.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer ul li {
    display: block;
    margin-bottom: 8px;
}

.site-footer ul li a {
    color: #fff;
    text-decoration: none;
    display: block;
}

.site-footer ul li a:hover {
    text-decoration: underline;
}

.position-footer {
    margin-bottom: 20px;
}

.position-social {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #555;
    background-color: var(--bg-color-primary);
    color: #fff;
}

.position-social,
.position-social * {
    color: #fff;
}

.position-social a {
    color: #fff;
}

.position-social a:hover {
    color: #fff;
    opacity: 0.8;
}

/* Footer divider - thin white line full width */
.footer-divider {
    width: 100%;
    height: 1px;
    background-color: #fff;
    margin: 0;
}

/* Footer copyright */
.footer-copyright {
    height: 60px;
    display: flex;
    align-items: center;
    text-align: left;
    color: #fff;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 767px) {
    .site-header {
        height: auto;
        min-height: 80px;
        flex-wrap: wrap;
    }
    
    .site-header .container {
        flex-wrap: wrap;
    }
    
    .site-logo {
        margin-right: 15px;
    }
    
    .site-logo img {
        max-height: 50px;
    }
    
    .site-nav ul {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .site-main {
        padding: 15px 0;
    }
    
    .site-footer {
        padding: 20px 0;
    }
}

