/* =============== Theme Variables =============== */
:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --transition: all 0.2s ease-in-out;
    --border-radius: 6px;
    --border-radius-lg: 8px;
    /* Light theme (default variables are for light theme) */
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-tertiary: #eef2f5;
    --text-primary: #24292f;
    --text-secondary: #57606a;
    --text-muted: #8b949e;
    --border-color: #d0d7de;
    --accent-color: #0969da;
    --accent-hover: #0557b4;
    --danger-color: #cf222e;
    --success-color: #238636;
    --warning-color: #9e6a03;
    --card-shadow: 0 3px 6px rgba(140, 149, 159, 0.15);
    --header-bg: #ffffff;
    --footer-bg: #f6f8fa;
    --code-bg: #f6f8fa;
    --cta-bg: linear-gradient(to right, #0969da, #238636);
}

/* Dark theme */
[data-theme="dark"] {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --border-color: #30363d;
    --accent-color: #58a6ff;
    --accent-hover: #79b8ff;
    --danger-color: #f85149;
    --success-color: #3fb950;
    --warning-color: #d29922;
    --card-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    --header-bg: #161b22;
    --footer-bg: #161b22;
    --code-bg: #0d1117;
    --cta-bg: linear-gradient(to right, #1f6feb, #238636);
}

/* =============== Global Styles =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 16px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

    a:hover {
        color: var(--accent-hover);
    }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.25;
}

p {
    margin-bottom: 1rem;
}

button {
    cursor: pointer;
    font-family: var(--font-primary);
}

ul {
    list-style: none;
}

/* =============== Buttons =============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
}

    .btn i {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

    .btn-primary:hover {
        background-color: var(--accent-hover);
        border-color: var(--accent-hover);
        color: white;
    }

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

    .btn-outline:hover {
        background-color: var(--bg-secondary);
        color: var(--text-primary);
    }

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* =============== Header =============== */
header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-right: 1.5rem;
}

    .logo svg {
        margin-right: 0.5rem;
        color: var(--accent-color);
    }

.search-container {
    position: relative;
    flex: 1;
    max-width: 480px;
    margin-right: 1.5rem;
}

.search-bar {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
}

    .search-bar:focus {
        outline: none;
        border-color: var(--accent-color);
        box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.3);
    }

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

nav {
    margin-right: auto;
}

.nav-links {
    display: flex;
    align-items: center;
}

    .nav-links li {
        margin-right: 1.5rem;
    }

    .nav-links a {
        color: var(--text-secondary);
        font-weight: 500;
        font-size: 0.875rem;
    }

        .nav-links a:hover {
            color: var(--text-primary);
        }

.user-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle, .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius);
    border: none;
    background-color: transparent;
    color: var(--text-secondary);
    margin-left: 0.75rem;
    transition: var(--transition);
}

    .theme-toggle:hover, .mobile-menu-toggle:hover {
        background-color: var(--bg-secondary);
        color: var(--text-primary);
    }

.mobile-menu-toggle {
    display: none;
}

/* =============== Hero Section =============== */
.hero {
    padding: 4rem 0;
    background-color: var(--bg-primary);
    border-bottom: 0;
    padding-bottom: 0;
    text-align: center;
}

.hero-content {
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-actions {
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    min-width: 120px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* =============== Section Styling =============== */
section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
}

.view-all {
    font-size: 0.875rem;
    font-weight: 500;
}

/* =============== Categories Section =============== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.category-card {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

    .category-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--card-shadow);
    }

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    background-color: var(--bg-tertiary);
    margin-right: 1rem;
    color: var(--accent-color);
    font-size: 1.25rem;
}

.category-info {
    flex: 1;
}

    .category-info h3 {
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

    .category-info p {
        color: var(--text-secondary);
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

.category-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

    .category-meta i {
        margin-right: 0.25rem;
    }

/* =============== Datasets Section =============== */
.dataset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.dataset-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    transition: var(--transition);
}

    .dataset-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--card-shadow);
    }

