/*
Theme Name: H3 Systems AI
Theme URI: https://h3systems.ai
Author: Don Hartung
Author URI: https://h3systems.ai
Description: A modern, professional WordPress theme for H3 Systems AI - AI Security & Privacy Experts. Features sections on AI dangers, privacy issues, AI tools, and best practices for secure AI use.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: h3systems
Tags: one-column, custom-menu, custom-logo, featured-images, theme-options, dark-mode
*/

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --accent-amber: #f59e0b;
    --accent-amber-dim: rgba(245, 158, 11, 0.15);
    --accent-red: #ef4444;
    --accent-green: #10b981;
    --accent-blue: #3b82f6;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: rgba(255, 255, 255, 0.08);
    --glow-amber: 0 0 60px rgba(245, 158, 11, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Animated Background Grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    background-image: 
        linear-gradient(rgba(245, 158, 11, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(245, 158, 11, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(59, 130, 246, 0.05), transparent),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(239, 68, 68, 0.05), transparent);
}

/* Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 2rem;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.8);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.site-header.scrolled {
    background: rgba(10, 10, 15, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent-amber), #d97706);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--bg-primary);
    box-shadow: var(--glow-amber);
}

.logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.logo-text span {
    color: var(--accent-amber);
}

/* WordPress Menu Styles */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation ul li {
    margin: 0;
}

.main-navigation a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-amber);
    transition: width 0.3s ease;
}

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

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

.nav-cta {
    background: linear-gradient(135deg, var(--accent-amber), #d97706);
    color: var(--bg-primary) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(245, 158, 11, 0.4);
}

.nav-cta::after {
    display: none !important;
}

/* Main Content */
.site-main {
    position: relative;
    z-index: 2;
}

section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 8rem;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-amber-dim);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-amber);
    font-weight: 500;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-amber);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent-amber), #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-amber), #d97706);
    color: var(--bg-primary);
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-amber);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-amber);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.stat {
    text-align: left;
}

.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-amber);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

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

