/*
 * Українці Поруч — Static Pages (Про сайт, Контакти, FAQ, Terms, Privacy)
 * Day 8 Етапу 3
 * Tokens: Georgia (headings) + Helvetica Neue (body) | #0057B7 | #FFD700 | #f8f7f3
 */

/* ===== Hero ===== */
.ukr-page-hero {
    background: linear-gradient(135deg, #0057B7 0%, #003f8a 100%);
    padding: 56px 24px 48px;
    text-align: center;
}
.ukr-page-hero__inner {
    max-width: 700px;
    margin: 0 auto;
}
.ukr-page-hero__icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}
.ukr-page-hero__title {
    color: #fff;
    font-family: 'Georgia', serif;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.25;
}
.ukr-page-hero__sub {
    color: rgba(255,255,255,0.75);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

/* ===== Body container ===== */
.ukr-page-body {
    max-width: 780px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

/* ===== Breadcrumbs ===== */
.ukr-page-breadcrumbs {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    color: #7d90aa;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.ukr-page-breadcrumbs a {
    color: #0057B7;
    text-decoration: none;
}
.ukr-page-breadcrumbs a:hover {
    text-decoration: underline;
}

/* ===== Content typography ===== */
.ukr-page-content {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #1a1a2e;
}
.ukr-page-content h2 {
    font-family: 'Georgia', serif;
    font-size: 24px;
    font-weight: 700;
    color: #0057B7;
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FFD700;
}
.ukr-page-content h3 {
    font-family: 'Georgia', serif;
    font-size: 19px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 32px 0 12px;
}
.ukr-page-content p {
    margin: 0 0 16px;
}
.ukr-page-content a {
    color: #0057B7;
    text-decoration: underline;
    text-decoration-color: rgba(0,87,183,0.3);
    text-underline-offset: 2px;
}
.ukr-page-content a:hover {
    text-decoration-color: #0057B7;
}
.ukr-page-content ul,
.ukr-page-content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}
.ukr-page-content li {
    margin-bottom: 8px;
}
.ukr-page-content strong {
    font-weight: 600;
    color: #141C2E;
}

/* ===== FAQ accordion ===== */
.ukr-faq-item {
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}
.ukr-faq-item:hover {
    box-shadow: 0 2px 12px rgba(0,50,120,0.06);
}
.ukr-faq-item summary {
    padding: 16px 20px;
    font-family: 'Georgia', serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ukr-faq-item summary::-webkit-details-marker { display: none; }
.ukr-faq-item summary::after {
    content: '+';
    font-size: 22px;
    color: #0057B7;
    font-weight: 400;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.ukr-faq-item[open] summary::after {
    content: '−';
}
.ukr-faq-item .ukr-faq-answer {
    padding: 0 20px 16px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #3a4a68;
}

/* ===== Contact cards ===== */
.ukr-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.ukr-contact-card {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}
.ukr-contact-card:hover {
    box-shadow: 0 4px 20px rgba(0,50,120,0.10);
    transform: translateY(-2px);
}
.ukr-contact-card__icon {
    font-size: 36px;
    margin-bottom: 12px;
}
.ukr-contact-card__title {
    font-family: 'Georgia', serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}
.ukr-contact-card__text {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: #3a4a68;
    line-height: 1.5;
}
.ukr-contact-card__text a {
    color: #0057B7;
    text-decoration: none;
    font-weight: 600;
}
.ukr-contact-card__text a:hover {
    text-decoration: underline;
}

/* ===== Info block (callout) ===== */
.ukr-info-block {
    background: #e8f1fb;
    border-left: 4px solid #0057B7;
    border-radius: 0 10px 10px 0;
    padding: 20px 24px;
    margin: 24px 0;
    font-size: 15px;
    line-height: 1.6;
}

/* ===== Hide Astra default page title + sidebar on pages ===== */
body.ukr-site.page .entry-header,
body.ukr-site.page .ast-page-entry-header,
body.ukr-site.page #secondary,
body.ukr-site.page .ast-separate-container .ast-article-single { display: none !important; }
body.ukr-site.page .ast-container { max-width: 100%; padding: 0; }
body.ukr-site.page #primary { width: 100%; float: none; margin: 0; padding: 0; }
body.ukr-site.page .site-content > .ast-container { display: block; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .ukr-page-hero { padding: 40px 16px 36px; }
    .ukr-page-hero__icon { font-size: 36px; }
    .ukr-page-hero__title { font-size: 24px; }
    .ukr-page-body { padding: 24px 16px 48px; }
    .ukr-page-content h2 { font-size: 20px; }
    .ukr-page-content h3 { font-size: 17px; }
    .ukr-contact-grid { grid-template-columns: 1fr; }
}

/* === BONUS: Share page (/podilytys/) === */
.ukr-share-hero {
    background: linear-gradient(135deg, #0057B7 0%, #003d82 60%, #FFD700 200%);
}
.ukr-share-page .ukr-share-h2 {
    font-family: 'Georgia', serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
    padding-bottom: 8px;
    border-bottom: 3px solid #FFD700;
    display: inline-block;
}
.ukr-share-page .ukr-share-h2-sub {
    font-family: 'Helvetica Neue', sans-serif;
    color: #777;
    font-size: 14px;
    margin: 6px 0 18px;
}
.ukr-share-quick,
.ukr-share-texts,
.ukr-share-qr,
.ukr-share-howto { margin-bottom: 36px; }

/* Quick share channels */
.ukr-share-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.ukr-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid #e8e4dc;
    background: #fff;
    color: #1a1a2e !important;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    min-height: 44px;
}
.ukr-share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    border-color: #0057B7;
}
.ukr-share-btn--native { background: #0057B7; color: #fff !important; border-color: #0057B7; }
.ukr-share-btn--native:hover { background: #003d82; }
.ukr-share-btn--wa:hover { border-color: #25D366; }
.ukr-share-btn--tg:hover { border-color: #229ED9; }
.ukr-share-btn--vb:hover { border-color: #7360F2; }
.ukr-share-btn--fb:hover { border-color: #1877F2; }
.ukr-share-btn--email:hover { border-color: #FFD700; }

/* Tabs */
.ukr-share-tabs {
    display: flex;
    gap: 6px;
    margin: 18px 0 0;
    flex-wrap: wrap;
    border-bottom: 1px solid #e8e4dc;
}
.ukr-share-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 18px;
    cursor: pointer;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #777;
    transition: color .15s, border-color .15s;
    margin-bottom: -1px;
}
.ukr-share-tab:hover { color: #0057B7; }
.ukr-share-tab.is-active {
    color: #1a1a2e;
    border-bottom-color: #FFD700;
}
.ukr-share-panel { display: none; padding-top: 16px; }
.ukr-share-panel.is-active { display: block; }
.ukr-share-text {
    width: 100%;
    box-sizing: border-box;
    padding: 18px;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #1a1a2e;
    background: #fffdf3;
    border: 2px dashed #FFD700;
    border-radius: 12px;
    resize: vertical;
    margin-bottom: 12px;
    min-height: 130px;
}
.ukr-share-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #0057B7;
    color: #fff;
    border: none;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .15s;
    min-height: 44px;
    position: relative;
}
.ukr-share-copy:hover { background: #003d82; transform: translateY(-1px); }
.ukr-share-copy__done { display: none; }
.ukr-share-copy.is-done { background: #1da050; }
.ukr-share-copy.is-done .ukr-share-copy__default { display: none; }
.ukr-share-copy.is-done .ukr-share-copy__done { display: inline; }

/* QR */
.ukr-share-qr__box {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 16px;
    margin-top: 12px;
}
.ukr-share-qr__box img {
    background: #fff;
    border-radius: 8px;
    flex-shrink: 0;
}
.ukr-share-qr__caption {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}
.ukr-share-qr__caption strong {
    font-family: 'Georgia', serif;
    font-size: 20px;
    color: #1a1a2e;
}
.ukr-share-qr__caption code {
    background: #f8f7f3;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #0057B7;
}

/* How-to list */
.ukr-share-howto__list {
    counter-reset: shareHow;
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}
.ukr-share-howto__list li {
    position: relative;
    padding: 14px 16px 14px 56px;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    margin-bottom: 10px;
    counter-increment: shareHow;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: #555;
}
.ukr-share-howto__list li::before {
    content: counter(shareHow);
    position: absolute;
    left: 14px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px;
    background: #FFD700;
    color: #1a1a2e;
    border-radius: 50%;
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ukr-share-howto__list strong {
    color: #1a1a2e;
    font-weight: 700;
}

@media (max-width: 640px) {
    .ukr-share-page .ukr-share-h2 { font-size: 19px; }
    .ukr-share-channels { gap: 8px; }
    .ukr-share-btn { padding: 11px 14px; font-size: 13px; }
    .ukr-share-tab { padding: 10px 12px; font-size: 13px; }
    .ukr-share-text { padding: 14px; font-size: 14px; min-height: 150px; }
    .ukr-share-qr__box { flex-direction: column; text-align: center; gap: 14px; }
    .ukr-share-qr__caption code { font-size: 12px; word-break: break-all; }
}
