/* Header and Footer styles - extracted from header1.html and footer1.html */

/* Global CSS reset — ensures consistent rendering across all pages.
   index.html had this inline; moving it here so about.html and all other pages benefit. */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Font families to match index.html */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    padding-bottom: 60px;
    background: #ffffff;
}

/* CSS Variables - matching index1.html */
:root {
    --bg-primary: #F6F7F9;
    --bg-secondary: #EAF3F7;
    --primary: #6265f0;
    --secondary: #aa59f7;
    --accent: #ec4a9d;
    --accent-hover: #d6367d;
    --text-primary: #1F2A35;
    --text-secondary: #6B7885;
    --white: #FFFFFF;
    --shadow: 0 18px 45px rgba(31, 42, 53, 0.10);
    --shadow-sm: 0 10px 25px rgba(31, 42, 53, 0.08);
}

/* Header Navigation styles */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5vh 4vw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav.scrolled {
    padding: 0.75vh 4vw;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary, #1a1a1a);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    background: linear-gradient(135deg, rgba(99, 101, 240, 0.95) 0%, rgba(170, 89, 247, 0.95) 50%, rgba(236, 74, 157, 0.95) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    align-self: center;
    min-width: 0;
}

.nav-links a:not(.btn) {
    text-decoration: none;
    color: #6366f1;
    font-weight: 500;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
}

