@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary: #7f1d1d; /* deep red */
    --accent: #b91c1c; /* red accent */
    --neutral-900: #171717;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

h1, h2, h3, .heading-serif {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #525252;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: #450a0a;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--neutral-900);
}

/* Custom Table for PI Page */
.law-table {
    width: 100%;
    border-collapse: collapse;
}

.law-table th {
    text-align: left;
    padding: 1rem;
    background: #f5f5f5;
    border-bottom: 2px solid #e5e5e5;
}

.law-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #eee;
}

/* Transitions & Micro-interactions */
.group:hover .group-hover\:translate-y-0 {
    transform: translateY(0);
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    animation: fadeIn 0.8s ease forwards;
}

/* ------------------------------------------------------------------
   Motion + polish (reveal animations, parallax, micro-elevation)
   ------------------------------------------------------------------ */

/* Hero overlay without changing the HTML structure */
.hero-overlay {
    position: relative;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* Subtle vignette + gradient for better text contrast */
    background:
        radial-gradient(90% 80% at 10% 20%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.00) 55%),
        linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 35%, rgba(0,0,0,0.65) 100%);
}

.parallax-media {
    will-change: transform;
    transform: translate3d(0, 0, 0) scale(1.03);
}

/* IntersectionObserver-driven reveal */
.reveal,
[data-animate] {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(2px);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
                filter 700ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform, filter;
}

.reveal.in-view,
[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Variants */
[data-animate="fade-in"] {
    transform: none;
}

[data-animate="zoom"] {
    transform: scale(0.985);
}

[data-animate="slide-left"] {
    transform: translateX(18px);
}

[data-animate="slide-right"] {
    transform: translateX(-18px);
}

/* Testimonial cards */
.testimonial-card {
    border: 1px solid #f0f0f0;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: #e7e7e7;
    box-shadow: 0 20px 40px -30px rgba(0,0,0,0.35);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }
    .reveal,
    [data-animate],
    .parallax-media,
    .btn-primary,
    .btn-secondary,
    #mobile-menu {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        filter: none !important;
    }
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Ensure images cover properly in placeholders */
.aspect-\[3\/4\], .aspect-\[4\/5\] {
    background-size: cover;
    background-position: center;
}



.hero-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
}

.practice-mini-card {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 0.9rem;
}

.icon-panel {
    padding: 1.75rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    background: rgba(255,255,255,0.03);
}

.icon-wrap {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    background: rgba(185,28,28,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card,
.detail-card,
.quote-card,
.team-card {
    background: white;
    border: 1px solid #e9e9e9;
    border-radius: 1.1rem;
    padding: 1.6rem;
    box-shadow: 0 8px 30px -26px rgba(0,0,0,0.3);
}

.service-card h3,
.detail-card h3,
.quote-card h3,
.team-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #171717;
    margin-bottom: 0.65rem;
}

.service-card p,
.detail-card p,
.quote-card p,
.team-card p {
    color: #5a5a5a;
    line-height: 1.65;
}

.service-card-lg {
    padding: 2rem;
}

.contact-mini {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border-radius: 0.95rem;
    background: white;
    border: 1px solid #ececec;
    color: #3f3f46;
}

.contact-mini svg {
    width: 1.2rem;
    height: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.team-card {
    text-align: center;
    padding-top: 2rem;
}

.team-portrait {
    width: 5.5rem;
    height: 5.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #7f1d1d, #b91c1c);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.team-role {
    color: #7f1d1d !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #262626;
}

.form-input {
    width: 100%;
    background: white;
    border: 1px solid #d4d4d8;
    border-radius: 0.85rem;
    padding: 0.9rem 1rem;
    color: #171717;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    border-color: #b91c1c;
    box-shadow: 0 0 0 4px rgba(185,28,28,0.12);
}

footer a:hover {
    color: white;
}


.attorney-photo-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(23,23,23,0.05), rgba(23,23,23,0.18));
    border: 1px solid #e7e5e4;
}

.attorney-photo-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(23,23,23,0.04) 0%, rgba(23,23,23,0.18) 100%),
      url('https://r2-bucket.flowith.net/f/70d2744e487535ad/architectural_courthouse_photography_index_0%404096x2286.jpeg') center/cover no-repeat;
    opacity: 0.30;
}

.attorney-photo-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.attorney-monogram {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #7f1d1d, #b91c1c 48%, #ea580c);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: 0 18px 30px -20px rgba(0,0,0,0.55);
}

.attorney-photo-note {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #3f3f46;
    max-width: 20rem;
}

.team-grid-card {
    background: white;
    border: 1px solid #e9e9e9;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 14px 34px -30px rgba(0,0,0,0.3);
}

.team-grid-card .copy {
    padding: 1.4rem 1.4rem 1.6rem;
}

.team-grid-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #171717;
}

.team-grid-card p {
    color: #57534e;
    line-height: 1.65;
}

.team-source-link {
    font-size: 0.8rem;
    color: #7f1d1d;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.office-card {
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    border: 1px solid #e7e5e4;
    border-radius: 1.1rem;
    padding: 1.4rem;
    box-shadow: 0 10px 28px -28px rgba(0,0,0,0.32);
}

.kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.kpi-box {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    border-radius: 1rem;
    padding: 1.1rem 1rem;
}

.kpi-box strong {
    display: block;
    color: white;
    font-size: 1.55rem;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.kpi-box span {
    display: block;
    color: rgba(255,255,255,0.78);
    font-size: 0.82rem;
    line-height: 1.45;
}

.timeline-card {
    background: white;
    border: 1px solid #e8e5e1;
    border-radius: 1rem;
    padding: 1.4rem;
    position: relative;
}

.timeline-step {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    border: 1px solid #b91c1c;
    color: #7f1d1d;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.payment-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 600;
}

.notice-box {
    border-radius: 1rem;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #7f1d1d;
    padding: 1rem 1.1rem;
}

.faq-item {
    background: white;
    border: 1px solid #ebe7e2;
    border-radius: 1rem;
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    padding: 1.1rem 1.2rem;
    font-weight: 700;
    color: #171717;
}

.faq-content {
    padding: 0 1.2rem 1.2rem;
    color: #57534e;
    line-height: 1.65;
}

.faq-icon {
    transition: transform 0.25s ease;
}

.inline-source {
    font-size: 0.78rem;
    color: #78716c;
}

@media (max-width: 900px) {
    .kpi-strip {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 640px) {
    .kpi-strip {
        grid-template-columns: 1fr;
    }
}
