﻿/* ===== SAAS LANDING PAGE STYLES ===== */

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-weight: var(--font-medium);
    font-size: var(--normal-font-size);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

    .btn--primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(44, 90, 160, 0.4);
    }

.btn--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

    .btn--secondary:hover {
        background-color: var(--primary-color);
        color: white;
        transform: translateY(-2px);
    }

.btn--outline {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

    .btn--outline:hover {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

.btn--full {
    width: 100%;
}

.btn__loading {
    display: none;
}

.btn.loading .btn__text {
    display: none;
}

.btn.loading .btn__loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-alt) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
        opacity: 0.3;
    }

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__title {
    font-size: var(--biggest-font-size);
    font-weight: var(--font-bold);
    line-height: 1.2;
    margin-bottom: var(--mb-1-5);
    color: white;
}

.highlight {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: var(--h3-font-size);
    line-height: 1.6;
    margin-bottom: var(--mb-2);
    opacity: 0.9;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: var(--mb-2-5);
}

.hero__stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: var(--h2-font-size);
    font-weight: var(--font-bold);
    color: var(--secondary-color);
}

.stat__label {
    font-size: var(--small-font-size);
    opacity: 0.8;
}

.hero__image {
    position: relative;
}

    .hero__image img {
        width: 100%;
        border-radius: 1rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

/* ===== SECTION HEADERS ===== */
.section__header {
    text-align: center;
    margin-bottom: var(--mb-2-5);
}

.section__title {
    font-size: var(--h1-font-size);
    font-weight: var(--font-bold);
    margin-bottom: var(--mb-1);
    color: var(--text-color);
}

.section__subtitle {
    font-size: var(--h3-font-size);
    color: var(--text-color-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 5rem 0;
    background-color: var(--body-color);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature__card {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 8px 24px var(--shadow-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .feature__card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    }

    .feature__card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px var(--shadow-color);
    }

.feature__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--mb-1-5);
    font-size: 2rem;
    color: white;
}

.feature__title {
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: var(--mb-1);
    color: var(--text-color);
}

.feature__description {
    color: var(--text-color-light);
    line-height: 1.6;
}

/* ===== PRICING SECTION ===== */
.pricing {
    padding: 5rem 0;
    background-color: var(--container-color);
}

.pricing__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: var(--mb-1-5);
}

.toggle__label {
    font-weight: var(--font-medium);
    color: var(--text-color);
}

.toggle__switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

    .toggle__switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.toggle__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: var(--transition);
    border-radius: 30px;
}

    .toggle__slider:before {
        position: absolute;
        content: "";
        height: 22px;
        width: 22px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: var(--transition);
        border-radius: 50%;
    }

input:checked + .toggle__slider {
    background-color: var(--primary-color);
}

    input:checked + .toggle__slider:before {
        transform: translateX(30px);
    }

.discount {
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-medium);
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: var(--mb-2-5);
}

.pricing__card {
    background-color: var(--body-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 24px var(--shadow-color);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.pricing__card--featured {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: scale(1.05);
    border-color: var(--secondary-color);
}

    .pricing__card--featured .pricing__title,
    .pricing__card--featured .pricing__description,
    .pricing__card--featured .pricing__features li {
        color: white;
    }

.pricing__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-color);
}

.pricing__card--featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing__badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
}

.pricing__header {
    margin-bottom: var(--mb-2);
}

.pricing__title {
    font-size: var(--h2-font-size);
    font-weight: var(--font-bold);
    margin-bottom: var(--mb-1);
    color: var(--text-color);
}

.pricing__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: var(--mb-1);
}

.price__currency {
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
}

.price__amount {
    font-size: 3rem;
    font-weight: var(--font-bold);
    color: var(--primary-color);
}

.pricing__card--featured .price__amount {
    color: white;
}

.price__period {
    font-size: var(--normal-font-size);
    color: var(--text-color-light);
}

.pricing__description {
    color: var(--text-color-light);
    margin-bottom: var(--mb-1-5);
}

.pricing__features {
    list-style: none;
    margin-bottom: var(--mb-2);
}

    .pricing__features li {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0;
        color: var(--text-color);
    }

    .pricing__features i {
        color: var(--secondary-color);
        font-size: 1.2rem;
    }

.pricing__btn {
    width: 100%;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 5rem 0;
    background-color: var(--body-color);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial__card {
    background-color: var(--container-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 24px var(--shadow-color);
    transition: var(--transition);
}

    .testimonial__card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px var(--shadow-color);
    }

.testimonial__content {
    margin-bottom: var(--mb-1-5);
}

.testimonial__stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: var(--mb-1);
}

    .testimonial__stars i {
        color: #ffd700;
        font-size: 1.2rem;
    }

