/* Button Components */
.btn {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-family-body);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    background-color: transparent;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

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

/* Card Components */
.card {
    background-color: var(--color-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--color-border);
    background-color: var(--color-background-light);
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-2);
}

.card-text {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Form Components */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-family: var(--font-family-body);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
}

.form-input {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-textarea {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-family: var(--font-family-body);
    transition: var(--transition);
    min-height: 120px;
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Alert Components */
.alert {
    padding: var(--space-4);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-4);
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mt-4 {
    margin-top: var(--space-4);
}

.p-4 {
    padding: var(--space-4);
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Loading Spinner */
.spinner {
    border: 2px solid var(--color-border);
    border-top: 2px solid var(--color-primary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Social Media Components */
.social-media {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--border-radius);
    transition: var(--transition);
    color: var(--color-text);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-link:nth-child(1) {
    background-color: var(--color-primary);
    color: white;
}

.social-link:nth-child(1):hover {
    background-color: var(--color-primary-dark);
}

.social-link:nth-child(2) {
    background-color: var(--color-pothos);
    color: white;
}

.social-link:nth-child(2):hover {
    background-color: var(--color-ivy);
}

.social-link:nth-child(3) {
    background-color: var(--color-sage);
    color: white;
}

.social-link:nth-child(3):hover {
    background-color: var(--color-secondary);
}

.social-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Team Components */
.team-grid {
    display: grid;
    gap: var(--space-12);
    max-width: 1000px;
    margin: 0 auto;
}

.team-member {
    display: flex;
    gap: var(--space-8);
    align-items: flex-start;
}

.team-member:nth-child(even) {
    flex-direction: row-reverse;
}

.team-photo {
    flex-shrink: 0;
}

.headshot {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.team-info {
    flex: 1;
}

.team-name {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-2);
    color: var(--color-primary);
}

.team-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-secondary);
    margin-bottom: var(--space-4);
}

.team-bio {
    line-height: 1.8;
    color: var(--color-wood);
}

/* Values Components */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.value-item {
    background-color: var(--color-background);
    padding: var(--space-6);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.value-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.value-description {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Contact Components */
.contact-form {
    max-width: 600px;
    margin: var(--space-8) auto 0;
    padding: var(--space-6);
    background-color: var(--color-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.contact-placeholder {
    display: flex;
    justify-content: center;
    margin-top: var(--space-8);
}

.placeholder-card {
    background-color: var(--color-background-light);
    padding: var(--space-8);
    border-radius: var(--border-radius-lg);
    text-align: center;
    max-width: 400px;
    border: 2px dashed var(--color-border);
}

.placeholder-card h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    margin-bottom: var(--space-4);
}

.placeholder-card p {
    color: var(--color-wood);
    line-height: 1.6;
}

/* Sticky Social Media */
.social-sticky {
    position: fixed;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    z-index: 1000;
}

.social-sticky-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    opacity: 0.9;
}

.social-sticky-link:hover {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: var(--shadow-lg);
}

.social-sticky-link:nth-child(1) {
    background-color: var(--color-primary);
    color: white;
}

.social-sticky-link:nth-child(1):hover {
    background-color: var(--color-primary-dark);
}

.social-sticky-link:nth-child(2) {
    background-color: var(--color-pothos);
    color: white;
}

.social-sticky-link:nth-child(2):hover {
    background-color: var(--color-ivy);
}

.social-sticky-link:nth-child(3) {
    background-color: var(--color-sage);
    color: white;
}

.social-sticky-link:nth-child(3):hover {
    background-color: var(--color-secondary);
}

.social-sticky-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Mobile Responsive Components */
@media (max-width: 768px) {
    .btn {
        padding: var(--space-4) var(--space-8);
        font-size: var(--font-size-lg);
    }

    .card {
        margin-bottom: var(--space-4);
    }

    .card-header,
    .card-body,
    .card-footer {
        padding: var(--space-4);
    }

    .social-media {
        flex-direction: column;
        align-items: center;
        gap: var(--space-4);
    }

    .social-link {
        padding: var(--space-4) var(--space-6);
        font-size: var(--font-size-lg);
    }

    .social-icon {
        width: 28px;
        height: 28px;
    }

    .team-member {
        flex-direction: column !important;
        text-align: center;
        gap: var(--space-6);
    }

    .headshot {
        width: 150px;
        height: 150px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .social-sticky {
        right: var(--space-2);
        gap: var(--space-2);
    }

    .social-sticky-link {
        width: 45px;
        height: 45px;
    }

    .social-sticky-icon {
        width: 20px;
        height: 20px;
    }
}

/* Modal Components */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background-color: var(--color-background);
    padding: var(--space-8);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    text-align: center;
    z-index: 2001;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-title {
    font-family: var(--font-family-headings);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.modal-text {
    font-family: var(--font-family-body);
    font-size: var(--font-size-lg);
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

@media (max-width: 768px) {
    .modal-content {
        padding: var(--space-6);
    }

    .modal-title {
        font-size: var(--font-size-2xl);
    }

    .modal-text {
        font-size: var(--font-size-base);
    }
}