/*
 * ICCP site styles.
 *
 * Colours and fonts are chosen in Elementor (Site Settings > Global Colors / Global Fonts).
 * The tokens below mirror them for the few things Elementor can't style on its own.
 * Palette taken from the ICCP logo (19 Nov 2026): navy, gold and teal.
 * Contrast (WCAG): navy/ink/muted on ivory all pass AA; logo gold on ivory is too light for text, so it is
 * for rules and details only. Use --iccp-gold-text / --iccp-teal-text for small text on light backgrounds.
 */

:root {
	--iccp-navy: #002034;        /* logo navy: headings, primary buttons, dark sections */
	--iccp-navy-deep: #00182a;   /* footer */
	--iccp-navy-mid: #1b3e57;    /* hover states */
	--iccp-gold: #cfa968;        /* logo gold: rules, borders, accents on navy */
	--iccp-gold-text: #86652a;   /* gold for small text on light backgrounds (4.9:1) */
	--iccp-teal: #379faa;        /* logo teal: limited accents, "active" status */
	--iccp-teal-text: #1c6e79;   /* teal for small text on light backgrounds (5.4:1) */
	--iccp-ivory: #f8f5ee;       /* page background */
	--iccp-mist: #e6eef0;        /* alternate section background */
	--iccp-ink: #13212e;         /* body text */
	--iccp-muted: #55616b;       /* secondary text (5.9:1) */
	--iccp-line: #e3ded2;        /* dividers */
	--iccp-radius: 14px;
}

body {
	background: var(--iccp-ivory);
	color: var(--iccp-ink);
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: var(--iccp-navy);
	color: #fff;
}

/* Visible keyboard focus everywhere, without the browser's default blue. */
:focus-visible {
	outline: 2px solid var(--iccp-gold-text);
	outline-offset: 3px;
}

/* Small uppercase label above section headings (the MSW "eyebrow" pattern). */
.iccp-eyebrow,
.iccp-eyebrow .elementor-heading-title {
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--iccp-gold-text);
}

/* Thin gold rule used sparingly under headings. */
.iccp-rule {
	width: 48px;
	height: 2px;
	background: var(--iccp-gold);
	border: 0;
	margin: 1rem 0;
}


/* Marks content that is still awaiting client confirmation, so it can't slip through to launch unnoticed. */
.iccp-tbc {
	outline: 2px dashed #c25e25;
	outline-offset: 4px;
}

/* Header: gold utility toolbar links underline on hover (colour alone can't change much on gold). */
.iccp-utility .elementor-icon-list-item a:hover .elementor-icon-list-text {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Header: "Apply / Join" sits in the main menu for phones only; desktop/tablet use the header button. */
.wpr-nav-menu-horizontal > .wpr-nav-menu > li.iccp-mobile-only {
	display: none;
}

@media (min-width: 768px) {
	.wpr-mobile-nav-menu > li.iccp-mobile-only {
		display: none;
	}
}

/* Header dropdowns: wide enough that items stay on one line. */
.wpr-nav-menu .wpr-sub-menu {
	min-width: 290px;
}

/* ---------- Home ---------- */

/* Navy quote panel in the hero, with a thin gold ring borrowed from the logo's emblem. */
.iccp-quote-panel {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.iccp-quote-panel::after {
	content: "";
	position: absolute;
	z-index: -1;
	width: 380px;
	height: 380px;
	right: -200px;
	bottom: -230px;
	border: 1.5px solid rgba(207, 169, 104, 0.55);
	border-radius: 50%;
	box-shadow: 0 0 0 28px rgba(207, 169, 104, 0.06);
}

/* Text link with an arrow that nudges on hover. */
.iccp-arrow-link a {
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
	transition: color 0.2s ease;
}

.iccp-arrow-link a::after {
	content: "\2192";
	display: inline-block;
	margin-left: 0.45em;
	transition: transform 0.2s ease;
}

.iccp-arrow-link a:hover::after {
	transform: translateX(4px);
}

/* Pathway panels on the dark section: lift slightly on hover. */
.iccp-pathway {
	transition: border-color 0.25s ease, background-color 0.25s ease;
}

/* Keep each panel's links on the bottom edge so neighbouring panels line up. */
.iccp-pathway > .e-con:last-child {
	margin-top: auto;
}

.iccp-pathway:hover {
	border-color: rgba(207, 169, 104, 0.7) !important;
	background-color: rgba(255, 255, 255, 0.05) !important;
}

/* ---------- Inner pages ---------- */

/* In-page jump links (Who We Are intro) */
.iccp-jump-link a {
	text-decoration: none;
	border-bottom: 1px solid transparent;
	padding-bottom: 2px;
	transition: border-color 0.2s ease;
}

.iccp-jump-link a:hover {
	border-bottom-color: var(--iccp-gold);
}

/* Leave a little room above sections reached by an anchor link */
.elementor [id] {
	scroll-margin-top: 24px;
}

html {
	scroll-behavior: smooth;
}

/* ---------- Building blocks for inner pages (tools/lib.php) ---------- */

/* Body copy lists: gold dash markers instead of bullets */
.iccp-rich ul {
	list-style: none;
	margin: 0.4em 0 1.2em;
	padding: 0;
}

.iccp-rich ul li {
	position: relative;
	padding-left: 1.5em;
	margin-bottom: 0.45em;
}

.iccp-rich ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.85em;
	width: 0.8em;
	height: 2px;
	background: var(--iccp-gold);
}

.iccp-rich p:last-child,
.iccp-rich ul:last-child {
	margin-bottom: 0;
}

.iccp-rich a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--iccp-gold);
	text-underline-offset: 3px;
}