.testimonial__text {
    color: var(--text-color);
    line-height: 1.6;
    font-style: italic;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial__name {
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.testimonial__role {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

/* ===== FAQ SECTION ===== */
.faq {
    padding: 5rem 0;
    background-color: var(--container-color);
}

.faq__container {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    background-color: var(--body-color);
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--shadow-color);
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

    .faq__question:hover {
        background-color: var(--border-color);
    }

    .faq__question h3 {
        font-size: var(--h3-font-size);
        font-weight: var(--font-medium);
        color: var(--text-color);
    }

.faq__icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq__answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

    .faq__answer p {
        padding-bottom: 1.5rem;
        color: var(--text-color-light);
        line-height: 1.6;
    }

.faq__item.active .faq__icon {
    transform: rotate(180deg);
}

.faq__item.active .faq__answer {
    max-height: 200px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 5rem 0;
    background-color: var(--body-color);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact__info h3 {
    font-size: var(--h2-font-size);
    margin-bottom: var(--mb-2);
    color: var(--text-color);
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--mb-1-5);
}

    .contact__item i {
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.2rem;
    }

    .contact__item h4 {
        font-size: var(--normal-font-size);
        font-weight: var(--font-semi-bold);
        color: var(--text-color);
        margin-bottom: 0.25rem;
    }

    .contact__item p {
        color: var(--text-color-light);
    }

.contact__social {
    display: flex;
    gap: 1rem;
    margin-top: var(--mb-2);
}

.social__link {
    width: 50px;
    height: 50px;
    background-color: var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

    .social__link:hover {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        transform: translateY(-2px);
    }

/* ===== FORM STYLES ===== */
.contact__form {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 8px 24px var(--shadow-color);
}

.form__group {
    margin-bottom: var(--mb-1-5);
}

    .form__group label {
        display: block;
        font-weight: var(--font-medium);
        color: var(--text-color);
        margin-bottom: 0.5rem;
    }

    .form__group input,
    .form__group select,
    .form__group textarea {
        width: 100%;
        padding: 1rem;
        border: 2px solid var(--border-color);
        border-radius: 0.5rem;
        background-color: var(--body-color);
        color: var(--text-color);
        font-size: var(--normal-font-size);
        transition: var(--transition);
    }

        .form__group input:focus,
        .form__group select:focus,
        .form__group textarea:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
        }

    .form__group textarea {
        resize: vertical;
        min-height: 120px;
    }

.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

    .form__checkbox input[type="checkbox"] {
        width: auto;
        margin: 0;
    }

    .form__checkbox label {
        margin: 0;
        font-size: var(--small-font-size);
        line-height: 1.5;
    }

    .form__checkbox a {
        color: var(--primary-color);
        text-decoration: underline;
    }

.form__error {
    display: block;
    color: var(--accent-color);
    font-size: var(--small-font-size);
    margin-top: 0.25rem;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--text-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__section h4 {
    color: var(--secondary-color);
    margin-bottom: var(--mb-1-5);
}

.footer__description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: var(--mb-1-5);
}

.footer__links {
    list-style: none;
}

    .footer__links li {
        margin-bottom: 0.5rem;
    }

    .footer__links a {
        color: rgba(255, 255, 255, 0.8);
        transition: var(--transition);
    }

        .footer__links a:hover {
            color: var(--secondary-color);
            padding-left: 0.5rem;
        }

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer__legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__legal-links {
    display: flex;
    gap: 1rem;
}

    .footer__legal-links a {
        color: rgba(255, 255, 255, 0.8);
        font-size: var(--small-font-size);
        transition: var(--transition);
    }

        .footer__legal-links a:hover {
            color: var(--secondary-color);
        }

/* ===== MODAL STYLES ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

    .modal.show {
        opacity: 1;
        visibility: visible;
    }

.modal__content {
    background-color: var(--container-color);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: var(--transition);
}

.modal.show .modal__content {
    transform: scale(1);
}

.modal__content--small {
    max-width: 400px;
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--text-color-light);
    cursor: pointer;
    transition: var(--transition);
}

    .modal__close:hover {
        color: var(--accent-color);
    }

.modal__header {
    text-align: center;
    margin-bottom: var(--mb-2);
}

    .modal__header h3 {
        font-size: var(--h2-font-size);
        margin-bottom: var(--mb-1);
        color: var(--text-color);
    }

.video__container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

    .video__container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0.5rem;
    }

.success__icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: var(--mb-1);
}

/* ===== LANGUAGE SWITCH ===== */
.lang-switch {
    background-color: var(--body-color);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    transition: var(--transition);
}

    .lang-switch:hover {
        background-color: var(--primary-color);
        color: white;
    }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos="fade-up"] {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 992px) {
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }

    .contact__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pricing__grid {
        grid-template-columns: 1fr;
    }

    .pricing__card--featured {
        transform: none;
    }

        .pricing__card--featured:hover {
            transform: translateY(-5px);
        }
}

@media screen and (max-width: 768px) {
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero__stats {
        flex-direction: column;
        gap: 1rem;
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .testimonials__grid {
        grid-template-columns: 1fr;
    }

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__legal {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 576px) {
    .hero {
        min-height: 80vh;
    }

    .hero__title {
        font-size: var(--h1-font-size);
    }

    .hero__description {
        font-size: var(--normal-font-size);
    }

    .section__title {
        font-size: var(--h2-font-size);
    }

    .section__subtitle {
        font-size: var(--normal-font-size);
    }

    .feature__card,
    .pricing__card,
    .testimonial__card {
        padding: 1.5rem;
    }

    .contact__form {
        padding: 1.5rem;
    }

    .modal__content {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* ===== DARK THEME ADJUSTMENTS ===== */
.dark-theme .hero {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.dark-theme .pricing__card--featured {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.dark-theme .modal__content {
    background-color: var(--dark-container-color);
}

.dark-theme .form__group input,
.dark-theme .form__group select,
.dark-theme .form__group textarea {
    background-color: var(--dark-body-color);
    border-color: var(--dark-border-color);
    color: var(--dark-text-color);
}

/* ===== ADDITIONAL FIXES ===== */

/* Header scroll effect */
.header.scroll-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Navigation mobile menu */
.nav__menu {
    position: relative;
}

.nav__toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

.nav__close {
    display: none;
}

/* Animation classes */
.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature__card,
.pricing__card,
.testimonial__card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

/* Mobile responsive navigation */
@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        background-color: var(--container-color);
        width: 80%;
        height: 100%;
        top: 0;
        right: -100%;
        box-shadow: -2px 0 4px var(--shadow-color);
        padding: 4rem 0 0 3rem;
        transition: var(--transition);
        z-index: var(--z-fixed);
    }

        .nav__menu.show-menu {
            right: 0;
        }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .nav__toggle {
        display: block;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1.3rem;
        font-size: 1.5rem;
        color: var(--text-color);
        cursor: pointer;
    }
}

/* Loading state for buttons */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Success animation */
@keyframes successPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.success__icon {
    animation: successPulse 0.6s ease;
}

/* Improved focus states */
.btn:focus,
.nav__link:focus,
.faq__question:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Better mobile spacing */
@media screen and (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero__buttons {
        gap: 0.75rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: var(--small-font-size);
    }
}

/* Print styles */
@media print {
    .nav__toggle,
    .modal,
    .btn,
    .hero__buttons {
        display: none !important;
    }

    .hero {
        background: white !important;
        color: black !important;
    }

    .section {
        page-break-inside: avoid;
    }
}
/* 
===== BRAND LOGO STYLES ===== */

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.brand__image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: var(--transition);
}

.brand__text {
    font-size: var(--h3-font-size);
    font-weight: var(--font-bold);
    color: var(--primary-color);
    font-family: var(--heading-font);
    transition: var(--transition);
}

/* Hover effects */
.nav__logo:hover .brand__image {
    transform: scale(1.05);
}

.nav__logo:hover .brand__text {
    color: var(--secondary-color);
}

/* Dark theme adjustments */
.dark-theme .brand__text {
    color: var(--dark-text-color);
}

.dark-theme .nav__logo:hover .brand__text {
    color: var(--secondary-color);
}

/* Responsive adjustments */
@media screen and (max-width: 576px) {
    .nav__brand {
        gap: 0.5rem;
    }

    .brand__image {
        width: 32px;
        height: 32px;
    }

    .brand__text {
        font-size: var(--normal-font-size);
    }
}

@media screen and (max-width: 350px) {
    .brand__text {
        display: none;
    }

    .brand__image {
        width: 36px;
        height: 36px;
    }
}

/* Focus states for accessibility */
.nav__logo:focus-within .brand__image,
.nav__logo:focus-within .brand__text {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Animation for brand loading */
@keyframes brandFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav__brand {
    animation: brandFadeIn 0.6s ease-out;
}

/* Brand image fallback */
.brand__image[src=""],
.brand__image:not([src]) {
    display: none;
}

    .brand__image[src=""]:after,
    .brand__image:not([src]):after {
        content: "🏥";
        font-size: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        border-radius: 50%;
    }

/* Print styles */
@media print {
    .nav__brand {
        gap: 0.5rem;
    }

    .brand__image {
        width: 30px;
        height: 30px;
    }

    .brand__text {
        color: black !important;
        font-size: 1rem;
    }
}
/* =====
 ENHANCED BRAND STYLES ===== */

/* Logo link wrapper */
.nav__logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

/* Brand container enhancements */
.nav__brand {
    position: relative;
    cursor: pointer;
}

/* Brand image enhancements */
.brand__image {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
    padding: 2px;
}

/* Brand text enhancements */
.brand__text {
    letter-spacing: -0.5px;
    text-transform: none;
    position: relative;
}

/* Subtle brand animation on hover */
.nav__brand:hover {
    transform: translateY(-1px);
}

    .nav__brand:hover .brand__image {
        box-shadow: 0 4px 12px rgba(44, 90, 160, 0.2);
    }

/* Active state */
.nav__brand:active {
    transform: translateY(0);
}

/* Loading state for brand image */
.brand__image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

    .brand__image[src]:not([src=""]) {
        background: white;
        animation: none;
    }

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Brand tooltip (optional) */
.nav__brand::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-color);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: var(--small-font-size);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: var(--z-tooltip);
}

.nav__brand:hover::after {
    opacity: 1;
    visibility: visible;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .brand__image {
        border: 2px solid var(--text-color);
    }

    .brand__text {
        font-weight: var(--font-bold);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .nav__brand,
    .brand__image,
    .brand__text {
        transition: none;
        animation: none;
    }
}