/* Theme: fidemus — look recreated from the original psychology-help based site.
   Palette from the old theme options:
   text #848484 · headings #363636 · accent #b89b90 · secondary #e1d2cd
   borders #ededed/#e9e9e9 · alt bg #fafafa · footer #2d2d2d */

:root {
    --text: #000000;
    --heading: #35333a;
    --accent: #b89b90;
    --accent-dark: #a08376;
    --secondary: #e1d2cd;
    --border: #e9e9e9;
    --alt-bg: #fafafa;
    --footer-bg: #2d2d2d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
    font-weight: 300;
    font-size: 19px;
    line-height: 1.55;
    color: var(--text);
    background: #fff;
}

.inner { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4, h5, h6 {
    font-family: "Source Sans Pro", Arial, sans-serif;
    color: var(--heading);
    font-weight: 700;
    line-height: 1.2;
    margin: 1.4em 0 .6em;
}
h1 { font-size: 36px; }
h2 { font-size: 30px; font-weight: 300; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #5e5e5e; }

img { max-width: 100%; height: auto; }

hr { border: 0; border-top: 1px solid var(--border); margin: 2.2em 0; }

blockquote {
    border-left: 3px solid var(--secondary);
    margin: 1.5em 0; padding: .5em 1.2em;
    font-style: italic; color: #6d6d6d; background: var(--alt-bg);
}

table { border-collapse: collapse; width: 100%; margin: 1.5em 0; }
td, th { border: 1px solid var(--border); padding: .55em .8em; text-align: left; }
th { background: var(--alt-bg); color: var(--heading); }

/* ---------- header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    box-shadow: 0 1px 0 var(--border);
}

.header-mid .inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; min-height: 100px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px;
}

.logo img { max-height: 67px; display: block; }
.logo-text {
    font-family: "Montserrat", sans-serif; font-size: 30px; font-weight: 700;
    color: var(--heading); letter-spacing: .02em;
}

.header-contact { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.phone-note { color: var(--heading); font-weight: 400; font-size: 16px; }

.button, .button.cta {
    display: inline-block;
    background: var(--accent); color: #fff;
    padding: .6em 1.5em; border-radius: 3px;
    font-size: 14px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em;
}
.button:hover { background: var(--accent-dark); color: #fff; }

/* ---------- nav ---------- */

.header-nav { border-top: 1px solid var(--border); }
.header-nav .inner { position: relative; }

.header-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; justify-content: center; flex-wrap: wrap;
}
.header-nav li a {
    display: block; padding: 16px 22px;
    color: var(--heading);
    font-size: 14px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
}
.header-nav li a:hover, .header-nav li a.current { color: var(--accent); }

.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 760px) {
    .header-mid .inner { justify-content: center; text-align: center; }
    .nav-toggle-label {
        display: flex; flex-direction: column; gap: 5px;
        padding: 14px 20px; cursor: pointer; width: max-content; margin: 0 auto;
    }
    .nav-toggle-label span { width: 26px; height: 3px; background: var(--heading); border-radius: 2px; }
    .header-nav ul { display: none; flex-direction: column; text-align: center; padding-bottom: 10px; }
    .nav-toggle:checked ~ ul { display: flex; }
    /* label precedes ul; keep it clickable */
    .header-nav .inner { display: flex; flex-direction: column; }
}

/* ---------- hero ---------- */

.hero {
    background-color: var(--alt-bg);
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 70px 20px;
    border-bottom: 1px solid var(--border);
}
.hero .inner {
    background: rgba(255, 255, 255, .72);
    max-width: 820px;
    padding: 34px 30px;
    border-radius: 4px;
}
.hero h1 {
    font-family: "Montserrat", sans-serif;
    font-weight: 400; font-size: 42px;
    margin: 0 0 18px; color: var(--heading);
}
.hero-subtitle {
    font-family: "Titillium Web", sans-serif;
    font-weight: 300; font-size: 22px;
    text-transform: uppercase; letter-spacing: .06em;
    color: #5e5e5e; margin: 0;
}

.page-title {
    background: var(--alt-bg);
    border-bottom: 1px solid var(--border);
    text-align: center; padding: 45px 20px;
}
.page-title h1 { margin: 0; }
.page-title .hero-subtitle { margin-top: 12px; font-size: 18px; }

/* ---------- content ---------- */

article.content { padding: 50px 20px 70px; }
article.content > :first-child { margin-top: 0; }

article.content .center, article.content .aligncenter { text-align: center; }

article.content ul { padding-left: 1.3em; }
article.content li { margin: .35em 0; }

.featured {
    background: var(--alt-bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--secondary);
    padding: 1.4em 1.8em;
    margin: 1.8em 0;
}
.featured > :first-child { margin-top: 0; }
.featured > :last-child { margin-bottom: 0; }
.featured h5 { font-size: 19px; }

/* multi-column rows recreated from the original page layout */
.cols { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.cols > .col { min-width: 0; }
/* both columns start flush at the top of the row */
.cols > .col > :first-child { margin-top: 0; }
/* variant: columns centred vertically against each other */
.cols-middle { align-items: center; }
.col-1-2 { flex: 1 1 44%; }
.col-1-3 { flex: 1 1 26%; }
.col-2-3 { flex: 2 1 56%; }
.col-1-4 { flex: 1 1 18%; }
.col-3-4 { flex: 3 1 64%; }

@media (max-width: 760px) {
    .cols { display: block; }
}

/* photo strip with the "Przyjazna atmosfera" headings (original: stopka.png,
   bottom-centred, fixed attachment = light parallax while scrolling) */
.banner-strip {
    background: var(--alt-bg) url("../../../media/stopka.png") no-repeat bottom center;
    background-size: contain;
    background-attachment: fixed;
    text-align: center;
    padding: 110px 20px;
    margin: 2.5em 0;
}
.banner-strip h1 {
    font-family: "Montserrat", sans-serif;
    font-weight: 400; font-size: 42px;
    margin: 0 0 14px;
}
.banner-strip h4 {
    font-family: "Titillium Web", sans-serif;
    font-weight: 300; font-size: 20px;
    letter-spacing: .12em; margin: 0;
    color: #5e5e5e;
}

@media (max-width: 760px) {
    /* fixed backgrounds misbehave on mobile browsers */
    .banner-strip {
        background-attachment: scroll;
        background-size: cover;
        padding: 70px 20px;
    }
    .banner-strip h1 { font-size: 30px; }
}

/* ---------- footer ---------- */

.site-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, .4);
    margin-top: 40px;
}
.site-footer .inner { padding: 28px 20px; text-align: center; }
.site-footer .copyright { margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 760px) {
    body { font-size: 17px; }
    h1, .hero h1 { font-size: 30px; }
    .hero { padding: 55px 20px; }
    .hero-subtitle { font-size: 17px; }
}
