/* ============================================================
   TrubeTech Default Theme
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Core palette */
    --bg: #0b1d2d;              /* deep navy */
    --bg-soft: rgba(11,29,45,0.92);
    --panel: rgba(14,32,52,0.92);
    --panel-soft: rgba(18,38,60,0.88);
    --line: rgba(255,255,255,0.15);

    /* Text */
    --text: #f5f7fa;
    --muted: #c6d0dc;

    /* Brand */
    --accent: #c4161c;          /* Field Day red */
    --accent-soft: rgba(196,22,28,0.25);
    --highlight: #f2c94c;       /* sun yellow / gold */

    /* Forms */
    --input-bg: #0f2438;
    --input-bg-focus: #14314d;
    --input-border: #6b7c90;
    --input-border-focus: var(--accent);

    /* Utility */
    --ok: #4ade80;
    --danger: #f87171;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    background:
        linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.15)),
        url('/assets/background.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg);
}

/* ============================================================
   Layout
   ============================================================ */

.float-image, .float-right, .float-left {
    margin-bottom: 10px;
}

.float-image, .float-left {
    float: left;
    margin-right: 10px;
}

.float-right {
    float: right;
    margin-left: 10px;
}

.container {
    overflow: auto;
    margin-bottom: 20px;
}

.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(4px);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

}

.brand {
    font-family: 'Oswald', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
}

.brand:hover {
    color: var(--highlight);
}

.tagline {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ============================================================
   Navigation
   ============================================================ */

.site-nav {
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.site-nav a {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.5rem 0.85rem;
}

.site-nav a:hover {
    color: var(--accent);
}

/* ============================================================
   Main Content
   ============================================================ */

.site-main {
    flex: 1 0 auto;
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    margin: 0 0 0.75rem;
    line-height: 1.15;
    letter-spacing: 1px;
    text-transform: uppercase;
}


h1 {
    font-size: clamp(1.9rem, 6vw, 2.6rem);
    letter-spacing: 1px;
    line-height: 1.1;
    word-break: break-word;
    overflow-wrap: anywhere;
}
@media (max-width: 760px) {
    h1 {
        letter-spacing: 0.4px;
        line-height: 1.05;
    }
}
h2 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    border-left: 5px solid var(--accent);
    padding-left: 0.85rem;
}

p {
    color: var(--muted);
    max-width: 100%;
}

/* ============================================================
   Tables
   ============================================================ */

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--line);
    background: var(--panel);
}

th, td {
    padding: 0.6rem 0.7rem;
    border-bottom: 1px solid var(--line);
}

th {
    color: var(--muted);
    font-weight: 600;
    text-align: left;
}

/* ============================================================
   Cards / Sections
   ============================================================ */

.card {
    background: var(--panel-soft);
    border: 1px solid var(--line);
    padding: 1.6rem;
    margin: 1.75rem 0;
    border-radius: 18px;
}
.link-card {
    display: block;
}

.main-content {
    background: rgba(0,0,0,0.65);
    border-radius: 18px;
    padding: 1.5rem;
}


/* ============================================================
   Admin Grid Layout
   ============================================================ */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.75rem;
    align-items: stretch;
}

.grid .card {
    margin: 0;
}

/* ============================================================
   Compact Admin Forms
   ============================================================ */

.form-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.form-row label {
    margin: 0;
    font-size: 0.75rem;
    white-space: nowrap;
}

.form-row input[type="text"],
.form-row input[type="password"] {
    flex: 1 1 200px;
    max-width: 300px;
}

.inline-check {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
}

.inline-check input {
    width: auto;
    margin: 0;
}

/* ============================================================
   Links
   ============================================================ */

a {
    color: var(--highlight);
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

/* ============================================================
   Forms
   ============================================================ */

label {
    display: block;
    margin: 0.75rem 0 0.3rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input,
textarea,
select {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text);
    padding: 0.65rem 0.75rem;
    font-size: 0.95rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    background: var(--input-bg-focus);
    border-color: var(--input-border-focus);
}

button {
    font-family: 'Oswald', sans-serif;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--text);
    padding: 0.65rem 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}

button:hover {
    background: var(--accent);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    padding: 1.75rem 0;
}

.site-footer .footer-row {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--muted);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 760px) {
    h1 {
        font-size: 2rem;
    }

    .header-row {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ==== NEW GLOBAL UTILITY CLASSES ==== */

.section-hero {
    padding: 4rem 0;
    text-align: center;
}

.section-hero h1 {
    font-size: 3rem;
    color: var(--accent);
}

.section-hero p {
    color: var(--text);
    font-size: 1.15rem;
    margin-top: 0.5rem;
}

.cta-primary {
    background: var(--accent);
    color: var(--text);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
}

.cta-primary:hover {
    background: var(--highlight);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--panel-soft);
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    text-align: center;
}

.service-card h3 {
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.service-card .cta-small {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--accent-soft);
    color: var(--text);
    text-transform: uppercase;
    font-size: 0.85rem;
    border: 1px solid var(--accent);
}

.service-card .cta-small:hover {
    background: var(--accent);
    color: var(--text);
}

.section-intro {
    text-align: center;
    margin-top: 3rem;
    color: var(--text);
}

.section-intro h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-intro p {
    color: var(--muted);
}

.footer-notes {
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
    margin-top: 3rem;
}