/* ==========================================================================
   1. CORE BASE & TYPOGRAPHY
   ========================================================================== */
body {
    font-family: Raleway, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    color: #333;
}

.heading {
    font-weight: bold;
    font-size: clamp(1.6rem, 1.2rem + 2vw, 2.35rem);
    text-transform: uppercase;
    color: #ad3e01;
}

.subheading {
    font-weight: 600;
    text-transform: uppercase;
    color: #333;
}

.subheadingdate {
    font-weight: 600;
    color: #3B464C;
    margin-bottom: 0;
}

.main-text {
    font-size: 1.125rem;
    font-size: clamp(1.125rem, 1rem + 1vw, 1.5rem);
}

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.8rem; }
.tracking-wide { letter-spacing: 0.05em; }

/* Font Family Utilities */
.old-standard-tt-regular {
    font-family: "Old Standard TT", serif;
    font-weight: 400;
    font-style: normal;
}

.old-standard-tt-bold {
    font-family: "Old Standard TT", serif;
    font-weight: 700;
    font-style: normal;
}

.old-standard-tt-regular-italic {
    font-family: "Old Standard TT", serif;
    font-weight: 400;
    font-style: italic;
}

/* Color Utilities */
.warmBrass { color: #C5A059; }
.navyBlue { color: #1B2A4A; }
.year { color: #5C6B73; }
.names { color: #3B464C; }

/* Indents */
.indent { display: block; margin-left: 3rem; }
.indent2 { display: block; margin-left: 5rem; }

@media screen and (max-width: 576px) {
    .indent { margin-left: 2rem; }
}

/* ==========================================================================
   2. GLOBAL LAYOUT & HERO
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

.global-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-bg-img.loaded {
    opacity: 0.5;
}

.hero-roughseas {
    background-image: url("../images/roughseas.jpg");
    background-size: cover;
    background-position: center;
}

/* Custom Layout Utilities */
.row-top { flex: 1 1 100%; }
.col-left { flex: 0 0 auto; }
.col-right {
    flex: 1 1 auto;
    text-align: right;
}

.newspaper {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.53), rgba(255, 255, 255, 0.53)),
        url("../images/Vintage_paper_seamless_repeating…_202608161427.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Debug Boxes */
.redbox { border: 1px solid red; }
.greenbox { border: 1px solid rgb(13, 151, 0); }
.bluebox { border: 1px solid blue; }
.greybox { border: 1px solid grey; }

/* ==========================================================================
   3. NAVIGATION (BOOTSTRAP TOPNAV)
   ========================================================================== */
.navbar {
    background-color: rgba(0, 0, 0, 0.7);
    min-height: 3.5rem;
    padding: 5px;
    font-size: 1em;
    border-top: 2px solid #9c3700;
    /* border-bottom: 2px solid #9c3700; */
    /* margin-top: 5px; */
}

.navbar .container {
    padding: 5px;
}

.topnav .nav-link {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
    text-transform: uppercase;
}


.topnav .nav-link:hover,
.topnav .nav-link:focus,
.topnav .nav-link:active,
.topnav .show > .nav-link {
    color: #ffffff !important;
}
.topnav .nav-link.active{
    color: #e95300;
    font-weight: 600;
}
.navbar-nav > .nav-item {
    display: flex;
    align-items: center;
}

.navbar-nav > .nav-item:not(:last-child)::after {
    /* content: "\00B7"; */
    content: " | ";
    color: #929292;
    pointer-events: none;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

/* Dropdown styling */
.dropdown-menu {
    background-color: #343537;
    box-shadow: 5px 5px 10px #414141;
}

.dropdown-item {
    color: #cfcfcf;
}

.topnav .dropdown-menu {
    --bs-dropdown-link-hover-color: #fff;
    --bs-dropdown-link-hover-bg: #e95300;
    --bs-dropdown-link-focus-color: #fff;
    --bs-dropdown-link-focus-bg: #9c3700;
    --bs-dropdown-link-active-color: #fff;
    --bs-dropdown-link-active-bg: #9c3700;
}

.dropdown-item.active {
    background-color: #9c3700;
    color: #fff;  
}

.blend-navbar {
    background-color: #f8f9fa;
    mix-blend-mode: multiply;
    position: relative;
    z-index: 10;
}

.blend-navbar .nav-link {
    color: #212529 !important;
    font-family: "Raleway", sans-serif;
}

/* Mobile Nav Drawer */
.navbar-collapse.show {
    background-color: #323435;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.navbar-toggler-icon {
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .navbar-nav > .nav-item::after {
        display: none;
    }
}

/* Ensure navbar dropdowns drop down inline under the toggle when collapsed (mobile) */
@media (max-width: 991.98px) {
    .navbar .dropdown-menu {
        position: static !important;
        float: none !important;
        /* soft white glow when on mobile */
        box-shadow: 0 8px 24px rgba(255,255,255,0.12), 0 2px 8px rgba(255,255,255,0.06) !important;
        margin-top: 0.5rem;
    }
    .navbar .dropdown .dropdown-menu {
        width: auto;
    }
}

/* Stack nav items and make dropdown toggles full-width on mobile */
@media (max-width: 991.98px) {
    .navbar-nav > .nav-item {
        display: block;
        width: 100%;
        align-items: stretch;
    }
    .navbar-nav .nav-link,
    .navbar-nav .dropdown-toggle {
        display: block;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    .navbar-nav .dropdown-menu .dropdown-item {
        padding-left: 1rem;
    }
}

/* add a gentle white blur behind the collapsed navbar container on mobile */
@media (max-width: 991.98px) {
    .navbar-collapse.show {
        box-shadow: 0 12px 40px rgba(255,255,255,0.08) inset, 0 8px 30px rgba(255,255,255,0.06);
    }
}

/* ==========================================================================
   4. BUTTONS & FORMS
   ========================================================================== */
.btn-custom {
    background-color: #007bff;
    color: white;
}

.btn-custom:hover {
    background-color: #0056b3;
}

input, select, textarea, button {
    font-size: clamp(1.125rem, 1rem + 1vw, 1.5rem) !important;
}

.form-control {
    border-color: #000 !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #c5a059 !important;
    box-shadow: 0 0 0 0.25rem rgba(197, 160, 89, 0.25) !important;
    outline: 0;
}

.contactform {
    max-width: 800px;
}

#submitBtn {
    background-color: #ad3e01 !important;
    border-color: #ad3e01 !important;
}

#submitBtn:hover,
#submitBtn:focus,
#submitBtn:active {
    background-color: #812d00 !important;
    border-color: #812d00 !important;
    color: #ffffff;
}

/* ==========================================================================
   5. MEDIA COMPONENTS
   ========================================================================== */
.responsive-svg {
    width: 100%;
    height: auto;
    display: block;
}

.pdf-page {
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.5);
}

.videos {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;;
}

sup {
    vertical-align: baseline;
    position: relative;
    top: -0.4em;
    font-size: 0.75em;
}

/* Inline Link Icons */
.openlink-black::after {
    content: url("../images/external-link.png");
    mix-blend-mode: multiply;
    filter: grayscale(100%);
}

.openlink::after {
    content: url("../images/external-link.png");
    mix-blend-mode: multiply;
    padding: 2px;
    vertical-align: 3px;
}

a.highlight,
a.sponsor-link {
    color: rgba(25, 73, 143);
    padding: 3px;
    margin: -3px;
}

/* Email Svg Links */
.email-link {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 0;
    margin-bottom: 0;
    transition: border-color 0.05s ease-in-out;
}

.email-svg {
    height: 0.875rem;
    width: auto;
    fill: rgba(255, 255, 255, 0.65);
    transition: fill 0.05s ease-in-out;
}

.email-link:hover .email-svg {
    fill: #fff;
}

.email-underline {
    border-bottom: 1px solid #fff;
    position: relative;
    top: -4px;
    height: 1px;
    background: transparent;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
    pointer-events: none;
}

.email-link:hover .email-underline {
    opacity: 1;
}

#email-display2 {
    height: 0.97rem;
    width: auto;
    fill: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

#email-display3:hover {
    text-decoration: underline !important;
    color: #6c757d !important;
    transition: color 0.2s ease;
}

/* 404 Page */
.custom404 h2 {
    margin-top: 2rem;
    font-size: 8rem;
    color: #305b5e;
}

/* Scroll To Top Button */
#topBtn {
/* keep hidden initially via opacity + pointer-events so JS show/hide won't break flex centering */
    opacity: 0;
    pointer-events: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 9999;
    font-size: 0.875rem !important;
    border: none;
    outline: none;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    /* box-shadow: 0 0 1px rgb(255, 255, 255); */
    box-shadow: 5px 5px 10px #414141;
    /* enforce flex layout even if JS sets an inline display value */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.2rem 0.4rem;
    min-width: 2rem; 
    height: 2.2rem;
    line-height: 1;
    transition: background-color 0.15s ease, opacity 0.15s ease;
    border: 1px solid #fff;
}

/* When you want to show the button via JS, set opacity and pointer-events (preferred)
   Example in JS: topBtn.style.opacity = '1'; topBtn.style.pointerEvents = 'auto'; */
#topBtn.visible {
    opacity: 0.95;
    pointer-events: auto;
}

