/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1a1d2e;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Force remove blue color from ALL links */
a,
a:link,
a:visited {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
.main-header {
    background-color: white;
    border-bottom: 1.36px solid #e5e7eb;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo-wrapper {
    flex-shrink: 0;
}

.brand-logo {
    height: 42px;
    width: auto;
    display: block;
}

.brand-text-logo {
    display: block;
}

/* Header Right Group - Hidden on Desktop */
.header-right-group {
    display: none;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

    .mobile-toggle span {
        width: 28px;
        height: 2.5px;
        background-color: #354152;
        transition: 0.3s;
        border-radius: 2px;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    color: #354152 !important;
    text-decoration: none !important;
    font-size: 18px;
    font-weight: 400;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0;
    line-height: 36px;
    position: relative;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

    .nav-item:hover {
        color: #000000 !important;
        border-bottom-color: #666666;
    }

    .nav-item.active {
        color: #354152 !important;
        border-bottom-color: #000000;
        font-weight: 500;
    }

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-secondary,
.btn-primary,
.btn-login {
    padding: 10px 16px !important;
    border-radius: 10.91px !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Helvetica', 'Helvetica Neue', Arial, sans-serif !important;
    letter-spacing: 0;
    line-height: normal !important;
}

.btn-secondary {
    background-color: rgba(255, 249, 246, 0.2) !important;
    color: #364153 !important;
    border: 0.5px solid #f44900 !important;
}

    .btn-secondary:hover {
        background-color: rgba(255, 249, 246, 0.3) !important;
        color: #364153 !important;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(244, 73, 0, 0.2) !important;
    }

.btn-primary {
    background-color: #f44900 !important;
    color: #ffffff !important;
    border: none !important;
}

    .btn-primary:hover {
        background-color: rgba(244, 73, 0, 0.9) !important;
        color: #ffffff !important;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(244, 73, 0, 0.3) !important;
    }

.btn-login {
    background-color: #f44900 !important;
    color: #ffffff !important;
    border: none !important;
}

    .btn-login:hover {
        background-color: rgba(244, 73, 0, 0.9) !important;
        color: #ffffff !important;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(244, 73, 0, 0.3) !important;
    }




/* === USER PROFILE (matches your header design) === */
.user-profile {
    position: relative;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #fff6ef !important; /* soft peach tone */
    border: none;
    border-radius: 10.91px;
    padding: 8px 14px;
    cursor: pointer;
    color: #364153;
    transition: all 0.3s ease;
}

    .user-profile-btn:hover {
        background-color: rgba(255, 249, 246, 0.7) !important;
        box-shadow: 0 2px 6px rgba(244, 73, 0, 0.15);
    }

.user-icon {
    width: 22px;
    height: 22px;
    color: #f44900;
}

/* ?? The key change — stack Welcome and username vertically */
.user-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.welcome-text {
    font-size: 14px;
    color: #364153;
    margin: 0;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: #f44900;
    margin: 0;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    color: #364153;
}

/* Align dropdown to right edge */
.dropdown-menu-end {
    right: 0;
    left: auto;
}
.user-profile-btn.dropdown-toggle::after {
    display: none !important;
}
/* Mobile Menu Action Buttons */
.mobile-menu-actions {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 30px 0;
    margin-top: 1rem;
    border-top: 1px solid #f0f0f0;
    width: 100%;
}

.btn-mobile {
    width: 100%;
    padding: 1rem 1.5rem !important;
    font-size: 16px !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease;
    border: none !important;
}

.mobile-menu-actions .btn-primary.btn-mobile {
    background-color: #f44900 !important;
    color: #ffffff !important;
}

    .mobile-menu-actions .btn-primary.btn-mobile:hover {
        background-color: rgba(244, 73, 0, 0.9) !important;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(244, 73, 0, 0.2) !important;
    }

.mobile-menu-actions .btn-login.btn-mobile {
    background-color: #f44900 !important;
    color: #ffffff !important;
}

    .mobile-menu-actions .btn-login.btn-mobile:hover {
        background-color: rgba(244, 73, 0, 0.9) !important;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(244, 73, 0, 0.2) !important;
    }

/* Main Content */
.main-content {
    flex: 1;
}

/* Footer Styles */
.main-footer {
    background-color: #1e2130;
    color: #9195a3;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.8fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 360px;
}

.footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: 1.5rem;
    display: block;
}

.brand-description {
    color: #9195a3;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 1.8rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9195a3 !important;
    transition: all 0.3s ease;
}

    .social-icon svg {
        width: 16px;
        height: 16px;
    }

    .social-icon:hover {
        background-color: #f44900;
        color: #ffffff !important;
        transform: translateY(-2px);
    }

.footer-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 0.85rem;
    }

    .footer-links a {
        color: #9195a3 !important;
        text-decoration: none !important;
        font-size: 14px;
        transition: color 0.2s ease;
        font-weight: 400;
        letter-spacing: -0.01em;
        display: inline-block;
    }

        .footer-links a:hover {
            color: #ffffff !important;
            transform: translateX(2px);
        }

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #9195a3 !important;
    text-decoration: none !important;
    font-size: 14px;
    transition: color 0.2s ease;
    font-weight: 400;
}

    .contact-link svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .contact-link:hover {
        color: #ffffff !important;
    }

