/* Tidal AI Advisors - Professional Styling */

:root {
    --primary-blue: #2563eb;
    --dark-blue: #1e40af;
    --light-blue: #3b82f6;
    --accent-blue: #60a5fa;
    --primary-orange: #fad584;
    --dark-orange: #ea580c;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --border-gray: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* Header & Navigation */
header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container img {
    height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.logo-text .tagline {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-style: italic;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-blue);
}

/* Login Button Styles */
.login-button {
    margin-left: 2rem;
}

.login-button.hidden {
    display: none;
}

.login-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.login-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* User Menu Styles */
.user-menu {
    position: relative;
    margin-left: 2rem;
}

.user-menu.hidden {
    display: none;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.user-menu-trigger:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.user-name {
    font-weight: 600;
    color: var(--text-dark);
}

.user-icon {
    color: var(--primary-blue);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: rgba(0, 123, 255, 0.05);
    color: var(--primary-blue);
}

.dropdown-item svg {
    flex-shrink: 0;
}

/* Hero Section */
.hero {
    background-color: var(--primary-orange);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero .tagline-large {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
    opacity: 0.95;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-blue);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Section Styling */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-align: center;
}

section h3 {
    font-size: 1.75rem;
    color: var(--dark-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

section p {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.benefit-card h4 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.benefit-card p {
    font-size: 1rem;
    color: var(--text-gray);
}

/* Our Approach Section */
.our-approach {
    background-color: white;
}

.approach-content {
    margin-top: 2rem;
}

.approach-item {
    margin-bottom: 2.5rem;
    padding-left: 2rem;
    border-left: 4px solid var(--primary-blue);
}

/* Contact Section */
.contact {
    background-color: var(--bg-light);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
}

.auth-btn:hover {
    border-color: var(--primary-blue);
    background-color: var(--bg-light);
}

.auth-btn img {
    width: 24px;
    height: 24px;
}

.divider {
    text-align: center;
    margin: 2rem 0;
    color: var(--text-gray);
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: var(--border-gray);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: var(--dark-blue);
}

.submit-btn:disabled {
    background-color: var(--text-gray);
    cursor: not-allowed;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--accent-blue);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Hidden class for form sections */
.hidden {
    display: none;
}

/* Success message */
.success-message {
    background-color: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 1rem;
}

.error-message {
    background-color: #ef4444;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Reduce header padding on mobile */
    nav {
        padding: 0.75rem 1rem;
        flex-direction: row;
        flex-wrap: wrap;
    }

    /* Optimize logo for mobile */
    .logo-container img {
        height: 35px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    /* Make navigation more compact */
    nav ul {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
        width: 100%;
    }

    nav ul li a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    /* Significantly reduce hero section padding */
    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .hero .tagline-large {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    section h2 {
        font-size: 1.75rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* User menu adjustments for mobile */
    .user-menu {
        font-size: 0.9rem;
    }

    .user-menu-dropdown {
        right: 0;
        min-width: 150px;
    }
}

/* Extra small devices (phones in portrait mode) */
@media (max-width: 480px) {
    nav {
        padding: 0.5rem 0.75rem;
    }

    .logo-container {
        gap: 0.5rem;
    }

    .logo-container img {
        height: 30px;
    }

    .logo-text {
        font-size: 1rem;
    }

    nav ul {
        gap: 0.25rem;
    }

    nav ul li a {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero .tagline-large {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .cta-button {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }

    section {
        padding: 2rem 1rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .user-menu {
        font-size: 0.85rem;
    }
}

/* Loading spinner */
.spinner {
    border: 3px solid var(--border-gray);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}