/* ===== Cooper & Iravani, LLP — Stylesheet =====
   Theme: Blue & White
   ============================================== */

:root {
    --blue-50:  #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
    --blue-950: #0f1e4d;

    --navy:     #0a1f44;
    --navy-2:   #0d2a5c;

    --white:    #ffffff;
    --off:      #f8fafc;
    --gray-50:  #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 22px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
    --shadow:    0 10px 25px -10px rgba(30, 58, 138, .25), 0 4px 10px -4px rgba(30, 58, 138, .12);
    --shadow-lg: 0 30px 60px -20px rgba(30, 58, 138, .35), 0 10px 30px -10px rgba(30, 58, 138, .18);

    --maxw: 1200px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--blue-900); }

h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    color: var(--navy);
    line-height: 1.2;
    margin: 0 0 .5em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.8vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 700; font-family: var(--font-sans); letter-spacing: .02em; }

p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--blue-700);
    color: var(--white);
    box-shadow: 0 8px 20px -8px rgba(29, 78, 216, 0.55);
}
.btn-primary:hover {
    background: var(--blue-800);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -10px rgba(29, 78, 216, 0.6);
}

.btn-ghost {
    background: transparent;
    color: var(--navy);
    border-color: var(--blue-200);
}
.btn-ghost:hover {
    background: var(--blue-50);
    border-color: var(--blue-400);
    color: var(--navy);
}

.btn-white {
    background: var(--white);
    color: var(--blue-800);
}
.btn-white:hover {
    background: var(--blue-50);
    color: var(--blue-900);
    transform: translateY(-2px);
}

.btn-block { width: 100%; }

/* ===== Top bar ===== */
.topbar {
    background: var(--navy);
    color: var(--blue-100);
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.topbar-contact {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.topbar-contact a {
    color: var(--blue-100);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.topbar-contact a:hover { color: var(--white); }
.topbar-cta { display: flex; align-items: center; gap: 16px; }
.topbar-portal { color: var(--white); font-weight: 600; font-size: 0.83rem; }
.topbar-portal:hover { color: var(--blue-100); }
.topbar-socials { display: inline-flex; gap: 8px; align-items: center; }
.topbar-socials a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    transition: all .2s ease;
}
.topbar-socials a:hover {
    background: var(--blue-600);
    color: var(--white);
    transform: translateY(-1px);
}

/* ===== User dropdown (logged-in state) ===== */
.user-dropdown { position: relative; }
.user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    color: var(--white);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all .2s ease;
}
.user-trigger:hover, .user-trigger[aria-expanded="true"] {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
}
.user-avatar {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--blue-500);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.72rem;
}
.user-avatar-admin { background: var(--amber-500, #f59e0b); }
.user-name { white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.user-caret {
    color: rgba(255,255,255,0.7);
    transition: transform .2s ease;
}
.user-trigger[aria-expanded="true"] .user-caret { transform: rotate(180deg); }

.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.25), 0 4px 12px -4px rgba(15, 23, 42, 0.08);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 100;
}
.user-trigger[aria-expanded="true"] + .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.user-menu-head {
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 4px;
}
.user-menu-head strong {
    display: block;
    color: var(--navy);
    font-size: 0.92rem;
}
.user-menu-head small {
    color: var(--gray-500);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.user-menu a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--gray-700) !important;
    background: transparent !important;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500 !important;
    text-decoration: none;
    transition: all .15s ease;
}
.user-menu a:hover {
    background: var(--blue-50) !important;
    color: var(--navy) !important;
}
.user-menu a svg {
    color: var(--gray-400);
    flex-shrink: 0;
    transition: color .15s ease;
}
.user-menu a:hover svg { color: var(--blue-700); }
.user-menu hr {
    border: 0;
    border-top: 1px solid var(--gray-100);
    margin: 4px 0;
}
.user-menu .user-menu-signout {
    color: var(--red-600, #dc2626) !important;
}
.user-menu .user-menu-signout svg { color: var(--red-500, #ef4444); }
.user-menu .user-menu-signout:hover {
    background: var(--red-50, #fef2f2) !important;
    color: var(--red-600, #dc2626) !important;
}
.nav-portal { color: var(--blue-700) !important; font-weight: 600 !important; }
.nav-portal:hover { background: var(--blue-50) !important; }
.topbar-badge {
    display: inline-block;
    background: var(--blue-600);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

/* ===== Header / Nav ===== */
.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--gray-100);
    transition: box-shadow .25s ease, padding .25s ease;
}
.header.scrolled {
    box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    gap: 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--navy);
}
.logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-700), var(--navy));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 16px -6px rgba(29, 78, 216, 0.45);
}
.logo-mark span { display: inline-block; }
.logo-amp { font-size: 0.85rem; margin: 0 1px; opacity: 0.7; }
.logo-mark-light {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.logo-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
}
.logo-sub {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 2px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav ul li { display: flex; align-items: center; }
.nav ul a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--gray-700);
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease;
}
.nav ul a:hover {
    color: var(--blue-700);
    background: transparent;
}
.nav-cta { padding: 10px 22px; font-size: 0.9rem; }

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
}
.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all .3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 100px;
    background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
}
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 50% at 80% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 70%),
        radial-gradient(50% 40% at 10% 80%, rgba(29, 78, 216, 0.08) 0%, transparent 70%);
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-content { max-width: 640px; }

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--blue-700);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 18px;
    padding: 6px 14px;
    background: var(--blue-50);
    border-radius: 999px;
    border: 1px solid var(--blue-100);
}

