/* Makerspace Page Styles */
.makerspace-hero {
    background: linear-gradient(120deg, var(--color-brand-primary) 0%, var(--color-brand-secondary) 100%);
    color: #292829;
    padding: 4rem 0 3rem 0;
    text-align: center;
    position: relative;
}
.makerspace-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #292829;
}
.makerspace-hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    color: #292829;
}
.makerspace-section {
    background: var(--color-bg-white);
    border-radius: 1rem;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.06);
    padding: 2.5rem 2rem;
    margin-bottom: 2.5rem;
}
.makerspace-section h2 {
    color: var(--color-brand-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.makerspace-section h3 {
    color: var(--color-brand-accent);
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.makerspace-hero a {
    color: var(--color-teal);
}

.makerspace-section a {
    color: var(--color-teal);
}

.makerspace-table a {
    color: var(--color-teal);
}

.makerspace-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}
.makerspace-table th, .makerspace-table td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    text-align: left;
}
.makerspace-table th {
    background: #f3f4f6;
    color: var(--color-text-dark);
}
.makerspace-table tr:nth-child(even) {
    background: #f9fafb;
}
@media (max-width: 700px) {
    .makerspace-section {
        padding: 1.2rem 0.5rem;
    }
    .makerspace-hero h1 {
        font-size: 2rem;
    }
}
:root {
    --font-primary: 'DM Sans', 'Segoe UI', Arial, sans-serif;
    
    /* Brand Colours */
    --color-orange: #FF7800;
    --color-charcoal: #292829;
    --color-teal: #03646A;
    --color-white: #FFFFFF;

    /* Text Colours */
    --color-text-dark: var(--color-charcoal);
    --color-text-light: var(--color-white);

    /* Brand Palette */
    --color-brand-primary: var(--color-teal);
    --color-brand-accent: var(--color-orange);

    /* Backgrounds */
    --color-bg-light: #f9fafb;
    --color-bg-dark: #18181b;
    --color-bg-white: var(--color-white);

    /* Other */
    --color-border: #ccc;
    --bg: var(--color-bg-light);
}

/* Base styles */
body {
    margin: 0;
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    background: var(--bg);
}
/* Layout */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 3rem 0;
}

@media (max-width: 700px) {
    nav .container, .container {
        flex-direction: column;
        align-items: flex-start;
    }
    section {
        padding: 1.5rem 0;
    }
}

/* Navigation */
header {
    background: var(--color-text-dark);
    color: var(--color-text-light);
    padding: 0.5rem 0;
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--color-brand-primary);
}

.active-link {
    color: var(--color-brand-accent) !important;
    font-weight: bold;
    border-bottom: 2px solid var(--color-brand-accent);
}

.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 60;
}

