/* ==========================================================================
   chrisjackmanlegal.com — hand-written stylesheet
   Replaces the Elementor/HFE/Hello-Theme cascade (was ~277 KB across 27 files).
   Fonts: Roboto + Poppins latin subsets via 207e36f60fd8.css / 73c0f4d2b237.css.
   Layout tokens captured from the original export on 2026-08-14.
   ========================================================================== */

/* ---------- Base ---------- */
html {
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}
body {
    margin: 0;
    background: #fff;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px;
    line-height: 24px;
}
a {
    color: #c36;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
img {
    max-width: 100%;
    height: auto;
}

/* Headings hidden for SEO (kept from original export: .page-header display:none) */
.entry-title-hidden {
    display: none;
}

/* Plain vertical spacers (replaces Elementor spacer widgets) */
.cspacer {
    display: block;
    flex-shrink: 0;
}
.cspacer-5   { height: 5px; }
.cspacer-10  { height: 10px; }
.cspacer-24  { height: 24px; }
.cspacer-50  { height: 50px; }
/* spacer sections in the original sat inside padded containers (10px top/bottom) */
.cspacer-block {
    padding: 10px 0;
    box-sizing: content-box;
}

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid #ccc;
    position: relative;
}
/* Desktop: constrain the masthead to 1200px, centered */
@media (min-width: 1025px) {
    .site-header {
        max-width: 1200px;
        margin: 0 auto;
    }
}
.header-inner {
    display: flex;
    align-items: flex-start;
    padding: 10px;
}
.site-logo {
    display: block;
    line-height: 0;
    padding: 10px 0;
}
.site-logo img {
    display: block;
    width: 31.19px;
    height: 31.19px;
}

/* Primary nav (overlays the header, like the original absolutely-positioned widget) */
.site-nav {
    position: absolute;
    top: -4px;
    left: 51px;
}

/* Primary nav */
.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav > ul {
    display: flex;
    align-items: center;
}
.site-nav > ul > li {
    position: relative;
}
.site-nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 55px;
    padding: 13px 20px;
    color: #1c1c1f;
    text-transform: uppercase;
}
.site-nav a:hover {
    text-decoration: none;
    color: #121275;
}
.caret {
    width: 18px;
    height: 18px;
    fill: #1c1c1f;
    margin-top: -1px;
}

/* Desktop submenus (hover) */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    display: none;
    min-width: 100%;
    background: #fff;
}
.has-children:hover > .sub-menu,
.has-children.open > .sub-menu {
    display: block;
}
.sub-menu a {
    display: block;
    white-space: nowrap;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    padding: 13px 20px;
    color: rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
}

