/*
Theme Name: HALLEYS18
Theme URI: https://halleys.ai
Author: HALLEY'S LLC
Description: Enterprise-grade theme for HALLEY'S Risk Intelligence.
Version: 18.0.0
Text Domain: halleys18
*/

/* ==========================================================================
   Custom Comet Cursor
   ========================================================================== */

html, body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='24' cy='8' r='6' fill='%2338bdf8'/%3E%3Ccircle cx='24' cy='8' r='7.5' stroke='%2338bdf8' stroke-width='1' fill='none'/%3E%3Cpath d='M18 12L4 26' stroke='%2338bdf8' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M20 14L8 28' stroke='%2338bdf8' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M16 10L2 22' stroke='%2338bdf8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 4 4, auto;
}

a, button, [role="button"], input[type="submit"], .clickable {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='24' cy='8' r='6' fill='%237dd3fc'/%3E%3Ccircle cx='24' cy='8' r='7.5' stroke='%237dd3fc' stroke-width='1' fill='none'/%3E%3Cpath d='M18 12L4 26' stroke='%237dd3fc' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M20 14L8 28' stroke='%237dd3fc' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M16 10L2 22' stroke='%237dd3fc' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 4 4, pointer;
}

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    --navy-deep: #0a1628;
    --navy-primary: #1F4E79;
    --navy-light: #2d6a9f;
    --slate: #334155;
    --silver: #94a3b8;
    --pearl: #e2e8f0;
    --white: #f8fafc;
    --accent: #38bdf8;
    --accent-bright: #7dd3fc;
    
    --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', 'SF Mono', 'Monaco', monospace;
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--pearl);
    background-color: var(--navy-deep);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Canvas Background
   ========================================================================== */

#halleys-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ==========================================================================
   Site Header - LARGER LOGO (3X)
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
    height: 80px; /* Standard height for 1X logo */
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

/* Logo = 42px */
.site-logo img {
    height: 42px !important;
    width: auto !important;
    max-height: 42px !important;
}

/* Navigation - +2pts BOLD */
.primary-navigation ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-navigation li {
    display: inline-block;
}

.primary-navigation a {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--silver);
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-base);
    white-space: nowrap;
}

.primary-navigation a:hover {
    color: var(--white);
}

.primary-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--navy-primary);
    transition: width var(--transition-base);
}

.primary-navigation a:hover::after {
    width: 100%;
}

/* ==========================================================================
   Page Sections
   ========================================================================== */

.page-section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 4rem;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}

/* Section Labels - +3pts BOLD */
.section-label {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--white);
    max-width: 900px;
}

.section-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--silver);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Account for header */
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    margin-top: -3rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* AI RISK INTELLIGENCE - +3pts BOLD, moved down to clear header */
.hero-tagline {
    font-family: var(--font-mono);
    font-size: 1.3125rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    margin-top: 3.5rem; /* More space to clear the header banner */
    min-height: 1.5em;
}

.hero-tagline .typewriter-text {
    display: inline;
}

.hero-tagline .typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background-color: var(--accent);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.7s infinite;
}

/* Title wrapper */
.hero-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
    margin: 1rem 0;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
}

