/*
Theme Name: Mito Energy Reset
Theme URI: https://mitoenergyreset.com/
Author: Jaksa
Description: Lightweight single-purpose theme for a video sales letter bridge page. No hardcoded copy: every piece of text, every link and the video thumbnail are edited inside WordPress (page title, page content, featured image and Customizer fields).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mitoenergyreset
Tags: one-column, custom-colors, custom-menu, translation-ready
*/

/* ---------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------- */

:root {
	--mer-bar:        #ca3328;
	--mer-bar-text:   #ffffff;
	--mer-cta:        #3676dc;
	--mer-cta-hover:  #2c62bb;
	--mer-cta-text:   #ffffff;
	--mer-ink:        #101010;
	--mer-body:       #1a1a1a;
	--mer-muted:      #5a5a5a;
	--mer-rule:       #e3e3e3;
	--mer-page:       #ffffff;

	--mer-disclosure-bg:     #fdf7e3;
	--mer-disclosure-border: #e0b84c;

	--mer-font: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

	--mer-measure: 1000px;   /* body copy column */
	--mer-hero:    640px;    /* video thumbnail max width */
}

/* ---------------------------------------------------------------
   2. Base
   --------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--mer-page);
	color: var(--mer-body);
	font-family: var(--mer-font);
	font-size: 18px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a { color: #1a4fa0; }

a:focus-visible,
button:focus-visible,
.mer-cta:focus-visible,
.mer-video__link:focus-visible {
	outline: 3px solid #111;
	outline-offset: 3px;
}

.mer-screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.mer-wrap {
	max-width: var(--mer-measure);
	margin-inline: auto;
	padding-inline: 20px;
}

/* ---------------------------------------------------------------
   3. Announcement bar
   --------------------------------------------------------------- */

.mer-bar {
	background: var(--mer-bar);
	color: var(--mer-bar-text);
	text-align: center;
	padding: 10px 20px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
}

/* ---------------------------------------------------------------
   4. Hero
   --------------------------------------------------------------- */

.mer-hero {
	text-align: center;
	padding-top: 22px;
}

.mer-hero__title {
	margin: 0 auto;
	max-width: 26ch;
	color: var(--mer-ink);
	font-size: 42px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.mer-hero__sub {
	margin: 6px 0 0;
	font-size: 30px;
	font-weight: 700;
	color: var(--mer-ink);
	line-height: 1.2;
}

/* ---------------------------------------------------------------
   5. Video block
   --------------------------------------------------------------- */

.mer-video {
	margin: 22px auto 0;
	max-width: var(--mer-hero);
}

.mer-video__link {
	position: relative;
	display: block;
	text-decoration: none;
}

.mer-video__link img { width: 100%; }

.mer-video__play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 116px;
	height: 82px;
	border-radius: 16px;
	background: #f00;
	display: grid;
	place-items: center;
	transition: background-color .15s ease, transform .15s ease;
}

.mer-video__play::after {
	content: "";
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 18px 0 18px 30px;
	border-color: transparent transparent transparent #fff;
	margin-left: 6px;
}

.mer-video__link:hover .mer-video__play,
.mer-video__link:focus-visible .mer-video__play {
	background: #d80000;
	transform: scale(1.04);
}

.mer-video__note {
	margin: 8px 0 0;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	color: var(--mer-ink);
	line-height: 1.35;
}

/* ---------------------------------------------------------------
   6. Body copy
   --------------------------------------------------------------- */

.mer-copy {
	margin: 46px auto 0;
	max-width: 880px;
}

.mer-copy p {
	margin: 0 0 22px;
	font-size: 19px;
	line-height: 1.5;
}

.mer-copy p:last-child { margin-bottom: 0; }

.mer-copy h2,
.mer-copy h3,
.mer-copy h4 {
	margin: 30px 0 12px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--mer-ink);
}

.mer-copy h2:first-child,
.mer-copy h3:first-child,
.mer-copy p:first-child { margin-top: 0; }

.mer-copy ul,
.mer-copy ol {
	margin: 0 0 22px;
	padding-left: 24px;
	font-size: 19px;
}

