/*
 * Derby City Taproom - Modern Shared Design Layer
 * Load AFTER plugins.css and style.css.
 *
 * This file is intentionally broad enough to improve legacy page content
 * without requiring edits to every individual PHP page.
 */

:root {
    --dct-ink: #171513;
    --dct-charcoal: #24201d;
    --dct-brown: #6f4729;
    --dct-copper: #b97035;
    --dct-gold: #d69d4d;
    --dct-cream: #f7f1e7;
    --dct-paper: #fffdf9;
    --dct-white: #ffffff;
    --dct-muted: #736d67;
    --dct-line: #e4d9cc;
    --dct-green: #304f3c;
    --dct-shadow: 0 22px 55px rgba(38, 28, 20, 0.13);
    --dct-shadow-soft: 0 12px 32px rgba(38, 28, 20, 0.09);
    --dct-radius: 22px;
    --dct-radius-sm: 14px;
    --dct-shell: 1180px;
}

html {
    scroll-behavior: smooth;
}

body.dct-site {
    margin: 0;
    color: var(--dct-ink);
    background: var(--dct-paper);
    font-family: "DM Sans", Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.dct-site *,
.dct-site *::before,
.dct-site *::after {
    box-sizing: border-box;
}

.dct-site img {
    max-width: 100%;
    height: auto;
}

.dct-site a {
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.dct-shell {
    width: min(calc(100% - 40px), var(--dct-shell));
    margin-inline: auto;
}

.dct-skip-link {
    position: fixed;
    z-index: 9999;
    left: 16px;
    top: 14px;
    padding: 10px 14px;
    color: var(--dct-white);
    background: var(--dct-ink);
    border-radius: 8px;
    transform: translateY(-150%);
}

.dct-skip-link:focus {
    transform: translateY(0);
    color: var(--dct-white);
}

/* ---------- Preloader ---------- */

#loading {
    background: var(--dct-ink) !important;
}

.dct-loaded #loading {
    pointer-events: none;
}

/* ---------- Top utility bar ---------- */

.dct-topbar {
    color: rgba(255,255,255,.76);
    background: #0e0d0c;
    font-size: .82rem;
    letter-spacing: .01em;
}

.dct-topbar__inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dct-topbar__links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dct-topbar a {
    color: var(--dct-white);
    font-weight: 700;
    text-decoration: none;
}

.dct-topbar a:hover {
    color: #e8bd79;
}

/* ---------- Shared header ---------- */

.dct-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,253,249,.96);
    border-bottom: 1px solid rgba(228,217,204,.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 5px 22px rgba(38,28,20,.04);
}

.dct-nav {
    min-height: 94px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.dct-brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.dct-brand__logo {
    width: auto;
    height: 84px;
    object-fit: contain;
    transform-origin: left center;
}

.dct-navigation {
    margin-left: auto;
}

.dct-menu,
.dct-submenu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dct-menu {
    display: flex;
    align-items: center;
    gap: 7px;
}

.dct-menu > li {
    position: relative;
}

.dct-nav-link {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
    color: #423c37 !important;
    background: transparent;
    border: 0;
    border-radius: 999px;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: .95rem !important;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
}

.dct-nav-link:hover,
.dct-nav-link:focus-visible,
.dct-nav-link.is-active {
    color: var(--dct-brown) !important;
    background: #f2e8dc;
}

.dct-nav-link svg {
    width: 16px;
    height: 16px;
    transition: transform .18s ease;
}

.dct-submenu-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.dct-nav-link--cta {
    min-height: 48px;
    margin-left: 7px;
    padding-inline: 20px;
    color: var(--dct-white) !important;
    background: var(--dct-brown);
    box-shadow: 0 10px 24px rgba(111,71,41,.21);
}

.dct-nav-link--cta:hover,
.dct-nav-link--cta:focus-visible,
.dct-nav-link--cta.is-active {
    color: var(--dct-white) !important;
    background: #56351f;
    transform: translateY(-1px);
}

.dct-submenu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    width: 330px;
    padding: 10px;
    background: rgba(255,253,249,.99);
    border: 1px solid var(--dct-line);
    border-radius: 18px;
    box-shadow: var(--dct-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.dct-submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}

.dct-has-submenu:hover .dct-submenu,
.dct-has-submenu:focus-within .dct-submenu,
.dct-submenu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dct-submenu li + li {
    margin-top: 3px;
}

.dct-submenu a {
    display: block;
    padding: 13px 14px;
    color: var(--dct-ink) !important;
    border-radius: 12px;
    text-decoration: none !important;
}

.dct-submenu a:hover,
.dct-submenu a:focus-visible,
.dct-submenu a[aria-current="page"] {
    background: var(--dct-cream);
}

.dct-submenu strong,
.dct-submenu span {
    display: block;
}

.dct-submenu strong {
    margin-bottom: 2px;
    font-size: .95rem;
}

.dct-submenu span {
    color: var(--dct-muted);
    font-size: .79rem;
    line-height: 1.4;
}

.dct-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    color: var(--dct-ink);
    background: var(--dct-white);
    border: 1px solid var(--dct-line);
    border-radius: 13px;
    box-shadow: 0 4px 14px rgba(38,28,20,.06);
    cursor: pointer;
}

