@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import './language-switcher.css';

:root{
    /* Brand Colors from Logo */
    --brand-blue: #1A5BAB;
    --brand-blue-dark: #144A8C;
    --brand-blue-light: #2E7BC9;
    --brand-green: #3EA344;
    --brand-green-dark: #2E8A34;
    --brand-green-light: #4FBD55;
    
    --btn-color: #ffffff;/* button color*/
    --btn-bg: linear-gradient(135deg, #1A5BAB 0%, #3EA344 100%);/* button bg gradient*/
    --btn-bg-hover: linear-gradient(135deg, #144A8C 0%, #2E8A34 100%);

    --primary-text-color: #1A5BAB;
    --secondary-text-color: #3EA344;
}


html {
    scroll-behavior: smooth;
    font-family: "Roboto", sans-serif;
}

header{
    background-color: rgba(255, 255, 255, 0.95);
    color: #000;
    position: relative;
    z-index: 40;
    transition: all 0.3s ease;
}

header.header-glass {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Sticky header effect */
header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}


header > .collapsible-header{
    display: flex;
    gap: 1rem;
    width: 100%;
    background-color: inherit;
    place-content: center;
    overflow: visible;
    transition: width 0.3s ease;
}

.animated-collapse{
    transition: width 0.3s ease;
}


.header-links {
    display: flex;
    align-items: center;
    min-width: fit-content;
    border-radius: 8px;
    padding: 8px 14px;
    transition: all 0.3s ease;
    position: relative;
}

.header-links::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-green));
    transition: width 0.3s ease;
}

.header-links:hover {
    color: var(--brand-blue);
    background-color: rgba(26, 91, 171, 0.05);
}

.header-links:hover::after {
    width: 80%;
}

/* Active link styling */
.header-links.tw-text-brand-blue {
    color: var(--brand-blue);
    font-weight: 600;
}

.header-links.tw-text-brand-blue::after {
    width: 80%;
}

/* Mobile menu button */
#collapse-btn {
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    padding: 8px;
    background-color: transparent;
}

#collapse-btn:hover {
    background-color: rgba(26, 91, 171, 0.08);
    color: var(--brand-blue);
    transform: scale(1.05);
}

#collapse-btn:active {
    transform: scale(0.95);
}


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

.opacity-0{
    opacity: 0 !important;
}

.opacity-100{
    opacity: 100 !important;
}

.btn{
    padding: 12px 24px;
    width: max-content;
    border-radius: 8px;
    color: var(--btn-color);
    background: var(--btn-bg);
    justify-content: center;
    align-items: center;
    display: flex;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(26, 91, 171, 0.3);
    transition: all 0.3s ease;
}

.btn:hover{
    background: var(--btn-bg-hover);
    box-shadow: 0 6px 20px rgba(26, 91, 171, 0.4);
    transform: translateY(-2px);
}

.btn:disabled{
    cursor: default;
}

.input{
    padding: 12px 16px;
    background-color: transparent;
    border-radius: 10px;
    /* outline: none; */
    min-width: 100px;
    border: 2px solid #666666;
    transition: all 0.3s ease;
    font-size: 16px;
}

.input:active, .input:focus, .input:focus-within{
    border: 2px solid var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(26, 91, 171, 0.15);
    outline: none;
}

.input-error{
    border-bottom: 3px solid #ff1e1e;
}

.input-error:focus-within{
    border-bottom: 3px solid #fd0101;
}

/* Navigation dots styling */
.dots-container {
    text-align: center;
    margin-top: 20px;
}

.dots-container .swiper-pagination-bullet {
    background: rgba(26, 91, 171, 0.3);
    transition: all 0.3s ease;
}

