/*
Theme Name: FarbaHub Zahid — блоки послуг
Theme URI: https://farbahub.ua/
Description: Дочірня тема для Spectra One. Додає 14 автономних блок-патернів для сторінок послуг (друк банерів): hero, види продукції, ціни, матеріали, вимоги до макета, терміни, доставка, як замовити, роботи, переваги, FAQ, відгуки, CTA, суміжні послуги. Усі блоки зібрані з базових блоків Гутенберга — текст, списки, таблиці, кнопки та зображення редагуються прямо в редакторі. Основний колір — синій.
Author: FarbaHub Zahid
Template: spectra-one
Version: 1.0.3
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: farbahub-zahid
Tags: block-patterns, business, services
*/

/* ==========================================================================
   1. ПАЛІТРА. Щоб змінити акцентний колір усіх блоків — правте лише тут.
   ========================================================================== */
:root {
  --fh-accent:        #2563EB;
  --fh-accent-strong: #1D4ED8;
  --fh-accent-alt:    #3B82F6;
  --fh-accent-soft:   #EFF4FF;
  --fh-accent-tint:   #F5F8FF;
  --fh-ink:           #111827;
  --fh-body:          #4B5563;
  --fh-muted:         #6E7787;
  --fh-outline:       #E5E7EB;
  --fh-surface:       #F7F8FA;
  --fh-warn:          #FFFBEB;
  --fh-radius:        14px;
  --fh-radius-sm:     10px;
}

/* ==========================================================================
   2. Секції
   ========================================================================== */
.fh-section { padding-block: 64px; }
.fh-section--surface { background: var(--fh-surface); }
.fh-section--soft    { background: var(--fh-accent-soft); }
.fh-section--tint    { background: var(--fh-accent-tint); }
.fh-section--dark    { background: var(--fh-ink); }
.fh-section--grad    { background: linear-gradient(286.83deg, var(--fh-accent-alt) -1.55%, var(--fh-accent-strong) 100%); }

.fh-section--dark :is(h1,h2,h3,h4),
.fh-section--grad :is(h1,h2,h3,h4) { color: #fff; }
.fh-section--dark p,
.fh-section--grad p { color: rgba(255,255,255,.82); }
.fh-section--dark .fh-eyebrow,
.fh-section--grad .fh-eyebrow { color: rgba(255,255,255,.7); }

/* ==========================================================================
   3. Типографіка блоків
   ========================================================================== */
.fh-eyebrow {
  margin: 0 0 10px; font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--fh-accent);
}
.fh-h1 { font-size: clamp(34px, 4.4vw, 50px); line-height: 1.1; font-weight: 700; color: var(--fh-ink); text-wrap: pretty; margin: 0 0 16px; }
.fh-h2 { font-size: clamp(28px, 3.6vw, 36px); line-height: 1.15; font-weight: 700; color: var(--fh-ink); text-wrap: pretty; margin: 0 0 12px; }
.fh-lead { font-size: 17px; line-height: 1.6; color: var(--fh-body); }
.fh-note { font-size: 14.5px; line-height: 1.6; color: var(--fh-muted); }
/* .fh-intro itself stays full-width (1164, same as the grid below) so its own
   position isn't re-centered by WP core; the 700px readable cap applies to its
   children instead, which (thanks to layout:flow) are plain flush-left blocks. */
.fh-intro { margin-bottom: 40px; }
.fh-intro > * { max-width: 700px; }
.fh-intro--center > * { margin-inline: auto; text-align: center; }
.fh-badge {
  display: inline-block; margin: 0 0 18px; padding: 7px 14px; border-radius: 999px;
  background: var(--fh-accent-soft); color: var(--fh-accent); font-size: 13px; font-weight: 600;
}
.fh-section--grad .fh-badge { background: rgba(255,255,255,.16); color: #fff; }

/* ==========================================================================
   4. Картки, нумеровані кроки, статистика
   ========================================================================== */
.fh-card {
  height: 100%; padding: 28px; background: #fff;
  border: 1px solid var(--fh-outline); border-radius: var(--fh-radius);
}
.fh-card--fill { background: var(--fh-surface); border-color: transparent; }
.fh-card--soft { background: var(--fh-accent-soft); border-color: transparent; }
.fh-card--warn { background: var(--fh-warn); border-color: transparent; }
.fh-card--accent { border: 2px solid var(--fh-accent); padding: 27px; }
.fh-card :is(h3,h4) { margin: 0 0 8px; font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--fh-ink); }
.fh-card p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; color: var(--fh-body); }
.fh-card p:last-child { margin-bottom: 0; }
.fh-card .fh-price { font-size: 32px; font-weight: 700; line-height: 1; color: var(--fh-ink); }

