/* style.css */

:root {
  --white: #ffffff;
  --primary-accent-color: #8fad15;
}

/* * =========================================
 * IMPORTS & GLOBAL
 * =========================================
 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

html {
	height: 100%;
}

body {
    background-color: #000;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    height: 100%;
}

/* * =========================================
 * UTILITY CLASSES
 * =========================================
 */

/* User-defined color utility */
.ug_color_green {
    color: var(--primary-accent-color);
}

/* Centers content vertically and horizontally */
.ug_content_centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    text-align: center;
}

.ug_width_100 {
	max-width: 100px;
}

.ug_responsive_width_50 {
    width: 100%;
}

@media (min-width: 768px) {
    .ug_responsive_width_50 {
        width: 50%;
    }
}

/* * =========================================
 * LAYOUTS
 * =========================================
 */

/* --- Layout: Split Screen (Box + Content) --- */
/* Used on Recon, Roadbook, Private, Contact */
.ug_layout_split {
    display: flex;
    align-items: center;
    min-height: 90vh;
}

#ug_new_compass_home {
	background-attachment: fixed;
	background-image: url('assets/images/jeep-new-compass-docs-background.webp');
	background-position: bottom left;
	background-repeat: no-repeat;
	background-size: contain;
}

body#ug_new_compass_home .ug_component_box {
    height: auto;
}

#ug_recon_login {
	background-attachment: fixed;
	background-image: url('assets/images/jeep-recon-login-background.webp');
	background-position: center right;
	background-repeat: no-repeat;
	background-size: contain;
}

#ug_roadbook {
	background-attachment: fixed;
	background-image: url('assets/images/jeep-new-compass-roadbook-background.webp');
	background-position: center right;
	background-repeat: no-repeat;
	background-size: contain;
}

#ug_private {
	background-attachment: fixed;
	background-image: url('assets/images/jeep-private-background.webp');
	background-position: bottom right;
	background-repeat: no-repeat;
	background-size: contain;
}

.ug_component_box.ug_contact_box {
	padding-bottom: 8rem;
}

.ug_overflow_image {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -80px; 
    max-width: 300px;
    width: 90%;
}

@media (max-width: 768px) {
    .ug_layout_split {
        flex-direction: column;
        min-height: auto;
    }
    
    #ug_new_compass_home,
    #ug_recon_login,
    #ug_roadbook,
    #ug_private {
		background-image: none;
	}
	
	.ug_overflow_image {
		display: none;
	}
	
	.ug_component_box.ug_contact_box {
		padding-bottom: 3rem;
	}
}

/* * =========================================
 * NAVIGATION
 * =========================================
 */

.ug_navbar {
	background-color: #202020;
    padding-top: 15px;
    padding-bottom: 15px;
    align-items: center; 
}

.ug_navbar .nav-link {
    color: var(--white);
    text-transform: uppercase;
    margin: 0 10px;
    transition: color 0.2s ease-out, transform 0.2s ease-out; 
}

.ug_navbar .nav-link.active {
    color: var(--primary-accent-color);
}

.ug_navbar .nav-link:not(.ug_btn_private):hover {
    color: var(--primary-accent-color);
    transform: translateY(-3px); 
}

/* Button style for Private Area */
.ug_navbar .nav-link.ug_btn_private {
    background-color: var(--primary-accent-color);
	background: linear-gradient(90deg,rgba(143, 173, 21, 1) 0%, rgba(185, 234, 27, 1) 100%);
    color: var(--white);
    border-radius: 50px;
    padding: 10px 45px;
    margin-left: 15px;
    transition: background-color 0.2s ease-out, transform 0.2s ease-out, color 0.2s ease-out;
}

.ug_navbar .nav-link.ug_btn_private:hover,
.ug_navbar .nav-link.ug_btn_private.active {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
}

/* * =========================================
 * COMPONENTS
 * =========================================
 */

/* --- Primary Button --- */
/* Replaces ug_btn_submit and ug_btn_route */
.ug_btn_primary {
    background-color: var(--primary-accent-color);
	background: linear-gradient(90deg,rgba(143, 173, 21, 1) 0%, rgba(185, 234, 27, 1) 100%);
    color: var(--white);
    text-transform: uppercase;
    border-radius: 50px;
    padding: 10px 40px;
    border: none;
    text-decoration: none;
    display: inline-block; /* For <a> tags */
    margin-right: 10px; /* Spacing */
}
.ug_btn_primary:hover {
    background: #fff;
    color: #000;
}

