/*
Theme Name: Dell, Moser, Lane & Loughney
Theme URI: https://dellmoser.com/
Description: Child theme of protaxalliance, customized for Dell, Moser, Lane & Loughney.
Author: Dell, Moser migration
Template: protaxalliance
Version: 1.0.7
Text Domain: dellmoser-child
*/

/* ===== Palette (extracted from header1.jpg logo) ===== */
:root {
    --dml-navy: #1a3380;         /* DELL, MOSER, LANE & LOUGHNEY heading text */
    --dml-navy-dark: #0f2057;
    --dml-navy-bright: #09259e;  /* interactive blue */
    --dml-slate: #ac9e8f;        /* logo gold — replaces the old periwinkle */
    --dml-slate-light: #cfc5b8;  /* lighter gold tint */
    --dml-gold: #ac9e8f;         /* & L ampersand + "Attorneys At Law" */
    --dml-gold-dark: #8f8274;
    --dml-taupe: #baafa0;        /* warm silver accent */
    --dml-cream: #f5f1eb;
    --dml-silver: #e6e2dd;

    /* Override the parent protaxalliance theme's --blue HSL variables so every
       existing reference to hsl(var(--blue)) picks up the logo gold instead of
       the breakaway cyan (#0F9BD7 / hsl(198, 87%, 45%)). */
    --blue-h: 31;
    --blue-s: 19%;
    --blue-l: 62%;
    --blue: var(--blue-h), var(--blue-s), var(--blue-l);

    /* Keep the "dark blue" (used for hover states) as a darker shade of the
       same gold so transitions stay in the same family. */
    --dark-blue-h: 32;
    --dark-blue-s: 14%;
    --dark-blue-l: 51%;
    --dark-blue: var(--dark-blue-h), var(--dark-blue-s), var(--dark-blue-l);
}

/* ===== Override parent theme's hardcoded light-blue hex values ===== */
.light-blue,
.grey-bg .check-list { color: var(--dml-gold) !important; }
.grey-bg .check-list svg,
.number-section span.number { color: var(--dml-navy) !important; background-color: var(--dml-navy) !important; }
.social-media a:hover { background: var(--dml-gold) !important; }

/* Hero buttons use `.btn-blue` with direct `#0e9ad6` fills in some places */
.btn.btn-blue,
a.btn.btn-blue {
    background-color: var(--dml-navy) !important;
    border-color: var(--dml-navy) !important;
    color: #ffffff !important;
}
.btn.btn-blue:hover,
a.btn.btn-blue:hover {
    background-color: var(--dml-gold) !important;
    border-color: var(--dml-gold) !important;
}

/* Slider arrows use the light blue */
.slider-arrow { color: var(--dml-gold) !important; }
.slider-arrow:hover { color: var(--dml-gold-dark) !important; }

/* Parent theme's `.gradient` utility class goes navy→cyan by default. Swap to navy→gold. */
.gradient {
    background: -webkit-linear-gradient(0deg, var(--dml-navy) 0%, var(--dml-gold) 100%) !important;
    background: -moz-linear-gradient(0deg, var(--dml-navy) 0%, var(--dml-gold) 100%) !important;
    background: linear-gradient(0deg, var(--dml-navy) 0%, var(--dml-gold) 100%) !important;
}

/* Remove the parent theme's decorative gradient strip behind the home hero slideshow. */
.hero-section figure::after {
    display: none !important;
}

/* ===== Site header ===== */
header.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--dml-silver);
}

header.site-header .site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

header.site-header .site-branding {
    text-decoration: none;
    color: var(--dml-navy);
    display: block;
    flex-shrink: 0;
    line-height: 0;
}

header.site-header .site-logo {
    display: block;
    max-width: 380px;
    height: auto;
}

/* Fallback text branding (when no logo attachment) */
header.site-header .firm-name {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--dml-navy);
    display: block;
}

header.site-header .firm-suffix {
    font-weight: 400;
    color: var(--dml-gold);
}

header.site-header .firm-tagline {
    font-size: 0.8rem;
    color: var(--dml-gold);
    display: block;
    margin-top: 2px;
}

/* ===== Hamburger toggle (mobile only) ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--dml-navy);
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dml-navy);
    margin: 0 auto;
    transition: all 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Primary nav (desktop) ===== */
