/*
 * main.css — komponenty i sekcje motywu iDEO Design.
 * Po zbudowaniu poszczególnych sekcji w 1:1 odwzorowaniu rozważ rozbicie tego
 * pliku na assets/css/sections/ i assets/css/components/ (zob. enqueue.php).
 */

/* Header styles → assets/css/sections/header.css */

/* ── Footer 1:1 z produkcji (post-6243 / template 6243)
   3 kolumny: brand+social | EKSPLORUJ (2 sub-cols z chevronami) | KONTAKT (z ikonami)
   Nagłówki: Cormorant Garamond 30/500/uppercase kolor #B58A2D
   Linki/tekst: Source Sans 3 14/400, hover #CAAB69
   Bottom: border-top 1px #B58A2D, padding 30px
─────────────────────────────────────────────────────────────────── */
.site-footer {
    background: #ffffff;
    color: #000000;
    margin-top: 0;
}

.footer-cols { padding: 60px 0 30px; }
.footer-cols__grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1.2fr 1.4fr 1.1fr;
    align-items: start;
}
@media (max-width: 900px) {
    .footer-cols__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .footer-cols__grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ── Mobile (≤ 900px) — wyśrodkowana stopka ── */
@media (max-width: 900px) {
    .footer-cols__col,
    .footer-cols__col--brand { max-width: 100% !important; text-align: center !important; }
    .footer-cols__logo { margin-left: auto; margin-right: auto; }
    .footer-cols__desc { text-align: center; }
    .footer-cols__heading { text-align: center; }
    .footer-cols__nav-grid { justify-content: center; text-align: center; }
    .footer-cols__menu { align-items: center; }
    .footer-cols__menu li { justify-content: center; }
    .footer-cols__contact { align-items: center; }
    .footer-cols__contact li { justify-content: center; }
    .footer-cols__social { justify-content: center; }
    .footer-bottom__inner { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
    .footer-bottom__copy { text-align: center; }
    .footer-bottom__credit { justify-content: center; }
}

.footer-cols__col--brand { max-width: 380px; }
.footer-cols__logo { display: inline-block; margin-bottom: 12px; }
.footer-cols__logo img,
.footer-cols__logo .custom-logo,
.footer-cols__logo .custom-logo-link img {
    max-height: 110px;
    max-width: var(--footer-logo-max-w, 150px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.footer-cols__desc {
    font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #000000;
    margin: 0 0 20px;
}
.footer-cols__desc p { margin: 0 0 8px; }
.footer-cols__desc p:last-child { margin-bottom: 0; }
.footer-cols__desc strong { font-weight: 700; }

.footer-cols__heading {
    font-family: "Cormorant Garamond", serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 36px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #B58A2D;
    margin: 0 0 24px;
}

/* EKSPLORUJ — 2 sub-kolumny linków z chevronami */
.footer-cols__nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
}
.footer-cols__menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-cols__menu li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-cols__chevron {
    flex: 0 0 auto;
    color: #CAAB69;
}
.footer-cols__menu a {
    font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #000000;
    text-decoration: none;
    transition: color var(--ideo-dur-fast) var(--ideo-ease);
}
.footer-cols__menu a:hover { color: #CAAB69; }

/* KONTAKT — adres / tel / email z ikonami */
.footer-cols__contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.footer-cols__contact li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
    font-size: 14px;
    color: #000000;
    line-height: 1.5;
}
.footer-cols__contact a {
    color: #000000;
    text-decoration: none;
    transition: color var(--ideo-dur-fast) var(--ideo-ease);
}
.footer-cols__contact a:hover { color: #CAAB69; }
.footer-cols__ico {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5eee8;
    color: #B58A2D;
}

/* Social icons brand column */
.footer-cols__social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}
.footer-cols__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e0d6c0;
    color: #B58A2D;
    border-radius: 4px;
    transition: background var(--ideo-dur-fast) var(--ideo-ease), color var(--ideo-dur-fast) var(--ideo-ease), border-color var(--ideo-dur-fast) var(--ideo-ease);
}
.footer-cols__social a:hover { background: #CAAB69; color: #ffffff; border-color: #CAAB69; }

/* ── Footer bottom (copyright + "WYKONANO: KLIKON MEDIA") ─────── */
.footer-bottom {
    border-top: 1px solid #CAAB69;
    padding: 30px 0;
    background: #ffffff;
}
.footer-bottom__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-bottom__copy {
    margin: 0;
    font-family: "Source Sans 3", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #000000;
}
.footer-bottom__credit {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "Source Sans 3", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}
.footer-bottom__credit a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #000000;
    text-decoration: none;
    transition: opacity var(--ideo-dur-fast) var(--ideo-ease);
}
.footer-bottom__credit a:hover { opacity: 0.75; }
.footer-bottom__agency-img {
    max-width: var(--agency-logo-max-w, 70px);
    max-height: 22px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.footer-bottom__credit-logo {
    font-family: "Source Sans 3", sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0;
    line-height: 1;
    color: #000000;
    display: inline-flex;
    align-items: baseline;
}
.footer-bottom__credit-on { color: #8a2be2; }    /* fioletowy „ON" jak w logo Klikon */
.footer-bottom__credit-sub {
    font-size: 9px;
    letter-spacing: 0.3em;
    color: #000000;
}

/* ── Breadcrumbs ────────────────────────────────────────── */
.breadcrumbs { padding: var(--ideo-sp-4) 0; font-size: var(--ideo-fs-sm); color: var(--ideo-color-text-muted); }
.breadcrumbs__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--ideo-sp-2); }
.breadcrumbs__item { display: flex; align-items: center; gap: var(--ideo-sp-2); }
.breadcrumbs__sep { color: var(--ideo-color-text-muted); }

/* ── Buttons (globalne — styl produkcyjny iDEO) ────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ideo-sp-3);
    padding: 1rem 2.5rem;
    min-height: 52px;
    font-family: var(--ideo-font-body);
    font-size: 0.78rem;
    font-weight: var(--ideo-fw-bold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--ideo-color-primary);
    border-radius: 0;
    background: var(--ideo-color-primary);
    color: #ffffff;
    transition: background var(--ideo-dur-fast) var(--ideo-ease), color var(--ideo-dur-fast) var(--ideo-ease), border-color var(--ideo-dur-fast) var(--ideo-ease);
    cursor: pointer;
}
.btn:hover, .btn:focus-visible {
    background: var(--ideo-color-primary-dark);
    border-color: var(--ideo-color-primary-dark);
    color: #ffffff;
}
.btn svg { flex: 0 0 auto; transition: transform var(--ideo-dur-base) var(--ideo-ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--gold { background: var(--ideo-color-primary); color: #ffffff; border-color: var(--ideo-color-primary); }
.btn--gold:hover, .btn--gold:focus-visible { background: var(--ideo-color-primary-dark); border-color: var(--ideo-color-primary-dark); color: #ffffff; }
.btn--gold-outline { background: transparent; color: var(--ideo-color-primary); }
.btn--gold-outline:hover, .btn--gold-outline:focus-visible { background: var(--ideo-color-primary); color: #ffffff; }

/* Wariant tekstowy ze strzałką (np. "WYPEŁNIJ FORMULARZ →") */
.btn--link {
    background: transparent;
    border: 0;
    color: var(--ideo-color-primary);
    padding: var(--ideo-sp-3) 0;
    min-height: auto;
    letter-spacing: 0.16em;
}
.btn--link:hover, .btn--link:focus-visible {
    background: transparent;
    color: var(--ideo-color-primary-dark);
}

/* Wariant „naturalny" — bez uppercase, lżejsza waga (np. CTA „Tak, chcę umówić...") */
.btn--natural {
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: var(--ideo-fw-regular);
    font-size: 0.95rem;
}

/* ── Page generic ───────────────────────────────────────── */
.page-content { padding: var(--ideo-sp-7) 0; }
.page-content__title { text-align: center; margin-bottom: var(--ideo-sp-6); }

/* ── Posts grid ─────────────────────────────────────────── */
.posts-grid {
    display: grid;
    gap: var(--ideo-sp-6);
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    padding: var(--ideo-sp-6) 0;
}
.post-card { display: flex; flex-direction: column; gap: var(--ideo-sp-3); }
.post-card__media img { aspect-ratio: 4/5; object-fit: cover; border-radius: var(--ideo-radius-md); }
.post-card__title { font-size: var(--ideo-fs-lg); margin: 0; }

/* ── 404 ────────────────────────────────────────────────── */
.error-404 { text-align: center; padding: var(--ideo-sp-9) 0; }
.error-404__code { font-size: var(--ideo-fs-display); margin-bottom: var(--ideo-sp-3); }
.error-404__lead { font-size: var(--ideo-fs-lg); color: var(--ideo-color-text-muted); margin-bottom: var(--ideo-sp-6); }
