/*
Theme Name: TJB Security Home
Template: twentytwentyfive
Author: TJB Security Services
Description: Custom homepage child theme for TJB Security Services.
Version: 1.0.0
*/

:root {
    --tjb-black: #05070a;
    --tjb-panel: #0d1118;
    --tjb-panel-soft: #151a23;
    --tjb-blue: #0758c9;
    --tjb-blue-bright: #0b6fff;
    --tjb-silver: #d7dbe2;
    --tjb-muted: #a7afbb;
    --tjb-white: #ffffff;
    --tjb-border: rgba(215, 219, 226, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

body.tjb-home,
.tjb-home-root {
    color: var(--tjb-white);
    background: var(--tjb-black);
    font-family: Arial, Helvetica, sans-serif;
}

body .wp-site-blocks {
    padding: 0;
}

body.home .wp-site-blocks > header,
body.home .wp-site-blocks > footer {
    display: none;
}

body.home .wp-site-blocks > main {
    max-width: none;
    margin: 0;
    padding: 0;
}

body.home .wp-site-blocks > main > * {
    margin-block-start: 0;
}

body.home .wp-block-post-content,
body.home .entry-content {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.home .wp-block-post-title {
    display: none;
}

.tjb-home a,
.tjb-home-root a {
    color: inherit;
}

.tjb-home-root {
    width: 100%;
    overflow: hidden;
}

.tjb-skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 1000;
    padding: 12px 16px;
    background: var(--tjb-white);
    color: var(--tjb-black);
    border-radius: 4px;
}

.tjb-skip-link:focus {
    top: 16px;
}

.tjb-site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
    padding: 12px 44px;
    background: rgba(5, 7, 10, 0.86);
    border-bottom: 1px solid var(--tjb-border);
    backdrop-filter: blur(14px);
}

.tjb-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
}

.tjb-brand img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
}

.tjb-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    color: var(--tjb-silver);
    font-size: 15px;
}

.tjb-nav a {
    text-decoration: none;
}

.tjb-nav a:hover,
.tjb-nav a:focus-visible {
    color: var(--tjb-white);
}

.tjb-call-button,
.tjb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
    line-height: 1;
}

.tjb-call-button {
    background: var(--tjb-blue);
    color: var(--tjb-white);
}

.tjb-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: end;
    gap: 32px;
    min-height: 88vh;
    min-height: 88dvh;
    padding: 150px 44px 54px;
    overflow: hidden;
    background-image:
        linear-gradient(90deg, rgba(5, 7, 10, 0.98) 0%, rgba(5, 7, 10, 0.82) 42%, rgba(5, 7, 10, 0.28) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center right;
    border-bottom: 1px solid var(--tjb-border);
}

.tjb-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 8px;
    background: var(--tjb-blue);
}

.tjb-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    max-width: 760px;
}

.tjb-eyebrow {
    margin: 0 0 18px;
    color: var(--tjb-blue-bright);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
    text-transform: uppercase;
}

.tjb-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--tjb-white);
    font-size: 76px;
    line-height: 0.96;
    font-weight: 900;
}

.tjb-hero-line {
    margin: 18px 0 0;
    color: var(--tjb-silver);
    font-size: 32px;
    line-height: 1.1;
    font-weight: 800;
}

.tjb-hero-copy {
    width: 100%;
    max-width: 620px;
    margin: 22px 0 0;
    color: var(--tjb-silver);
    font-size: 20px;
    line-height: 1.55;
}

.tjb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.tjb-button-primary {
    background: var(--tjb-blue);
    color: var(--tjb-white);
}

.tjb-button-secondary {
    border: 1px solid var(--tjb-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--tjb-white);
}

.tjb-hero-panel {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid var(--tjb-border);
    border-radius: 6px;
    background: rgba(13, 17, 24, 0.82);
    color: var(--tjb-silver);
}

.tjb-hero-panel strong {
    color: var(--tjb-white);
    font-size: 24px;
}

.tjb-service-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: var(--tjb-blue);
    color: var(--tjb-white);
    font-weight: 900;
    text-align: center;
}

.tjb-service-strip span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    padding: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.tjb-service-strip span:last-child {
    border-right: 0;
}

.tjb-section {
    padding: 86px 44px;
}

.tjb-section-heading {
    max-width: 850px;
    margin: 0 auto 34px;
    text-align: center;
}

.tjb-section-heading h2,
.tjb-visitors-content h2,
.tjb-contact h2 {
    margin: 0;
    font-size: 42px;
    line-height: 1.1;
}

.tjb-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto;
}