.dct-menu-toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform .18s ease, opacity .18s ease;
}

.dct-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.dct-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.dct-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Shared typography ---------- */

.dct-site h1,
.dct-site h2,
.dct-site h3,
.dct-site h4,
.dct-site h5,
.dct-site h6 {
    color: var(--dct-ink);
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.1;
}

.dct-site h1 {
    font-size: clamp(2.5rem, 6vw, 5.2rem);
}

.dct-site h2 {
    font-size: clamp(2rem, 4vw, 3.35rem);
}

.dct-site h3 {
    font-size: clamp(1.35rem, 2.3vw, 1.8rem);
}

.dct-site p,
.dct-site li {
    color: var(--dct-muted);
}

.dct-site strong {
    color: inherit;
}

.dct-site hr {
    border: 0;
    border-top: 1px solid var(--dct-line);
}

/* ---------- Modernize common legacy section patterns ---------- */

.dct-site section {
    position: relative;
}

.dct-site .container {
    max-width: var(--dct-shell);
}

/*
 * Many existing pages use utility classes from the old theme.
 * These overrides soften the original template without breaking its grid.
 */
.dct-site .g-bg-primary {
    background-color: var(--dct-ink) !important;
}

.dct-site .g-color-primary {
    color: var(--dct-brown) !important;
}

.dct-site .g-brd-primary {
    border-color: var(--dct-brown) !important;
}

.dct-site .g-bg-secondary {
    background-color: var(--dct-cream) !important;
}

.dct-site .g-bg-gray-light-v5,
.dct-site .g-bg-gray-light-v4 {
    background-color: #f8f4ee !important;
}

/* Old page title / hero areas */
.dct-site .g-bg-img-hero {
    position: relative;
    overflow: hidden;
}

.dct-site .g-bg-img-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(17,16,15,.62), rgba(17,16,15,.16));
}

.dct-site .g-bg-img-hero > * {
    position: relative;
    z-index: 1;
}

.dct-site .g-bg-img-hero h1,
.dct-site .g-bg-img-hero h2,
.dct-site .g-bg-img-hero p {
    color: var(--dct-white);
}

/* ---------- Buttons ---------- */

.dct-site .btn,
.dct-site a.btn,
.dct-site button.btn,
.dct-site .u-btn-primary,
.dct-site .btn-primary {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    color: var(--dct-white) !important;
    background: var(--dct-brown) !important;
    border: 1px solid var(--dct-brown) !important;
    border-radius: 999px !important;
    font-family: "DM Sans", Arial, sans-serif;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(111,71,41,.18);
}

.dct-site .btn:hover,
.dct-site a.btn:hover,
.dct-site button.btn:hover,
.dct-site .u-btn-primary:hover,
.dct-site .btn-primary:hover {
    color: var(--dct-white) !important;
    background: #56351f !important;
    border-color: #56351f !important;
    transform: translateY(-2px);
}

/* ---------- Cards / bordered content ---------- */

.dct-site .u-shadow-v11,
.dct-site .u-shadow-v21,
.dct-site .card {
    border: 1px solid var(--dct-line) !important;
    border-radius: var(--dct-radius) !important;
    box-shadow: var(--dct-shadow-soft) !important;
}

.dct-site .card {
    overflow: hidden;
    background: var(--dct-white);
}

