/* ==========================================================================
   dobraopiekawdomu.pl, premium layer (2026-11). Same family as gute:
   Source Serif 4 headings, Source Sans 3 text, linen inset panels, soft
   rounded cards, pill buttons, deep red contact band, mega menu with a
   photo card. Loaded after components.css; content and markup unchanged
   apart from the menu card.
   ========================================================================== */

/* --- Fonts (self-hosted; latin-ext carries the Polish letters) ----------- */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/SourceSerif4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/SourceSerif4-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("../fonts/SourceSans3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("../fonts/SourceSans3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../fonts/SourceSans3-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../fonts/SourceSans3-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* --- Tokens --------------------------------------------------------------- */
:root {
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --fw-display: 600;
  --pm-linen: #F6F1E7;
  --pm-deep: #9E0E26;
  --pm-gold: #FEAE21;
  --pm-panel-radius: 40px;
  --pm-photo-radius: 28px;
  --pm-shadow: 0 30px 60px -28px rgba(20, 23, 26, .35), 0 8px 20px -12px rgba(20, 23, 26, .12);
  --pm-shadow-soft: 0 18px 40px -26px rgba(20, 23, 26, .32), 0 4px 12px -8px rgba(20, 23, 26, .08);
  --space-section: clamp(3rem, 6vw, 5rem);
}
body { font-family: var(--font-body); }
body { overflow-x: clip; }
h1, h2, h3, .c-hero__h1, .c-hero__h { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
h3, h4 { letter-spacing: -.005em; }

/* --- Buttons: pills with a warm red lift ----------------------------------- */
.btn { font-family: var(--font-body); font-weight: 700; border-radius: 999px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn--primary { box-shadow: 0 12px 24px -12px rgba(197, 18, 48, .65); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -12px rgba(197, 18, 48, .7); }

/* --- Eyebrows: small caps label with a gold dash --------------------------- */
.section__eyebrow, .c-hub-toc__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body); font-weight: 700; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pm-deep);
}
.section__eyebrow::before, .c-hub-toc__eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--pm-gold); flex: none; }

/* --- Section rhythm: tinted sections become inset linen panels ------------ */
.section--tint, .c-trust-strip {
  background: var(--pm-linen);
  margin-inline: clamp(.75rem, 2vw, 1.75rem);
  border-radius: var(--pm-panel-radius);
}
.section--tint + .section--tint { margin-top: clamp(.75rem, 2vw, 1.5rem); }

