/* ============================================
   BlueSkyAssist - Clean Responsive Styles
   ============================================ */

/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --accent: #0f172a;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p { color: var(--text-secondary); }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

/* ============================================
   GET STARTED BUTTON - Gradient + Effects
   ============================================ */

.btn-primary {
    /* Gradient background (from your first code) */
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    
    /* Added for hover effect */
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-primary:hover {
    background: transparent;                           /* Remove gradient */
    color: #0ea5e9;                                      /* Blue text */
    border-color: #0ea5e9;                               /* Blue border */
    transform: translateY(-2px);                         /* Lift up */
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);       /* Blue glow */
}

/* When navbar is scrolled */
.navbar.scrolled .btn-primary {
    /* Gradient background */
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.navbar.scrolled .btn-primary:hover {
    background: transparent;
    color: #0ea5e9;
    border-color: #0ea5e9;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary {
    background-color: white;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--background);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    background-color: var(--primary);
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-full { width: 100%; }

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: #dbeafe;
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.125rem; }

/* ============================================
   NAVIGATION - Clean Fixed Navbar
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFC107;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.125rem;
        padding: 8px 0;
        width: 100%;
        text-align: center;
    }

    .nav-link::after {
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 50%;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 4%;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .nav-menu {
        padding: 20px;
        gap: 12px;
    }

    .nav-link {
        font-size: 1rem;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: #dbeafe;
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero .highlight { color: var(--primary); }

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 320px;
}

.card-icon {
    width: 64px;
    height: 64px;
    background-color: #dbeafe;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.card-text {
    display: flex;
    flex-direction: column;
}

.card-text strong {
    color: var(--text-primary);
    font-size: 1.125rem;
}

.card-text span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ============================================
   Our Story Section
   ============================================ */
.our-story {
    padding: 80px 0;
    background-color: #ffffff;
}

.story-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.story-content h2 {
    font-size: 2rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 24px;
}

.story-content p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 20px;
}

.story-content p:last-child { margin-bottom: 0; }

.story-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.story-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* ============================================
   Mission, Vision & Values Section
   ============================================ */
.mission-values {
    padding: 80px 0;
    background-color: #f8fafc;
}

.mission-values .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.mission-values .section-header h2 {
    font-size: 2rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 12px;
}

.mission-values .section-header p {
    font-size: 1rem;
    color: #64748b;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.value-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.value-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background-color: #f0f9ff;
    color: #0ea5e9;
}

.value-icon svg {
    width: 28px;
    height: 28px;
}

.value-card h3 {
    font-size: 1.125rem;
    color: #0f172a;
    font-weight: 600;
    margin-bottom: 16px;
}

.value-card p {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.7;
}

/* ============================================
   Team Section
   ============================================ */
.team-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.team-section .section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
    contain: content;
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    background-color: #f1f5f9;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-member h3 {
    font-size: 1.125rem;
    color: #0f172a;
    font-weight: 600;
    margin-bottom: 4px;
}

.member-title {
    display: block;
    font-size: 0.875rem;
    color: #0ea5e9;
    font-weight: 500;
    margin-bottom: 12px;
}

