/*
 Theme Name:   EntitySeal Child
 Theme URI:    https://entityseal.com
 Description:  Child theme for EntitySeal
 Author:       EntitySeal
 Author URI:   https://entityseal.com
 Template:     generatepress
 Version:      1.0
*/

/* ========================================
   DESIGN SYSTEM VARIABLES
   ======================================== */

:root {
    /* Primary Colors */
    --es-primary: #194FAD;
    --es-primary-dark: #0F3A82;
    --es-primary-light: #5A9BFF;
    --es-primary-ultra-light: #EBF2FF;

    /* Status Colors */
    --es-success: #22C55E;
    --es-success-dark: #16A34A;
    --es-success-light: #DCFCE7;
    --es-warning: #D4A017;
    --es-danger: #CC3333;

    /* Text */
    --es-text-primary: #0F172A;
    --es-text-secondary: #475569;
    --es-text-muted: #94A3B8;

    /* Surfaces */
    --es-bg-primary: #FFFFFF;
    --es-bg-secondary: #F8FAFC;
    --es-bg-tertiary: #F1F5F9;

    /* Borders */
    --es-border: #E2E8F0;
    --es-border-light: #F1F5F9;

    /* Shadows */
    --es-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
    --es-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07);
    --es-shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
    --es-shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.15);

    /* Gradients */
    --es-gradient-hero: linear-gradient(135deg, #0F3A82 0%, #194FAD 50%, #2B5FB8 100%);
    --es-gradient-footer: linear-gradient(180deg, #0F172A 0%, #0A1628 100%);

    /* Radii */
    --es-radius-sm: 6px;
    --es-radius: 10px;
    --es-radius-lg: 16px;
    --es-radius-xl: 24px;
    --es-radius-full: 9999px;

    /* Layout */
    --es-container: 1140px;
    --es-header-height: 72px;
    --es-hero-min-height: 320px;
    --es-padding-x: 32px;
    --es-padding-x-mobile: 20px;
}

/* ========================================
   BUTTONS
   ======================================== */

.es-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--es-success);
    color: #FFFFFF;
    border: none;
    border-radius: var(--es-radius-full);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}
.es-btn-primary:hover {
    background: var(--es-success-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    color: #FFFFFF;
}

.es-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--es-primary);
    border: 2px solid var(--es-primary);
    border-radius: var(--es-radius-lg);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.es-btn-secondary:hover {
    background: var(--es-primary-ultra-light);
    color: var(--es-primary);
}

.es-btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #FFFFFF;
    color: var(--es-primary);
    border: none;
    border-radius: var(--es-radius-lg);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--es-shadow-lg);
}
.es-btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--es-shadow-xl);
    color: var(--es-primary);
}

.es-btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--es-radius-lg);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.es-btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
}

/* ========================================
   CARDS
   ======================================== */

.es-card {
    background: var(--es-bg-primary);
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-xl);
    padding: 28px;
    transition: all 0.3s ease;
}
.es-card:hover {
    border-color: var(--es-primary);
    box-shadow: var(--es-shadow-lg);
    transform: translateY(-4px);
}

.es-card-elevated {
    background: var(--es-bg-primary);
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-xl);
    padding: 28px;
    box-shadow: var(--es-shadow);
    transition: all 0.3s ease;
}
.es-card-elevated:hover {
    transform: translateY(-4px);
    box-shadow: var(--es-shadow-lg);
}

/* ========================================
   BADGES
   ======================================== */

.es-badge-ghost {
    display: inline-block;
    padding: 6px 14px;
    background: var(--es-danger);
    color: #FFFFFF;
    border-radius: var(--es-radius-full);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
}

.es-badge-blurry {
    display: inline-block;
    padding: 6px 14px;
    background: var(--es-warning);
    color: #FFFFFF;
    border-radius: var(--es-radius-full);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
}

.es-badge-visible {
    display: inline-block;
    padding: 6px 14px;
    background: var(--es-success);
    color: #FFFFFF;
    border-radius: var(--es-radius-full);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
}

.es-badge-verified {
    display: inline-block;
    padding: 6px 14px;
    background: var(--es-success-light);
    color: var(--es-success-dark);
    border-radius: var(--es-radius-full);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
}

/* ========================================
   SCORE
   ======================================== */

.es-score-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--es-gradient-hero);
    border-radius: 50%;
    font-family: inherit;
    font-size: 22px;
    font-weight: 800;
    color: #FFFFFF;
}

/* ========================================
   FORMS
   ======================================== */

.es-form-field {
    margin-bottom: 24px;
}