.hero h1 {
    margin-bottom: 24px;
    color: var(--navy);
}
.hero h1 .accent {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    font-size: 1.15rem;
    color: var(--gray-600);
    max-width: 560px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 540px;
    padding-top: 36px;
    border-top: 1px solid var(--gray-200);
}
.stat-num {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--blue-700);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 0.82rem;
    color: var(--gray-600);
    line-height: 1.4;
}

.hero-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}
.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(37, 99, 235, 0.03) 100%);
    pointer-events: none;
}
.hero-card-inner { position: relative; }
.hero-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--blue-700);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--gray-100);
}
.hero-card-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hero-card-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.98rem;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-500);
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}
.hero-card-link {
    display: inline-block;
    font-weight: 600;
    color: var(--blue-700);
    font-size: 0.92rem;
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}
.section-head {
    margin-bottom: 64px;
    max-width: 700px;
}
.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.section-head h2 { margin-bottom: 16px; }
.section-lead {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

/* ===== About ===== */
.about {
    background: var(--white);
}
.about-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 60px;
    align-items: start;
}
.about-copy p {
    color: var(--gray-700);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.2em;
}
.about-values {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 36px;
}
.value {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.value-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--blue-50);
    color: var(--blue-700);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--blue-100);
}
.value h4 {
    margin: 0 0 4px;
    color: var(--navy);
    font-size: 1.05rem;
}
.value p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.about-side-card {
    background: linear-gradient(135deg, var(--navy), var(--blue-800));
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}
.about-side-card h3 {
    color: var(--white);
    margin-bottom: 14px;
    font-size: 1.4rem;
}
.about-side-card p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
}
.about-side-card .btn-primary {
    background: var(--white);
    color: var(--blue-800);
}
.about-side-card .btn-primary:hover {
    background: var(--blue-50);
    color: var(--blue-900);
}

/* ===== Services ===== */
.services {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 36px 32px;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-500), var(--blue-700));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--blue-100);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--blue-50);
    color: var(--blue-700);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border: 1px solid var(--blue-100);
    transition: all .3s ease;
}
.service-card:hover .service-icon {
    background: var(--blue-700);
    color: var(--white);
    border-color: var(--blue-700);
}
.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}
.service-card p {
    color: var(--gray-600);
    margin-bottom: 18px;
    font-size: 0.95rem;
}
.service-tag {
    display: inline-block;
    color: var(--blue-700);
    font-style: italic;
    font-size: 0.88rem;
    font-weight: 500;
    border-top: 1px solid var(--gray-100);
    padding-top: 14px;
    width: 100%;
}

/* ===== Team ===== */
.team {
    background: var(--white);
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.team-card {
    text-align: center;
    padding: 36px 28px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    transition: all .3s ease;
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--blue-100);
}
.team-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-800));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 24px -8px rgba(29, 78, 216, 0.45);
    overflow: hidden;
}
.team-avatar.has-photo {
    background: var(--gray-100);
    padding: 0;
}
.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.team-card h3 {
    margin-bottom: 4px;
    font-size: 1.15rem;
}
.team-role {
    color: var(--blue-700);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}
