/* ==========================================================================
   TMM, Inc. / TRUDEF site stylesheet
   Consolidated from style.css, common.min.css, okayNav.min.css and the
   inline <style> block that used to live in footer.php.
   ========================================================================== */

/* --- Reset / base ------------------------------------------------------- */
* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #1f2937;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    border: 0;
    max-width: 100%;
}

/* --- Shared "action button" style (matches index.php's primary CTAs) --- */
.action-btn {
    display: inline-flex;
    align-items: center;
    background: #f4f5f7;
    border: 1px solid #d1d5db;
    border-left: 4px solid #0052cc;
    color: #1f2937;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.action-btn:hover {
    background: #ffffff;
    border-color: #0052cc;
    color: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 82, 204, 0.1);
}

/* --- Site header / nav (okayNav) ----------------------------------------
   okayNav collapses the nav into a slide-out panel on narrow viewports;
   see /js/jquery.okayNav-min.js.
   -------------------------------------------------------------------- */
.okayNav-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 72px;
    padding: 0 15px;
    background-color: #000;
    box-shadow: 0 20px 15px -10px rgba(0, 0, 0, 0.3);
}

.okayNav:not(.loaded) {
    visibility: hidden;
    user-select: none;
}

.okayNav ul {
    float: left;
}

.okayNav a {
    position: relative;
    z-index: 1;
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #C0C0C0;
}

.okayNav a:hover {
    color: #1a75ff;
}

.okayNav__nav--visible {
    overflow: hidden;
    white-space: nowrap;
}

.okayNav__nav--visible li {
    display: inline-block;
}

.okayNav__nav--visible a {
    display: block;
    padding: 15px;
    transition: color 0.2s cubic-bezier(0.55, 0, 0.1, 1);
}

.okayNav__nav--visible:empty ~ .okayNav__menu-toggle {
    top: 0;
}

.okayNav__nav--invisible {
    position: fixed;
    top: 72px;
    bottom: 0;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    background: transparent;
}

.okayNav__nav--invisible a {
    display: block;
    width: 240px;
    padding: 15px;
    background: #282828;
}

.okayNav__nav--invisible.nav-left {
    left: 0;
    transform: translateX(-100%);
}

.okayNav__nav--invisible.nav-right {
    right: 0;
    transform: translateX(100%);
}

.okayNav__nav--invisible.transition-enabled {
    transition: transform 0.4s cubic-bezier(0.55, 0, 0.1, 1);
}

.okayNav__nav--invisible.nav-open {
    transform: translateX(0);
}

.okayNav__menu-toggle {
    position: relative;
    z-index: 1;
    top: 15px;
    float: left;
    width: 40px;
    height: 20px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.55, 0, 0.1, 1);
}

.okayNav__menu-toggle.okay-invisible {
    position: absolute;
    pointer-events: none;
    user-select: none;
    opacity: 0;
}

.okayNav__menu-toggle span {
    position: absolute;
    right: 0;
    left: 0;
    display: block;
    width: 4px;
    height: 4px;
    margin: auto;
    background: #C0C0C0;
    border-radius: 50%;
    pointer-events: none;
}

.okayNav__menu-toggle span:nth-child(1) {
    top: 0;
}

.okayNav__menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.okayNav__menu-toggle span:nth-child(3) {
    bottom: 0;
}

.okayNav__menu-toggle.icon--active {
    transform: rotate(90deg);
}

.okayNav__menu-toggle.icon--active span {
    background: #1a75ff;
}

/* --- Site footer ---------------------------------------------------------
   Markup lives in footer.php (and news/footer.php, which includes it).
   -------------------------------------------------------------------- */
.site-footer {
    padding: 14px 20px;
    background-color: #2d3139;
    border-top: 4px solid #0052cc;
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-nav a {
    font-size: 13px;
    font-weight: 500;
    color: #e5e7eb;
    transition: color 0.15s ease-in-out;
}

.footer-nav a:hover {
    color: #38bdf8;
}

.footer-copyright {
    font-size: 12px;
    line-height: 1.5;
    color: #9ca3af;
}

.footer-copyright a {
    font-weight: bold;
    color: #ffffff;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

.footer-archive-notice {
    font-size: 13px;
    line-height: 1.5;
    color: #9ca3af;
    text-align: justify;
    width: 80%;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .footer-nav {
        gap: 12px 20px;
    }
}
