/* ===================================
   Wake Investigations — Global Styles
   =================================== */

/* === CSS Custom Properties === */
:root {
    --black: #090909;
    --white: #FFFFFF;
    --gold: #C7B06A;
    --gold-dim: rgba(199, 176, 106, 0.15);
    --gold-hover: #D4BF7A;
    --dark-grey: #111111;
    --mid-grey: #1A1A1A;
    --light-grey: #2A2A2A;
    --text-muted: #888888;
    --text-light: #B0B0B0;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.15);

    --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --container-max: 1200px;
    --container-narrow: 800px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 4.5rem;
    --spacing-2xl: 6rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --transition-fast: 0.2s ease;
    --transition-base: 0.35s ease;
    --transition-slow: 0.6s ease;
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: default;
}

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

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

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

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

::selection {
    background-color: var(--gold);
    color: var(--black);
}

/* === Accessibility === */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gold);
    color: var(--black);
    padding: 8px 16px;
    z-index: 9999;
    font-size: 0.85rem;
    font-weight: 600;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

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

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
    font-size: 1rem;
    color: var(--text-light);
}

/* === Layout === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-dark {
    background-color: var(--dark-grey);
}

.section-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
    text-align: center;
}

.section-title {
    color: var(--white);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--gold);
    margin: var(--spacing-sm) auto 0;
}

.section-text {
    font-size: 1.125rem;
    line-height: 1.85;
    max-width: 680px;
    margin: 0 auto;
}

.section-text.large {
    font-size: 1.2rem;
    line-height: 1.9;
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    transition: all var(--transition-base);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(9, 9, 9, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.75rem 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    text-decoration: none;
    line-height: 1;
}

.logo-img {
    display: block;
    height: 40px;
    width: auto;
    transition: opacity var(--transition-fast);
}

.logo:hover .logo-img {
    opacity: 0.85;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-menu a {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.5rem 0;
    position: relative;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width var(--transition-base);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === Hero === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--black);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9,9,9,0.3) 0%, rgba(9,9,9,0.1) 40%, rgba(9,9,9,0.7) 80%, rgba(9,9,9,1) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.4) contrast(1.1) saturate(0.7);
    transform: scale(1.05);
    transition: transform 10s ease;
}

.hero.loaded .hero-bg img {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(9,9,9,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 860px;
    padding: var(--spacing-md);
}

.hero-title {
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
    text-wrap: balance;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 1s ease 0.3s forwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-light);
    line-height: 1.8;
    max-width: 640px;
    margin: 0 auto var(--spacing-lg);
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 1s ease 0.6s forwards;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 1s ease 0.9s forwards;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: heroFadeUp 1s ease 1.2s forwards;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--black);
}

.btn-primary:hover {
    background-color: var(--gold-hover);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(199, 176, 106, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 0.9rem;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gold);
    padding: 0.5rem 0;
    margin-top: var(--spacing-md);
    transition: all var(--transition-fast);
}

.btn-text:hover {
    color: var(--gold-hover);
    letter-spacing: 0.03em;
}

/* === Cards Grid === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.card {
    background-color: var(--dark-grey);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--gold);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--border-medium);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    color: var(--gold);
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: center;
}

.card-title {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.card-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* === Timeline (alternating / zigzag) === */
.timeline {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 56px 1fr;
    column-gap: var(--spacing-md);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background-color: var(--border-subtle);
    transform: translateX(-50%);
}

/* The wrapper has no box of its own — its children become direct grid
   items of .timeline, which is what lets left/right placement work per row. */
.timeline-item {
    display: contents;
}

.timeline-number {
    grid-column: 2;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    text-align: center;
    position: relative;
    z-index: 1;
    padding-bottom: var(--spacing-lg);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible .timeline-number,
.timeline-item.visible .timeline-content {
    opacity: 1;
    transform: translateY(0);
}

.timeline-number::after {
    content: '';
    position: absolute;
    bottom: calc(var(--spacing-lg) - 16px);
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--gold);
}

.timeline-item:last-child .timeline-number::after {
    display: none;
}

.timeline-content {
    padding-bottom: var(--spacing-lg);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 1;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 3;
    text-align: left;
}

/* Pin each item's number + content to the same row explicitly. Without this,
   CSS grid auto-placement pushes .timeline-content down a row whenever its
   column (1) sits "behind" the cursor left by the previous .timeline-number
   (column 2), causing items to drift further out of alignment the further
   down the list you go. */
.timeline-item:nth-child(1) .timeline-number,
.timeline-item:nth-child(1) .timeline-content { grid-row: 1; }
.timeline-item:nth-child(2) .timeline-number,
.timeline-item:nth-child(2) .timeline-content { grid-row: 2; }
.timeline-item:nth-child(3) .timeline-number,
.timeline-item:nth-child(3) .timeline-content { grid-row: 3; }
.timeline-item:nth-child(4) .timeline-number,
.timeline-item:nth-child(4) .timeline-content { grid-row: 4; }
.timeline-item:nth-child(5) .timeline-number,
.timeline-item:nth-child(5) .timeline-content { grid-row: 5; }
.timeline-item:nth-child(6) .timeline-number,
.timeline-item:nth-child(6) .timeline-content { grid-row: 6; }

