/*
Theme Name: MPD Courier
Template: kadence
Description: Child theme for MPD Courier (Kadence). Content in the block editor, colours and fonts in Customise.
Version: 0.1.0
Text Domain: mpd-kadence
*/

/* ---------- two-tone headings: second line via Highlight (orange text, no background) ---------- */
mark.has-inline-color { background: none !important; padding: 0; }
.wp-block-heading { letter-spacing: -0.01em; }

/* ---------- eyebrow ---------- */
p.is-style-mpd-eyebrow {
	font-family: var(--global-heading-font-family, inherit);
	font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--global-palette2); margin-bottom: 0.6em;
}
.has-palette-9-color p.is-style-mpd-eyebrow, .wp-block-cover p.is-style-mpd-eyebrow { color: var(--global-palette1); }

/* ---------- hero (Cover) ---------- */
.wp-block-cover.is-style-mpd-hero { min-height: min(88vh, 820px); align-items: center; }
.wp-block-cover.is-style-mpd-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1.05; margin: 0 0 0.35em; color: #fff; }
/* core sets width:auto + margin:0 for content-position covers, hence the specificity + !important */
.wp-block-cover.is-style-mpd-hero.has-custom-content-position .wp-block-cover__inner-container,
.wp-block-cover.is-style-mpd-hero .wp-block-cover__inner-container { width: 100% !important; max-width: 1200px; margin: 0 auto !important; padding: 0 1.5rem; box-sizing: border-box; }
.wp-block-cover.is-style-mpd-hero .wp-block-cover__inner-container > * { max-width: 620px; }
@media (max-width: 781px) {
	/* phone: the photo sits behind all the text, so darken it evenly */
	.wp-block-cover.is-style-mpd-hero .wp-block-cover__background,
	.wp-block-cover.is-style-mpd-band .wp-block-cover__background { background: rgba(17, 17, 17, 0.84) !important; }
}
.wp-block-cover.is-style-mpd-hero p { font-size: 1.15rem; color: rgba(255, 255, 255, 0.88); }

