/* Marino Tactical Training — site styles
   Rebuilt from the original GoDaddy WSB v7 site. */

@font-face {
    font-family: 'Special Elite';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/special-elite-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Special Elite';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/special-elite-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --red: #cc0000;
    --yellow: #ffff00;
    --olive: #556b2f;
    --olive-dark: #3f521c;
    --ink: #222;
    --panel: #f1f3f4;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: #2e2e2e url('../img/bg-texture.png') repeat;
}

.canvas {
    max-width: 984px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
}

/* ── Header ─────────────────────────────────────── */

.site-header { padding-top: 10px; }

.header-contact {
    text-align: right;
    margin: 0 16px 4px 0;
    font-size: 13px;
}
.header-contact a { color: var(--red); text-decoration: none; }
.header-contact a:hover { text-decoration: underline; }

.site-title {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 34px;
    margin: 0 16px 10px;
}
.site-title a { color: #000; text-decoration: none; }

.site-nav { background: #000; }
.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 6px 8px;
}
.site-nav li { flex: 1 1 auto; text-align: center; }
.site-nav a {
    display: block;
    padding: 8px 10px;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: underline;
}
.site-nav a:hover,
.site-nav a.active { color: var(--yellow); }

/* ── Content ────────────────────────────────────── */

main { padding: 24px 0 40px; }

.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    font-size: 32px;
    text-align: center;
    margin: 0 0 20px;
    color: #111;
    line-height: 1.3;
}
h2 { font-size: 24px; margin: 28px 0 12px; color: var(--red); line-height: 1.35; }
h3 { font-size: 18px; margin: 20px 0 8px; }

a { color: var(--red); }

.well {
    max-width: 860px;
    margin: 0 auto 30px;
    padding: 16px 22px;
    background: #ccc;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.notice { text-align: center; }
.notice-block { margin-bottom: 30px; }

/* ── CTA buttons ────────────────────────────────── */

.cta-row { text-align: center; margin: 24px 0; }

.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--olive), #6b8e23);
    color: #fff;
    padding: 14px 24px;
    border: 0;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s, transform 0.2s;
    margin: 8px 8px 8px 0;
}
.cta-button:hover {
    background: linear-gradient(90deg, var(--olive-dark), #2e3b12);
    transform: translateY(-2px);
    color: #fff;
}

@media (max-width: 768px) {
    .cta-button { width: 100%; margin: 8px 0; }
}

/* ── Accordions (native details/summary) ────────── */

.accordion { margin: 30px 0; }

.accordion details { margin-bottom: 8px; }

.accordion summary {
    list-style: none;
    padding: 16px;
    font-size: 17px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg, var(--olive), #4f6615);
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ' +'; float: right; }
.accordion details[open] summary { border-radius: 10px 10px 0 0; background: linear-gradient(90deg, var(--olive-dark), #2e3b12); }
.accordion details[open] summary::after { content: ' \2212'; }
.accordion summary:hover { background: linear-gradient(90deg, var(--olive-dark), #2e3b12); }

.accordion-body {
    background: var(--panel);
    padding: 16px 20px;
    border-radius: 0 0 10px 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
.accordion-body > :first-child { margin-top: 0; }
.accordion-body > :last-child { margin-bottom: 0; }

/* ── Courses (class description page) ───────────── */

.course {
    border-bottom: 2px solid var(--panel);
    padding-bottom: 24px;
    margin-bottom: 24px;
}
.course:last-child { border-bottom: 0; }

/* ── Upcoming classes ───────────────────────────── */

.class-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    .class-columns { grid-template-columns: 1fr; }
}

.class-dates { list-style: none; padding: 0; }
.class-dates li { margin-bottom: 18px; }

.terms { border-top: 2px solid var(--panel); padding-top: 10px; }
.terms h2 { font-size: 20px; color: var(--ink); }

/* ── Related classes box ────────────────────────── */

.related-classes {
    margin: 40px auto 0;
    padding: 24px 20px;
    background: var(--panel);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.related-classes h2 { margin-top: 0; }

/* ── Resource / application link lists ──────────── */

.resource-links { padding-left: 20px; }
.resource-links li { margin-bottom: 14px; overflow-wrap: anywhere; }

.application-links dt { font-weight: bold; margin-top: 18px; }
.application-links dd { margin: 4px 0 0; overflow-wrap: anywhere; }

/* ── About ──────────────────────────────────────── */

.about-images {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}
.about-images img { max-width: 100%; height: auto; }

/* ── MantisX ────────────────────────────────────── */

.feature-image {
    display: block;
    margin: 0 auto 24px;
    max-width: 100%;
    height: auto;
}

/* ── Contact ────────────────────────────────────── */

.contact-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
@media (max-width: 768px) {
    .contact-columns { grid-template-columns: 1fr; }
}

address { font-style: normal; }

.contact-form { margin-top: 20px; }

.form-success {
    background: #e6f4e6;
    border: 1px solid #7bbf7b;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: bold;
}
.form-errors {
    background: #fdecea;
    border: 1px solid #e08a84;
    border-radius: 8px;
    padding: 12px 16px;
}
.form-errors ul { margin: 6px 0 0; padding-left: 20px; }

/* Honeypot field: hidden from humans, present for bots. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-weight: bold; margin-bottom: 4px; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font: inherit;
}
.form-field--checkbox label { font-weight: normal; }
.form-field--checkbox input { margin-right: 6px; }

.map-embed iframe {
    width: 100%;
    height: 320px;
    border: 0;
    border-radius: 8px;
}

.contact-columns h2 { font-size: 18px; color: var(--ink); }

/* ── Footer ─────────────────────────────────────── */

.site-footer {
    background: #000;
    color: #fff;
    padding: 24px 16px;
    text-align: center;
    font-size: 12px;
}
.site-footer nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 18px;
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}
.site-footer a {
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
}
.site-footer a:hover { color: var(--yellow); }