.fh-step { counter-increment: fh-step; }
.fh-steps { counter-reset: fh-step; }
.fh-step :is(h3,h4)::before {
  content: counter(fh-step); display: flex; width: 38px; height: 38px; margin-bottom: 14px;
  align-items: center; justify-content: center; border-radius: 999px;
  background: var(--fh-accent); color: #fff; font-size: 16px; font-weight: 700;
}
.fh-stat p:first-child { margin: 0 0 4px; font-size: 28px; line-height: 1; font-weight: 700; color: var(--fh-accent); }
.fh-stat p:last-child  { margin: 0; font-size: 14px; line-height: 1.45; color: var(--fh-body); }
.fh-section--grad .fh-stat p:first-child { color: #fff; font-size: 32px; }

/* ==========================================================================
   5. Списки-чипи, списки переваг, перелік міст
   ========================================================================== */
.fh-tags { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fh-tags li {
  padding: 8px 14px; border: 1px solid var(--fh-outline); border-radius: 8px;
  background: var(--fh-surface); font-size: 14px; font-weight: 500; color: var(--fh-ink);
}
.fh-tags li a { color: inherit; text-decoration: none; }
.fh-list { margin: 0; padding: 0; list-style: none; }
.fh-list li {
  position: relative; padding: 0 0 14px 26px; font-size: 15px; line-height: 1.6; color: var(--fh-body);
}
.fh-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px;
  border-radius: 999px; background: var(--fh-accent);
}
.fh-list li:last-child { padding-bottom: 0; }
.fh-geo { margin: 0; font-size: 15px; line-height: 1.75; color: var(--fh-body); }
.fh-geo--cols { columns: 3; column-gap: 26px; }

/* ==========================================================================
   6. Таблиці
   ========================================================================== */
.fh-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fh-table :is(th,td) {
  padding: 14px 18px; border: 1px solid var(--fh-outline); text-align: left; vertical-align: top;
}
.fh-table th { background: var(--fh-surface); font-weight: 600; color: var(--fh-ink); font-size: 14px; }
.fh-table td { color: var(--fh-body); }
.fh-table tbody tr td:first-child { font-weight: 600; color: var(--fh-ink); }
.fh-table tbody tr:nth-child(even) td { background: #FCFCFE; }
.fh-table figcaption { margin-top: 12px; font-size: 14px; color: var(--fh-muted); }

/* ==========================================================================
   7. FAQ (блок «Деталі»)
   ========================================================================== */
.fh-faq { border: 1px solid var(--fh-outline); border-radius: 12px; padding: 20px 24px; margin-bottom: 16px; background: #fff; }
.fh-faq summary { cursor: pointer; font-size: 16.5px; font-weight: 600; line-height: 1.4; color: var(--fh-ink); }
.fh-faq p { margin: 12px 0 0; font-size: 15px; line-height: 1.65; color: var(--fh-body); }

/* ==========================================================================
   8. Медіа, відгуки, кнопки
   ========================================================================== */
.fh-media img { display: block; width: 100%; height: auto; border-radius: var(--fh-radius); }
.fh-media figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--fh-body); text-align: left; }
.fh-quote { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.fh-quote p:first-child { font-size: 15.5px; line-height: 1.7; color: var(--fh-body); }
.fh-quote cite, .fh-author { font-style: normal; font-size: 14px; line-height: 1.45; color: var(--fh-muted); }
.fh-author strong { display: block; font-size: 15px; color: var(--fh-ink); }
.fh-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.fh-logos li {
  display: flex; align-items: center; justify-content: center; height: 60px;
  border: 1px solid var(--fh-outline); border-radius: var(--fh-radius-sm);
  font-size: 12px; color: #6E7787;
}

.fh-cta .wp-block-button__link { border-radius: 8px; padding: 15px 28px; font-weight: 600; font-size: 16px; }
.fh-cta .wp-block-button.is-style-outline .wp-block-button__link { border-width: 1px; }
.fh-linklist { list-style: none; margin: 0; padding: 0; }
.fh-linklist li { margin-bottom: 12px; }
.fh-linklist a {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 24px; background: #fff; border: 1px solid var(--fh-outline);
  border-radius: 12px; text-decoration: none; color: var(--fh-ink); font-weight: 600; font-size: 16.5px;
}
.fh-linklist a:hover { border-color: var(--fh-accent); }
.fh-linklist span { flex: none; color: var(--fh-accent); font-size: 15px; }

/* ==========================================================================
   9. Адаптив
   ========================================================================== */
@media (max-width: 781px) {
  .fh-section { padding-block: 44px; }
  .fh-geo--cols { columns: 1; }
  .fh-logos { grid-template-columns: repeat(3, 1fr); }
  .fh-table table { font-size: 14px; }
  .fh-table :is(th,td) { padding: 10px 12px; }
  .fh-linklist a { flex-wrap: wrap; }
}
