/* ==================== COMMON STYLES ==================== */
/* Shared styles used across all pages */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #2C4A6B;
    background: #FFFFFF;
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 34.5px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    /* Touch-friendly improvements */
    -webkit-tap-highlight-color: rgba(255, 154, 47, 0.2);
    touch-action: manipulation;
}

.btn:active {
    transform: scale(0.97);
}

.btn-orange {
    background: #FF9A2F;
    color: #fff;
}

.btn-orange:hover {
    box-shadow: 0 4px 15px rgba(255, 154, 47, 0.4);
}

.btn-outline-dark {
    background: transparent;
    border: 1.5px solid #2C4A6B;
    color: #2C4A6B;
}

.btn-outline-dark:hover {
    background: #2C4A6B;
    color: #fff;
}

.btn-outline-light {
    background: transparent;
    border: 1.5px solid #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background: #fff;
    color: #2C4A6B;
}

.btn-blue {
    background: #2C4A6B;
    color: #fff;
}

.btn-blue:hover {
    background: #1A3550;
    box-shadow: 0 4px 15px rgba(44, 74, 107, 0.4);
}

.btn-outline-blue {
    background: transparent;
    border: 1.5px solid #2C4A6B;
    color: #2C4A6B;
}

.btn-outline-blue:hover {
    background: #2C4A6B;
    color: #fff;
}

.btn-white {
    background: #fff;
    color: #1A2E44;
    padding: 14px 34.5px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-white:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 16px;
}

.section-label-dark {
    color: #1A2E44;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
}

.section-header h2.section-title-dark {
    color: #1A2E44;
}

.section-header p {
    font-size: 18px;
    color: #ffffff;
}

.section-header p.section-desc-dark {
    color: #1A2E44;
}

.section-desc-dark {
    color: #1A2E44;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.header--scrolled {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(44, 74, 107, 0.12);
}

/* Top Bar */
.header-top {
    background: #2C4A6B;
    height: 40px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-top .email {
    color: #fff;
    font-size: 18px;
}

.header-top .phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 18px;
}

.header-top .phone svg {
    width: 22px;
    height: 22px;
}

/* Navigation */
.header-nav {
    padding: 16px 0;
}

.header-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo img {
    width: 67px;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-family: 'Yeseva One', serif;
    font-size: 20px;
    font-weight: 400;
    color: #FF9A2F;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-size: 16px;
    font-weight: 500;
    color: #2C4A6B;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #FF9A2F;
}

.nav-buttons {
    display: flex;
    gap: 12px;
}

.nav-buttons .btn {
    width: 200px;
    height: 50px;
    padding: 0;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: #2C4A6B;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: #1A2E44;
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: #1A2E44;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
}

