/* =========================================================
   Lucyna Heller — Kancelaria ubezpieczeniowa
   Modern, responsive, accessible stylesheet
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
    /* Brand palette */
    --graphite-900: #2f2f30;
    --graphite-800: #3a3a3b;
    --graphite: #484849;
    --graphite-700: #565657;

    --gold: #D6C07A;
    --gold-dark: #b09343;   /* accessible gold for text/icons on light bg */
    --gold-soft: #f4eeda;

    /* Neutrals */
    --ink: #2b2b2d;
    --muted: #6a6a6d;
    --line: #e7e3da;
    --bg: #ffffff;
    --bg-alt: #f6f4ef;
    --bg-cream: #faf8f4;

    /* UI */
    --radius: 18px;
    --radius-lg: 24px;
    --shadow-sm: 0 6px 18px rgba(40, 40, 42, .06);
    --shadow-md: 0 16px 40px rgba(40, 40, 42, .10);
    --shadow-lg: 0 28px 56px rgba(40, 40, 42, .16);
    --maxw: 1160px;
    --ease: cubic-bezier(.22, .61, .36, 1);

    --font-body: "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 48px);
}

.section { padding: clamp(64px, 9vw, 112px) 0; }

.section-alt { background: var(--bg-alt); }

/* ---------- Accessibility ---------- */
.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 1000;
    background: var(--graphite);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

:focus-visible {
    outline: 3px solid var(--gold-dark);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; color: var(--graphite-900); }

.section-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    font-weight: 600;
    margin-bottom: 18px;
}

.section-text {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 58ch;
}

.section-head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.section-text-center { margin-inline: auto; }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--line);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-img { height: 42px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-size: 1.14rem; font-weight: 700; color: var(--graphite-900); letter-spacing: .2px; }
.logo-sub {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-top: 2px;
}

.nav { display: flex; align-items: center; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-menu a {
    display: inline-block;
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    font-size: .96rem;
    padding: 10px 14px;
    border-radius: 10px;
    transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-menu a:not(.nav-cta):hover { color: var(--gold-dark); background: var(--bg-alt); }

.nav-cta {
    background: var(--graphite);
    color: #fff !important;
    padding: 11px 20px !important;
    border-radius: 999px !important;
    margin-left: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.nav-cta:hover { background: var(--graphite-900); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--graphite);
    border-radius: 2px;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 15px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease),
                background .2s var(--ease), color .2s var(--ease);
}
.btn-primary { background: var(--gold); color: #3a3116; box-shadow: 0 12px 26px rgba(214, 192, 122, .4); }
.btn-primary:hover { background: #cbb268; transform: translateY(-3px); box-shadow: 0 18px 34px rgba(214, 192, 122, .5); }

.btn-ghost { background: transparent; color: var(--graphite-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dark); transform: translateY(-3px); background: #fff; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px);
    background:
        radial-gradient(1100px 520px at 88% -8%, rgba(214, 192, 122, .18), transparent 60%),
        radial-gradient(900px 500px at -5% 8%, rgba(72, 72, 73, .06), transparent 55%),
        var(--bg-cream);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.hero .eyebrow {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--gold-dark);
    margin-bottom: 10px;
}
.hero .eyebrow span { color: var(--graphite); }

.hero h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -.5px;
    margin-bottom: 18px;
}

.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--muted);
    max-width: 42ch;
    margin-bottom: 22px;
}

.quote {
    position: relative;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.18rem;
    color: var(--graphite-800);
    padding-left: 20px;
    border-left: 3px solid var(--gold);
    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 42px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 560px;
}
.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat dt strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--graphite-900); }
.stat dd { color: var(--muted); font-size: .86rem; margin-top: 2px; }

/* Hero image — thin hairline gold frame, subtle rounding, soft shadow */
.hero-figure { position: relative; justify-self: center; }
.hero-photo {
    position: relative;
    width: min(420px, 82vw);
    aspect-ratio: 4 / 5;
    border-radius: 10px;
    padding: 5px;
    background: #fff;
    border: 1px solid var(--gold);
    box-shadow: 0 10px 26px rgba(40, 40, 42, .10);
}
.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* =========================================================
   About
   ========================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(32px, 5vw, 64px);
    max-width: 760px;
}
.about-grid .section-text { margin-bottom: 16px; }

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 10px 18px;
    background: var(--gold-soft);
    border: 1px solid var(--gold);
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    color: var(--graphite-900);
}
.about-badge i { color: var(--gold-dark); }

/* =========================================================
   Services cards
   ========================================================= */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.card-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(150deg, var(--gold-soft), #fff);
    color: var(--gold-dark);
    font-size: 1.4rem;
    margin-bottom: 20px;
    transition: transform .28s var(--ease);
}
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }

/* =========================================================
   Why me — numbered tiles
   ========================================================= */
.benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.benefit {
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-cream);
    border: 1px solid var(--line);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.benefit-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 16px;
}
.benefit h3 { font-size: 1.16rem; margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: .96rem; }

