/* Optimaly brand tokens (shared with OptimalyWeb / Routio) */

:root {
    --optimaly-orange: #ff6b35;
    --optimaly-gold: #ffd700;
    --optimaly-blue: #17a2b8;
    --optimaly-dark: #2c3e50;
    --optimaly-light: #f8f9fa;
    --optimaly-muted: rgba(255, 255, 255, 0.7);
    --optimaly-border: rgba(44, 62, 80, 0.12);
    --optimaly-card-bg: rgba(255, 255, 255, 0.96);
    --optimaly-card-shadow: 0 8px 24px rgba(44, 62, 80, 0.08);
    --optimaly-surface: #ffffff;
    --optimaly-text: #2c3e50;
    --optimaly-text-muted: #64748b;
    --optimaly-accent: #17a2b8;
}

/* Dark mode — navy palette */
[data-theme="dark"] {
    --optimaly-dark: #e2e8f0;
    --optimaly-light: #1c2a3d;
    --optimaly-border: rgba(148, 163, 184, 0.13);
    --optimaly-card-bg: rgba(22, 32, 50, 0.97);
    --optimaly-card-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    --optimaly-muted: rgba(148, 163, 184, 0.7);
    --optimaly-surface: #162032;
    --optimaly-text: #e2e8f0;
    --optimaly-text-muted: #94a3b8;
    --optimaly-accent: #38bcd4;

    /* keep accent colors readable on dark */
    --optimaly-blue: #38bcd4;
    --optimaly-orange: #ff7d4d;
}

html {
    font-size: 16px;
    scrollbar-gutter: stable;
}

body {
    font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
    color: var(--optimaly-dark);
    margin: 0;
    min-height: 100%;
    background: url("_content/Patriot.UI/img/optimaly/OptimalyLogoBezPozadi.png") center center / contain fixed no-repeat;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.9) 0%, rgba(44, 62, 80, 0.82) 80%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}

.patriot-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.patriot-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--optimaly-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.patriot-nav-spacer {
    flex: 1 1 auto;
    min-width: 0.5rem;
}

html.patriot-modal-open,
html.patriot-modal-open body {
    overflow: hidden;
}

.patriot-nav a {
    color: var(--optimaly-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
}

.patriot-nav a:hover {
    color: var(--optimaly-blue);
}

.patriot-brand {
    font-weight: 700;
    color: var(--optimaly-orange) !important;
    margin-right: 0.5rem;
    font-size: 1.0625rem;
}

.patriot-main {
    flex: 1;
    padding: 1.5rem;
}

/* Optimaly footer */

.opt-footer {
    position: relative;
    margin-top: auto;
    padding: 3.5rem 0 1.75rem;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(23, 162, 184, 0.9) 100%),
        url("_content/Patriot.UI/img/optimaly/OptimalyLogoBezPozadi.png") center center / contain no-repeat;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.opt-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--optimaly-blue), var(--optimaly-blue));
}

.opt-footer-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.opt-footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.opt-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.875rem;
}

.opt-footer-brand img {
    height: 40px;
    width: auto;
    opacity: 0.95;
}

.opt-footer-brand h2 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--optimaly-orange);
    font-weight: 700;
}

.opt-footer-text {
    margin: 0 0 0.75rem;
    color: var(--optimaly-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.opt-footer-meta {
    margin: 0;
    color: var(--optimaly-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.opt-footer-link-accent {
    color: var(--optimaly-orange);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.opt-footer-link-accent:hover {
    color: var(--optimaly-gold);
}

.opt-footer h3 {
    margin: 0 0 0.875rem;
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
}

.opt-footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.opt-footer-links li {
    margin-bottom: 0.5rem;
}

.opt-footer-links a {
    color: var(--optimaly-muted);
    text-decoration: none;
    font-size: 0.875rem;
}

.opt-footer-links a:hover {
    color: var(--optimaly-gold);
}

.opt-footer-contact p {
    margin: 0 0 0.5rem;
    color: var(--optimaly-muted);
    font-size: 0.875rem;
    line-height: 1.55;
}

.opt-footer-contact a {
    color: var(--optimaly-muted);
    text-decoration: none;
}

.opt-footer-contact a:hover {
    color: #fff;
}

.opt-footer-contact-label {
    display: inline-block;
    min-width: 4.5rem;
    color: var(--optimaly-gold);
    font-weight: 600;
}

.opt-footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1.25rem;
}

.opt-footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.opt-footer-bottom a {
    color: var(--optimaly-muted);
    text-decoration: none;
}

.opt-footer-bottom a:hover {
    color: #fff;
}
