/* Components */

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Pseudo-element bridge to connect trigger and content */
.dropdown-trigger::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    /* Height of the gap */
    background: transparent;
    /* Ensure it catches mouse events */
}

.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
    height: 100%;
    /* Ensure full height for hit area */
    position: relative;
    /* Needed for the pseudo-element */
}

.dropdown-trigger:hover {
    color: var(--primary-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-color);
    min-width: 200px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    z-index: 1001;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: var(--bg-alt);
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #eff6ff, #ffffff);
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #1f2937, #374151);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.6;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.services-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .services-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid-4 {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: 1rem;
    transition: transform 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Schedule Widget (Cal.com embed) */
.schedule-widget {
    max-width: 1000px;
    margin: 0 auto;
    min-height: 600px;
}

.schedule-widget #cal-embed {
    min-height: 600px;
    border-radius: 1rem;
    overflow: hidden;
}

/* Forms */
.form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Limnetic View Hero with Screenshot Background */
.hero-limnetic {
    position: relative;
    overflow: hidden;
}

.hero-limnetic .hero-container {
    position: relative;
    z-index: 2;
}

.hero-limnetic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(239, 246, 255, 0.85) 40%, rgba(239, 246, 255, 0.3) 100%);
    z-index: 1;
}

.hero-limnetic::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 65%;
    height: 80%;
    background-image: url('/static/images/limnetic-view-screenshot.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    z-index: 0;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1024px) {
    .hero-limnetic::after {
        width: 50%;
        right: -10%;
        opacity: 0.6;
    }
}

@media (max-width: 768px) {
    .hero-limnetic::after {
        display: none;
    }
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}