.dataset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.dataset-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    background-color: var(--bg-tertiary);
    color: var(--accent-color);
    font-size: 1.25rem;
}

.dataset-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.dataset-type {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success-color);
    margin-bottom: 0.25rem;
}

.dataset-version {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dataset-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dataset-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.dataset-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dataset-stat i {
    margin-right: 0.25rem;
}

/* =============== Getting Started Section =============== */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step-card h3 {
    margin-bottom: 1rem;
}

.code-block {
    position: relative;
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    font-family: monospace;
    color: var(--text-primary);
    overflow-x: auto;
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.25rem;
    transition: var(--transition);
}

    .copy-btn:hover {
        color: var(--text-primary);
    }

.docs-link {
    display: flex;
    justify-content: center;
}

/* =============== Featured Section =============== */
.featured-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.featured-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
}

    .featured-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--card-shadow);
    }

.featured-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    background-color: var(--bg-tertiary);
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-size: 1.25rem;
}

.featured-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.featured-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.read-more {
    font-size: 0.875rem;
    font-weight: 500;
}

/* =============== CTA Section =============== */
.cta {
    background: var(--cta-bg);
    color: white;
    padding: 4rem 0;
    border-bottom: none;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta .btn-primary {
    background-color: white;
    border-color: white;
    color: var(--accent-color);
}

    .cta .btn-primary:hover {
        background-color: rgba(255, 255, 255, 0.9);
        border-color: rgba(255, 255, 255, 0.9);
    }

.cta .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

    .cta .btn-outline:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: white;
    }

/* =============== Footer =============== */
footer {
    background-color: var(--footer-bg);
    padding: 4rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-branding {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

    .footer-logo svg {
        margin-right: 0.5rem;
        color: var(--accent-color);
    }

    .footer-logo span {
        font-weight: 700;
        font-size: 1.25rem;
        color: var(--text-primary);
    }

.footer-tagline {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: var(--bg-tertiary);
        color: var(--text-secondary);
        transition: var(--transition);
    }

        .social-links a:hover {
            background-color: var(--accent-color);
            color: white;
        }

.footer-column h3 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

    .footer-links a:hover {
        color: var(--accent-color);
    }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

    .footer-bottom-links a {
        color: var(--text-muted);
    }

        .footer-bottom-links a:hover {
            color: var(--text-secondary);
        }

/* =============== Responsive Styles =============== */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-branding {
        grid-column: span 3;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .social-links {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }

        .hero h1 {
            font-size: 2rem;
        }

        .hero p {
            font-size: 1rem;
        }

    .hero-stats {
        flex-wrap: wrap;
    }

    .stat-card {
        min-width: 100px;
    }

    .nav-links {
        display: none;
    }

    nav.show .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 0;
    }

        nav.show .nav-links li {
            margin: 0;
            width: 100%;
        }

        nav.show .nav-links a {
            display: block;
            padding: 0.75rem 1.5rem;
        }

    .mobile-menu-toggle {
        display: flex;
    }

    .search-container {
        margin-right: auto;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-branding {
        grid-column: span 2;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-actions {
        flex-direction: column;
    }

    .header-container {
        height: auto;
        padding: 1rem 0;
        flex-wrap: wrap;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .user-actions {
        margin-left: auto;
    }

    .search-container {
        order: 3;
        margin: 1rem 0 0;
        max-width: 100%;
        width: 100%;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-branding {
        grid-column: span 1;
    }

    .steps-container, .category-grid, .dataset-grid, .featured-container {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }
}


/* =============== RefWire Cloud Section =============== */
.refwire-cloud {
    background-color: var(--bg-primary);
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cloud-intro {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    gap: 2rem;
}

.cloud-content {
    flex: 2;
}

    .cloud-content h3 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }

    .cloud-content p {
        font-size: 1.1rem;
        color: var(--text-secondary);
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

.cloud-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 2rem;
}

    .cloud-features li {
        display: flex;
        align-items: center;
        font-size: 0.95rem;
        color: var(--text-primary);
    }

        .cloud-features li i {
            color: var(--success-color);
            margin-right: 0.5rem;
        }

.cloud-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .cloud-image i {
        font-size: 8rem;
        color: var(--accent-color);
        opacity: 0.8;
    }

/* Pricing Cards */
.pricing-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pricing-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
}

    .pricing-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--card-shadow);
    }

    .pricing-card.featured {
        border-color: var(--accent-color);
        transform: scale(1.05);
        z-index: 1;
        box-shadow: var(--card-shadow);
    }

        .pricing-card.featured:hover {
            transform: translateY(-5px) scale(1.05);
        }

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.pricing-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

    .pricing-header h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

.pricing-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.pricing-price {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

    .pricing-price .price {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--text-primary);
    }

    .pricing-price .period {
        font-size: 0.875rem;
        color: var(--text-secondary);
    }

.pricing-features {
    margin-bottom: 1.5rem;
}

    .pricing-features li {
        display: flex;
        align-items: center;
        margin-bottom: 0.75rem;
        font-size: 0.875rem;
    }

        .pricing-features li i {
            margin-right: 0.5rem;
            font-size: 0.75rem;
            width: 16px;
            text-align: center;
        }

            .pricing-features li i.fa-check {
                color: var(--success-color);
            }

            .pricing-features li i.fa-times {
                color: var(--danger-color);
            }

.btn-full {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .pricing-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.featured {
        grid-row: 1;
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .cloud-intro {
        flex-direction: column;
    }

    .cloud-features {
        grid-template-columns: 1fr;
    }

    .pricing-container {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        grid-column: span 1;
        transform: scale(1);
    }

        .pricing-card.featured:hover {
            transform: translateY(-5px);
        }
}



/* Core section styling */
.refwire-solutions {
    padding: 4rem 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.solutions-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.solutions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.solutions-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-primary);
}

.solutions-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    max-width: 700px;
}

/* Solutions grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Solution card styling */
.solution-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .solution-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--card-shadow);
    }

