/* Legal Practice final layer.
   Loaded after component CSS to give the fork a distinct law-firm direction. */

:root {
    --text-hero: 4.25rem;
    --container-max: 1180px;
    --section-pad: 5.75rem;
    --grid-gap: 1.25rem;
    --radius-sm: 2px;
    --radius: 4px;
    --radius-lg: 6px;
    --button-radius: 2px;
    --button-border-color: var(--ocf-accent);
    --button-shadow: none;
    --button-shadow-hover: 0 12px 22px rgba(8, 30, 53, 0.12);
    --button-transform-hover: translateY(-1px);
    --card-radius: 4px;
    --card-radius-lg: 6px;
    --card-border-color: var(--ocf-border);
    --card-border-color-subtle: var(--ocf-border-light);
    --card-shadow: 0 18px 50px rgba(8, 30, 53, 0.08);
    --card-shadow-hover: 0 22px 60px rgba(8, 30, 53, 0.13);
    --card-transform-hover: translateY(-2px);
    --image-radius: 3px;
}

body {
    background:
        linear-gradient(90deg, rgba(216, 205, 187, 0.18) 1px, transparent 1px) 0 0 / 72px 72px,
        var(--ocf-bg);
    color: var(--ocf-body);
}

.heading-section,
.nav-logo-text,
.footer-brand-name,
.ocf-svc-card h3,
.ocf-detail-sticky-heading,
.post-card-title {
    font-family: var(--ocf-font-heading), Georgia, serif;
    font-weight: 600;
    letter-spacing: 0;
}

.heading-section.size-xl {
    max-width: 12ch;
    font-size: var(--text-hero);
    line-height: 1;
}

.heading-section.size-lg {
    font-size: 2.75rem;
}

.eyebrow {
    color: var(--ocf-accent);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.btn-primary,
.nav-cta {
    background: var(--ocf-accent);
    border-color: var(--ocf-accent);
    color: #fffaf1;
}

.btn-primary:hover,
.nav-cta:hover {
    background: var(--ocf-accent-hover);
    border-color: var(--ocf-accent-hover);
}

.btn-secondary {
    border-color: var(--ocf-border);
    background: rgba(255, 250, 241, 0.5);
    color: var(--ocf-heading);
}

.btn-secondary:hover {
    background: #fffaf1;
    border-color: var(--ocf-accent);
    color: var(--ocf-accent-hover);
}

.nav-bar {
    background: rgba(255, 250, 241, 0.94);
    border-bottom: 1px solid var(--ocf-border-light);
    backdrop-filter: blur(16px);
}

.nav-inner {
    min-height: 4.5rem;
}

.nav-logo {
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-text {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ocf-heading);
    font-size: 1rem;
    text-transform: uppercase;
}

.nav-logo-text::before {
    content: "M";
    display: inline-grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 1px solid var(--ocf-heading);
    color: var(--ocf-heading);
    font-family: var(--ocf-font-heading), Georgia, serif;
    font-size: 1.4rem;
    line-height: 1;
}

.nav-link,
.nav-phone,
.dropdown-item,
.mobile-link,
.mobile-accordion-trigger {
    color: var(--ocf-heading);
    font-size: 0.82rem;
}

.nav-phone {
    color: var(--ocf-accent-hover);
}

.ocf-hero {
    min-height: 680px;
    overflow: hidden;
    background: var(--ocf-bg-alt);
}

.ocf-hero__media {
    inset: 0;
    left: 45%;
    width: 55%;
    opacity: 0.9;
}

.ocf-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92) contrast(0.96);
}

.ocf-hero__shade {
    display: block;
    inset: 0;
    background: linear-gradient(90deg, var(--ocf-bg-alt) 0%, rgba(255, 250, 241, 0.96) 35%, rgba(255, 250, 241, 0.35) 58%, rgba(6, 29, 51, 0.24) 100%);
}

.ocf-hero__grid {
    position: relative;
    z-index: 2;
    min-height: 680px;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 3rem;
}

.ocf-hero__content {
    max-width: 610px;
}