.team-bio {
    color: var(--gray-600);
    font-size: 0.92rem;
    margin: 0;
}

/* ===== CTA Banner ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue-800) 50%, var(--blue-700) 100%);
    color: var(--white);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
}
.cta-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.cta-inner h2 {
    color: var(--white);
    margin-bottom: 8px;
}
.cta-inner p {
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-size: 1.05rem;
}

/* ===== Contact ===== */
.contact {
    background: var(--gray-50);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.contact-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--white);
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
}
.contact-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--blue-50);
    color: var(--blue-700);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-item h4 {
    margin: 0 0 4px;
    color: var(--navy);
    font-size: 0.95rem;
}
.contact-item a, .contact-item p {
    color: var(--gray-700);
    margin: 0;
    font-size: 0.95rem;
}
.contact-item a:hover { color: var(--blue-700); }

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}
.field { display: flex; flex-direction: column; }
.field { margin-bottom: 18px; }
.form-row .field { margin-bottom: 0; }
.field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    color: var(--gray-800);
    background: var(--white);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-disclaimer {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin: 4px 0 18px;
}
.form-success {
    margin-top: 16px;
    padding: 14px 18px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    border-radius: 10px;
    font-size: 0.92rem;
    display: none;
}
.form-success.show { display: block; }

/* ===== Footer ===== */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    padding-top: 70px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 60px;
    padding-bottom: 50px;
}
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand .logo-name { color: var(--white); }
.footer-brand .logo-sub { color: rgba(255,255,255,0.5); }
.footer-brand p {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    max-width: 360px;
    line-height: 1.7;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer-cols h5 {
    color: var(--white);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 18px;
}
.footer-cols ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-cols a {
    color: rgba(255,255,255,0.7);
    font-size: 0.92rem;
}
.footer-cols a:hover { color: var(--white); }
.footer-contact li {
    color: rgba(255,255,255,0.7);
    font-size: 0.92rem;
    line-height: 1.6;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}
.footer-legal {
    display: flex;
    gap: 24px;
}
.footer-legal a {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}
.footer-legal a:hover { color: var(--white); }
.footer-credit {
    color: var(--blue-300);
    font-weight: 600;
    text-decoration: none;
}
.footer-credit:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ===== Hero slider ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    height: calc(100vh - 130px);
    max-height: 780px;
    background: var(--navy);
}
.hero-slider .slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}
.hero-slider .slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}
.hero-slider .slide.fallback {
    background: linear-gradient(135deg, var(--blue-700) 0%, var(--navy) 60%, #1e3a8a 100%);
}
.hero-slider .slide.fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 50% at 80% 20%, rgba(255,255,255,0.10) 0%, transparent 70%),
        radial-gradient(50% 40% at 10% 80%, rgba(255,255,255,0.06) 0%, transparent 70%);
}
.hero-slider .slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-slider .slide-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 760px;
    padding: 60px 24px;
    transform: translateY(20px);
    opacity: 0;
    transition: opacity .8s ease .25s, transform .8s ease .25s;
}
.hero-slider .slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}
.hero-slider .slide-content .eyebrow {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
    color: var(--white);
    backdrop-filter: blur(6px);
}
.hero-slider .slide-content h1 {
    color: var(--white);
    font-size: clamp(2.6rem, 5.2vw, 4.2rem);
    text-shadow: 0 4px 20px rgba(0,0,0,0.25);
    margin-bottom: 22px;
}
.hero-slider .slide-content h1 .accent {
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-slider .slide-content .lead {
    color: rgba(255,255,255,0.92);
    font-size: 1.2rem;
    max-width: 620px;
    margin-bottom: 32px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hero-slider .hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-ghost-light {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
    backdrop-filter: blur(6px);
}
.btn-ghost-light:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
}

.hero-slider .slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.2);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: all .25s ease;
}
.hero-slider .slide-arrow:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-50%) scale(1.06);
}
.hero-slider .slide-prev { left: 24px; }
.hero-slider .slide-next { right: 24px; }

.hero-slider .slide-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}
.hero-slider .slide-dot {
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.35);
    border: 0;
    cursor: pointer;
    transition: all .3s ease;
    padding: 0;
}
.hero-slider .slide-dot:hover { background: rgba(255,255,255,0.55); }
.hero-slider .slide-dot.active {
    background: var(--white);
    width: 56px;
}

