/*
Theme Name: Margit Takács
Theme URI: https://margittakacs.com
Author: EntireCommerce (Nishant Kapoor)
Author URI: https://entirecommerce.ai
Description: Custom block theme for Margit Takács — operations-first change consulting. Modern premium B2B SaaS aesthetic.
Version: 0.3.0
Requires at least: 6.4
Tested up to: 6.7
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: margit
*/

/* ──────────────────────────────────────────────────────────────────────
 * BASE / RESET
 * ────────────────────────────────────────────────────────────────────── */

:root {
	--mt-navy: #00243C;
	--mt-gold: #FCB336;
	--mt-dark-teal: #006F7D;
	--mt-light-teal: #64B5B7;
	--mt-sky: #D3DCE2;
	--mt-soft: #F6F8FA;
	--mt-hairline: #EBEFF2;
	--mt-muted: #5A6B7A;
	--mt-text: #1B2A3A;
}

html { scroll-behavior: smooth; }

body {
	font-family: "Open Sans", Calibri, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--mt-text);
	background: #fff;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
	color: var(--mt-dark-teal);
	text-decoration: none;
	transition: color 0.2s ease;
}
a:hover { color: var(--mt-navy); }

strong { font-weight: 600; color: var(--mt-navy); }
em { font-style: italic; }

/* Display headings — Open Sans (brand) */
h1, h2, h3, h4, h5, h6,
.margit-display {
	font-family: "Open Sans", Calibri, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--mt-navy);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.015em;
	margin: 0 0 1rem;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 600; color: var(--mt-dark-teal); }

h1, h1.wp-block-heading { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
h2, h2.wp-block-heading { font-size: clamp(1.65rem, 3.2vw, 2.4rem); }
h3, h3.wp-block-heading { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }

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

/* ──────────────────────────────────────────────────────────────────────
 * HEADER
 * ────────────────────────────────────────────────────────────────────── */

.wp-block-template-part header {
	border-bottom: 1px solid var(--mt-hairline);
	background: #fff;
}

.wp-block-navigation a {
	font-family: "Inter", sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mt-navy);
}
.wp-block-navigation a:hover { color: var(--mt-dark-teal); }

.wp-block-navigation .is-style-button a,
.wp-block-navigation a[href*="calendly"] {
	border: 1.5px solid var(--mt-navy);
	border-radius: 999px;
	padding: 0.55rem 1.25rem;
	transition: background 0.2s ease, color 0.2s ease;
}
.wp-block-navigation .is-style-button a:hover,
.wp-block-navigation a[href*="calendly"]:hover {
	background: var(--mt-navy);
	color: #fff;
}

/* ──────────────────────────────────────────────────────────────────────
 * SECTION SYSTEM — vertical rhythm, alternating backgrounds
 * ────────────────────────────────────────────────────────────────────── */

.margit-section {
	padding-top: clamp(4rem, 7vw, 6.5rem);
	padding-bottom: clamp(4rem, 7vw, 6.5rem);
	padding-left: clamp(1.25rem, 4vw, 2.5rem);
	padding-right: clamp(1.25rem, 4vw, 2.5rem);
	background: #fff;
}

.margit-section .wp-block-columns {
	max-width: 1200px;
	margin: 0 auto;
	gap: clamp(2rem, 5vw, 4rem);
}