.tjb-service-grid article {
    min-height: 220px;
    padding: 26px;
    border: 1px solid var(--tjb-border);
    border-radius: 6px;
    background: linear-gradient(180deg, var(--tjb-panel) 0%, #080b10 100%);
}

.tjb-service-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 22px;
    border: 1px solid rgba(11, 111, 255, 0.55);
    border-radius: 50%;
    color: var(--tjb-blue-bright);
    font-weight: 900;
}

.tjb-service-grid h3 {
    margin: 0 0 12px;
    font-size: 23px;
}

.tjb-service-grid p,
.tjb-visitors-content p,
.tjb-contact p,
.tjb-trust span {
    margin: 0;
    color: var(--tjb-muted);
    font-size: 17px;
    line-height: 1.55;
}

.tjb-visitors {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 86px 44px;
    background: var(--tjb-panel);
    border-top: 1px solid var(--tjb-border);
    border-bottom: 1px solid var(--tjb-border);
}

.tjb-visitors-image img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--tjb-border);
    border-radius: 6px;
}

.tjb-visitors-content {
    min-width: 0;
    max-width: 660px;
}

.tjb-visitors-content p {
    margin-top: 20px;
}

.tjb-visitors-content ul {
    display: grid;
    gap: 14px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.tjb-visitors-content li {
    padding: 16px 18px;
    border-left: 4px solid var(--tjb-blue-bright);
    background: rgba(255, 255, 255, 0.05);
    color: var(--tjb-silver);
    border-radius: 4px;
}

.tjb-trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--tjb-border);
}

.tjb-trust div {
    min-height: 180px;
    padding: 32px 26px;
    background: var(--tjb-black);
}

.tjb-trust strong {
    display: block;
    margin-bottom: 12px;
    color: var(--tjb-white);
    font-size: 24px;
}

.tjb-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: 34px;
    align-items: center;
    padding: 86px 44px;
    background: linear-gradient(90deg, #061630 0%, var(--tjb-blue) 100%);
}

.tjb-contact p {
    max-width: 700px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.86);
}

.tjb-contact-actions {
    display: grid;
    gap: 12px;
}

.tjb-contact-actions a,
.tjb-contact-actions span {
    display: block;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    background: rgba(5, 7, 10, 0.32);
    color: var(--tjb-white);
    text-decoration: none;
    font-weight: 800;
}

.tjb-contact-actions span {
    font-weight: 600;
}

.tjb-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 44px;
    background: #030406;
    color: var(--tjb-muted);
    border-top: 1px solid var(--tjb-border);
}

@media (max-width: 980px) {
    .tjb-site-header {
        position: absolute;
        flex-wrap: wrap;
        padding: 12px 22px;
    }

    .tjb-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .tjb-hero {
        grid-template-columns: 1fr;
        padding: 176px 22px 44px;
        background-image:
            linear-gradient(90deg, rgba(5, 7, 10, 0.96) 0%, rgba(5, 7, 10, 0.74) 100%),
            var(--hero-image);
    }

    .tjb-hero h1 {
        font-size: 56px;
    }

    .tjb-hero-line {
        font-size: 28px;
    }

    .tjb-hero-panel {
        max-width: 420px;
    }

    .tjb-service-strip,
    .tjb-service-grid,
    .tjb-visitors,
    .tjb-trust,
    .tjb-contact {
        grid-template-columns: 1fr 1fr;
    }

    .tjb-section,
    .tjb-visitors,
    .tjb-contact {
        padding: 64px 22px;
    }
}

@media (max-width: 680px) {
    .tjb-site-header {
        gap: 12px;
    }

    .tjb-brand span {
        font-size: 16px;
    }

    .tjb-call-button {
        width: 100%;
    }

    .tjb-nav {
        gap: 18px;
        font-size: 14px;
    }

    .tjb-hero {
        min-height: 86vh;
        min-height: 86dvh;
        padding-top: 214px;
    }

    .tjb-hero h1 {
        font-size: 40px;
        line-height: 1;
    }

    .tjb-eyebrow {
        font-size: 13px;
    }

    .tjb-hero-line {
        font-size: 24px;
    }

    .tjb-hero-copy {
        max-width: 31ch;
        font-size: 18px;
    }

    .tjb-button {
        width: 100%;
    }

    .tjb-service-strip,
    .tjb-service-grid,
    .tjb-visitors,
    .tjb-trust,
    .tjb-contact {
        grid-template-columns: 1fr;
    }

    .tjb-section-heading h2,
    .tjb-visitors-content h2,
    .tjb-contact h2 {
        font-size: 32px;
    }

    .tjb-footer {
        flex-direction: column;
        padding: 24px 22px;
    }
}