/* Burger (hidden on desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 33px;
    height: 33px;
    padding: 5.5px;
    border: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
}
.nav-toggle-bar {
    display: block;
    width: 16px;
    height: 2px;
    background: #33373f;
}

/* ---------- Tablet/mobile nav: burger + dropdown panel ---------- */
@media (max-width: 1024px) {
    .header-inner {
        padding: 20px 10px;
        justify-content: space-between;
    }
    .nav-toggle {
        display: flex;
    }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        transform: none;
        z-index: 30;
        background: #fff;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }
    .site-nav.open {
        max-height: 605px;
    }
    .site-nav > ul {
        display: block;
    }
    .site-nav > ul > li > a {
        line-height: 24px;
    }
    .site-nav .sub-menu {
        position: static;
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    .site-nav .has-children.open > .sub-menu {
        display: block;
        max-height: 300px;
    }
}

/* ---------- Home: news heading ---------- */
.news-heading {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 10px;
}
.news-title {
    margin: 0 0 10px;
    font-family: "Poppins", sans-serif;
    font-size: 50px;
    font-weight: 500;
    line-height: 50px;
    color: #121275;
    text-align: center;
}
.news-intro {
    margin: 0 auto 20px;
    max-width: 1110px;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #000;
    text-align: center;
}

/* ---------- Home: news card grid ---------- */
.news-section {
    max-width: 1140px;
    margin: 0 auto;
}
.news-grid {
    display: block;
}
.news-row {
    display: flex;          /* nowrap: cards shrink to exactly 2 per row */
}
.news-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 0 1 50%;
    min-width: 0;
    margin: 20px;
    padding: 0;
    background: #fff;
    box-shadow: 0 0 5px #aaa;
}
.news-card-img {
    display: block;
    width: 100%;
    height: auto;
}
.news-card-title {
    margin: 0;
    padding: 0 15px;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
    color: #121275;
}
.news-card-date {
    display: block;
    padding: 0 15px;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #000;
}
.news-card-excerpt {
    padding: 0 15px;
}
.news-card-excerpt p {
    margin: 0 0 14.4px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    color: #000;
}
.news-card-link {
    display: inline-block;
    padding: 0 15px;
    margin-bottom: 14.4px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    color: #c36;
}
.news-card-link:hover {
    text-decoration: underline;
}
/* Load-more button (progressive disclosure; hidden until JS enables it) */
.load-more {
    display: none;
    margin: 10px auto 0;
    padding: 12px 44px;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #fff;
    background: #121275;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}
.load-more:hover {
    background: #0d0d5e;
}
.load-more:focus-visible {
    outline: 2px solid #6ec1e4;
    outline-offset: 2px;
}
/* Cards whose date/more widgets were p-wrapped in the original (adds 14.4px) */
.news-card.date-p .news-card-date {
    margin-bottom: 14.4px;
}
.news-card.more-bare .news-card-link {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .news-title {
        font-size: 50px;
    }
    .news-row {
        flex-wrap: wrap;
    }
    .news-card {
        flex-basis: 100%;
    }
    .site-logo {
        padding: 0;
    }
    .site-logo img {
        width: 41px;
        height: 41px;
    }
    .nav-toggle {
        align-self: center;
        margin-right: 5px;
    }
    .news-heading {
        padding: 0;
    }
    .footer-top {
        margin-top: 0;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    background: url("/_assets/f6d850df2cac.jpg") 0 0 repeat;
    padding: 100px 0 30px;
    color: #fff;
}
.footer-inner {
    max-width: 1260px;
    margin: 0 auto;
}
.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px;
    margin-top: 10px;
}
.footer-logo {
    width: 60px;
    height: 60px;
}
.footer-nav {
    margin-right: 0;
}
.footer-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}
.footer-nav a {
    display: flex;
    align-items: center;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 27px;
    padding: 13px 10px;
    color: #fff;
    text-transform: uppercase;
}
.footer-nav a:hover {
    color: #6ec1e4;
}
.footer-divider {
    border: 0;
    border-top: 1px solid #494991;
    padding: 15px 0;
    margin: 30px 10px 0;
}
.footer-copyright {
    margin: 50px 10px 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #fff;
    text-align: center;
}
.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    padding: 40px 20px;
}
.social-btn {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    display: grid;
    place-items: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.social-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px #0003;
}
.social-btn svg {
    width: 18px;
    height: 18px;
}
.social-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 100%;
    margin-bottom: 6px;
    padding: 4px 10px;
    background: #1a1a2e;
    color: #fff;
    font-size: 12.5px;
    white-space: nowrap;
    border-radius: 5px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s, transform 0.18s;
}
.social-btn::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 100%;
    border: 5px solid transparent;
    border-top-color: #1a1a2e;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s, transform 0.18s;
}
.social-btn:hover::after,
.social-btn:hover::before {
    opacity: 1;
    visibility: visible;
}
.social-btn:hover::after {
    transform: translateX(-50%) translateY(-4px);
}
.social-btn:hover::before {
    transform: translateX(-50%) translateY(-2px);
}
.social-btn--youtube    { background: #FF0000; }
.social-btn--medium     { background: #000000; }
.social-btn--aboutme    { background: #333333; }
.social-btn--crunchbase { background: #0288D1; }
.social-btn--x          { background: #000000; }
.social-btn--tiktok     { background: #000000; }
.social-btn--linkedin   { background: #0A66C2; }
.social-btn--instagram  { background: #E4405F; }
.social-btn--facebook   { background: #1877F2; }

@media (max-width: 767px) {
    .site-footer {
        padding: 100px 0 30px;
    }
    .footer-top {
        justify-content: flex-start;
        flex-direction: column;
        align-items: center;
    }
    .footer-nav {
        margin-right: 0;
        margin-top: 10px;
    }
    .footer-nav ul {
        justify-content: center;
    }
}