/* --- Reusable Gray Box --- */
/* Replaces ug_gray_box */
.ug_component_box {
    background-color: #6b6b6a;
    border-radius: 20px;
    padding: 3rem;
    height: 100%;
}

/* --- Reusable Image Display for Splits --- */
/* Replaces ug_split_image */
.ug_component_image_display {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* --- Custom Form Input --- */
.ug_form_control_custom {
    background-color: #6b6b6a;
    border: none;
    border-bottom: 2px solid #fff;
    border-radius: 0;
    color: #fff;
}
.ug_form_control_custom:focus {
    background-color: #6b6b6a;
    box-shadow: none;
    border-color: var(--primary-accent-color);
    color: #fff;
}
.ug_form_control_custom::placeholder {
    color: #ccc;
}

/* --- Home Component --- */
h1 sub {
	font-size: .3em;
}

/* --- Docs/Content Tabs (compass-content, etc.) --- */
.ug_docs_nav .nav-link {
    color: var(--white);
    text-transform: uppercase;
}

.ug_docs_nav .nav-link:hover,
.ug_docs_nav .nav-link.active {
	background-color: transparent;
    color: var(--primary-accent-color);
    font-weight: 700;
}
.ug_doc_item {
    text-align: center;
    margin-bottom: 2rem;
    color: #fff;
}
.ug_doc_item i {
    font-size: 80px;
    margin-bottom: 1rem;
    color: #fff;
}
.ug_doc_item p {
    color: #fff;
    font-weight: bold;
}
.ug_tab_content {
    display: none; /* Managed by jQuery */
}

#ug_photo_content img {
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: cover;
	width: 100%;
}

/* --- Compass Home Nav (compass-home) --- */
.ug_compass_home_nav .nav-link {
    color: var(--white);
    text-transform: uppercase;
    padding: 2rem 0;
    transition: color 0.2s ease, transform 0.2s ease;
}
.ug_compass_home_nav .nav-link:hover {
    color: var(--primary-accent-color);
    font-weight: 700;
}
@media (max-width: 768px) {
    .ug_compass_home_nav .nav-link:hover {
        transform: none;
    }
}

/* --- Roadbook Component --- */
.ug_roadbook_item {
    border-bottom: 1px solid #777;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}
.ug_roadbook_item:last-child {
    border-bottom: none; /* Remove border from last item */
}
.ug_roadbook_item h3 {
    color: var(--primary-accent-color);
    font-weight: bold;
}

/* --- Contact Page Tabs --- */
.ug_contact_nav .nav-link {
    color: var(--white);
    padding: 2rem;
    border-radius: 0;
}
.ug_contact_nav .nav-link.active,
.ug_contact_nav .nav-link:hover {
	background-color: transparent;
    color: var(--primary-accent-color);
    font-weight: 700;
}
.ug_contact_content {
    padding-left: 2rem;
}
.ug_contact_content h4 {
    color: var(--primary-accent-color);
    font-weight: bold;
}
.ug_contact_content p {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

/* * =========================================
 * ANIMATIONS
 * =========================================
 */
@keyframes ug_fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ug_anim_fade_in_up {
    opacity: 0;
    animation-name: ug_fadeInUp;
    animation-duration: 0.7s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

/* Animation delays */
.ug_anim_delay_1 { animation-delay: 0.2s; }
.ug_anim_delay_2 { animation-delay: 0.4s; }
.ug_anim_delay_3 { animation-delay: 0.6s; }


/* * =========================================
 * MODAL
 * =========================================

/* Rende l'icona e il testo cliccabili per il modal */
.ug_doc_item .ug_doc_item_clickable {
    text-decoration: none;
    color: white;
    display: block;
    transition: transform 0.2s ease;
}

/* Aggiunge un leggero effetto hover */
.ug_doc_item .ug_doc_item_clickable:hover {
    transform: scale(1.05);
    color: #b0c700; /* Colore verde Jeep */
}

/* Stile per i pulsanti di download */
.ug_doc_item .btn-outline-light {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
}

.modal {
    z-index: 99999;
}

/* Rende il box del modal trasparente per un look "solo video" */
.modal .modal-content {
    background: transparent;
    border: none;
}

/* Stile per il pulsante di chiusura personalizzato (sostituisce l'header) */
.ug_modal_close_btn {
    position: absolute;
    top: -20px;  /* Posizionalo sopra il video */
    right: 0px;
    z-index: 10;
    /* Usa il filtro drop-shadow per renderlo leggibile su sfondi chiari/scuri */
    filter: drop-shadow(0 0 3px rgba(0,0,0,0.7)); 
    font-size: 1.5rem; /* Opzionale: rendilo più grande */
}