/* Custom optimized CSS - Only essential styles */
/* This file contains only the styles actually used on the site */

/* Variables */
:root {
    --primary-blue: #0056b3;
    --secondary-blue: #eef4fb;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: white;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-blue);
    transition: var(--transition);
}

.navbar-brand:hover {
    color: #003d82;
    transform: translateY(-2px);
}

.nav-link {
    font-weight: 500;
    margin: 0 8px;
    padding: 8px 12px !important;
    transition: var(--transition);
    position: relative;
    color: var(--text-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

/* Buttons */
.btn-primary {
    background: var(--primary-blue);
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 86, 179, 0.2);
}

.btn-primary:hover {
    background: #003d82;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 86, 179, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Hero */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, #ffffff 100%);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* Cards */
.service-card {
    border: none;
    border-radius: var(--border-radius);
    background: #fff;
    padding: 2.5rem;
    transition: var(--transition);
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), #0077cc);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--secondary-blue);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-blue);
    color: white;
}

/* Images */
.img-modern {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Footer */
footer {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 1px solid #eee;
    padding: 60px 0 20px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-blue);
    transform: translateX(3px);
}

.footer-link:hover::after {
    width: 100%;
}

/* Contact */
.page-header {
    padding: 80px 0 40px;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, #ffffff 100%);
}

.bio-section {
    padding: 60px 0;
}

.service-section {
    padding: 80px 0;
}

.price-section {
    padding: 80px 0;
}

.contact-section {
    padding: 80px 0;
}

.experience-card {
    border: none;
    border-radius: var(--border-radius);
    background: #fff;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.service-detail-card {
    border: none;
    border-radius: var(--border-radius);
    background: #fff;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    height: 100%;
    transition: var(--transition);
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: var(--secondary-blue);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.price-card {
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 2rem;
    background: #fff;
    transition: var(--transition);
}

.price-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

.contact-card {
    border: none;
    border-radius: var(--border-radius);
    background: #fff;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    height: 100%;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    height: 400px;
}

/* Leaflet containers: ensure explicit height to prevent partial render */
#map,
#homepage-map {
    min-height: 320px;
}

#homepage-map {
    height: 100%;
}

/* Inline SVG Icons - replaces Font Awesome for performance */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

.icon.h1 { width: 2.5rem; height: 2.5rem; }
.icon.h2 { width: 2rem; height: 2rem; }
.icon.h3 { width: 1.75rem; height: 1.75rem; }
.icon.h4 { width: 1.5rem; height: 1.5rem; }
.icon.me-1 { margin-right: 0.25rem; }
.icon.me-2 { margin-right: 0.5rem; }
.icon.me-3 { margin-right: 1rem; }
.icon.mt-1 { margin-top: 0.25rem; }
.icon.mb-3 { margin-bottom: 1rem; }
.icon.d-block { display: block; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 991.98px) {
    .hero {
        padding: 60px 0;
        text-align: center;
    }
    .hero .d-flex {
        justify-content: center;
    }
    .nav-link::after {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    .service-card {
        padding: 1.5rem;
    }
}

/* Performance: Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
