/* UCSB Brand Colors */
:root {
    --ucsb-navy: #003660;
    --ucsb-gold: #FEBC11;
    --ucsb-white: #FFFFFF;
    --ucsb-light-gray: #F5F5F5;
    --ucsb-dark-gray: #767676;
    --ucsb-clay: #DCD6CC;
    --ucsb-aqua: #047C91;
    --ucsb-coral: #EF5645;
    --ucsb-mist: #9CBEBE;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--ucsb-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
.site-header {
    background-color: var(--ucsb-navy);
    color: var(--ucsb-white);
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    max-width: 100%;
    padding: 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.ucsb-logo {
    height: auto;
    max-height: 36px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    flex-shrink: 1;
    vertical-align: middle;
}

.ai-commons-logo {
    height: auto;
    max-height: 48px;
    width: auto;
    max-width: 350px;
    object-fit: contain;
    flex-shrink: 1;
    vertical-align: middle;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ucsb-gold);
    margin: 0;
}

.site-title-link {
    text-decoration: none;
}

.site-title-link:hover .site-title {
    opacity: 0.8;
}

.site-subtitle {
    font-size: 1.125rem;
    color: var(--ucsb-white);
    font-weight: 300;
}

/* Main Content */
.main-content {
    padding: 4rem 0;
}

.welcome-section {
    text-align: center;
    margin-bottom: 4rem;
}

.welcome-section h2 {
    font-size: 2.5rem;
    color: var(--ucsb-navy);
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--ucsb-dark-gray);
    max-width: 800px;
    margin: 0 auto;
}

/* Feature Grid */
.features {
    margin: 4rem 0;
}

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

.feature-card {
    background-color: var(--ucsb-light-gray);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--ucsb-gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 54, 96, 0.15);
}

.feature-card h3 {
    color: var(--ucsb-navy);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--ucsb-dark-gray);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background-color: var(--ucsb-clay);
    padding: 3rem;
    border-radius: 8px;
    margin: 4rem 0;
}

.cta-section h2 {
    color: var(--ucsb-navy);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    color: var(--ucsb-dark-gray);
    margin-bottom: 2rem;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #002849;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 54, 96, 0.3);
}

.btn-secondary {
    background-color: var(--ucsb-gold);
    color: var(--ucsb-navy);
}

.btn-secondary:hover {
    background-color: #e5aa0f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(254, 188, 17, 0.3);
}

/* Documentation Links Section */
.doc-links {
    margin: 4rem 0;
}

.doc-links h2 {
    text-align: center;
    color: var(--ucsb-navy);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.doc-links .feature-card h3 a {
    color: var(--ucsb-navy);
    text-decoration: none;
}

.doc-links .feature-card h3 a:hover {
    color: var(--ucsb-aqua);
    text-decoration: none;
}

/* Footer */
footer {
    background-color: var(--ucsb-navy);
    color: var(--ucsb-white);
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
}

.footer .block-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer .paragraph {
    flex: 1;
    min-width: 280px;
}

.footer .ucsb-wordmark svg {
    width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
    fill: var(--ucsb-white);
}

.footer .contact-info {
    color: var(--ucsb-white);
    line-height: 1.8;
}

.footer .site-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer .contact-line {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer .second-column h2.label {
    color: var(--ucsb-gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer .second-column p {
    margin: 0.5rem 0;
}

.footer .second-column a {
    color: var(--ucsb-white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer .second-column a:hover {
    color: var(--ucsb-gold);
    text-decoration: underline;
}

.footer .offsite {
    width: 16px;
    height: 16px;
}

.footer .offsite path {
    fill: var(--ucsb-aqua);
}

.footer-bottom {
    background-color: var(--ucsb-navy);
    color: rgba(255, 255, 255, 0.8);
    padding: 1.5rem 2rem;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .copyright {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.875rem;
    justify-content: center;
}

.footer-bottom .separator {
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a.terms {
    color: var(--ucsb-white);
    text-decoration: none;
}

.footer-bottom a.terms:hover {
    color: var(--ucsb-gold);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer .block-inner {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .footer-bottom .copyright {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .footer-bottom .separator {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }

    .ai-commons-logo {
        max-height: 40px;
        max-width: 280px;
    }

    .welcome-section h2 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1.125rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }

    .button-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .header-content {
        gap: 0.75rem;
    }
}
