/* 
 * Springus App Website Styles
 * Based on Springus Design System 2025-02 Color Palette
 */

/* Import Space Grotesk font */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Color Variables */
:root {
    --orange: #F89900;
    /* Accent Orange */
    --teal: #ABFFEA;
    /* Header and Footer */
    --taupe: #B2AA95;
    /* Subheading and Stroke */
    --beige: #FFF7DF;
    /* Text Color for teal */
    --grey: #F5F3F1;
    /* Secondary Background */
    --dark-grey: #1E1E1E;
    /* Text and stuff */
    --navy: #002243;
    /* Primary Background */

    /* Semantic Colors */
    --background-primary: var(--navy);
    --background-secondary: var(--teal);
    --background-accent: var(--taupe);

    --text-primary: var(--dark-grey);
    --text-secondary: var(--beige);
    --text-accent: var(--orange);

    --ui-header: var(--navy);
    --ui-footer: var(--teal);
    --ui-stroke: var(--taupe);

    --button-primary: var(--orange);
    --button-secondary: var(--beige);
    --button-stroke: var(--dark-grey);

    --card-primary: var(--taupe);
    --card-secondary: var(--grey);
    --card-stroke: var(--taupe);
    --card-shadow: rgba(30, 30, 30, 0.1);
}

/* Base Styles */
body {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-primary);
    margin: 0;
    padding: 0;
}

header.pointer-events-none {
    background-color: transparent;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 0.5em;
    color: var(--text-primary);
}

h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 1.5em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--ui-stroke);
    color: var(--text-accent);
}

h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 1.2em;
    color: var(--text-secondary);
}

p,
li {
    font-size: 17px;
    margin-bottom: 1em;
    color: var(--text-primary);
}

a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

/* Layout Components */

/* FAQ specific styles */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background-color: var(--card-secondary);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px var(--card-shadow);
    border: 1px solid var(--card-stroke);
}

.question {
    font-weight: 600;
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question::after {
    content: "+";
    font-size: 24px;
    transition: transform 0.3s ease;
}

.question.active::after {
    transform: rotate(45deg);
}

.answer {
    padding-top: 10px;
    color: var(--text-primary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.answer p {
    color: var(--text-primary);
}

.contact {
    margin-top: 40px;
    background-color: var(--background-secondary);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.contact h2 {
    color: var(--text-primary);
    border-bottom: none;
}

.contact p {
    color: var(--text-primary);
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-primary {
    background-color: var(--button-primary);
    color: var(--text-secondary);
    border: 2px solid var(--button-stroke);
}

.button-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.button-secondary {
    background-color: var(--button-secondary);
    color: var(--text-primary);
    border: 2px solid var(--button-stroke);
}

.button-secondary:hover {
    background-color: var(--background-secondary);
}

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    .faq-item {
        padding: 15px;
    }

    .contact {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    p,
    li {
        font-size: 16px;
    }

    .button {
        padding: 10px 20px;
        font-size: 16px;
    }
}

/* Markdown content styling */
.markdown-content h1 {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700; /* font-bold */
    margin-bottom: 1rem; /* mb-4 */
    color: #002243; /* text-navy */
}

.markdown-content h2 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    margin-top: 1.5rem; /* mt-6 */
    margin-bottom: 0.75rem; /* mb-3 */
    color: #002243; /* text-navy */
}

.markdown-content h3 {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600; /* font-semibold */
    margin-top: 1.25rem; /* mt-5 */
    margin-bottom: 0.5rem; /* mb-2 */
    color: #002243; /* text-navy */
}

.markdown-content p {
    margin-bottom: 1rem; /* mb-4 */
    color: #1E1E1E; /* text-darkGrey */
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 1rem; /* mb-4 */
    margin-left: 1.25rem; /* ml-5 */
}

.markdown-content ul {
    list-style-type: disc; /* list-disc */
}

.markdown-content ol {
    list-style-type: decimal; /* list-decimal */
}

.markdown-content li {
    margin-bottom: 0.5rem; /* mb-2 */
}

.markdown-content a {
    color: #F89900; /* text-orange */
}

.markdown-content a:hover {
    text-decoration: underline;
}

.markdown-content blockquote {
    border-left: 4px solid #B2AA95; /* border-l-4 border-taupe */
    padding-left: 1rem; /* pl-4 */
    font-style: italic; /* italic */
    margin-top: 1rem;
    margin-bottom: 1rem; /* my-4 */
}

.markdown-content code {
    background-color: #F5F3F1; /* bg-grey */
    padding: 0.125rem 0.25rem; /* px-1 py-0.5 */
    border-radius: 0.25rem; /* rounded */
    font-size: 0.875rem; /* text-sm */
}

.markdown-content pre {
    background-color: #F5F3F1; /* bg-grey */
    padding: 1rem; /* p-4 */
    border-radius: 0.25rem; /* rounded */
    overflow-x: auto; /* overflow-x-auto */
    margin-top: 1rem;
    margin-bottom: 1rem; /* my-4 */
}
