/*
Theme Name:  Freehold Stellar Works
Theme URI:   https://robertsspaceindustries.com/en/orgs/FREEHOLD
Author:      Freehold Stellar Works
Description: Single-page landing theme for the Freehold Stellar Works Star Citizen organization. Dark military-industrial aesthetic with gold accents.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: freehold
*/

/* ── Reset & Base ──────────────────────────────────── */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg:        #07080c;
    --color-bg-subtle: #0e1017;
    --color-surface:   #13151d;
    --color-gold:      #c9a84c;
    --color-gold-dim:  #9a7e38;
    --color-text:      #e8e6e1;
    --color-text-dim:  #8a8880;
    --color-white:     #ffffff;
    --font-display:    'Rajdhani', sans-serif;
    --font-body:       'Inter', sans-serif;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ── Background Vignette ───────────────────────────── */

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 30%,
        rgba(201, 168, 76, 0.04) 0%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
}

/* ── Starfield (subtle animated dots) ──────────────── */

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 30% 65%, rgba(255,255,255,0.1), transparent),
        radial-gradient(1px 1px at 55% 10%, rgba(255,255,255,0.12), transparent),
        radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.08), transparent),
        radial-gradient(1px 1px at 85% 35%, rgba(255,255,255,0.1), transparent),
        radial-gradient(1px 1px at 20% 90%, rgba(255,255,255,0.06), transparent),
        radial-gradient(1px 1px at 45% 45%, rgba(255,255,255,0.1), transparent),
        radial-gradient(1.5px 1.5px at 92% 58%, rgba(201,168,76,0.2), transparent),
        radial-gradient(1.5px 1.5px at 5% 50%, rgba(201,168,76,0.15), transparent);
    pointer-events: none;
    z-index: 0;
    animation: starDrift 90s linear infinite;
}

@keyframes starDrift {
    from { transform: translateY(0); }
    to   { transform: translateY(-20px); }
}

/* ── Main Layout ───────────────────────────────────── */

.freehold-page {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem 2rem;
    text-align: center;
}

/* ── Logo ──────────────────────────────────────────── */

.freehold-logo {
    width: clamp(180px, 28vw, 320px);
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 40px rgba(201, 168, 76, 0.12));
    animation: logoFadeIn 1.2s ease-out both;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ── Tagline ───────────────────────────────────────── */

.freehold-tagline {
    font-family: var(--font-display);
    font-size: clamp(0.75rem, 1.4vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 2.5rem;
    animation: fadeUp 1s 0.3s ease-out both;
}

/* ── Divider ───────────────────────────────────────── */

.freehold-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    border: none;
    margin-bottom: 2.5rem;
    animation: fadeUp 1s 0.5s ease-out both;
}

/* ── Overview ──────────────────────────────────────── */

.freehold-overview {
    max-width: 620px;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 3rem;
    animation: fadeUp 1s 0.6s ease-out both;
}

.freehold-overview em {
    color: var(--color-gold);
    font-style: italic;
}

/* ── CTA Buttons ───────────────────────────────────── */

.freehold-ctas {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 1s 0.8s ease-out both;
}

.freehold-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.85rem 2rem;
    border: 1px solid var(--color-gold-dim);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.freehold-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.freehold-btn:hover::before {
    opacity: 1;
}

.freehold-btn--primary {
    color: var(--color-bg);
    background: var(--color-gold);
}

.freehold-btn--primary:hover {
    background: transparent;
    color: var(--color-gold);
    border-color: var(--color-gold);
}

.freehold-btn--primary:hover::before {
    opacity: 0;
}

.freehold-btn--secondary {
    color: var(--color-gold);
    background: transparent;
}

.freehold-btn--secondary:hover {
    color: var(--color-bg);
}

.freehold-btn svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    flex-shrink: 0;
}

/* ── Footer ────────────────────────────────────────── */

.freehold-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--color-text-dim);
}

.freehold-footer a {
    color: var(--color-gold-dim);
    text-decoration: none;
    transition: color 0.2s ease;
}

.freehold-footer a:hover {
    color: var(--color-gold);
}

/* ── Shared Animation ──────────────────────────────── */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ────────────────────────────────────── */

@media (max-width: 480px) {
    .freehold-page {
        padding: 3rem 1.25rem 2rem;
    }

    .freehold-ctas {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .freehold-btn {
        justify-content: center;
        width: 100%;
    }
}
