* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: #0C2340;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nav-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.accent-line {
    width: 48px;
    height: 2px;
    background: #0072B5;
}

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.hero-enter {
    opacity: 0;
    animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-enter-portrait {
    opacity: 0;
    animation: heroFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-delay-1 { animation-delay: 0.1s; }
.hero-delay-2 { animation-delay: 0.25s; }
.hero-delay-3 { animation-delay: 0.4s; }
.hero-delay-4 { animation-delay: 0.55s; }
.hero-delay-5 { animation-delay: 0.15s; }
.hero-delay-6 { animation-delay: 0.7s; }

.stat-divider {
    position: relative;
}

.stat-divider::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 32px;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.stat-divider:last-child::after {
    display: none;
}

.mediation-highlight {
    background:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(0, 114, 181, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 85% 30%, rgba(0, 114, 181, 0.06) 0%, transparent 60%),
        #0C2340;
}

.mediation-highlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.practice-item {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.4s ease;
}

.practice-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(12, 35, 64, 0.92) 0%,
        rgba(12, 35, 64, 0.7) 50%,
        rgba(12, 35, 64, 0.45) 100%
    );
    transition: all 0.4s ease;
    z-index: 1;
}

.practice-item:hover::before {
    background: linear-gradient(
        to top,
        rgba(12, 35, 64, 0.95) 0%,
        rgba(12, 35, 64, 0.75) 50%,
        rgba(12, 35, 64, 0.5) 100%
    );
}

.practice-item > * {
    position: relative;
    z-index: 2;
}

.practice-item:hover .practice-title {
    color: #4DA3D4;
}

/* CTA section with textured navy-light background */
.cta-navy {
    background:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(0, 114, 181, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 85% 30%, rgba(0, 114, 181, 0.08) 0%, transparent 60%),
        #1B365D;
    position: relative;
    overflow: hidden;
}

.cta-navy::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.editorial-quote {
    position: relative;
    padding-left: 24px;
    border-left: 2px solid #0072B5;
}

.rate-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(28, 28, 30, 0.08);
}

.page-header-editorial {
    padding-top: 140px;
    padding-bottom: 80px;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #EFF5FB;
}

::-webkit-scrollbar-thumb {
    background: #8FA3B8;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6B849B;
}

/* Mega Menu */
.mega-menu {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s 0.35s;
    pointer-events: none;
}

.mega-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s 0s;
    pointer-events: auto;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.3);
}

.pa-chevron {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.pa-chevron.is-rotated {
    transform: rotate(180deg);
}

.mega-menu-card {
    padding-left: 16px;
    border-left: 2px solid transparent;
    transition: border-color 0.25s ease;
}

.mega-menu-card:hover {
    border-left-color: #0072B5;
}

.mobile-pa-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.3s ease;
    opacity: 0;
}

.mobile-pa-panel.is-open {
    max-height: 400px;
    opacity: 1;
}

.mobile-pa-chevron {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-pa-chevron.is-rotated {
    transform: rotate(180deg);
}

/* Hero fluid typography */
.hero-section {
    padding-top: 0;
}

.hero-text-col {
    width: 100%;
}

.hero-name {
    font-size: clamp(2.75rem, 1rem + 4vw, 4rem);
}

.hero-subtitle {
    font-size: clamp(12px, 10px + 0.25vw, 13px);
}

.hero-credential {
    font-size: clamp(10.5px, 9px + 0.25vw, 13px);
}

.hero-body {
    font-size: clamp(0.9375rem, 0.8rem + 0.2vw, 1rem);
    max-width: 24rem;
}

@media (min-width: 1024px) {
    .hero-text-col {
        width: 38%;
        margin-left: clamp(40px, 2vw + 30px, 105px);
    }

    .hero-section {
        padding-top: clamp(8rem, 6rem + 3vw, 9rem);
    }
}

@media (max-width: 1279px) and (min-width: 1024px) {
    .hero-text-col {
        width: 42%;
    }
}

/* Practice Area page header with background image */
.pa-header {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.pa-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(12, 35, 64, 0.92) 0%,
        rgba(12, 35, 64, 0.85) 50%,
        rgba(12, 35, 64, 0.78) 100%
    );
    z-index: 1;
}

.pa-header > div {
    position: relative;
    z-index: 2;
}

.pa-header .accent-line {
    background: #4DA3D4;
}

/* Practice area numbered cards */
.pa-card {
    border-top: 1px solid rgba(12, 35, 64, 0.1);
    padding-top: 1.5rem;
    transition: border-color 0.3s ease;
}

.pa-card:hover {
    border-top-color: #0072B5;
}

.pa-card-index {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 300;
    color: rgba(0, 114, 181, 0.15);
    line-height: 1;
    transition: color 0.3s ease;
}

.pa-card:hover .pa-card-index {
    color: rgba(0, 114, 181, 0.4);
}

/* Practice area stat bar dividers (light bg version) */
.pa-stat-divider {
    position: relative;
}

.pa-stat-divider::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 1px;
    background: rgba(12, 35, 64, 0.1);
}

.pa-stat-divider:last-child::after {
    display: none;
}

/* Practice area navy section with texture */
.pa-navy-section {
    background:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(0, 114, 181, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 85% 30%, rgba(0, 114, 181, 0.06) 0%, transparent 60%),
        #0C2340;
    position: relative;
    overflow: hidden;
}

.pa-navy-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Calendly embed — hide iframe scrollbar for native feel */
.calendly-inline-widget iframe {
    border: none !important;
    scrollbar-width: none;            /* Firefox */
    -ms-overflow-style: none;         /* IE/Edge */
}

.calendly-inline-widget iframe::-webkit-scrollbar {
    display: none;                    /* Chrome/Safari */
}

@media (max-width: 768px) {
    .stat-divider::after {
        display: none;
    }

    .page-header-editorial {
        padding-top: 120px;
        padding-bottom: 48px;
    }

    .hero-body {
        max-width: 100%;
    }

    .pa-stat-divider::after {
        display: none;
    }
}