@media (min-width: 768px) {
	.iccp-cols-2 ul {
		columns: 2;
		column-gap: 40px;
	}

	.iccp-cols-2 ul li {
		break-inside: avoid;
	}
}

/* Status labels: "In development" (gold) and "Active" (green) */
.iccp-status .elementor-heading-title {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	padding: 0.4em 0.95em;
	border-radius: 999px;
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.03em;
}

.iccp-status .elementor-heading-title::before {
	content: "";
	width: 0.55em;
	height: 0.55em;
	border-radius: 50%;
	background: currentColor;
}

.iccp-status-dev .elementor-heading-title {
	color: var(--iccp-gold-text);
	background: rgba(207, 169, 104, 0.1);
	border: 1px solid rgba(207, 169, 104, 0.45);
}

.iccp-status-active .elementor-heading-title {
	color: var(--iccp-teal-text);
	background: rgba(55, 159, 170, 0.1);
	border: 1px solid rgba(55, 159, 170, 0.45);
}

.iccp-status-ondark .elementor-heading-title {
	color: var(--iccp-gold);
	background: rgba(207, 169, 104, 0.08);
	border: 1px solid rgba(207, 169, 104, 0.4);
}

/* Expandable sections (native <details>) */
.iccp-details details {
	border-top: 1px solid var(--iccp-line);
}

.iccp-details details:last-child {
	border-bottom: 1px solid var(--iccp-line);
}

.iccp-details summary {
	list-style: none;
	cursor: pointer;
	position: relative;
	padding: 22px 48px 22px 0;
	font-family: "EB Garamond", serif;
	font-size: 25px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--iccp-navy);
}

.iccp-details summary::-webkit-details-marker {
	display: none;
}

.iccp-details summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	font-family: "Montserrat", sans-serif;
	font-size: 24px;
	font-weight: 400;
	color: var(--iccp-gold-text);
	transition: transform 0.2s ease;
}

.iccp-details details[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
}

.iccp-details summary:hover {
	color: var(--iccp-navy-mid);
}

.iccp-details-body {
	padding: 0 0 26px;
	font-family: "Lato", sans-serif;
	font-size: 17px;
	line-height: 1.7;
	color: var(--iccp-ink);
	max-width: 760px;
}

.iccp-details-body p {
	margin: 0 0 0.8em;
}

.iccp-details-body ul {
	list-style: none;
	margin: 0 0 0.8em;
	padding: 0;
}

.iccp-details-body ul li {
	position: relative;
	padding-left: 1.5em;
	margin-bottom: 0.4em;
}

.iccp-details-body ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.85em;
	width: 0.8em;
	height: 2px;
	background: var(--iccp-gold);
}

.iccp-details-dark details {
	border-color: rgba(207, 169, 104, 0.35);
}

.iccp-details-dark summary {
	color: var(--iccp-ivory);
}

.iccp-details-dark summary::after {
	color: var(--iccp-gold);
}

.iccp-details-dark summary:hover {
	color: #fff;
}

.iccp-details-dark .iccp-details-body {
	color: rgba(248, 245, 238, 0.8);
}

@media (max-width: 767px) {
	.iccp-details summary {
		font-size: 21px;
		padding: 18px 40px 18px 0;
	}
}

/* Form previews (directory search, MEM PIN check, contact): not wired up until ICCP confirms the systems */
.iccp-form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
}

.iccp-form label {
	flex-basis: 100%;
	color: var(--iccp-navy);
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 2px;
}

.iccp-form input,
.iccp-form select,
.iccp-form textarea {
	flex: 1 1 260px;
	min-height: 54px;
	padding: 14px 20px;
	border: 1px solid #cfc8b8;
	border-radius: 999px;
	background: #fff;
	font-family: "Lato", sans-serif;
	font-size: 17px;
	color: var(--iccp-ink);
}

.iccp-form textarea {
	border-radius: 16px;
	min-height: 140px;
	flex-basis: 100%;
}

.iccp-form select {
	border-radius: 14px;
}

.iccp-form input:focus,
.iccp-form select:focus,
.iccp-form textarea:focus {
	outline: 2px solid var(--iccp-gold-text);
	outline-offset: 2px;
	border-color: var(--iccp-gold-text);
}