.mer-copy li { margin-bottom: 8px; }

.mer-copy strong { font-weight: 700; color: var(--mer-ink); }

/* ---------------------------------------------------------------
   7. Call to action
   --------------------------------------------------------------- */

.mer-action { margin: 42px auto 0; max-width: 880px; }

.mer-cta {
	display: block;
	width: 100%;
	background: var(--mer-cta);
	color: var(--mer-cta-text);
	text-align: center;
	text-decoration: none;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.15;
	padding: 24px 20px;
	border: 0;
	transition: background-color .15s ease;
}

.mer-cta:hover,
.mer-cta:focus-visible { background: var(--mer-cta-hover); }

.mer-action__note {
	margin: 14px 0 0;
	text-align: center;
	font-size: 17px;
	font-weight: 700;
	color: var(--mer-ink);
}

/* ---------------------------------------------------------------
   8. Disclosure
   --------------------------------------------------------------- */

.mer-disclosure {
	max-width: 880px;
	margin-inline: auto;
	background: var(--mer-disclosure-bg);
	border: 2px solid var(--mer-disclosure-border);
	border-radius: 4px;
	padding: 12px 16px;
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.mer-disclosure p {
	margin: 0;
	font-size: 15px;
	line-height: 1.45;
	color: #3d3218;
}

.mer-disclosure__icon {
	font-size: 18px;
	line-height: 1.4;
	flex: 0 0 auto;
}

.mer-disclosure--top    { margin-top: 16px; }
.mer-disclosure--copy   { margin-bottom: 30px; }
.mer-disclosure--footer { margin-bottom: 20px; }

/* ---------------------------------------------------------------
   9. Footer
   --------------------------------------------------------------- */

.mer-footer {
	margin-top: 60px;
	padding: 26px 20px 40px;
	border-top: 1px solid var(--mer-rule);
	text-align: center;
}

.mer-footer__menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
	justify-content: center;
}

.mer-footer__menu a {
	color: var(--mer-ink);
	font-size: 17px;
	text-decoration: underline;
}

.mer-footer__legal {
	max-width: 760px;
	margin: 18px auto 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--mer-muted);
}

.mer-footer__legal p { margin: 0 0 8px; }
.mer-footer__legal p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------
   10. Interior pages (terms, privacy, 404)
   --------------------------------------------------------------- */

.mer-page {
	max-width: 760px;
	margin: 50px auto 0;
	padding-inline: 20px;
}

.mer-page__title {
	font-size: 34px;
	line-height: 1.2;
	margin: 0 0 24px;
	color: var(--mer-ink);
}

.mer-page__content p,
.mer-page__content li { font-size: 17px; line-height: 1.6; }

.mer-page__content h2 { font-size: 22px; margin-top: 32px; }

.mer-page__back { display: inline-block; margin-top: 30px; }

/* ---------------------------------------------------------------
   11. Responsive
   --------------------------------------------------------------- */

@media (max-width: 860px) {
	.mer-bar { font-size: 18px; }
	.mer-hero__title { font-size: 32px; max-width: 20ch; }
	.mer-hero__sub { font-size: 24px; }
	.mer-cta { font-size: 30px; padding: 20px 16px; }
	.mer-video__play { width: 92px; height: 66px; }
	.mer-video__play::after { border-width: 14px 0 14px 24px; }
}

@media (max-width: 560px) {
	body { font-size: 17px; }
	.mer-bar { font-size: 16px; padding: 9px 14px; }
	.mer-hero { padding-top: 16px; }
	.mer-hero__title { font-size: 26px; }
	.mer-hero__sub { font-size: 20px; }
	.mer-copy { margin-top: 32px; }
	.mer-copy p,
	.mer-copy ul,
	.mer-copy ol { font-size: 17px; }
	.mer-copy h2,
	.mer-copy h3 { font-size: 17px; }
	.mer-cta { font-size: 24px; padding: 18px 14px; }
	.mer-action__note { font-size: 15px; }
	.mer-video__play { width: 74px; height: 52px; border-radius: 12px; }
	.mer-video__play::after { border-width: 11px 0 11px 19px; }
	.mer-footer__menu ul { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}