.team-member p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 260px;
    margin: 0 auto;
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: 100px 0;
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    contain: content;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: transparent;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.icon-admin { background-color: #dcfce7; }
.icon-social { background-color: #fce7f3; }
.icon-customer { background-color: #dbeafe; }
.icon-research { background-color: #f3e8ff; }
.icon-content { background-color: #ffedd5; }
.icon-bookkeeping { background-color: #fee2e2; }

.service-card h3 { margin-bottom: 12px; }
.service-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ============================================
   Why Choose Us Section
   ============================================ */
.why-choose {
    padding: 100px 0;
    background-color: var(--background);
}

.why-choose .section-header { margin-bottom: 64px; }
.why-choose .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
    contain: content;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.icon-pricing { background-color: #dcfce7; }
.icon-response { background-color: #dbeafe; }
.icon-quality { background-color: #f3e8ff; }
.icon-global { background-color: #ffedd5; }
.icon-tools { background-color: #fee2e2; }
.icon-support { background-color: #e0e7ff; }

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 8px;
}

.cta-content p:last-of-type { margin-bottom: 32px; }

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-cta svg { flex-shrink: 0; }

.btn-primary-cta {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    color: #0f172a;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.6), 0 0 40px rgba(251, 191, 36, 0.4), 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.btn-secondary-cta {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-secondary-cta:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing {
    padding: 100px 0;
    background-color: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 2px solid var(--border);
    position: relative;
    transition: var(--transition);
    contain: content;
}

.pricing-card:hover { box-shadow: var(--shadow-lg); }

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.pricing-header h3 { margin-bottom: 16px; }

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    border-bottom: 1px solid #f1f5f9;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials {
    padding: 100px 0;
    background-color: var(--background);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-card > p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 100px 0;
    background-color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info > p {
    margin-bottom: 32px;
    font-size: 1.125rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: #dbeafe;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-item strong {
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.contact-item span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.contact-form {
    background: var(--background);
    padding: 24px;
    border-radius: var(--radius-lg);
}

.form-group { margin-bottom: 12px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
    background-color: white;
    resize: vertical;
    min-height: 70px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    width: 100%;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
    background-color: white;
    resize: vertical;
    min-height: 70px;
}
/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--accent);
    color: white;
    padding: 80px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
    display: inline-block;
}

.footer-brand p {
    color: #94a3b8;
    margin-bottom: 24px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

.footer-links h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: #94a3b8;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-links a:hover { color: white; }

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero h1 { font-size: 2.75rem; }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-image { display: none; }

    .story-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .values-grid { grid-template-columns: repeat(2, 1fr); }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px 32px;
        max-width: 600px;
    }

    .services-grid,
    .features-grid,
    .pricing-grid,
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }

    .pricing-card.featured { transform: none; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .hero {
        padding: 120px 0 80px;
    }
    .hero h1 { font-size: 2.25rem; }
    .hero-buttons { flex-direction: column; }
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .story-image img { height: 300px; }
    .values-grid { grid-template-columns: 1fr; }
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .services-grid,
    .features-grid,
    .pricing-grid,
    .testimonials-grid { grid-template-columns: 1fr; }

    .cta-content h2 { font-size: 1.875rem; }
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .btn-cta {
        width: 100%;
        justify-content: center;
    }
    .contact-form { padding: 16px; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 1.875rem; }
    .section-header h2 { font-size: 1.75rem; }
    .btn-large { padding: 14px 24px; }
    .member-photo {
        width: 100px;
        height: 100px;
    }
}

/* ============================================
   ACCESSIBILITY - Focus Indicators
     ============================================ */

/* Show clear focus outline for keyboard navigation */
*:focus {
    outline: 3px solid #FFC107;  /* Yellow outline matching your brand */
    outline-offset: 2px;          /* Space between element and outline */
}

/* Don't show outline on mouse click (only keyboard) */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Skip link for screen reader users */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2563eb;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   ACCESSIBILITY - Respect user's motion preferences
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-card {
        animation: none !important;
    }
    
    .float-card {
        transition: none !important;
    }
}

/* ============================================
   MOBILE STICKY CTA
   ============================================ */

.sticky-cta {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%);
    color: #000;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 999;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(100px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Show on mobile after scrolling */
@media (max-width: 768px) {
    .sticky-cta.visible {
        display: block;
    }
}

/* ============================================
   CHAT WIDGET - Complete Styles
   ============================================ */

/* Chat Popup Container */
.chat-popup {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.35);
    z-index: 1000;
    display: none;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.chat-popup.active {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-header-info span {
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-header-info small {
    opacity: 0.9;
    font-size: 13px;
    font-weight: 400;
}

.chat-status {
    width: 10px;
    height: 10px;
    background: #10B981;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.chat-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    line-height: 1;
}

.chat-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* Chat Body */
.chat-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    background: #f8fafc;
}

.chat-welcome {
    background: white;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.chat-welcome p {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.6;
}

/* Quick Reply Options */
.chat-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-options button {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 14px 16px;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.chat-options button:hover {
    background: #f0f9ff;
    border-color: #0ea5e9;
    color: #0ea5e9;
    transform: translateX(4px);
}

.chat-options button span {
    font-size: 18px;
}

/* Chat Messages */
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    padding: 14px 18px;
    border-radius: 18px;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.6;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message.bot {
    background: white;
    color: #0f172a;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.message.bot strong {
    color: #0ea5e9;
}

.message.bot a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
}

.message.bot a:hover {
    text-decoration: underline;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 18px;
    background: white;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 12px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Chat Input Area */
.chat-input-area {
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    background: white;
}

.chat-input-area input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.chat-input-area input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.chat-input-area button {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-input-area button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.chat-input-area button:active {
    transform: scale(0.95);
}

/* Success State */
.chat-success {
    text-align: center;
    padding: 40px 20px;
}

.chat-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 40px;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.chat-success h3 {
    color: #0f172a;
    margin-bottom: 8px;
    font-size: 20px;
}

.chat-success p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chat-popup {
        width: 100%;
        right: 0;
        bottom: 0;
        max-height: 100vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }
    
    .chat-popup.active {
        transform: translateY(0);
    }
    
    .chat-body {
        max-height: calc(100vh - 200px);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .chat-popup,
    .message,
    .chat-options button,
    .chat-close,
    .chat-input-area button {
        transition: none;
        animation: none;
    }
}

/* Chat Button Notification Badge */
.chat-notification {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: notificationPulse 2s infinite;
}

@keyframes notificationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Update chat-button position */
.chat-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 188, 212, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    border: none;
    position: relative;
}

/* ============================================
   SCROLL TO TOP BUTTON - Repositioned to avoid chat widget conflict
   ============================================ */

.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;  /* Changed from right to left */
    width: 50px;
    height: 50px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    z-index: 998;  /* Below chat widget (999) but above content */
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-4px);
    background: #1d4ed8;
}

/* Mobile: Keep both on same side but stacked vertically */
@media (max-width: 768px) {
    .scroll-top {
        bottom: 100px;  /* Above the sticky CTA */
        left: auto;
        right: 30px;
        z-index: 997;  /* Below chat widget and sticky CTA */
    }
    
    .chat-widget {
        bottom: 160px;  /* Above scroll-to-top */
    }
}

/* ============================================
   SCROLL TO TOP BUTTON - Repositioned to avoid chat widget conflict
   ============================================ */

.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;  /* Changed from right to left to avoid chat widget */
    width: 50px;
    height: 50px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    z-index: 998;  /* Below chat widget (999) but above content */
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-4px);
    background: #1d4ed8;
}

/* Mobile: Stack vertically on right side with proper spacing */
@media (max-width: 768px) {
    .scroll-top {
        bottom: 160px;  /* Above chat widget (100px) + spacing */
        left: auto;
        right: 30px;
        z-index: 997;  /* Below chat widget (999) and sticky CTA (1000) */
    }
    
    .chat-widget {
        bottom: 100px;  /* Above sticky CTA */
        right: 30px;
        z-index: 999;
    }
    
    .sticky-cta {
        z-index: 1000;  /* Highest priority */
    }
}

/* ============================================
   CHAT WIDGET - Complete Styles
   ============================================ */

.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;  /* Keep this consistent */
}

.chat-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 188, 212, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    border: none;
    position: relative;  /* For notification badge positioning */
}

/* ============================================
   LEGAL PAGES STYLES
/* ============================================
   FORM STYLES (from about.html contact form)

/* ============================================
   FALLBACK: Mobile styles for OLD nav structure (<nav> + .nav-links)
   These apply when .nav-links is used instead of .nav-menu
   ============================================ */

@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        list-style: none;
        margin: 0;
        align-items: center;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links .nav-link {
        font-size: 1.125rem;
        padding: 8px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links .btn-primary {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }
}