:root {
    /* 3Wolf brand tokens */
    --brand-red: #B72B35;
    --brand-red-dark: #951F28;
    --brand-orange: #E87231;
    --brand-navy: #0D1627;
    --brand-navy-mid: #142544;

    --primary: #B72B35;
    --primary-dark: #951F28;
    --accent: #E87231;
    --accent-hover: #c95d22;
    --dark: #0D1627;
    --dark-mid: #142544;
    --text: #333333;
    --text-heading: #111827;
    --text-secondary: #64748B;
    --bg-light: #F8FAFC;
    --surface: #F8FAFC;
    --white: #ffffff;
    --border: #E2E8F0;
    --rule: #E2E8F0;

    --font-display: Georgia, 'Times New Roman', serif;
    --font-body: Calibri, Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-eyebrow: Arial, Helvetica, sans-serif;

    --shadow-sm: 0 1px 3px rgba(13, 22, 39, 0.06);
    --shadow-md: 0 4px 16px rgba(13, 22, 39, 0.08);
    --shadow-lg: 0 8px 32px rgba(13, 22, 39, 0.10);
    --shadow-xl: 0 16px 48px rgba(13, 22, 39, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.5;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.01em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Navigation ── */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(183, 43, 53, 0.06);
}

.cta-button {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.2s ease;
    letter-spacing: 0;
}

.cta-button:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(183, 43, 53, 0.3);
}

.nav-item {
    position: relative;
}

.nav-item.has-dropdown > a::after {
    content: '';
    display: inline-block;
    margin-left: 6px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    vertical-align: middle;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.nav-item.has-dropdown:hover > a::after,
.nav-item.has-dropdown:focus-within > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    list-style: none;
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    min-width: 260px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s 0.15s;
    z-index: 100;
}

.nav-item.has-dropdown:hover > .dropdown-menu,
.nav-item.has-dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    letter-spacing: -0.01em;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu a:hover {
    background: rgba(183, 43, 53, 0.06);
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.mobile-menu-btn:hover {
    background: var(--bg-light);
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero Section ── */
.hero {
    background-color: var(--brand-navy);
    background-image: url("../images/cybersecurity-background.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: white;
    padding: 120px 0 140px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(13, 22, 39, 0.78) 0%,
        rgba(13, 22, 39, 0.62) 50%,
        rgba(13, 22, 39, 0.85) 100%
    );
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-eyebrow);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brand-red);
    margin-bottom: 28px;
}

.hero-eyebrow-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--brand-red);
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(38px, 5vw, 60px);
    color: white;
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-family: var(--font-body);
    font-size: clamp(17px, 2vw, 20px);
    margin-bottom: 48px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    color: #B8C5D6;
    line-height: 1.7;
    font-weight: 400;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-red);
    color: white;
    padding: 16px 36px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    font-family: var(--font-body);
    transition: all 0.2s ease;
    letter-spacing: 0;
}

.hero-cta:hover {
    background: var(--brand-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(183, 43, 53, 0.4);
}

.hero-cta svg {
    transition: transform 0.2s;
}

.hero-cta:hover svg {
    transform: translateX(3px);
}

/* ── Section shared styles ── */
.section-label {
    display: inline-block;
    font-family: var(--font-eyebrow);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-red);
    margin-bottom: 18px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--text-heading);
    margin-bottom: 18px;
}

.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 2px;
    background: var(--brand-red);
    margin-top: 18px;
}

.pillars-header .section-title::after,
.services-header .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 620px;
    line-height: 1.7;
    font-weight: 400;
}

/* ── Three Pillars ── */
.pillars {
    padding: 100px 0;
    background: var(--white);
}

.pillars-header {
    text-align: center;
    margin-bottom: 64px;
}

.pillars-header .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pillar-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-red);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pillar-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.pillar-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-block;
    background-color: var(--brand-navy);
    -webkit-mask: var(--icon-url) no-repeat center / contain;
    mask: var(--icon-url) no-repeat center / contain;
}

.pillar-icon.icon-shield   { --icon-url: url('../images/shield.png'); }
.pillar-icon.icon-radar    { --icon-url: url('../images/radar.png'); }
.pillar-icon.icon-response { --icon-url: url('../images/quick-response.png'); }

.pillar-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    margin: 0;
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.pillar-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* ── Services Section ── */
.services {
    padding: 100px 0;
    background: var(--bg-light);
}

.services-header {
    text-align: center;
    margin-bottom: 64px;
}

