/* Urban Life Benefits - Modern CSS Styles */

/* CSS Variables for Design System */
:root {
    --primary-color: #0b3d2e; /* Evergreen */
    --secondary-color: #1d5b79; /* Teal */
    --highlight-color: #c89b2c; /* Gold */
    --accent-color: #f3f6f4; /* Sage White */
    --text-dark: #102a2b;
    --text-light: #4b5a5a;
    --border-color: #d9e2de;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #3b82f6;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(16, 42, 43, 0.10);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--white);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-4 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-light);
}

/* Custom Bootstrap Overrides */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: var(--box-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(11, 61, 46, 0.28);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
}

.card {
    border-radius: var(--border-radius);
    border: none;
    transition: var(--transition);
}

/* Navigation Styles */
.navbar {
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.92) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--accent-color);
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f6fbf8 0%, #eef6f2 40%, #f7f9fb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 160"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23d9e2de" stroke-width="1"/></pattern></defs><rect width="160" height="160" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -200px;
    right: -220px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle at 35% 35%, rgba(29, 91, 121, 0.22), rgba(29, 91, 121, 0.0) 60%), radial-gradient(circle at 65% 65%, rgba(200, 155, 44, 0.18), rgba(200, 155, 44, 0.0) 62%);
    filter: blur(0px);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(11, 61, 46, 0.08);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-panel {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(217, 226, 222, 0.9);
    border-radius: 18px;
    box-shadow: var(--box-shadow);
    padding: 1.25rem;
}

.hero-panel .list-group-item {
    border: none;
    padding: 0.75rem 0;
    background: transparent;
}

.hero-panel .list-group-item + .list-group-item {
    border-top: 1px dashed rgba(217, 226, 222, 0.9);
}

.hero-panel .stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(29, 91, 121, 0.10);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.hero-icon {
    font-size: 15rem;
    color: var(--secondary-color);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.trust-badges .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
}

/* Animation Classes - Fixed to ensure content is visible */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-delay {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.fade-in-delay-2 {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.fade-in-delay-3 {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.fade-in-right {
    opacity: 1;
    transform: translateX(0);
    animation: fadeInRight 1s ease-out 0.3s forwards;
}

/* Loading state for JavaScript-controlled animations */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

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

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Service Cards */
.service-card {
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: var(--transition);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.hover-lift {
    transition: var(--transition);
}

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

/* Newsletter Section */
.newsletter-form input {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem;
}

.newsletter-form button {
    border-radius: var(--border-radius);
    font-weight: 600;
}

/* Footer */
footer {
    background: radial-gradient(1200px 600px at 15% -10%, rgba(200, 155, 44, 0.18), rgba(0, 0, 0, 0)), linear-gradient(135deg, #0b1f1c 0%, #071715 100%);
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: var(--secondary-color) !important;
    transform: translateX(5px);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Utility Classes */
.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Fix for excessive spacing that may appear as blank spaces */
.py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}

.py-4 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* Ensure sections have proper spacing without appearing empty */
section {
    min-height: auto;
    position: relative;
}

/* Ensure content is properly contained */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Fix any margin issues that could create blank spaces */
.mb-5, .my-5 {
    margin-bottom: 2rem !important;
}

.mt-5, .my-5 {
    margin-top: 2rem !important;
}

/* Ensure cards and content blocks are properly spaced */
.card {
    margin-bottom: 1rem;
}

/* Fix any potential accordion spacing issues */
.accordion-item {
    margin-bottom: 0.5rem;
}

/* Ensure proper text spacing */
p, .lead {
    margin-bottom: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.75rem;
}

/* Page Specific Styles */
.page-header {
    background: radial-gradient(900px 460px at 15% -10%, rgba(200, 155, 44, 0.20), rgba(0, 0, 0, 0)), linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6rem 0 4rem;
    margin-top: 76px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 160"><defs><pattern id="dots" width="16" height="16" patternUnits="userSpaceOnUse"><circle cx="1.5" cy="1.5" r="1.5" fill="%23ffffff" opacity="0.25"/></pattern></defs><rect width="160" height="160" fill="url(%23dots)"/></svg>');
    opacity: 0.18;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.98);
}

.section-header {
    max-width: 820px;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(200, 155, 44, 0.16);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.notice-card {
    border: 1px solid rgba(217, 226, 222, 0.9);
    border-radius: var(--border-radius);
    background: linear-gradient(180deg, rgba(243, 246, 244, 1), rgba(255, 255, 255, 1));
    box-shadow: var(--box-shadow);
}

.notice-card .notice-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 61, 46, 0.12);
    color: var(--primary-color);
    font-size: 1.25rem;
}

.footer-meta {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

/* Icon Circle */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

/* Accordion Styles */
.accordion-button {
    background: var(--accent-color);
    border: none;
    border-radius: var(--border-radius) !important;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
}

.accordion-body {
    background: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Form Styles */
.form-control {
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(29, 91, 121, 0.14);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(29, 91, 121, 0.55);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.timeline-date {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-icon {
        font-size: 8rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .timeline::before {
        left: 2rem;
    }
    
    .timeline-date {
        position: static;
        transform: none;
        display: inline-block;
        margin-bottom: 1rem;
    }
    
    .timeline-content {
        margin-left: 4rem;
    }
}

@media (max-width: 576px) {
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .trust-badges .badge {
        display: block;
        margin-bottom: 0.5rem;
    }
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