/* ===== Stats strip (below slider on home) ===== */
.stats-strip {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 36px 0;
}
.stats-strip .hero-stats {
    border: 0;
    padding: 0;
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* ===== Page header (for subpages) ===== */
.page-header {
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 60%, var(--blue-50) 100%);
    padding: 80px 0 70px;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
    pointer-events: none;
}
.page-header > .container { position: relative; }
.page-header .eyebrow { margin-bottom: 18px; }
.page-header h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    color: var(--navy);
    margin-bottom: 14px;
}
.page-header p {
    font-size: 1.15rem;
    color: var(--gray-600);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Larger practice-area cards on dedicated page */
.service-card-large {
    padding: 44px 36px;
}
.service-card-large h3 { font-size: 1.45rem; }
.service-card-large p { font-size: 1rem; line-height: 1.7; }

/* Larger team cards on dedicated page */
.team-grid-large .team-card { padding: 44px 32px; }
.team-grid-large .team-avatar { width: 110px; height: 110px; font-size: 2rem; }

/* ===== Active nav state ===== */
.nav ul a.active {
    color: var(--blue-700);
    background: transparent;
    font-weight: 600;
}

/* ===== Nav dropdown ===== */
.nav ul li.has-dropdown { position: relative; }
.nav ul li.has-dropdown .dd-caret {
    transition: transform .2s ease, color .2s ease;
    color: var(--gray-400);
    margin-left: 1px;
}
.nav ul li.has-dropdown:hover .dd-caret,
.nav ul li.has-dropdown:focus-within .dd-caret {
    transform: rotate(180deg);
    color: var(--blue-700);
}
.nav ul li.has-dropdown > a.active .dd-caret { color: var(--blue-700); }

.nav .dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 260px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 14px 40px -10px rgba(15,23,42,0.18), 0 4px 12px -4px rgba(15,23,42,0.06);
    padding: 4px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 60;
}
.nav .dropdown li {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
}
/* Invisible bridge so the dropdown doesn't disappear when moving the cursor down */
.nav ul li.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 14px;
    z-index: 59;
}
.nav ul li.has-dropdown:hover > .dropdown,
.nav ul li.has-dropdown:focus-within > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav .dropdown li { margin: 0; }
.nav .dropdown a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--gray-800);
    background: transparent;
    line-height: 1.3;
    white-space: normal;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}
.nav .dropdown .dd-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    color: var(--white);
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--gray-100);
    margin: 0;
    padding: 0;
    order: 0;
}
.nav .dropdown .dd-text { order: 1; margin: 0; padding: 0; }
.nav .dropdown .dd-avatar.has-photo { background: var(--gray-100); }
.nav .dropdown .dd-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nav .dropdown .dd-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
    flex: 1;
}
.nav .dropdown .dd-text strong,
.nav .dropdown .dd-text small {
    text-align: left;
    width: 100%;
}
.nav .dropdown a strong {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.92rem;
    display: block;
}
.nav .dropdown a small {
    color: var(--gray-500);
    font-size: 0.72rem;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.nav .dropdown a,
.nav .dropdown a.active { background: transparent !important; font-weight: 500; }
.nav .dropdown a:hover,
.nav .dropdown a:hover.active { background: var(--blue-50) !important; color: var(--navy); }
.nav .dropdown a:hover strong { color: var(--blue-800); }

.nav .dropdown li.dropdown-foot {
    border-top: 1px solid var(--gray-100);
    margin-top: 4px;
    padding-top: 4px;
}
.nav .dropdown li.dropdown-foot a {
    color: var(--blue-700);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 14px;
    text-transform: none;
    letter-spacing: 0;
    justify-content: center;
    text-align: center;
}
.nav .dropdown li.dropdown-foot a:hover { color: var(--blue-900); }

/* Sticky-header offset so anchored cards aren't hidden behind it */
.team-card[id^="team-"] { scroll-margin-top: 100px; }

/* ===== Clickable team cards (linked to attorney profile) ===== */
a.team-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
a.team-card-link .team-card-cta {
    color: var(--blue-700);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 12px;
    opacity: 0;
    transition: opacity .25s ease;
}
a.team-card-link:hover .team-card-cta { opacity: 1; }
a.team-card-link:hover h3 { color: var(--blue-800); }

/* ===== Attorney profile page ===== */
.attorney-hero {
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 60%, var(--blue-50) 100%);
    padding: 70px 0 60px;
    border-bottom: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}
