/* ═══════════════════════════════════════════════
   SECOND CHANCE FIRM — Global Styles
   Black · White · Blue
   ═══════════════════════════════════════════════ */

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

:root {
    --blue: #1A56DB;
    --blue-dark: #1340A0;
    --blue-deeper: #0C2B6E;
    --blue-light: #3B82F6;
    --blue-pale: #DBEAFE;
    --blue-ghost: #EFF6FF;
    --black: #09090B;
    --black-soft: #18181B;
    --gray-900: #27272A;
    --gray-800: #3F3F46;
    --gray-700: #52525B;
    --gray-600: #71717A;
    --gray-500: #A1A1AA;
    --gray-400: #D4D4D8;
    --gray-300: #E4E4E7;
    --gray-200: #F4F4F5;
    --gray-100: #FAFAFA;
    --white: #FFFFFF;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 90px; }

body {
    font-family: var(--font-body);
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 900px; }
.container--wide { max-width: 1400px; }

/* ── Animations ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes slideLeft { from { opacity:0; transform:translateX(-50px); } to { opacity:1; transform:translateX(0); } }
@keyframes slideRight { from { opacity:0; transform:translateX(50px); } to { opacity:1; transform:translateX(0); } }

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    line-height: 1.4;
}
.btn--primary {
    background: var(--blue);
    color: var(--white);
}
.btn--primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 86, 219, 0.35);
}
.btn--black {
    background: var(--black);
    color: var(--white);
}
.btn--black:hover {
    background: var(--gray-900);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.btn--outline {
    background: transparent;
    border: 2px solid var(--gray-400);
    color: var(--black);
}
.btn--outline:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-2px);
}
.btn--outline-white {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
}
.btn--outline-white:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}
.btn--white {
    background: var(--white);
    color: var(--blue);
}
.btn--white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn--lg { padding: 18px 40px; font-size: 1.05rem; }
.btn--sm { padding: 10px 22px; font-size: 0.85rem; }

/* ═══ TOP BAR ═══ */
.topbar {
    background: var(--black);
    padding: 10px 0;
    font-size: 0.82rem;
    color: var(--gray-500);
    letter-spacing: 0.3px;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.topbar a { color: var(--white); font-weight: 500; transition: color 0.3s; }
.topbar a:hover { color: var(--blue-light); }
.topbar__cta {
    background: var(--blue);
    color: var(--white) !important;
    padding: 6px 18px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}
.topbar__cta:hover { background: var(--blue-light); }

/* ═══ NAVBAR ═══ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--gray-300);
    transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
.navbar__logo { display: flex; align-items: center; gap: 12px; }
.navbar__logo img { height: 48px; width: auto; }
.navbar__logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--black);
    line-height: 1.2;
}
.navbar__logo-text span { color: var(--blue); }
.nav__links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav__links a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 4px 0;
    position: relative;
    transition: color 0.3s;
}
.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--blue);
    transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--black); }
.nav__links a:hover::after { width: 100%; }
.nav__links a.active { color: var(--blue); font-weight: 600; }
.nav__links a.active::after { width: 100%; }
.nav__cta {
    background: var(--blue);
    color: var(--white) !important;
    padding: 11px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
}
.nav__cta:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,86,219,0.3); }
.nav__cta::after { display: none !important; }

/* Mobile */
.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 1001;
}
.nav__toggle span {
    display: block; width: 100%; height: 2px;
    background: var(--black); border-radius: 2px;
    transition: all 0.3s; position: absolute; left: 0;
}
.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav__toggle span:nth-child(3) { bottom: 0; }
.nav__toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ═══ SECTIONS ═══ */
.section { padding: 100px 0; }
.section--gray { background: var(--gray-100); }
.section--dark { background: var(--black); color: var(--white); }
.section--blue { background: var(--blue-deeper); color: var(--white); }

.section__header { margin-bottom: 56px; }
.section__header--center { text-align: center; }
.section__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--blue);
    margin-bottom: 16px;
}
.section__label::before {
    content: '';
    width: 24px; height: 2px;
    background: var(--blue);
}
.section--dark .section__label { color: var(--blue-light); }
.section--dark .section__label::before { background: var(--blue-light); }
.section--blue .section__label { color: var(--blue-pale); }
.section--blue .section__label::before { background: var(--blue-pale); }

.section__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    line-height: 1.2;
    color: var(--black);
    margin-bottom: 16px;
}
.section--dark .section__title,
.section--blue .section__title { color: var(--white); }

.section__subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 640px;
    line-height: 1.7;
    font-weight: 400;
}
.section__header--center .section__subtitle { margin: 0 auto; }
.section--dark .section__subtitle { color: var(--gray-400); }
.section--blue .section__subtitle { color: rgba(255,255,255,0.7); }

/* ═══ PAGE HERO ═══ */
.page-hero {
    padding: 80px 0 60px;
    background: var(--black);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,86,219,0.15), transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--blue-light);
    margin-bottom: 16px;
}
.page-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 16px;
}
.page-hero__subtitle {
    font-size: 1.15rem;
    color: var(--gray-400);
    max-width: 600px;
    line-height: 1.7;
    font-weight: 400;
}

/* ═══ CTA BANNER ═══ */
.cta-banner {
    padding: 80px 0;
    background: var(--blue);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(0,0,0,0.08);
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 16px;
    line-height: 1.2;
}
.cta-banner__text {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.6;
    font-weight: 400;
}
.cta-banner__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ═══ FOOTER ═══ */
.footer {
    background: var(--black);
    color: var(--gray-400);
    padding: 64px 0 32px;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__brand img { height: 40px; filter: brightness(10); }
.footer__brand-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--white);
}
.footer__desc { font-size: 0.9rem; line-height: 1.7; color: var(--gray-500); }
.footer__heading {
    font-weight: 700;
    color: var(--white);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 12px; }
.footer__links a { color: var(--gray-500); font-size: 0.9rem; transition: color 0.3s; }
.footer__links a:hover { color: var(--blue-light); }

.footer__contact-item {
    display: flex; align-items: flex-start; gap: 10px;
    color: var(--gray-500); font-size: 0.9rem; margin-bottom: 14px; line-height: 1.5;
}
.footer__contact-item svg { flex-shrink: 0; margin-top: 2px; }
.footer__contact-item a { color: var(--blue-light); transition: color 0.3s; }
.footer__contact-item a:hover { color: var(--white); }

.footer__bottom {
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer__copy { font-size: 0.78rem; color: var(--gray-600); }
.footer__disclaimer {
    font-size: 0.72rem;
    color: var(--gray-600);
    max-width: 480px;
    text-align: right;
    line-height: 1.5;
    font-style: italic;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .section { padding: 72px 0; }
    .nav__links {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        z-index: 1000;
    }
    .nav__links.open { display: flex; }
    .nav__links a { font-size: 1.2rem; }
    .nav__toggle { display: block; }
    .topbar .container { justify-content: center; text-align: center; }
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .footer__bottom { flex-direction: column; text-align: center; }
    .footer__disclaimer { text-align: center; max-width: 100%; }
    .cta-banner { padding: 64px 0; }
}
@media (max-width: 480px) {
    .btn--lg { width: 100%; justify-content: center; }
}