.newsletter {
    background-color: #282c3f;
    padding: 1.5rem;
    border-radius: 10px;
}

.newsletter-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.newsletter-description {
    color: #9195a3;
    font-size: 13px;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    font-weight: 400;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.email-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #1e2130;
    color: #ffffff;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

    .email-input:focus {
        outline: none;
        border-color: #f44900;
        background-color: #1e2130;
    }

    .email-input::placeholder {
        color: #6a6e83;
    }

.subscribe-btn {
    padding: 0.75rem 1.5rem;
    background-color: #f44900;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

    .subscribe-btn:hover {
        background-color: rgba(244, 73, 0, 0.9);
        transform: translateY(-1px);
    }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    color: #6a6e7f;
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

.legal-links {
    display: flex;
    gap: 2rem;
}

    .legal-links a {
        color: #9195a3 !important;
        text-decoration: none !important;
        font-size: 14px;
        transition: color 0.2s ease;
        font-weight: 400;
    }

        .legal-links a:hover {
            color: #ffffff !important;
        }

/* Responsive Styles */
@media screen and (max-width: 1600px) {
    .header-container {
        padding: 0 100px;
    }
}

@media screen and (max-width: 1400px) {
    .header-container {
        padding: 0 80px;
    }

    .nav-links {
        gap: 24px;
    }

    .header-actions {
        gap: 12px;
    }
}

@media (max-width: 1200px) {
    .header-container {
        padding: 0 50px;
    }

    .footer-container {
        padding: 0 2rem;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-item {
        font-size: 16px;
    }

    .btn-secondary,
    .btn-primary,
    .btn-login {
        font-size: 16px !important;
        padding: 9px 14px !important;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.8fr;
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .header-container {
        padding: 0 30px;
    }

    .logo-wrapper {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: #ffffff;
        transition: left 0.3s ease;
        z-index: 1000;
        justify-content: flex-start;
        padding: 80px 30px 30px;
        overflow-y: auto;
        flex-direction: column;
    }

        .main-nav.active {
            left: 0;
        }

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
        align-items: flex-start;
    }

        .nav-links li {
            border-bottom: 1px solid #f0f0f0;
            width: 100%;
        }

    .nav-item {
        display: block;
        padding: 1.5rem 0;
        font-size: 18px;
        border-bottom: none !important;
        font-weight: 500;
    }

        .nav-item.active {
            border-bottom: none !important;
        }

    .mobile-menu-actions {
        display: flex;
    }

    .header-actions .btn-primary,
    .header-actions .btn-login {
        display: none;
    }

    .header-actions .btn-secondary {
        display: inline-block;
    }

    .header-actions {
        gap: 10px;
    }

    .btn-secondary {
        padding: 8px 14px !important;
        font-size: 14px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 12px 0;
    }

    .header-container {
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Logo on the LEFT */
    .logo-wrapper {
        position: static;
        transform: none;
        order: 1;
    }

    .brand-text-logo {
        display: none;
    }

    .brand-logo {
        height: 40px;
    }

    /* Main Nav - Hidden */
    .main-nav {
        order: 3;
    }

    /* Right Side Group - User Profile + Hamburger on RIGHT */
    .header-right-group {
        display: flex;
        align-items: center;
        gap: 12px;
        order: 2;
    }

    /* User Profile - Now Visible on Mobile */
    .user-profile {
        display: flex;
        align-items: center;
        gap: 12px;
        background-color: rgba(255, 249, 246, 0.8);
        padding: 10px 16px;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .user-profile:hover {
            background-color: rgba(255, 249, 246, 1);
        }

    .user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid #f44900;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: white;
        flex-shrink: 0;
    }

        .user-avatar svg {
            width: 24px;
            height: 24px;
            color: #f44900;
        }

    .user-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .user-welcome {
        font-size: 14px;
        color: #1e2130;
        font-weight: 500;
        line-height: 1.2;
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .user-welcome .dropdown-icon {
            width: 16px;
            height: 16px;
            color: #354152;
        }

    .user-name {
        font-size: 16px;
        color: #1e2130;
        font-weight: 600;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }

    /* Hamburger Menu */
    .mobile-toggle {
        position: static;
        display: flex;
        background-color: rgba(245, 245, 245, 0.8);
        padding: 12px;
        border-radius: 12px;
        width: 48px;
        height: 48px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

        .mobile-toggle span {
            width: 24px;
            height: 3px;
            background-color: #1e2130;
            border-radius: 2px;
        }

    .header-actions {
        display: none;
    }

    /* Mobile Footer - Figma Style Layout */
    .main-footer {
        padding: 3rem 0 2rem;
    }

    .footer-container {
        padding: 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        margin-bottom: 2.5rem;
    }

    /* Footer Brand - Centered at Top */
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        max-width: 100%;
        margin: 0 auto 1.5rem;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
        height: 32px;
    }

    .brand-description {
        text-align: center;
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }

    .social-links {
        justify-content: center;
    }

    /* Quick Links & Support - 2 Column Grid */
    .footer-column:nth-child(2),
    .footer-column:nth-child(3) {
        text-align: left;
    }

    .footer-column:nth-child(2) {
        grid-column: 1;
    }

    .footer-column:nth-child(3) {
        grid-column: 2;
    }

    .footer-title {
        font-size: 15px;
        margin-bottom: 1.2rem;
        font-weight: 600;
    }

    .footer-links {
        align-items: flex-start;
    }

        .footer-links li {
            margin-bottom: 0.75rem;
        }

        .footer-links a {
            font-size: 13px;
            transform: none !important;
        }

    /* Get in Touch Section - Full Width */
    .footer-column:nth-child(4) {
        grid-column: 1 / -1;
        text-align: left;
    }

    .contact-info {
        align-items: flex-start;
        margin-bottom: 1.5rem;
    }

    .contact-link {
        justify-content: flex-start;
        font-size: 13px;
    }

        .contact-link svg {
            width: 14px;
            height: 14px;
        }

    /* Newsletter - Full Width with Single Line Form */
    .newsletter {
        text-align: left;
        padding: 1.25rem;
    }

    .newsletter-title {
        font-size: 14px;
        text-align: left;
    }

    .newsletter-description {
        font-size: 12px;
        margin-bottom: 1rem;
        text-align: left;
    }

    /* KEEP NEWSLETTER FORM HORIZONTAL ON MOBILE */
    .newsletter-form {
        flex-direction: row;
        gap: 0.5rem;
    }

    .email-input {
        flex: 1;
        font-size: 12px;
        padding: 0.7rem 0.9rem;
    }

    .subscribe-btn {
        padding: 0.7rem 1.2rem;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Footer Bottom - REORDERED: Legal Links First, Copyright Below */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding-top: 1.5rem;
    }

    /* Legal Links FIRST (now appears at top due to column-reverse) */
    .legal-links {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
        order: 1;
    }

        .legal-links a {
            font-size: 13px;
        }

    /* Copyright SECOND (appears below legal links) */
    .copyright {
        font-size: 13px;
        order: 2;
    }

    .nav-item {
        padding: 1.2rem 0;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 0 16px;
    }

    .brand-logo {
        height: 36px;
    }

    .header-right-group {
        gap: 10px;
    }

    .user-profile {
        padding: 8px 12px;
        gap: 10px;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
    }

        .user-avatar svg {
            width: 20px;
            height: 20px;
        }

    .user-welcome {
        font-size: 13px;
    }

    .user-name {
        font-size: 15px;
        max-width: 120px;
    }

    .mobile-toggle {
        width: 44px;
        height: 44px;
        padding: 10px;
    }

        .mobile-toggle span {
            width: 22px;
            height: 2.5px;
        }

    .footer-container {
        padding: 0 1.25rem;
    }

    .main-footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-grid {
        gap: 2rem;
    }

    .footer-logo {
        height: 28px;
    }

    .brand-description {
        font-size: 12px;
    }

    .footer-title {
        font-size: 14px;
    }

    .footer-links a {
        font-size: 12px;
    }

    .contact-link {
        font-size: 12px;
    }

    .newsletter {
        padding: 1rem;
    }

    .newsletter-title {
        font-size: 13px;
    }

    .newsletter-description {
        font-size: 11px;
    }

    /* Keep newsletter form horizontal even on small screens */
    .newsletter-form {
        flex-direction: row;
        gap: 0.4rem;
    }

    .email-input {
        font-size: 11px;
        padding: 0.65rem 0.8rem;
    }

    .subscribe-btn {
        padding: 0.65rem 1rem;
        font-size: 12px;
    }

    /* Legal links stay horizontal */
    .legal-links {
        flex-direction: row;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .nav-item {
        font-size: 15px;
        padding: 1rem 0;
    }

    .mobile-menu-actions {
        padding: 1.5rem 20px 0;
    }

    .btn-mobile {
        padding: 0.9rem 1.25rem !important;
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 12px;
    }

    .brand-logo {
        height: 32px;
    }

    .header-right-group {
        gap: 8px;
    }

    .user-profile {
        padding: 6px 10px;
        gap: 8px;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
    }

        .user-avatar svg {
            width: 18px;
            height: 18px;
        }

    .user-welcome {
        font-size: 12px;
    }

    .user-name {
        font-size: 14px;
        max-width: 100px;
    }

    .mobile-toggle {
        width: 40px;
        height: 40px;
        padding: 8px;
        gap: 4px;
    }

        .mobile-toggle span {
            width: 20px;
            height: 2px;
        }

    .footer-container {
        padding: 0 1rem;
    }

    .footer-grid {
        gap: 1.8rem;
    }

    /* Keep horizontal layout even on very small screens */
    .newsletter-form {
        flex-direction: row;
    }

    .email-input {
        min-width: 0;
        font-size: 10px;
        padding: 0.6rem 0.7rem;
    }

    .subscribe-btn {
        padding: 0.6rem 0.9rem;
        font-size: 11px;
    }
}
