/* Bramer Legal responsive theme */

:root {
    --ink: #111827;
    --muted: #5b6472;
    --paper: #ffffff;
    --soft: #f4f6f8;
    --line: #d7dde5;
    --navy: #243a5e;
    --navy-dark: #101827;
    --gold: #c7a15a;
    --shadow: 0 18px 50px rgba(10, 18, 32, 0.16);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-width: 0;
    background: var(--soft);
    color: var(--ink);
    font-family: "Source Sans 3", Arial, sans-serif;
    line-height: 1.6;
}

p {
    color: var(--ink);
    margin: 0 0 1rem;
    font-size: 1rem;
}

a {
    color: var(--navy);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover,
a:focus {
    color: #000;
}

img {
    border: 0;
    display: block;
    max-width: 100%;
    height: auto;
}

.clear {
    clear: both;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

#Header {
    position: relative;
    width: 100%;
    min-height: 620px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(7, 12, 22, 0.86), rgba(17, 31, 52, 0.68) 52%, rgba(7, 12, 22, 0.36)),
        url(../img/bg_header.jpg) center top / cover no-repeat,
        #000;
}

#Header.pageHeader {
    min-height: 260px;
}

.hero-shell {
    position: relative;
    display: flex;
    min-height: inherit;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px 0 48px;
}

#Logo {
    width: fit-content;
    max-width: 100%;
    font-family: "Libre Baskerville", Georgia, serif;
}

#Logo p {
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

#Logo .logo {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.75);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.05;
}

#Logo .small {
    font-size: 1rem;
    font-weight: 400;
}

#Logo .tagline {
    margin-top: 8px;
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
}

#Info {
    position: absolute;
    top: 36px;
    right: 0;
    display: flex;
    max-width: 620px;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.96rem;
    text-align: right;
}

#Info a {
    color: #fff;
    text-decoration: none;
}

#Info .phone-link {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.site-search {
    display: flex;
    width: min(320px, 100%);
    justify-content: flex-end;
    gap: 8px;
}

.site-search input {
    min-width: 0;
    flex: 1;
}

.hero-copy {
    max-width: 700px;
    padding: 120px 0 18px;
}

.hero-copy .eyebrow {
    margin-bottom: 14px;
    color: #f0d89c;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 780px;
    color: #fff;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 3rem;
    line-height: 1.12;
    text-wrap: balance;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button-link,
.search_btn,
.button,
.btn,
input[type=submit] {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 4px;
    background: var(--navy);
    color: #fff;
    cursor: pointer;
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    padding: 11px 18px;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-link.primary,
.search_btn:hover,
.button:hover,
.btn:hover,
input[type=submit]:hover {
    background: var(--gold);
    color: #101827;
}

.button-link.secondary {
    border-color: rgba(255, 255, 255, 0.56);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.button-link.secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

input[type=text],
input[type=email],
input[type=tel],
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    padding: 10px 12px;
}

textarea {
    resize: vertical;
}

#Menu {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(10, 16, 27, 0.98);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

#Menu .menu-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#Menu .menu-button {
    display: none;
    width: min(1120px, calc(100% - 32px));
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

#Menu .menu-button::after {
    content: "+";
    font-size: 1.45rem;
    line-height: 1;
}

#Menu .menu-list {
    display: flex;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    list-style: none;
}

#Menu li {
    position: relative;
    flex: 1;
    list-style: none;
}

#Menu a {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    padding: 0 18px;
}

#Menu li:hover > a,
#Menu a:focus {
    background: var(--navy);
}

#Menu ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 260px;
    background: #111827;
    box-shadow: var(--shadow);
}

#Menu li:hover > ul,
#Menu li:focus-within > ul {
    display: block;
}

#Menu ul ul li {
    width: 100%;
}

#Menu ul ul a {
    min-height: 44px;
    justify-content: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

#Slideshow {
    width: 100%;
    margin-top: -64px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: #000;
    box-shadow: var(--shadow);
}

#Slideshow .slides {
    width: 100%;
    aspect-ratio: 16 / 6;
}

#Slideshow .slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#Content {
    min-height: 500px;
    background: var(--paper);
    padding: 40px 0 54px;
}

#Content.home {
    padding-top: 0;
}

#Content .homeBigwords {
    margin: 0 0 30px;
    padding: 34px 0 24px;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.65rem;
    font-style: italic;
    line-height: 1.45;
    text-align: center;
}

#Content .textbox {
    width: min(680px, 100%);
}

#Content .textbox.page {
    width: 100%;
    max-width: 760px;
}

#Content .textbox p,
#Content .textbox li {
    color: #202938;
    font-size: 1.04rem;
    line-height: 1.75;
}

#Content .textbox ul,
#Content .textbox ol {
    margin: 0 0 1rem 1.35rem;
}

#Content h2,
#Content h3 {
    color: var(--navy-dark);
    font-family: "Libre Baskerville", Georgia, serif;
    line-height: 1.25;
}

#Content h2 {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 1.75rem;
}

#Content h3 {
    margin: 24px 0 10px;
    font-size: 1.25rem;
}

#Content.contact h3 {
    margin-top: 20px;
    font-size: 1.15rem;
}

#Content.home .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px 44px;
    align-items: start;
}

#Content.home .homeBigwords,
#Content.home .practicebox {
    grid-column: 1 / -1;
}

#Content.home .textbox {
    grid-column: 1;
    grid-row: 2;
}