#topBtn img.topbtn-icon {
    width: 0.7rem;
    height: 0.7rem;
    display: block;
    flex-shrink: 0;
    pointer-events: none;
    /* force the SVG to appear white (works for dark SVGs) */
    filter: invert(1) sepia(1) saturate(0) brightness(2);
}
#topBtn:hover {
    background-color: #9c3700;
    opacity: 1;
    color: #fff;
}

#topBtn i {
    font-size: 0.875rem !important;
    vertical-align: middle;
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    position: relative;
    bottom: 0;
    width: 100%;
}

.wrapper-address {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.footer_address {
    display: flex;
    justify-content: center;
    padding-top: 10px;
    text-align: center;
}

.copyright {
    font-size: 0.8rem;
    color: #fff;
}

.footer-bottom {
    width: 100%;
    font-family: 'Raleway', sans-serif;
}

.footer-links a:link,
.footer-links a:visited,
.footer-links a:hover,
.footer-links a:active {
    font-size: 0.6rem;
    color: rgb(148, 148, 148);
    text-decoration: none;
    padding-left: 15px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    font-weight: 400;
}

.footer-links-list li {
    display: inline-flex;
    align-items: center;
}

.footer-links-list li:not(:last-child)::after {
    content: "\00B7";
    margin-left: 1rem;
    color: #6c757d;
    pointer-events: none;
}

.footer-links-list li.end-row::after {
    content: "";
}

.footer-links-list a {
    text-decoration: none;
    color: #000000;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.footer-links-list a.active,
.footer-links-list a.active:active,
.footer-links-list li.active > a,
.footer-links-list li.active > a:active {
    background-color: #ffffff60;
    padding: 3px;
    margin: -3px;
    border-radius: 3px;
    box-shadow: 0 0 0 2px rgba(25, 73, 143, 0.082);
    text-decoration: none !important;
}

.footer-links-list a.disabled {
    pointer-events: none;
    cursor: default;
    opacity: 0.95;
}

.footer-links-list a:hover {
    color: rgba(25, 73, 143);
    text-decoration: underline;
    background-color: #ffffff60;
    padding: 3px;
    margin: -3px;
    border-radius: 3px;
    box-shadow: 0 0 0 2px rgba(25, 73, 143, 0.082);
}

.legal-link {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65) !important;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.legal-link:hover {
    color: #ffffff !important;
}

/* Footer Media Queries */
@media screen and (max-width: 576px) {
    .address-xs { display: block; }
    .address-sm { display: none; }
    .address-md { display: none; }
    .main-text2 { font-size: 1.125rem; }
}

@media screen and (min-width: 577px) and (max-width: 677px) {
    .address-xs { display: none; }
    .address-sm { display: block; }
    .address-md { display: none; }
    .main-text2 { font-size: 1.5rem; }
}

@media screen and (min-width: 678px) {
    .address-xs { display: none; }
    .address-sm { display: none; }
    .address-md { display: block; }
    .main-text2 { font-size: 1.5rem; } 
}

@media (max-width: 767.98px) {
    .footer-bottom { text-align: center !important; }
    .footer-bottom .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}