/* Shared brand bridge. Runtime color values are delivered by /branding/theme.css. */
:root {
    --brand-light: #F2DED2;
    --brand-main: #C48664;
    --brand-dark: #955036;
    --charcoal-light: #716A64;
    --charcoal-main: #34302D;
    --charcoal-dark: #1C1A18;
    --surface-white: #FFFFFF;
    --brand-primary: var(--charcoal-dark);
    --brand-primary-light: var(--charcoal-main);
    --brand-primary-dark: var(--charcoal-dark);
    --brand-secondary: var(--brand-main);
    --brand-secondary-light: var(--brand-light);
    --brand-secondary-dark: var(--brand-dark);
    --brand-secondary-soft: var(--brand-light);
    --brand-background: var(--surface-white);
    --brand-surface: #ffffff;
    --brand-surface-soft: var(--brand-light);
    --brand-text: var(--charcoal-main);
    --brand-text-secondary: var(--charcoal-light);
    --brand-border: var(--brand-light);
    --brand-success: #168a5b;
    --brand-danger: #d92d20;
    --brand-warning: #dc7c12;
    --brand-info: #2764c8;
}

html { accent-color: var(--brand-secondary, #c69214); }

body {
    background-color: var(--brand-background, var(--background, #f4f6f9));
    color: var(--brand-text, var(--text, #172033));
}

::selection {
    color: var(--brand-primary-dark, #091426);
    background: var(--brand-secondary-light, #e4b83e);
}

:focus-visible {
    outline-color: var(--brand-secondary, #c69214);
}

.sidebar,
.topbar,
.hero-section,
.page-hero,
.confirmation-hero,
.checkout-hero,
.orders-hero {
    --navy: var(--brand-primary);
    --primary: var(--brand-primary);
    --gold: var(--brand-secondary);
}

.sidebar-link.active,
.sidebar-link:hover,
.btn-primary,
.primary-button,
.submit-button,
.form-submit,
button[type="submit"].btn-primary {
    border-color: var(--brand-dark);
}

.btn-primary,
.primary-button,
.submit-button,
.form-submit,
button[type="submit"].btn-primary {
    background: var(--brand-dark);
    color: var(--surface-white);
}

.btn-primary:hover,
.primary-button:hover,
.submit-button:hover,
.form-submit:hover,
button[type="submit"].btn-primary:hover {
    border-color: var(--charcoal-main);
    background: var(--charcoal-main);
}

.btn-secondary,
.btn-outline,
.secondary-button {
    border-color: var(--brand-dark);
    background: var(--surface-white);
    color: var(--brand-dark);
}

.btn-secondary:hover,
.btn-outline:hover,
.secondary-button:hover {
    background: var(--brand-light);
}

input,
select,
textarea {
    border-color: var(--brand-light);
    background: var(--surface-white);
    color: var(--charcoal-main);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand-dark);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-dark) 18%, transparent);
}

input::placeholder,
textarea::placeholder {
    color: var(--charcoal-light);
    opacity: 1;
}

.card,
.stat-card,
.product-card,
.factory-card,
.form-card,
.table-card {
    border-color: var(--brand-light);
    background: var(--surface-white);
}

.card h1,
.card h2,
.card h3,
.product-card h3,
.product-name,
.product-price {
    color: var(--charcoal-dark);
}

.card p,
.product-card p,
.field-help,
.helper-text {
    color: var(--charcoal-light);
}

table {
    background: var(--surface-white);
}

thead,
th {
    background: var(--brand-light);
    color: var(--charcoal-dark);
}

.nav-link.active,
.profile-nav a.active,
.tabs .active {
    background: var(--brand-light);
    color: var(--brand-dark);
}

button:disabled,
.btn:disabled,
.btn.disabled {
    cursor: not-allowed;
    opacity: 0.58;
    box-shadow: none;
    transform: none;
}

.logo-mark,
.sidebar-brand .brand-mark,
.error-brand-mark {
    overflow: hidden;
    flex: 0 0 auto;
    background-color: transparent;
    border-color: color-mix(in srgb, var(--brand-main) 38%, transparent);
}

/* Let the supplied mark read as a logo, not as an icon inside a framed tile. */
.navbar .logo-mark {
    z-index: 2;
    width: 72px;
    height: 72px;
    margin-block: -8px;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
}

.navbar .logo {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.navbar .logo-name {
    display: none;
}

.navbar .logo-text {
    display: block;
    line-height: 1;
    text-align: center;
}

.navbar .logo-tagline {
    display: block;
    margin-top: 0;
    color: var(--charcoal-light);
    font-size: 0.58rem;
    white-space: nowrap;
}

.mobile-menu .logo-mark,
.mobile-navbar .logo-mark {
    width: 60px;
    height: 60px;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 560px) {
    .navbar .logo-mark {
        width: 62px;
        height: 62px;
        margin-block: -5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
}