@media (max-width: 1200px) {
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, #FFFFFF 0%, #FFF9EF 100%);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        overflow-y: auto;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 120px 30px 60px;
        gap: 40px;
        position: relative;
    }
    
    .mobile-menu-close {
        position: absolute;
        top: 30px;
        right: 30px;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        color: #1A2E44;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.3s ease, transform 0.3s ease;
        z-index: 10;
    }
    
    .mobile-menu-close:hover {
        color: #FF9A2F;
        transform: rotate(90deg);
    }
    
    /* Navigation Links */
    .mobile-nav-links {
        list-style: none;
        text-align: center;
        padding: 0;
        margin: 0;
    }
    
    .mobile-nav-links li {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    
    .mobile-menu-overlay.active .mobile-nav-links li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .mobile-menu-overlay.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
    .mobile-menu-overlay.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.15s; }
    .mobile-menu-overlay.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.2s; }
    .mobile-menu-overlay.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.25s; }
    .mobile-menu-overlay.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.3s; }
    
    .mobile-nav-links a {
        display: block;
        font-size: 32px;
        font-weight: 600;
        color: #1A2E44;
        padding: 16px 0;
        text-decoration: none;
        transition: color 0.3s ease, transform 0.3s ease;
        position: relative;
    }
    
    .mobile-nav-links a:hover,
    .mobile-nav-links a.active {
        color: #FF9A2F;
    }
    
    .mobile-nav-links a.active::after {
        content: '';
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 3px;
        background: #FF9A2F;
        border-radius: 2px;
    }
    
    /* Menu Buttons */
    .mobile-menu-buttons {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        max-width: 300px;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        transition-delay: 0.35s;
    }
    
    .mobile-menu-overlay.active .mobile-menu-buttons {
        opacity: 1;
        transform: translateY(0);
    }
    
    .mobile-menu-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 16px 32px;
        font-size: 16px;
    }
    
    /* Contact Info */
    .mobile-menu-contact {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        transition-delay: 0.4s;
    }
    
    .mobile-menu-overlay.active .mobile-menu-contact {
        opacity: 1;
        transform: translateY(0);
    }
    
    .mobile-contact-item {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #5A7A9A;
        font-size: 15px;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .mobile-contact-item:hover {
        color: #FF9A2F;
    }
    
    .mobile-contact-item svg {
        flex-shrink: 0;
        color: #2C4A6B;
    }
    
    .mobile-contact-item:hover svg {
        color: #FF9A2F;
    }
    
    /* Social Links */
    .mobile-menu-social {
        display: flex;
        gap: 24px;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        transition-delay: 0.45s;
    }
    
    .mobile-menu-overlay.active .mobile-menu-social {
        opacity: 1;
        transform: translateY(0);
    }
    
    .mobile-menu-social a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: #fff;
        color: #1A2E44;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-social a:hover {
        background: #FF9A2F;
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(255, 154, 47, 0.3);
    }
    
    /* Body scroll lock when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: #FFFFFF;
    padding: 0;
}

.footer .container {
    padding-top: 80px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-brand {
    max-width: 340px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 24px;
}

.footer-logo img {
    height: 112px;
    width: auto;
}

.footer-brand p {
    font-size: 16px;
    color: #1A2E44;
    line-height: 1.5;
    margin-bottom: 24px;
}
.footer-brand .btn {
    padding: 12px 20px;
    font-size: 13px;
}
.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1A2E44;
    margin-bottom: 20px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    font-size: 14px;
    color: #1A2E44;
    transition: color 0.3s;
    text-decoration: none;
}

.footer-column a:hover {
    color: #FF9A2F;
}

.footer-social {
    display: flex;
    gap: 5px;
    margin-top: auto;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A2E44;
    transition: color 0.3s;
    text-decoration: none;
}

.footer-social a:hover {
    color: #FF9A2F;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 80px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: #1A2E44;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 14px;
    color: #1A2E44;
    transition: color 0.3s;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #FF9A2F;
}

/* ===== RESPONSIVE (Common) ===== */
@media (max-width: 1200px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-left {
        gap: 0;
    }

    .nav-left .logo img {
        height: 72px;
    }

    .nav-menu {
        display: none;
    }

    .nav-buttons {
        display: none;
    }

    .footer-main {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-left .logo img {
        height: 72px;
    }

    .logo-text {
        font-size: 15px;
        white-space: nowrap;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .section-label {
        margin-bottom: 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 36px;
    }

    .footer-info h3 {
        font-size: 22px;
    }

    .footer-info p {
        font-size: 14px;
    }

    .footer-column h4 {
        font-size: 16px;
    }

    .footer-column ul li a {
        font-size: 14px;
    }

    .footer .container {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .btn {
        padding: 12px 28px;
        font-size: 15px;
    }

    .btn-lg {
        padding: 14px 32px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .header-top {
        padding: 8px 0;
    }

    .header-top .email {
        font-size: 13px;
    }

    .header-top .phone {
        font-size: 13px;
    }

    .header-top span {
        gap: 4px;
    }

    .nav-left .logo img {
        width: 60px;
        height: 65px;
    }

    .logo-text {
        font-size: 14px;
        white-space: nowrap;
    }

    .section-label {
        margin-bottom: 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 14px;
    }

    .footer .container {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .footer-main {
        gap: 32px;
    }

    .footer-info h3 {
        font-size: 20px;
    }

    .footer-column h4 {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .footer-column ul {
        gap: 10px;
    }

    .footer-bottom {
        padding-top: 24px;
        gap: 16px;
    }

    .footer-copyright {
        font-size: 13px;
    }

    .footer-legal {
        gap: 16px;
    }

    .footer-legal a {
        font-size: 13px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .header-top {
        justify-content: center;
    }

    .header-top .email {
        display: none;
    }

    .header-top .phone {
        font-size: 12px;
    }

    .nav-left .logo img {
        height: 68px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .footer-info h3 {
        font-size: 18px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ==================== ENTRANCE ANIMATIONS ==================== */

/* Base state - hidden */
.animate-fade-in,
.animate-slide-up,
.animate-slide-left,
.animate-slide-right {
    opacity: 0;
    will-change: opacity, transform;
}

.animate-slide-up {
    transform: translateY(30px);
}

.animate-slide-left {
    transform: translateX(-30px);
}

.animate-slide-right {
    transform: translateX(30px);
}

/* Animated state - visible */
.animate-fade-in.animated,
.animate-slide-up.animated,
.animate-slide-left.animated,
.animate-slide-right.animated {
    opacity: 1;
    transform: translate(0, 0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Stagger delays for sequential animations */
.animate-delay-1 { transition-delay: 0.1s !important; }
.animate-delay-2 { transition-delay: 0.2s !important; }
.animate-delay-3 { transition-delay: 0.3s !important; }
.animate-delay-4 { transition-delay: 0.4s !important; }
.animate-delay-5 { transition-delay: 0.5s !important; }
.animate-delay-6 { transition-delay: 0.6s !important; }

/* Hero animations - faster for immediate impact */
.hero-animate {
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
}

.hero-animate.animated {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Step cards animation */
.step-card {
    opacity: 0;
    transform: translateY(40px);
    will-change: opacity, transform;
}

.step-card.animated {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Service tabs animation */
.service-tab {
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
}

.service-tab.animated {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in,
    .animate-slide-up,
    .animate-slide-left,
    .animate-slide-right,
    .hero-animate,
    .step-card,
    .service-tab {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
