:root {
    --red: #b5121b;
    --red-soft: rgba(181, 18, 27, 0.12);
    --red-strong: rgba(181, 18, 27, 0.22);
    --black: #121212;
    --charcoal: #1f1f1f;
    --stone: #f0f1f4;
    --sand: #fdf7f2;
    --text: #1b1b1f;
    --muted: #6c6f77;
    --border: rgba(12, 12, 24, 0.08);
    font-family: 'Poppins', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: #fdfdfd;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(181, 18, 27, 0.08), transparent 40%),
        radial-gradient(circle at 80% 0, rgba(12, 12, 24, 0.08), transparent 45%);
    z-index: -1;
    opacity: 0.8;
}

a {
    color: var(--red);
    text-decoration: none;
}

.reveal {
    animation: rise 0.7s ease both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    width: min(1180px, 90vw);
    margin: 0 auto;
}

.site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(12, 12, 24, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
}

.brand img {
    height: 36px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 1.75rem;
    font-weight: 500;
    justify-content: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.mobile-nav {
    display: none;
    border: 1px solid rgba(12, 12, 24, 0.1);
    border-radius: 0.9rem;
    padding: 0.4rem 1rem;
    background: #fff;
    box-shadow: 0 10px 25px rgba(12, 12, 24, 0.08);
    position: relative;
}

.mobile-nav summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
}

.mobile-nav summary::-webkit-details-marker {
    display: none;
}

.mobile-nav__icon {
    position: relative;
    width: 22px;
    height: 14px;
    display: inline-block;
}

.mobile-nav__icon::before,
.mobile-nav__icon::after,
.mobile-nav__icon span {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--charcoal);
    border-radius: 999px;
}

.mobile-nav__icon::before {
    top: 0;
}

.mobile-nav__icon::after {
    bottom: 0;
}

.mobile-nav__icon span {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-nav__list {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0.8rem;
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    background: #fff;
    border: 1px solid rgba(12, 12, 24, 0.1);
    border-radius: 1rem;
    min-width: 220px;
    box-shadow: 0 18px 35px rgba(12, 12, 24, 0.12);
    z-index: 20;
}

.mobile-nav__list a {
    padding: 0.45rem 0.6rem;
    border-radius: 0.6rem;
    color: var(--charcoal);
    background: rgba(12, 12, 24, 0.04);
}

.mobile-nav__list a:hover {
    background: rgba(181, 18, 27, 0.08);
}

.main-nav a {
    color: var(--charcoal);
    position: relative;
    padding-bottom: 0.4rem;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.header-cta .btn {
    padding: 0.45rem 1.2rem;
}

.hero {
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
    background: var(--stone);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg, url('../img/lawyer.webp?v=1'));
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    filter: grayscale(15%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, var(--red-soft), transparent 55%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.7) 60%, rgba(255, 255, 255, 0.25));
}

.hero>.container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    margin-bottom: 1rem;
    color: var(--charcoal);
    line-height: 1.1;
}

.hero .eyebrow {
    color: var(--red);
    opacity: 0.85;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.75rem;
    color: var(--muted);
}

.lead {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1.5rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.hero-tags span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--red-strong);
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    color: var(--text);
    backdrop-filter: blur(4px);
}

.hero-tags i {
    color: var(--red);
}

.hero-insights {
    padding: 1.5rem 0 1.5rem 1.75rem;
    border-left: 2px solid var(--red-strong);
}

.hero-insights .mini-title {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.75rem;
    color: var(--muted);
}

.hero-insights h3 {
    font-size: 1.4rem;
    margin: 1rem 0;
    color: var(--charcoal);
}

.hero-insights p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

.section {
    padding: clamp(3rem, 8vw, 4.5rem) 0;
    background: #fff;
}

.section:nth-of-type(odd) {
    background: #fff;
}

.section:nth-of-type(even) {
    background: var(--stone);
}

.section.highlight {
    background: var(--sand);
}

.section.minimal {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.section.alt {
    background: #fff;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--red), rgba(181, 18, 27, 0));
    opacity: 0.5;
}

.home-about {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.5rem, 4vw, 2.8rem);
    align-items: center;
}

