/*
 * MyCaly theme for the GoSaaS template.
 * Brand tokens from mycaly.io: primary #4B6790, secondary #1ACC8D.
 * style.css is the licensed GoSaaS stylesheet with its purple palette swapped for these colors;
 * everything MyCaly-specific lives here and in mycaly-layouts.css.
 */
:root {
  /* MyCaly green is the single accent (GoSaaS purple). Everything else stays neutral like the template. */
  /* Brand: primary #4B6790 (buttons, links, featured), secondary #1ACC8D (checks, highlights, doodles). */
  --mc-primary: #4B6790;
  --mc-primary-700: #3D5577;
  --mc-primary-50: #EEF2F8;
  --mc-green: #1ACC8D;
  --mc-green-600: #3D5577;
  --mc-green-700: #3D5577;
  --mc-green-50: #F4F7F6;
  --mc-green-100: #E7ECEA;
  /* "navy" tokens now resolve to the template's near-black (cs_heading_bg) for dark surfaces. */
  --mc-navy: #0A0A10;
  --mc-navy-700: #1B1B22;
  --mc-navy-900: #0A0A10;
  --mc-navy-50: #F3F3F5;
  --mc-ink: #0A0A10;
  --mc-body: #6C6C6C;
  --mc-muted: #8F8F96;
  --mc-line: #E7E7EC;
  --mc-surface: #F7F7F9;
  --mc-amber: #F5A524;
  --mc-red: #E5484D;
  --mc-radius-sm: 10px;
  --mc-radius: 15px;
  --mc-radius-lg: 20px;
  --mc-shadow-sm: 0 1px 2px rgba(10, 10, 16, .05);
  --mc-shadow: 0 10px 30px -12px rgba(10, 10, 16, .12);
  --mc-shadow-lg: 0 24px 50px -24px rgba(10, 10, 16, .22);

  /* GoSaaS variables */
  --heading-color: #0A0A10;
  --body-color: #6C6C6C;
  --purple-color: var(--mc-primary);
  --accent-color: #1ACC8D;
  --border-color: #CACACA;
  --gray-color: var(--mc-surface);
  --gray2-color: #A3A2A3;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { transition: color .2s ease; }

:focus-visible {
  outline: 3px solid rgba(75, 103, 144, .45);
  outline-offset: 2px;
}

.mc-skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--mc-radius-sm);
  background: var(--mc-navy);
  color: #fff;
}
.mc-skip-link:focus { top: 12px; color: #fff; }

.mc-icon { flex: none; vertical-align: middle; }

.cs_navy_bg { background-color: var(--mc-navy); }
.cs_navy_color { color: var(--mc-navy); }
.cs_green_soft_bg { background-color: var(--mc-green-50); }
.cs_surface_bg { background-color: var(--mc-surface); }

/* Buttons: GoSaaS cs_btn in MyCaly colors */
.cs_btn.cs_style_1 { gap: 8px; }
.cs_btn.cs_style_1.cs_purple_bg:hover { background-color: var(--mc-green-600); color: #fff; }
.cs_btn.mc-btn-outline {
  background: #fff;
  color: var(--mc-ink);
  border: 1.5px solid var(--mc-line);
}
.cs_btn.mc-btn-outline:hover { border-color: var(--mc-green); color: var(--mc-green-700); }
.cs_btn.mc-btn-light { background: #fff; color: var(--mc-navy); }
.cs_btn.mc-btn-light:hover { background: var(--mc-green-50); color: var(--mc-navy); }
.cs_btn.mc-btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .45);
}
.cs_btn.mc-btn-ghost-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Header ---------- */
.cs_site_header.cs_style_1 .cs_main_header { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); }
.cs_site_header .cs_site_branding img { height: 38px; width: auto; }
.cs_main_header_right { display: flex; align-items: center; gap: 12px; }
.mc-header-login { font-weight: 600; color: var(--mc-ink); }
.mc-header-login:hover { color: var(--mc-green-700); }

.mc-lang { position: relative; }
.mc-lang > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--mc-line);
  border-radius: 999px;
  background: #fff;
  color: var(--mc-ink);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}
.mc-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 180px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius);
  box-shadow: var(--mc-shadow);
  display: none;
  z-index: 60;
}
.mc-lang.is-open .mc-lang-menu { display: block; }
.mc-lang-menu a {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--mc-ink);
  font-size: 15px;
}
.mc-lang-menu a:hover, .mc-lang-menu a[aria-current="true"] { background: var(--mc-green-50); color: var(--mc-green-700); }
.mc-lang-menu small { color: var(--mc-muted); text-transform: uppercase; }

/* ---------- Breadcrumb ---------- */
.mc-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 18px; padding: 0; list-style: none; font-size: 14px; color: var(--mc-muted); }
.mc-breadcrumb a { color: var(--mc-body); }
.mc-breadcrumb a:hover { color: var(--mc-green-700); }
.mc-breadcrumb li + li::before { content: "/"; margin-inline-end: 6px; color: var(--mc-line); }
.mc-breadcrumb [aria-current="page"] { color: var(--mc-ink); font-weight: 600; }

/* Puzzle / altcha modal (moved from the old footer) */
.puzzle-modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .65); backdrop-filter: blur(8px); z-index: 99999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s, visibility .25s; padding: 16px; }
.puzzle-modal-backdrop.show { opacity: 1; visibility: visible; pointer-events: auto; }
.puzzle-modal-dialog { width: 100%; max-width: 370px; }
.puzzle-modal-content { background: #fff; border-radius: 20px; padding: 20px 22px; box-shadow: 0 25px 60px -15px rgba(0, 0, 0, .35); color: var(--mc-ink); }
.puzzle-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #f1f5f9; }
.puzzle-modal-icon-badge { width: 38px; height: 38px; border-radius: 10px; background: var(--mc-green-50); display: flex; align-items: center; justify-content: center; color: var(--mc-green); }
.puzzle-modal-title { font-size: 16px; font-weight: 700; color: var(--mc-ink); }
.puzzle-modal-subtitle { font-size: 12px; color: var(--mc-muted); }
.puzzle-modal-close { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: #64748b; }
.puzzle-modal-body { display: flex; justify-content: center; }
.puzzle-modal-body .slider-puzzle-header { display: none !important; }
#btnConfirmSubscribe { width: 100%; justify-content: center; }
#btnConfirmSubscribe:disabled { opacity: .6; cursor: not-allowed; }

altcha-widget {
  --altcha-color-border-focus: var(--mc-green);
  --altcha-color-checkbox-checked: var(--mc-green);
  --altcha-color-button-bg: var(--mc-green);
  --altcha-border-radius: 10px;
  --altcha-max-width: 100%;
}

/* Template accordion / testimonial tweaks */
.cs_accordian .cs_accordian_head { padding-inline-end: 56px; }
.cs_accordian .cs_accordian_body { color: var(--mc-body); }
.cs_testimonial.cs_style_1 blockquote { color: var(--mc-ink); }

/* RTL adjustments for template components written with physical properties */
[dir="rtl"] .cs_accordian_toggle { right: auto; left: 24px; }
[dir="rtl"] .cs_list.cs_style_1 li { padding-left: 0; padding-right: 44px; }
[dir="rtl"] .cs_list.cs_style_1 .cs_list_icon { left: auto; right: 0; }
[dir="rtl"] .mc-flip-rtl { transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .wow { visibility: visible !important; animation: none !important; }
}