.attorney-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
    pointer-events: none;
}
.attorney-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: center;
}
.attorney-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-800));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 3.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    overflow: hidden;
    box-shadow: 0 20px 50px -20px rgba(29, 78, 216, 0.5), 0 8px 20px -8px rgba(29, 78, 216, 0.2);
    flex-shrink: 0;
}
.attorney-photo.has-photo {
    background: var(--gray-100);
}
.attorney-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.attorney-back {
    display: inline-block;
    color: var(--gray-500);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 14px;
}
.attorney-back:hover { color: var(--blue-700); }
.attorney-meta h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 6px;
}
.attorney-role {
    color: var(--blue-700);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
}
.attorney-summary {
    font-size: 1.1rem;
    color: var(--gray-700);
    max-width: 640px;
    margin-bottom: 22px;
    line-height: 1.7;
}
.attorney-contact {
    display: flex;
    gap: 22px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.attorney-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-700);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    transition: all .2s ease;
}
.attorney-contact-link:hover {
    border-color: var(--blue-300);
    color: var(--blue-700);
    background: var(--blue-50);
}
.attorney-contact-link svg { color: var(--blue-700); flex-shrink: 0; }

.attorney-body {
    background: var(--white);
    padding: 70px 0;
}
.attorney-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 60px;
    align-items: start;
}
.attorney-section {
    margin-bottom: 40px;
}
.attorney-section h2 {
    font-size: 1.45rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
}
.attorney-prose {
    color: var(--gray-700);
    line-height: 1.85;
    font-size: 1rem;
}
.attorney-prose p {
    margin: 0 0 1.1em;
}
.attorney-prose p:last-child { margin-bottom: 0; }

.attorney-side {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 24px 20px;
    position: sticky;
    top: 100px;
}
.attorney-side h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray-500);
    margin-bottom: 14px;
}
.attorney-other-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.attorney-other-list a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 12px;
    padding: 10px 10px;
    border-radius: 10px;
    color: var(--gray-800);
    transition: all .2s ease;
}
.attorney-other-list a:hover {
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.08);
}
.attorney-other-list .dd-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    color: var(--white);
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--gray-100);
}
.attorney-other-list .dd-avatar.has-photo { background: var(--gray-100); }
.attorney-other-list .dd-avatar img { width: 100%; height: 100%; object-fit: cover; }
.attorney-other-list .dd-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0; flex: 1; }
.attorney-other-list .dd-text strong,
.attorney-other-list .dd-text small { text-align: left; width: 100%; display: block; }
.attorney-other-list strong {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.92rem;
}
.attorney-other-list small {
    color: var(--gray-500);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

@media (max-width: 900px) {
    .attorney-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 28px; }
    .attorney-photo { margin: 0 auto; width: 180px; height: 180px; font-size: 2.6rem; }
    .attorney-contact { justify-content: center; }
    .attorney-grid { grid-template-columns: 1fr; gap: 32px; }
    .attorney-side { position: static; }
}

/* ===== PWA install prompt ===== */
.pwa-install {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 950;
    pointer-events: none;
}
.pwa-install-inner {
    pointer-events: auto;
    max-width: 540px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 16px 50px -16px rgba(15, 23, 42, 0.35), 0 4px 14px -4px rgba(15, 23, 42, 0.12);
    animation: pwaInstallIn .35s cubic-bezier(.4,0,.2,1);
}
@keyframes pwaInstallIn {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.pwa-install-inner img {
    border-radius: 8px;
    flex-shrink: 0;
}
.pwa-install-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.pwa-install-text strong {
    color: var(--navy);
    font-size: 0.92rem;
    font-weight: 600;
}
.pwa-install-text small {
    color: var(--gray-500);
    font-size: 0.78rem;
    margin-top: 2px;
}
.pwa-install .btn-primary {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: 999px;
    flex-shrink: 0;
}
.pwa-install-close {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--gray-400);
    padding: 4px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}
.pwa-install-close:hover { background: var(--gray-100); color: var(--gray-700); }
@media (max-width: 480px) {
    .pwa-install { bottom: 12px; left: 12px; right: 12px; }
    .pwa-install-text small { font-size: 0.72rem; }
}

