/*
 * Tobalt Marketing — section block styles
 *
 * Scoped to .tobalt-marketing main wrapper. Brand tokens are CSS custom
 * properties so per-site overrides only need to redeclare them in a
 * later-loaded stylesheet (e.g. style.css of the active child theme).
 *
 * Author: Tobalt — https://tobalt.lt
 */

.tobalt-marketing {
	/* Brand tokens — defaults extracted from itremejas.lt Elementor Kit */
	--tm-primary: #FDC339;
	--tm-primary-hover: #e7ae22;
	--tm-secondary: #062A35;
	--tm-text: #353D48;
	--tm-text-muted: #5b6470;
	--tm-bg: #FFFFFF;
	--tm-bg-alt: #F3F4F8;
	--tm-border: #DAD9D9;
	--tm-brand-pale: #F9DB91;

	--tm-font-heading: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--tm-font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--tm-radius: 12px;
	--tm-shadow: 0 4px 24px rgba(6, 42, 53, 0.08);
	--tm-section-py: clamp(48px, 6vw, 96px);
	--tm-container: 1200px;

	color: var(--tm-text);
	font-family: var(--tm-font-body);
	font-size: 16px;
	line-height: 1.6;
	background: var(--tm-bg);
}

.tobalt-marketing__container {
	max-width: var(--tm-container);
	margin: 0 auto;
	padding-left: clamp(16px, 4vw, 32px);
	padding-right: clamp(16px, 4vw, 32px);
}

.tobalt-marketing h1,
.tobalt-marketing h2,
.tobalt-marketing h3,
.tobalt-marketing h4 {
	font-family: var(--tm-font-heading);
	color: var(--tm-secondary);
	line-height: 1.2;
	margin: 0 0 0.4em;
}

.tobalt-marketing__empty {
	padding: var(--tm-section-py) 0;
}

/* ===== Buttons ===== */
.tm-btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 999px;
	font-family: var(--tm-font-heading);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.tm-btn + .tm-btn { margin-left: 12px; }
.tm-btn:hover { transform: translateY(-1px); }
.tm-btn:focus-visible { outline: 3px solid var(--tm-brand-pale); outline-offset: 2px; }
.tm-btn--primary    { background: var(--tm-primary); color: var(--tm-secondary); }
.tm-btn--primary:hover { background: var(--tm-primary-hover); color: var(--tm-secondary); }
.tm-btn--secondary  { background: var(--tm-secondary); color: #fff; }
.tm-btn--secondary:hover { background: #0a3a48; color: #fff; }
.tm-btn--ghost      { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.tm-btn--ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ===== Hero ===== */
.tm-hero {
	position: relative;
	min-height: 420px;
	padding: var(--tm-section-py) 0;
	background-size: cover;
	background-position: center;
	background-color: var(--tm-secondary);
	color: #fff;
	isolation: isolate;
}
.tm-hero__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(135deg, rgba(6,42,53,1) 0%, rgba(6,42,53,0) 60%);
	opacity: var(--tm-overlay, 0.35);
	z-index: -1;
}
.tm-hero::after {
	content: ""; position: absolute; inset: 0;
	background: rgba(6,42,53,var(--tm-overlay, 0.35));
	z-index: -1;
}
.tm-hero__inner { position: relative; z-index: 1; max-width: 800px; }
.tm-hero__eyebrow {
	display: inline-block;
	font-family: var(--tm-font-heading);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--tm-primary);
	margin: 0 0 16px;
}
.tm-hero__title {
	color: #fff;
	font-size: clamp(36px, 6vw, 72px);
	font-weight: 700;
	margin: 0 0 20px;
}
.tm-hero__subtitle {
	font-size: clamp(16px, 1.6vw, 20px);
	color: rgba(255,255,255,0.92);
	margin: 0 0 32px;
	max-width: 640px;
}
.tm-hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.tm-hero__buttons .tm-btn + .tm-btn { margin-left: 0; }

/* ===== Text + Image split ===== */
.tm-text-image { padding: var(--tm-section-py) 0; }
.tm-text-image__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(24px, 4vw, 64px);
	align-items: center;
}
.tm-text-image--image-left .tm-text-image__copy  { order: 2; }
.tm-text-image--image-left .tm-text-image__media { order: 1; }
.tm-text-image__title { font-size: clamp(28px, 3vw, 40px); }
.tm-text-image__body { font-size: 17px; line-height: 1.7; margin-bottom: 24px; }
.tm-text-image__body p { margin: 0 0 1em; }
.tm-text-image__media img {
	width: 100%; height: auto;
	border-radius: var(--tm-radius);
	box-shadow: var(--tm-shadow);
}
@media (max-width: 768px) {
	.tm-text-image__grid { grid-template-columns: 1fr; }
	.tm-text-image--image-left .tm-text-image__copy,
	.tm-text-image--image-left .tm-text-image__media { order: 0; }
}