.dct-site .card-body {
    padding: 26px;
}

/* ---------- Images ---------- */

.dct-site .img-fluid,
.dct-site .img-responsive {
    border-radius: var(--dct-radius-sm);
}

/* Keeps logos and social icons from inheriting content-image rounding */
.dct-brand img,
.dct-site img[src*="logo"],
.dct-site img[src*="facebook"],
.dct-site img[src*="instagram"] {
    border-radius: 0 !important;
}

/* ---------- Forms / booking / account pages ---------- */

.dct-site input[type="text"],
.dct-site input[type="email"],
.dct-site input[type="tel"],
.dct-site input[type="password"],
.dct-site input[type="number"],
.dct-site input[type="date"],
.dct-site select,
.dct-site textarea,
.dct-site .form-control {
    min-height: 50px;
    padding: 12px 14px;
    color: var(--dct-ink);
    background: var(--dct-white);
    border: 1px solid #d8cdc0;
    border-radius: 12px !important;
    box-shadow: none;
}

.dct-site textarea,
.dct-site textarea.form-control {
    min-height: 130px;
}

.dct-site input:focus,
.dct-site select:focus,
.dct-site textarea:focus,
.dct-site .form-control:focus {
    outline: none;
    border-color: var(--dct-copper);
    box-shadow: 0 0 0 4px rgba(185,112,53,.13);
}

.dct-site label {
    color: var(--dct-charcoal);
    font-weight: 700;
}

/* ---------- Legacy content links ---------- */

.dct-site main a:not(.btn):not(.dct-brand):not(.dct-nav-link):not(.dct-submenu a):not(.dct-topbar a) {
    color: var(--dct-brown);
    text-decoration-color: rgba(111,71,41,.35);
    text-underline-offset: 3px;
}

.dct-site main a:not(.btn):not(.dct-brand):not(.dct-nav-link):not(.dct-submenu a):not(.dct-topbar a):hover {
    color: #4e301c;
}

/* ---------- Footer compatibility ---------- */

.dct-site footer {
    color: rgba(255,255,255,.72);
    background: #0f0e0d !important;
}

.dct-site footer h1,
.dct-site footer h2,
.dct-site footer h3,
.dct-site footer h4,
.dct-site footer h5,
.dct-site footer p,
.dct-site footer li {
    color: inherit;
}

.dct-site footer a {
    color: var(--dct-white);
}

/* ---------- Helpful utility classes for future pages ---------- */

.dct-hero {
    padding: clamp(72px, 9vw, 118px) 0;
    background:
        radial-gradient(circle at 84% 18%, rgba(214,157,77,.16), transparent 30%),
        linear-gradient(135deg, #171513 0%, #2a211a 100%);
}

.dct-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 60px;
    align-items: center;
}

.dct-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: var(--dct-gold);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.dct-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}

.dct-hero h1,
.dct-hero p {
    color: var(--dct-white);
}

.dct-hero p {
    max-width: 680px;
    color: rgba(255,255,255,.74);
    font-size: 1.08rem;
}

.dct-section {
    padding: clamp(72px, 8vw, 105px) 0;
}

.dct-section--cream {
    background: var(--dct-cream);
}

.dct-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dct-card {
    padding: 28px;
    background: var(--dct-white);
    border: 1px solid var(--dct-line);
    border-radius: var(--dct-radius);
    box-shadow: var(--dct-shadow-soft);
}

.dct-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--dct-shadow);
}