/* ===== Blog ===== */
.blog-listing { background: var(--white); }

.blog-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
    justify-content: center;
}
.blog-cats a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--gray-50);
    color: var(--gray-700);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all .2s ease;
    border: 1px solid var(--gray-100);
}
.blog-cats a:hover { background: var(--blue-50); border-color: var(--blue-200); color: var(--blue-800); }
.blog-cats a.active { background: var(--blue-700); color: var(--white); border-color: var(--blue-700); }
.blog-cats .cnt {
    background: rgba(0,0,0,0.08);
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 0.72rem;
}
.blog-cats a.active .cnt { background: rgba(255,255,255,0.25); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    color: inherit;
    text-decoration: none;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--blue-100);
}

.blog-card-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--gray-100);
    position: relative;
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
    color: var(--blue-300);
    font-size: 3rem;
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card-cat {
    display: inline-block;
    color: var(--blue-700);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}
.blog-card h2 {
    font-size: 1.25rem;
    line-height: 1.35;
    margin: 0 0 12px;
    transition: color .2s ease;
}
.blog-card:hover h2 { color: var(--blue-800); }
.blog-card-excerpt {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 18px;
    flex: 1;
}
.blog-card-meta {
    font-size: 0.82rem;
    color: var(--gray-500);
    padding-top: 14px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.blog-card-meta strong { color: var(--gray-700); }
.blog-card-meta .dot { opacity: 0.5; }

.blog-empty {
    text-align: center;
    padding: 80px 20px;
}
.blog-empty h3 { margin: 14px 0 6px; }

.blog-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-100);
}

/* ===== Single blog post ===== */
.post-hero {
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 60%, var(--blue-50) 100%);
    padding: 60px 0 50px;
    border-bottom: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}
.post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37,99,235,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
    pointer-events: none;
}
.post-hero > .container { position: relative; max-width: 820px; }
.post-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin: 14px 0 22px;
}
.preview-banner {
    background: var(--amber-50, #fef3c7);
    color: var(--amber-600, #d97706);
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}
.post-hero-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.post-back {
    color: var(--gray-500);
    font-size: 0.88rem;
    font-weight: 500;
}
.post-back:hover { color: var(--blue-700); }
.post-cat {
    display: inline-block;
    background: var(--blue-700);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.post-cat:hover { background: var(--blue-800); color: var(--white); }

.post-byline {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    color: var(--gray-600);
    font-size: 0.92rem;
}
.post-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-700);
}
.post-author:hover { color: var(--blue-700); }
.post-author-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    color: var(--white);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--gray-100);
}
.post-author-avatar.has-photo { background: var(--gray-100); }
.post-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-author strong { display: block; color: var(--navy); font-size: 0.92rem; }
.post-author small { color: var(--gray-500); font-size: 0.78rem; }
.post-stats { color: var(--gray-500); font-size: 0.88rem; }

.post-feature-image {
    width: 100%;
    background: var(--gray-100);
}
.post-feature-image img {
    display: block;
    width: 100%;
    max-height: 540px;
    object-fit: cover;
    margin: 0 auto;
}

.post-body {
    padding: 60px 24px;
    max-width: 760px;
}
.post-content {
    color: var(--gray-700);
    font-size: 1.08rem;
    line-height: 1.85;
}
.post-content > * + * { margin-top: 1em; }
.post-content h2 {
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    font-size: 1.7rem;
    color: var(--navy);
}
.post-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.4em;
    font-size: 1.3rem;
    color: var(--navy);
}
.post-content p { margin: 0 0 1.2em; }
.post-content ul, .post-content ol { padding-left: 1.5em; margin: 0 0 1.2em; }
.post-content li { margin: 0.3em 0; }
.post-content a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--blue-900); }
.post-content blockquote {
    border-left: 4px solid var(--blue-500);
    padding: 4px 0 4px 22px;
    margin: 1.5em 0;
    color: var(--gray-600);
    font-style: italic;
    font-size: 1.05rem;
}
.post-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 1em 0;
}
.post-content code {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.post-content pre {
    background: var(--gray-900);
    color: #e2e8f0;
    padding: 16px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.2em 0;
}
.post-content pre code { background: transparent; padding: 0; color: inherit; }

.post-author-card {
    margin-top: 50px;
    padding: 28px;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: var(--radius);
    display: flex;
    gap: 22px;
    align-items: flex-start;
}
.post-author-card h3 a { color: var(--navy); }
.post-author-card h3 a:hover { color: var(--blue-700); }

.post-disclaimer {
    margin-top: 40px;
    padding: 18px 22px;
    background: var(--gray-50);
    border-left: 4px solid var(--gray-400);
    border-radius: 6px;
    color: var(--gray-600);
    font-size: 0.88rem;
    line-height: 1.7;
}
.post-disclaimer strong { color: var(--navy); }

.post-cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue-800) 50%, var(--blue-700) 100%);
    color: var(--white);
    padding: 60px 0;
}
.post-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.post-cta h2 { color: var(--white); margin: 0 0 6px; }
.post-cta p { color: rgba(255,255,255,0.9); margin: 0; }