/* Hero Section */
.hero {
    background: linear-gradient(120deg, var(--color-brand-primary) 0%, var(--color-brand-primary) 100%);
    height: 120vh;
    color: var(--color-text-light);
    padding: 5rem 0 3rem;
    text-align: center;
}
.hero-bg {
    background-image: url('/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 700px) {
    .hero {
        padding: 2rem 0 1.5rem;
    }
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

input, textarea {
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 1rem;
}

/* Buttons */
button,
.cta-button,
.cta-button-secondary {
    font-family: var(--font-primary);
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.3s, color 0.2s;
}

.cta-button {
    background-color: var(--color-brand-accent);
    color: var(--color-text-light);
}
.cta-button-secondary {
    background-color: transparent;
    border: 2px solid var(--color-text-light);
    color: var(--color-text-light);
}
button {
    background: var(--color-brand-primary);
    color: var(--color-text-light);
}

.cta-button:hover,
button:hover {
    background: var(--color-brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.cta-button-secondary:hover {
    background-color: var(--color-text-light);
    color: var(--color-brand-accent);
    transform: translateY(-2px);
}

/* Accessibility Focus */
a:focus,
button:focus,
.cta-button:focus,
.cta-button-secondary:focus {
    outline: 2px solid var(--color-brand-accent);
    outline-offset: 2px;
}

/* Footer */
footer {
    background: var(--color-text-dark);
    color: var(--color-text-light);
    text-align: center;
    padding: 1rem 0;
}

/* Logos */
.logo-icon {
    width: 44px;
    height: 44px;
}

/* Pattern overlays */
.pattern-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url('/assets/images/texture.png');
    background-size: contain;
    background-repeat: repeat;
}

.section-with-overlay {
    position: relative;
    background: var(--color-bg-white);
    z-index: 1;
    overflow: hidden;
}
.section-with-overlay > *:not(.pattern-overlay) {
    position: relative;
    z-index: 1;
}

/* Details reset */
details,
details[open],
details summary {
    border: none !important;
    box-shadow: none !important;
}

/* Responsive Button Sizes */
@media (max-width: 768px) {
    .cta-button,
    .cta-button-secondary,
    button {
        font-size: 1.2rem;
        padding: 1.2rem 1.5rem;
    }
}

/* Contact Section */
#contact {
    margin-bottom: 0;
}

/* Microgrant Page Styles */
.microgrant-hero {
    background: linear-gradient(135deg, var(--color-brand-accent) 0%, var(--color-brand-primary) 100%);
    color: var(--color-text-light);
    padding: 6rem 1.5rem 3rem;
    text-align: center;
}
.microgrant-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.microgrant-hero .subtitle {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}
.microgrant-hero .lead {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.status-badge .dot {
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.microgrant-section {
    background: var(--color-bg-white);
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 2.5rem 2rem;
    margin-bottom: 2.5rem;
}
.microgrant-section h2 {
    color: var(--color-brand-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.microgrant-section h3 {
    color: var(--color-brand-accent);
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.microgrant-section h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.microgrant-section a {
    color: var(--color-teal);
}

.microgrant-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.microgrant-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}
.microgrant-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.microgrant-card {
    background: var(--color-bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}
.microgrant-card h4 {
    color: var(--color-brand-primary);
    margin-bottom: 0.75rem;
}
.microgrant-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.microgrant-card li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
}
.microgrant-card li::before {
    content: "•";
    color: var(--color-brand-accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.highlight-box {
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
    border-left: 4px solid var(--color-brand-primary);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
}
.highlight-box p {
    margin-bottom: 0.5rem;
}

/* Steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--color-brand-accent);
    color: var(--color-text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}
.step-content h4 {
    color: var(--color-brand-primary);
    margin-bottom: 0.25rem;
}
.step-content p {
    margin: 0;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 1.25rem 0;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    font-weight: 600;
    color: var(--color-brand-primary);
    margin-bottom: 0.5rem;
}
.faq-answer {
    color: var(--color-text-dark);
    line-height: 1.7;
}

/* CTA Section */
.microgrant-cta {
    background: linear-gradient(135deg, var(--color-brand-primary) 0%, var(--color-brand-accent) 100%);
    color: var(--color-text-light);
    text-align: center;
    border-radius: 1rem;
    padding: 3rem 2rem;
    margin-bottom: 2.5rem;
}
.microgrant-cta h2 {
    color: var(--color-text-light);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.microgrant-cta p {
    opacity: 0.9;
}
.microgrant-cta a {
    color: var(--color-text-light);
}

/* Buttons (microgrant page) */
.btn {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-primary);
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--color-brand-accent);
    color: var(--color-text-light);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 120, 0, 0.3);
}
.btn-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .microgrant-hero {
        padding: 5rem 1rem 2rem;
    }
    .microgrant-hero h1 {
        font-size: 1.75rem;
    }
    .microgrant-section {
        padding: 1.5rem 1rem;
    }
    .microgrant-grid-2 {
        grid-template-columns: 1fr;
    }
    .step {
        flex-direction: column;
    }
}