.margit-section > .wp-block-group,
.margit-section > p,
.margit-section > h1,
.margit-section > h2,
.margit-section > h3 {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

/* Background variants */
.bg-white { background: #fff; }
.bg-soft { background: var(--mt-soft); }
.bg-skyblue { background: var(--mt-sky); }
.bg-navy { background: var(--mt-navy); color: #fff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy p { color: #fff; }
.bg-navy strong { color: var(--mt-gold); }

/* Eyebrow line — gold uppercase Inter mini-label above H2 */
.margit-eyebrow {
	font-family: "Inter", sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--mt-dark-teal);
	margin: 0 0 1rem;
}
.bg-navy .margit-eyebrow { color: var(--mt-gold); }

/* Lede paragraph — body copy under display headings */
.margit-lede {
	font-family: "Inter", sans-serif;
	font-size: clamp(1rem, 1.5vw, 1.0625rem);
	line-height: 1.65;
	color: var(--mt-muted);
	max-width: 60ch;
	margin: 0 0 1.5rem;
}
.bg-navy .margit-lede { color: rgba(255,255,255,0.85); }

/* ──────────────────────────────────────────────────────────────────────
 * BUTTONS — bigger, more refined
 * ────────────────────────────────────────────────────────────────────── */

.wp-block-button__link {
	font-family: "Inter", sans-serif;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0;
	padding: 0.85rem 1.6rem;
	border-radius: 999px;
	transition: all 0.2s ease;
}
.wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(0, 36, 60, 0.12);
}
.wp-block-button.is-style-outline .wp-block-button__link {
	border: 1.5px solid var(--mt-navy);
	background: transparent;
}
.wp-block-buttons { gap: 0.75rem; }

/* ──────────────────────────────────────────────────────────────────────
 * HERO — clean split, gold rule, Fraunces H1
 * ────────────────────────────────────────────────────────────────────── */

.margit-kj-hero {
	padding-top: clamp(4rem, 7vw, 7rem);
	padding-bottom: clamp(4rem, 7vw, 7rem);
	background: #fff;
}
.margit-kj-hero .wp-block-columns {
	max-width: 1240px;
	margin: 0 auto;
	gap: clamp(2.5rem, 6vw, 5rem);
	align-items: center;
}
.margit-gold-rule {
	display: block;
	width: 56px;
	height: 4px;
	background: var(--mt-gold);
	margin: 0 0 1.75rem;
	border: 0;
}
.margit-kj-hero h1 {
	font-size: clamp(2.4rem, 4.8vw, 4rem);
	line-height: 1.05;
	margin: 0 0 1.5rem;
}
.margit-kj-hero .margit-lede {
	font-size: 1.0625rem;
	max-width: 500px;
	margin: 0 0 2.25rem;
}
.margit-kj-hero figure { margin: 0; max-width: 100%; }
.margit-kj-hero figure img {
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(0, 36, 60, 0.08);
}

/* Centered hero variant — typography-led, no photo */
.margit-kj-hero--centered {
	text-align: center;
	padding-top: clamp(5rem, 9vw, 9rem);
	padding-bottom: clamp(5rem, 9vw, 9rem);
}
.margit-kj-hero--centered > * {
	max-width: 920px;
	margin-left: auto;
	margin-right: auto;
}
.margit-kj-hero--centered h1 {
	max-width: 920px;
	margin: 0 auto 1.75rem;
}
.margit-kj-hero--centered .margit-lede {
	max-width: 640px;
	margin: 0 auto 2.5rem;
}
.margit-gold-rule--center {
	margin-left: auto;
	margin-right: auto;
}

/* ──────────────────────────────────────────────────────────────────────
 * PAIN CARDS — 3-up on soft bg
 * ────────────────────────────────────────────────────────────────────── */

.margit-kj-pain {
	padding-top: clamp(4rem, 6vw, 5.5rem);
	padding-bottom: clamp(4rem, 6vw, 5.5rem);
	background: var(--mt-soft);
}
.margit-kj-pain .wp-block-columns {
	max-width: 1180px;
	margin: 0 auto;
	gap: 1.5rem;
}
.margit-kj-pain-card {
	background: #fff;
	border-radius: 14px;
	padding: 2.5rem 2rem 2.25rem;
	border: 1px solid var(--mt-hairline);
	box-shadow: 0 1px 2px rgba(0, 36, 60, 0.04);
	height: 100%;
	min-height: 180px;
}
.margit-kj-pain-card .accent {
	display: block;
	width: 36px;
	height: 3px;
	background: var(--mt-gold);
	margin: 0 0 1.5rem;
	border: 0;
}
.margit-kj-pain-card p {
	font-family: "Inter", sans-serif;
	font-size: 1.0625rem;
	line-height: 1.5;
	color: var(--mt-navy);
	font-weight: 500;
	margin: 0;
}

/* ──────────────────────────────────────────────────────────────────────
 * STRAPLINE — slim centered Fraunces italic
 * ────────────────────────────────────────────────────────────────────── */

.margit-kj-strapline {
	padding-top: clamp(3.5rem, 5.5vw, 5rem);
	padding-bottom: clamp(3.5rem, 5.5vw, 5rem);
	padding-left: clamp(1.25rem, 4vw, 2.5rem);
	padding-right: clamp(1.25rem, 4vw, 2.5rem);
	background: #fff;
	border-top: 1px solid var(--mt-hairline);
	border-bottom: 1px solid var(--mt-hairline);
}
.margit-kj-strapline .quote {
	font-family: "Fraunces", Georgia, serif;
	font-style: italic;
	font-weight: 400;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	line-height: 1.3;
	color: var(--mt-dark-teal);
	max-width: 880px;
	margin: 0 auto;
	text-align: center;
}

/* ──────────────────────────────────────────────────────────────────────
 * LOGO STRIP — curated, restrained, greyscale
 * ────────────────────────────────────────────────────────────────────── */

.margit-kj-logos {
	padding-top: clamp(3.5rem, 5.5vw, 5rem);
	padding-bottom: clamp(4rem, 6vw, 5.5rem);
	background: #fff;
}
.margit-kj-logos .eyebrow {
	font-family: "Inter", sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--mt-muted);
	text-align: center;
	margin: 0 0 2.5rem;
}
.margit-kj-logos .logo-row {
	max-width: 920px;
	margin: 0 auto 1.5rem !important;
}
.margit-kj-logos .logo-row:last-child { margin-bottom: 0 !important; }
.margit-kj-logos .logo-row img {
	display: block;
	width: 100%;
	height: auto;
	opacity: 0.5;
	filter: grayscale(100%);
	transition: opacity 0.25s ease;
}
.margit-kj-logos .logo-row img:hover { opacity: 0.85; }

