/*
Theme Name: CoolTraNz Custom
Description: A modern, responsive custom WordPress theme for CoolTraNz.
Author: CoolTraNz Team
Version: 1.0.1
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cooltranz-custom
Tags: responsive, modern, clean, custom-post-types, featured-images, threaded-comments
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
*/

/* ==========================================================================
   GLOBAL STYLES - Core styles used across all pages
   ========================================================================== */

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

/* Global HTML and body styles using CSS variables */
html, .site-html {
    font-size: var(--font-size-base, 16px);
    line-height: var(--body-line-height, 1.6);
    scroll-behavior: smooth;
}

body, .site-body {
    font-family: var(--body-font-family, "dm-sans", sans-serif);
    font-size: var(--body-font-size, 16px);
    font-weight: var(--body-font-weight, 400);
    color: var(--text-color, #333333);
    background-color: #fff;
    line-height: var(--body-line-height, 1.6);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography - Global text styles using granular font families */
h1, h2, h3, h4, h5, h6, .site-heading {
    font-weight: var(--heading-font-weight, 600);
    line-height: var(--heading-line-height, 1.2);
    margin-bottom: var(--heading-margin, 24px);
    color: var(--primary-color, #184267);
}

h1, .site-heading--h1 { 
    font-family: var(--h1-h2-font-family, "dm-sans", sans-serif);
    font-size: var(--h1-size, 48px); 
}

h2, .site-heading--h2 { 
    font-family: var(--h1-h2-font-family, "dm-sans", sans-serif);
    font-size: var(--h2-size, 36px); 
}

h3, .site-heading--h3 { 
    font-family: var(--h3-h4-font-family, "dm-sans", sans-serif);
    font-size: var(--h3-size, 28px); 
}

h4, .site-heading--h4 { 
    font-family: var(--h3-h4-font-family, "dm-sans", sans-serif);
    font-size: var(--h4-size, 22px); 
}

h5, .site-heading--h5 { 
    font-family: var(--h5-h6-font-family, "dm-sans", sans-serif);
    font-size: var(--h5-size, 18px); 
}

h6, .site-heading--h6 { 
    font-family: var(--h5-h6-font-family, "dm-sans", sans-serif);
    font-size: var(--h6-size, 16px); 
}


p, .site-paragraph {
    font-family: var(--body-font-family, "dm-sans", sans-serif);
    font-size: var(--body-font-size, 16px);
    font-weight: var(--body-font-weight, 400);
    line-height: var(--body-line-height, 1.6);
    margin-bottom: var(--paragraph-margin, 16px);
    color: var(--text-color, #333333);
}

a, .site-link {
    color: var(--accent-color, #00AEEF);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, .site-link:hover {
    color: var(--primary-color, #184267);
    text-decoration: underline;
}

/* Layout & Container - Essential layout elements */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-main {
    padding: 2rem 0;
}

/* ==========================================================================
   ESSENTIAL GLOBAL STYLES ONLY
   Note: Page-specific styles are loaded conditionally from /assets/css/pages/
   Header styles: /assets/css/header.css
   Footer styles: /assets/css/footer.css
   Sidebar styles: /assets/css/sidebar.css
   ========================================================================== */

/* ==========================================================================
   GLOBAL COMPONENTS - Essential buttons, forms, and utilities
   ========================================================================== */

/* Buttons - MOVED TO buttons.css for global customizer integration */
/* 
Legacy button styles removed to prevent conflicts with customizer-based button styling.
All button styles are now handled in assets/css/buttons.css which uses CSS variables 
from the WordPress Customizer for global button appearance control.
*/

/* Forms */
.site-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.site-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Basic Responsive Typography */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .site-heading--h1 { font-size: 2rem; }
    .site-heading--h2 { font-size: 1.75rem; }
    .site-heading--h3 { font-size: 1.5rem; }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   HERO BANNER VIDEO & CAROUSEL STYLES
   ========================================================================== */

/* Video Background Styles */
.hero-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Image Carousel Styles */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Carousel Navigation */
.carousel-navigation {
    position: absolute;
    bottom: 0;
    right: 0;
    /* transform: translateX(-50%); */
    display: flex;
    align-items: center;
    /* gap: 20px; */
    z-index: 20;
}

.carousel-nav {
    background: transparent;
    border: none;
    /* border-radius: 50%; */
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    border: 1px solid #fff;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 1);
    /* transform: scale(1.1); */
    color: #000;
}

.carousel-nav:focus {
    outline: 2px solid var(--accent-color, #00AEEF);
    outline-offset: 2px;
}

.carousel-nav svg {
    width: 20px;
    height: 20px;
}



/* Responsive Adjustments */
@media (max-width: 992px) {
    .carousel-navigation {
        bottom: 100px;
        gap: 15px;
        display: none;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-navigation {
        bottom: 80px;
        gap: 10px;
    }
    
    .carousel-nav {
        width: 36px;
        height: 36px;
    }
    
    .carousel-nav svg {
        width: 16px;
        height: 16px;
    }
}