header nav > ul,
header nav ul.menu {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

header nav ul li {
    position: relative;
    list-style: none;
}

header nav ul li a {
    color: var(--dml-navy);
    font-weight: 600;
    text-decoration: none;
    padding: 10px 12px;
    display: block;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

header nav ul li a:hover {
    color: var(--dml-gold);
}

/* Reset parent theme's absolute-positioned `::after` underline pseudo;
   put our caret inline after the label text. Using CSS unicode escape (\25BE
   = ▾) so the file encoding doesn't matter. */
header nav ul li.menu-item-has-children > a::after {
    content: " \25BE";
    font-size: 10px;
    position: static !important;
    display: inline-block;
    margin-left: 6px;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    transform: none !important;
    left: auto !important;
    bottom: auto !important;
    color: var(--dml-slate);
}

/* Submenus: vertical stack, hidden until hover.
   Parent theme has `nav ul { display:flex !important }` at min-width:768px —
   must use !important to beat that default-visible state. */
header nav ul li.menu-item-has-children > ul,
header nav ul li .sub-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid var(--dml-silver);
    min-width: 280px;
    max-width: 360px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 4px 12px rgba(26, 51, 128, 0.15);
    z-index: 1000;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
}

header nav ul li.menu-item-has-children:hover > ul,
header nav ul li.menu-item-has-children:focus-within > ul {
    display: flex !important;
}

header nav ul li.menu-item-has-children > ul li {
    width: 100%;
}

header nav ul li.menu-item-has-children > ul li a {
    padding: 10px 18px;
    text-transform: none;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0;
    white-space: normal;
    line-height: 1.35;
    color: var(--dml-navy);
}

header nav ul li.menu-item-has-children > ul li a:hover {
    background: var(--dml-cream);
    color: var(--dml-navy-dark);
}

/* Current menu item */
header nav ul li.current-menu-item > a,
header nav ul li.current-page-ancestor > a {
    color: var(--dml-gold);
}

/* ===== Mobile (< 900px) ===== */
@media (max-width: 899px) {
    header.site-header .site-header-inner {
        position: relative;
        flex-wrap: wrap;
    }

    header.site-header .site-logo {
        max-width: 220px;
    }

    .nav-toggle {
        display: flex;
    }

    header nav.primary-nav {
        display: none;
        flex-basis: 100%;
        order: 3;
        background: var(--dml-navy);
        border-top: 1px solid var(--dml-navy-dark);
        margin-top: 12px;
        padding: 0;
    }

    header nav.primary-nav.is-open {
        display: block;
    }

    header nav.primary-nav > ul,
    header nav.primary-nav ul.menu {
        display: block !important;
        flex-direction: column;
        gap: 0;
        padding: 0;
        background: var(--dml-navy);
    }

    header nav.primary-nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        background: var(--dml-navy);
    }

    header nav.primary-nav ul li:last-child {
        border-bottom: none;
    }

    header nav.primary-nav ul li a {
        padding: 16px 24px;
        white-space: normal;
        color: #ffffff !important;
        background-color: var(--dml-navy) !important;
        font-weight: 600;
        border-bottom: none !important;
    }

    header nav.primary-nav ul li a:hover,
    header nav.primary-nav ul li a:focus {
        background: var(--dml-navy-bright);
        color: #ffffff !important;
    }

    header nav.primary-nav ul li.current-menu-item > a,
    header nav.primary-nav ul li.current-page-ancestor > a {
        color: var(--dml-slate) !important;
    }

    /* Mobile submenus: inline, darker background */
    header nav.primary-nav ul li.menu-item-has-children > ul,
    header nav.primary-nav ul li .sub-menu {
        position: static !important;
        display: none !important;
        box-shadow: none;
        border: none;
        background: var(--dml-navy-dark);
        max-width: 100%;
        padding: 0;
    }

    header nav.primary-nav ul li.menu-item-has-children.is-expanded > ul {
        display: block !important;
    }

    header nav.primary-nav ul li.menu-item-has-children > ul li {
        background: var(--dml-navy-dark);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    header nav.primary-nav ul li.menu-item-has-children > ul li a {
        padding: 12px 24px 12px 44px;
        font-size: 13px;
        text-transform: none;
        font-weight: 400;
        color: var(--dml-slate-light) !important;
        background-color: var(--dml-navy-dark) !important;
    }

    header nav.primary-nav ul li.menu-item-has-children > ul li a:hover {
        background-color: var(--dml-navy-bright) !important;
        color: #ffffff !important;
    }

    header nav.primary-nav ul li.menu-item-has-children > a::after {
        float: right;
        margin-left: 10px;
        color: var(--dml-slate) !important;
    }
}

/* ===== Page headings + body copy ===== */
h1, h2, h3, h4 { color: var(--dml-navy); }

/* H1 — big, tight, confident */
.panel-layout h1,
.so-widget-sow-headline h1.sow-headline {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--dml-navy);
    margin: 0 0 0.5em 0;
}

