/* FILE: assets/css/global.css */

/* Root Variables */
:root {
    /* Primary Colors */
    --primary-color: #1a3a5c;
    --primary-dark: #0f2438;
    
    /* Accent Colors */
    --accent-color: #ff6b35;
    --accent-hover: #e55a2b;
    --secondary-color: #2ecc71;
    
    /* Background Colors */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    
    /* Text Colors */
    --text-dark: #2c3e50;
    --text-gray: #6c757d;
    --text-light: #95a5a6;
    
    /* Functional Colors */
    --border-color: #e0e0e0;
    --success-color: #25d366;
    --white: #ffffff;
    --dark-color: #212529;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}
.hidden{
    text-align: center;
}
.lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-gray);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* Header Styles */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-white);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 15px rgba(26, 58, 92, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand img {
    max-width: 220px;
    height: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* ===============================
   Unified Navbar Underline Style
   =============================== */

.navbar-nav .nav-link {
    position: relative;
}

/* underline */
.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

/* hover + active */
.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 80%;
}


.navbar-nav .nav-link:hover {
    color: var(--accent-color);
}

.navbar-nav .nav-link.active {
    color: var(--accent-color);
}

.navbar-nav .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
}

/* Main Content */
#main-content {
    min-height: 60vh;
}

/* Section Styles */
section {
    position: relative;
}

.bg-light {
    background-color: var(--light-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Button Overrides */
.btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, #d14e23 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 53, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #25d366 0%, #1fb855 100%);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #1fb855 0%, #1a9d4a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--white);
}

.btn-light:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.3);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Footer Styles */
.site-footer {
    background-color: var(--primary-dark);
    color: var(--white);
}

.footer-logo {
    max-width: 180px;
    height: auto;
}

.site-footer h3,
.site-footer h4 {
    color: var(--white);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--accent-color);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.site-footer address {
    font-style: normal;
    margin-bottom: 0;
}

/* Utility Classes */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.text-center {
    text-align: center;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .navbar-brand img {
        max-width: 150px;
    }
    
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */

button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ================================
   Floating Action Buttons
   ================================ */

.floating-actions {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: all 0.25s ease;
}

/* Hover effect */
.fab:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

/* Call Button (Brand Primary) */
.fab-call {
    background-color: var(--primary-color);
}

.fab-call:hover {
    background-color: var(--primary-dark);
}

/* WhatsApp Button (Success Color) */
.fab-whatsapp {
    background-color: var(--success-color);
}

.fab-whatsapp:hover {
    filter: brightness(0.9);
}

/* Icon Alignment */
.fab i {
    line-height: 1;
}

/* Mobile Optimization */
@media (max-width: 576px) {
    .floating-actions {
        right: 16px;
        bottom: 16px;
    }

    .fab {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
/* ================================
   WhatsApp Pulse Animation
   ================================ */

.fab-whatsapp {
    position: relative;
}

.fab-whatsapp::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: var(--success-color);
    opacity: 0.4;
    animation: whatsappPulse 2.2s infinite;
    z-index: -1;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.45;
    }
    70% {
        transform: scale(1.6);
        opacity: 0;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}
/* ================================
   Sticky Mobile Bottom Bar
   ================================ */

.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    display: flex;
    z-index: 9998;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
}

/* Buttons */
.mbb-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

/* Call Button */
.mbb-call {
    background-color: var(--primary-color);
}

/* WhatsApp Button */
.mbb-whatsapp {
    background-color: var(--success-color);
}

/* Icons */
.mbb-btn i {
    font-size: 18px;
}

/* Prevent content overlap */
body {
    padding-bottom: 64px;
}

/* Desktop: Hide completely */
@media (min-width: 768px) {
    .mobile-bottom-bar {
        display: none;
    }

    body {
        padding-bottom: 0;
    }
}
/* Hide floating buttons on mobile when bottom bar is active */
@media (max-width: 767px) {
    .floating-actions {
        display: none;
    }
}
/* ===============================
   Locations Dropdown Icon Style
   =============================== */

.custom-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

/* Custom arrow */
.custom-dropdown .dropdown-icon {
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: 2px;
}

/* Rotate arrow on hover (desktop) */
@media (hover: hover) and (pointer: fine) {
    .nav-item.dropdown:hover .dropdown-icon {
        transform: rotate(-135deg);
    }
}

/* Rotate arrow when dropdown is open (mobile click) */
.nav-item.dropdown.show .dropdown-icon {
    transform: rotate(-135deg);
}

/* Disable Bootstrap dropdown caret completely */
.navbar-nav .dropdown-toggle::after {
    display: none !important;
    content: none !important;
}
/* ===============================
   Navbar Dropdown on Hover (Desktop)
   =============================== */

/* Enable hover only on devices that support hover */
@media (hover: hover) and (pointer: fine) {

    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    /* Keep dropdown open when hovering menu */
    .navbar-nav .dropdown-menu:hover {
        display: block;
    }
}