.timeline-content h3 {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.timeline-stamp {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}

/* === Quote Block === */
.quote-block {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding: var(--spacing-lg) 0;
}

.quote-block::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 8rem;
    color: var(--gold);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
}

.mission-quote p {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 500;
    line-height: 1.5;
    color: var(--white);
    letter-spacing: 0.01em;
    text-transform: none;
}

.quote-accent {
    width: 40px;
    height: 2px;
    background-color: var(--gold);
    margin: var(--spacing-md) auto 0;
}

/* === CTA Section === */
.cta-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    margin-bottom: var(--spacing-md);
}

.cta-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

/* === Footer === */
.footer {
    background-color: var(--dark-grey);
    border-top: 1px solid var(--border-subtle);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

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

.footer-text.email a {
    color: var(--gold);
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

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

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

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.social-links a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
    padding: 4px;
}

.social-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-legal {
    display: flex;
    gap: var(--spacing-md);
}

.footer-legal a {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

/* === Animations === */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* === Page Hero (inner pages) === */
.page-hero {
    position: relative;
    min-height: 42vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--spacing-2xl) + 40px) var(--spacing-md) var(--spacing-xl);
    background-color: var(--black);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9,9,9,0.5) 0%, rgba(9,9,9,0.9) 100%);
    z-index: 1;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3) contrast(1.1) saturate(0.6);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
}

.page-hero-content h1 {
    font-size: clamp(2.8rem, 5vw, 4rem);
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.page-hero-content p {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* === About Page: Values === */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.value-item {
    text-align: center;
    padding: var(--spacing-md);
}

.value-item h3 {
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.value-item p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.value-icon {
    width: 48px;
    height: 48px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    color: var(--gold);
}

/* === Investigations Page === */
.coming-soon {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-md);
}

.coming-soon-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-lg);
}

.coming-soon h2 {
    margin-bottom: var(--spacing-sm);
}

.coming-soon p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

/* Email signup form */
.signup-form {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.signup-form input[type="email"] {
    flex: 1;
    min-width: 240px;
    padding: 0.875rem 1.25rem;
    background-color: var(--mid-grey);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.signup-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

.signup-form input[type="email"]:focus {
    border-color: var(--gold);
}

/* === Approach Page === */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.approach-item {
    background-color: var(--mid-grey);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-base);
}

.approach-item:hover {
    border-color: var(--border-medium);
    transform: translateY(-4px);
}

.approach-item-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    opacity: 0.3;
    margin-bottom: var(--spacing-sm);
}

.approach-item h3 {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.approach-item p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-muted);
}

/* === Support Page === */
.donation-section {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.matching-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--gold-dim);
    border: 1px solid rgba(199, 176, 106, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.5rem;
    margin-bottom: var(--spacing-lg);
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 500;
}

.matching-badge svg {
    flex-shrink: 0;
}

.donation-amounts {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin: var(--spacing-lg) 0;
}

.donation-amount {
    padding: 1rem 2rem;
    background-color: var(--mid-grey);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 100px;
}

.donation-amount:hover,
.donation-amount.selected {
    border-color: var(--gold);
    background-color: var(--gold-dim);
    color: var(--gold);
}

.donation-info {
    max-width: 560px;
    margin: var(--spacing-lg) auto 0;
    text-align: left;
}

.donation-info h3 {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.donation-info ul {
    list-style: none;
    margin-top: var(--spacing-sm);
}

.donation-info li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.donation-info li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--gold);
    border-radius: 50%;
}

/* === Contact Page === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: var(--spacing-lg);
    background-color: var(--mid-grey);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.contact-item:hover {
    border-color: var(--border-medium);
    transform: translateY(-4px);
}

.contact-icon {
    color: var(--gold);
    margin-bottom: var(--spacing-sm);
    display: flex;
    justify-content: center;
}

.contact-item h3 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.contact-item p,
.contact-item a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-item a {
    color: var(--gold);
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-2xl: 6rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--black);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-md);
        transition: right var(--transition-base);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

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

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

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

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

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .timeline {
        grid-template-columns: 40px 1fr;
    }

    .timeline::before {
        left: 20px;
        transform: none;
    }

    .timeline-number {
        grid-column: 1;
        min-width: 40px;
        font-size: 1rem;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        grid-column: 2;
        text-align: left;
    }

    .signup-form {
        flex-direction: column;
    }

    .signup-form input[type="email"] {
        min-width: auto;
    }

    .donation-amounts {
        flex-direction: column;
        align-items: center;
    }

    .donation-amount {
        width: 100%;
        max-width: 200px;
    }

    .page-hero {
        min-height: 40vh;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .card {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .quote-block::before {
        font-size: 5rem;
    }
}

/* === Print Styles === */
@media print {
    .navbar,
    .footer,
    .hero-buttons,
    .scroll-indicator {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .section-dark {
        background: none;
    }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .fade-in,
    .fade-in-left,
    .fade-in-right,
    .timeline-number,
    .timeline-content {
        opacity: 1;
        transform: none;
    }

    .torch-overlay,
    .torch-cursor {
        display: none !important;
    }
}

/* === Torch Effect (desktop only) === */
.torch-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(circle 220px at var(--x, 50%) var(--y, 50%),
        rgba(255, 235, 195, 0.16) 0%,
        rgba(255, 235, 195, 0.07) 35%,
        transparent 70%);
}

