/*
Theme Name: DenLegal Theme
Theme URI: https://denlegal.com/
Author: DenLegal
Description: Custom mobile-first WordPress theme for the DenLegal legal services landing page. Modern Legal Professional — black, charcoal, and gold.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: denlegal-theme
Tags: custom-logo, custom-menu, featured-images, one-column, blog, responsive-layout
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    color-scheme: dark;
    --dl-black: #080a0a;
    --dl-deep: #0c0e0e;
    --dl-charcoal: #151716;
    --dl-card: #1b1b19;
    --dl-gold: #d3a64f;
    --dl-gold-bright: #f0c66f;
    --dl-gold-soft: #e4bd70;
    --dl-gold-border: rgba(211, 166, 79, .30);
    --dl-cream: #f7f2e8;
    --dl-text: #f4f1eb;
    --dl-muted: #c6c1b8;
    --dl-subtle: #a6a199;
    --dl-white: #f6f6f5;
    --dl-dark-text: #171716;
    --dl-serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --dl-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --dl-border: 1px solid rgba(211, 166, 79, .22);
    --dl-shadow: 0 22px 60px rgba(0, 0, 0, .30);
    --dl-shell: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    margin: 0;
    background: var(--dl-black);
    color: var(--dl-text);
    font-family: var(--dl-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
::selection { background: rgba(230, 183, 94, .32); color: white; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, dialog:focus-visible {
    outline: 2px solid var(--dl-gold-bright);
    outline-offset: 4px;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: pretty; }
.shell {
    width: min(calc(100% - 48px), var(--dl-shell));
    margin-inline: auto;
}
.section-pad { padding-block: clamp(54px, 7vw, 96px); }
.section-title {
    font-family: var(--dl-serif);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.2;
    font-size: clamp(26px, 3.2vw, 40px);
    color: #f7f5f0;
}
.section-title em, .light-title em { color: var(--dl-gold-bright); font-style: normal; }
.section-kicker {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--dl-gold-soft);
    margin-bottom: 8px;
}
.section-intro { max-width: 65ch; color: var(--dl-muted); margin-top: 12px; line-height: 1.75; }
.gold-line { display: block; width: 50px; height: 2px; background: var(--dl-gold); margin-block: 19px; }
.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 26px;
}
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dl-gold-bright);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s ease, gap .2s ease;
}
.text-link:hover { color: #fff0c7; gap: 12px; }
.text-link span { font-size: 18px; font-weight: 400; }
.denlegal-svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.line-icon { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }
.screen-reader-text {
    position: absolute !important; height: 1px; width: 1px;
    overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap; clip-path: inset(50%);
}
.screen-reader-text:focus {
    position: fixed !important; z-index: 99999; width: auto; height: auto;
    clip: auto; clip-path: none; padding: 12px 18px; top: 12px; left: 12px;
    background: #fff; color: #000; border-radius: 6px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 12px 22px;
    min-height: 44px;
    border-radius: 100px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.btn span { font-size: 19px; line-height: 1; font-weight: 400; }
.btn:hover { transform: translateY(-2px); }
.btn-gold {
    background: linear-gradient(120deg, #f6d584, #dbab4f);
    border-color: #e7b854;
    color: #11100d;
    box-shadow: 0 6px 22px rgba(179, 126, 39, .17);
}
.btn-gold:hover { background: linear-gradient(120deg, #ffe5a5, #edbd60); }
.btn-outline { border-color: var(--dl-gold); color: #f4f0e7; background: rgba(0,0,0,.26); }
.btn-outline:hover { background: rgba(211, 166, 79, .14); }

/* Header / Navigation */
.site-header {
    position: sticky; top: 0; z-index: 110;
    background: rgba(8, 10, 10, .97);
    border-bottom: 1px solid rgba(218, 175, 97, .16);
    backdrop-filter: blur(16px);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    min-height: 82px;
}
.brand-wrap { flex-shrink: 0; }
.denlegal-logo, .custom-logo-link { display: inline-flex; align-items: center; width: clamp(155px, 18vw, 216px); }
.denlegal-logo img, .custom-logo-link img { display: block; width: 100%; height: auto; object-fit: contain; }
.denlegal-menu, .denlegal-footer-menu { list-style: none; margin: 0; padding: 0; }
.denlegal-menu { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(14px, 2vw, 30px); }
.denlegal-menu a { font-size: 13px; font-weight: 600; color: #ece5d8; transition: color .2s ease; }
.denlegal-menu a:hover, .denlegal-menu a:focus-visible { color: var(--dl-gold-bright); }
.mobile-nav-toggle { display: none; }
.header-inner .current-menu-item a { color: var(--dl-gold-bright); }

/* Slider */
.hero-section { background: #090909; }
.hero-slider {
    height: clamp(430px, 47vw, 630px);
    max-height: 720px;
    width: 100%;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #111;
}
.hero-slides, .hero-slide, .hero-photo, .hero-shade { position: absolute; inset: 0; }
.hero-slide {
    visibility: hidden; opacity: 0; z-index: 1;
    transform: translate3d(100%,0,0);
    transition: transform .76s cubic-bezier(.23,.75,.19,1), opacity .76s ease, visibility 0s linear .76s;
    will-change: opacity, transform;
    pointer-events: none;
}
.hero-slide.is-preparing { visibility: visible; transition: none; }
.hero-slide.is-active {
    visibility: visible; opacity: 1; z-index: 3;
    transform: translate3d(0,0,0); pointer-events: auto;
    transition: transform .76s cubic-bezier(.23,.75,.19,1), opacity .76s ease;
}
.hero-slide.is-leaving {
    visibility: visible; opacity: 0; z-index: 2; pointer-events: none;
    transition: transform .76s cubic-bezier(.23,.75,.19,1), opacity .76s ease;
}
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { background: linear-gradient(90deg, rgba(4,5,5,.79) 0%, rgba(4,5,5,.29) 64%, rgba(4,5,5,.06)), linear-gradient(0deg, rgba(5,5,5,.33), transparent 25%); }
.hero-content {
    position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column;
    justify-content: center; align-items: start; padding-top: 18px; padding-bottom: 48px;
}
.eyebrow {
    display: flex; align-items: start; gap: 11px;
    max-width: 260px;
    color: var(--dl-gold-bright); text-transform: uppercase;
    font-size: 12px; letter-spacing: .14em; font-weight: 600;
    line-height: 1.6;
}
.eyebrow-mark { display: inline-block; width: 20px; height: 2px; flex: none; background: var(--dl-gold); margin-top: 8px; }
.hero-content h1, .hero-content h2 {
    max-width: 690px;
    font: 600 clamp(34px, 4.3vw, 62px)/1.14 var(--dl-serif);
    letter-spacing: -.035em;
    margin-top: 19px;
    text-shadow: 0 3px 19px rgba(0,0,0,.20);
}
.hero-subtitle {
    max-width: 495px; margin-top: 18px; margin-bottom: 23px;
    color: #f3eee7; font-size: clamp(14px, 1.4vw, 17px); line-height: 1.68;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-controls {
    position: absolute; z-index: 5; inset-inline: 0; bottom: 18px;
    display: flex; justify-content: space-between; align-items: center;
    pointer-events: none;
}
.slider-arrow {
    pointer-events: auto; background: rgba(6, 6, 6, .2); color: #fff;
    border: 1px solid rgba(255,255,255,.16);
    width: 38px; height: 38px; border-radius: 50%;
    font: 30px/1 var(--dl-serif); padding-bottom: 5px;
    transition: color .2s ease, background .2s ease;
}
.slider-arrow:hover { background: rgba(211,166,79,.18); color: var(--dl-gold-bright); }
.slider-dots { display: flex; gap: 9px; pointer-events: auto; }
.slider-dot {
    padding: 0; width: 9px; height: 9px; border: none; border-radius: 50%;
    background: #e9e7e1; opacity: .38; transition: background .2s ease, transform .2s ease, opacity .2s ease;
}
.slider-dot.is-active { background: var(--dl-gold-bright); transform: scale(1.12); opacity: 1; }

/* About DenLegal */
.about-section { background: radial-gradient(circle at 90% 40%, #202019 0, #0e1010 60%); }
.about-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: stretch; gap: clamp(18px,4vw,65px); }
.about-copy { align-self: center; padding-block: 12px; }
.about-copy > p:not(.section-kicker) { color: var(--dl-muted); line-height: 1.82; max-width: 58ch; margin-bottom: 25px; }
.about-photo-wrap {
    position: relative; min-height: 330px; border: var(--dl-border);
    overflow: hidden; border-radius: 9px; background: #171816;
}
.about-photo-wrap img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.about-image-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(8,10,10,.13), transparent 40%); }

/* Services */
.services-section { background: #0d0f0f; padding-top: 65px; padding-bottom: 65px; }
.services-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 15px; }
.service-tile {
    min-height: 160px; padding: 22px 12px 19px;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px;
    background: linear-gradient(155deg, #171817, #0a0c0b);
    border: var(--dl-border); border-radius: 8px;
    text-align: center;
    transition: border-color .24s ease, transform .24s ease, background .24s ease;
}
.service-tile:hover { transform: translateY(-4px); border-color: rgba(239, 198, 112, .60); }
.service-tile .line-icon { color: var(--dl-gold-bright); width: 44px; height: 44px; }
.service-tile h3 { font-family: var(--dl-sans); font-weight: 600; font-size: 14px; line-height: 1.4; max-width: 150px; }

.services-hint { display: none; }

/* Counters */
.stats-section {
    padding: 36px 0 26px;
    background:
        radial-gradient(ellipse 60% 140% at 50% 50%, rgba(122,92,38,.20), transparent 76%),
        linear-gradient(100deg, #141410, #1a1914 50%, #141410);
    border-block: 1px solid rgba(211,166,79,.12);
}
.stats-grid { display: grid; grid-template-columns: minmax(0,1fr) 1px minmax(0,1fr); align-items: center; max-width: 790px; }
.stat-item { display: flex; align-items: center; flex-direction: column; gap: 4px; padding: 5px 10px; text-align: center; }
.stat-item .line-icon { color: var(--dl-gold-bright); width: 30px; height: 30px; margin-bottom: 4px; }
.stat-number {
    display: flex; align-items: baseline; color: var(--dl-gold-bright);
    font: 600 clamp(36px,5vw,55px)/1.12 var(--dl-serif); letter-spacing: -.04em;
}
.stat-number > span:last-child { font-size: .72em; margin-left: 2px; }
.stat-item p { font-size: 14px; color: #eae5dc; }
.stat-separator { height: 78px; background: rgba(240,198,111,.34); }
.stats-footnote, .section-footnote { font-size: 11px; line-height: 1.5; text-align: center; color: #9c978b; padding-inline: 22px; margin-top: 18px; }

/* Featured tools */
.features-section { background: #0c0e0e; padding-bottom: 30px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 19px; margin-top: 29px; }
.feature-card {
    min-height: 240px;
    padding: 30px 18px 24px;
    border: 1px solid rgba(222, 172, 77, .40);
    border-radius: 8px;
    color: var(--dl-text);
    background: radial-gradient(ellipse at top center, rgba(185,132,45,.15), transparent 70%), #111312;
    text-align: center; display: flex; flex-direction: column; align-items: center;
    gap: 12px;
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--dl-gold-bright); background-color: #1a1916; }
.feature-card .line-icon { color: var(--dl-gold-bright); width: 45px; height: 45px; flex-shrink: 0; }
.feature-title { display: block; color: #fff6e7; font: 600 clamp(17px, 2vw, 21px)/1.25 var(--dl-serif); }
.feature-description { display: block; font-size: 13px; line-height: 1.55; color: #ded6c6; max-width: 225px; }
.feature-arrow { display: block; color: var(--dl-gold-bright); font-size: 23px; line-height: 1; margin-top: auto; }

/* Latest posts */
.articles-section { background: #0c0e0e; padding-top: 44px; }
.articles-list { display: grid; gap: 0; }
.article-card {
    display: grid; grid-template-columns: clamp(160px,24vw,255px) minmax(0,1fr);
    align-items: center; gap: clamp(17px,2.5vw,35px);
    padding-block: 18px; border-bottom: 1px solid rgba(255,255,255,.10);
}
.article-card:last-child { border-bottom: none; }
.article-thumbnail { border-radius: 8px; overflow: hidden; aspect-ratio: 1.6; background: #20201d; }
.article-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.article-thumbnail:hover img { transform: scale(1.04); }
.article-body { display: grid; justify-items: start; gap: 6px; min-width: 0; }
.article-meta { color: var(--dl-gold-soft); font-size: 11px; letter-spacing: .05em; }
.article-card h3 { font: 600 clamp(18px,2vw,23px)/1.31 var(--dl-serif); color: #f5f0e8; }
.article-card h3 a:hover { color: var(--dl-gold-bright); }
.article-excerpt { color: #bcb6aa; font-size: 13px; line-height: 1.65; }
.article-cta { margin-top: 2px; }
.article-disabled { color: #ad9e81; white-space: normal; cursor: default; }

/* Client logo carousel */
.light-section { color: var(--dl-dark-text); background: #f5f4f1; }
.clients-section { padding-block: 42px 31px; border-block: 1px solid #dedbd5; }
.light-title { text-align: center; color: #151515; font: 600 clamp(23px, 3vw, 32px)/1.25 var(--dl-serif); }
.light-title em { color: #a67526; }
.light-description { margin-top: 7px; color: #66645f; text-align: center; font-size: 13px; }
.marquee-track-viewport { overflow: hidden; width: 100%; }
.clients-section .marquee-track-viewport { margin-top: 29px; }
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; flex: none; align-items: center; gap: 36px; padding-right: 36px; }
.marquee-left { animation: dl-marquee-left 32s linear infinite; }
.marquee-right { animation: dl-marquee-right 45s linear infinite; }
@keyframes dl-marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes dl-marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.marquee-track-viewport:hover .marquee-track,
.marquee-track-viewport:focus-within .marquee-track { animation-play-state: paused; }
.client-logo-placeholder {
    width: 190px; height: 58px; display: flex; align-items: center; justify-content: center; gap: 11px;
    color: #77736b;
    border-radius: 7px; border: 1px solid rgba(0,0,0,.09); background: rgba(255,255,255,.58);
}
.client-logo-placeholder span { font: 700 15px/1 var(--dl-sans); letter-spacing: .04em; }
.client-mark { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.light-footnote { color: #77736b; margin-top: 16px; }

/* Testimonials: reverse carousel */
.testimonials-section { background: #101211; padding-bottom: 58px; }
.inline-demo-label { font-size: 12px; color: #cbb487; white-space: nowrap; }
.testimonials-viewport { margin-top: 8px; }
.testimonials-group { gap: 17px; padding-right: 17px; }
.testimonial-card {
    flex: none; width: clamp(290px, 38vw, 465px); min-height: 206px;
    border: 1px solid rgba(234,194,110,.27);
    border-radius: 9px; background: linear-gradient(130deg, #242524, #151716);
    padding: 22px 23px;
    position: relative;
}
.testimonial-header { display: flex; gap: 13px; align-items: center; }
.avatar-placeholder {
    width: 55px; height: 55px; flex: 0 0 auto; display: grid; place-items: center;
    border-radius: 50%; color: #c2b99d;
    border: 1px solid #6a624f; background: linear-gradient(145deg, #45443b, #191b1a);
}
.avatar-placeholder .line-icon { width: 27px; height: 27px; }
.testimonial-header h3 { font: 600 17px/1.35 var(--dl-serif); }
.testimonial-header p { font-size: 12px; color: #c2b8a8; }
.quote-icon { position: absolute; right: 25px; top: 24px; color: rgba(222,179,92,.35); width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.testimonial-card blockquote { margin: 16px 0 0; color: #e5e0d6; font: italic 14px/1.65 var(--dl-serif); }

/* Google Reviews visual placeholder. No fake ratings. */
.google-section { padding-block: 40px; }
.google-grid { display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); gap: 32px; align-items: center; }
.google-brand { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; }
.google-g { display: inline-flex; align-items: center; justify-content: center; font: 800 30px/1 var(--dl-sans); color: #4285F4; letter-spacing: -.12em; text-shadow: 1px 1px #34a853, -1px 1px #fbbc05; }
.google-summary h2 { font: 600 clamp(22px, 2.5vw, 30px)/1.2 var(--dl-serif); margin-top: 7px; }
.google-summary h2 em { font-style: normal; color: #a67526; }
.review-empty-score { font: 600 clamp(42px,4vw,54px)/1.3 var(--dl-serif); color: #2e2d2a; margin-top: 8px; }
.review-empty-score small { color: #77736f; font-size: .52em; }
.review-stars { color: #9f9c95; letter-spacing: .13em; font-size: 22px; line-height: 1.2; }
.google-summary > p:last-child { color: #65615b; font-size: 13px; max-width: 39ch; margin-top: 8px; }
.google-preview-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.google-review-placeholder { min-height: 158px; background: #fff; border: 1px solid #e8e6df; border-radius: 10px; padding: 17px; box-shadow: 0 6px 23px rgba(0,0,0,.04); }
.review-placeholder-icon { color: #c5a66c; font-size: 20px; }
.google-review-placeholder h3 { font: 700 14px/1.4 var(--dl-sans); color: #292824; margin-top: 10px; }
.google-review-placeholder p { font-size: 12px; line-height: 1.55; color: #77726c; margin-top: 7px; }

/* Footer */
.site-footer { padding-top: 50px; background: #090b0b; border-top: 1px solid rgba(211,166,79,.16); }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr .75fr; gap: 60px; padding-bottom: 42px; }
.footer-brand .denlegal-logo, .footer-brand .custom-logo-link { width: 175px; }
.footer-brand img { filter: grayscale(1) brightness(1.9); opacity: .78; }
.footer-brand p { color: #bbb6ab; font: 13px/1.75 var(--dl-sans); margin-top: 10px; max-width: 30ch; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 16px; }
.footer-socials a { color: var(--dl-gold-bright); font-size: 12px; }
.site-footer h2 { font: 600 19px/1.3 var(--dl-serif); margin-bottom: 14px; }
.footer-contact, .footer-links { display: flex; flex-direction: column; align-items: start; }
.footer-contact a, .footer-contact p { font-size: 13px; line-height: 1.7; color: #c5c2bb; margin-bottom: 9px; overflow-wrap: anywhere; }
.footer-contact a:hover, .footer-links a:hover { color: var(--dl-gold-bright); }
.footer-contact a span, .footer-contact p span { display: inline-block; width: 19px; color: #d5c6a8; }
.denlegal-footer-menu { display: grid; gap: 5px; }
.denlegal-footer-menu a { font-size: 13px; color: #c9c6be; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px;
    border-top: 1px solid rgba(255,255,255,.16);
    padding-block: 21px 24px;
    color: #a7a29a; font-size: 11px; line-height: 1.5;
}

/* Member preview modal */
.member-dialog {
    width: min(calc(100% - 32px), 455px);
    max-height: calc(100vh - 32px);
    margin: auto;
    padding: 38px 30px 29px;
    background: linear-gradient(135deg,#22211c,#101211 80%);
    color: var(--dl-text);
    border: 1px solid rgba(235,188,94,.48);
    border-radius: 15px;
    box-shadow: 0 28px 100px rgba(0,0,0,.7);
    text-align: left;
}
.member-dialog::backdrop { background: rgba(0,0,0,.77); backdrop-filter: blur(5px); }
.member-dialog h2 { font: 600 27px/1.25 var(--dl-serif); margin-bottom: 14px; }
.member-dialog p:not(.section-kicker) { color: #d3cec2; font-size: 14px; line-height: 1.7; }
.member-dialog .dialog-note { margin-top: 13px; color: #aea593 !important; font-size: 12px !important; }
.dialog-icon { color: var(--dl-gold-bright); margin-bottom: 17px; }
.dialog-icon .line-icon { width: 42px; height: 42px; }
.dialog-close {
    position: absolute; top: 9px; right: 12px; border: none; background: transparent;
    color: #d6d0c4; font-size: 28px; width: 38px; height: 38px; line-height: 1;
}
.dialog-close:hover { color: var(--dl-gold-bright); }
.dialog-ok { margin-top: 23px; }

/* Standard WordPress content pages */
.inner-page { background: #0e1010; padding: clamp(55px,8vw,100px) 0; min-height: 58vh; }
.inner-content { max-width: 760px; }
.page-heading { margin-bottom: 25px; font: 600 clamp(30px,4.2vw,48px)/1.2 var(--dl-serif); color: var(--dl-text); }
.entry-meta { font-size: 13px; color: var(--dl-gold-soft); margin-bottom: 16px; }
.entry-content { color: #e0dcd4; line-height: 1.85; overflow-wrap: anywhere; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content p { font-size: 16px; }
.entry-content a { color: var(--dl-gold-bright); text-decoration: underline; }
.entry-content h2, .entry-content h3 { font-family: var(--dl-serif); margin-top: 1.5em; }
.entry-content img { border-radius: 6px; max-width: 100%; }
.entry-content ul, .entry-content ol { padding-left: 22px; }
.posts-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; margin-top: 32px; }
.posts-grid .article-card { display: block; border: var(--dl-border); border-radius: 9px; overflow: hidden; padding: 0; background: #171918; }
.posts-grid .article-thumbnail { display: block; border-radius: 0; }
.posts-grid .article-body { padding: 20px; }
.posts-grid .article-cta { margin-top: 12px; }
.pagination-wrap { margin-top: 40px; color: var(--dl-gold-bright); }
.pagination-wrap .page-numbers { padding: 6px 10px; }
.pagination-wrap .current { color: #fff; border-bottom: 1px solid var(--dl-gold); }
.empty-posts { color: var(--dl-muted); }

/* Responsive behavior */
@media (max-width: 900px) {
    .shell { width: min(calc(100% - 40px), var(--dl-shell)); }
    .header-inner { min-height: 75px; }
    .mobile-nav-toggle {
        display: flex; position: relative; z-index: 121; width: 44px; height: 44px; flex-shrink: 0;
        align-items: center; justify-content: center; flex-direction: column; gap: 5px;
        background: transparent; border: 1px solid transparent; border-radius: 6px; color: var(--dl-gold-bright);
    }
    .mobile-nav-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
    .mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
    .site-nav {
        display: none; position: absolute; z-index: 120; top: 100%; left: 0; right: 0;
        background: #101210; border-top: var(--dl-border); border-bottom: var(--dl-border);
        box-shadow: var(--dl-shadow); padding: 14px 22px 25px;
    }
    .site-nav.is-open { display: block; }
    .site-nav .denlegal-menu { display: grid; gap: 2px; }
    .site-nav .denlegal-menu li { width: 100%; }
    .site-nav .denlegal-menu a { display: block; padding: 10px 5px; font-size: 14px; }
    .hero-content h1, .hero-content h2 { max-width: 65%; }
    .about-grid { gap: 24px; }
    .footer-main { gap: 28px; }
}

@media (max-width: 700px) {
    .shell { width: min(calc(100% - 38px), var(--dl-shell)); }
    .section-pad { padding-block: 39px; }
    .header-inner { min-height: 67px; }
    .denlegal-logo, .custom-logo-link { width: 173px; }
    .hero-slider { height: 324px; }
    .hero-photo { object-position: 57% center; }
    .hero-shade { background: linear-gradient(90deg, rgba(3,5,5,.82) 0, rgba(3,5,5,.30) 72%, rgba(3,5,5,.13)), linear-gradient(0deg,rgba(6,6,6,.15),transparent 30%); }
    .hero-content { padding-top: 0; padding-bottom: 26px; }
    .hero-content h1, .hero-content h2 { font-size: clamp(28px, 6.7vw, 37px); line-height: 1.15; max-width: 76%; margin-top: 11px; }
    .eyebrow { font-size: 10px; letter-spacing: .12em; max-width: 185px; gap: 6px; }
    .eyebrow-mark { width: 10px; }
    .hero-subtitle { max-width: 69%; font-size: 13px; line-height: 1.52; margin-top: 12px; margin-bottom: 16px; }
    .hero-content .btn { padding: 10px 17px; min-height: 40px; font-size: 12px; }
    .hero-controls { bottom: 9px; }
    .slider-arrow { width: 32px; height: 32px; font-size: 25px; }
    .slider-dot { width: 8px; height: 8px; }
    .about-grid { grid-template-columns: 1fr 46%; gap: 12px; }
    .about-copy { padding-block: 7px; position: relative; z-index: 1; }
    .about-copy .section-title { white-space: nowrap; }
    .about-copy > p:not(.section-kicker) { font-size: 14px; line-height: 1.65; margin-bottom: 17px; }
    .about-copy .btn { font-size: 11px; padding: 9px 11px; gap: 6px; min-height: 37px; }
    .gold-line { margin-block: 13px; width: 31px; }
    .about-photo-wrap { min-height: 250px; }
    .about-photo-wrap img { object-position: 42% center; }
    .services-section { padding-block: 35px; }
    .services-grid { display: flex; overflow-x: auto; gap: 11px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #655336 transparent; padding-bottom: 9px; }
    .service-tile { flex: 0 0 120px; min-height: 134px; padding: 16px 9px; gap: 12px; scroll-snap-align: start; }
    .service-tile .line-icon { width: 36px; height: 36px; }
    .service-tile h3 { font-size: 12.5px; }
    .services-hint { display: block; color: #cdb37f; margin-top: 5px; font-size: 12px; }
    .stats-section { padding-top: 26px; }
    .stat-number { font-size: 37px; }
    .stat-item p { font-size: 12.5px; }
    .stat-item .line-icon { width: 26px; height: 26px; }
    .stat-separator { height: 69px; }
    .stats-footnote { font-size: 10px; }
    .section-heading-row { gap: 8px; margin-bottom: 18px; }
    .section-heading-row .text-link { font-size: 11px; }
    .feature-grid { gap: 9px; margin-top: 20px; }
    .feature-card { padding: 17px 10px 13px; min-height: 183px; gap: 9px; }
    .feature-card .line-icon { width: 33px; height: 33px; }
    .feature-title { font-size: 15px; }
    .feature-description { font-size: 11px; line-height: 1.47; }
    .feature-arrow { font-size: 20px; }
    .features-section { padding-bottom: 18px; }
    .articles-section { padding-top: 35px; }
    .article-card { grid-template-columns: 110px minmax(0,1fr); gap: 13px; align-items: start; padding-block: 13px; }
    .article-thumbnail { aspect-ratio: 1.16; }
    .article-body { gap: 4px; }
    .article-meta { font-size: 10px; }
    .article-card h3 { font-size: 16px; line-height: 1.27; }
    .article-excerpt { font-size: 13px; line-height: 1.47; }
    .article-cta { font-size: 11px; white-space: normal; }
    .clients-section { padding-block: 28px 22px; }
    .clients-section .marquee-track-viewport { margin-top: 21px; }
    .client-logo-placeholder { width: 160px; height: 50px; }
    .client-logo-placeholder span { font-size: 13px; }
    .marquee-group { gap: 17px; padding-right: 17px; }
    .testimonials-section { padding-top: 40px; padding-bottom: 36px; }
    .testimonials-group { gap: 14px; padding-right: 14px; }
    .testimonial-card { width: 305px; min-height: 205px; padding: 18px; }
    .google-section { padding-block: 27px; }
    .google-grid { gap: 17px; grid-template-columns: 1fr; }
    .google-preview-cards { gap: 8px; }
    .google-review-placeholder { padding: 12px; min-height: 124px; }
    .google-summary > p:last-child { max-width: none; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 24px 15px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { font-size: 10px; }
    .site-footer { padding-top: 31px; }
    .posts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
    .section-title { font-size: 25px; }
    .section-kicker { font-size: 10px; }
    .hero-content h1, .hero-content h2 { max-width: 80%; font-size: 28px; }
    .about-grid { grid-template-columns: 1fr 40%; gap: 10px; }
    .about-photo-wrap { min-height: 250px; }
    .about-copy > p:not(.section-kicker) { font-size: 14px; line-height: 1.62; }
    .about-copy .section-title { font-size: 24px; }
    .feature-card { min-height: 141px; gap: 9px; }
    .feature-card .line-icon { width: 30px; height: 30px; }
    .feature-title { font-size: 14px; }
    .feature-description { display: none; }
    .feature-arrow { margin-top: auto; }
    .article-card { grid-template-columns: 103px minmax(0,1fr); gap: 12px; }
    .article-card h3 { font-size: 16px; }
    .article-excerpt { font-size: 12px; }
    .section-heading-row .text-link { max-width: 100px; text-align: right; white-space: normal; line-height: 1.35; }
    .light-title { font-size: 24px; }
}
@media (max-width: 365px) {
    .shell { width: min(calc(100% - 30px), var(--dl-shell)); }
    .hero-slider { height: 310px; }
    .hero-content h1, .hero-content h2 { font-size: 25px; max-width: 87%; }
    .hero-subtitle { max-width: 78%; font-size: 12px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-photo-wrap { min-height: 190px; order: -1; }
    .about-copy > p:not(.section-kicker) { font-size: 14px; }
    .feature-card { padding-inline: 6px; }
    .feature-title { font-size: 13px; }
    .article-card { grid-template-columns: 90px minmax(0,1fr); }
    .article-meta { display: none; }
    .article-excerpt { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .marquee-track { animation: none !important; transform: translateX(0) !important; }
    .marquee-track-viewport { overflow-x: auto; scrollbar-width: thin; }
}