.dots-container .swiper-pagination-bullet-active {
    background: linear-gradient(135deg, #1A5BAB 0%, #3EA344 100%) !important;
    width: 40px !important;
}

.footer-link{
    color: #0d0d0d;
    transition: color 0.3s;
}

.footer-link:hover{
    color: var(--brand-blue);
}

/* ============================================
   REUSABLE CARD COMPONENTS
   ============================================ */

/* Base card - white bg with shadow */
.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Card with blue accent border */
.card-blue {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(26, 91, 171, 0.1);
    border: 2px solid rgba(26, 91, 171, 0.1);
    transition: all 0.3s ease;
}

.card-blue:hover {
    border-color: var(--brand-blue);
    box-shadow: 0 8px 25px rgba(26, 91, 171, 0.2);
    transform: translateY(-3px);
}

/* Card with green accent border */
.card-green {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(62, 163, 68, 0.1);
    border: 2px solid rgba(62, 163, 68, 0.1);
    transition: all 0.3s ease;
}

.card-green:hover {
    border-color: var(--brand-green);
    box-shadow: 0 8px 25px rgba(62, 163, 68, 0.2);
    transform: translateY(-3px);
}

/* Feature card - used for feature showcases */
.card-feature {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(26, 91, 171, 0.1);
    border: 2px solid rgba(26, 91, 171, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.card-feature:hover {
    border-color: var(--brand-blue);
    box-shadow: 0 12px 30px rgba(26, 91, 171, 0.15);
    transform: translateY(-4px);
}

/* Pricing card */
.card-pricing {
    background-color: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(26, 91, 171, 0.1);
    transition: all 0.3s ease;
}

.card-pricing:hover {
    border-color: var(--brand-blue);
    box-shadow: 0 12px 40px rgba(26, 91, 171, 0.15);
    transform: translateY(-4px);
}

/* Pricing card - highlighted/popular */
.card-pricing-featured {
    background-color: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(62, 163, 68, 0.2);
    border: 2px solid var(--brand-green);
    transition: all 0.3s ease;
    position: relative;
}

.card-pricing-featured:hover {
    box-shadow: 0 16px 50px rgba(62, 163, 68, 0.25);
    transform: translateY(-4px);
}

/* Gradient card - for CTA sections */
.card-gradient {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green) 100%);
    padding: 2.5rem;
    border-radius: 12px;
    color: white;
}

/* Icon circle - for card icons */
.icon-circle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle-blue {
    background-color: rgba(26, 91, 171, 0.1);
    color: var(--brand-blue);
}

.icon-circle-green {
    background-color: rgba(62, 163, 68, 0.1);
    color: var(--brand-green);
}

.icon-circle-lg {
    width: 4rem;
    height: 4rem;
}

/* ============================================
   SPACING UTILITIES (Standardized Scale)
   Scale: 4, 8, 12, 16, 24, 32, 48, 64
   ============================================ */

/* Section spacing */
.section-padding {
    padding: 3rem 10%;
}

.section-padding-lg {
    padding: 4rem 10%;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 2rem 1rem;
    }
    .section-padding-lg {
        padding: 2.5rem 1rem;
    }
}

/* Standard gaps */
.gap-sm { gap: 0.75rem; }  /* 12px */
.gap-md { gap: 1rem; }     /* 16px */
.gap-lg { gap: 1.5rem; }   /* 24px */
.gap-xl { gap: 2rem; }     /* 32px */

/* ============================================
   END CARD & SPACING COMPONENTS
   ============================================ */


.review-container {
    position: relative;
    max-width: 600px;
    margin: auto;
}

.review-card{
    box-shadow: 0px 4px 15px rgba(26, 91, 171, 0.15);
    border-radius: 15px;
    /* width: 200px; */
    /* height: 550px; */
    padding: 15px;
    border-left: 4px solid var(--brand-blue);
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0px 8px 25px rgba(26, 91, 171, 0.25);
    transform: translateY(-3px);
}