/* ──────────────────────────────────────────────────────────────────────
 * INTRO — text-only positioning, centered, soft bg
 * ────────────────────────────────────────────────────────────────────── */

.margit-intro {
	padding-top: clamp(4.5rem, 7vw, 6.5rem);
	padding-bottom: clamp(4.5rem, 7vw, 6.5rem);
	background: var(--mt-soft);
}
.margit-intro h2 {
	max-width: 820px;
	margin: 0 auto 1.5rem;
}
.margit-intro .margit-lede {
	max-width: 720px;
	margin: 0 auto 1.25rem;
	text-align: center;
}

/* ──────────────────────────────────────────────────────────────────────
 * TWO-COLUMN SECTIONS — Change is Inevitable, Picture the Future, Academy
 * ────────────────────────────────────────────────────────────────────── */

.margit-twocol .wp-block-column figure { margin: 0; }
.margit-twocol .wp-block-column figure img {
	border-radius: 14px;
	box-shadow: 0 12px 30px rgba(0, 36, 60, 0.08);
}
.margit-twocol h2 { margin-bottom: 1.25rem; }
.margit-twocol ul.wp-block-list {
	font-family: "Inter", sans-serif;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--mt-navy);
	padding-left: 0;
	list-style: none;
	margin: 1.5rem 0 2rem;
}
.margit-twocol ul.wp-block-list li {
	padding: 0.5rem 0 0.5rem 1.5rem;
	position: relative;
	border-bottom: 1px solid var(--mt-hairline);
}
.margit-twocol ul.wp-block-list li:last-child { border-bottom: 0; }
.margit-twocol ul.wp-block-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.05rem;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--mt-gold);
}

/* Outcome variant (image on right) and personal-intro variant share .margit-twocol */
.margit-personal-intro img { border-radius: 16px; }

/* ──────────────────────────────────────────────────────────────────────
 * OFFER GRID — 3 cards: Consulting / Training / Coaching
 * ────────────────────────────────────────────────────────────────────── */

.margit-offer-grid {
	padding-top: clamp(4.5rem, 7vw, 6.5rem);
	padding-bottom: clamp(4.5rem, 7vw, 6.5rem);
	background: var(--mt-soft);
}
.margit-offer-grid > .wp-block-group:first-of-type {
	max-width: 820px;
	margin: 0 auto 3rem;
	text-align: center;
}
.margit-offer-grid > .wp-block-group:first-of-type h2 {
	margin: 0.4rem 0 1rem;
}
.margit-offer-grid .wp-block-columns {
	max-width: 1180px;
	margin: 0 auto;
	gap: 1.5rem;
}
.margit-offer-grid .wp-block-column {
	background: #fff;
	border-radius: 16px;
	padding: 2.5rem 2rem 2.25rem;
	border: 1px solid var(--mt-hairline);
	box-shadow: 0 1px 2px rgba(0, 36, 60, 0.04);
	display: flex;
	flex-direction: column;
}
.margit-offer-grid .wp-block-column h3 {
	font-size: 1.4rem;
	margin: 0 0 0.75rem;
}
.margit-offer-grid .wp-block-column p {
	color: var(--mt-muted);
	font-size: 0.98rem;
	line-height: 1.6;
	margin: 0 0 1.5rem;
	flex-grow: 1;
}
.margit-offer-grid .wp-block-buttons {
	margin-top: auto;
	justify-content: center;
}

