/* ===================================================================
   Aniela Szczepkowska – Doradztwo Finansowe
   Styl: "Trust-Focused Financial Advisor" (inspiracja BlueHaven)
   Paleta: granat / piaskowy beż / biel
   =================================================================== */

:root {
    --navy: #0f2748;
    --navy-deep: #0a1c34;
    --navy-soft: #1c3a63;
    --sand: #e9ddc8;
    --sand-light: #f6f0e4;
    --beige: #c9b48f;
    --beige-dark: #b69a6a;
    --white: #ffffff;
    --text: #1f2a3a;
    --text-muted: #5c6878;
    --border: #e4e7ec;
    --shadow-sm: 0 4px 16px rgba(15, 39, 72, 0.06);
    --shadow-md: 0 16px 40px rgba(15, 39, 72, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --max: 1180px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Blokada przewijania tła, gdy otwarte jest menu mobilne */
body.nav-open { overflow: hidden; }

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    color: var(--navy);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

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

/* ===== PRZYCISKI ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    padding: 14px 28px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 17px 36px; font-size: 1rem; }

.btn-primary { background: var(--navy); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-soft); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(15, 39, 72, 0.25); }
.btn-ghost:hover { border-color: var(--navy); background: rgba(15, 39, 72, 0.04); }

.btn-light { background: var(--sand-light); color: var(--navy); }
.btn-light:hover { background: var(--white); box-shadow: var(--shadow-md); }

.btn-nav { padding: 11px 22px; font-size: 0.88rem; }

/* ===== NAGŁÓWEK ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--navy);
    color: var(--sand);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
}
.logo-sub {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a:not(.btn) {
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
    transition: color 0.2s;
}
.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 2px;
    background: var(--beige-dark);
    transition: width 0.3s var(--ease);
}
.main-nav a:not(.btn):hover { color: var(--navy); }
.main-nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 26px; height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
    position: relative;
    background:
        radial-gradient(120% 90% at 85% 10%, rgba(201, 180, 143, 0.18), transparent 60%),
        linear-gradient(160deg, var(--sand-light) 0%, #ffffff 55%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 39, 72, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
    padding: 88px 24px 96px;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--beige-dark);
    margin-bottom: 26px;
    padding: 9px 20px;
    border: 1px solid rgba(182, 154, 106, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 10px rgba(15, 39, 72, 0.04);
    line-height: 1;
}
.hero-eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--beige-dark);
    box-shadow: 0 0 0 4px rgba(182, 154, 106, 0.18);
    flex-shrink: 0;
}
.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.7rem);
    margin-bottom: 24px;
    max-width: 18ch;
}
.hero-lead {
    font-size: 1.12rem;
    color: var(--text-muted);
    max-width: 54ch;
    margin-bottom: 36px;
}
.hero-lead-highlight {
    font-weight: 700;
    color: var(--navy);
}
/* Odstęp od poprzedniego zdania w jednej linii (desktop) */
.hero-lead-highlight::before { content: ' '; }
.hero-note {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 0.98rem;
    color: var(--navy);
    background: rgba(201, 180, 143, 0.16);
    border: 1px solid rgba(182, 154, 106, 0.35);
    border-radius: 12px;
    padding: 13px 18px;
    margin-bottom: 36px;
}
.hero-note strong { font-weight: 700; }
.hero-note-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--sand);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    list-style: none;
    padding-top: 28px;
    border-top: 1px solid rgba(15, 39, 72, 0.1);
}
.hero-trust li { font-size: 0.92rem; color: var(--text-muted); }
.hero-trust strong { display: block; font-size: 1.35rem; color: var(--navy); font-family: 'Cormorant Garamond', serif; }

