/* === 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;
}


/* CBT MATERIALS — cards and buttons, RU / LV / EN */
.cbt-grid-page .cbt-grid-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}
.cbt-grid-page .materials-hub-link,
.cbt-grid-page .cbt-grid-card a.ps-action,
.cbt-grid-page .material-card-content > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  align-self: flex-start !important;
  box-sizing: border-box !important;
  padding: 10px 18px !important;
  min-height: 42px !important;
  margin-top: auto !important;
  border: 1px solid #25483f !important;
  border-radius: 8px !important;
  background: #25483f !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease !important;
}
.cbt-grid-page .materials-hub-link span {
  color: inherit !important;
}
.cbt-grid-page .cbt-grid-card:focus-within {
  border-color: #8ba79a !important;
  box-shadow: 0 10px 24px rgba(37,72,63,.12) !important;
}
.cbt-grid-page .materials-hub-card:focus-visible .materials-hub-link,
.cbt-grid-page .cbt-grid-card a.ps-action:focus-visible,
.cbt-grid-page .material-card-content > a:focus-visible {
  background: #e8f0eb !important;
  color: #25483f !important;
  outline: 2px solid #25483f !important;
  outline-offset: 3px !important;
}
@media (hover: hover) and (pointer: fine) {
  .cbt-grid-page .cbt-grid-card:hover {
    transform: translateY(-4px) !important;
    border-color: #8ba79a !important;
    box-shadow: 0 12px 26px rgba(37,72,63,.14) !important;
  }
  .cbt-grid-page .materials-hub-link:hover,
  .cbt-grid-page .cbt-grid-card a.ps-action:hover,
  .cbt-grid-page .material-card-content > a:hover {
    background: #e8f0eb !important;
    color: #25483f !important;
    border-color: #25483f !important;
    box-shadow: 0 3px 10px rgba(37,72,63,.10) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cbt-grid-page .cbt-grid-card,
  .cbt-grid-page .materials-hub-link,
  .cbt-grid-page .cbt-grid-card a.ps-action,
  .cbt-grid-page .material-card-content > a {
    transition: none !important;
  }
  .cbt-grid-page .cbt-grid-card:hover {
    transform: none !important;
  }
}
/* END CBT MATERIALS */
/* MATERIAL BUTTONS — match hero booking button, 2026-11-01 */
.cbt-grid-page .materials-hub-link,
.cbt-grid-page .cbt-grid-card a.ps-action,
.cbt-grid-page .material-card-content > a {
 background: #bcd1c5 !important;
 color: #333333 !important;
 border-color: #bcd1c5 !important;
 border-radius: 10px !important;
 font-weight: 500 !important;
 transition: background-color .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .18s ease !important;
}
.cbt-grid-page .materials-hub-link span {color:inherit !important;}
.cbt-grid-page .materials-hub-link:hover,
.cbt-grid-page .cbt-grid-card a.ps-action:hover,
.cbt-grid-page .material-card-content > a:hover,
.cbt-grid-page .materials-hub-card:focus-visible .materials-hub-link,
.cbt-grid-page .cbt-grid-card a.ps-action:focus-visible,
.cbt-grid-page .material-card-content > a:focus-visible {
 background: #4f6f64 !important;
 color: #ffffff !important;
 border-color: #4f6f64 !important;
 box-shadow: 0 6px 16px rgba(47,75,66,.18) !important;
}
@media (prefers-reduced-motion:reduce) {
.cbt-grid-page .materials-hub-link,
.cbt-grid-page .cbt-grid-card a.ps-action,
.cbt-grid-page .material-card-content > a {transition:none !important;}
}
/* END MATERIAL BUTTONS */

/* BEGIN UNIFIED MATERIAL CARDS — 2026-11-01 */
.cbt-grid-page .cbt-materials-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px!important;align-items:stretch!important;grid-auto-rows:1fr!important}
@media(max-width:1099px){.cbt-grid-page .cbt-materials-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:799px){.cbt-grid-page .cbt-materials-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:559px){.cbt-grid-page .cbt-materials-grid{grid-template-columns:minmax(0,1fr)!important}}
.cbt-grid-page .cbt-grid-card,.cbt-grid-page .cbt-grid-card *{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important}
.cbt-grid-page .cbt-grid-card h2{font-size:20px!important;line-height:1.3!important;font-weight:700!important;letter-spacing:normal!important}
.cbt-grid-page .cbt-grid-card p,.cbt-grid-page .cbt-grid-card p strong,.cbt-grid-page .cbt-grid-card p b{font-size:15px!important;line-height:1.55!important;font-weight:400!important}
.cbt-grid-page .cbt-grid-card h2 strong,.cbt-grid-page .cbt-grid-card h2 b{font-weight:inherit!important}
.cbt-grid-page .cbt-grid-card p.material-access-note{font-size:12px!important;line-height:1.4!important;font-weight:400!important;color:#626c66!important;letter-spacing:normal!important;text-transform:none!important;margin: auto 0 8px!important;height:auto!important;max-height:none!important;overflow:visible!important;-webkit-mask-image:none!important;mask-image:none!important}
.cbt-grid-page .materials-hub-link,.cbt-grid-page .cbt-grid-card a.ps-action,.cbt-grid-page .material-card-content>a{font-size:14px!important;font-weight:400!important;line-height:1.4!important;margin-top:0!important}
/* END UNIFIED MATERIAL CARDS */

/* BEGIN MATERIAL TEXT RHYTHM — 2026-11-01 */
.cbt-grid-page{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;padding:90px 20px 48px!important}
.cbt-grid-page h1{font-family:inherit!important;font-size:clamp(29px,3vw,34px)!important;line-height:1.2!important;font-weight:700!important;margin:0 0 20px!important}
.cbt-grid-page p.material-intro-copy{font-family:inherit!important;font-size:18px!important;line-height:1.65!important;font-weight:400!important;color:#555!important;margin:0 0 16px!important;max-width:none!important;width:100%!important}
.cbt-grid-page p.material-intro-last{margin-bottom:32px!important}
.cbt-grid-page .material-text-preview{display:flex!important;flex-direction:column!important;height:157px!important;min-height:157px!important;max-height:157px!important;flex:0 0 157px!important;min-width:0!important;overflow:hidden!important;margin:0 0 20px!important}
.cbt-grid-page .material-text-preview h2{flex:0 0 auto!important;margin:0 0 12px!important;font-size:20px!important;line-height:26px!important;font-weight:700!important}
.cbt-grid-page .material-text-preview p{flex:1 1 0!important;min-height:0!important;height:auto!important;max-height:none!important;margin:0!important;font-size:15px!important;line-height:23.25px!important;overflow:hidden!important;-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 calc(100% - 14px),transparent 100%)!important;mask-image:linear-gradient(to bottom,#000 0%,#000 calc(100% - 14px),transparent 100%)!important}
.cbt-grid-page .cbt-grid-card p.material-access-note{font-size:12px!important;line-height:1.4!important;font-weight:400!important;text-transform:uppercase!important;letter-spacing:.02em!important}
/* END MATERIAL TEXT RHYTHM */