/* Enhanced section styling */
section h2 {
    position: relative;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --------- collapsible div ---------- */
.collapsible {
    background-color: #f3f0f0;
    color: #2b2929;
    /* cursor: pointer; */
    padding: 5px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    transition: 0.4s;
}

/* Style for the collapsible content */
.content {
    padding: 0 18px;
    /* display: none; */
    height: 0px;
    overflow: hidden;
    background-color: transparent;
    transition: height 0.5s;
    text-align: justify;
    margin-top: 10px;
}

.collapsible .active,
.collapsible:hover {
    /* background-color: #dedddd; */
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--brand-blue);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    z-index: 100;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

/* FAQ Styles */
.faq-filter-btn {
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #4b5563;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-filter-btn:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: rgba(26, 91, 171, 0.05);
}

.faq-filter-btn.active {
    border-color: var(--brand-blue);
    background: var(--brand-blue);
    color: white;
    box-shadow: 0 4px 10px rgba(26, 91, 171, 0.3);
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    border: none;
    background: white;
    text-align: left;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(26, 91, 171, 0.02);
}

.faq-question:focus {
    outline: 2px solid var(--brand-blue);
    outline-offset: -2px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    padding: 0 24px;
}

.faq-answer p {
    padding: 0 0 20px 40px;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

/* Improved focus states for accessibility */
*:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

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

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sticky CTA for mobile on long pages */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 16px;
}

/* Hide sticky CTA on desktop */
@media (min-width: 1024px) {
    .sticky-cta {
        display: none;
    }
}

@media not all and (min-width: 1024px) {
    header .collapsible-header {
        position: fixed;
        right: 0px;
        flex-direction: column;
        opacity: 0;
        height: 100vh;
        min-height: 100vh;
        height: 100dvh;
        width: 75vw;
        max-width: 320px;
        justify-content: space-between;
        padding: 5px;
        padding-top: 5%;
        padding-bottom: 5%;
        place-items: end;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        color: #000000;
        overflow-y: auto;
        box-shadow: -4px 0px 30px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        border-left: 1px solid rgba(26, 91, 171, 0.1);
    }

    .header-links{
        color: #374151;
        padding: 12px 20px;
        width: 100%;
        text-align: right;
        font-size: 16px;
    }
    
    .header-links::after {
        display: none;
    }
    
    .header-links:hover {
        background-color: rgba(26, 91, 171, 0.08);
    }
    
    /* Touch-friendly form inputs on mobile */
    .input {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px; /* Touch target size */
    }
    
    /* Touch-friendly buttons */
    .btn, button[type="submit"] {
        min-height: 48px;
        padding: 14px 24px;
    }
    
    /* Touch-friendly checkboxes */
    input[type="checkbox"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }
    
    /* Better spacing for form labels */
    label {
        padding: 4px 0;
    }
}

/* ============================================
   CONSOLIDATED ANIMATIONS
   Moved from inline styles for better caching
   ============================================ */

/* Float animation - used for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Delayed float for staggered effect */
@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Slow pulse for background decorations */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Pulse glow for popular badge */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(62, 163, 68, 0.5), 0 0 10px rgba(26, 91, 171, 0.3); }
    50% { box-shadow: 0 0 15px rgba(62, 163, 68, 0.8), 0 0 25px rgba(26, 91, 171, 0.5); }
}

/* Checkmark animation for success */
@keyframes checkmark {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Fade in up animation */
@keyframes fadeInUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Confetti animation for celebration */
@keyframes confetti {
    0% { transform: translateY(-100%) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Animation utility classes */
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-float-delayed { animation: float 4s ease-in-out infinite 1s; }
.animate-pulse-slow { animation: pulse-slow 3s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-checkmark { animation: checkmark 0.5s ease-out forwards; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fade-in-up-delay-1 { animation: fadeInUp 0.6s ease-out 0.2s forwards; opacity: 0; }
.animate-fade-in-up-delay-2 { animation: fadeInUp 0.6s ease-out 0.4s forwards; opacity: 0; }

/* ============================================
   COOKIE CONSENT BANNER
   GDPR compliant cookie notice
   ============================================ */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1A5BAB 0%, #144A8C 100%);
    color: white;
    padding: 1rem 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent.hidden {
    display: none;
}

.cookie-consent__text {
    flex: 1;
    min-width: 280px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-consent__text a {
    color: #4FBD55;
    text-decoration: underline;
}

.cookie-consent__text a:hover {
    color: #6ED474;
}

.cookie-consent__buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-consent__btn {
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cookie-consent__btn--accept {
    background: var(--brand-green);
    color: white;
}

.cookie-consent__btn--accept:hover {
    background: var(--brand-green-dark);
}

.cookie-consent__btn--decline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cookie-consent__btn--decline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cookie-consent {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .cookie-consent__buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-consent__btn {
        flex: 1;
        min-width: 120px;
    }
}