.ocf-hero__rating {
    display: inline-flex;
    gap: 0.55rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ocf-accent);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ocf-hero__stars {
    display: none;
}

.ocf-hero__text {
    max-width: 500px;
    color: var(--ocf-body);
    font-size: 1.06rem;
}

.ocf-hero__actions {
    margin-top: 2rem;
}

.ocf-hero__form {
    align-self: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: var(--ocf-bg-dark);
    box-shadow: 0 26px 70px rgba(8, 30, 53, 0.24);
}

.hero-form-card,
.ocf-form-shell {
    border: 1px solid var(--ocf-border);
    border-radius: var(--radius);
    background: #fffaf1;
    box-shadow: var(--card-shadow);
}

.ocf-hero__form .hero-form-card {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.ocf-hero__form .hero-form-card,
.ocf-hero__form .hero-form-title,
.ocf-hero__form .hero-form-card p {
    color: var(--ocf-heading-alt);
}

.ocf-field input,
.ocf-field textarea,
.ocf-field select,
.bw-input,
.bw-textarea {
    border: 1px solid var(--ocf-border);
    border-radius: 2px;
    background: #fffdf8;
    color: var(--ocf-heading);
}

.ocf-hero__form .ocf-field input,
.ocf-hero__form .ocf-field textarea {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.ocf-hero__form .ocf-field input::placeholder,
.ocf-hero__form .ocf-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.68);
}

.ocf-services {
    background: var(--ocf-bg);
}

.ocf-services-header {
    align-items: end;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--ocf-border-light);
    padding-bottom: 1.25rem;
}

.ocf-svc-grid {
    gap: 1rem;
}

.ocf-svc-card {
    min-height: 260px;
    border: 1px solid var(--ocf-border-light);
    border-radius: var(--card-radius);
    background: rgba(255, 250, 241, 0.78);
    box-shadow: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ocf-svc-card:hover {
    border-color: var(--ocf-accent);
    box-shadow: var(--card-shadow-hover);
    transform: var(--card-transform-hover);
}

.ocf-svc-card-img {
    display: none;
}

.ocf-svc-card-body {
    min-height: 100%;
    padding: 1.45rem;
}

.ocf-svc-card-body::before {
    content: "";
    display: block;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 1.6rem;
    border: 1px solid var(--ocf-secondary);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(196, 161, 92, 0.22) 0 32%, transparent 34%);
}

.ocf-svc-card h3 {
    margin-bottom: 0.7rem;
    color: var(--ocf-heading);
    font-size: 1.22rem;
}

.ocf-svc-card p {
    color: var(--ocf-body);
    font-size: 0.92rem;
}

.ocf-svc-arrow {
    color: var(--ocf-accent);
}

.ocf-commitments {
    background: var(--ocf-bg-alt);
}

.ocf-commitments-grid,
.about-grid {
    align-items: center;
    gap: 3.25rem;
}

.ocf-commitments-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.ocf-commitment {
    border: 1px solid var(--ocf-border-light);
    border-radius: var(--card-radius);
    background: rgba(255, 255, 255, 0.48);
}

.ocf-commitment-num {
    color: var(--ocf-accent);
    font-family: var(--ocf-font-heading), Georgia, serif;
}

.ocf-commitments-image img,
.about-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--image-radius);
    filter: saturate(0.9);
}

.about-image-accent {
    border-color: var(--ocf-accent);
}

.about-body {
    max-width: 62ch;
}

.ocf-testimonials {
    background: var(--ocf-bg-dark);
    color: var(--ocf-body-alt);
}

.ocf-testimonials .heading-section,
.ocf-testimonials .eyebrow {
    color: var(--ocf-heading-alt);
}

.ocf-testimonial-card {
    border-color: var(--ocf-border-alt);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ocf-body-alt);
}

.ocf-service-areas {
    padding-block: var(--section-pad);
    background: var(--ocf-bg);
}

.ocf-service-areas__grid {
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
    gap: 2.5rem;
}