/* H2 — section intro, left gold accent bar */
.panel-layout h2,
.so-widget-sow-headline h2.sow-headline {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--dml-navy);
    margin: 1.75em 0 0.75em 0;
    padding: 4px 0 4px 18px;
    border-left: 5px solid var(--dml-gold);
}

/* H3 — card/subsection label, gold underline + small uppercase tracking */
.panel-layout h3,
.so-widget-sow-headline h3.sow-headline,
.so-widget h3.widget-title,
.so-widget h3.sow-headline {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.3;
    color: var(--dml-navy);
    margin: 1.5em 0 0.85em 0;
    padding: 0 0 10px 0;
    border-bottom: 2px solid var(--dml-gold);
    position: relative;
    display: block;
}

.panel-layout h3::before,
.so-widget h3.widget-title::before {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: var(--dml-navy);
    position: absolute;
    left: 0;
    bottom: -2px;
}

/* H4 — small caps, tightly tracked */
.panel-layout h4 {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dml-gold-dark);
    margin: 1.25em 0 0.5em 0;
    padding: 0;
    border: none;
}

/* Editor widget "Title" field (the widget's own title, rendered above content) */
.so-widget-sow-editor .widget-title,
.siteorigin-widget-tinymce .widget-title,
.panel-widget-style > .widget-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--dml-navy);
    margin: 0 0 14px 0;
    padding: 0 0 8px 0;
    border-bottom: 2px solid var(--dml-gold);
    display: inline-block;
    min-width: 180px;
}

/* Paragraphs inside panels get comfortable rhythm */
.panel-layout p {
    color: #2d3748;
    line-height: 1.65;
    font-size: 15px;
    margin: 0 0 1em 0;
}

.panel-layout ul {
    padding-left: 1.25em;
    margin: 0.5em 0 1em 0;
}

.panel-layout ul li {
    color: #2d3748;
    line-height: 1.55;
    font-size: 14.5px;
    margin-bottom: 4px;
}

/* Features widget titles (per-feature heading) */
.sow-features-feature .sow-features-title {
    color: var(--dml-navy) !important;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 10px !important;
}

.sow-features-feature .sow-features-text {
    color: #4a5568 !important;
    font-size: 14px;
    line-height: 1.55;
}

.single-attorney .panel-grid,
.page .panel-grid { margin-bottom: 24px; }

.single-attorney .panel-grid-cell:first-child img {
    max-width: 220px;
    border-radius: 4px;
    border: 1px solid var(--dml-taupe);
}

/* ===== Buttons / CTAs ===== */
.panel-layout a.sow-button,
.panel-layout .sow-button-container a {
    background-color: var(--dml-navy) !important;
    color: #ffffff !important;
}

.panel-layout a.sow-button:hover,
.panel-layout .sow-button-container a:hover {
    background-color: var(--dml-navy-bright) !important;
}

/* ===== Footer ===== */
footer.site-footer {
    background: var(--dml-navy) !important;
    color: #ffffff;
    padding: 48px 24px 0;
    margin-top: 60px;
    font-size: 13px;
    line-height: 1.55;
}

footer.site-footer .site-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

footer.site-footer .footer-col {
    min-width: 0;
}

footer.site-footer h3 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 14px 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid var(--dml-gold);
}

footer.site-footer p {
    color: var(--dml-slate-light);
    margin: 0 0 10px 0;
    font-size: 13px;
    line-height: 1.55;
}

footer.site-footer p strong {
    color: #ffffff;
    font-weight: 600;
}

footer.site-footer a {
    color: #ffffff;
    text-decoration: none;
}

footer.site-footer a:hover {
    color: var(--dml-slate);
    text-decoration: underline;
}

footer.site-footer .footer-memberships {
    color: var(--dml-taupe);
    font-size: 12px;
    letter-spacing: 0.02em;
}

/* Footer Quick Links — simple vertical list */
footer.site-footer .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

footer.site-footer .footer-menu li {
    display: block;
    padding: 0;
    margin: 0 0 6px 0;
    border: none;
    background: transparent;
    width: auto;
}

footer.site-footer .footer-menu li::before,
footer.site-footer .footer-menu li::after {
    content: none;
}

footer.site-footer .footer-menu a {
    color: var(--dml-slate-light);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    display: inline-block;
    padding: 2px 0;
    font-weight: 400;
}