/* Section Headers */
.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-amber);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* Dangers Section */
.dangers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.danger-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.danger-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.danger-card:hover {
    transform: translateY(-5px);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.danger-icon {
    width: 56px;
    height: 56px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.danger-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.danger-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.danger-card .severity {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--accent-red);
    font-weight: 500;
}

/* Privacy Section */
.privacy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.privacy-visual {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.privacy-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(245, 158, 11, 0.1), transparent 30%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.privacy-diagram {
    position: relative;
    z-index: 1;
}

.privacy-node {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-tertiary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.privacy-node:hover {
    border-color: var(--accent-amber);
    transform: translateX(10px);
}

.privacy-node-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-amber-dim);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-node-text {
    flex: 1;
}

.privacy-node-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.privacy-node-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.privacy-issues {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.privacy-issue {
    padding-left: 1.5rem;
    border-left: 2px solid var(--accent-amber);
}

.privacy-issue h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.privacy-issue p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* AI Tools Section */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.tool-logo {
    width: 56px;
    height: 56px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.tool-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tool-badge.safe {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.tool-badge.caution {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
}

.tool-badge.risk {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tool-category {
    font-size: 0.85rem;
    color: var(--accent-amber);
    margin-bottom: 1rem;
}

.tool-card > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-feature {
    background: var(--bg-tertiary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Best Practices Section */
.practices-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}

.practices-nav {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.practices-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
    /* Button reset styles */
    width: 100%;
    text-align: left;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    color: var(--text-primary);
}

.practices-nav-item:hover,
.practices-nav-item.active {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.practices-nav-item.active {
    border-color: var(--accent-amber);
}

.practices-nav-item:focus-visible {
    outline: 3px solid var(--accent-amber);
    outline-offset: 2px;
}

.practices-nav-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-amber);
    width: 32px;
    height: 32px;
    background: var(--accent-amber-dim);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.practices-nav-text {
    font-weight: 500;
    font-size: 0.95rem;
}

.practices-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.practice-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
}

.practice-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.practice-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-amber-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.practice-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
}

.practice-card > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.practice-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.practice-tip {
    background: var(--bg-tertiary);
    padding: 1.25rem;
    border-radius: 10px;
    display: flex;
    gap: 1rem;
}

.practice-tip-check {
    color: var(--accent-green);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.practice-tip span:last-child {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Tab panel hidden state */
.practice-card[hidden] {
    display: none;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent-amber), transparent, var(--accent-blue));
    z-index: -1;
    opacity: 0.3;
}

.founder-avatar {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--accent-amber), #d97706);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: var(--bg-primary);
    box-shadow: var(--glow-amber);
}

.founder-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.founder-title {
    color: var(--accent-amber);
    font-weight: 500;
    margin-bottom: 1rem;
}

.founder-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.founder-link {
    width: 44px;
    height: 44px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.founder-link:hover {
    background: var(--accent-amber);
    color: var(--bg-primary);
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    list-style: none;
    padding: 0;
}

.about-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-value-icon {
    color: var(--accent-amber);
    font-size: 1.25rem;
}

.about-value span {
    font-weight: 500;
}

/* Contact Section */
.contact-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-amber-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-method-text {
    font-weight: 500;
}

.contact-method-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-amber);
}

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

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

.contact-form .btn-primary {
    width: 100%;
    justify-content: center;
}

/* WordPress Form Compatibility */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    width: 100%;
}

.wpcf7 input[type="submit"] {
    background: linear-gradient(135deg, var(--accent-amber), #d97706);
    color: var(--bg-primary);
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-amber);
}

.footer-links a:focus-visible {
    outline: 3px solid var(--accent-amber);
    outline-offset: 2px;
    border-radius: 4px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.mobile-menu-toggle:focus-visible {
    outline: 3px solid var(--accent-amber);
    outline-offset: 2px;
    border-radius: 4px;
}

.mobile-menu-toggle span:not(.sr-only) {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* WordPress Admin Bar Fix */
body.admin-bar .site-header {
    top: 32px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .privacy-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .practices-container {
        grid-template-columns: 1fr;
    }

    .practices-nav {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .practices-nav-item {
        padding: 0.75rem 1rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 1rem;
    }

    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        /* Accessibility: Hidden menu should not be focusable */
        visibility: hidden;
    }

    .main-navigation ul.active,
    .main-navigation.active ul {
        display: flex;
        visibility: visible;
    }

    .main-navigation ul li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    /* Ensure menu links have visible focus */
    .main-navigation ul li a:focus-visible {
        outline: 3px solid var(--accent-amber);
        outline-offset: 2px;
        border-radius: 4px;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    /* Focus style for mobile menu toggle */
    .mobile-menu-toggle:focus-visible {
        outline: 3px solid var(--accent-amber);
        outline-offset: 2px;
        border-radius: 4px;
    }

    section {
        padding: 4rem 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .dangers-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
        gap: 1rem;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .contact-container {
        padding: 2rem;
    }
}

/* WordPress Block Editor Compatibility */
.wp-block-group,
.wp-block-columns {
    margin-bottom: 2rem;
}

.entry-content {
    color: var(--text-secondary);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content a {
    color: var(--accent-amber);
}

/* ==========================================
   WCAG 2.2 ACCESSIBILITY STYLES
   ========================================== */

/* Accessibility - Skip Link (WCAG 2.4.1) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-amber);
    color: var(--bg-primary);
    padding: 1rem 2rem;
    border-radius: 0 0 10px 10px;
    font-weight: 600;
    z-index: 100000;
    transition: top 0.3s ease;
    text-decoration: none;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--text-primary);
    outline-offset: 2px;
}

/* Screen Reader Only Text (Visually Hidden) */
.screen-reader-text,
.sr-only,
.visually-hidden {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
    white-space: nowrap;
}

.screen-reader-text:focus,
.sr-only:focus,
.visually-hidden:focus {
    background-color: var(--bg-secondary);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--text-primary);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Focus Styles - WCAG 2.4.7 Focus Visible & 2.4.11 Focus Not Obscured */
:focus {
    outline: 3px solid var(--focus-outline-color, var(--accent-amber));
    outline-offset: 3px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 3px solid var(--focus-outline-color, var(--accent-amber));
    outline-offset: 3px;
}

/* Enhanced focus for interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--focus-outline-color, var(--accent-amber));
    outline-offset: 3px;
    border-radius: 4px;
}

/* Focus visible class for JS polyfill */
.focus-visible {
    outline: 3px solid var(--focus-outline-color, var(--accent-amber)) !important;
    outline-offset: 3px !important;
}

/* Ensure focus is never obscured - WCAG 2.4.12 */
*:focus {
    position: relative;
    z-index: 1;
}

.site-header *:focus {
    z-index: 10001;
}

/* Target Size Minimum 44x44px - WCAG 2.5.8 */
a,
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"],
select,
.nav-cta,
.btn-primary,
.btn-secondary,
.mobile-menu-toggle,
.founder-link {
    min-height: 44px;
    min-width: 44px;
}

/* Checkbox and Radio - Increase touch target */
input[type="checkbox"],
input[type="radio"] {
    width: 24px;
    height: 24px;
    margin: 10px;
}

/* Links in text should have adequate spacing */
p a,
li a {
    padding: 2px 4px;
    margin: -2px -4px;
    display: inline-block;
    min-height: auto;
    min-width: auto;
}

/* Navigation links */
.main-navigation a,
.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 1rem;
}

/* Button touch targets */
.btn-primary,
.btn-secondary {
    min-height: 48px;
    padding: 0.875rem 2rem;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Social/founder links */
.founder-link {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
textarea,
select {
    min-height: 48px;
    padding: 0.75rem 1rem;
    font-size: 1rem; /* Prevent zoom on iOS */
}

/* Color Contrast - WCAG 1.4.3 & 1.4.6 */
/* Primary text on dark: #e5e5e5 on #0a0a0f = 13.8:1 ✓ */
/* Secondary text: #a3a3a3 on #0a0a0f = 7.8:1 ✓ */
/* Muted text: #737373 on #0a0a0f = 4.6:1 ✓ */
/* Amber on dark: #f59e0b on #0a0a0f = 8.9:1 ✓ */
/* Green on dark: #10b981 on #0a0a0f = 8.0:1 ✓ */
/* Red on dark: #ef4444 on #0a0a0f = 5.3:1 ✓ */

:root {
    /* Ensure all text colors meet contrast requirements */
    --text-primary: #f5f5f5;      /* 14.7:1 contrast on #0a0a0f */
    --text-secondary: #d4d4d4;    /* 11.3:1 contrast */
    --text-muted: #a3a3a3;        /* 7.8:1 contrast - meets AAA for large text */
    --accent-amber: #fbbf24;      /* 11.3:1 contrast - enhanced from #f59e0b */
    --accent-green: #34d399;      /* 9.7:1 contrast - enhanced from #10b981 */
    --accent-red: #f87171;        /* 6.5:1 contrast - enhanced from #ef4444 */
    --accent-blue: #60a5fa;       /* 7.2:1 contrast */
}

/* Non-text Contrast - WCAG 1.4.11 */
/* All UI components and graphics must have 3:1 contrast */
.danger-card,
.tool-card,
.practice-card,
.benefit-card {
    border-color: rgba(255, 255, 255, 0.2); /* 3:1 minimum */
}

/* Form field borders */
.contact-form input,
.contact-form textarea {
    border: 2px solid rgba(255, 255, 255, 0.3); /* 3:1 contrast */
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-amber);
}

/* Error states with sufficient contrast */
[aria-invalid="true"],
.error,
.form-error {
    border-color: var(--accent-red) !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.3);
}

/* Success states */
.success,
.form-success {
    border-color: var(--accent-green) !important;
}

/* Text Spacing - WCAG 1.4.12 */
/* Ensure content adapts to user text spacing preferences */
body {
    line-height: 1.6; /* At least 1.5x font size */
    letter-spacing: 0.01em;
    word-spacing: 0.05em;
}

p {
    margin-bottom: 1.5em; /* At least 2x font size for paragraph spacing */
}

/* Support for user stylesheet overrides */
@supports (--custom: property) {
    * {
        line-height: var(--user-line-height, inherit) !important;
        letter-spacing: var(--user-letter-spacing, inherit) !important;
        word-spacing: var(--user-word-spacing, inherit) !important;
    }
    
    p {
        margin-bottom: var(--user-paragraph-spacing, 1.5em) !important;
    }
}

/* Reflow - WCAG 1.4.10 (320px width support) */
@media (max-width: 320px) {
    body {
        font-size: 14px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-container {
        padding: 0 0.75rem;
    }
    
    section {
        padding: 2rem 0.75rem;
    }
}

/* Resize Text - WCAG 1.4.4 (200% zoom support) */
html {
    font-size: 100%; /* Respect user browser settings */
}

@media (min-resolution: 120dpi) {
    html {
        font-size: 100%;
    }
}

/* Content on Hover/Focus - WCAG 1.4.13 */
[data-tooltip],
.tooltip-trigger {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

[data-tooltip]:hover::after,
[data-tooltip]:focus::after {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Hoverable - WCAG 1.4.13 */
}

/* Tooltip remains visible on hover */
[data-tooltip]::after:hover {
    opacity: 1;
    visibility: visible;
}

/* Reduced Motion - WCAG 2.3.3 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .bg-grid,
    .bg-gradient {
        animation: none !important;
    }
    
    .privacy-visual::before {
        animation: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode - WCAG 1.4.11 */
@media (prefers-contrast: high) {
    :root {
        --border-color: rgba(255, 255, 255, 0.5);
        --text-secondary: #ffffff;
        --text-muted: #e5e5e5;
    }
    
    .danger-card,
    .tool-card,
    .practice-card,
    .benefit-card {
        border-width: 2px;
        border-color: #ffffff;
    }
    
    a {
        text-decoration: underline;
    }
    
    button,
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
    
    :focus,
    :focus-visible {
        outline-width: 4px;
    }
}

/* Forced Colors Mode (Windows High Contrast) */
@media (forced-colors: active) {
    .btn-primary,
    .btn-secondary,
    .nav-cta {
        border: 2px solid currentColor;
    }
    
    .danger-card,
    .tool-card,
    .practice-card {
        border: 2px solid currentColor;
    }
    
    :focus,
    :focus-visible {
        outline: 3px solid currentColor;
        outline-offset: 2px;
    }
    
    .hero-badge,
    .section-tag {
        border: 1px solid currentColor;
    }
    
    /* Ensure icons are visible */
    svg {
        forced-color-adjust: auto;
    }
}

/* Dark Mode (default) - WCAG compliant */
/* Light Mode Override */
@media (prefers-color-scheme: light) {
    :root {
        /* Override for light mode if needed in future */
    }
}

/* Print Styles - Accessibility */
@media print {
    .bg-grid,
    .bg-gradient,
    .site-header,
    .site-footer,
    .nav-cta,
    .hero-buttons,
    .contact-form,
    .skip-link {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .hero h1,
    .section-title,
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
    }
}

/* Form Accessibility Enhancements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Required field indicator */
.form-group label .required,
.form-group label[data-required]::after {
    content: " *";
    color: var(--accent-red);
}

/* Error messages */
.form-error-message,
[role="alert"] {
    color: var(--accent-red);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-error-message::before {
    content: "⚠";
}

/* Success messages */
.form-success-message {
    color: var(--accent-green);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Form instructions */
.form-instructions {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Fieldset and Legend */
fieldset {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

legend {
    font-weight: 600;
    padding: 0 0.5rem;
    color: var(--text-primary);
}

/* Loading States - Accessible */
[aria-busy="true"] {
    cursor: wait;
}

.loading-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-amber);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .loading-spinner {
        animation: none;
        border-style: dotted;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Live Region for Screen Readers */
.sr-announcer,
[aria-live] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Status Messages - WCAG 4.1.3 */
.status-message {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.status-message.info {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
}

.status-message.success {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}

.status-message.error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
}

.status-message.warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid var(--accent-amber);
    color: var(--accent-amber);
}

/* Keyboard-Only Focus Styles */
body:not(.using-keyboard) *:focus {
    outline: none;
}

body.using-keyboard *:focus {
    outline: 3px solid var(--focus-outline-color, var(--accent-amber));
    outline-offset: 3px;
}

/* Animation Ready States */
.animate-ready {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-ready.animate-in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .animate-ready {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Mobile Menu Active State */
@media (max-width: 1024px) {
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-color);
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .main-navigation ul.active {
        display: flex;
    }
    
    .main-navigation ul li {
        width: 100%;
    }
    
    .main-navigation ul a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }
    
    .main-navigation ul a:hover,
    .main-navigation ul a:focus {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .nav-cta {
        display: none;
    }
}

/* Ensure touch-friendly spacing */
@media (pointer: coarse) {
    .main-navigation a,
    .footer-links a,
    .btn-primary,
    .btn-secondary {
        min-height: 48px;
        padding: 0.75rem 1.25rem;
    }
}

/* Benefits Section Styles */
.benefits-grid .benefit-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.potential-section {
    position: relative;
    overflow: hidden;
}

.potential-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(16, 185, 129, 0.05), transparent 30%);
    animation: rotate 15s linear infinite;
}

.value-bridge {
    position: relative;
}

.value-bridge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-amber));
    border-radius: 2px;
}

/* Footer Copyright Paragraph Reset */
.footer-copyright p {
    margin: 0;
}

/* Skip Links Container */
.skip-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100001;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.skip-links .skip-link {
    position: absolute;
    top: -100px;
}

.skip-links .skip-link:nth-child(2) {
    left: calc(50% + 200px);
}

.skip-links .skip-link:nth-child(3) {
    left: calc(50% + 400px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1000;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus {
    background: var(--accent-amber);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

.back-to-top:focus {
    outline: 3px solid var(--text-primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
    
    .back-to-top:hover,
    .back-to-top:focus {
        transform: none;
    }
}

/* Page Template Styles */
.page-header {
    padding-top: 10rem;
    padding-bottom: 4rem;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}