.home-about--single {
    grid-template-columns: 1fr;
}

.home-about__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-about__media {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--stone);
    box-shadow: 0 24px 50px rgba(15, 15, 25, 0.12);
}

.home-about__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(181, 18, 27, 0.08), transparent 60%);
}

.home-about__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.section-bleed {
    position: relative;
    overflow: hidden;
}

.section-bleed::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--section-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    filter: grayscale(20%);
    pointer-events: none;
}

.section-bleed::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 45%, rgba(255, 255, 255, 0.78) 100%);
    pointer-events: none;
}

.section-bleed .container {
    position: relative;
    z-index: 1;
}

.line-heading {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.line-heading::after {
    content: '';
    width: 80px;
    height: 2px;
    background: var(--black);
}

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
    gap: 2.5rem;
    align-items: start;
}

.about-hero__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-hero__media {
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--stone);
    box-shadow: 0 24px 45px rgba(15, 15, 25, 0.12);
}

.about-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.services-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.services-hero--single {
    grid-template-columns: 1fr;
}

.services-hero__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.services-hero__media {
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--stone);
    box-shadow: 0 24px 45px rgba(15, 15, 25, 0.12);
}

.services-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.service-card {
    background: #fff;
    border-radius: 1.2rem;
    border: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(15, 15, 25, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card__media {
    background: var(--stone);
}

.service-card__media img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    flex: 1;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(15, 15, 25, 0.1);
}

.service-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.5rem;
    align-items: start;
}

.service-detail--solo {
    grid-template-columns: 1fr;
}

.service-detail__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-detail__media {
    border-radius: 1.4rem;
    overflow: hidden;
    background: var(--stone);
    box-shadow: 0 24px 45px rgba(15, 15, 25, 0.12);
}

.service-detail__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.card {
    background: #fff;
    border-radius: 1.2rem;
    padding: 1.75rem;
    border: 1px solid var(--border);
    box-shadow: 0 20px 45px rgba(15, 15, 25, 0.05);
}

.minimal-card {
    border: none;
    padding: 0;
}

.minimal-card .mini-title {
    display: block;
    margin-bottom: 0.5rem;
}

