/*
Theme Name: Dewey Screwem
Theme URI: https://www.deweyscrewem.com/
Author: Feradel, Inc.
Author URI: https://www.feradel.com/
Description: A polished fictional law-firm demonstration theme for showcasing Feradel products.
Version: 1.2.5
Requires at least: 6.6
Tested up to: 7.0.2
Requires PHP: 8.1
Text Domain: dewey-screwem
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --ds-bg-dark: #171717;
    --ds-bg-darker: #101010;
    --ds-bg-light: #f5f2ec;
    --ds-bg-white: #fff;
    --ds-text-dark: #1d1d1d;
    --ds-text-light: #f6f1e8;
    --ds-text-muted: #6f6a63;
    --ds-accent: #b85d35;
    --ds-accent-dark: #8d4026;
    --ds-gold: #cda56a;
    --ds-green: #0d402e;
    --ds-border: rgba(0, 0, 0, .12);
    --ds-shadow: 0 18px 50px rgba(0, 0, 0, .12);
    --ds-radius: 4px;
    --ds-content-width: 1200px;
    --ds-narrow-width: 820px;
    --fchat-header-background-color: #b85d35;
    --fchat-header-text-color: #fff;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--ds-bg-white);
    color: var(--ds-text-dark);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body.admin-bar .ds-site-header {
    top: 32px;
}

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

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

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
    line-height: 1.08;
    text-wrap: balance;
}

p {
    margin-top: 0;
}

:focus-visible {
    outline: 3px solid var(--ds-gold);
    outline-offset: 4px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    z-index: 100000;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 12px 18px;
    clip: auto;
    background: #fff;
    color: #111;
    font-weight: 700;
}

.ds-container {
    width: min(calc(100% - 48px), var(--ds-content-width));
    margin-inline: auto;
}

.ds-container--narrow {
    width: min(calc(100% - 48px), var(--ds-narrow-width));
}

.ds-button {
    display: inline-flex;
    min-height: 48px;
    padding: 12px 22px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: var(--ds-radius);
    background: var(--ds-accent);
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.ds-button:hover {
    background: var(--ds-accent-dark);
    transform: translateY(-2px);
}

.ds-button--outline {
    border-color: rgba(255, 255, 255, .55);
    background: transparent;
    color: #fff;
}

.ds-button--outline:hover {
    border-color: #fff;
    background: #fff;
    color: var(--ds-bg-darker);
}

.ds-button--dark {
    background: var(--ds-bg-darker);
}

.ds-button--dark:hover {
    background: #2b2b2b;
}

.ds-button--disabled,
.ds-button[aria-disabled="true"] {
    opacity: .58;
    cursor: not-allowed;
    transform: none;
}

.ds-kicker {
    display: flex;
    margin: 0 0 15px;
    align-items: center;
    gap: 11px;
    color: var(--ds-accent);
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .18em;
    line-height: 1.3;
    text-transform: uppercase;
}

.ds-kicker::before {
    width: 34px;
    height: 1px;
    background: currentColor;
    content: "";
}

.ds-kicker--center {
    justify-content: center;
}

.ds-kicker--center::after {
    width: 34px;
    height: 1px;
    background: currentColor;
    content: "";
}

.ds-section-heading {
    max-width: 760px;
    margin: 0 auto 46px;
    text-align: center;
}

.ds-section-heading h2 {
    margin-bottom: 16px;
    font-size: clamp(2.25rem, 5vw, 4.2rem);
}

.ds-section-heading p {
    color: var(--ds-text-muted);
}

.ds-prose {
    width: min(calc(100% - 48px), 780px);
    margin: 80px auto;
}

.ds-prose h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

.ds-prose a {
    color: var(--ds-accent-dark);
}

.ds-utility {
    position: relative;
    z-index: 1002;
    min-height: 34px;
    background: var(--ds-bg-darker);
    color: rgba(255, 255, 255, .72);
    font-size: .7rem;
    font-weight: 650;
    letter-spacing: .05em;
}

.ds-utility__inner,
.ds-utility__contact {
    display: flex;
    align-items: center;
}

.ds-utility__inner {
    min-height: 34px;
    justify-content: space-between;
}

.ds-utility__contact {
    gap: 22px;
}

.ds-utility a {
    text-decoration: none;
}

.ds-utility a:hover {
    color: #fff;
}

.ds-client-login {
    position: relative;
}

.ds-client-login__toggle {
    display: flex;
    padding: 6px 0 6px 18px;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: inherit;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ds-client-login__menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    right: 0;
    width: 230px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: #191919;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .35);
}

.ds-client-login__menu a,
.ds-client-login__menu span {
    display: block;
    padding: 10px 12px;
}

.ds-client-login__menu span {
    opacity: .55;
}

.ds-site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    height: 76px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background: rgba(19, 18, 17, .96);
    color: #fff;
    transition: box-shadow .2s ease, background-color .2s ease;
}

.ds-site-header.is-scrolled {
    background: rgba(16, 16, 16, .98);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.ds-site-header__inner {
    display: grid;
    height: 100%;
    align-items: center;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
}

.ds-brand {
    display: inline-flex;
    width: fit-content;
    max-width: 230px;
    padding: 7px 13px;
    align-items: center;
    border-radius: 2px;
    background: var(--ds-bg-light);
}

.ds-brand__image {
    display: block;
    width: auto;
    max-width: 190px;
    height: 34px;
    object-fit: contain;
}

.ds-primary-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(15px, 2vw, 28px);
}

.ds-primary-nav a {
    position: relative;
    padding: 28px 0 25px;
    color: rgba(255, 255, 255, .8);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
}

.ds-primary-nav a::after {
    position: absolute;
    right: 0;
    bottom: 20px;
    left: 0;
    height: 2px;
    background: var(--ds-accent);
    content: "";
    opacity: 0;
    transform: scaleX(.4);
    transition: opacity .2s ease, transform .2s ease;
}

.ds-primary-nav a:hover,
.ds-primary-nav a:focus-visible {
    color: #fff;
}

.ds-primary-nav a:hover::after,
.ds-primary-nav a:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.ds-site-header__cta {
    min-height: 42px;
    padding: 10px 16px;
    white-space: nowrap;
}

.ds-menu-toggle {
    display: none;
}

.ds-header-marker {
    position: absolute;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.ds-footer {
    padding: 78px 0 0;
    background: var(--ds-bg-darker);
    color: rgba(255, 255, 255, .68);
    font-size: .88rem;
}

.ds-footer__grid {
    display: grid;
    padding-bottom: 54px;
    grid-template-columns: 1.5fr .8fr .9fr 1fr;
    gap: 52px;
}

.ds-footer h2 {
    margin: 3px 0 20px;
    color: #fff;
    font-family: inherit;
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ds-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ds-footer li + li {
    margin-top: 9px;
}

.ds-footer a {
    text-decoration: none;
}

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

.ds-footer address {
    font-style: normal;
}

.ds-footer__about .ds-brand {
    margin-bottom: 21px;
}

.ds-footer__about p {
    max-width: 340px;
}

.ds-footer__disclosure {
    display: flex;
    padding: 24px 0 28px;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .74rem;
}

.ds-footer__disclosure p:first-child {
    max-width: 800px;
}

@media (max-width: 782px) {
    body.admin-bar .ds-site-header {
        top: 46px;
    }

    .ds-container,
    .ds-container--narrow,
    .ds-prose {
        width: min(calc(100% - 32px), var(--ds-content-width));
    }
}

@media (max-width: 1080px) {
    .ds-site-header__inner {
        gap: 20px;
    }

    .ds-primary-nav {
        gap: 15px;
    }

    .ds-primary-nav a {
        font-size: .63rem;
    }

    .ds-site-header__cta {
        display: none;
    }
}

@media (max-width: 820px) {
    .ds-utility__contact span {
        display: none;
    }

    .ds-site-header__inner {
        display: flex;
        justify-content: space-between;
    }

    .ds-brand__image {
        height: 30px;
    }

    .ds-menu-toggle {
        display: grid;
        width: 46px;
        height: 46px;
        padding: 11px;
        align-content: center;
        gap: 5px;
        border: 1px solid rgba(255, 255, 255, .24);
        background: transparent;
        color: #fff;
        cursor: pointer;
    }

    .ds-menu-toggle > span:not(.screen-reader-text) {
        display: block;
        height: 2px;
        background: currentColor;
        transition: transform .2s ease, opacity .2s ease;
    }

    .ds-menu-toggle[aria-expanded="true"] > span:nth-child(2) {
        transform: translateY(7px) rotate(45deg);
    }

    .ds-menu-toggle[aria-expanded="true"] > span:nth-child(3) {
        opacity: 0;
    }

    .ds-menu-toggle[aria-expanded="true"] > span:nth-child(4) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .ds-primary-nav {
        position: absolute;
        top: 76px;
        right: 0;
        left: 0;
        display: none;
        padding: 15px 24px 25px;
        align-items: stretch;
        background: #151515;
        box-shadow: 0 24px 34px rgba(0, 0, 0, .24);
        flex-direction: column;
        gap: 0;
    }

    .ds-primary-nav.is-open {
        display: flex;
    }

    .ds-primary-nav a {
        padding: 13px 0;
        border-bottom: 1px solid rgba(255, 255, 255, .09);
        font-size: .75rem;
    }

    .ds-primary-nav a::after {
        display: none;
    }

    .ds-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .ds-utility__contact {
        gap: 12px;
    }

    .ds-utility__contact a:nth-child(2) {
        display: none;
    }

    .ds-client-login__toggle {
        padding-left: 8px;
    }

    .ds-footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ds-footer__disclosure {
        display: block;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