.iccp-form button {
	min-height: 54px;
	padding: 0 32px;
	border: 0;
	border-radius: 999px;
	background: var(--iccp-navy);
	color: #fff;
	font-family: "Montserrat", sans-serif;
	font-size: 15px;
	font-weight: 600;
	cursor: not-allowed;
	opacity: 0.85;
}

.iccp-form-dark label {
	color: var(--iccp-gold);
}

.iccp-form-dark input {
	border-color: rgba(207, 169, 104, 0.5);
}

.iccp-form-dark button {
	background: var(--iccp-gold);
	color: var(--iccp-navy);
}

.iccp-form-note {
	margin-top: 14px;
	font-family: "Lato", sans-serif;
	font-size: 14px;
	color: var(--iccp-muted);
}

.iccp-form-dark + .iccp-form-note,
.iccp-form-note-dark {
	color: rgba(248, 245, 238, 0.66);
}

.iccp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.iccp-chips li {
	padding: 8px 16px;
	border: 1px solid #cfc8b8;
	border-radius: 999px;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: var(--iccp-navy);
	background: #fff;
}

/* Photos: one consistent crop and corner across the site */
.iccp-photo img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 14px;
	display: block;
}

/* Key facts box (course details) */
.iccp-key-facts .elementor-icon-list-item {
	padding: 11px 0 !important;
	align-items: baseline !important;
}

.iccp-key-facts .elementor-icon-list-text {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 16px;
	width: 100%;
}

.iccp-kf-label {
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 600;
}

.iccp-kf-value {
	text-align: right;
}

.iccp-kf-tbc {
	font-style: italic;
	opacity: 0.75;
}

.iccp-key-facts-dark .iccp-kf-label {
	color: var(--iccp-ivory);
}

/* Inline icon links (Find a practitioner, Check a member) */
.iccp-icon-links .elementor-icon-list-item a {
	text-decoration: none;
}

.iccp-icon-links .elementor-icon-list-item a:hover .elementor-icon-list-text {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Sticky header that tightens on scroll (class toggled in functions.php) ---------- */
.elementor:has(> .iccp-mainbar) {
	position: sticky;
	top: 0;
	z-index: 100;
}

body.admin-bar .elementor:has(> .iccp-mainbar) {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .elementor:has(> .iccp-mainbar) {
		top: 46px;
	}
}

.iccp-utility {
	max-height: 90px;
	overflow: hidden;
	transition: max-height 0.25s ease, padding 0.25s ease;
}

.iccp-mainbar {
	transition: padding 0.25s ease, box-shadow 0.25s ease;
}

.iccp-mainbar .elementor-widget-image img {
	transition: width 0.25s ease;
}

body.iccp-scrolled .iccp-utility {
	max-height: 0;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.iccp-scrolled .iccp-mainbar {
	padding-top: 8px !important;
	padding-bottom: 8px !important;
	box-shadow: 0 6px 20px rgba(0, 16, 28, 0.28);
}

body.iccp-scrolled .iccp-mainbar .elementor-widget-image:not(.elementor-hidden-desktop) img {
	width: 250px !important;
}

@media (max-width: 1024px) {
	body.iccp-scrolled .iccp-mainbar .elementor-widget-image:not(.elementor-hidden-desktop) img {
		width: 230px !important;
	}
}

@media (max-width: 767px) {
	body.iccp-scrolled .iccp-mainbar .elementor-widget-image img {
		width: 120px !important;
	}
}

/* Home hero: tall welcoming photo with the quote card overlapping it */
.iccp-hero-photo img {
	aspect-ratio: 4 / 5;
	object-position: 50% 30%;
	border-radius: 20px;
}

.iccp-hero-quote {
	position: relative;
	z-index: 2;
	box-shadow: 0 18px 40px rgba(0, 16, 28, 0.22);
}

@media (max-width: 1024px) {
	.iccp-hero-photo img {
		aspect-ratio: 4 / 3;
		object-position: 50% 28%;
	}
}

/* Buttons to external ICCP systems whose address is not confirmed yet */
.iccp-ext-pending .elementor-button {
	outline: 2px dashed #c25e25;
	outline-offset: 4px;
}

/* Editorial blocks: the left column (heading + supporting piece) stays in view beside longer text on desktop */
@media (min-width: 1025px) {
	.iccp-block-left {
		position: sticky;
		top: 110px;
		align-self: flex-start;
	}
}

/* Supporting pieces moved into the left column sit a little lower than the heading */
.iccp-block-left > .iccp-photo,
.iccp-block-left > .e-con {
	margin-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
	.iccp-utility,
	.iccp-mainbar,
	.iccp-mainbar .elementor-widget-image img {
		transition: none;
	}

	html {
		scroll-behavior: auto;
	}

	.iccp-arrow-link a::after,
	.iccp-pathway,
	.iccp-details summary::after {
		transition: none;
	}
}
