/*
Theme Name: CleverTask
Theme URI: https://clevertask.dk/
Author: Seomondo ApS
Author URI: https://seomondo.dk/
Description: Lightweight theme for CleverTask – quality management for veterinary and dental clinics. Ships a ready-made front page and supports Elementor and Elementor Pro / ProElements theme builder locations.
Version: 1.4.1
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clevertask
Tags: custom-logo, featured-images, one-column, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	--ct-ink: #163a42;
	--ct-ink2: #4d6269;
	--ct-line: #e2eaec;
	--ct-bg: #f5f8f8;
	--ct-card: #fff;
	--ct-brand: #1f7a8a;
	--ct-brand-d: #18626f;
	--ct-brand2: #3aa9b8;
	--ct-soft: #e5f3f5;
	--ct-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ct-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--ct-radius: 16px;
	--ct-blue: #009ebd;
	--ct-blue-d: #0089a4;
	--ct-footer: #214850;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--ct-sans);
	font-size: 15px;
	line-height: 1.6;
	color: var(--ct-ink);
	background: var(--ct-bg);
	-webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ct-ink); }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: #fff; clip: auto !important; clip-path: none; color: var(--ct-ink); display: block; font-weight: 600;
	height: auto; left: 8px; padding: 12px 20px; top: 8px; width: auto; z-index: 100000; border-radius: 8px;
}
:focus-visible { outline: 2px solid var(--ct-brand); outline-offset: 2px; }

.ct-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.ct-serif { font-family: var(--ct-serif); font-weight: 500; letter-spacing: -.01em; }
.ct-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ct-brand); margin-bottom: 8px; }
.ct-h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; margin: 0 0 12px; }
.ct-p { color: var(--ct-ink2); margin: 0 0 14px; font-size: 16px; line-height: 1.75; letter-spacing: .005em; }
.ct-p:last-child { margin-bottom: 0; }
.ct-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; line-height: 1.3; transition: background .15s, transform .15s; white-space: nowrap; border: 0; cursor: pointer; }
.ct-btn-primary { background: var(--ct-blue); color: #fff !important; font-size: 15px; font-weight: 500; padding: 16px 30px; border-radius: 30px; }
.ct-btn-primary:hover { background: var(--ct-blue-d); }
@media (hover: hover) { .ct-btn-primary:hover { transform: translateY(-1px); } }
.ct-section { padding: 56px 0; }
.ct-section--flush { padding-top: 0; }
.ct-head { max-width: 640px; margin: 0 0 24px; }
[id^="ct-"] { scroll-margin-top: 100px; }
.admin-bar [id^="ct-"] { scroll-margin-top: 132px; }

/* ---------- Header (same width as the page content, so the logo and Book møde line up with it) ---------- */
.ct-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(0, 66, 79, .08); }
.admin-bar .ct-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ct-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .ct-header { top: 0; } }
.ct-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 91px; }
.ct-logo { display: block; flex: none; }
.ct-logo img, .ct-logo .custom-logo { height: 61px; width: auto; }
.ct-actions { display: flex; align-items: center; gap: 12px; }
.ct-pill { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; font-family: var(--ct-sans); font-size: 15px; font-weight: 500; line-height: 1; padding: 18px 30px; border-radius: 30px; background: var(--ct-blue); color: #fff !important; transition: background .15s, transform .1s; }
.ct-pill:hover { background: var(--ct-blue-d); }
.ct-pill:active { transform: scale(.98); }
.ct-pill--light { background: #f1f7f7; color: #00424f !important; padding-left: 25px; padding-right: 25px; }
.ct-pill--light:hover { background: #e2eff0; }
.ct-burger { display: none; place-items: center; flex: none; background: #f1f7f7; border: 0; border-radius: 50%; width: 46px; height: 46px; cursor: pointer; color: #00424f; padding: 0; }
.ct-burger .ct-i-close, .ct-header.is-open .ct-burger .ct-i-open { display: none; }
.ct-header.is-open .ct-burger .ct-i-close { display: block; }
.ct-mobile { display: none; flex-direction: column; gap: 10px; padding: 14px 24px 18px; border-top: 1px solid var(--ct-line); background: #fff; }
.ct-mobile .ct-pill { width: 100%; padding-top: 15px; padding-bottom: 15px; }

/* ---------- Hero ---------- */
.ct-hero { padding: 44px 0 52px; background: radial-gradient(900px 420px at 90% 0, #d6eef1 0, transparent 60%), #fff; border-bottom: 1px solid var(--ct-line); }
.ct-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.ct-h1 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; margin: 0 0 14px; }
.ct-hero-sub { font-size: 18px; line-height: 1.65; color: var(--ct-ink2); max-width: 470px; margin: 0 0 26px; }
.ct-hero-img img { width: 100%; }

/* ---------- Split ---------- */
.ct-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ct-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); }
.ct-shot img { border-radius: 8px; width: 100%; }

/* ---------- Tabs ---------- */
.ct-tabs-sec { background: #fff; border-top: 1px solid var(--ct-line); border-bottom: 1px solid var(--ct-line); }
.ct-tablist { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; background: var(--ct-bg); border: 1px solid var(--ct-line); border-radius: 999px; width: fit-content; max-width: 100%; margin-bottom: 20px; }
.ct-tab { line-height: 1.3; appearance: none; border: 0; background: none; font: inherit; cursor: pointer; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ct-ink2); transition: background .15s, color .15s; }
.ct-tab:hover { color: var(--ct-ink); }
.ct-tab[aria-selected="true"] { background: var(--ct-ink); color: #fff; }
.ct-panels { display: grid; }
.ct-panel { grid-area: 1 / 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: center; background: linear-gradient(160deg, var(--ct-soft), #fff 75%); border: 1px solid var(--ct-line); border-radius: var(--ct-radius); padding: 28px; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
.ct-panel.is-active { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.no-js .ct-panel { position: static; opacity: 1; visibility: visible; grid-area: auto; margin-bottom: 16px; }
.ct-panel h3 { font-size: 22px; margin: 0 0 10px; }
.ct-panel p { color: var(--ct-ink2); margin: 0; font-size: 16px; line-height: 1.75; }
.ct-panel-img { display: flex; justify-content: center; align-items: center; height: 320px; }
.ct-panel-img img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 18px 40px -24px rgba(22, 58, 66, .5); }

/* ---------- Mobile app ---------- */
.ct-app { background: var(--ct-ink); color: #e6f0f2; border-radius: 20px; padding: 36px 40px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.ct-app::after { content: ""; position: absolute; width: 460px; height: 460px; right: -140px; top: -180px; background: radial-gradient(circle, rgba(58, 169, 184, .35), transparent 65%); pointer-events: none; }
.ct-app > * { position: relative; z-index: 1; }
.ct-app .ct-eyebrow { color: #86d6e0; }
.ct-app .ct-h2 { color: #fff; }
.ct-app .ct-p { color: #b9cdd2; }
.ct-app-img { justify-self: center; }
.ct-app-img img { max-height: 380px; width: auto; border-radius: 18px; }

/* ---------- Benefits ---------- */
.ct-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ct-card { background: #fff; border: 1px solid var(--ct-line); border-radius: 14px; padding: 20px; display: flex; gap: 14px; align-items: flex-start; transition: transform .2s, box-shadow .2s; }
@media (hover: hover) { .ct-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -22px rgba(22, 58, 66, .4); } }
.ct-card img { width: 44px; height: 44px; flex: none; }
.ct-card h3 { margin: 0 0 4px; font-size: 16px; }
.ct-card p { margin: 0; color: var(--ct-ink2); font-size: 14.5px; line-height: 1.65; }

/* ---------- Quote ---------- */
.ct-quote { background: #fff; border: 1px solid var(--ct-line); border-radius: var(--ct-radius); padding: 28px 32px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; margin: 0; }
.ct-quote-mark { font-family: var(--ct-serif); font-size: 64px; line-height: .8; color: var(--ct-brand2); }
.ct-quote blockquote { margin: 0 0 12px; font-size: 19px; line-height: 1.55; }
.ct-quote cite { font-style: normal; color: var(--ct-ink2); font-size: 14px; }
.ct-quote cite b { color: var(--ct-ink); }

/* ---------- About us ---------- */
.ct-us { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.ct-us-img img { border-radius: 14px; width: 100%; }
.ct-contact { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--ct-soft); color: var(--ct-ink); line-height: 1.7; }
.ct-sign { margin-top: 16px; font-family: var(--ct-serif); font-size: 18px; line-height: 1.35; }

/* ---------- Footer ---------- */
.ct-footer { background: var(--ct-footer); color: #f4fdff; padding: 48px 0 22px; font-size: 15px; line-height: 1.6; }
.ct-footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.5fr); gap: 40px; align-items: start; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .24); }
.ct-flogo img { height: 67px; width: auto; margin-bottom: 26px; }
.ct-faddress { font-style: normal; font-size: 14.5px; }
.ct-faddress strong { font-weight: 700; }
.ct-fbuttons { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 104px; }
.ct-fbuttons .ct-pill { padding-top: 13px; padding-bottom: 13px; }
.ct-footer h4 { color: #fff; font-family: var(--ct-sans); font-size: 17px; font-weight: 700; margin: 0 0 14px; }
.ct-footer a { color: inherit; }

/* Contact form: white fields, blue Send button (works for Contact Form 7 and the built-in form). */
.ct-fform p { margin: 0; }
.ct-fform br { display: none; }
.ct-fform--builtin, .ct-fform--plugin form, .ct-fform--plugin .row { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0; }
.ct-fform--plugin .row > * { padding: 0; width: auto; max-width: none; flex: none; }
.ct-fform .wpcf7-form-control-wrap { display: block; }
.ct-fform .hidden-fields-container { display: none; }
.ct-fform input:not([type="submit"]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.ct-fform textarea, .ct-fform select {
	width: 100%; font-family: var(--ct-sans); font-size: 15px; line-height: 1.5; color: #333; background: #fff; border: 1px solid #ccc; border-radius: 3px; padding: 8px 16px; box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.ct-fform textarea { min-height: 66px; height: 66px; resize: vertical; }
.ct-fform ::placeholder { color: #666; opacity: 1; }
.ct-fform input:focus, .ct-fform textarea:focus { outline: none; border-color: var(--ct-blue); box-shadow: 0 0 0 3px rgba(0, 158, 189, .25); }
.ct-fform input[type="submit"], .ct-fform button[type="submit"] { appearance: none; width: 100%; font-family: var(--ct-sans); font-size: 16px; font-weight: 500; line-height: 1.1; color: #fff; background: var(--ct-blue); border: 1px solid var(--ct-blue); border-radius: 40px; padding: 12px 24px; justify-content: center; text-align: center; cursor: pointer; transition: background .15s; }
.ct-fform input[type="submit"]:hover, .ct-fform button[type="submit"]:hover { background: var(--ct-blue-d); border-color: var(--ct-blue-d); }
.ct-fform .wpcf7-spinner { display: block; margin: 8px auto 0; }
.ct-fform .wpcf7-not-valid-tip { color: #ffcfc7; font-size: 13px; margin-top: 4px; }
.ct-fform .wpcf7-response-output, .ct-fform-msg { margin: 0 !important; padding: 10px 14px !important; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .5) !important; font-size: 14px; color: #fff; }
.ct-fform-msg.is-ok, .ct-fform .sent .wpcf7-response-output { border-color: #6fd3e6 !important; }
.ct-fform-msg.is-error, .ct-fform .invalid .wpcf7-response-output, .ct-fform .failed .wpcf7-response-output { border-color: #ff9d8c !important; }
.ct-fform .wpcf7-response-output:empty, .ct-fform form.init .wpcf7-response-output { display: none; }
.ct-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-copy { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-top: 18px; font-size: 13px; }
.ct-copy a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Generic pages / posts ---------- */
.ct-page { padding: 48px 0; }
.ct-page-inner { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--ct-line); border-radius: var(--ct-radius); padding: 40px; }
.ct-page-inner h1 { font-family: var(--ct-serif); font-weight: 500; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; margin: 0 0 20px; }
.ct-entry { font-size: 16px; line-height: 1.75; color: var(--ct-ink2); }
.ct-entry a { color: var(--ct-brand); text-decoration: underline; text-underline-offset: 2px; }
.ct-entry h2, .ct-entry h3 { font-family: var(--ct-serif); font-weight: 500; line-height: 1.25; margin: 1.6em 0 .5em; }
.ct-entry img { border-radius: 10px; }
.ct-entry > * { max-width: 100%; }
.ct-entry ul, .ct-entry ol { padding-left: 1.3em; }
.ct-entry blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--ct-brand2); font-family: var(--ct-serif); color: var(--ct-ink); }
.ct-entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ct-entry th, .ct-entry td { border: 1px solid var(--ct-line); padding: 8px 10px; text-align: left; }
.ct-entry .alignleft { float: left; margin: 4px 20px 12px 0; }
.ct-entry .alignright { float: right; margin: 4px 0 12px 20px; }
.ct-entry .aligncenter { margin-left: auto; margin-right: auto; }
.ct-entry .alignwide, .ct-entry .alignfull { margin-left: -40px; margin-right: -40px; max-width: none; width: calc(100% + 80px); }
.ct-entry figcaption, .ct-entry .wp-caption-text { font-size: 13px; color: var(--ct-ink2); margin-top: 6px; text-align: center; }
.ct-entry .wp-block-button__link { background: var(--ct-brand); color: #fff; border-radius: 999px; padding: 10px 20px; text-decoration: none; font-size: 15px; font-weight: 600; }
.ct-entry iframe, .ct-entry video { max-width: 100%; }
.ct-list-item { padding: 18px 0; border-bottom: 1px solid var(--ct-line); }
.ct-list-item h2 { font-size: 20px; margin: 0 0 6px; }
.ct-elementor-content { min-height: 40vh; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ct-footer-grid { grid-template-columns: 1fr 1fr; }
	.ct-fbuttons { padding-top: 0; flex-direction: column; align-items: flex-start; }
	.ct-fcontact { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
	.ct-actions { display: none; }
	.ct-burger { display: grid; }
	.ct-nav { height: 72px; }
	.ct-logo img, .ct-logo .custom-logo { height: 48px; }
	.ct-header.is-open .ct-mobile { display: flex; }
}
@media (min-width: 761px) {
	.ct-header.is-open .ct-mobile { display: none; }
}
@media (max-width: 900px) {
	.ct-hero-grid, .ct-split, .ct-app, .ct-us, .ct-panel { grid-template-columns: 1fr; }
	.ct-grid { grid-template-columns: repeat(2, 1fr); }
	.ct-app { padding: 28px 24px; }
	.ct-entry .alignwide, .ct-entry .alignfull { margin-left: 0; margin-right: 0; width: 100%; }
	.ct-split .ct-shot { order: 2; }
	.ct-panel-img { height: 260px; }
}
@media (max-width: 600px) {
	.ct-wrap { padding: 0 16px; }
	.ct-section { padding: 40px 0; }
	.ct-section--flush { padding-top: 0; }
	.ct-hero { padding: 28px 0 36px; }
	.ct-grid, .ct-footer-grid { grid-template-columns: 1fr; }
	.ct-tablist { display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; width: 100%; }
	.ct-tab { text-align: center; padding: 9px 8px; font-size: 13px; border-radius: 10px; }
	.ct-panel { align-content: start; gap: 20px; padding: 20px; }
	.ct-panel-img { height: 220px; }
	.ct-p, .ct-panel p { font-size: 15.5px; }
	.ct-hero-sub { font-size: 16.5px; }
	.ct-quote { padding: 20px; grid-template-columns: 1fr; gap: 4px; }
	.ct-quote blockquote { font-size: 16.5px; }
	.ct-page-inner { padding: 24px; }
	.ct-entry .alignleft, .ct-entry .alignright { float: none; margin: 12px 0; }
	.ct-mobile { padding: 12px 16px 16px; }
	.ct-fbuttons { flex-direction: row; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}
