.seo-page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fffdf8;
}

.seo-page-shell .navbar-area { z-index: 999; }
.seo-page-shell .main-nav nav.navbar { min-height: 70px; }
.seo-page-shell .desktop-logo-bg2 {
    box-sizing: border-box;
    width: 200px;
    height: 70px;
    flex: 0 0 200px;
}
.seo-page-shell .desktop-logo-bg2 img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 58px;
    height: auto;
}
.seo-page-shell .mobile-nav .logo { width: 60px; }
.seo-page-shell .mobile-nav .logo img { display: block; width: 100%; max-width: 100%; height: auto; }

.seo-page-shell main.seo-detail {
    flex: 1 0 auto;
    width: 100%;
    padding: 136px 0 72px;
}

.seo-page-shell .seo-article {
    max-width: 900px;
    margin: 0 auto;
    color: #343434;
}

.seo-page-shell .seo-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0 .45rem;
    margin: 0 0 28px;
    color: #686868;
    font-size: 14px;
}
.seo-page-shell .seo-breadcrumbs a { color: #1c1d1e; }
.seo-page-shell .seo-breadcrumbs a:hover,
.seo-page-shell .seo-related a:hover { color: #c89520; }

.seo-page-shell .seo-heading {
    margin-bottom: 38px;
    padding: 34px 38px 30px;
    border: 1px solid rgba(201, 156, 38, .28);
    border-bottom: 3px solid #d4a62a;
    border-radius: 4px;
    background-color: #fbf8ef;
    background-image: linear-gradient(100deg, rgba(255, 253, 248, .96), rgba(255, 253, 248, .86)), url('../images/law.jpg');
    background-image: linear-gradient(100deg, rgba(255, 253, 248, .96), rgba(255, 253, 248, .86)), image-set(url("../images/law.webp") type("image/webp"), url("../images/law.jpg") type("image/jpeg"));
    background-position: center 44%;
    background-size: cover;
    box-shadow: 0 12px 36px rgba(28, 29, 30, .045);
}
.seo-page-shell .seo-heading h1 {
    margin: 0 0 12px;
    color: #1c1d1e;
    font-size: clamp(34px, 3.2vw, 40px);
    font-weight: 700;
    line-height: 1.2;
}
.seo-page-shell .seo-intro {
    max-width: 760px;
    margin: 0;
    color: #626262;
    font-size: 18px;
    line-height: 1.7;
}

.seo-page-shell .seo-section {
    margin: 0 0 30px;
    padding: 0 0 26px;
    border-bottom: 1px solid #e8e2d5;
    overflow-wrap: anywhere;
}
.seo-page-shell .seo-heading h1 .seo-keyword { color: #f0cc63; }
.seo-page-shell .seo-section h2,
.seo-page-shell .seo-rich-content h2 {
    margin: 0 0 14px;
    color: #1c1d1e;
    font-size: 28px;
    line-height: 1.3;
}
.seo-page-shell .seo-rich-content {
    color: #454545;
    font-size: 17px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.seo-page-shell .seo-rich-content h2 { margin-top: 28px; }
.seo-page-shell .seo-rich-content h3 { color: #1c1d1e; font-size: 21px; line-height: 1.4; }
.seo-page-shell .seo-rich-content h4 { color: #1c1d1e; font-size: 18px; line-height: 1.45; }
.seo-page-shell .seo-rich-content p { margin: 0 0 16px; }
.seo-page-shell .seo-rich-content ol,
.seo-page-shell .seo-rich-content ul { margin: 0 0 16px; padding-left: 1.5rem; }
.seo-page-shell .seo-rich-content li { margin-bottom: .35rem; }
.seo-page-shell .seo-rich-content blockquote { margin: 22px 0; padding: 4px 0 4px 18px; border-left: 3px solid #d4a62a; color: #555; }
.seo-page-shell .seo-rich-content a { color: #a87500; text-decoration: underline; text-underline-offset: 2px; }
.seo-page-shell .seo-rich-content img,
.seo-page-shell .seo-section-image { max-width: 100%; height: auto; }
.seo-page-shell .seo-section-image { display: block; margin: 20px auto 8px; border-radius: 4px; }
.seo-page-shell .seo-rich-content figure { max-width: 100%; margin: 18px auto; }
.seo-page-shell .seo-rich-content figcaption,
.seo-page-shell .seo-caption { margin-top: 6px; color: #686868; font-size: 15px; text-align: center; }
.seo-page-shell .seo-rich-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.seo-page-shell .seo-rich-content th,
.seo-page-shell .seo-rich-content td { min-width: 110px; padding: 9px 12px; border: 1px solid #d9d3c8; }

.seo-page-shell .seo-related { margin-top: 40px; }
.seo-page-shell .seo-related h2 { margin-bottom: 14px; color: #1c1d1e; font-size: 25px; }
.seo-page-shell .seo-related ul { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.seo-page-shell .seo-related a { color: #75520b; text-decoration: underline; text-underline-offset: 3px; }
.seo-page-shell .seo-cta { margin-top: 38px; text-align: center; }
.seo-page-shell .seo-cta .cmn-btn { display: inline-block; max-width: 100%; }
.seo-page-shell footer { flex-shrink: 0; }
.seo-page-shell footer .newsletter-area { position: relative; top: auto; margin-top: 0; margin-bottom: 60px; }

@media (max-width: 767px) {
    .seo-page-shell .main-nav nav.navbar { min-height: 0; }
    .seo-page-shell main.seo-detail { padding: 88px 0 48px; }
    .seo-page-shell .seo-breadcrumbs { margin-bottom: 22px; font-size: 13px; }
    .seo-page-shell .seo-heading { margin-bottom: 28px; padding: 24px 20px 20px; background-position: center; }
    .seo-page-shell .seo-heading h1 { font-size: 29px; }
    .seo-page-shell .seo-intro { font-size: 16px; }
    .seo-page-shell .seo-section { margin-bottom: 24px; padding-bottom: 20px; }
    .seo-page-shell .seo-section h2,
    .seo-page-shell .seo-rich-content h2 { font-size: 23px; }
    .seo-page-shell .seo-rich-content { font-size: 16px; line-height: 1.75; }
    .seo-page-shell .seo-rich-content h3 { font-size: 20px; }
    .seo-page-shell .seo-related h2 { font-size: 22px; }
    .seo-page-shell .seo-related ul { display: grid; gap: 10px; }
    .seo-page-shell .seo-cta .cmn-btn { width: 100%; }
    .seo-page-shell footer .newsletter-area { margin-bottom: 40px; }
}

@media (min-width: 768px) and (max-width: 991px) {
    .seo-page-shell main.seo-detail { padding-top: 88px; }
}

/* SEO pages use the Chamber's charcoal and gold identity while city landings stay untouched. */
.seo-page-shell { background: #171819; color: #f6f4ef; }
.seo-page-shell .seo-article { max-width: 1080px; color: #ece9e2; }
.seo-page-shell .seo-breadcrumbs,
.seo-page-shell .seo-breadcrumbs a { color: #c9c5bb; }
.seo-page-shell .seo-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(160px, .65fr);
    align-items: center;
    gap: 28px;
    min-height: 310px;
    padding: clamp(26px, 5vw, 58px);
    border: 1px solid rgba(212, 166, 42, .36);
    border-bottom: 3px solid #d4a62a;
    background: linear-gradient(115deg, #222425 0%, #191a1b 72%);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .24);
}
.seo-page-shell .seo-heading::after {
    content: "";
    justify-self: center;
    width: min(100%, 210px);
    aspect-ratio: 1;
    border: 1px solid rgba(212, 166, 42, .52);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 166, 42, .14), transparent 68%);
    box-shadow: 0 0 0 18px rgba(212, 166, 42, .035), 0 0 0 38px rgba(212, 166, 42, .025);
}
.seo-page-shell .seo-category { margin: 0 0 12px; color: #d4a62a; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.seo-page-shell .seo-heading h1 { color: #fff; }
.seo-page-shell .seo-intro { color: #d0cec8; }
.seo-page-shell .seo-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.seo-page-shell .seo-hero-actions .cmn-btn { min-width: 150px; text-align: center; }
.seo-page-shell .seo-consult-button { border: 1px solid #d4a62a; background: transparent; color: #f3d580; }
.seo-page-shell .seo-section { border-color: rgba(255, 255, 255, .12); }
.seo-page-shell .seo-section h2,
.seo-page-shell .seo-rich-content h2,
.seo-page-shell .seo-rich-content h3,
.seo-page-shell .seo-rich-content h4,
.seo-page-shell .seo-related h2 { color: #f2d27d; }
.seo-page-shell .seo-rich-content { color: #e2dfd8; }
.seo-page-shell .seo-rich-content blockquote { color: #d1cdc3; }
.seo-page-shell .seo-rich-content td,
.seo-page-shell .seo-rich-content th { border-color: #5c5546; }
.seo-page-shell .seo-related a { color: #f2d27d; }
.seo-page-shell .seo-heading img { max-width: 100%; height: auto; }
.seo-page-shell[data-template="faq"] .seo-rich-content h2 { margin-top: 28px; padding-bottom: 10px; border-bottom: 1px solid rgba(212, 166, 42, .35); }
.seo-page-shell[data-template="process"] .seo-rich-content ol { padding-left: 1.8rem; }
.seo-page-shell[data-template="process"] .seo-rich-content ol li { padding-left: .3rem; margin-bottom: .65rem; }
.seo-page-shell[data-template="comparison"] .seo-rich-content table { border: 1px solid #5c5546; }
.seo-page-shell[data-template="comparison"] .seo-rich-content th { color: #f2d27d; background: #242526; }
@media (max-width: 767px) {
    .seo-page-shell .seo-heading { grid-template-columns: 1fr; min-height: 0; }
    .seo-page-shell .seo-heading::after { display: none; }
    .seo-page-shell .seo-hero-actions { display: grid; }
}

/* Keep the SEO page's dark treatment on the hero while long-form content stays light. */
.seo-page-shell { background: #fffdf8; color: #343434; }
.seo-page-shell main.seo-detail { background: #fffdf8; }
.seo-page-shell .seo-article { color: #343434; }
.seo-page-shell .seo-heading {
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, .65fr);
    gap: clamp(24px, 5vw, 64px);
    min-height: 0;
    padding: clamp(30px, 5vw, 62px);
    border: 1px solid rgba(212, 166, 42, .36);
    border-bottom: 3px solid #d4a62a;
    border-radius: 6px;
    background: linear-gradient(115deg, #222425 0%, #191a1b 100%);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .14);
}
.seo-page-shell .seo-heading::after { display: none; }
.seo-page-shell .seo-hero-copy { min-width: 0; }
.seo-page-shell .seo-breadcrumbs {
    margin: 0 0 28px;
    color: #c9c5bb;
    font-size: 14px;
}
.seo-page-shell .seo-breadcrumbs a { color: #f0d37e; }
.seo-page-shell .seo-breadcrumbs span[aria-current="page"] { overflow-wrap: anywhere; }
.seo-page-shell .seo-category { margin-bottom: 14px; }
.seo-page-shell .seo-heading h1 {
    max-width: 760px;
    color: #fff;
    font-size: clamp(36px, 4.2vw, 56px);
    line-height: 1.12;
    overflow-wrap: anywhere;
}
.seo-page-shell .seo-intro { color: #dedbd3; }
.seo-page-shell .seo-hero-portrait {
    width: 100%;
    max-width: 310px;
    justify-self: center;
    padding: 8px;
    border: 1px solid rgba(212, 166, 42, .72);
    background: rgba(255, 255, 255, .04);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .24);
}
.seo-page-shell .seo-hero-portrait img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 24%;
}
.seo-page-shell .seo-hero-actions .cmn-btn {
    border: 1px solid #d4a62a;
    background: #d4a62a;
    color: #1c1d1e;
    font-weight: 700;
}
.seo-page-shell .seo-hero-actions .seo-consult-button {
    background: transparent;
    color: #f3d580;
}
.seo-page-shell .seo-section { border-color: #e8e2d5; }
.seo-page-shell .seo-section h2,
.seo-page-shell .seo-rich-content h2,
.seo-page-shell .seo-rich-content h3,
.seo-page-shell .seo-rich-content h4,
.seo-page-shell .seo-related h2 { color: #9a6d09; }
.seo-page-shell .seo-rich-content { color: #454545; }
.seo-page-shell .seo-rich-content blockquote { color: #555; }
.seo-page-shell .seo-rich-content th { background: #f4efdf; color: #292929; }
.seo-page-shell .seo-rich-content td,
.seo-page-shell .seo-rich-content th { border-color: #d9d3c8; }
.seo-page-shell[data-template="comparison"] .seo-rich-content table { border-color: #d9d3c8; }
.seo-page-shell[data-template="comparison"] .seo-rich-content th { background: #f4efdf; color: #292929; }
.seo-page-shell .seo-related a { color: #75520b; }

@media (min-width: 768px) and (max-width: 991px) {
    .seo-page-shell .seo-heading { grid-template-columns: minmax(0, 1.3fr) minmax(190px, .7fr); }
    .seo-page-shell .seo-hero-portrait { max-width: 250px; }
}

@media (max-width: 767px) {
    .seo-page-shell .seo-heading { grid-template-columns: 1fr; gap: 26px; }
    .seo-page-shell .seo-heading::after { display: none; }
    .seo-page-shell .seo-breadcrumbs { margin-bottom: 22px; }
    .seo-page-shell .seo-heading h1 { font-size: clamp(30px, 8vw, 40px); }
    .seo-page-shell .seo-hero-portrait { max-width: 240px; }
    .seo-page-shell .seo-hero-actions { grid-template-columns: 1fr; }
    .seo-page-shell .seo-hero-actions .cmn-btn { width: 100%; }
    .seo-page-shell .seo-rich-content table { min-width: 100%; }
}
