/*!
 * Copyright (c) 2026 Digital Line Center. All rights reserved.
 *
 * DLC design tokens + brand re-mapping of the Fables template colour classes.
 * Edit the variables in :root to re-colour the whole site from one place.
 * Loaded AFTER custom.css so it overrides the template palette.
 */

:root {
    /* Brand: gold / champagne / silver / charcoal */
    --dlc-gold:            #B8862B;  /* metallic gold: borders, fills, icons */
    --dlc-gold-strong:     #94651A;  /* gold for text/buttons on LIGHT bg (AA with white) */
    --dlc-gold-hover:      #7C5313;
    --dlc-champagne:       #E6C987;  /* gold for text/accents on DARK bg */
    --dlc-silver:          #A9ADB3;
    --dlc-silver-light:    #D9DBDE;
    --dlc-charcoal:        #1D1D20;  /* refined black */
    --dlc-charcoal-soft:   #2B2B30;
    --dlc-white:           #FFFFFF;
    --dlc-offwhite:        #F5F4F1;
    --dlc-gray:            #5B5F66;  /* body text */
    --dlc-gray-light:      #9A9EA5;

    /* Semantic */
    --dlc-text:            var(--dlc-gray);
    --dlc-heading:         var(--dlc-charcoal);
    --dlc-border:          var(--dlc-silver-light);
    --dlc-focus:           #1A73E8;
    --dlc-shadow:          0 10px 30px rgba(29, 29, 32, .12);
    --dlc-metal:           linear-gradient(135deg, #8F6216 0%, #E6C987 45%, #B8862B 70%, #D9DBDE 100%);

    /* Motion */
    --dlc-ease:            cubic-bezier(.22, .61, .36, 1);
    --dlc-speed:           .6s;
}

/* ---- Re-map template palette (originals use !important) ---- */
.fables-main-background-color, .fables-main-before a::before, .fables-main-before a::after,
.fables-main-active.active, .fables-main-dots .owl-dot.active span, .fables-main-hover-background-color:hover {
    background-color: var(--dlc-charcoal) !important;
}
.fables-main-text-color { color: var(--dlc-charcoal); }
.fables-main-text-color-link a { color: var(--dlc-charcoal) !important; }
.fables-main-border-color { border-color: var(--dlc-charcoal) !important; }

.fables-second-background-color, .fables-second-before::before, .fables-second-before::after,
.fables-second-hover-background-color:hover, .fables-second-active.active, .fables-second-dots .owl-dot.active span {
    background-color: var(--dlc-gold-strong) !important;
}
.fables-second-text-color { color: var(--dlc-gold-strong); }
.fables-second-border-color { border-color: var(--dlc-gold) !important; }
.fables-second-hover-color:hover, .fables-second-hover-color-link a:hover { color: var(--dlc-gold-hover); }

.fables-forth-text-color { color: var(--dlc-gray); }
.fables-forth-background-color, .fables-forth-before a::before, .fables-forth-after::after { background-color: var(--dlc-gray) !important; }
.fables-fifth-text-color { color: var(--dlc-gray-light); }
.fables-light-gary-background { background-color: var(--dlc-offwhite); }

/* On dark surfaces the gold text switches to champagne for contrast */
.fables-footer-image .fables-second-text-color,
.dlc-dark .fables-second-text-color { color: var(--dlc-champagne); }

/* Gold-on-hover outline buttons */
.fables-second-hover-background-color:hover { color: var(--dlc-white) !important; }

/* ---- Template overlays: navy -> charcoal ---- */
.fables-after-overlay::after { background-color: rgba(29, 29, 32, .8); }
.overlay-lighter:after { background-color: rgba(29, 29, 32, .66); }
.fables-vision-overlay.fables-after-overlay::after { background-color: rgba(29, 29, 32, .97); }
.dlc-hero__copy { position: relative; z-index: 5; }
.dlc-hero__copy .fables-second-text-color { color: var(--dlc-gold-strong); }

/* ---- Accessible focus ---- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--dlc-focus);
    outline-offset: 2px;
}

/* ---- Logo component (replaces the flipping legacy logo) ---- */
.dlc-logo { display: inline-block; line-height: 0; }
.dlc-logo img { display: block; height: auto; width: 100%; }
.dlc-logo--header { width: clamp(130px, 16vw, 190px); }
.dlc-logo--footer { width: clamp(180px, 22vw, 260px); margin-bottom: 1.5rem; }
/* The tagline in the white wordmark is deliberately faint; this is the approved artwork. */
.fables-logo-brand .flip-side { animation: none; }
