/**
 * HCS Static Site Framework - Styles
 * Compatible with shared hosting (Hostinger)
 * Uses Tailwind CSS via CDN
 */

/* Custom CSS Variables */
:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --gray-dark: #374151;
    --gray-medium: #6b7280;
    --gray-light: #9ca3af;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Custom Utility Classes */
.gradient-bg {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
}

/* Navigation hover styles */
.nav-link.text-gray-500:hover {
    color: #374151 !important; /* text-gray-700 */
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    margin-top: -96px; /* Offset for navigation height */
    padding-top: 96px; /* Add padding to compensate */
}

/* Hero backgrounds using skyscraper photo */
.hero-home {
    background: url('/images/Skyscrapers/AdobeStock_619956191.jpeg');
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed;
    background-repeat: no-repeat !important;
}

.hero-contact {
    background: url('/images/Skyscrapers/AdobeStock_619956191.jpeg');
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed;
    background-repeat: no-repeat !important;
    min-height: 60vh;
}

.hero-about {
    background: url('/images/Skyscrapers/AdobeStock_619956191.jpeg');
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed;
    background-repeat: no-repeat !important;
}

.hero-services {
    background: url('/images/Skyscrapers/AdobeStock_619956191.jpeg');
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed;
    background-repeat: no-repeat !important;
}

.hero-process {
    background: url('/images/Skyscrapers/AdobeStock_619956191.jpeg');
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed;
    background-repeat: no-repeat !important;
}

.hero-strategies {
    background: url('/images/Skyscrapers/AdobeStock_619956191.jpeg');
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed;
    background-repeat: no-repeat !important;
}

.hero-virtual {
    background: url('/images/Skyscrapers/AdobeStock_619956191.jpeg');
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed;
    background-repeat: no-repeat !important;
}

.hero-financial-plans {
    background: url('/images/Skyscrapers/AdobeStock_619956191.jpeg');
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed;
    background-repeat: no-repeat !important;
}

/* Removed blue overlay to show skyscraper images */

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 300;
    margin-bottom: 3rem;
    max-width: 4xl;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        gap: 1.5rem;
    }
}

.hero-btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

.hero-btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
    background: white;
    color: #1e3a8a;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Floating elements removed for cleaner hero sections */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    color: white;
    font-size: 1.5rem;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.step-card {
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

/* Navigation Styles */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Navigation text color is controlled by JavaScript based on hero section presence */
/* CSS no longer forces white color - JavaScript handles it dynamically */

nav img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Contact Button Styling for Transparent Nav */
nav a.bg-blue-600 {
    background: rgba(59, 130, 246, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav a.bg-blue-600:hover {
    background: rgba(37, 99, 235, 0.95) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile menu transparency */
#mobile-menu {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#mobile-menu a {
    color: #374151 !important;
    text-shadow: none;
}

#mobile-menu a:hover {
    color: #1e3a8a !important;
}

#mobile-menu a.bg-blue-600 {
    background: rgba(59, 130, 246, 0.9) !important;
    color: white !important;
}

/* Navigation text color is controlled by JavaScript based on hero section presence */
/* CSS no longer forces white color - JavaScript handles it dynamically */

nav img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

/* Contact Button Styling for Transparent Nav */
nav a.bg-blue-600 {
    background: rgba(59, 130, 246, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav a.bg-blue-600:hover {
    background: rgba(37, 99, 235, 0.95) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile menu transparency */
#mobile-menu {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#mobile-menu a {
    color: #374151 !important;
    text-shadow: none;
}

#mobile-menu a:hover {
    color: #1e3a8a !important;
}

#mobile-menu a.bg-blue-600 {
    background: rgba(59, 130, 246, 0.9) !important;
    color: white !important;
}

/* Form Styles */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.form-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Card Styles */
.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-bg {
        padding: 2rem 0;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility Improvements */
.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;
}

.focus-visible:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Error States */
.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.success-message {
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-medium);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-dark);
}
