/* ============================================================
   Trube Technologies LLC – Brand-Aligned CSS 
   Location: /assets/style.css
   ============================================================ */

:root {
    /* Core palette */
    --bg: #0a0a0a;
    --bg-soft: #111111;
    --panel: #333333;
    --panel-soft: #1b1b1b;
    --line: rgba(255,255,255,0.12);

    /* Text */
    --text: #f5f5f5;
    --muted: #b3b3b3;

    /* Brand */
    --red: #e6392f;
    --red-soft: rgba(230,57,47,0.15);

    /* Forms */
    --input-bg: #1e1e1e;
    --input-bg-focus: #222222;
    --input-border: #cccccc;
    --input-border-focus: var(--red);

    /* Utility */
    --ok: #4ade80;
    --danger: #f87171;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
	background: var(--bg);
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
	
	text-rendering: optimizeLegibility;
	padding-bottom: 3px;

	background: url(/assets/bgimage01.jpg);  
	background-repeat: repeat; 
	background-attachment: fixed; 
	min-height: 1000px;
    max-width: 100vw;
   /* overflow-x: hidden; */	
}

/* ============================================================
   Layout
   ============================================================ */

input[type="checkbox"] {
	width: auto;
	margin-right: 0.5rem;
}

label input[type="checkbox"] {
	display: inline-block;
	vertical-align: middle;
}  
   
.print-only {
    display: none;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Highlighted rate card */
.rate-card.highlight {
    border-color: var(--red);
    box-shadow: 0 0 0 2px var(--red-soft);
}



/* ============================================================
   Header
   ============================================================ */

.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: var(--text);
}

.tagline {
    color: var(--muted);
    font-size: 0.9rem;
}
.tagline-user {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
}

/* ============================================================
   Navigation
   ============================================================ */

.site-nav {
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.nav-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    flex-wrap: wrap;
}

.nav-row a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.45rem 0.75rem;
    border-radius: 4px;
    letter-spacing: 0.4px;
}

.nav-row a:hover,
.nav-row a:focus {
    background: var(--red-soft);
    color: #ffffff;
}

.spacer {
    flex: 1;
}

/* ============================================================
   Main Content
   ============================================================ */

.site-main {
    padding: 2.5rem 0 3.5rem;
}

h1, h2, h3 {
    margin: 0 0 0.75rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.1rem;
}

h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--red);
}

p {
    color: var(--muted);
   /* max-width: 70ch;*/
}

.nav-cta {
    border: 1px solid var(--red);
    padding: 0.45rem 0.9rem;
    font-weight: 700;
}

.nav-cta:hover,
.nav-cta:focus {
    background: var(--red);
    color: #ffffff;
}


.primary-cta {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--red);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none;
}

.primary-cta:hover,
.primary-cta:focus {
    background: var(--red);
    color: #ffffff;
}



/* ============================================================
   Cards / Sections
   ============================================================ */

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}
.link-card {
    text-decoration: none;
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.card-link:hover,
.card-link:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.6);
}

.card-link:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

.card-link * {
    color: inherit;
    text-decoration: none;
}
/* ============================================================
   Grid
   ============================================================ */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    gap: 1.5rem;
}


@media (max-width: 1000px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Admin dashboard: compact grid, 4+ cards per row */
.site-admin .grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}
.site-admin .grid .card {
    margin: 0;
    padding: 0.75rem 1rem;
}

/* ============================================================
   Hero row (two side-by-side cards, stacks on mobile)
   ============================================================ */

.hero-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
    margin: 1.75rem 0;
}

.hero-row > .card {
    margin: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.hero-card__image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    margin-bottom: 1rem;
}

@media (max-width: 760px) {
    .hero-card__image {
        max-height: 260px;
    }
}

.hero-card__lede {
    margin: 0 0 1rem;
}

@media (max-width: 760px) {
    .hero-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* ============================================================
   Lists
   ============================================================ */

ul {
    padding-left: 1.2rem;
}

li {
    margin: 0.35rem 0;
}

/* ============================================================
   Links
   ============================================================ */

a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-underline-offset: 3px;
}