.ocf-service-areas__map-visual {
    border: 1px solid var(--ocf-border);
    background:
        linear-gradient(90deg, rgba(8, 30, 53, 0.08) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(0deg, rgba(8, 30, 53, 0.08) 1px, transparent 1px) 0 0 / 28px 28px,
        #efe5d5;
}

.ocf-service-areas__link {
    border-color: var(--ocf-border-light);
    background: #fffaf1;
    color: var(--ocf-heading);
}

.ocf-faq {
    background: var(--ocf-bg-alt);
}

.ocf-faq-item {
    border-color: var(--ocf-border-light);
    background: rgba(255, 255, 255, 0.54);
}

.ocf-cta {
    background: var(--ocf-bg-dark);
}

.ocf-cta__panel {
    overflow: hidden;
    border: 1px solid var(--ocf-border-alt);
    border-radius: 0;
    background: var(--ocf-bg-dark);
}

.ocf-cta__shade {
    background: rgba(6, 29, 51, 0.72);
}

.ocf-cta__inner {
    min-height: 260px;
}

.ocf-cta__title,
.ocf-cta__text,
.ocf-cta__eyebrow {
    color: var(--ocf-heading-alt);
}

.site-footer {
    background: #051726;
    color: var(--ocf-body-alt);
}

.footer-grid {
    grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(140px, 1fr));
    gap: 2rem;
}

.footer-brand-name,
.footer-heading {
    color: var(--ocf-heading-alt);
}

.footer-link-list a,
.footer-contact-links a,
.footer-address,
.footer-hours,
.footer-brand-desc,
.footer-bottom {
    color: var(--ocf-body-alt);
}

.page-header {
    min-height: 380px;
    background: var(--ocf-bg-dark);
}

.page-header--image::before {
    opacity: 0.2;
    filter: saturate(0.85);
}

.page-header-content {
    max-width: 720px;
}

.page-header .heading-section {
    color: var(--ocf-heading-alt);
}

.page-header .eyebrow {
    color: var(--ocf-secondary);
}

.ocf-detail-section,
.blog-post-section,
.contact-page,
.booking-page {
    background: var(--ocf-bg);
}

.ocf-detail-content,
.ocf-detail-sticky,
.contact-card,
.booking-card,
.post-card {
    border: 1px solid var(--ocf-border-light);
    border-radius: var(--card-radius);
    background: rgba(255, 250, 241, 0.82);
    box-shadow: var(--card-shadow);
}

.ocf-detail-sticky {
    padding: 1.35rem;
}

.post-card {
    overflow: hidden;
}

.not-found-panel {
    border: 1px solid var(--ocf-border-alt);
    background: var(--ocf-bg-dark);
    color: var(--ocf-body-alt);
    padding: 4rem 2rem;
}

.not-found-panel .heading-section,
.not-found-panel .not-found-text {
    color: var(--ocf-heading-alt);
}

@media (max-width: 980px) {
    :root {
        --text-hero: 3.25rem;
        --section-pad: 4.25rem;
    }

    .ocf-hero,
    .ocf-hero__grid {
        min-height: auto;
    }

    .ocf-hero__grid {
        grid-template-columns: 1fr;
        padding-block: 5rem 3rem;
    }

    .ocf-hero__media {
        left: 0;
        width: 100%;
        opacity: 0.22;
    }

    .ocf-hero__shade {
        background: rgba(255, 250, 241, 0.86);
    }

    .ocf-hero__form {
        max-width: 520px;
    }

    .heading-section.size-lg {
        font-size: 2.15rem;
    }

    .ocf-service-areas__grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    :root {
        --text-hero: 2.65rem;
        --section-pad: 3.5rem;
    }

    .heading-section.size-lg {
        font-size: 1.85rem;
    }

    .ocf-hero__grid {
        padding-block: 4rem 2.5rem;
    }

    .ocf-hero__form {
        width: 100%;
    }

    .ocf-services-header {
        align-items: start;
    }

    .ocf-commitments-list {
        grid-template-columns: 1fr;
    }

    .ocf-svc-card {
        min-height: 0;
    }

    .footer-grid {
        gap: 1.5rem;
    }
}