/* ---------- photo band (Cover) ---------- */
.wp-block-cover.is-style-mpd-band h2 { color: #fff; }
.wp-block-cover.is-style-mpd-band .wp-block-cover__inner-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- orange band ---------- */
.mpd-band-orange h2 { color: #fff; }
.mpd-band-orange p.is-style-mpd-eyebrow { color: var(--global-palette3); text-align: center; }

/* ---------- buttons ---------- */
.wp-block-button__link { font-family: var(--global-heading-font-family, inherit); font-weight: 700; letter-spacing: 0.02em; transition: transform 0.2s, background-color 0.2s, color 0.2s; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.is-style-outline .wp-block-button__link { border-width: 2px; }

/* round button that sits over the edge of a band (Slam's "see more" disc) */
.wp-block-buttons.is-style-mpd-disc { justify-content: center; position: relative; z-index: 2; }
/* straight after a band: half over its bottom edge */
.mpd-band-orange + .wp-block-buttons.is-style-mpd-disc { margin-top: -66px !important; margin-bottom: 0; }
.wp-block-buttons.is-style-mpd-disc .wp-block-button__link {
	width: 132px; height: 132px; border-radius: 50%; padding: 0 12px;
	display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2;
	background: #fff; color: var(--global-palette2); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
	font-size: 14px; text-transform: uppercase;
}
.wp-block-buttons.is-style-mpd-disc .wp-block-button__link:hover { background: var(--global-palette2); color: #fff; transform: scale(1.05); }

/* ---------- steps 01 / 02 / 03 ---------- */
.wp-block-columns.is-style-mpd-steps { gap: 0 !important; }
.wp-block-columns.is-style-mpd-steps > .wp-block-column {
	background: var(--global-palette7); padding: 2.4rem 2rem; transition: background-color 0.3s, color 0.3s, transform 0.3s;
}
.wp-block-columns.is-style-mpd-steps > .wp-block-column:nth-child(2) { margin-top: 2.5rem; }
.wp-block-columns.is-style-mpd-steps > .wp-block-column:nth-child(3) { margin-top: 5rem; }
.wp-block-columns.is-style-mpd-steps > .wp-block-column h3:first-child { font-size: 3rem; line-height: 1; margin: 0 0 0.4em; color: var(--global-palette6); transition: color 0.3s; }
.wp-block-columns.is-style-mpd-steps > .wp-block-column h4 { margin: 0 0 0.5em; transition: color 0.3s; }
.wp-block-columns.is-style-mpd-steps > .wp-block-column p { font-size: 15px; margin: 0; transition: color 0.3s; }
/* the first step starts lit; hover lights any step (on touch screens the first stays lit) */
.wp-block-columns.is-style-mpd-steps > .wp-block-column:first-child,
.wp-block-columns.is-style-mpd-steps > .wp-block-column:hover { background: var(--global-palette2); }
.wp-block-columns.is-style-mpd-steps > .wp-block-column:first-child *,
.wp-block-columns.is-style-mpd-steps > .wp-block-column:hover * { color: #fff !important; }
@media (hover: hover) {
	.wp-block-columns.is-style-mpd-steps:hover > .wp-block-column:first-child:not(:hover) { background: var(--global-palette7); }
	.wp-block-columns.is-style-mpd-steps:hover > .wp-block-column:first-child:not(:hover) h3:first-child { color: var(--global-palette6) !important; }
	.wp-block-columns.is-style-mpd-steps:hover > .wp-block-column:first-child:not(:hover) h4 { color: var(--global-palette3) !important; }
	.wp-block-columns.is-style-mpd-steps:hover > .wp-block-column:first-child:not(:hover) p { color: var(--global-palette5) !important; }
}
@media (max-width: 781px) {
	.wp-block-columns.is-style-mpd-steps > .wp-block-column:nth-child(n) { margin-top: 0; }
}

/* ---------- service cards ---------- */
.wp-block-columns.is-style-mpd-cards > .wp-block-column {
	background: #fff; color: var(--global-palette5); padding: 2rem 1.8rem; border-radius: 6px;
	border-top: 4px solid transparent; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.wp-block-columns.is-style-mpd-cards > .wp-block-column:hover { transform: translateY(-6px); border-top-color: var(--global-palette1); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14); }
.wp-block-columns.is-style-mpd-cards h3 { font-size: 1.25rem; margin: 0.6em 0 0.4em; color: var(--global-palette3); }
.wp-block-columns.is-style-mpd-cards p { font-size: 15px; margin: 0; }
.mpd-icon { width: 54px; height: 54px; border-radius: 50%; background: rgba(248, 72, 0, 0.1); display: flex; align-items: center; justify-content: center; color: var(--global-palette2); }
.mpd-icon svg { width: 26px; height: 26px; }

/* ---------- contact cards ---------- */
.wp-block-columns.is-style-mpd-contact > .wp-block-column { text-align: center; padding: 1.6rem 1rem; }
.wp-block-columns.is-style-mpd-contact .mpd-icon { margin: 0 auto 0.8rem; }
.wp-block-columns.is-style-mpd-contact h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 0.3em; }
.wp-block-columns.is-style-mpd-contact p { margin: 0; }
.wp-block-columns.is-style-mpd-contact a { color: inherit; text-decoration: none; font-weight: 700; }
.wp-block-columns.is-style-mpd-contact a:hover { color: var(--global-palette2); }

/* ---------- FAQ (Details) ---------- */
.wp-block-details.is-style-mpd-faq { border-bottom: 1px solid rgba(0, 0, 0, 0.1); padding: 0.9rem 0; }
.wp-block-details.is-style-mpd-faq summary {
	list-style: none; cursor: pointer; font-family: var(--global-heading-font-family, inherit); font-weight: 700;
	color: var(--global-palette3); display: flex; gap: 0.8rem; align-items: center;
}
.wp-block-details.is-style-mpd-faq summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-mpd-faq summary::before {
	content: "+"; flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--global-palette2); color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; transition: transform 0.25s;
}
.wp-block-details.is-style-mpd-faq[open] summary::before { transform: rotate(45deg); }
.wp-block-details.is-style-mpd-faq > :not(summary) { margin: 0.6rem 0 0 2.4rem; font-size: 15px; }

/* ---------- tick list ---------- */
ul.is-style-mpd-ticks { list-style: none; padding-left: 0; }
ul.is-style-mpd-ticks li { position: relative; padding-left: 2rem; margin-bottom: 0.7rem; }
ul.is-style-mpd-ticks li::before {
	content: ""; position: absolute; left: 0; top: 0.2em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
	background: var(--global-palette2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- UK map ---------- */
.mpd-map svg { width: 100%; max-width: 360px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(248, 72, 0, 0.25)); }
.mpd-map svg path, .mpd-map svg g { fill: var(--global-palette1); }

/* ---------- scroll reveal (only once reveal.js has run) ---------- */
html.mpd-js .mpd-reveal, html.mpd-js .mpd-reveal-left, html.mpd-js .mpd-reveal-right, html.mpd-js .mpd-reveal-zoom {
	opacity: 0; transition: opacity 0.8s ease, transform 0.8s ease;
}
html.mpd-js .mpd-reveal { transform: translateY(36px); }
html.mpd-js .mpd-reveal-left { transform: translateX(-48px); }
html.mpd-js .mpd-reveal-right { transform: translateX(48px); }
html.mpd-js .mpd-reveal-zoom { transform: scale(0.92); }
html.mpd-js .mpd-in { opacity: 1; transform: none; }

/* ---------- header top bar (Kadence top row HTML) ---------- */
.mpd-topbar { display: flex; gap: 1.6rem; flex-wrap: wrap; font-size: 13px; }
.mpd-topbar a { color: inherit; text-decoration: none; }
.mpd-topbar a:hover { color: var(--global-palette1); }

/* ---------- footer ---------- */
.site-footer .mpd-footer-logo img { width: 190px; height: auto; }
.site-footer .widget a { color: #cfcfcf; text-decoration: none; }
.site-footer .widget a:hover { color: var(--global-palette1); }
.site-footer .widget ul { list-style: none; padding-left: 0; margin: 0; }
.site-footer .widget li { margin-bottom: 0.45em; }