/* Karta hero */
.hero-card {
    position: relative;
    background: var(--navy);
    border-radius: 24px;
    padding: 6px;
    box-shadow: var(--shadow-md);
}
.hero-card-inner {
    border: 1px solid rgba(233, 221, 200, 0.18);
    border-radius: 20px;
    padding: 36px 32px;
}
.hero-card-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--sand);
    margin-bottom: 24px;
}
.hero-card-list { list-style: none; }
.hero-card-list li {
    position: relative;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.02rem;
    padding: 13px 0 13px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-card-list li:last-child { border-bottom: none; }
.hero-card-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--beige);
    box-shadow: inset 0 0 0 4px var(--navy);
}

/* ===== SEKCJE OGÓLNE ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--sand-light); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--beige-dark);
    margin-bottom: 16px;
}
.eyebrow-light { color: var(--beige); }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 18px; }
.section-intro { font-size: 1.1rem; color: var(--text-muted); }

/* ===== OFERTA ===== */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.offer-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 28px;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.offer-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.offer-icon {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    width: 52px; height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--sand-light);
    color: var(--navy);
    margin-bottom: 22px;
}
.offer-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.offer-card p { color: var(--text-muted); font-size: 0.96rem; }

/* ===== PROCES ===== */
.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.process-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 22px; }
.process-text p { color: var(--text-muted); margin-bottom: 18px; font-size: 1.04rem; }
.process-highlight {
    color: var(--navy) !important;
    font-weight: 500;
    padding: 18px 22px;
    border-left: 3px solid var(--beige-dark);
    background: rgba(201, 180, 143, 0.12);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 30px !important;
}
.process-text .btn { margin-top: 6px; }

.process-steps { display: flex; flex-direction: column; gap: 18px; }
.step {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease);
}
.step:hover { transform: translateX(6px); }
.step-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--beige-dark);
    flex-shrink: 0;
}
.step h4 { font-size: 1.2rem; margin-bottom: 4px; }
.step p { color: var(--text-muted); font-size: 0.94rem; }

/* ===== KLUCZOWE USŁUGI ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.service-card {
    position: relative;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius);
    padding: 40px 34px;
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service-card::after {
    content: '';
    position: absolute;
    right: -40px; bottom: -40px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 180, 143, 0.22), transparent 70%);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.service-icon {
    width: 60px; height: 60px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(233, 221, 200, 0.12);
    color: var(--sand);
    margin-bottom: 26px;
}
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { color: var(--white); font-size: 1.55rem; margin-bottom: 14px; }
.service-card p { color: rgba(255, 255, 255, 0.82); font-size: 1rem; position: relative; z-index: 1; }

/* ===== CTA / KONTAKT ===== */
.cta-section {
    background:
        radial-gradient(120% 120% at 10% 0%, var(--navy-soft), transparent 55%),
        var(--navy-deep);
    color: var(--white);
}
.cta-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 56px;
    align-items: center;
}
.cta-text h2 { color: var(--white); font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 18px; }
.cta-text p { color: rgba(255, 255, 255, 0.8); font-size: 1.1rem; max-width: 50ch; margin-bottom: 32px; }

.cta-contact {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 36px 34px;
}
.cta-contact h3 { color: var(--sand); font-size: 1.5rem; margin-bottom: 24px; }
.contact-list { list-style: none; }
.contact-list li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.contact-list li:last-child { border-bottom: none; }
.contact-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--beige);
    font-weight: 600;
}
.contact-list a, .contact-list span:not(.contact-label) {
    color: var(--white);
    font-size: 1.02rem;
    transition: color 0.2s;
    word-break: break-word;
}
.contact-list a:hover { color: var(--sand); }