.post-related {
    background: var(--gray-50);
}

@media (max-width: 900px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .post-author-card { flex-direction: column; }
}
@media (max-width: 720px) {
    .blog-grid { grid-template-columns: 1fr; }
    .post-byline { gap: 14px; }
    .post-body { padding: 40px 20px; }
    .post-content { font-size: 1rem; }
}

/* ===== Legal pages (Privacy / Terms / Disclaimer) ===== */
.legal-page { background: var(--white); }
.legal-container { max-width: 820px; }

.legal-content {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.85;
}
.legal-content > * + * { margin-top: 0.9em; }
.legal-content h2 {
    margin: 2em 0 0.6em;
    font-size: 1.5rem;
    color: var(--navy);
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gray-100);
}
.legal-content h3 {
    margin: 1.4em 0 0.4em;
    font-size: 1.15rem;
    color: var(--navy);
}
.legal-content p { margin: 0 0 1em; }
.legal-content ul, .legal-content ol {
    padding-left: 1.5em;
    margin: 0 0 1em;
}
.legal-content li { margin: 0.4em 0; }
.legal-content a {
    color: var(--blue-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.legal-content a:hover { color: var(--blue-900); }
.legal-content strong { color: var(--navy); }
.legal-content .muted { color: var(--gray-500); }

.legal-nav {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.legal-nav a {
    padding: 10px 22px;
    border: 1.5px solid var(--gray-200);
    border-radius: 999px;
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all .2s ease;
}
.legal-nav a:hover {
    background: var(--blue-50);
    border-color: var(--blue-300);
    color: var(--blue-800);
}
.legal-nav a.active {
    background: var(--blue-700);
    color: var(--white);
    border-color: var(--blue-700);
}

/* ===== FAQs ===== */
.faqs-section { background: var(--white); }
.faqs-container { max-width: 820px; }

.faqs-search {
    position: relative;
    margin-bottom: 28px;
}
.faqs-search svg {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}
.faqs-search input {
    width: 100%;
    padding: 14px 18px 14px 50px;
    border: 1.5px solid var(--gray-200);
    border-radius: 14px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--gray-50);
    transition: all .2s ease;
}
.faqs-search input:focus {
    outline: none;
    background: var(--white);
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.faq-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
    justify-content: center;
}
.faq-cats a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--gray-50);
    color: var(--gray-700);
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid var(--gray-100);
    transition: all .2s ease;
}
.faq-cats a:hover { background: var(--blue-50); border-color: var(--blue-200); color: var(--blue-800); }
.faq-cats a.active { background: var(--blue-700); color: var(--white); border-color: var(--blue-700); }
.faq-cats .cnt {
    background: rgba(0,0,0,0.08);
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 0.72rem;
}
.faq-cats a.active .cnt { background: rgba(255,255,255,0.25); }

.faq-group {
    margin-bottom: 44px;
}
.faq-group > h2 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--blue-700);
    font-weight: 700;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--white);
    margin-bottom: 10px;
    transition: all .2s ease;
    scroll-margin-top: 100px;
}
.faq-item[open] {
    border-color: var(--blue-300);
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.06);
}
.faq-item summary {
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--navy);
    transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-700); }