.es-form-label {
    display: block;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--es-text-primary);
    margin-bottom: 8px;
}

.es-form-input {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius);
    font-family: inherit;
    font-size: 15px;
    color: var(--es-text-primary);
    background: var(--es-bg-primary);
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.es-form-input:focus {
    outline: none;
    border-color: var(--es-primary);
    background: var(--es-primary-ultra-light);
}

.es-form-description {
    font-family: inherit;
    font-size: 13px;
    color: var(--es-text-muted);
    margin-top: 4px;
}

.es-form-step-indicator {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}
.es-form-step-indicator .step {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--es-border);
}
.es-form-step-indicator .step.active {
    background: var(--es-primary);
}

/* ========================================
   PROFILE
   ======================================== */

.es-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.es-profile-section {
    padding: 24px 0;
    border-top: 1px solid var(--es-border-light);
}

.es-profile-field {
    margin-bottom: 16px;
}
.es-profile-field dt {
    font-family: inherit;
    font-size: 13px;
    color: var(--es-text-muted);
    margin-bottom: 4px;
}
.es-profile-field dd {
    font-family: inherit;
    font-size: 15px;
    color: var(--es-text-primary);
    margin: 0;
}

.es-profile-credential {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--es-success-light);
    border-radius: var(--es-radius);
    margin-bottom: 8px;
}

/* ========================================
   AUDIT
   ======================================== */

.es-audit-input {
    display: block;
    width: 100%;
    padding: 18px 24px;
    border: 2px solid var(--es-border);
    border-radius: var(--es-radius-lg);
    font-family: inherit;
    font-size: 18px;
    color: var(--es-text-primary);
    background: var(--es-bg-primary);
    box-sizing: border-box;
}
.es-audit-input:focus {
    outline: none;
    border-color: var(--es-primary);
}

.es-audit-result {
    margin-top: 32px;
    padding: 32px;
    background: var(--es-bg-primary);
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-xl);
}

.es-audit-gap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--es-bg-secondary);
    border-radius: var(--es-radius);
    margin-bottom: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--es-text-secondary);
}

/* ========================================
   LAYOUT
   ======================================== */

.es-container {
    max-width: var(--es-container);
    margin: 0 auto;
    padding: 0 var(--es-padding-x);
}

.es-section {
    padding: 80px var(--es-padding-x);
}

.es-hero {
    position: relative;
    min-height: var(--es-hero-min-height);
    display: flex;
    align-items: center;
    background: var(--es-gradient-hero);
    overflow: hidden;
}
.es-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.es-eyebrow {
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--es-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

/* ========================================
   HEADER
   ======================================== */

.es-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

.admin-bar .es-site-header {
    top: 32px;
}

.es-site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--es-shadow);
}

.es-site-header.light {
    background: #FFFFFF;
    box-shadow: var(--es-shadow-sm);
}

.es-header-inner {
    height: var(--es-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.es-header-logo,
.es-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.es-header-logo:hover,
.es-footer-logo:hover {
    opacity: 0.85;
}

.es-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--es-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.es-logo-icon svg {
    width: 20px;
    height: 20px;
    color: #FFFFFF;
}

.es-logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--es-text-primary);
}

/* Logo on transparent header (front page hero) */
.es-site-header:not(.light):not(.scrolled) .es-logo-text {
    color: #FFFFFF;
}

/* Logo in footer */
.es-footer-logo .es-logo-text {
    color: #FFFFFF;
}

.es-header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.es-header-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.es-header-menu > li {
    position: relative;
}

.es-header-menu > li > a {
    display: block;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: var(--es-radius);
    transition: all 0.2s ease;
}

.es-header-menu > li > a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.es-site-header.scrolled .es-header-menu > li > a,
.es-site-header.light .es-header-menu > li > a {
    color: var(--es-text-secondary);
}

.es-site-header.scrolled .es-header-menu > li > a:hover,
.es-site-header.light .es-header-menu > li > a:hover {
    color: var(--es-primary);
    background: var(--es-primary-ultra-light);
}

.es-site-header.scrolled .es-header-logo,
.es-site-header.light .es-header-logo {
    color: var(--es-text-primary);
}

/* Dropdown chevron */
.es-header-menu > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.es-header-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Dropdown submenu */
.es-header-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 200px;
    background: #FFFFFF;
    border-radius: var(--es-radius-lg);
    box-shadow: var(--es-shadow-lg);
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.es-header-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.es-header-menu .sub-menu li a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--es-text-secondary);
    text-decoration: none;
    border-radius: var(--es-radius);
    transition: all 0.15s ease;
}

