/* ════════════════════════════════════════════════════════════════════
   ECOFACTOR — Booking page  (pattern matches 2f/rd-center/)
═══════════════════════════════════════════════════════════════════════ */

:root {
  --color-white: #FFFFFF;
  --color-gray-95: #F1F3F5;
  --color-gray-d9: #D9DBDE;
  --color-gray-b0: #B0B2B5;
  --color-gray-66: #666666;
  --color-gray-52: #525252;
  --color-gray-20: #3A3A3A;
  --color-gray-10: #1F1F1F;
  --color-emerald: #3DD078;
  --color-emerald-dark: #23A859;
  --color-spring: #3AF185;
  --color-spring-10: rgba(58, 241, 133, 0.1);
  --color-spring-20: rgba(58, 241, 133, 0.2);
  --font-primary: 'Ruberoid', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition-fast: 150ms ease;
}

/* === Container (rd-center pattern: 1148px centered) === */
.container { width: 100%; max-width: 1148px; margin: 0 auto; padding: 0; }

/* === Section base (vertical padding only) === */
.bk-section { padding: 40px 0; }
.bk-section--facts { padding: 80px 0 40px; }
.bk-section--useful { padding: 40px 0 80px; }

/* === Typography === */
.bk-section-title { font-size: 32px; font-weight: 700; line-height: 1.3; color: var(--color-gray-20); margin: 0 0 40px; }
/* Section 5 has narrow phone on left; text col gap is 24 per Figma layout_SF73DW */
.bk-section--start .bk-split__text .bk-section-title { margin-bottom: 24px; }

/* ════════════════════════════════════════════════════════════════════
   SECTION 1 — Hero  (Figma: padding 0; row wrap; text padding 80 60 80 0; gap 30)
   Title: Ruberoid Bold 40 / 130% / letter 3% / UPPER
   Paragraph: Regular 16 / 150%
   Phones: 584×580
═══════════════════════════════════════════════════════════════════════ */
.bk-hero { background: linear-gradient(90deg, #3A3A3A 0%, #1F1F1F 100%); color: var(--color-white); overflow: hidden; }
/* Figma 19710:54144 content: row space-between, align-center, wrap; no gap */
.bk-hero__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
/* Figma 19710:54145 content inner column: gap 30, padding 80 60 80 0 */
.bk-hero__text { display: flex; flex-direction: column; gap: 30px; padding: 80px 60px 80px 0; flex: 1 1 0; min-width: 0; }
/* Figma 19710:54146 text frame: column align-stretch, gap 20 */
.bk-hero__text-frame { display: flex; flex-direction: column; gap: 20px; align-items: stretch; }

.bk-badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px;
  border-radius: var(--radius-lg);
  background: var(--color-spring-10);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  width: fit-content;
}
.bk-badge__icon { width: 16px; height: 16px; flex-shrink: 0; }
/* Figma style_O7WS6T: Ruberoid Regular 14 / 155% / no letter-spacing / #00A86B */
.bk-badge__text { font-family: var(--font-primary); font-size: 14px; font-weight: 400; line-height: 1.55; color: #00A86B; }

.bk-hero__title { font-family: var(--font-primary); font-size: 40px; font-weight: 700; line-height: 1.3; letter-spacing: 0.03em; text-transform: uppercase; color: var(--color-white); margin: 0; }
.bk-hero__leads { display: flex; flex-direction: column; gap: 16px; }
.bk-hero__lead { font-family: var(--font-primary); font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--color-white); margin: 0; }

.bk-hero__phones { width: 584px; height: 580px; flex-shrink: 0; }
.bk-hero__phones-img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ════════════════════════════════════════════════════════════════════
   SECTION 2 — Facts  (Figma: gap 24; rows gap 16; list gap 20)
   Lead: Medium 16 / 150% / #3A3A3A
   Row: row align-center gap 12
   Check icon: 24×24 (PNG from Figma)
   Calendar chip: 24×24 (PNG from Figma)
   Inset note: bg spring-20; left-border-only 2px solid #3DD078; padding 28; radius 12
═══════════════════════════════════════════════════════════════════════ */
.bk-facts__lead { font-family: var(--font-primary); font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--color-gray-20); margin: 0 0 20px; }
/* In section 5 (split with phone-left) lead margin is 20 too — see bk-facts__lead default */

/* Figma layout_HBPXSD: rows column gap 16
   Each row: layout_821IYL row align-center gap 12 (alignSelf stretch)
   Inside row 1: Frame 1 (layout_JUXIEI row align-center gap 12 horizontal fill)
     containing text (hug) + chip 24×24 (so chip stays NEXT to text, not pushed to right edge) */
