/* static/css/styles.css */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
    /* Unifying the various blues (#2060df, #0e1e3c, #1142d4) into a cohesive palette */
    --primary-color: #2060df;
    --primary-hover: #1749b8;
    --primary-dark: #0e1e3c;
    --secondary-color: #e2e8f0;
    --accent-gold: #d4af37;
    --text-main: #0e121b;
    --text-muted: #506795;
    --bg-light: #f8f9fa;
    
    /* Spacing & Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 50%;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-main);
    background-color: #fff;
}

/* --- Section Background Utilities --- */
.bg-soft {
    background-color: #f0f4fc; /* soft tint of primary blue, calm & brand-consistent */
}

.bg-soft-2 {
    background-color: #EBFBFC; /* soft tint of primary blue, calm & brand-consistent */
}

/* --- Common Utility Classes --- */
.text-primary-custom { color: var(--primary-color) !important; }
.bg-primary-custom { background-color: var(--primary-color) !important; color: white; }
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
    font-size: 0.85rem;
    padding: 0.45rem 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}
.btn-primary-custom:hover,
.btn-primary-custom:active,
.btn-primary-custom:focus,
.btn-primary-custom:focus-visible {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white !important;
    box-shadow: none;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
}

@media (min-width: 576px) {
    .btn-primary-custom {
        font-size: 0.95rem;
        padding: 0.55rem 1.4rem;
    }
}

@media (min-width: 768px) {
    .btn-primary-custom {
        font-size: 1rem;
        padding: 0.7rem 1.75rem;
    }
}

@media (min-width: 992px) {
    .btn-primary-custom {
        font-size: 1.1rem;
        padding: 0.85rem 2.25rem;
    }
}

@media (min-width: 1200px) {
    .btn-primary-custom {
        font-size: 1.2rem;
        padding: 0.9rem 2.75rem;
    }
}

/* Icon Alignment */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Card Standardization (Replacing Tailwind Shadows) */
.card-custom {
    border: 1px solid var(--secondary-color);
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background: white;
}
.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Hero Sections */
.hero-bg {
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-overlay {
    background: linear-gradient(rgba(14, 30, 60, 0.6), rgba(14, 30, 60, 0.6));
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.whatsapp-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
}

.whatsapp-float {
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    position: relative;
}

.whatsapp-close {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Desktop hover */
.whatsapp-container:hover .whatsapp-close {
    opacity: 1;
    pointer-events: auto;
}

/* Hidden state */
.whatsapp-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* --- Responsive Typography & Layout Utilities --- */
/* General responsive display heading adjustments */
.display-6 {
    line-height: 1.2;
}

@media (max-width: 767px) {
    .display-6 {
        font-size: 1.8rem;
    }
    
    /* Common gap adjustments for mobile */
    .gap-4 {
        gap: 1rem !important;
    }
    
    /* Common padding adjustments */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* --- Reusable Card Patterns --- */
.shadow-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shadow-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* --- Badge Styling --- */
.badge-custom {
    border-radius: 9999px;
    background-color: rgba(32, 96, 223, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* --- Icon Sizing Utilities --- */
.icon-lg {
    font-size: 2.5rem;
}

.icon-md {
    font-size: 2rem;
}

/* --- Flex & Layout Utilities --- */
.flex-gap-4 {
    display: flex;
    gap: 1rem;
}

@media (min-width: 768px) {
    .flex-gap-4 {
        gap: 1.5rem;
    }
}

/* --- Border & Frame Utilities --- */
.frame-decorative {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--primary-color);
    opacity: 0.25;
    border-radius: var(--radius-lg);
}

@media (max-width: 767px) {
    .frame-decorative {
        display: none;
    }
}

/* =============================================
   Language Selector
   ============================================= */

/* Hide Google Translate default UI elements */
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight {
    display: none !important;
}

body {
    top: 0 !important;
}

.skiptranslate {
    display: none !important;
}

/* Language Button */
.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 1.5px solid var(--secondary-color);
    border-radius: 2rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.lang-btn:hover,
.lang-btn:focus {
    border-color: var(--primary-color);
    color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(32, 96, 223, 0.08);
}

/* Remove Bootstrap dropdown arrow and add custom caret */
.lang-btn.dropdown-toggle::after {
    display: none;
}

.lang-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-current {
    font-size: 0.75rem;
    font-weight: 800;
}

/* Dropdown Menu */
.lang-menu {
    min-width: 160px;
    border: 1px solid var(--secondary-color);
    border-radius: 0.75rem;
    padding: 0.4rem 0;
    box-shadow: 0 8px 24px rgba(14, 30, 60, 0.1);
    margin-top: 0.5rem !important;
}

/* Dropdown Items */
.lang-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.lang-option:hover {
    background-color: rgba(32, 96, 223, 0.06);
    color: var(--primary-color);
}

.lang-option.active {
    color: var(--primary-color);
    background-color: rgba(32, 96, 223, 0.06);
}

.lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-name {
    flex: 1;
}

/* Checkmark — only visible on active item */
.lang-check {
    font-size: 0.85rem;
    opacity: 0;
    color: var(--primary-color);
    transition: opacity 0.15s ease;
}

.lang-option.active .lang-check {
    opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .lang-selector {
        display: flex;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }

    .lang-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: 1px solid var(--secondary-color);
        margin-top: 0.25rem !important;
    }
}
