/**
 * Styles for the "CleverTask forside" Elementor template (classes ct-tpl / ct-e-*).
 * Everything stays editable in Elementor: settings made on an element in Elementor win over these.
 */

/* ---------- Sections ---------- */
body .ct-tpl.ct-e-section { --gap: 0px; }
body .ct-tpl.ct-e-hero { background: radial-gradient(900px 420px at 90% 0, #d6eef1 0, transparent 60%), #fff; border-bottom: 1px solid var(--ct-line); }
body .ct-tpl.ct-e-white { background: #fff; border-top: 1px solid var(--ct-line); border-bottom: 1px solid var(--ct-line); }

/* ---------- Type ---------- */
body .ct-tpl .elementor-widget-heading .elementor-heading-title { font-family: var(--ct-serif); font-weight: 500; letter-spacing: -.01em; color: var(--ct-ink); }
body .ct-tpl .ct-e-h1 .elementor-heading-title { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; }
body .ct-tpl .elementor-widget.elementor-widget.ct-e-h1 { margin-block-end: 14px; }
body .ct-tpl .ct-e-h2 .elementor-heading-title { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; }
body .ct-tpl .elementor-widget.elementor-widget.ct-e-h2 { margin-block-end: 12px; }
body .ct-tpl .ct-e-h3 .elementor-heading-title { font-size: 22px; line-height: 1.25; }
body .ct-tpl .elementor-widget.elementor-widget.ct-e-h3 { margin-block-end: 10px; }
body .ct-tpl .ct-e-head { max-width: 640px; }
body .ct-tpl .elementor-widget.elementor-widget.ct-e-head { margin-block-end: 24px; }
body .ct-tpl .ct-e-eyebrow .elementor-heading-title { font-family: var(--ct-sans); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ct-brand); line-height: 1.4; }
body .ct-tpl .elementor-widget.elementor-widget.ct-e-eyebrow { margin-block-end: 8px; }
body .ct-tpl .elementor-widget-text-editor { font-family: var(--ct-sans); color: var(--ct-ink2); font-size: 16px; line-height: 1.75; letter-spacing: .005em; }
body .ct-tpl .elementor-widget-text-editor p { margin: 0 0 14px; }
body .ct-tpl .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
body .ct-tpl .ct-e-sub { font-size: 18px; line-height: 1.65; max-width: 470px; }
body .ct-tpl .elementor-widget.elementor-widget.ct-e-sub { margin-block-end: 26px; }

/* ---------- Button ---------- */
body .ct-tpl .ct-e-btn .elementor-button { font-family: var(--ct-sans); background: var(--ct-blue); color: #fff; border-radius: 30px; padding: 16px 30px; font-size: 15px; font-weight: 500; line-height: 1.2; transition: background .15s, transform .15s; }
body .ct-tpl .ct-e-btn .elementor-button:hover { background: var(--ct-blue-d); color: #fff; }
@media (hover: hover) { body .ct-tpl .ct-e-btn .elementor-button:hover { transform: translateY(-1px); } }

/* ---------- Images ---------- */
body .ct-tpl .elementor-widget-image img { width: 100%; height: auto; }
body .ct-tpl .ct-e-shot { background: #fff; border: 1px solid var(--ct-line); border-radius: 14px; padding: 8px; box-shadow: 0 18px 40px -26px rgba(22, 58, 66, .45); }
body .ct-tpl .ct-e-shot img { border-radius: 8px; }
body .ct-tpl .ct-e-round img { border-radius: 14px; }

/* ---------- Tabs (behaviour in assets/js/main.js) ---------- */
body .ct-tpl .ct-e-tablist { width: fit-content; max-width: 100%; background: var(--ct-bg); border: 1px solid var(--ct-line); border-radius: 999px; }
body .ct-tpl .ct-e-tab .elementor-heading-title { font-family: var(--ct-sans); font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: 0; color: var(--ct-ink2); padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; user-select: none; }
body .ct-tpl .ct-e-tab .elementor-heading-title:hover { color: var(--ct-ink); }
body .ct-tpl .ct-e-tab[aria-selected="true"] .elementor-heading-title { background: var(--ct-ink); color: #fff; }
body .ct-tpl .ct-e-tab:focus-visible { outline: 2px solid var(--ct-brand); outline-offset: 2px; border-radius: 999px; }
body .ct-tpl .ct-e-panel { background: linear-gradient(160deg, var(--ct-soft), #fff 75%); border: 1px solid var(--ct-line); border-radius: var(--ct-radius); }
body .ct-tpl .ct-e-panel-media { align-items: center; }
body .ct-tpl .ct-e-panel-img { width: auto; max-width: 100%; }
body .ct-tpl .ct-e-panel-img img { width: auto; max-width: 100%; max-height: 320px; margin: 0 auto; object-fit: contain; border-radius: 10px; box-shadow: 0 18px 40px -24px rgba(22, 58, 66, .5); }
/* Panels share one grid cell so the height never jumps (only on the live page, not in the Elementor editor). */
body .ct-tpl .ct-e-tabs.is-ready .ct-e-panels { display: grid !important; }
body .ct-tpl .ct-e-tabs.is-ready .ct-e-panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
body .ct-tpl .ct-e-tabs.is-ready .ct-e-panel.is-active { opacity: 1; visibility: visible; transition: opacity .25s ease; }

/* ---------- Mobile app ---------- */
body .ct-tpl .ct-e-app { background-image: radial-gradient(circle 230px at calc(100% + 90px) 50px, rgba(58, 169, 184, .35), transparent); }
body .ct-tpl .ct-e-app .ct-e-eyebrow .elementor-heading-title { color: #86d6e0; }
body .ct-tpl .ct-e-app .elementor-widget-heading:not(.ct-e-eyebrow) .elementor-heading-title { color: #fff; }
body .ct-tpl .ct-e-app .elementor-widget-text-editor { color: #b9cdd2; }
body .ct-tpl .ct-e-app-img img { width: auto; max-width: 100%; max-height: 380px; margin: 0 auto; border-radius: 18px; }

/* ---------- Benefit cards ---------- */
body .ct-tpl .ct-e-grid { --e-con-grid-template-rows: none; }
body .ct-tpl .ct-e-card { background: #fff; border: 1px solid var(--ct-line); border-radius: 14px; padding: 20px; transition: transform .2s, box-shadow .2s; }
@media (hover: hover) { body .ct-tpl .ct-e-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -22px rgba(22, 58, 66, .4); } }
body .ct-tpl .ct-e-card .elementor-image-box-wrapper { display: flex; gap: 14px; align-items: flex-start; text-align: left; }
body .ct-tpl .ct-e-card .elementor-image-box-img { width: 44px !important; flex: none; margin: 0 !important; }
body .ct-tpl .ct-e-card .elementor-image-box-img img { width: 44px; height: 44px; }
body .ct-tpl .ct-e-card .elementor-image-box-content { flex: 1; min-width: 0; }
body .ct-tpl .ct-e-card .elementor-image-box-title { font-family: var(--ct-sans); font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--ct-ink); margin: 0 0 4px; }
body .ct-tpl .ct-e-card .elementor-image-box-description { font-family: var(--ct-sans); font-size: 14.5px; line-height: 1.65; color: var(--ct-ink2); margin: 0; }

/* ---------- Quote ---------- */
body .ct-tpl .ct-e-quote { background: #fff; border: 1px solid var(--ct-line); border-radius: var(--ct-radius); }
body .ct-tpl .ct-e-quote-text { position: relative; padding-left: 64px; }
body .ct-tpl .ct-e-quote-text::before { content: "“"; position: absolute; left: 0; top: 2px; font-family: var(--ct-serif); font-size: 64px; line-height: .8; color: var(--ct-brand2); }
body .ct-tpl .ct-e-quote-text blockquote { margin: 0 0 12px; padding: 0; border: 0; font-family: var(--ct-serif); font-size: 19px; line-height: 1.55; color: var(--ct-ink); font-style: normal; }
body .ct-tpl .ct-e-quote-text .ct-e-cite { font-size: 14px; color: var(--ct-ink2); }
body .ct-tpl .ct-e-quote-text .ct-e-cite b { color: var(--ct-ink); }

/* ---------- About us ---------- */
body .ct-tpl .ct-e-contact { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--ct-soft); color: var(--ct-ink); line-height: 1.7; }
body .ct-tpl .ct-e-contact a { color: var(--ct-ink); }
body .ct-tpl .ct-e-sign { margin-top: 16px; font-family: var(--ct-serif); font-size: 18px; line-height: 1.35; color: var(--ct-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	body .ct-tpl .ct-e-row > .ct-e-col + .ct-e-col { margin-top: 4px; }
	body .ct-tpl .ct-e-panel-img img { max-height: 260px; }
}
@media (max-width: 767px) {
	body .ct-tpl .ct-e-tablist { display: grid !important; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 14px; }
	body .ct-tpl .ct-e-tab .elementor-heading-title { text-align: center; padding: 9px 8px; font-size: 13px; border-radius: 10px; }
	body .ct-tpl .ct-e-panel-img img { max-height: 220px; }
	body .ct-tpl .elementor-widget-text-editor { font-size: 15.5px; }
	body .ct-tpl .ct-e-sub { font-size: 16.5px; }
	body .ct-tpl .ct-e-quote-text { padding-left: 0; padding-top: 36px; }
	body .ct-tpl .ct-e-quote-text blockquote { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
	body .ct-tpl * { transition: none !important; }
}