.bk-check-list { display: flex; flex-direction: column; gap: 16px; margin: 0 0 24px; padding: 0; }
.bk-check-row { display: flex; align-items: center; gap: 12px; }
.bk-check-row__icon { width: 24px; height: 24px; flex-shrink: 0; }
.bk-check-row__body { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
/* Figma style_9P8AX8: Ruberoid Regular 16 / 150% / #3A3A3A */
.bk-check-row__text { font-family: var(--font-primary); font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--color-gray-20); flex: 0 1 auto; min-width: 0; }
.bk-check-row__text strong { font-weight: 700; }
.bk-check-row__chip { width: 24px; height: 24px; flex-shrink: 0; }

.bk-inset-note {
  background: var(--color-spring-20);
  border-left: 2px solid var(--color-emerald);
  border-radius: var(--radius-lg);
  padding: 28px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-gray-20);
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════════
   Divider (Figma 19711:51301)
   Outer: padding 10 146 (column gap 10) — container handles 146 horizontal
   Row: row align-center, gap 16, padding 30 0, height 8
     ├─ left line: horizontal fill, 1px, gradient (transparent → #B0B2B5 → transparent)
     ├─ center dot: 8×8, fill #3AF185 (spring), full circle
     └─ right line: same gradient
═══════════════════════════════════════════════════════════════════════ */
.bk-divider { padding: 10px 0; }
.bk-divider__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 30px 0;
}
.bk-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(57, 57, 57, 0) 0%, rgba(176, 178, 181, 1) 50%, rgba(57, 57, 57, 0) 100%);
}
.bk-divider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-spring);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════
   SECTION 3 — Як зробити бронювання
   Cards (CompactStepCard Figma): bg #F1F3F5; padding 20; gap 16; radius 16
   Icon: 60×60 white bg radius 12
   Title: Medium 16 / 150% / #3A3A3A
   Text: Regular 16 / 150% / #525252
   Grid: 2×2 columns gap 20
═══════════════════════════════════════════════════════════════════════ */
.bk-step-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0 0 30px; }

.bk-step-card { background: var(--color-gray-95); border-radius: var(--radius-xl); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.bk-step-card__icon { width: 60px; height: 60px; flex-shrink: 0; }
.bk-step-card__title { font-family: var(--font-primary); font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--color-gray-20); margin: 0; }
.bk-step-card__text { font-family: var(--font-primary); font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--color-gray-52); margin: 0; }

/* Phones strip (Figma: padding 52 30; bg #3A3A3A; radius 12) */
.bk-phones-strip { background: var(--color-gray-20); border-radius: var(--radius-lg); padding: 52px 30px; display: flex; align-items: center; justify-content: center; }
.bk-phones-strip__img { width: 100%; max-width: 940px; height: auto; object-fit: contain; display: block; }

/* ════════════════════════════════════════════════════════════════════
   SECTION 4/5 — Split (text + media)
   Sec 4: text-left + gray-media-right (full height); Sec 5: phone-narrow-left + text-right
═══════════════════════════════════════════════════════════════════════ */
.bk-split { display: flex; flex-wrap: wrap; gap: 30px; align-items: stretch; }
.bk-split__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.bk-split__media { flex: 1 1 0; min-width: 0; background: var(--color-gray-95); border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 418px; }
.bk-split__media--narrow { flex: 0 0 293px; max-width: 293px; min-height: 471px; }
.bk-split__media-img { width: 100%; height: auto; object-fit: contain; max-height: 100%; display: block; }

/* Numbered step list (Figma StepCard):
   Card: row align-center gap 16
   Number-column: 40 wide, 64 tall; circle 40×40 #23A859 + 2×32 vertical line below (color #F1F3F5)
   Title: Medium 16 / 150% / #3A3A3A
   Text: Regular 14 / 155% / #525252  (NOTE: 14px, not 16)
   List gap: 16 */
/* Figma layout_TYK7EP: num-steps column gap 16
   Figma layout_RAEFX0 (each step): row align-center gap 16
   Figma layout_TGSADW (body): column height fixed 64 gap 4
   So row min-height = 64 (body fixed). Circle 40×40 centered vertically at y=12..52.
   Line at (19, 40) inside 40×64 num-col, 2×32 going down past container by 8px. */
.bk-num-steps { display: flex; flex-direction: column; gap: 16px; padding: 0; margin: 0; }
.bk-num-step { display: flex; align-items: center; gap: 16px; position: relative; min-height: 64px; }
.bk-num-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: calc(50% + 20px);
  width: 2px;
  height: 32px;
  background: var(--color-gray-95);
  z-index: 0;
}
.bk-num-step__num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-emerald-dark);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.bk-num-step__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bk-num-step__title { font-family: var(--font-primary); font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--color-gray-20); margin: 0; }
.bk-num-step__text { font-family: var(--font-primary); font-size: 14px; font-weight: 400; line-height: 1.55; color: var(--color-gray-52); margin: 0; }