/* =========================================================
   Contact
   ========================================================= */
.section-contact {
    background:
        radial-gradient(800px 420px at 90% 10%, rgba(214, 192, 122, .2), transparent 60%),
        linear-gradient(160deg, var(--graphite-900), var(--graphite-700));
    color: #ececec;
}
.section-eyebrow-light { color: var(--gold); }
.section-title-light { color: #fff; }
.section-text-light { color: #d3d3d5; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.contact-actions { display: grid; gap: 14px; }
.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius);
    padding: 18px 22px;
    transition: transform .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease);
}
.contact-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .12);
    border-color: var(--gold);
}
.contact-ico {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--gold);
    color: var(--graphite-900);
    font-size: 1.2rem;
}
.contact-copy { display: flex; flex-direction: column; line-height: 1.4; }
.contact-copy strong { font-size: 1.02rem; }
.contact-copy span { color: #d3d3d5; font-size: .9rem; }
.contact-arrow { margin-left: auto; color: var(--gold); transition: transform .22s var(--ease); }
.contact-card:hover .contact-arrow { transform: translateX(5px); }

/* Social icons */
.social { display: flex; gap: 12px; margin-top: 26px; }
.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.05rem;
    line-height: 1;
    transition: transform .22s var(--ease), background .22s var(--ease), color .22s var(--ease);
}
.social a i {
    display: block;
    width: 1em;
    line-height: 1;
    text-align: center;
}
.social-contact a {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
}
.social-contact a:hover { background: var(--gold); color: var(--graphite-900); transform: translateY(-4px); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    background: var(--graphite-900);
    color: #bdbdbf;
    padding-top: clamp(48px, 6vw, 72px);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}
.site-footer .logo-name { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 34ch; font-size: .95rem; }

.footer-nav h3,
.footer-contact h3 {
    font-family: var(--font-body);
    font-size: .82rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 16px;
}
.footer-nav ul,
.footer-contact ul { display: grid; gap: 10px; }
.footer-nav a,
.footer-contact a {
    text-decoration: none;
    color: #bdbdbf;
    font-size: .96rem;
    transition: color .2s var(--ease);
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--gold); }
.footer-contact li a { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact li i { color: var(--gold); width: 18px; text-align: center; }

.footer-contact .social { display: flex; flex-flow: row wrap; margin-top: 20px; }
.site-footer .social a {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
}
.site-footer .social a:hover { background: var(--gold); color: var(--graphite-900); transform: translateY(-4px); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 22px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 8px;
    font-size: .88rem;
}
.to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color .2s var(--ease);
}
.to-top:hover { color: var(--gold); }

.footer-legal { display: inline-flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-legal > a:not(.to-top) {
    text-decoration: none;
    color: #bdbdbf;
    font-weight: 500;
    transition: color .2s var(--ease);
}
.footer-legal > a:not(.to-top):hover { color: var(--gold); }

/* =========================================================
   Legal / policy page
   ========================================================= */
.legal-main { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 96px); }
.legal { max-width: 820px; margin-inline: auto; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.22rem; margin: 32px 0 10px; }
.legal p { color: var(--ink); margin-bottom: 12px; }
.legal ul { list-style: disc; margin: 0 0 14px 1.3em; }
.legal li { color: var(--ink); margin-bottom: 6px; }
.legal a { color: var(--gold-dark); }
.legal .ph { font-weight: 700; color: var(--graphite-900); background: var(--gold-soft); padding: 1px 6px; border-radius: 4px; }
.legal .note {
    background: var(--bg-cream);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 12px;
    padding: 16px 18px;
    margin: 8px 0 20px;
    color: var(--muted);
    font-size: .95rem;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    color: var(--gold-dark);
    text-decoration: none;
    font-weight: 600;
}
.back-link:hover { text-decoration: underline; }

/* =========================================================
   Scroll reveal animations
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Stagger cards inside a grid */
.cards .reveal:nth-child(2),
.benefits .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3),
.benefits .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4),
.benefits .reveal:nth-child(4) { transition-delay: .24s; }
.cards .reveal:nth-child(5) { transition-delay: .32s; }
.cards .reveal:nth-child(6) { transition-delay: .4s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content { order: 2; }
    .hero-figure { order: 1; }
    .hero .eyebrow { display: block; }
    .lead, .quote { margin-inline: auto; }
    .quote { border-left: none; border-top: 3px solid var(--gold); padding: 14px 0 0; }
    .hero-actions { justify-content: center; }
    .stats { margin-inline: auto; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .social-contact { justify-content: flex-start; }
    .benefits { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        padding: 14px clamp(20px, 5vw, 48px) 22px;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s var(--ease), transform .25s var(--ease);
    }
    .nav-menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
    .nav-menu a { padding: 14px 12px; }
    .nav-cta { margin-left: 0; text-align: center; margin-top: 6px; }

    .stats { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { justify-content: center; text-align: center; }
    .benefits { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .hero-actions .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none; }
}