/* ===== Icon cards ===== */
.tm-icon-cards { padding: var(--tm-section-py) 0; background: var(--tm-bg-alt); }
.tm-icon-cards__head { text-align: center; margin-bottom: clamp(32px, 4vw, 56px); }
.tm-icon-cards__title { font-size: clamp(28px, 3vw, 40px); }
.tm-icon-cards__sub { color: var(--tm-text-muted); max-width: 640px; margin: 0 auto; font-size: 17px; }
.tm-icon-cards__grid {
	display: grid;
	gap: clamp(20px, 2vw, 32px);
}
.tm-icon-cards__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.tm-icon-cards__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.tm-icon-cards__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
	.tm-icon-cards__grid--cols-3,
	.tm-icon-cards__grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.tm-icon-cards__grid { grid-template-columns: 1fr; }
}
.tm-icon-cards__card {
	background: #fff;
	padding: 32px 28px;
	border-radius: var(--tm-radius);
	box-shadow: var(--tm-shadow);
	display: flex;
	flex-direction: column;
}
.tm-icon-cards__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 56px;
	border-radius: 14px;
	background: var(--tm-brand-pale);
	color: var(--tm-secondary);
	font-size: 28px;
	margin-bottom: 20px;
}
.tm-icon-cards__card-title { font-size: 20px; }
.tm-icon-cards__card-body { color: var(--tm-text-muted); flex: 1; margin: 0 0 16px; }
.tm-icon-cards__card-cta {
	font-family: var(--tm-font-heading);
	font-weight: 600;
	color: var(--tm-secondary);
	text-decoration: none;
	align-self: flex-start;
	border-bottom: 2px solid var(--tm-primary);
	padding-bottom: 2px;
}
.tm-icon-cards__card-cta:hover { color: var(--tm-primary-hover); }

/* ===== CTA Strip ===== */
.tm-cta-strip { padding: clamp(40px, 5vw, 72px) 0; }
.tm-cta-strip--primary   { background: var(--tm-primary);   color: var(--tm-secondary); }
.tm-cta-strip--secondary { background: var(--tm-secondary); color: #fff; }
.tm-cta-strip--light     { background: var(--tm-bg-alt);    color: var(--tm-text); }
.tm-cta-strip--primary h2, .tm-cta-strip--light h2 { color: var(--tm-secondary); }
.tm-cta-strip--secondary h2 { color: #fff; }
.tm-cta-strip__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}
.tm-cta-strip__copy { flex: 1; min-width: 280px; }
.tm-cta-strip__title { font-size: clamp(24px, 2.6vw, 36px); margin: 0; }
.tm-cta-strip__subtitle { margin: 8px 0 0; opacity: 0.9; font-size: 17px; }

/* ===== Stats ===== */
.tm-stats { padding: var(--tm-section-py) 0; }
.tm-stats__grid {
	display: grid;
	gap: clamp(24px, 3vw, 48px);
	text-align: center;
}
.tm-stats__grid--items-1 { grid-template-columns: 1fr; }
.tm-stats__grid--items-2 { grid-template-columns: repeat(2, 1fr); }
.tm-stats__grid--items-3 { grid-template-columns: repeat(3, 1fr); }
.tm-stats__grid--items-4 { grid-template-columns: repeat(4, 1fr); }
.tm-stats__grid--items-5,
.tm-stats__grid--items-6 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
	.tm-stats__grid { grid-template-columns: repeat(2, 1fr) !important; }
}
.tm-stats__value {
	font-family: var(--tm-font-heading);
	font-weight: 700;
	font-size: clamp(36px, 4vw, 56px);
	color: var(--tm-secondary);
	line-height: 1;
}
.tm-stats__suffix { color: var(--tm-primary); }
.tm-stats__label { margin-top: 8px; color: var(--tm-text-muted); font-size: 15px; }

