﻿/* =====================================================
   History360°
===================================================== */

/* ---------------------------------------------
   Core tokens
--------------------------------------------- */
:root {
    --hx-paper: #ffffff;
    --hx-ink: #111111;
    --hx-border: rgba(0,0,0,0.12);
    --hx-link: #c04b2b;
    --hx-link-hover: #e06a4a;
    --hx-link-focus: #ffbfa7;
}

/* ---------------------------------------------
   Base layout
--------------------------------------------- */

html {
    font-size: 16px; /* baseline for accessibility */
}

@media (max-width: 768px) {
    html {
        font-size: 17px; /* slight bump for mobile */
    }
}

html, body {
    height: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: #000;
    color: #f5f5f5;
    font-family: 'Roboto', system-ui, sans-serif;
    position: relative;
}

/* Allow scrolling on mobile so bottom content isn't trapped under reCAPTCHA badge */
@media (max-width: 768px) {
    body.index-page {
        overflow-y: auto !important;
    }
}

/* ---------------------------------------------
   GLOBAL BACKGROUND TEXTURE
--------------------------------------------- */
.texture-overlay {
    position: relative;
    min-height: 100vh;
    background: #000;
}

    .texture-overlay::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url("../images/scratchedBg.jpg");
        background-repeat: repeat;
        opacity: .08;
        mix-blend-mode: multiply;
        pointer-events: none;
    }

/* ---------------------------------------------
   INTERNAL PAGES — shared background image
--------------------------------------------- */
body.internal-page {
    background-image: url("../images/background.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: scroll;
    overflow-y: auto !important;
}

/* ---------------------------------------------
   Typography
--------------------------------------------- */
h1, h2, h3, .logo-main {
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: .5px;
}

/* ---------------------------------------------
   Skip Link
--------------------------------------------- */
.skip-link {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

    .skip-link:focus {
        position: fixed;
        left: 1rem;
        top: 1rem;
        padding: .5rem .75rem;
        background: #000;
        color: #fff;
        border: 2px solid #fff;
        z-index: 99999;
        border-radius: 6px;
    }

/* ---------------------------------------------
   Navbar
--------------------------------------------- */
.navbar {
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid var(--hx-border);
    backdrop-filter: saturate(120%) blur(6px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 5000;
}

._nav-spacer {
    height: 60px;
}

/* Branding */
.logo-main {
    background: linear-gradient(135deg,#000,#333);
    color: #fff;
    padding: 6px 14px;
    border: 2px solid #fff;
    border-right: none;
    font-weight: 600;
}

.logo-sub {
    background: rgba(255,255,255,.92);
    color: #000;
    padding: 6px 14px;
    border: 2px solid #fff;
    border-left: none;
    font-weight: 500;
}

/* Hamburger menu */
.navbar-toggler {
    background: #ffffff !important;
    border: 2px solid #ffffff !important;
    padding: .45rem .65rem;
    border-radius: 10px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23000' stroke-width='3' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    background-size: 30px 30px;
}


/* ---------------------------------------------
   INDEX HERO (Fullscreen Background)
--------------------------------------------- */
.landing-page .hero--index {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    padding-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url("../images/background.jpg") center calc(50% + 24px) / cover no-repeat;
    animation: heroSlideUp 4s ease-out forwards;
    color: #fff;
}

@keyframes heroSlideUp {
    0% {
        background-position: center calc(50% + 24px);
    }

    100% {
        background-position: center 50%;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.65));
    z-index: 2;
}

.hero--index .container {
    position: relative;
    z-index: 5;
}

.hero-title {
    text-shadow: 0 3px 8px rgba(0,0,0,.8);
}

/* ---------------------------------------------
   STEAM — HOME PAGE ONLY
--------------------------------------------- */
.steam {
    display: none;
}

.landing-page .hero--index .steam {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: radial-gradient(circle at 50% 70%, rgba(255,255,255,.15), transparent 55%);
    animation: steam 8s infinite ease-in-out;
}

@keyframes steam {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(1);
    }

    50% {
        opacity: .25;
        transform: translateY(-8px) scale(1.08);
    }

    100% {
        opacity: 0;
        transform: translateY(-28px) scale(1.14);
    }
}

/* ---------------------------------------------
   FOG — HOME PAGE ONLY
--------------------------------------------- */
.fog {
    display: none;
}

.landing-page .hero--index .fog {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at bottom, rgba(255,255,255,.03), transparent 70%);
    mix-blend-mode: lighten;
    filter: blur(12px);
    animation: fogDrift 60s linear infinite;
}

@keyframes fogDrift {
    from {
        transform: translate3d(0,0,0);
    }

    to {
        transform: translate3d(-2%,1%,0);
    }
}

/* ---------------------------------------------
   GLOBAL FIX —
   Remove fog & steam from ALL non-home pages
--------------------------------------------- */
body:not(.landing-page) .fog,
body:not(.landing-page) .steam {
    display: none !important;
}

/* ---------------------------------------------
   FIX: prevent <form> extra height on index
--------------------------------------------- */
.landing-page {
    display: block;
    padding: 0;
    margin: 0;
}

/* ---------------------------------------------
   Buttons
--------------------------------------------- */
.btn-iron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: .4px;
    color: #fff;
    background-color: #c04b2b;
    border: 2px solid #c04b2b;
    border-radius: 999px;
    padding: .9rem 2.5rem;
    transition: all .25s ease;
    box-shadow: 0 3px 12px rgba(0,0,0,0.35);
}

    .btn-iron:hover,
    .btn-iron:focus {
        background-color: #e06a4a;
        border-color: #e06a4a;
        transform: translateY(-2px);
        box-shadow: 0 5px 18px rgba(0,0,0,0.45);
    }

    .btn-iron:active {
        background-color: #a63f23;
        border-color: #a63f23;
        transform: translateY(0);
    }

    .btn-iron:focus-visible {
        outline: 3px solid #ffbfa7;
        outline-offset: 3px;
    }