.services-header .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-item {
    padding: 32px 28px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-item:hover {
    border-color: var(--brand-red);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.service-icon {
    width: 36px;
    height: 36px;
    background: rgba(183, 43, 53, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-red);
    flex-shrink: 0;
}

.service-icon svg {
    width: 18px;
    height: 18px;
}

.service-item h3 {
    font-family: var(--font-display);
    font-size: 18px;
    margin: 0;
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.service-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ── About Section ── */
.about {
    padding: 100px 0;
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(183, 43, 53, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.about::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 114, 49, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-label {
    color: var(--brand-red);
}

.about-content .section-title {
    color: white;
    margin-bottom: 24px;
}

.about-content .section-title::after {
    background: var(--brand-red);
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    color: white;
}

.stat-label {
    font-family: var(--font-eyebrow);
    font-size: 12px;
    color: var(--brand-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

/* ── Contact Section ── */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-title {
    color: var(--text);
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 15px;
}

.contact-features li svg {
    color: var(--brand-red);
    flex-shrink: 0;
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text);
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(183, 43, 53, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.submit-button {
    background: var(--brand-red);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    letter-spacing: 0;
}

.submit-button:hover {
    background: var(--brand-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(183, 43, 53, 0.35);
}

#result {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--brand-red);
    font-weight: 500;
}

/* ── Footer ── */
footer {
    background: var(--dark);
    color: white;
    padding: 64px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 320px;
}

.footer-brand .logo img {
    height: 40px;
}

.footer-section h3 {
    font-family: var(--font-eyebrow);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brand-red);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
}

.footer-bottom > p a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-bottom > p a:hover {
    color: var(--white);
}

.attribution {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
}

.attribution a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.attribution a:hover {
    color: rgba(255, 255, 255, 0.5);
}

/* ── Animations ── */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-layout {
        gap: 48px;
    }
    .contact-layout {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 16px;
        width: 100%;
    }

    .nav-item.has-dropdown > a::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 4px 12px;
        margin: 0;
        background: transparent;
        transition: none;
        min-width: 0;
    }

    .dropdown-menu a {
        padding: 10px 16px;
        font-size: 14px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 80px 0 100px;
        background-attachment: scroll;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .about-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .stat {
        padding: 24px 16px;
    }

    .stat-number {
        font-size: 32px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ── Blog index ── */
.blog-hero {
    background: var(--brand-navy);
    color: white;
    padding: 96px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(183, 43, 53, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

.blog-hero .container {
    position: relative;
    z-index: 1;
}

.blog-hero .section-label {
    margin-bottom: 20px;
}

.blog-hero h1 {
    font-family: var(--font-display);
    color: white;
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.15;
    margin: 0 auto 16px;
    max-width: 760px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.blog-hero p {
    color: #B8C5D6;
    max-width: 600px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
}

.blog-list {
    padding: 80px 0 100px;
    background: var(--white);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.post-card:hover {
    border-color: var(--brand-red);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.post-card-cover {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-mid) 100%);
    position: relative;
    overflow: hidden;
}

.post-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card-cover img {
    transform: scale(1.04);
}

/* Only show the red radial accent on covers that don't have an image. */
.post-card-cover:not(:has(img))::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(183, 43, 53, 0.32) 0%, transparent 60%);
}

.post-card-body {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-family: var(--font-eyebrow);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.post-card-meta .category {
    color: var(--brand-red);
}

.post-card-meta .date {
    color: var(--text-secondary);
}

.post-card-meta .dot {
    width: 3px;
    height: 3px;
    background: var(--text-secondary);
    border-radius: 50%;
}

.post-card h2 {
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.3;
    color: var(--text-heading);
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.post-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
}

.post-card-readmore {
    color: var(--brand-red);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-card:hover .post-card-readmore svg {
    transform: translateX(3px);
}

.post-card-readmore svg {
    transition: transform 0.2s ease;
}

/* ── Blog post page ── */
.post-hero {
    background: var(--brand-navy);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 64px 0 72px;
    position: relative;
    overflow: hidden;
}

/* When a post-hero has a background image, layer a navy gradient overlay
   beneath the existing red radial accent so the title stays readable. */
.post-hero-with-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(13, 22, 39, 0.78) 0%,
        rgba(13, 22, 39, 0.72) 50%,
        rgba(13, 22, 39, 0.88) 100%
    );
    pointer-events: none;
}

.post-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 0%, rgba(183, 43, 53, 0.18) 0%, transparent 55%);
    pointer-events: none;
}

.post-hero-with-image {
    padding: 96px 0 96px;
}

.post-hero .container {
    max-width: 820px;
    position: relative;
    z-index: 1;
}

.post-hero .back-link {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    color: #B8C5D6;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.post-hero .back-link:hover {
    color: white;
}

.post-hero .category-tag {
    display: inline-block;
    font-family: var(--font-eyebrow);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brand-red);
    margin-bottom: 18px;
}

.post-hero h1 {
    font-family: var(--font-display);
    color: white;
    font-size: clamp(32px, 4.5vw, 48px);
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.post-hero .byline {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #B8C5D6;
    font-size: 14px;
    font-family: var(--font-body);
}

.post-hero .byline .dot {
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.post-body {
    padding: 64px 0 96px;
    background: var(--white);
}

.post-body .container {
    max-width: 720px;
}

.post-body article p,
.post-body article ul,
.post-body article ol {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 24px;
}

.post-body article p.lede {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-heading);
    margin-bottom: 32px;
}

.post-body article h2 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--text-heading);
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.post-body article h3 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--text-heading);
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
}

.post-body article ul,
.post-body article ol {
    padding-left: 22px;
}

.post-body article li {
    margin-bottom: 8px;
}

.post-body article blockquote {
    border-left: 3px solid var(--brand-red);
    padding: 4px 0 4px 24px;
    margin: 32px 0;
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.5;
    color: var(--text-heading);
    font-style: italic;
}

.post-body article a {
    color: var(--brand-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-body article a:hover {
    color: var(--brand-red-dark);
}

.post-body article hr {
    border: 0;
    border-top: 1px solid var(--rule);
    margin: 40px 0;
}

.post-footer {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.post-footer .back-link {
    color: var(--brand-red);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.post-footer .back-link:hover {
    color: var(--brand-red-dark);
}

.post-footer .meta-tag {
    font-family: var(--font-eyebrow);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .post-body article p,
    .post-body article ul,
    .post-body article ol {
        font-size: 16px;
    }

    .post-body article p.lede {
        font-size: 18px;
    }

    .post-body article h2 {
        font-size: 24px;
        margin-top: 40px;
    }

    .post-body article blockquote {
        font-size: 19px;
    }

    .blog-hero {
        padding: 72px 0 64px;
    }

    .post-hero {
        padding: 48px 0 56px;
    }
}

/* ── Service detail pages ── */
.service-hero {
    background: var(--brand-navy);
    color: white;
    padding: 72px 0 80px;
    position: relative;
    overflow: hidden;
}

.service-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(183, 43, 53, 0.16) 0%, transparent 60%);
    pointer-events: none;
}

.service-hero .container {
    max-width: 820px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.service-hero .back-link {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    gap: 6px;
    color: #B8C5D6;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 28px;
    transition: color 0.2s;
}

.service-hero .back-link:hover {
    color: white;
}

.service-hero .service-eyebrow {
    display: inline-block;
    font-family: var(--font-eyebrow);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brand-red);
    margin-bottom: 18px;
}

.service-hero h1 {
    font-family: var(--font-display);
    color: white;
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.service-hero .service-lede {
    color: #B8C5D6;
    font-size: 19px;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
    font-family: var(--font-body);
}

.service-overview {
    padding: 80px 0;
    background: var(--white);
}

.service-overview .container {
    max-width: 760px;
}

.service-overview .section-title {
    margin-bottom: 28px;
}

.service-overview p {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 20px;
}

.service-overview p a,
.service-item p a {
    color: var(--brand-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.service-overview p a:hover,
.service-item p a:hover {
    color: var(--brand-red-dark);
}

.service-capabilities {
    padding: 80px 0;
    background: var(--bg-light);
}

.capabilities-header {
    text-align: center;
    margin-bottom: 56px;
}

.capabilities-header .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.capabilities-header .section-subtitle {
    margin: 12px auto 0;
}

.service-cta {
    background: var(--brand-navy);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, rgba(183, 43, 53, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

.service-cta .container {
    position: relative;
    z-index: 1;
}

.service-cta h2 {
    font-family: var(--font-display);
    color: white;
    font-size: clamp(28px, 3vw, 36px);
    margin-bottom: 16px;
    font-weight: 700;
}

.service-cta p {
    color: #B8C5D6;
    font-size: 18px;
    margin: 0 auto 32px;
    max-width: 520px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .service-hero {
        padding: 56px 0 64px;
    }
    .service-overview,
    .service-capabilities,
    .service-cta {
        padding: 64px 0;
    }
}