.solution-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    fill: var(--accent-color);
}

.solution-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.solution-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.solution-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

    .solution-actions .btn {
        padding: 0.6rem 1.2rem;
        font-weight: 500;
    }

.solution-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.solution-meta-item {
    display: flex;
    align-items: center;
}

.solution-meta-icon {
    width: 1em;
    height: 1em;
    margin-right: 0.4rem;
    fill: currentColor;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .solution-actions {
        flex-direction: column;
    }
}


/* Core section styling */
.refwire-solutions {
    padding: 4rem 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.solutions-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.solutions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.solutions-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-primary);
}

.solutions-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    max-width: 700px;
}

/* Solutions grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Solution card styling */
.solution-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .solution-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--card-shadow);
    }

.solution-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    fill: var(--accent-color);
}

.solution-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.solution-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.solution-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

    .solution-actions .btn {
        padding: 0.6rem 1.2rem;
        font-weight: 500;
    }

.solution-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.solution-meta-item {
    display: flex;
    align-items: center;
}

.solution-meta-icon {
    width: 1em;
    height: 1em;
    margin-right: 0.4rem;
    fill: currentColor;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .solution-actions {
        flex-direction: column;
    }
}


footer {
    background-color: var(--footer-bg); /* From refwire.css */
    padding: 3rem 0 1.5rem; /* Adjust padding */
    color: var(--text-secondary); /* Default text color for footer */
    font-size: 0.875rem;
}