footer.site-footer .footer-menu a:hover {
    color: #ffffff;
    text-decoration: underline;
}

footer.site-footer .site-footer-colophon {
    max-width: 1400px;
    margin: 32px auto 0;
    padding: 14px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    color: var(--dml-taupe);
    font-size: 11px;
    letter-spacing: 0.03em;
}

/* ===== Accreditations strip — white band above footer with member logos ===== */
.accreditations-strip {
    background: #ffffff;
    text-align: center;
    padding: 28px 20px;
}

.accreditations-strip img {
    display: inline-block;
    width: 100%;
    max-width: 640px;
    height: auto;
}

/* Hide parent-theme breakaway artifacts that sometimes leak into pages */
.services-nav img,
.dropdownMenu { display: none !important; }

/* ===== Service-area SVG icons — sit inside the tan circular badge ===== */
.service .service-icon img[src$=".svg"] {
    width: 55%;
    height: 55%;
    object-fit: contain;
    display: block;
}

/* ===== Service cards — clickable icon/title + Learn More CTA ===== */
.service { display: flex; flex-direction: column; }

.service a.service-icon {
    display: inline-grid;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service a.service-icon:hover,
.service a.service-icon:focus {
    transform: translateY(-3px);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(26, 51, 128, 0.18);
}

.service h3 a {
    color: inherit;
    text-decoration: none;
}
.service h3 a:hover,
.service h3 a:focus {
    color: var(--dml-navy-bright);
    text-decoration: none;
}

/* Push the CTA to the bottom so all four cards align */
.service .service-detail { flex-grow: 1; }

.service .service-cta {
    align-self: center;
    margin: 18px auto 0 auto;
    min-width: 14rem;
    letter-spacing: 0.04em;
}

/* ===== Hero slider — slide copy (h1 heading, h4 description) ===== */
.hero-section .hero-content h1 {
    color: var(--dml-navy) !important;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 0.6em 0;
}

.hero-section .hero-content h4 {
    color: #1a202c !important;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.45;
    margin: 0;
}

@media (max-width: 991px) {
    .hero-section .hero-content h1 { font-size: 2rem; }
    .hero-section .hero-content h4 { font-size: 1.35rem; }
}

@media (max-width: 600px) {
    .hero-section .hero-content h1 { font-size: 1.7rem; }
    .hero-section .hero-content h4 { font-size: 1.2rem; }
}

/* ===== Testimonial — keep figure at the legacy 400px width so the new
   front-doors.png (960px native) renders at the same size as the old
   building1.jpg, instead of expanding and crowding the text column. ===== */
.testimonial figure {
    width: 400px;
    max-width: 40%;
    flex: 0 0 auto;
}
.testimonial figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 767px) {
    .testimonial figure { width: 30rem; max-width: 100%; }
}

/* ===== Hero slider — constrain image height ===== */
.hero-section .hero-slider figure {
    margin: 0;
    max-height: 420px;
    overflow: hidden;
    border-radius: 4px;
}

.hero-section .hero-slider figure img {
    width: 100%;
    max-height: 420px;
    height: 420px;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .hero-section .hero-slider figure,
    .hero-section .hero-slider figure img {
        max-height: 280px;
        height: 280px;
    }
}

@media (max-width: 600px) {
    .hero-section .hero-slider figure,
    .hero-section .hero-slider figure img {
        max-height: 200px;
        height: 200px;
    }
}

/* ===== Attorney archive ===== */
.attorney-archive .archive-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.attorney-archive .archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.attorney-archive .archive-header h1 {
    color: var(--dml-navy);
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.attorney-archive .archive-intro {
    max-width: 680px;
    margin: 0 auto;
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
}

.attorney-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.attorney-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 24px 20px;
    background: #ffffff;
    border: 1px solid var(--dml-silver);
    border-radius: 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.attorney-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(26, 51, 128, 0.12);
    border-color: var(--dml-slate);
    text-decoration: none;
}

.attorney-card .attorney-thumb {
    display: block;
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 2px solid var(--dml-taupe);
    margin-top: 16px;
    margin-bottom: 16px;
    background: var(--dml-cream);
}


.attorney-card .attorney-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.attorney-card .attorney-name {
    color: var(--dml-navy) !important;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    border: none;
    padding: 0;
    letter-spacing: 0;
}

.attorney-card .attorney-role {
    color: var(--dml-gold);
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 767px) {
    .attorney-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
    .attorney-card {
        padding: 18px 14px;
    }
    .attorney-card .attorney-thumb {
        max-width: 160px;
    }
}