.es-header-menu .sub-menu li a:hover {
    background: var(--es-primary-ultra-light);
    color: var(--es-primary);
}

/* Header CTA - size override only, inherits from .es-btn-primary */
.es-header-cta {
    padding: 12px 24px;
    font-size: 14px;
    margin-left: 16px;
}

/* Mobile toggle */
.es-header-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--es-radius);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.es-site-header.scrolled .es-header-mobile-toggle,
.es-site-header.light .es-header-mobile-toggle {
    background: var(--es-bg-secondary);
}

.es-mobile-toggle-icon {
    width: 24px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.es-mobile-toggle-line {
    display: block;
    width: 100%;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.es-site-header.scrolled .es-mobile-toggle-line,
.es-site-header.light .es-mobile-toggle-line {
    background: var(--es-text-primary);
}

/* Mobile nav panel */
.es-mobile-nav {
    display: none;
    position: fixed;
    top: var(--es-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFFFFF;
    padding: 24px;
    z-index: 999;
    overflow-y: auto;
}

.admin-bar .es-mobile-nav {
    top: calc(var(--es-header-height) + 32px);
}

.es-mobile-nav.active {
    display: block;
}

.es-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.es-mobile-menu li a {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--es-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--es-border-light);
}

.es-mobile-menu li a:hover {
    color: var(--es-primary-dark);
}

.es-mobile-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 20px;
    display: none;
}

.es-mobile-menu .menu-item-has-children.submenu-open > .sub-menu {
    display: block;
}

.es-mobile-menu .sub-menu li a {
    font-size: 16px;
    font-weight: 500;
    color: var(--es-text-secondary);
    padding: 12px 0;
}

.es-mobile-menu .menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.es-mobile-menu .menu-item-has-children > a::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.es-mobile-menu .menu-item-has-children.submenu-open > a::after {
    transform: rotate(-135deg);
}

.es-mobile-nav-cta {
    display: block;
    margin-top: 24px;
    text-align: center;
}

/* Body offset for fixed header */
body:not(.home) {
    padding-top: var(--es-header-height);
}

body.admin-bar:not(.home) {
    padding-top: calc(var(--es-header-height) + 32px);
}

/* ========================================
   FOOTER
   ======================================== */

.es-site-footer {
    background: var(--es-gradient-footer);
    color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow: hidden;
}

.es-site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

.es-footer-inner {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    padding-bottom: 40px;
}

.es-footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.es-footer-brand {
    max-width: 300px;
}

.es-footer-logo {
    margin-bottom: 20px;
}

.es-footer-tagline-box {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--es-radius);
    margin-bottom: 24px;
}

.es-footer-tagline {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin: 0;
}

.es-footer-social {
    display: flex;
    gap: 12px;
}

.es-footer-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--es-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.es-footer-social-link:hover {
    background: var(--es-primary);
    transform: translateY(-2px);
}

.es-footer-social-link svg {
    width: 18px;
    height: 18px;
    color: #FFFFFF;
}

.es-footer-column-title {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.es-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.es-footer-links li {
    margin-bottom: 14px;
}

.es-footer-links a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s ease;
}

.es-footer-links a:hover {
    color: #FFFFFF;
    padding-left: 4px;
}

.es-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
}

.es-footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

.es-footer-legal {
    display: flex;
    gap: 24px;
}

.es-footer-legal a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s ease;
}

.es-footer-legal a:hover {
    color: #FFFFFF;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .es-footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .es-footer-brand {
        grid-column: span 2;
        max-width: none;
    }
}

@media screen and (max-width: 782px) {
    .admin-bar .es-site-header {
        top: 46px;
    }

    .admin-bar .es-mobile-nav {
        top: calc(var(--es-header-height) + 46px);
    }

    body.admin-bar:not(.home) {
        padding-top: calc(var(--es-header-height) + 46px);
    }
}

@media (max-width: 768px) {
    .es-container {
        padding: 0 var(--es-padding-x-mobile);
    }

    .es-section {
        padding: 48px var(--es-padding-x-mobile);
    }

    .es-header-nav {
        display: none;
    }

    .es-header-cta {
        display: none;
    }

    .es-header-mobile-toggle {
        display: flex;
    }

    .es-footer-inner {
        padding-top: 60px;
        padding-bottom: 32px;
    }

    .es-footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .es-footer-brand {
        grid-column: span 1;
    }

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

    .es-footer-legal {
        justify-content: center;
    }
}

/* ========================================
   PRINT
   ======================================== */

@media print {
    .es-site-header,
    .es-site-footer,
    .es-mobile-nav {
        display: none;
    }

    body {
        padding-top: 0;
    }
}
