/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
    font-family: 'biedermeier_kursivregular';
    src: url('../fonts/biedermeierkursiv-webfont.woff2') format('woff2'),
        url('../fonts/biedermeierkursiv-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Core Styling Variables */
:root {
    --primary-color: #000000;
    --secondary-color: #000000;
    --bg-color: #FFFFFF;
    --footer-bg: #D5C4A1;
    --highlight: #b0a48d;
    --font-heading: 'biedermeier_kursivregular', cursive;
    --font-body: 'Roboto', serif;
    --font-nav: 'Roboto', sans-serif;
}

html {
    font-size: 18px;
}

body {
    background-color: var(--bg-color);
    color: var(--primary-color);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
}

.relative {
    position: relative;
}

/* Typography Base */
h1,
h2,
h3,
h4,
.section-title,
.hero-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.section-title {
    position: relative;
}

.section-title::before,
.decorative-line {
    content: "";
    display: block;
    width: 384px;
    height: 1px;
    background-color: var(--footer-bg);
    margin: 0 auto 50px auto;
}

.content-title {
    font-size: 24px;
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 30px;
}

.hero-title {
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.9);
}

.body-text,
p,
li {
    font-family: var(--font-body);
    color: var(--primary-color);
    font-weight: 400;
}

.max-width-text {
    max-width: 800px;
}

/* Navigation Utilities */
.navbar {
    background: #fff;
    transition: all 0.3s ease-in-out;
}

.nav-link {
    font-family: var(--font-nav);
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--primary-color) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--highlight) !important;
}

.bg-white {
    background-color: var(--bg-color) !important;
}

.nav-shadow {
    box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    position: absolute;
    top: 5px;
    padding: 0;
}

.navbar-brand img {
    width: 312px;
    height: auto;
}

/* Animated Hamburger */
.navbar-toggler {
    border: none;
    outline: none;
    padding: 0;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.animated-hamburger {
    width: 40px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.animated-hamburger .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.navbar-toggler:hover .animated-hamburger .middle-bar {
    width: 70%;
}

/* Expanded state (X) */
.navbar-toggler[aria-expanded="true"] .animated-hamburger .top-bar {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .animated-hamburger .bottom-bar {
    transform: translateY(-7px) rotate(-45deg);
}

.navbar-toggler[aria-expanded="true"] .animated-hamburger .middle-bar {
    opacity: 0;
}

/* Common Components */
.transition-all {
    transition: all 0.3s ease-in-out;
}

.hover-grow:hover {
    transform: scale(1.03);
}

/* Hero Section */
.hero-sect {
    min-height: 80vh;
    background: url('../img/hero-bg.jpg') no-repeat center center/cover;
    position: relative;
}

.subhero-sect {
    position: relative;
    margin-top: -150px;
    z-index: 10;
}

.hero {
    min-height: 80vh;
    position: relative;
}

.hero-soldiers {
    height: 95%;
    width: auto;
    position: absolute;
    left: -10px;
    bottom: -10px;
    overflow: hidden;
    z-index: 1;
}

.hero-soldiers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Boxes */
.parchment-box {
    background-color: #FDF5E6;
    /* Fallback */
    background-image: url('https://via.placeholder.com/400x300.png?text=Parchment+Texture');
    background-size: cover;
    border: 1px solid #d3c4a1;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
    font-family: var(--font-body);
    font-weight: 500;
}

/* Hover Links */
a.hover-highlight {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: transparent;
}

a.hover-highlight:hover {
    color: var(--highlight);
    text-decoration-color: var(--highlight);
}

/* Utility Classes */
.flex-basis-25 {
    flex-basis: 25%;
}

.max-width-narrow {
    max-width: 550px;
}

.border-soft {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.max-height-150 {
    max-height: 150px;
}

.max-height-60 {
    max-height: 60px;
}

.text-sm {
    font-size: 16px !important;
}

.text-xs {
    font-size: 14px !important;
}

.font-weight-medium {
    font-weight: 500;
}

/* Lightbox Overrides */
.lb-outerContainer {
    background-color: transparent !important;
    border-radius: 0 !important;
}

.lb-container {
    padding: 0 !important;
}

.lb-image {
    border: none !important;
    border-radius: 0 !important;
}

/* Footer */
.footer-custom {
    background-color: var(--footer-bg);
}

/* Accordion */
.accordion .card {
    background-color: transparent;
    border: none;
    margin-bottom: 0.5rem;
}

.accordion .card-header {
    background-color: transparent;
    border-bottom: none;
    padding: 0;
}

.accordion .btn-link {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-color);
    text-decoration: none;
    padding: 1rem 0;
    width: 100%;
    text-align: left;
}

.accordion .btn-link:hover,
.accordion .btn-link:focus {
    text-decoration: none;
    color: var(--highlight);
    outline: none !important;
    box-shadow: none !important;
}

.accordion .card-body {
    padding: 1rem 0 2rem 0;
}