.hero-title.fico-line {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

/* HALLEY'S RATES AI - typewriter effect, WHITE color, at top */
.hero-title.halleys-line {
    min-height: 1.2em;
    margin-top: 3rem;
    color: var(--white);
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent) 0%, var(--navy-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reg-apostrophe {
    font-size: 0.55em;
    vertical-align: super;
    margin-left: 0.05em;
    font-weight: normal;
}

/* Continuous risk line - moved down 1/4 inch */
.hero-subtitle {
    font-size: 1.4375rem;
    font-weight: 700;
    color: var(--silver);
    max-width: 700px;
    margin: 2.5rem auto 0; /* Extra margin top for 1/4 inch down */
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

/* Federated Network */
.federated-network {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
    pointer-events: none;
}

#network-canvas {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Problem Section
   ========================================================================== */

.problem-section {
    background: linear-gradient(180deg, transparent 0%, rgba(31, 78, 121, 0.08) 50%, transparent 100%);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.problem-card {
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 22, 40, 0.7);
    transition: all var(--transition-base);
}

.problem-card:hover {
    border-color: rgba(45, 106, 159, 0.6);
    background: rgba(31, 78, 121, 0.2);
    transform: translateY(-3px);
}

.problem-icon {
    width: 60px;
    height: 40px;
    margin-bottom: 1.5rem;
}

.problem-icon svg {
    width: 100%;
    height: 100%;
}

/* +3pts BOLD */
.problem-card h3 {
    font-size: 1.3125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.problem-card p {
    font-size: 1.3125rem;
    font-weight: 700;
    color: var(--silver);
    line-height: 1.6;
}

/* "There is no gold standard..." - same size as section-title */
.problem-conclusion {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--pearl);
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    line-height: 1.4;
    min-height: 2.5em;
}

.typewriter-text {
    display: inline;
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background-color: var(--accent);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ==========================================================================
   Solutions Section
   ========================================================================== */

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.solution-card {
    padding: 3rem 2.5rem;
    background: var(--navy-deep);
    transition: all var(--transition-base);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.solution-card:last-child {
    border-right: none;
}

.solution-card:hover {
    background: rgba(31, 78, 121, 0.2);
}

/* +2pts BOLD */
.solution-card h3 {
    font-size: 1.3125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.solution-card p {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--silver);
    line-height: 1.7;
}

/* ==========================================================================
   About Section - ORIGINS (Portrait above paragraphs)
   ========================================================================== */

.about-section .section-label,
.about-section .section-title {
    text-align: left;
    max-width: 100%;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: flex-start;
}

.about-text {
    max-width: 700px;
}

.about-text h2 {
    font-size: clamp(1.875rem, 3.5vw, 2.375rem);
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: var(--white);
}

.about-text p {
    color: var(--silver);
    margin-bottom: 1.5rem;
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.75;
}

/* Edmund Halley portrait - ABOVE paragraphs */
.about-visual {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-sketch {
    max-width: 220px;
    opacity: 0.9;
}

/* ==========================================================================
   Contact Section - LARGER LOGO (2X)
   ========================================================================== */

.contact-section {
    min-height: auto;
    padding: 5rem 4rem;
    background: var(--navy-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-content {
    text-align: center;
}

/* Logo 2X bigger: 70px * 2 = 140px */
.contact-logo {
    margin-bottom: 2rem;
}

.contact-logo img {
    height: 140px;
    width: auto;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: 1.5625rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.contact-email {
    font-family: var(--font-mono);
    font-size: 1.1875rem;
    color: var(--accent);
    transition: opacity var(--transition-fast);
}

.contact-email:hover {
    opacity: 0.75;
}

.site-footer {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Copyright - +2pts BOLD, brighter */
.site-footer p {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--silver);
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: all 0.7s ease;
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .site-header {
        padding: 0 2.5rem;
        height: 100px;
    }
    
    .site-logo img {
        height: 120px;
    }
    
    .primary-navigation ul {
        gap: 2rem;
    }
    
    .page-section {
        padding: 6rem 2.5rem;
    }
    
    .hero-section {
        padding-top: 100px;
    }
    
    .problem-grid, .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .solution-card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .solution-card:last-child {
        border-bottom: none;
    }
    
    .about-content {
        gap: 2rem;
        align-items: center;
    }
    
    .about-visual {
        align-items: center;
    }
    
    .about-section .section-label,
    .about-section .section-title {
        text-align: center;
    }
    
    .about-text {
        text-align: center;
    }
    
    .hero-title-wrapper {
        gap: 4rem;
    }
    
    .problem-conclusion {
        white-space: normal;
    }
    
    .hero-content {
        margin-top: -1.5rem;
    }
    
    .contact-logo img {
        height: 100px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0 1.5rem;
        height: 90px;
    }
    
    .site-logo img {
        height: 80px;
    }
    
    .primary-navigation ul {
        gap: 1.25rem;
    }
    
    .primary-navigation a {
        font-size: 0.9375rem;
    }
    
    .page-section {
        padding: 5rem 1.5rem;
        min-height: auto;
    }
    
    .hero-section {
        min-height: 100vh;
        padding-top: 90px;
    }
    
    .hero-title-wrapper {
        gap: 3rem;
    }
    
    .hero-content {
        margin-top: 0;
    }
    
    .contact-section {
        padding: 4rem 1.5rem;
    }
    
    .about-sketch {
        max-width: 180px;
    }
    
    .contact-logo img {
        height: 80px;
    }
}

@media (max-width: 600px) {
    .primary-navigation {
        display: none;
    }
    
    .site-logo img {
        height: 60px;
    }
}

/* ==========================================================================
   WordPress Core
   ========================================================================== */

.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.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; }
