/* HSP Custom CSS */

/* Gradient definitions */
.hero-gradient {
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 35%, #3b0764 65%, #6b21a8 85%, #9b2257 100%);
}

.btn-plasma {
    background: linear-gradient(135deg, #9b2257 0%, #6b21a8 100%);
    transition: all 0.2s ease;
}

.btn-plasma:hover {
    background: linear-gradient(135deg, #7f1d44 0%, #5b1a8e 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(155, 34, 87, 0.3);
}

/* Glass morphism */
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Card hover effect */
.card-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Section title gradient */
.section-title {
    background: linear-gradient(135deg, #0a1628 30%, #9b2257 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}



/* Dark section title fix: .section-title uses navy/magenta gradient text, which becomes hard to read on dark navy backgrounds. */
.section-title-light {
    background: linear-gradient(135deg, #ffffff 25%, #f9a8d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Particle animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
    33% { transform: translateY(-20px) rotate(120deg); opacity: 0.8; }
    66% { transform: translateY(-10px) rotate(240deg); opacity: 0.4; }
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
}

/* Navbar */
nav.sticky {
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

/* Mobile off-canvas menu */
body > nav.fixed {
    z-index: 999900 !important;
}

#mobileMenuBtn {
    position: relative;
    z-index: 999995 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
}

#mobileMenuOverlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(10, 22, 40, 0.58) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 999980 !important;
    display: block !important;
}

#mobileMenuOverlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#mobileMenu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: min(84vw, 340px) !important;
    max-width: 340px !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.28s ease, visibility 0.28s ease;
    z-index: 999990 !important;
    display: block !important;
    visibility: hidden;
    pointer-events: none;
}

#mobileMenu.open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
}

body.mobile-menu-open {
    overflow: hidden;
    touch-action: none;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-link:hover,
.mobile-nav-sublink:hover {
    color: #9b2257;
}

.mobile-nav-sublink {
    display: block;
    padding: 0.55rem 0;
    font-size: 0.86rem;
    font-weight: 500;
    color: #6b7280;
}

.mobile-contact-btn {
    display: block;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    text-align: center;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    background: linear-gradient(135deg, #9b2257 0%, #6b21a8 100%);
}

@media (min-width: 768px) {
    #mobileMenuOverlay,
    #mobileMenu {
        display: none !important;
    }
}

/* Prevent the desktop corporate dropdown from closing while moving the mouse to submenu items. */
.dropdown-menu {
    margin-top: 0 !important;
}

/* Prose styles for HTML content */
.prose h1, .prose h2, .prose h3 { font-weight: 700; margin-bottom: 0.5em; color: #0a1628; }
.prose h1 { font-size: 1.5rem; }
.prose h2 { font-size: 1.25rem; }
.prose h3 { font-size: 1.1rem; }
.prose p { margin-bottom: 1em; line-height: 1.7; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1em; }
.prose ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1em; }
.prose li { margin-bottom: 0.25em; }
.prose a { color: #9b2257; text-decoration: underline; }
.prose a:hover { color: #7f1d44; }
.prose strong { font-weight: 600; }
.prose em { font-style: italic; }
.prose blockquote { border-left: 3px solid #9b2257; padding-left: 1rem; margin: 1rem 0; color: #6b7280; font-style: italic; }
.prose img { max-width: 100%; height: auto; border-radius: 0.5rem; margin: 1rem 0; }

/* Quill editor custom */
.ql-container { border-radius: 0 0 0.75rem 0.75rem !important; border-color: #e5e7eb !important; font-family: 'Inter', sans-serif !important; }
.ql-toolbar { border-radius: 0.75rem 0.75rem 0 0 !important; border-color: #e5e7eb !important; }
.ql-editor { min-height: 200px; font-size: 14px; }

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* WhatsApp float button */
.whatsapp-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 52px;
    height: 52px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Form focus ring */
input:focus, textarea:focus, select:focus {
    outline: none;
}

/* Print styles */
@media print {
    nav, footer, .whatsapp-btn { display: none !important; }
}

/* WordPress logo sizing */
.custom-logo-link { display:flex; align-items:center; }
.custom-logo { max-height:54px; width:auto; object-fit:contain; }
@media (max-width: 768px) { .custom-logo { max-height:46px; } }