.dct-card p:last-child {
    margin-bottom: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .dct-topbar__inner {
        justify-content: center;
        text-align: center;
    }

    .dct-topbar__links {
        display: none;
    }

    .dct-nav {
        min-height: 82px;
    }

    .dct-brand__logo {
        height: 68px;
    }

    .dct-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .dct-navigation {
        position: absolute;
        left: 14px;
        right: 14px;
        top: calc(100% + 9px);
        display: none;
        margin: 0;
        padding: 12px;
        background: rgba(255,253,249,.99);
        border: 1px solid var(--dct-line);
        border-radius: 18px;
        box-shadow: var(--dct-shadow);
    }

    .dct-navigation.is-open {
        display: block;
    }

    .dct-menu {
        display: block;
    }

    .dct-menu > li + li {
        margin-top: 3px;
    }

    .dct-nav-link {
        width: 100%;
        justify-content: space-between;
        padding-inline: 14px;
        border-radius: 11px;
    }

    .dct-nav-link--cta {
        justify-content: center;
        margin: 8px 0 0;
    }

    .dct-submenu {
        position: static;
        width: auto;
        display: none;
        margin: 4px 0 6px;
        padding: 6px;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f6f0e8;
        border-color: transparent;
    }

    .dct-has-submenu:hover .dct-submenu,
    .dct-has-submenu:focus-within .dct-submenu {
        display: none;
    }

    .dct-submenu.is-open,
    .dct-has-submenu:focus-within .dct-submenu.is-open {
        display: block;
        transform: none;
    }

    .dct-submenu a {
        padding: 11px 12px;
    }

    .dct-hero__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .dct-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .dct-shell {
        width: min(calc(100% - 28px), var(--dct-shell));
    }

    .dct-topbar {
        font-size: .76rem;
    }

    .dct-nav {
        min-height: 76px;
    }

    .dct-brand__logo {
        height: 60px;
        max-width: 180px;
    }

    .dct-site h1 {
        font-size: clamp(2.3rem, 12vw, 3.7rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}


/* =========================================================
   CONTRAST HOTFIX - 2026-08-12
   The production logo artwork is white on transparency, so
   the header needs a dark surface behind it.
   ========================================================= */

.dct-header {
    background: rgba(20, 18, 16, .97);
    border-bottom-color: rgba(255, 255, 255, .10);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
}

.dct-brand__logo {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
}

.dct-nav-link {
    color: rgba(255, 255, 255, .88) !important;
}

.dct-nav-link:hover,
.dct-nav-link:focus-visible,
.dct-nav-link.is-active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, .10);
}

.dct-nav-link--cta {
    color: #171513 !important;
    background: #d69d4d !important;
    border-color: #d69d4d !important;
    box-shadow: 0 10px 24px rgba(214, 157, 77, .20);
}

.dct-nav-link--cta:hover,
.dct-nav-link--cta:focus-visible,
.dct-nav-link--cta.is-active {
    color: #171513 !important;
    background: #e8b76f !important;
    border-color: #e8b76f !important;
}

/* Dropdown remains light for maximum readability. */
.dct-submenu {
    background: rgba(255, 253, 249, .995);
}

.dct-submenu a {
    color: var(--dct-ink) !important;
}

.dct-submenu a:hover,
.dct-submenu a:focus-visible,
.dct-submenu a[aria-current="page"] {
    color: var(--dct-ink) !important;
}

/*
 * Legacy pages contain old "white text" utility classes. When those
 * elements sit on a light background, they disappear. These rules only
 * correct that combination and leave intentional white text on dark
 * hero/footer areas alone.
 */
.dct-site .g-bg-white .g-color-white,
.dct-site .g-bg-secondary .g-color-white,
.dct-site .g-bg-gray-light-v4 .g-color-white,
.dct-site .g-bg-gray-light-v5 .g-color-white,
.dct-site .bg-white .g-color-white,
.dct-site .bg-light .g-color-white {
    color: var(--dct-ink) !important;
}

.dct-site .g-bg-white a.g-color-white,
.dct-site .g-bg-secondary a.g-color-white,
.dct-site .g-bg-gray-light-v4 a.g-color-white,
.dct-site .g-bg-gray-light-v5 a.g-color-white {
    color: var(--dct-brown) !important;
}

/* Keep explicitly dark areas readable. */
.dct-site .g-bg-primary .g-color-white,
.dct-site footer .g-color-white,
.dct-site .dct-hero .g-color-white,
.dct-site .g-bg-img-hero .g-color-white {
    color: #ffffff !important;
}

@media (max-width: 900px) {
    .dct-menu-toggle {
        color: #ffffff;
        background: rgba(255, 255, 255, .08);
        border-color: rgba(255, 255, 255, .18);
        box-shadow: none;
    }

    .dct-navigation {
        background: rgba(20, 18, 16, .99);
        border-color: rgba(255, 255, 255, .12);
    }

    .dct-submenu {
        background: #f6f0e8;
    }

    .dct-submenu a,
    .dct-submenu strong {
        color: var(--dct-ink) !important;
    }
}