/* ===== STOPKA ===== */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.7); padding: 44px 0; }
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--white); }
.footer-tagline { font-size: 0.8rem; letter-spacing: 0.06em; }
.footer-nav { display: flex; gap: 26px; }
.footer-nav a { font-size: 0.92rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--sand); }
.footer-copy { font-size: 0.84rem; width: 100%; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* ===== ANIMACJE WEJŚCIA ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 64px 24px 72px;
        text-align: center;
        justify-items: center;
    }
    .hero h1 { margin-left: auto; margin-right: auto; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-card { max-width: 460px; width: 100%; text-align: left; }
    .offer-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: 1fr; }
    .cta-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
    .nav-toggle { display: flex; }

    /* Nakładka przyciemniająca tło pod menu */
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(10, 28, 52, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
        z-index: 90;
    }
    .nav-backdrop.open { opacity: 1; visibility: visible; }

    .main-nav {
        position: fixed;
        top: 0; right: 0;
        height: 100%;
        height: 100dvh;
        width: min(82vw, 320px);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: var(--white);
        padding: 96px 26px 32px;
        box-shadow: -12px 0 44px rgba(15, 39, 72, 0.16);
        transform: translateX(100%);
        transition: transform 0.35s var(--ease);
        z-index: 95;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav a:not(.btn) {
        font-size: 1.08rem;
        padding: 14px 4px;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    .main-nav a:not(.btn)::after { display: none; }
    .btn-nav { width: 100%; margin-top: 16px; padding: 15px 22px; font-size: 0.95rem; }

    .nav-toggle { position: relative; z-index: 96; }

    .section { padding: 64px 0; }
    .section-head { margin-bottom: 40px; }
    .hero-inner { padding: 48px 22px 60px; }
    .hero-actions .btn { flex: 1 1 auto; }
    .process-text .btn,
    .cta-text .btn { width: 100%; }
}

@media (max-width: 560px) {
    .container { padding: 0 18px; }

    /* HERO – dopracowanie pod telefon */
    .hero-inner { padding: 40px 20px 52px; gap: 34px; }
    .hero-eyebrow {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
        padding: 8px 16px;
        margin-bottom: 20px;
        gap: 7px;
    }
    .hero h1 {
        font-size: clamp(1.95rem, 8.5vw, 2.6rem);
        line-height: 1.12;
        margin-bottom: 18px;
        max-width: 100%;
    }
    .hero-lead {
        font-size: 1.02rem;
        line-height: 1.6;
        margin-bottom: 28px;
    }
    /* "Działam online..." od nowej linii, jak po Enterze */
    .hero-lead-highlight {
        display: block;
        margin-top: 12px;
    }
    .hero-lead-highlight::before { content: none; }
    .hero-note {
        font-size: 0.92rem;
        padding: 12px 16px;
        margin-bottom: 30px;
        text-align: left;
        align-items: flex-start;
    }
    .hero-note-icon { margin-top: 1px; }
    .hero-actions { gap: 12px; margin-bottom: 30px; width: 100%; }
    .hero-trust {
        gap: 0;
        padding-top: 24px;
        justify-content: space-between;
        text-align: center;
        width: 100%;
    }
    .hero-trust li { flex: 1; font-size: 0.74rem; padding: 0 4px; }
    .hero-trust strong { font-size: 1.4rem; margin-bottom: 2px; }
    .hero-card { border-radius: 20px; }
    .hero-card-inner { padding: 28px 24px; }
    .hero-card-label { font-size: 1.35rem; margin-bottom: 18px; }
    .hero-card-list li { font-size: 0.96rem; padding: 12px 0 12px 30px; }
    .hero-card-list li::before { width: 16px; height: 16px; }

    .offer-grid { grid-template-columns: 1fr; }
    .offer-card { padding: 28px 24px; }
    .service-card { padding: 32px 26px; }
    .step { padding: 22px 22px; gap: 16px; }
    .cta-contact { padding: 28px 24px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-nav { flex-wrap: wrap; gap: 14px 22px; }
    .logo-sub { display: none; }
    .logo-name { font-size: 1.12rem; }
}

@media (max-width: 380px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .btn-lg { padding: 15px 26px; }
    .hero h1 { font-size: clamp(1.8rem, 9vw, 2.3rem); }
    .hero-trust { flex-wrap: wrap; gap: 16px; }
    .hero-trust li { flex: 1 1 40%; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