.mini-title {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.75rem;
    color: var(--muted);
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pill {
    background: #f5f5f7;
    padding: 0.5rem 1.3rem;
    border-radius: 999px;
    border: 1px solid rgba(181, 18, 27, 0.12);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.pill-link {
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pill-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    background: rgba(181, 18, 27, 0.08);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card-grid--fluid {
    --card-min: 220px;
    grid-template-columns: repeat(auto-fit, minmax(min(var(--card-min), 100%), 1fr));
}

.card-grid--services {
    --card-min: 240px;
}

.card-grid--team {
    --card-min: 200px;
}

.card-grid--news {
    --card-min: 260px;
}

@media (min-width: 900px) {
    .card-grid--cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .card-grid--cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.news-card {
    border: 1px solid var(--border);
    padding: 1.3rem;
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card__media {
    margin: -1.3rem -1.3rem 1rem;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
}

.news-card__media img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 35px rgba(0, 0, 0, 0.08);
}

.news-card__title {
    color: inherit;
}

.news-card__title:hover {
    color: var(--red);
}

.news-carousel {
    position: relative;
    margin: 1.5rem 0;
    overflow: hidden;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid var(--border);
}

.carousel-track {
    display: flex;
    transition: transform 0.35s ease;
}

.carousel-slide {
    min-width: 100%;
}

.carousel-slide img {
    width: 100%;
    display: block;
    object-fit: contain;
    border-radius: 0.9rem;
    max-height: 420px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(12, 12, 24, 0.7);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
}

.carousel-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.carousel-btn.prev {
    left: 0.75rem;
}

.carousel-btn.next {
    right: 0.75rem;
}

.carousel-dots {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    padding: 0.75rem 0 0.9rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(12, 12, 24, 0.25);
    cursor: pointer;
}

.carousel-dot.active {
    background: var(--red);
}

.news-date {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: #8b8e96;
}

.team-grid .pro-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.75rem;
    display: block;
}

.pro-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pro-card h3 {
    font-size: 1.05rem;
}

.pro-card .role {
    font-weight: 600;
    color: var(--red);
    opacity: 0.85;
    font-size: 0.95rem;
}

.pro-card .contact-item {
    font-size: 0.9rem;
}

.pro-card .btn {
    margin-top: auto;
    align-self: center;
}

.pro-card .pro-bio {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1f2328;
}

.pro-card .pro-bio a {
    color: var(--red);
    text-decoration: underline;
}

.rich-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #1f2328;
}

.rich-text p {
    margin-bottom: 0.9rem;
}

.rich-text p:last-child {
    margin-bottom: 0;
}

.team-profile {
    display: grid;
    gap: 2rem;
    align-items: start;
}

.team-profile__photo {
    width: 280px;
    height: 280px;
    max-width: 280px;
    max-height: 280px;
    border-radius: 50%;
    object-fit: cover;
    justify-self: start;
}

.team-profile__content .role {
    font-weight: 600;
    color: var(--red);
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.team-profile__content .expertise-list {
    margin: 1rem 0 1.25rem;
}

@media (min-width: 768px) {
    .team-profile {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 768px) {
    .carousel-slide img {
        max-height: 280px;
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }
}

.careers-card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.75rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: #fff;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
}

.contact-intro {
    flex: 1;
    min-width: 240px;
}

.contact-form {
    flex: 1.4;
    min-width: 280px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .full {
    grid-column: 1 / -1;
}

.contact-form .alert {
    grid-column: 1 / -1;
    width: 100%;
}

.contact-form .btn {
    justify-content: center;
}

.turnstile {
    margin-top: 0.25rem;
}

.contact-cta {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 720px) {
    .contact-form {
        grid-template-columns: 1fr;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.btn:disabled,
.btn[aria-disabled='true'] {
    background: #f7c6cd;
    color: #7a1c24;
    border-color: #f7c6cd;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-primary {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    box-shadow: 0 18px 30px rgba(181, 18, 27, 0.18);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: transparent;
    color: var(--red);
    border-color: var(--red);
}

.btn-outline {
    border: 1px solid var(--red);
    color: var(--red);
    background: transparent;
}

.btn-outline:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.btn-link {
    border: none;
    padding: 0;
    color: var(--red);
    font-weight: 600;
}

.btn-link:hover,
.btn-link:focus {
    color: var(--red);
    text-decoration: none;
}

.site-footer {
    background: #0c0c12;
    color: #f6f6f8;
    padding-top: 3rem;
}

.site-footer a {
    color: inherit;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

#office-map,
.footer-map iframe {
    width: 100%;
    height: 210px;
    border: 0;
    border-radius: 0.8rem;
    margin-top: 0.7rem;
}

.map-shell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #16161d;
    overflow: hidden;
}

.map-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.map-load-btn {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #f6f6f8;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.map-load-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding: 1.2rem 0;
    text-align: center;
}

.pager {
    margin-top: 2rem;
}

.pager ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.pager a,
.pager span {
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    color: var(--black);
}

.back-link {
    display: inline-block;
    margin-bottom: 1.2rem;
}

.narrow {
    width: min(800px, 90vw);
}

@media (max-width: 768px) {
    .header-grid {
        grid-template-columns: 1fr auto;
        align-items: center;
        text-align: left;
    }

    .main-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
        justify-self: end;
    }

    .header-cta {
        display: none;
    }

    .hero {
        padding-top: 3rem;
    }

    .hero-insights {
        border-left: none;
        padding-left: 0;
    }

    .hero-tags {
        gap: 0.5rem;
    }

    .contact-card {
        flex-direction: column;
        padding: 1.5rem;
    }

    .home-about {
        grid-template-columns: 1fr;
    }

    .home-about__media {
        order: -1;
    }

    .about-hero {
        grid-template-columns: 1fr;
    }

    .about-hero__media {
        order: -1;
    }

    .services-hero {
        grid-template-columns: 1fr;
    }

    .services-hero__media {
        order: -1;
    }

    .service-detail {
        grid-template-columns: 1fr;
    }

    .service-detail__media {
        order: -1;
    }
}