/* --- Trust strip: one white card of four facts ----------------------------- */
.c-trust-strip { padding-block: clamp(1.5rem, 3vw, 2.5rem); background: transparent; }
.c-trust-strip__grid {
  background: #fff; border-radius: 26px; box-shadow: var(--pm-shadow-soft);
  padding: clamp(1.25rem, 2.5vw, 2rem); gap: 0;
}
.c-trust-strip__tile { padding: .25rem clamp(.75rem, 1.5vw, 1.5rem); }
.c-trust-strip__tile + .c-trust-strip__tile { border-left: 1px solid rgba(20, 23, 26, .08); }
.c-trust-strip__icon { background: #FFF4DB; color: var(--color-brand-primary); border-radius: 12px; }
.c-trust-strip__title { font-family: var(--font-body); font-weight: 700; }
@media (max-width: 899px) {
  .c-trust-strip__tile + .c-trust-strip__tile { border-left: 0; }
}

/* --- Offer cards: soft card, no red frame ---------------------------------- */
.c-offer-card {
  border: 0; border-radius: 24px; box-shadow: var(--pm-shadow-soft);
}
.c-offer-card:hover { transform: translateY(-4px); box-shadow: var(--pm-shadow); }
.c-offer-card__title { font-family: var(--font-display); }
.c-offer-card__salary-main { font-family: var(--font-display); font-weight: 600; }

/* --- Service cards ("Wybierz drogę") -------------------------------------- */
.c-service-grid__card {
  border: 0; border-radius: 24px; box-shadow: var(--pm-shadow-soft); padding: clamp(1.5rem, 2.5vw, 2rem);
}
.c-service-grid__card:hover { transform: translateY(-4px); box-shadow: var(--pm-shadow); }
.c-service-grid__card-icon { background: #FDE9EC; color: var(--color-brand-primary); border-radius: 14px; }
.c-service-grid__card h3 { font-size: 1.375rem; }

/* --- Founder quote ---------------------------------------------------------- */
.c-quote-stack__photo { border-radius: var(--pm-photo-radius); box-shadow: var(--pm-shadow); aspect-ratio: 4 / 5; }
.c-quote-stack__photo img { width: 100%; height: 100%; object-fit: cover; }
.c-quote-stack__quotes blockquote, .c-quote-stack__quotes p { font-style: normal; }

/* --- Steps ------------------------------------------------------------------ */
.c-step-process__number {
  background: var(--color-brand-primary); color: #fff; border: 0;
  font-family: var(--font-display); font-weight: 600;
  box-shadow: 0 10px 20px -10px rgba(197, 18, 48, .6);
}

/* --- Team: portrait cards instead of circles -------------------------------- */
.c-team-grid__photo { max-width: 200px; aspect-ratio: 4 / 5; border-radius: 22px; box-shadow: var(--pm-shadow-soft); }
.c-team-grid__photo img { width: 100%; height: 100%; object-fit: cover; }
.c-team-grid__name { font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; }
.c-team-grid__role { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-brand-primary); }

/* --- FAQ: one quiet card per question --------------------------------------- */
.c-faq-accordion { background: none; border: 0; border-radius: 0; overflow: visible; display: grid; gap: .6rem; }
.c-faq-accordion details {
  background: #fff; border: 1px solid var(--color-ink-200); border-radius: 16px; padding: .35rem 1.35rem;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.c-faq-accordion details[open] { border-color: transparent; box-shadow: var(--pm-shadow-soft); }
.c-faq-accordion summary { font-family: var(--font-body); font-weight: 700; font-size: 1.0625rem; }

/* --- Homepage SEO block: calm headings, not red italics ---------------------- */
.c-home-seo__h { font-style: normal; color: var(--color-ink-900); font-size: clamp(1.3125rem, 2vw, 1.5rem); }

/* --- Contact band: deep red inset panel ------------------------------------- */
.c-cta-band {
  background: radial-gradient(120% 140% at 85% 0%, #C51230 0%, var(--pm-deep) 55%, #7d0b1e 100%);
  margin: clamp(1.5rem, 3vw, 2.5rem) clamp(.75rem, 2vw, 1.75rem) clamp(.75rem, 2vw, 1.75rem);
  border-radius: var(--pm-panel-radius);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.c-cta-band::before, .c-cta-band::after { display: none; }
.c-cta-band h2 { color: #fff; }
.c-cta-band p { color: rgba(255, 255, 255, .88); }
.c-cta-band .btn--primary { background: #fff; color: var(--pm-deep); border-color: #fff; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .45); }
.c-cta-band .btn--primary .icon { color: var(--pm-deep); }
.c-cta-band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); background: transparent; }
.c-cta-band .btn--ghost:hover { background: rgba(255, 255, 255, .12); }

/* --- Blog cards: photo clean, text below ------------------------------------ */
.c-blog-card { border: 0; border-radius: 24px; box-shadow: var(--pm-shadow-soft); overflow: hidden; background: #fff; }
.c-blog-card:hover { transform: translateY(-4px); box-shadow: var(--pm-shadow); }

/* ==========================================================================
   Header: pill hover, wide menu with a photo card on the right
   ========================================================================== */
@media (min-width: 1024px) {
  .c-header__inner { position: relative; }
  .c-header__nav { gap: .25rem; }
  .c-header__nav > a, .c-header__nav-trigger {
    border-radius: 999px; padding: .55rem .85rem; transition: background .2s ease, color .2s ease;
  }
  .c-header__nav > a::after, .c-header__nav-trigger::after { display: none; }
  /* white header: dark text on a warm pill */
  .c-header__nav > a:hover,
  .c-header__nav-item--has-dropdown:hover .c-header__nav-trigger,
  .c-header__nav-item--has-dropdown:focus-within .c-header__nav-trigger,
  .c-header__nav-trigger[aria-expanded="true"],
  body.home .c-header.is-scrolled .c-header__nav > a:hover,
  body.home .c-header.is-scrolled .c-header__nav-item--has-dropdown:hover .c-header__nav-trigger {
    color: var(--color-ink-900); background: #EFE8DC;
  }
  /* over the hero photo: white on a translucent pill */
  body.home .c-header:not(.is-scrolled) .c-header__nav > a:hover,
  body.home .c-header:not(.is-scrolled) .c-header__nav-item--has-dropdown:hover .c-header__nav-trigger,
  body.home .c-header:not(.is-scrolled) .c-header__nav-item--has-dropdown:focus-within .c-header__nav-trigger,
  body.home .c-header:not(.is-scrolled) .c-header__nav-trigger[aria-expanded="true"] {
    color: #fff; background: rgba(255, 255, 255, .18);
  }
  body.home .c-header:not(.is-scrolled) .c-header__nav-item--has-dropdown:hover .c-header__nav-trigger .icon { color: #fff; }

  /* panel: opens on hover/focus, stays open briefly while the mouse travels */
  .c-header__nav-item--has-dropdown { position: static; }
  .c-header__nav-trigger { position: relative; }
  .c-header__nav-trigger::before {
    content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 34px;
  }
  .c-header__dropdown {
    display: grid; position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    grid-template-columns: 1fr 1fr minmax(260px, 32%); grid-auto-rows: min-content; gap: .35rem;
    min-width: 0; padding: 1.15rem; border: 0; border-radius: 28px; background: #fff;
    box-shadow: 0 30px 70px -20px rgba(20, 23, 26, .45);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .25s;
  }
  .c-header__dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .c-header__nav-item--has-dropdown:hover .c-header__dropdown,
  .c-header__nav-item--has-dropdown:focus-within .c-header__dropdown,
  .c-header__nav-trigger[aria-expanded="true"] + .c-header__dropdown {
    display: grid; opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
  }
  /* small menu (Oferty pracy, 3 links): narrow panel under its trigger */
  .c-header__nav-item--has-dropdown:not(:has(.c-header__dropdown > a:nth-child(6))) { position: relative; }
  .c-header__nav-item--has-dropdown:not(:has(.c-header__dropdown > a:nth-child(6))) .c-header__dropdown {
    left: -1rem; right: auto; width: 620px; grid-template-columns: 1fr 250px;
  }
  .c-header__nav-item--has-dropdown:not(:has(.c-header__dropdown > a:nth-child(6))) .c-header__card { grid-column: 2; grid-row: 1 / span 3; }
  .c-header__nav-item--has-dropdown:not(:has(.c-header__dropdown > a:nth-child(6))) .c-header__dropdown > a:not(.c-header__card) { grid-column: 1; }

  /* rows */
  .c-header__dropdown > a:not(.c-header__card),
  body.home .c-header__dropdown > a:not(.c-header__card) {
    display: flex; align-items: center; gap: .85rem; padding: .7rem .85rem; border-radius: 16px;
    font-size: 1rem; font-weight: 600; color: var(--color-ink-900); white-space: normal; text-shadow: none;
  }
  .c-header__dropdown > a:not(.c-header__card)::before {
    content: var(--i, "•"); flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem;
    border-radius: 12px; background: var(--pm-linen); color: var(--color-brand-primary); font-weight: 800; font-size: .875rem;
    transition: background .2s ease, color .2s ease;
  }
  .c-header__dropdown > a:not(.c-header__card)::after {
    content: "→"; display: block; margin-left: auto; color: var(--color-brand-primary);
    opacity: 0; transform: translateX(-4px); transition: opacity .2s ease, transform .2s ease;
  }
  .c-header__dropdown > a:not(.c-header__card):hover,
  body.home .c-header__dropdown > a:not(.c-header__card):hover { background: var(--pm-linen); color: var(--color-ink-900); }
  .c-header__dropdown > a:not(.c-header__card):hover::before { background: var(--color-brand-primary); color: #fff; }
  .c-header__dropdown > a:not(.c-header__card):hover::after { opacity: 1; transform: none; }

  /* photo card */
  .c-header__card {
    grid-column: 3; grid-row: 1 / span 4; display: flex; align-items: flex-end; min-height: 200px;
    padding: 1.2rem 1.3rem; border-radius: 20px; text-decoration: none;
    color: #fff !important; font-family: var(--font-body); font-weight: 800; font-size: 1.3125rem; line-height: 1.2; text-shadow: none !important;
    background: linear-gradient(180deg, transparent 25%, rgba(158, 14, 38, .92)), var(--pm-card) center / cover;
  }
  .c-header__card::after {
    content: "→"; display: grid; place-items: center; flex: none; margin-left: auto; width: 2.4rem; height: 2.4rem;
    border-radius: 999px; background: #fff; color: var(--pm-deep); font-size: 1.05rem;
  }
  .c-header__card:hover { background: linear-gradient(180deg, transparent 15%, rgba(158, 14, 38, .95)), var(--pm-card) center / cover; }
  .c-header__card--oferty { --pm-card: url("../img/menu/oferty.webp"); }
  .c-header__card--dla-opiekunek { --pm-card: url("../img/menu/dla-opiekunek.webp"); }
}
@media (max-width: 1023px) { .c-header__card { display: none; } }

/* row marks keyed to the real links */
.c-header__dropdown a[href$="/oferty-pracy/"] { --i: "★"; }
.c-header__dropdown a[href$="/stale-oferty-pracy/"] { --i: "S"; }
.c-header__dropdown a[href$="/zglos-sie-do-pracy/"] { --i: "+"; }
.c-header__dropdown a[href$="/dla-opiekunek/"] { --i: "★"; }
.c-header__dropdown a[href$="/zarobki/"] { --i: "€"; }
.c-header__dropdown a[href$="/jak-zaczac/"] { --i: "1"; }
.c-header__dropdown a[href$="/dokumenty/"] { --i: "A1"; }
.c-header__dropdown a[href$="/praca-bez-jezyka/"] { --i: "DE"; }
.c-header__dropdown a[href$="/praca-od-zaraz/"] { --i: "!"; }
.c-header__dropdown a[href$="/dla-par/"] { --i: "2"; }

/* --- fixes after first look --------------------------------------------- */
/* trust strip was transparent, so the body's linen showed edge to edge */
.c-trust-strip { background: #fff; }
/* the long SEO block stays white so the FAQ panel is the only linen above it */
.c-home-seo.section--tint { background: #fff; margin-inline: 0; border-radius: 0; }
/* photo card label: beat the theme's .c-header__dropdown a rules */
@media (min-width: 1024px) {
  .c-header__dropdown > a.c-header__card,
  body.home .c-header__dropdown > a.c-header__card {
    padding: 1.2rem 1.3rem; border-radius: 20px; white-space: normal; min-height: 200px;
    font-family: var(--font-body); font-weight: 800; font-size: 1.3125rem; line-height: 1.2; color: #fff;
  }
  .c-header__dropdown > a.c-header__card::after {
    content: "→"; display: grid; place-items: center; flex: none; margin-left: auto; width: 2.4rem; height: 2.4rem;
    border-radius: 999px; background: #fff; color: var(--pm-deep); font-size: 1.05rem;
  }
  .c-header__dropdown > a.c-header__card:hover { color: #fff; }
}
/* the theme turns every .c-header__nav a::after into a hidden underline
   (absolute, scaleX(0)); give the dropdown its arrows back */
@media (min-width: 1024px) {
  .c-header__dropdown > a.c-header__card { align-items: flex-end; }
  .c-header__dropdown > a::after { position: static; inset: auto; transform: none; height: auto; width: auto; background: none; }
  .c-header__dropdown > a:not(.c-header__card):hover::after { transform: none; }
  .c-header__dropdown > a:not(.c-header__card)::after { transform: translateX(-4px); }
  .c-header__dropdown > a.c-header__card::after { width: 2.4rem; height: 2.4rem; background: #fff; transform: none; }
}
/* scrolled-header rules recolour link ::after; pin the dropdown's */
@media (min-width: 1024px) {
  .c-header .c-header__dropdown > a.c-header__card::after { background: #fff !important; color: var(--pm-deep) !important; }
  .c-header .c-header__dropdown > a:not(.c-header__card)::after { background: none !important; color: var(--color-brand-primary) !important; }
}
/* page ground is white like gute; linen is only for the inset panels */
body { background: #fff; }
.c-trust-strip { margin-inline: 0; border-radius: 0; }
/* the theme's dropdown-link hover swaps the whole background for flat cream,
   which wiped the photo; keep the photo and just deepen the red on hover */
@media (min-width: 1024px) {
  .c-header .c-header__dropdown > a.c-header__card:hover,
  body.home .c-header .c-header__dropdown > a.c-header__card:hover {
    background: linear-gradient(180deg, transparent 10%, rgba(158, 14, 38, .96)), var(--pm-card) center / cover !important;
    color: #fff !important;
  }
}