a:hover,
a:focus {
    color: var(--red);
}

/* ============================================================
   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;
}

/* ============================================================
   Forms (FIXED CONTRAST)
   ============================================================ */

label {
    display: block;
    margin: 0.75rem 0 0.3rem;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
}

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;
    border-radius: 4px;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    background: var(--input-bg-focus);
    border-color: var(--input-border-focus);
}

/* Buttons */
button {
    background: transparent;
    border: 1px solid var(--red);
    color: var(--text);
    padding: 0.6rem 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
}

button:hover {
    background: var(--red);
    color: #ffffff;
}

/* Admin form blocks */
.form-block {
    background: var(--panel-soft);
    border: 1px solid var(--line);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}


.admin-table {
	border-collapse: collapse;
	width: 100%;
}

.admin-table thead th {
	background: #222222;
	font-weight: 600;
	text-align: left;
	padding: 6px 6px;
	border-bottom: 2px solid #c90000;
}

.admin-table td {
	padding: 6px;
	vertical-align: top;
}

.admin-table .num {
	text-align: right;
	white-space: nowrap;
}

.link-btn {
	background: none;
	border: none;
	padding: 0;
	color: #00f;
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
}
.link-btn:hover { color: #00c; }
.link-btn:disabled { color: #999; cursor: not-allowed; text-decoration: none; }

.manage-crm a,
.manage-crm .link-btn { color: #fff; text-decoration: underline; text-decoration-color: #c90000; }
.manage-crm a:hover,
.manage-crm .link-btn:hover { color: #fff; opacity: 0.9; }
.manage-crm .link-btn:disabled { color: #999; cursor: not-allowed; text-decoration: none; }

.site-emulate-bar {
	background: #c90000;
	color: #fff;
	padding: 0.5rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.9rem;
	font-weight: 600;
}
.site-emulate-bar a {
	color: #fff;
	text-decoration: underline;
}
.site-emulate-bar a:hover {
	opacity: 0.9;
}

.site-admin a,
.site-admin .link-btn { color: #fff; text-decoration: underline; text-decoration-color: #c90000; }
.site-admin a:hover,
.site-admin .link-btn:hover { color: #fff; opacity: 0.9; }
.site-admin .link-btn:disabled { color: #999; cursor: not-allowed; text-decoration: none; }

/* ============================================================
   Portfolio Grid & Cards
   ============================================================ */

.portfolio-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--panel);
    border: 1px solid var(--line);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: var(--red);
    transition: height 0.25s ease;
}

.portfolio-image {
    display: block;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-card h2 {
    margin: 1rem 1.25rem 0.5rem;
    font-size: 1.25rem;
}

.portfolio-description {
    margin: 0 1.25rem 1rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.portfolio-card p {
    margin: auto 1.25rem 1.25rem;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.65);
}

.portfolio-card:hover::before {
    height: 100%;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

/* ============================================================
   Notices
   ============================================================ */

.notice {
    border-left: 4px solid var(--line);
    padding: 0.75rem 1rem;
    background: var(--panel);
    margin: 1rem 0;
}

.notice.ok {
    border-color: var(--ok);
}

.notice.error {
    border-color: var(--danger);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--panel);
    padding: 1.5rem 0;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.muted {
    color: var(--muted);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 760px) {
    .header-row,
    .footer-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .portfolio-image {
        height: 180px;
    }
}

/* Support ticket attachment thumbnails */
.support-attachments {
    margin-top: 0.5rem;
}
.support-attachment-thumb {
    max-width: 150px;
    max-height: 150px;
    height: auto;
    display: block;
    border: 1px solid var(--line);
    border-radius: 4px;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    vertical-align: middle;
}
.support-attachments a img.support-attachment-thumb:hover {
    opacity: 0.9;
}
.support-attachment-link {
    display: inline-block;
    margin-right: 0.75rem;
    margin-bottom: 0.25rem;
}

/* Public tools (prompts, tools, referrals): admin manage link under H1 */
.admin-tool-manage {
    margin: -0.25rem 0 0.75rem;
    font-size: 0.95rem;
}