.footer-main {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: space-between;
    gap: 2rem; /* Space between sections */
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-branding {
    flex: 1 1 300px; /* Grow, shrink, basis */
    margin-right: 2rem; /* Space from other columns */
}

.footer-logo-link {
    display: inline-flex; /* Align logo and text */
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-primary); /* Logo text color */
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-logo-img {
    width: 32px; /* Match SVG size */
    height: 32px;
    margin-right: 0.75rem;
    /* currentColor will not work directly on img src for SVG fill unless SVG is inline or styled internally to inherit */
    /* If your logo.svg is designed to take on text color, it might work with parent's color. Otherwise, it's fixed. */
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.footer-navigation {
    flex: 2 1 400px; /* Allow more space for navigation links */
    display: flex;
    flex-wrap: wrap;
    gap: 2rem; /* Space between link columns */
}

.footer-links-column {
    flex: 1 1 150px; /* Each column of links */
}

    .footer-links-column h4 {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 1rem;
    }

    .footer-links-column ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-links-column li {
        margin-bottom: 0.6rem;
    }

    .footer-links-column a {
        color: var(--text-secondary);
        text-decoration: none;
        transition: var(--transition);
    }

        .footer-links-column a:hover {
            color: var(--accent-color);
            text-decoration: underline;
        }

.footer-social {
    flex: 1 1 200px; /* Space for social links */
}

    .footer-social h4 {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 1rem;
    }
    /* .social-links reused from refwire.css, ensure it's suitable or override here */
    .footer-social .social-links a {
        background-color: var(--bg-tertiary); /* Match existing refwire.css style or adjust */
        color: var(--text-secondary);
    }

        .footer-social .social-links a:hover {
            background-color: var(--accent-color);
            color: white;
        }


.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

    .footer-bottom p {
        margin-bottom: 0.5rem;
    }

/* Responsive Footer Adjustments */
@media (max-width: 992px) {
    .footer-branding {
        margin-right: 0; /* Remove specific margin if it's stacking */
        margin-bottom: 2rem; /* Add space when it stacks above links */
        flex-basis: 100%; /* Full width when stacking */
        text-align: center;
    }

    .footer-logo-link {
        justify-content: center; /* Center logo when branding is centered */
    }

    .footer-navigation {
        flex-basis: 100%; /* Full width for nav links section */
        justify-content: space-around; /* Distribute link columns */
    }

    .footer-social {
        flex-basis: 100%;
        text-align: center;
        margin-top: 1rem;
    }

        .footer-social .social-links {
            justify-content: center; /* Center social icons */
        }
}

@media (max-width: 576px) {
    .footer-main {
        flex-direction: column; /* Stack everything vertically */
        align-items: center; /* Center content within each block */
        text-align: center;
    }

    .footer-navigation {
        flex-direction: column; /* Stack link columns themselves */
        align-items: center;
        gap: 1.5rem;
    }

    .footer-links-column {
        flex-basis: auto; /* Reset basis */
        width: 100%;
        text-align: center;
    }

    .footer-social h4 {
        margin-top: 1rem; /* Add some space if stacked */
    }
}


/* --- Cookie Consent Banner Styles --- */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    z-index: 1050; /* High z-index */
    display: none; /* Hidden by default */
    font-size: 0.875rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out; /* For smooth appearance */
    transform: translateY(100%); /* Start off-screen */
}

    .cookie-consent-banner.show {
        display: block; /* Or 'flex' if its direct child is the container */
        transform: translateY(0);
    }

[data-theme="dark"] .cookie-consent-banner {
    background-color: var(--bg-tertiary);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.cookie-consent-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px; /* Match your site's container */
    margin: 0 auto;
    padding: 0 1.5rem; /* Match your site's container padding */
}

.cookie-consent-text {
    margin-bottom: 0;
    line-height: 1.5;
    flex-grow: 1;
}

    .cookie-consent-text a {
        color: var(--accent-color);
        text-decoration: underline;
        font-weight: 500;
    }

        .cookie-consent-text a:hover {
            text-decoration: none;
        }

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

    .cookie-consent-actions .btn { /* Reuse existing .btn styling */
        padding: 0.5rem 1rem; /* Standard button padding or use .btn-sm */
        font-size: 0.8rem;
    }


@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cookie-consent-text {
        margin-bottom: 1rem;
    }

    .cookie-consent-actions {
        justify-content: center;
    }
}