/* Global Components: Header, Footer, Buttons, etc. */

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-container img {
    max-width: 175px;
}

.logo-box {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: var(--bg-blue-gradient);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    height: 2.5rem;
    padding: 0 1rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-lg {
    height: 3rem;
    padding: 0 2rem;
    font-size: 1.125rem;
}

.btn-ghost {
    background: transparent;
    color: var(--foreground);
}

.btn-ghost:hover {
    background-color: var(--muted);
}

.btn-primary {
    background: var(--bg-blue-gradient);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}

.btn-outline:hover {
    background-color: var(--muted);
}

.btn-outline-white {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid var(--border);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@supports (color: oklch(1 0 0)) {
    .header {
        background-color: color-mix(in srgb, var(--background), transparent 20%);
    }
}

.header-inner {
    display: flex;
    min-height: 4rem;
    padding: 10px 0;
    align-items: center;
    justify-content: space-between;
}

.nav-desktop {
    display: none;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: 2rem;
        font-size: 0.875rem;
        font-weight: 500;
    }
}

.nav-link {
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.2s;
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle:hover {
    background-color: var(--muted);
}

/* Mobile Menu */
.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    z-index: 40;
}

.nav-mobile.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.nav-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.nav-mobile-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    background: transparent;
    border: none;
    padding: 0;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.nav-mobile-dropdown {
    display: flex;
    flex-direction: column;
}

.nav-mobile-submenu {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0 0.5rem 1rem;
}

.nav-mobile-submenu.active {
    display: flex;
}

.nav-mobile-sublink {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: color 0.2s;
}

.nav-mobile-sublink:hover {
    color: var(--primary);
}

.dropdown-toggle-mobile i {
    transition: transform 0.3s ease;
}

.dropdown-toggle-mobile.active i {
    transform: rotate(180deg);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-logo img {
    padding: 1rem 0px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media(min-width: 768px) {
    .footer {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }
}

.footer-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media(min-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

.footer-col h4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

@media(min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.social-links {
    display: flex;
    gap: 1rem;
}

/* Form Elements used in components */
.form-input {
    width: 100%;
    height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid var(--input);
    background-color: var(--background);
    font-family: inherit;
}

textarea.form-input {
    height: auto;
    min-height: 150px;
}

/* Hidden utilities used in header/footer */
.hidden-mobile {
    display: none !important;
}

@media(min-width: 1024px) {
    .hidden-mobile {
        display: inline-flex !important;
    }
}