/* ---------------------------------------------
   Links
--------------------------------------------- */
a {
    color: var(--hx-link);
    text-decoration: none;
    border-bottom: 1px dotted rgba(192,75,43,0.4);
    text-underline-offset: 3px;
    transition: color .2s ease, border-color .2s ease;
}

    a:hover,
    a:focus {
        color: var(--hx-link-hover);
        border-color: var(--hx-link-hover);
    }

    a:focus-visible {
        outline: 2px solid var(--hx-link-focus);
        outline-offset: 2px;
    }

/* ---------------------------------------------
   reCAPTCHA badge
--------------------------------------------- */
.grecaptcha-badge {
    bottom: 24px !important;
    right: 24px !important;
    z-index: 9999 !important;
}


/* ---------------------------------------------
   INTERNAL PAGES — clean background, no overlays
--------------------------------------------- */
body.internal-page {
    /* keep the newspaper background */
    background-image: url("../images/background.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    overflow-y: auto !important;
}

    /* turn OFF any global overlays / fog / steam / texture on internal pages */
    body.internal-page .texture-overlay {
        background: transparent !important;
    }

        body.internal-page .texture-overlay::before,
        body.internal-page .hero-overlay,
        body.internal-page .fog,
        body.internal-page .steam {
            display: none !important;
        }

/* ---------------------------------------------
   Shared white card for internal pages
--------------------------------------------- */
.page-card {
    background-color: #ffffff !important; /* solid white, no tint */
    color: #111111 !important;
    border-radius: 1rem;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* HARD RESET: pure white card, no tint */
article,
article.page-card,
.contact-card {
    background: #ffffff !important;
    background-color: #ffffff !important;
}


body.landing-page {
    position: relative !important;
}

    body.landing-page .grecaptcha-badge {
        position: fixed !important;
        bottom: 24px !important;
        right: 24px !important;
        transform: scale(0.8);
        opacity: 0.8;
    }

.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

@media (max-width: 480px) {
    .recaptcha-wrapper .g-recaptcha {
        transform: scale(0.88);
        transform-origin: center;
    }
}

/* Optional: lift title for more room */
.hero--index .container {
    margin-top: -20px;
}

@media (max-width: 768px) {
    .hero--index .container {
        padding-bottom: 80px !important;
    }
}

.grecaptcha-badge {
    display: none !important;
}

.custom-recaptcha-badge {
    position: fixed;
    bottom: 10px;
    right: 24px;
    width: 50px; 
    height: auto;
    z-index: 99999;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

    .custom-recaptcha-badge:hover {
        opacity: 1;
    }