/* ──────────────────────────────────────────────────────────────────────
 * TESTIMONIALS — clean cards, photo + name + role
 * ────────────────────────────────────────────────────────────────────── */

.margit-testimonials {
	padding-top: clamp(4.5rem, 7vw, 6.5rem);
	padding-bottom: clamp(4.5rem, 7vw, 6.5rem);
	background: #fff;
}
.margit-testimonials > .wp-block-group:first-of-type {
	max-width: 820px;
	margin: 0 auto 3.5rem;
	text-align: center;
}
.margit-testimonials .wp-block-columns {
	max-width: 1240px;
	margin: 0 auto 1.5rem;
	gap: 1.5rem;
}
.margit-testimonials .wp-block-columns:last-child { margin-bottom: 0; }
.margit-testimonial-card {
	background: var(--mt-soft);
	border-radius: 14px;
	padding: 1.75rem 1.5rem 1.5rem;
	height: 100%;
	display: flex;
	flex-direction: column;
}
.margit-testimonial-card .quote {
	font-family: "Inter", sans-serif;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--mt-text);
	margin: 0 0 1.25rem;
	flex-grow: 1;
}
.margit-testimonial-card .attribution {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	border-top: 1px solid var(--mt-hairline);
	padding-top: 1rem;
}
.margit-testimonial-card .attribution img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.margit-testimonial-card .name {
	font-family: "Inter", sans-serif;
	font-weight: 600;
	font-size: 0.88rem;
	color: var(--mt-navy);
	margin: 0;
	line-height: 1.3;
}
.margit-testimonial-card .role {
	font-family: "Inter", sans-serif;
	font-size: 0.76rem;
	color: var(--mt-muted);
	margin: 0.15rem 0 0;
	line-height: 1.35;
}

/* ──────────────────────────────────────────────────────────────────────
 * NEWSLETTER — navy band with gold CTA
 * ────────────────────────────────────────────────────────────────────── */

.margit-newsletter {
	padding-top: clamp(4rem, 6vw, 5.5rem);
	padding-bottom: clamp(4rem, 6vw, 5.5rem);
	padding-left: clamp(1.25rem, 4vw, 2.5rem);
	padding-right: clamp(1.25rem, 4vw, 2.5rem);
	background: var(--mt-navy);
	color: #fff;
	text-align: center;
}
.margit-newsletter > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.margit-newsletter h2 { color: #fff; margin: 0.4rem 0 1rem; }
.margit-newsletter .margit-lede {
	color: rgba(255,255,255,0.75);
	text-align: center;
	margin: 0 auto 2rem;
}
.margit-newsletter .margit-eyebrow { color: var(--mt-gold); text-align: center; }
.margit-newsletter .wp-block-buttons { justify-content: center; }

/* ──────────────────────────────────────────────────────────────────────
 * FOOTER (theme template handles its own styling — links here only)
 * ────────────────────────────────────────────────────────────────────── */

footer a { color: rgba(255,255,255,0.75) !important; }
footer a:hover { color: var(--mt-gold) !important; }

/* ──────────────────────────────────────────────────────────────────────
 * RESPONSIVE
 * ────────────────────────────────────────────────────────────────────── */

@media (max-width: 781px) {
	.margit-section .wp-block-columns,
	.margit-kj-pain .wp-block-columns,
	.margit-offer-grid .wp-block-columns,
	.margit-testimonials .wp-block-columns {
		gap: 1rem;
	}
	.margit-kj-hero figure img { max-width: 340px; margin: 0 auto; }
	.margit-kj-logos .logo-row { max-width: 100%; }
}
