/* === Conscientia / SimplyBook: typography (high priority) === */

/* Google Fonts (в SimplyBook обычно работает). Если не сработает — см. fallback ниже */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@500;600&display=swap');

/* Глобально внутри виджета/страницы бронирования */
html body,
#events, #eventForm,
#timeline-container,
.ui-widget, .ui-widget * {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: optimizeLegibility !important;
}

/* Заголовки (включая твой hero-текст, который сейчас в .dropdown-item) */
#events h3,
#eventForm #start_date-block-container h3,
#eventForm #timeline-container h3,
.dropdown-item span {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px !important;
  line-height: 1.15 !important;
}

/* Размеры: под “первый экран” */
.dropdown-item span {
  font-size: 40px !important;   /* было 24px — слишком “мелко и уныло” */
}

/* Описание/мелкий текст */
#events p.description, #events div.description,
#events p.duration, #events div.duration {
  font-size: 16px !important;
  line-height: 1.5 !important;
  opacity: 0.92 !important;
}

/* =========================================================
   TOP NAVIGATION — HOVER EFFECT
   ========================================================= */

/* Основные пункты меню:
   Mans Pieraksts / Kā Pierakstīties? / Cenrādis */
#sb_menu_list_items_container > li.menu-item > a,

/* Отдельный пункт Vairāk */
#sb_appended_menu_item > a.header__navigation-link {
  position: relative !important;
  display: inline-block !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}


/* Линия под основными пунктами */
#sb_menu_list_items_container > li.menu-item > a::after,
#sb_appended_menu_item > a.header__navigation-link::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -4px !important;

  width: 0 !important;
  height: 2px !important;

  background-color: #5f7d72 !important;
  transition: width 0.2s ease !important;
}


/* Hover / keyboard focus */
#sb_menu_list_items_container > li.menu-item > a:hover,
#sb_menu_list_items_container > li.menu-item > a:focus,
#sb_appended_menu_item > a.header__navigation-link:hover,
#sb_appended_menu_item > a.header__navigation-link:focus {
  color: #4f6f64 !important;
  text-decoration: none !important;
}


/* Раскрываем линию */
#sb_menu_list_items_container > li.menu-item > a:hover::after,
#sb_menu_list_items_container > li.menu-item > a:focus::after,
#sb_appended_menu_item > a.header__navigation-link:hover::after,
#sb_appended_menu_item > a.header__navigation-link:focus::after {
  width: 100% !important;
}


/* =========================================================
   DROPDOWN "VAIRĀK"
   ========================================================= */

/* Пункты выпадающего меню */
#sb_appended_child_menu > li.menu-item > a {
  position: relative !important;
  text-decoration: none !important;
  transition:
    color 0.2s ease,
    background-color 0.2s ease !important;
}


/* Hover пунктов dropdown */
#sb_appended_child_menu > li.menu-item > a:hover,
#sb_appended_child_menu > li.menu-item > a:focus {
  color: #4f6f64 !important;
  background-color: rgba(95, 125, 114, 0.08) !important;
  text-decoration: none !important;
}

/* =========================================================
   HERO BOOKING BUTTON — STRONG HOVER
   ========================================================= */

/* Плавный переход */
.btn-with-icon.custom,
.btn-with-icon.custom > a {
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease !important;
}


/* Наведение на кнопку */
.btn-with-icon.custom:hover,
.btn-with-icon.custom:focus-within {
  background-color: #4f6f64 !important;
  border-color: #4f6f64 !important;

  box-shadow:
    0 6px 16px rgba(47, 75, 66, 0.18) !important;

  transform: translateY(-1px);
}


/* Светлый текст при наведении */
.btn-with-icon.custom:hover > a,
.btn-with-icon.custom:focus-within > a {
  color: #ffffff !important;
}


/* На случай, если фон задан самому <a> */
.btn-with-icon.custom:hover > a,
.btn-with-icon.custom:focus-within > a {
  background-color: #4f6f64 !important;
}

/* =========================================================
   SERVICE CARDS — "IZVĒLĒTIES" BUTTON HOVER
   ========================================================= */

/* Плавная анимация */
.btn.select.custom,
.btn.select.custom > a {
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease !important;
}


/* Hover всей кнопки */
.btn.select.custom:hover,
.btn.select.custom:focus-within {
  background-color: #4f6f64 !important;
  border-color: #4f6f64 !important;

  box-shadow:
    0 6px 16px rgba(47, 75, 66, 0.18) !important;

  transform: translateY(-1px);
}


/* На случай, если SimplyBook задаёт фон непосредственно ссылке */
.btn.select.custom:hover > a,
.btn.select.custom:focus-within > a {
  background-color: #4f6f64 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}


/* Keyboard focus */
.btn.select.custom > a:focus {
  color: #ffffff !important;
  outline: none !important;
}

/* =========================================================
   BOOKING STEPS — HOVER
   PAKALPOJUMS / LAIKS / KLIENTS
   ========================================================= */

/* Неактивные шаги */
#sb_booking_info .step_info_item:not(.active) > a {
  position: relative !important;
  text-decoration: none !important;
  transition:
    color 0.22s ease,
    background-color 0.22s ease !important;
}


/* Линия под неактивной вкладкой */
#sb_booking_info .step_info_item:not(.active) > a::after {
  content: "" !important;
  position: absolute !important;

  left: 50% !important;
  bottom: 0 !important;

  width: 0 !important;
  height: 3px !important;

  background-color: #5f7d72 !important;

  transform: translateX(-50%) !important;
  transition: width 0.22s ease !important;
}


/* Hover */
#sb_booking_info .step_info_item:not(.active) > a:hover,
#sb_booking_info .step_info_item:not(.active) > a:focus {
  color: #4f6f64 !important;
  background-color: rgba(95, 125, 114, 0.05) !important;
  text-decoration: none !important;
}


/* Линия раскрывается от центра */
#sb_booking_info .step_info_item:not(.active) > a:hover::after,
#sb_booking_info .step_info_item:not(.active) > a:focus::after {
  width: 100% !important;
}


/* Текст шага также становится зелёным */
#sb_booking_info .step_info_item:not(.active) > a:hover .title-small,
#sb_booking_info .step_info_item:not(.active) > a:focus .title-small {
  color: #4f6f64 !important;
}