/* ===== Rich text ===== */
.tm-rich-text { padding: var(--tm-section-py) 0; }
.tm-rich-text__inner { max-width: 960px; }
.tm-rich-text--narrow .tm-rich-text__inner { max-width: 720px; }
.tm-rich-text--wide   .tm-rich-text__inner { max-width: 1200px; }
.tm-rich-text__inner p { margin: 0 0 1em; font-size: 17px; line-height: 1.7; }
.tm-rich-text__inner h2 { font-size: clamp(28px, 3vw, 36px); margin-top: 1.4em; }
.tm-rich-text__inner h3 { font-size: 22px; margin-top: 1.2em; }
.tm-rich-text__inner a { color: var(--tm-secondary); border-bottom: 2px solid var(--tm-primary); text-decoration: none; }

/* ===== Contact ===== */
.tm-contact { padding: var(--tm-section-py) 0; background: var(--tm-bg-alt); }
.tm-contact__inner { max-width: 720px; text-align: center; margin: 0 auto; }
.tm-contact__title { font-size: clamp(28px, 3vw, 36px); }
.tm-contact__list {
	list-style: none; padding: 0; margin: 24px 0 16px;
	display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
}
.tm-contact__item {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 18px;
}
.tm-contact__item .dashicons { color: var(--tm-primary); font-size: 22px; width: 22px; height: 22px; }
.tm-contact__item a { color: var(--tm-secondary); text-decoration: none; border-bottom: 2px solid var(--tm-primary); }
.tm-contact__note { color: var(--tm-text-muted); font-size: 15px; }

/* ===== Magic-link signup ===== */
.tm-magic-signup { padding: var(--tm-section-py) 0; }
.tm-magic-signup__inner { max-width: 560px; margin: 0 auto; text-align: center; }
.tm-magic-signup__title { font-size: clamp(28px, 3vw, 36px); }
.tm-magic-signup__subtitle { color: var(--tm-text-muted); font-size: 17px; margin-bottom: 24px; }
.tm-magic-signup__form { text-align: left; }
.tm-magic-signup__label {
	display: block; font-weight: 600; margin-bottom: 8px;
	font-family: var(--tm-font-heading); font-size: 14px;
}
.tm-magic-signup__row {
	display: flex; gap: 8px; flex-wrap: wrap;
}
.tm-magic-signup__input {
	flex: 1; min-width: 220px;
	padding: 14px 18px;
	border: 2px solid var(--tm-border);
	border-radius: 999px;
	font-size: 16px;
	font-family: var(--tm-font-body);
	background: #fff;
	color: var(--tm-text);
}
.tm-magic-signup__input:focus {
	outline: none;
	border-color: var(--tm-primary);
	box-shadow: 0 0 0 3px var(--tm-brand-pale);
}
.tm-magic-signup__submit { flex-shrink: 0; }
.tm-magic-signup__status {
	margin: 16px 0 0;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 15px;
}
.tm-magic-signup__status.is-ok    { background: #e6f7e9; color: #1e6b2d; border: 1px solid #b9e2c3; }
.tm-magic-signup__status.is-error { background: #fde8e8; color: #8a1f1f; border: 1px solid #f3b8b8; }