.nav-links a:not(.btn):hover {
    background: linear-gradient(135deg, rgba(99, 101, 240, 0.95) 0%, rgba(170, 89, 247, 0.95) 50%, rgba(236, 74, 157, 0.95) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links .btn-primary {
    background: linear-gradient(135deg, rgba(99, 101, 240, 0.95) 0%, rgba(170, 89, 247, 0.95) 50%, rgba(236, 74, 157, 0.95) 100%);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.nav-links .btn-primary:hover {
    background: linear-gradient(135deg, rgba(99, 101, 240, 1) 0%, rgba(170, 89, 247, 1) 50%, rgba(236, 74, 157, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: #6366f1;
    transition: all 0.3s ease;
    display: block;
    pointer-events: none;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Header Responsive styles */
@media (max-width: 1024px) {
    .nav {
        padding: 0.8rem 1.25rem;
    }

    .logo {
        font-size: 1.2rem;
        gap: 0.4rem;
    }

    .logo-text {
        font-size: 1.1rem;
        line-height: 1.1;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 1rem;
        right: 1rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.5rem;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(31, 42, 53, 0.15);
        max-height: calc(100vh - 5.5rem);
        overflow-y: auto;
    }

    .nav-links.active > a,
    .nav-links.active > .nav-dropdown > .dropdown-toggle,
    .nav-links.active > .btn {
        width: 100%;
    }

    .nav-links.active a:not(.btn),
    .nav-links.active .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 48px;
        padding: 0.9rem 1rem;
        border-radius: 12px;
        background: rgba(99, 102, 241, 0.04);
        border: 1px solid rgba(99, 102, 241, 0.08);
        font-size: 1rem;
    }

    .nav-links.active .btn {
        justify-content: center;
        min-height: 48px;
        padding: 0.95rem 1rem;
        border-radius: 12px;
    }

    .nav-links.active .btn + .btn {
        margin-top: 0.25rem;
    }
}

@media (max-width: 640px) {
    .nav {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.05rem;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .nav-links.active {
        left: 0.75rem;
        right: 0.75rem;
        padding: 0.9rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(99, 101, 240, 0.95) 0%, rgba(170, 89, 247, 0.95) 50%, rgba(236, 74, 157, 0.95) 100%);
    color: white !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(99, 101, 240, 1) 0%, rgba(170, 89, 247, 1) 50%, rgba(236, 74, 157, 1) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: white !important;
}

.nav-links .btn-primary {
    background: linear-gradient(135deg, rgba(99, 101, 240, 0.95) 0%, rgba(170, 89, 247, 0.95) 50%, rgba(236, 74, 157, 0.95) 100%);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.nav-links .btn-primary:hover {
    background: linear-gradient(135deg, rgba(99, 101, 240, 1) 0%, rgba(170, 89, 247, 1) 50%, rgba(236, 74, 157, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background-color: rgba(31, 42, 53, 0.05);
}

.btn-text {
    background: none;
    color: var(--text-primary);
    padding: 0.5rem 0;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-ctas .btn-text:hover {
    color: var(--accent) !important;
}

.hero-ctas .btn-primary {
    background: linear-gradient(135deg, rgba(99, 101, 240, 0.95) 0%, rgba(170, 89, 247, 0.95) 50%, rgba(236, 74, 157, 0.95) 100%);
    color: white !important;
}

.hero-ctas .btn-primary:hover {
    background: linear-gradient(135deg, rgba(99, 101, 240, 1) 0%, rgba(170, 89, 247, 1) 50%, rgba(236, 74, 157, 1) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: white !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

footer {
    background: linear-gradient(135deg, rgba(99, 101, 240, 0.95) 0%, rgba(170, 89, 247, 0.95) 50%, rgba(236, 74, 157, 0.95) 100%);
    color: #ffffff;
    padding: 30px 0 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.footer-content {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.35rem 1rem 0.15rem;
    text-align: center;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 1 auto;
    min-width: 0;
}

.footer-brand {
    flex: 1 1 320px;
    max-width: 340px;
}

.footer-table-wrap {
    overflow-x: auto;
    display: flex;
    justify-content: center;
}

.footer-table {
    width: max-content;
    min-width: 0;
    border-collapse: collapse;
    table-layout: auto;
}

.footer-table td {
    vertical-align: top !important;
    padding: 0 1rem 0 0;
    border: none;
}

.footer-brand-cell {
    width: 1%;
    padding-right: 1rem !important;
    text-align: left;
    margin-right: 0 !important;
    white-space: nowrap;
}

.footer-brand-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem !important;
    font-weight: 700;
    line-height: 1.1;
    display: block;
    margin: 0;
    background: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.footer-table .footer-brand-link:hover,
.footer-table .footer-brand-link:focus,
.footer-table .footer-brand-link:active {
    background: transparent !important;
    color: #ffffff !important;
    filter: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
}

.footer-heading-cell {
    padding-bottom: 0 !important;
    vertical-align: top !important;
}

.footer-heading-cell,
.footer-table td {
    text-align: left;
    margin: 0;
    vertical-align: top !important;
}

.footer-empty-cell {
    padding: 0;
}

.footer-section h4 {
    margin-bottom: 0;
    margin-top: 0;
}

.footer-section h3 {
    margin-top: 0;
    margin-bottom: 0;
}

.footer-section table {
    margin-top: 0;
}

.footer-section ul {
    margin-top: 0;
}

.footer-section h3 {
    font-size: 1rem !important;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 0;
}

.footer-section h3:hover {
    filter: brightness(1.1);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    line-height: 1.2;
    margin: 0;
    font-weight: 300;
}

.footer-section h4 {
    font-size: 1rem !important;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 0;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, transparent);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0rem;
}

.footer-links-inline {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.5rem 0.75rem;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    line-height: 1.3;
    padding: 0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: normal;
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.footer-social-link svg {
    flex-shrink: 0;
}

.footer-table a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    line-height: 1.3;
    padding: 0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: normal;
}

.footer-table td > a {
    padding-left: 0;
}

.footer-table tr td:last-child {
    padding-right: 0;
}

.footer-brand-cell p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    line-height: 1.2;
    margin: 0;
    font-weight: 300;
    text-align: left;
}

.footer-brand-cell a,
.footer-brand-cell p {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.footer-table a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom p {
    color: #ffffff;
    font-size: 0.8rem;
    margin: 0;
    padding: 0;
}

@media (max-width: 1024px) {
    .footer-brand-cell {
        width: 28%;
        white-space: normal;
    }
}

/* Modern scroll indicator */
footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    border-radius: 2px;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    footer {
        position: relative;
        padding: 1.5rem 0;
    }

    body {
        padding-bottom: 60px;
    }

    .footer-content {
        padding: 0 1rem;
    }

    .footer-table,
    .footer-table tbody,
    .footer-table tr,
    .footer-table td {
        display: block;
        width: 100%;
    }

    .footer-table td {
        padding: 0 0 0.5rem 0;
    }

    .footer-brand-cell {
        padding-right: 0 !important;
    }

    .footer-section h3,
    .footer-brand-link {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem;
    }

    .footer-section p,
    .footer-brand-cell p {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .footer-section h4,
    .footer-heading-cell h4 {
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem;
    }

    .footer-table a {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
    }

    .footer-table a:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 640px) {
    .footer-content {
        padding: 0 0.85rem;
    }
}

/* =========================================================
   Global checkmark/list icon normalization
   Keeps checkmarks small and aligned across Legal and all pages
   ========================================================= */
.feature-list li::before,
ul.feature-list li::before,
.check-list li::before,
ul.check-list li::before,
.legal-list li::before,
ul.legal-list li::before,
.benefit-list li::before,
ul.benefit-list li::before,
.service-list li::before,
ul.service-list li::before,
.resource-list li::before,
ul.resource-list li::before,
.card-list li::before,
ul.card-list li::before {
    font-size: 0.85rem !important;
    line-height: 1 !important;
    width: 1rem !important;
    min-width: 1rem !important;
    max-width: 1rem !important;
    height: 1rem !important;
    min-height: 1rem !important;
    max-height: 1rem !important;
    margin-top: 0.2rem !important;
    flex: 0 0 1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.feature-list svg,
ul.feature-list svg,
.check-list svg,
ul.check-list svg,
.legal-list svg,
ul.legal-list svg,
.benefit-list svg,
ul.benefit-list svg,
.service-list svg,
ul.service-list svg,
.resource-list svg,
ul.resource-list svg,
.card-list svg,
ul.card-list svg,
.feature-bullet svg,
.check-bullet svg,
.legal-bullet svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    flex: 0 0 14px !important;
}

.feature-bullet,
.check-bullet,
.legal-bullet,
.benefit-bullet,
.service-bullet,
.resource-bullet {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    flex: 0 0 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.feature-list li,
.check-list li,
.legal-list li,
.benefit-list li,
.service-list li,
.resource-list li,
.card-list li {
    align-items: flex-start !important;
    gap: 0.65rem !important;
}