.faq-item[open] summary { color: var(--blue-800); border-bottom: 1px solid var(--gray-100); }
.faq-item .faq-chevron {
    flex-shrink: 0;
    color: var(--gray-400);
    transition: transform .25s ease, color .2s ease;
}
.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: var(--blue-700);
}
.faq-answer {
    padding: 16px 22px 20px;
    color: var(--gray-700);
    line-height: 1.75;
    font-size: 0.97rem;
}
.faq-answer p { margin: 0 0 1em; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.faq-answer a:hover { color: var(--blue-900); }
.faq-answer ul, .faq-answer ol { padding-left: 1.4em; margin: 0.5em 0; }
.faq-answer li { margin: 0.3em 0; }

.faq-empty, .faq-no-results {
    text-align: center;
    padding: 60px 20px;
}
.faq-empty h3, .faq-no-results h3 { margin: 14px 0 6px; }

.faq-still-questions {
    margin-top: 56px;
    text-align: center;
    padding: 36px 28px;
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 60%, var(--blue-50) 100%);
    border: 1px solid var(--blue-100);
    border-radius: 14px;
}
.faq-still-questions h2 { margin: 0 0 6px; }
.faq-still-questions p { color: var(--gray-600); margin: 0; }

/* ===== Reveal animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .8s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .hero { padding: 60px 0 80px; }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-side-card { position: static; }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 960px) {
    .hero-slider { min-height: 540px; height: 70vh; }
    .hero-slider .slide-arrow { width: 40px; height: 40px; }
    .hero-slider .slide-prev { left: 12px; }
    .hero-slider .slide-next { right: 12px; }
    .stats-strip .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .page-header { padding: 60px 0 50px; }
    .team-grid-large { grid-template-columns: repeat(2, 1fr); }
}

/* Hide the "Talk To Us" CTA button between 1024-1200 to give nav room */
@media (max-width: 1180px) {
    .nav-cta { display: none; }
    .nav ul a { padding: 8px 10px; font-size: 0.85rem; }
}

/* Switch to hamburger menu earlier — at 1024px and below */
@media (max-width: 1024px) {
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 86%;
        max-width: 360px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 100px 30px 30px;
        box-shadow: -20px 0 40px -10px rgba(15, 23, 42, 0.15);
        transform: translateX(100%);
        transition: transform .35s cubic-bezier(.4,0,.2,1);
        z-index: 60;
    }
    .nav.open { transform: translateX(0); }
    .nav ul {
        flex-direction: column;
        gap: 4px;
        margin-bottom: 24px;
    }
    .nav ul a { padding: 14px 18px; font-size: 1rem; }
    .nav-cta { display: inline-flex; align-self: stretch; text-align: center; justify-content: center; }

    /* Mobile dropdown — show inline, no hover needed */
    .nav ul li.has-dropdown::after { display: none; }
    .nav ul li.has-dropdown .dd-caret { display: none; }
    .nav .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        background: var(--gray-50);
        margin: 4px 0 8px 0;
        padding: 4px;
        border-radius: 8px;
    }
    .nav .dropdown a { padding: 8px 10px; font-size: 0.9rem; }
    .nav .dropdown a strong { font-size: 0.88rem; }
    .menu-toggle { display: flex; z-index: 70; }
    .topbar-contact { gap: 14px; }
    .topbar-badge { display: none; }
    .topbar-portal { font-size: 0.78rem; }
}

/* Tablet portrait + small laptop */
@media (max-width: 900px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid     { grid-template-columns: repeat(2, 1fr); }
    .footer-cols   { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 720px) {
    .section { padding: 70px 0; }
    .section-head { margin-bottom: 44px; }
    .hero-slider { min-height: 480px; height: auto; padding: 100px 0 110px; }
    .hero-slider .slide-content { padding: 40px 24px; }
    .hero-slider .slide-content h1 { font-size: 2.2rem; }
    .hero-slider .slide-content .lead { font-size: 1rem; }
    .hero-slider .slide-arrow { display: none; }
    .hero-slider .slide-dots { bottom: 22px; }
    .stats-strip { padding: 24px 0; }
    .stats-strip .hero-stats { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr; gap: 16px; }
    .services-grid { grid-template-columns: 1fr; }
    .team-grid     { grid-template-columns: 1fr; }
    .team-grid-large { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 28px; }
    .footer-legal { flex-wrap: wrap; gap: 14px; }
}

@media (max-width: 480px) {
    .logo-sub { display: none; }
    .logo-name { font-size: 1.05rem; }
    .topbar-contact a span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