.home-portrait {
    grid-column: 2;
    grid-row: 2;
    overflow: hidden;
    border-radius: 4px;
    background: var(--soft);
    box-shadow: var(--shadow);
}

.home-portrait img {
    width: 100%;
    height: auto;
}

#Content.home .ctabox {
    width: 100%;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #eef2f6;
    padding: 22px;
}

#Content .ctabox .cta {
    width: calc((100% - 40px) / 3);
    margin-right: 20px;
    float: left;
}

#Content .ctabox .cta3 {
    margin-right: 0;
}

#Content .ctabox img {
    box-shadow: var(--shadow);
}

#Content .ctabox .cta p {
    margin: 8px 0;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
}

#Content > .container:not(.footer-grid) {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 38px;
    align-items: start;
}

#Content.home > .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px 44px;
    align-items: start;
}

#Content .sideMenu {
    width: 100%;
}

#Content .sidePractice,
#Content .sideContact {
    width: 100%;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(10, 18, 32, 0.08);
    padding: 20px;
}

#Content .sideMenu h2,
#Content .sideContact h2 {
    margin-bottom: 14px;
    padding-bottom: 10px;
    font-size: 1.15rem;
    text-align: left;
}

#Content .sideMenu ul {
    margin: 0;
    list-style: none;
}

#Content .sideMenu ul li {
    margin: 0;
}

#Content .sideMenu ul li + li {
    border-top: 1px solid var(--line);
}

#Content .sideMenu ul li a {
    display: block;
    color: var(--ink);
    font-size: 0.98rem;
    font-weight: 600;
    padding: 10px 0;
    text-decoration: none;
}

#Content .sideMenu ul li a:hover,
#Content .sideMenu ul li a:focus {
    color: var(--navy);
}

#Content .sideContact form input,
#Content .sideContact form textarea {
    margin: 0 0 10px;
}

#Content .sideContact .successForm {
    text-align: center;
}

#Content p.contactInfo {
    margin-bottom: 30px;
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 700;
}

#Content .textbox table {
    width: 100%;
    margin: 20px 0;
    border: 1px solid var(--line);
    border-collapse: collapse;
}

#Content .textbox table th,
#Content .textbox table td {
    border-top: 1px solid var(--line);
    padding: 8px;
    vertical-align: top;
}

#Content .textbox table th {
    text-align: right;
}

#Footer {
    background: #080d16;
    padding: 34px 0;
}

#Footer .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

#Footer .footInfoR {
    text-align: right;
}

#Footer p,
#Footer p a {
    color: #fff;
}

#Footer p {
    font-size: 0.95rem;
}

#Footer p span {
    font-size: 1.1rem;
    font-weight: 700;
}

#Footer .disclaimer {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 22px;
}

#Footer .disclaimer p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    text-align: center;
}

@media (max-width: 900px) {
    .container {
        width: min(100% - 24px, 720px);
    }

    #Header,
    #Header.pageHeader {
        min-height: auto;
    }

    .hero-shell {
        padding: 24px 0 34px;
        gap: 26px;
    }

    #Info {
        position: static;
        justify-content: flex-start;
        text-align: left;
    }

    .hero-copy {
        padding: 28px 0 8px;
    }

    .hero-copy h1 {
        font-size: 2.25rem;
    }

    #Menu .menu-button {
        display: flex;
    }

    #Menu .menu-toggle:checked + .menu-button::after {
        content: "-";
    }

    #Menu .menu-list {
        display: none;
        width: min(100% - 24px, 720px);
        padding-bottom: 12px;
        flex-direction: column;
    }

    #Menu .menu-toggle:checked ~ .menu-list {
        display: flex;
    }

    #Menu li {
        width: 100%;
        flex: none;
    }

    #Menu a {
        min-height: 46px;
        justify-content: flex-start;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 0 10px;
    }

    #Menu ul ul {
        position: static;
        display: block;
        min-width: 0;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.04);
    }

    #Menu ul ul a {
        padding-left: 26px;
    }

    #Slideshow {
        margin-top: 0;
    }

    #Slideshow .slides {
        aspect-ratio: 16 / 9;
    }

    #Content,
    #Content.home {
        padding: 30px 0 42px;
    }

    #Content > .container:not(.footer-grid),
    #Content.home .container {
        display: block;
    }

    #Content.home .container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }

    #Content.home .homeBigwords {
        grid-row: 1;
    }

    #Content.home .textbox {
        grid-column: 1;
        grid-row: 2;
    }

    #Content.home .home-portrait {
        grid-column: 1;
        grid-row: 3;
    }

    #Content .sideMenu {
        margin-bottom: 26px;
    }

    #Content .textbox,
    #Content .textbox.page {
        max-width: none;
    }

    .home-portrait {
        max-width: 320px;
        margin: 0 auto 24px;
    }

    #Footer .footer-grid {
        grid-template-columns: 1fr;
    }

    #Footer .footInfoR {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .container {
        width: calc(100% - 20px);
    }

    #Logo .logo {
        font-size: 1.75rem;
    }

    #Logo .small {
        font-size: 0.9rem;
    }

    .hero-copy h1 {
        font-size: 1.85rem;
    }

    .hero-copy .eyebrow {
        font-size: 0.8rem;
    }

    #Info {
        display: block;
    }

    #Info > * {
        display: block;
        margin-bottom: 8px;
    }

    .site-search {
        width: 100%;
    }

    .hero-actions {
        display: grid;
    }

    #Content .homeBigwords {
        font-size: 1.3rem;
        text-align: left;
    }

    #Content h2 {
        font-size: 1.45rem;
    }
}
