/*
Theme Name: Bold Blocks
Version: 1.6
*/

:root {
    --ink: #2e294e;
    --paper: #fcfbf9;
    --cobalt: #0085ff;
    --sun: #ffb400;
    --magenta: #ff007f;
    --violet: #9146ff;
    --border: 1px solid rgba(46, 41, 78, 0.1);
}

/* Reset & Off-White Base */
body {
    background-color: var(--paper);
    color: var(--ink);
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* Header & Navigation */
.site-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(46, 41, 78, 0.1);
    padding: 12px 0;
    position: relative;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-branding .custom-logo,
.site-logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

.site-title-link {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2e294e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-title-link:hover {
    color: #db504a;
}

.main-navigation .main-menu-list,
.main-navigation ul#primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2e294e;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item:not(.pink-btn) > a {
    color: #db504a;
    background-color: rgba(219, 80, 74, 0.08);
}

.main-navigation li.pink-btn a,
.main-navigation a.pink-btn {
    background-color: #ff007f;
    color: #ffffff !important;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.main-navigation li.pink-btn a:hover,
.main-navigation a.pink-btn:hover {
    background-color: #db504a;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid #2e294e;
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #2e294e;
    border-radius: 2px;
}

/* Projects Archive Page Styles (/projects/) */
.project-archive-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.archive-header {
    border-bottom: 3px solid #2e294e;
    padding-bottom: 16px;
    margin-bottom: 35px;
    text-align: left;
}

.archive-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #2e294e;
    margin: 0 0 8px 0;
}

.archive-description {
    font-size: 1.05rem;
    color: rgba(46, 41, 78, 0.75);
    margin: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.project-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(46, 41, 78, 0.1);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(46, 41, 78, 0.08);
    border-color: rgba(219, 80, 74, 0.3);
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: #f5f3ef;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.04);
}

.project-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.project-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(46, 41, 78, 0.06);
    color: #2e294e;
    padding: 3px 8px;
    border-radius: 4px;
}

.project-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2e294e;
    margin: 0 0 10px 0;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.project-card:hover .project-card-title {
    color: #db504a;
}

.project-card-excerpt {
    font-size: 0.92rem;
    color: rgba(46, 41, 78, 0.75);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-card-more {
    font-size: 0.9rem;
    font-weight: 700;
    color: #db504a;
    display: inline-block;
    margin-top: auto;
}

/* Page & Single Post Alignment Rules (Force Match to /projects/ Grid) */
.page .entry-header,
.page .entry-title,
.page-title,
h1.entry-title,
article .entry-header,
body.single-project #primary,
body.single-project .site-main,
.single-project-container {
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    text-align: left !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: both !important;
}

.page .entry-title,
h1.entry-title,
.single-project-title {
    font-size: 2.4rem !important;
    font-weight: 800 !important;
    color: #2e294e !important;
    margin-top: 30px !important;
    margin-bottom: 25px !important;
    line-height: 1.2 !important;
    text-align: left !important;
}

/* Keep Content & Application Block Centered Inside 1200px Grid */
.page .entry-content,
.page .site-main,
.single-project-content,
.entry-content {
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Footer & Responsiveness */
.site-footer {
    background-color: #f5f3ef;
    border-top: 1px solid rgba(46, 41, 78, 0.1);
    padding: 40px 0 20px 0;
    margin-top: 60px;
    color: #2e294e;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.footer-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-navigation a {
    color: #2e294e;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0 auto;
    padding: 20px 20px 0 20px;
    border-top: 1px solid rgba(46, 41, 78, 0.08);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(46, 41, 78, 0.6);
}

@media (max-width: 767px) {
    .menu-toggle {
        display: flex;
    }

    .main-navigation .main-menu-list,
    .main-navigation ul#primary-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fcfbf9;
        padding: 16px 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(46, 41, 78, 0.1);
        z-index: 999;
        gap: 10px;
    }

    .main-navigation.is-open .main-menu-list,
    .main-navigation.is-open ul#primary-menu {
        display: flex;
    }

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

    .page .entry-title,
    h1.entry-title,
    .single-project-title {
        font-size: 1.8rem !important;
    }
}