/* ════════════════════════════════════════════════════════════════════
   SECTION 6 — Корисно знати (3 cols grid)
═══════════════════════════════════════════════════════════════════════ */
.bk-useful-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ════════════════════════════════════════════════════════════════════
   SECTION 7 — Підтримка
   Figma: height 522; padding 80 0; bg image; content right-aligned (column align-end gap 40)
   Title: Bold 32 / 130% / #FFF
   Card: bg #FFF; radius 16; padding 24; gap 20; backdrop blur 4
   Card title: SemiBold 20 / 150% / #3A3A3A
   Card sub: Regular 16 / 150% / #3A3A3A
   Messengers row: row wrap gap 30 46
   Messenger label: Bold 16 / 135% / letter 12.5% / #3DD078; underline 1px #3DD078
   Messenger icon: 24×24
═══════════════════════════════════════════════════════════════════════ */
.bk-support {
  padding: 80px 0;
  background-image: url('/wp-content/themes/ecofactortech/assets/images/booking/support-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 522px;
  display: flex;
  align-items: stretch;
}
/* Figma layout_33CBVG: column align-stretch, gap 40, no justify-content (default flex-start)
   Content stacks from top of section (after 80px top padding). */
.bk-support__inner { display: flex; flex-direction: column; align-items: flex-end; gap: 40px; width: 100%; }
.bk-support__title { font-family: var(--font-primary); font-size: 32px; font-weight: 700; line-height: 1.3; color: var(--color-white); margin: 0; }
.bk-support__card {
  width: 100%; max-width: 520px;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex; flex-direction: column; gap: 20px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.bk-support__card-title { font-family: var(--font-primary); font-size: 20px; font-weight: 600; line-height: 1.5; color: var(--color-gray-20); margin: 0; }
.bk-support__card-sub { font-family: var(--font-primary); font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--color-gray-20); margin: 0; }
.bk-support__channels { display: flex; flex-wrap: wrap; align-items: center; row-gap: 30px; column-gap: 46px; }

.bk-msgr { display: inline-flex; align-items: center; gap: 10px; height: 48px; transition: opacity var(--transition-fast); }
.bk-msgr:hover { opacity: 0.75; }
.bk-msgr__text {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.125em;
  color: var(--color-emerald);
  border-bottom: 1px solid var(--color-emerald);
  padding-bottom: 2px;
}
.bk-msgr__icon { width: 24px; height: 24px; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════════════
   Responsive
   Desktop ≥1024:  container 1148 centered + auto margins
   Tablet 1024-768: container padding 0 40
   Mobile ≤767:    container padding 0 20 (Figma mobile spec)
═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .container { padding: 0 40px; }
}

@media (max-width: 1024px) {
  /* Hero — text stacks above phones */
  .bk-hero__text { padding: 60px 0; flex: 1 1 100%; }
  .bk-hero__phones { width: 100%; height: auto; max-width: 480px; aspect-ratio: 584/580; margin: 0 auto; padding-bottom: 24px; }
  /* Split sections — stack vertically */
  .bk-split { flex-direction: column; }
  .bk-split__media, .bk-split__media--narrow { flex: 1 1 100%; max-width: 100%; min-height: 0; height: auto; padding: 24px; }
  /* Useful 2 cols */
  .bk-useful-grid { grid-template-columns: 1fr 1fr; }
  /* Support — auto height, card full width */
  .bk-support { height: auto; min-height: 380px; }
  .bk-support__card { max-width: 100%; }
}

/* ────────────────────────────────────────────────────────────────────
   MOBILE (Figma node 19722:56154 @ width 393)
   - All sections horizontal padding 20px
   - Vertical paddings stay the same as desktop (80/40)
   - Hero text padding 80 0 → uses container padding for horizontal
   - Cards: single column
─────────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .container { padding: 0 20px; }

  /* Hero: padding 0 20 via container; inner text padding 80 0 (no right pad on mobile) */
  .bk-hero__text { padding: 60px 0 24px; }
  .bk-hero__phones { max-width: 100%; padding-bottom: 0; }

  /* Cards stack 1 col */
  .bk-step-grid { grid-template-columns: 1fr; }
  .bk-useful-grid { grid-template-columns: 1fr; }

  /* Phones strip: smaller padding on mobile */
  .bk-phones-strip { padding: 24px 12px; border-radius: 12px; }

  /* Split text/media containers stack */
  .bk-split__media,
  .bk-split__media--narrow { padding: 16px; }
  .bk-split__media--narrow .bk-split__media-img { max-width: 280px; margin: 0 auto; }

  /* Support — title still right-aligned per Figma mobile */
  .bk-support__inner { align-items: flex-end; gap: 32px; }
  .bk-support__title { text-align: right; }
  .bk-support__card { width: 100%; padding: 24px; }
  .bk-support__channels { row-gap: 24px; column-gap: 24px; }
}

/* Extra small phones */
@media (max-width: 400px) {
  .bk-hero__title { font-size: 32px; }
  .bk-section-title { font-size: 28px; }
  .bk-support__title { font-size: 28px; }
}