.torch-overlay.active {
    opacity: 1;
}

.torch-cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px 3px rgba(199, 176, 106, 0.45);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.torch-cursor.active {
    opacity: 1;
}

@media (hover: none) {
    .torch-overlay,
    .torch-cursor {
        display: none !important;
    }
}

/* === Torch-lit Reveal === */
/* Elements with .card-detail / .timeline-stamp stay hidden until their
   parent picks up .torch-lit (added by script.js when the cursor is near). */
.card-detail,
.timeline-stamp {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.card.torch-lit .card-detail,
.timeline-content.torch-lit .timeline-stamp {
    opacity: 1;
    transform: translateY(0);
}

/* Touch / no-hover devices never get torch-lit, so reveal these by default */
@media (hover: none) {
    .card-detail,
    .timeline-stamp {
        opacity: 1;
        transform: none;
    }
}

/* === Investigations Grid === */
.investigations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    max-width: 960px;
    margin: 0 auto;
}

.investigation-card {
    text-align: left;
    padding: var(--spacing-md);
}

.investigation-thumb {
    display: block;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    background-color: var(--mid-grey);
}

.investigation-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.investigation-thumb:hover img {
    transform: scale(1.04);
}

.investigation-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 100%);
}

.play-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--gold);
    color: var(--black);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    z-index: 1;
}

.investigation-card .card-title {
    text-align: left;
}

.investigation-card .card-text {
    text-align: left;
}

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

/* === Case File Cards === */
.card.case-file {
    position: relative;
}

.card.case-file::after {
    content: '';
    position: absolute;
    top: -9px;
    left: 22px;
    width: 52px;
    height: 9px;
    background-color: var(--dark-grey);
    border: 1px solid var(--border-subtle);
    border-bottom: none;
    border-radius: 3px 3px 0 0;
}

.case-file-stamp {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 2px 8px;
    border-radius: 2px;
    opacity: 0.35;
    transform: rotate(3deg);
    transition: opacity var(--transition-base);
}

.card.case-file:hover .case-file-stamp,
.card.case-file.torch-lit .case-file-stamp {
    opacity: 0.85;
}

.card-detail {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-medium);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
}

/* === OSINT Toolkit Page === */
.toolkit-category {
    margin-bottom: var(--spacing-sm);
}

.toolkit-category-title {
    display: block;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    max-width: 960px;
    margin: 0 auto;
}

.tool-card {
    background-color: var(--dark-grey);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: all var(--transition-base);
}

.section-dark .tool-card {
    background-color: var(--mid-grey);
}

.tool-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.tool-card-name {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--gold);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.tool-card-name svg {
    flex-shrink: 0;
    opacity: 0.6;
    transition: transform var(--transition-fast);
}

.tool-card-name:hover {
    color: var(--gold-hover);
}

.tool-card-name:hover svg {
    transform: translate(2px, -2px);
}

.tool-card-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Ethics / GDPR callout */
.ethics-callout {
    max-width: 780px;
    margin: 0 auto;
    background-color: var(--gold-dim);
    border: 1px solid rgba(199, 176, 106, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.ethics-callout h3 {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.ethics-callout p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-light);
}

.ethics-callout p + p {
    margin-top: 0.75rem;
}

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

/* === Footer subscribe bar === */
.footer-subscribe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.footer-subscribe-text {
    max-width: 46ch;
}

.footer-subscribe-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: var(--spacing-xs);
}

.footer-subscribe-copy {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-light);
}

.footer-subscribe-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .footer-subscribe {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    .footer-subscribe-btn {
        width: 100%;
        text-align: center;
    }
}

/* === Subscribe page === */
.subscribe-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.subscribe-points {
    list-style: none;
    margin-top: var(--spacing-md);
}

.subscribe-points li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-light);
}

.subscribe-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
}

.subscribe-formcard {
    background-color: var(--mid-grey);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

.subscribe-note {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-top: var(--spacing-sm);
}

@media (max-width: 900px) {
    .subscribe-layout {
        grid-template-columns: 1fr;
    }
}
