/*
Theme Name: harpoonint.com
Theme URI: https://harpoonint.com/
Author: Harpoon
Description: A faithful WordPress adaptation of the Harpoon intelligence and investigation landing page.
Version: 1.0.5
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: harpoonint-com
*/

:root {
    --bg-color: #0b131c;
    --nav-bg: rgba(11, 19, 28, 0.9);
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --text-main: #e0e6ed;
    --text-muted: #a0aec0;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(212, 175, 55, 0.2);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg-color);
    color: var(--text-main);
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

a {
    color: var(--gold);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    background: var(--gold);
    color: var(--bg-color);
}

.hn-network-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.6;
    pointer-events: none;
}

.hn-site-header,
.hn-site-main,
.hn-site-footer {
    position: relative;
    z-index: 1;
}

.hn-site-header {
    z-index: 1000;
}

h1,
h2,
h3,
.hn-logo-text {
    font-family: "Cinzel", serif;
}

.hn-gold-text {
    color: var(--gold);
    background: linear-gradient(to right, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hn-site-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 25px 0;
    background: transparent;
    transition: all 0.4s ease;
}

.admin-bar .hn-site-nav {
    top: 32px;
}

.hn-site-nav.scrolled {
    padding: 15px 0;
    background: var(--nav-bg);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.hn-nav-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.hn-nav-links a {
    position: relative;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.hn-nav-links a::after {
    position: absolute;
    right: 0;
    display: block;
    width: 0;
    height: 2px;
    margin-top: 5px;
    background: var(--gold);
    content: "";
    transition: width 0.3s ease;
}

.hn-nav-links a:hover,
.hn-nav-links a:focus-visible {
    color: var(--gold);
}

.hn-nav-links a:hover::after,
.hn-nav-links a:focus-visible::after {
    right: auto;
    left: 0;
    width: 100%;
}

.hn-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 100px 8%;
}

.hn-section > .wp-block-group__inner-container,
.hn-section > * {
    width: 100%;
}

.hn-hero {
    align-items: center;
    text-align: center;
}

.hn-hero > * {
    max-width: none;
}

.hn-mark {
    margin: 0 0 20px;
    color: var(--gold);
    font-size: 4rem;
    line-height: 1;
}

.hn-hero-logo {
    margin: 0 0 10px;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.hn-hero-subtitle {
    margin: 0 0 20px;
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 300;
}

.hn-hero-mission {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-style: italic;
}

.hn-hero-mission p {
    margin: 0 0 1.6em;
}

.hn-section-title {
    margin: 0 0 40px;
    text-align: center;
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hn-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.hn-service-card {
    padding: 25px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.hn-service-card:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
    transform: translateY(-5px);
}

.hn-service-card h3 {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 1.1rem;
}

.hn-service-card p,
.hn-service-card ul {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.hn-service-card p {
    margin: 0;
    text-align: justify;
}

.hn-service-card ul {
    padding-left: 20px;
    margin: 10px 0 0;
}

.hn-service-card li {
    margin-bottom: 8px;
}

.hn-bio-card {
    width: 100%;
    padding: 30px;
    margin: 0 0 30px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    border-left: 4px solid var(--gold);
}

.hn-bio-card h3 {
    margin: 0 0 15px;
    color: var(--gold-light);
    font-size: 1.5rem;
}

.hn-bio-card p {
    margin: 0 0 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: justify;
}

.hn-contact-info {
    margin-top: 20px;
    text-align: center;
}

.hn-contact-info p {
    margin: 10px 0;
    font-size: 1.2rem;
}

.hn-contact-info a {
    color: var(--gold);
    text-decoration: none;
}

.hn-contact-info a:hover,
.hn-contact-info a:focus-visible {
    text-decoration: underline;
}

.reveal {
    opacity: 1;
    transform: none;
}

.js .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.hn-standard-page {
    width: min(900px, calc(100% - 40px));
    min-height: calc(100vh - 80px);
    padding: 140px 0 80px;
    margin: 0 auto;
}

.hn-standard-page h1 {
    color: var(--gold);
}

.hn-clients-page {
    width: min(1200px, calc(100% - 40px));
    min-height: calc(100vh - 80px);
    padding: 140px 0 90px;
    margin: 0 auto;
}

.hn-clients-header {
    margin-bottom: 42px;
    text-align: center;
}

.hn-clients-header h1 {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hn-clients-header p {
    margin: 0;
    color: var(--text-muted);
}

.hn-client-alphabet {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 34px;
}

.hn-client-alphabet a {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--text-main);
    font-family: "Cinzel", serif;
    text-decoration: none;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.hn-client-alphabet a:hover,
.hn-client-alphabet a:focus-visible {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--gold);
}

.hn-client-group {
    scroll-margin-top: 110px;
    margin-bottom: 42px;
}

.hn-client-letter {
    padding-bottom: 8px;
    margin: 0 0 18px;
    color: var(--gold-light);
    font-size: 1.8rem;
    border-bottom: 1px solid var(--card-border);
}

.hn-client-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hn-client-card {
    min-width: 0;
}

.hn-client-card a {
    display: flex;
    align-items: center;
    min-height: 104px;
    padding: 14px;
    color: var(--text-main);
    text-decoration: none;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hn-client-card a:hover,
.hn-client-card a:focus-visible {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

.hn-client-card-image,
.hn-client-card-placeholder {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    margin-right: 16px;
    border-radius: 50%;
}

.hn-client-card-image {
    object-fit: cover;
}

.hn-client-card-placeholder {
    display: grid;
    place-items: center;
    color: var(--gold);
    font-family: "Cinzel", serif;
    font-size: 1.8rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--card-border);
}

.hn-client-card-name {
    overflow-wrap: anywhere;
    font-family: "Cinzel", serif;
    font-size: 1.05rem;
}

.hn-client-profile {
    display: grid;
    grid-template-columns: minmax(240px, 36%) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
}

.hn-client-profile-media {
    position: sticky;
    top: 110px;
    aspect-ratio: 3 / 4;
}

.hn-client-profile-photo,
.hn-client-profile-placeholder {
    width: 100%;
    height: 100%;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.hn-client-profile-photo {
    display: block;
    object-fit: cover;
}

.hn-client-profile-placeholder {
    display: grid;
    place-items: center;
    color: var(--gold);
    font-family: "Cinzel", serif;
    font-size: clamp(4rem, 10vw, 8rem);
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.08), rgba(255, 255, 255, 0.02));
}

.hn-client-profile-content h1 {
    margin: 0 0 28px;
    color: var(--gold);
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.hn-client-profile-content p {
    color: var(--text-muted);
    text-align: justify;
}

.hn-client-back {
    display: inline-block;
    margin-top: 34px;
    color: var(--gold);
    text-decoration: none;
}

.hn-client-back:hover,
.hn-client-back:focus-visible {
    text-decoration: underline;
}

.hn-site-footer {
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

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

    .hn-section {
        height: auto;
    }

    .hn-client-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .admin-bar .hn-site-nav {
        top: 46px;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 120px;
    }

    .hn-site-nav {
        padding: 15px;
    }

    .hn-nav-links {
        flex-wrap: wrap;
        gap: 15px;
    }

    .hn-hero-logo {
        font-size: 2.2rem;
    }

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

    .hn-service-card {
        padding: 30px;
    }

    .hn-service-card h3 {
        font-size: 1.4rem;
    }

    .hn-service-card p,
    .hn-service-card ul {
        font-size: 1rem;
    }

    .hn-section {
        min-height: auto;
        padding: 120px 5% 50px;
    }

    .hn-clients-page {
        width: min(100% - 30px, 720px);
        padding-top: 150px;
    }

    .hn-client-grid,
    .hn-client-profile {
        grid-template-columns: 1fr;
    }

    .hn-client-profile-media {
        position: static;
        max-width: 420px;
        margin: 0 auto;
    }

    .hn-client-profile-content p {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
