/*
Theme Name: Astra Child V2 — Taller Creativo
Theme URI: https://tutoredbymsliuba.com
Description: V2 "Taller Creativo" design for Tutored by Ms. Liuba — playful, warm, workshop-feel redesign. Child theme of Astra with native PHP homepage (no Elementor dependency for the front page).
Author: TutorPortal
Template: astra
Version: 2.0.0
Text Domain: astra-child-v2
*/

/* ============================================================
   Design tokens — V2 "Taller Creativo / más juguetón"
   ============================================================ */
:root {
	--tpv2-ink: #1A202C;
	--tpv2-muted: #5C6370;
	--tpv2-cream: #FDF5E6;
	--tpv2-cream-deep: #F4E9D8;
	--tpv2-sand: #EFE2CE;
	--tpv2-coral: #F0927D;
	--tpv2-coral-deep: #DE7A64;
	--tpv2-terracotta: #C05A42;
	--tpv2-gold: #F2B33D;
	--tpv2-lavender: #C8BFE7;
	--tpv2-lavender-tint: #EFECF8;
	--tpv2-purple: #5F4FA8;
	--tpv2-rose: #EBBBB4;
	--tpv2-pink-tint: #FBE5DE;
	--tpv2-peach-tint: #F9EAE7;
	--tpv2-font-display: 'Nunito', sans-serif;
	--tpv2-font-body: 'Karla', sans-serif;

	/* keep legacy aliases used elsewhere on the site */
	--tp-cream: var(--tpv2-cream);
	--tp-coral: var(--tpv2-coral);
	--tp-lavender: var(--tpv2-lavender);
	--tp-rose: var(--tpv2-rose);
	--tp-dark: var(--tpv2-ink);
}

/* ============================================================
   Base
   ============================================================ */
body {
	background-color: var(--tpv2-cream);
	font-family: var(--tpv2-font-body);
	color: var(--tpv2-ink);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--tpv2-font-display);
	color: var(--tpv2-ink);
	font-weight: 900;
}

p { font-family: var(--tpv2-font-body); }

/* Full-bleed front page: neutralise Astra content wrappers */
.home .ast-container,
.home.page .site-content .ast-container {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}
.home .site-content { padding: 0; }
.home .entry-header, .home .ast-single-post-featured-section { display: none; }

/* Astra's .ast-container is display:flex — without an explicit width the
   front-page <main> shrinks to content size and sits at flex-start (left). */
.tpv2-front { width: 100%; }

/* ============================================================
   Shared components
   ============================================================ */
.tpv2-section { position: relative; padding: 90px 24px; }
.tpv2-container { max-width: 1140px; margin: 0 auto; }

.tpv2-badge {
	display: inline-block;
	font-family: var(--tpv2-font-display);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	padding: 8px 18px;
	border-radius: 999px;
	background: var(--tpv2-lavender-tint);
	color: var(--tpv2-purple);
}
.tpv2-badge--coral { background: var(--tpv2-pink-tint); color: var(--tpv2-terracotta); }
.tpv2-badge--dark { background: var(--tpv2-ink); color: #fff; }

.tpv2-btn {
	display: inline-block;
	font-family: var(--tpv2-font-display);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 16px 32px;
	border-radius: 999px;
	text-decoration: none !important;
	text-align: center;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
	line-height: 1.2;
}
.tpv2-btn:hover { transform: translateY(-2px); }

.tpv2-btn--coral {
	background: var(--tpv2-coral);
	color: #fff !important;
	box-shadow: 0 10px 24px rgba(222, 122, 100, 0.35);
}
.tpv2-btn--coral:hover { background: var(--tpv2-coral-deep); color: #fff !important; }

.tpv2-btn--outline {
	background: #fff;
	color: var(--tpv2-ink) !important;
	border: 2px solid var(--tpv2-ink);
}
.tpv2-btn--outline:hover { background: var(--tpv2-cream); }

.tpv2-btn--dark {
	background: var(--tpv2-ink);
	color: #fff !important;
	font-size: 12px;
	padding: 12px 24px;
}
.tpv2-btn--dark:hover { background: #2d3748; }

.tpv2-btn--sm { font-size: 12px; padding: 12px 26px; }

.tpv2-section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.tpv2-section-head h2 {
	font-size: 40px;
	letter-spacing: -0.5px;
	line-height: 1.15;
	margin: 18px 0 14px;
}
.tpv2-section-head p {
	font-size: 17px;
	line-height: 1.65;
	color: var(--tpv2-muted);
	margin: 0;
}

.tpv2-stars { color: var(--tpv2-gold); letter-spacing: 2px; font-size: 15px; }

/* Wavy section divider (svg sits at the top of a section, overlapping upward) */
.tpv2-wave {
	position: absolute;
	top: -58px;
	left: 0;
	width: 100%;
	height: 60px;
	display: block;
	pointer-events: none;
}
.tpv2-wave svg { display: block; width: 100%; height: 100%; }

/* ============================================================
   Header
   ============================================================ */
.tpv2-header {
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 999;
	box-shadow: 0 2px 14px rgba(26, 32, 44, 0.06);
}
.tpv2-header-inner {
	max-width: 1240px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 12px 24px;
}
.tpv2-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none !important;
}
.tpv2-brand img { height: 54px; width: auto; display: block; }
.tpv2-brand-text {
	font-family: var(--tpv2-font-display);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--tpv2-ink);
}
.tpv2-brand-text strong {
	display: block;
	font-weight: 900;
	color: var(--tpv2-coral-deep);
}
.tpv2-nav {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
	justify-content: center;
}
.tpv2-nav a {
	font-family: var(--tpv2-font-display);
	font-size: 15px;
	font-weight: 800;
	color: var(--tpv2-ink);
	text-decoration: none !important;
	padding: 9px 14px;
	border-radius: 999px;
	transition: background-color .2s ease, color .2s ease;
}
.tpv2-nav a:hover { background: var(--tpv2-cream); color: var(--tpv2-terracotta); }
.tpv2-nav a.is-active { background: var(--tpv2-pink-tint); color: var(--tpv2-terracotta); }

/* Hamburger toggle — hidden on desktop, shown below 980px */
.tpv2-nav-toggle { display: none; }

/* Header cart button — count badge refreshed via add-to-cart fragments */
.tpv2-cart-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	border-radius: 999px;
	background: var(--tpv2-cream);
	color: var(--tpv2-ink);
	text-decoration: none !important;
	transition: background-color .2s ease, color .2s ease;
}
.tpv2-cart-link:hover { background: var(--tpv2-pink-tint); color: var(--tpv2-terracotta); }
.tpv2-cart-count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--tpv2-coral);
	color: #fff;
	font-family: var(--tpv2-font-display);
	font-size: 11px;
	font-weight: 800;
	line-height: 18px;
	text-align: center;
}

/* Astra's scroll-to-top arrow — off-palette and collides with floating UI */
#ast-scroll-top { display: none !important; }

/* ============================================================
   Hero
   ============================================================ */
.tpv2-hero {
	background: var(--tpv2-cream);
	overflow: hidden;
	padding: 80px 24px 110px;
}
.tpv2-hero::before {
	/* soft peach blob bottom-left */
	content: "";
	position: absolute;
	left: -120px;
	bottom: -140px;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	background: var(--tpv2-rose);
	opacity: .35;
}
.tpv2-hero-grid {
	max-width: 1140px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: .7fr 1.3fr;
	gap: 48px;
	align-items: center;
	position: relative;
}
.tpv2-hero h1 {
	font-size: clamp(38px, 5vw, 60px);
	font-weight: 900;
	line-height: 1.08;
	letter-spacing: -1px;
	margin: 22px 0 24px;
}
.tpv2-hero-highlight {
	color: var(--tpv2-terracotta);
	/* The band must be shorter than the font's em-box, else it overlaps the
	   line above (h1 line-height is 1.08) — but an inline element's solid
	   background (+ border-radius) always fills the full em-box. So the
	   rounded band is drawn as 3 layers: two elliptical end caps + middle bar.
	   Tune with --hl-height (band height) and --hl-radius (corner rounding). */
	--hl-height: 80%;
	--hl-radius: 14px;
	background:
		radial-gradient(farthest-side at right, var(--tpv2-rose) 98%, transparent) no-repeat left 58% / var(--hl-radius) var(--hl-height),
		radial-gradient(farthest-side at left, var(--tpv2-rose) 98%, transparent) no-repeat right 58% / var(--hl-radius) var(--hl-height),
		linear-gradient(var(--tpv2-rose), var(--tpv2-rose)) no-repeat center 58% / calc(100% - 2 * var(--hl-radius) + 2px) var(--hl-height);
	padding: 0 12px;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}
.tpv2-hero-lead {
	font-size: 18.5px;
	line-height: 1.65;
	color: var(--tpv2-muted);
	max-width: 480px;
	margin: 0 0 32px;
}
.tpv2-hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.tpv2-hero-proof {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 500;
	color: var(--tpv2-muted);
}

/* Hero visual */
.tpv2-hero-visual { position: relative; }
.tpv2-hero img.tpv2-hero-img { width: 120%; max-width: none !important; display: block; margin-right: -20%; }

/* Gap between stacked hero CTA buttons */
.tpv2-section.tpv2-hero .elementor-widget-button + .elementor-widget-button { margin-top: 12px; }

/* ============================================================
   Services
   ============================================================ */
.tpv2-services { background: #fff; }
.tpv2-services .tpv2-wave svg path { fill: #fff; }
.tpv2-cards-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.tpv2-service-card {
	border-radius: 24px;
	padding: 34px 30px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	transition: transform .25s ease, box-shadow .25s ease;
}
.tpv2-service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(26,32,44,.10); }
.tpv2-service-card--lavender { background: var(--tpv2-lavender-tint); }
.tpv2-service-card--plain { background: #fff; border: 2px solid var(--tpv2-cream-deep); }
.tpv2-service-card--peach { background: var(--tpv2-peach-tint); }
.tpv2-service-card-top {
	display: flex;
	width: 100%;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 18px;
}
.tpv2-service-num {
	font-family: var(--tpv2-font-display);
	font-size: 34px;
	font-weight: 900;
	color: var(--tpv2-ink);
	opacity: .22;
	letter-spacing: 1px;
}
.tpv2-tag {
	font-family: var(--tpv2-font-display);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	background: #fff;
	color: var(--tpv2-ink);
	border: 1.5px solid rgba(26, 32, 44, .14);
	padding: 5px 12px;
	border-radius: 999px;
}
.tpv2-service-card h3 {
	font-size: 23px;
	font-weight: 800;
	line-height: 1.25;
	margin: 0 0 12px;
}
.tpv2-service-card p {
	font-size: 15px;
	line-height: 1.65;
	color: var(--tpv2-muted);
	margin: 0 0 24px;
	flex-grow: 1;
}

/* ============================================================
   Guides / shop teaser
   ============================================================ */
.tpv2-guides { background: var(--tpv2-lavender-tint); }
.tpv2-guides .tpv2-wave svg path { fill: var(--tpv2-lavender-tint); }
.tpv2-guide-card {
	background: #fff;
	border-radius: 22px;
	padding: 18px 18px 26px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 30px rgba(95, 79, 168, 0.10);
	transition: transform .25s ease, box-shadow .25s ease;
}
.tpv2-guide-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(95, 79, 168, 0.18); }
.tpv2-guide-cover {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	margin-bottom: 18px;
	background: repeating-linear-gradient(
		-45deg,
		var(--tpv2-cream-deep) 0 14px,
		var(--tpv2-sand) 14px 28px
	);
	display: flex;
	align-items: center;
	justify-content: center;
}
.tpv2-guide-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tpv2-guide-cover-label {
	font-family: monospace;
	font-size: 11px;
	color: var(--tpv2-muted);
	opacity: .8;
	padding: 0 16px;
	text-align: center;
	position: relative;
}
.tpv2-guide-price {
	position: absolute;
	top: 12px;
	right: 12px;
	background: var(--tpv2-ink);
	color: #fff;
	font-family: var(--tpv2-font-display);
	font-size: 14px;
	font-weight: 800;
	padding: 7px 14px;
	border-radius: 999px;
}
.tpv2-guide-card .tpv2-badge { align-self: flex-start; font-size: 10px; padding: 5px 12px; }
.tpv2-guide-card h3 {
	font-size: 21px;
	font-weight: 800;
	margin: 12px 0 8px;
}
.tpv2-guide-card p {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--tpv2-muted);
	margin: 0 0 20px;
	flex-grow: 1;
}

/* ============================================================
   Approach ("Mi Enfoque")
   ============================================================ */
.tpv2-approach { background: var(--tpv2-cream-deep); }
.tpv2-approach .tpv2-wave svg path { fill: var(--tpv2-cream-deep); }
.tpv2-approach-grid {
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	gap: 64px;
	align-items: center;
}
.tpv2-arch {
	position: relative;
	max-width: 380px;
	margin: 0 auto;
}
.tpv2-arch-frame {
	border-radius: 190px 190px 28px 28px;
	overflow: hidden;
	border: 10px solid #fff;
	box-shadow: 0 22px 50px rgba(26, 32, 44, 0.14);
	aspect-ratio: 3 / 4;
}
.tpv2-arch-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpv2-sticker {
	position: absolute;
	right: -18px;
	bottom: 34px;
	background: var(--tpv2-coral);
	color: #fff;
	font-family: var(--tpv2-font-display);
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .8px;
	padding: 10px 18px;
	border-radius: 999px;
	transform: rotate(-6deg);
	box-shadow: 0 10px 24px rgba(222, 122, 100, 0.4);
}
.tpv2-approach-copy h2 {
	font-size: 40px;
	line-height: 1.15;
	letter-spacing: -0.5px;
	margin: 18px 0 20px;
}
.tpv2-approach-copy p {
	font-size: 16.5px;
	line-height: 1.7;
	color: var(--tpv2-muted);
	margin: 0 0 18px;
}
.tpv2-checks { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 28px; }
.tpv2-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border-radius: 999px;
	padding: 9px 16px;
	font-family: var(--tpv2-font-display);
	font-size: 13px;
	font-weight: 700;
	color: var(--tpv2-ink);
	box-shadow: 0 4px 12px rgba(26, 32, 44, 0.06);
}
.tpv2-check-mark { color: var(--tpv2-terracotta); font-weight: 900; }

/* ============================================================
   Testimonials
   ============================================================ */
.tpv2-testimonials { background: var(--tpv2-cream); }
.tpv2-bubble-card { display: flex; flex-direction: column; }
.tpv2-bubble {
	position: relative;
	background: #fff;
	border-radius: 20px;
	padding: 26px 26px 24px;
	box-shadow: 0 12px 30px rgba(26, 32, 44, 0.08);
	flex-grow: 1;
}
.tpv2-bubble::after {
	/* speech-bubble tail */
	content: "";
	position: absolute;
	left: 34px;
	bottom: -12px;
	width: 24px;
	height: 24px;
	background: #fff;
	transform: rotate(45deg);
	border-radius: 4px;
	box-shadow: 8px 8px 18px rgba(26, 32, 44, 0.05);
}
.tpv2-bubble p {
	font-size: 15.5px;
	line-height: 1.65;
	color: var(--tpv2-ink);
	margin: 12px 0 0;
}
.tpv2-bubble .tpv2-quote-mark { color: var(--tpv2-coral-deep); font-weight: 700; }
.tpv2-reviewer {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 26px 0 0 10px;
}
.tpv2-avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--tpv2-font-display);
	font-weight: 900;
	font-size: 17px;
	color: #fff;
}
.tpv2-avatar--lavender { background: var(--tpv2-purple); }
.tpv2-avatar--coral { background: var(--tpv2-coral-deep); }
.tpv2-avatar--gold { background: var(--tpv2-gold); }
.tpv2-reviewer-name {
	font-family: var(--tpv2-font-display);
	font-weight: 800;
	font-size: 15px;
	color: var(--tpv2-ink);
}
.tpv2-reviewer-role { font-size: 13px; color: var(--tpv2-muted); }

/* ============================================================
   Footer
   ============================================================ */
.tpv2-footer-curve { background: var(--tpv2-cream); }
.tpv2-footer-curve svg { display: block; width: 100%; height: 80px; }
.tpv2-footer {
	background: var(--tpv2-ink);
	color: #A0AEC0;
	padding: 30px 24px 40px;
}
.tpv2-footer-grid {
	max-width: 1140px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tpv2-footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.tpv2-footer-logo {
	background: #fff;
	border-radius: 12px;
	padding: 6px;
}
.tpv2-footer-logo img { width: 44px; height: 44px; object-fit: contain; display: block; }
.tpv2-footer-brand-name {
	font-family: var(--tpv2-font-display);
	font-weight: 900;
	font-size: 17px;
	color: #fff;
}
.tpv2-footer p { font-size: 14.5px; line-height: 1.7; color: #A0AEC0; margin: 0; }
.tpv2-footer h4 {
	font-family: var(--tpv2-font-display);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: #fff;
	margin: 6px 0 18px;
}
.tpv2-footer ul { list-style: none; margin: 0; padding: 0; }
.tpv2-footer li { margin: 0 0 12px; }
.tpv2-footer a {
	color: #A0AEC0;
	text-decoration: none !important;
	font-size: 14.5px;
	transition: color .2s ease;
}
.tpv2-footer a:hover { color: var(--tpv2-coral); }
.tpv2-footer-bottom {
	max-width: 1140px;
	margin: 0 auto;
	padding-top: 28px;
	text-align: center;
	font-size: 13px;
	color: #718096;
}

/* ============================================================
   Inner pages — V2 sub-page layout
   ============================================================ */
body:not(.home) .site-content { padding-top: 0; }
.tpv2-page { width: 100%; }

/* Hide Astra's own entry title — templates render their own hero */
.tpv2-has-hero .entry-header { display: none; }

/* Elementor-designed pages: templates defer to Elementor, give it the
   full viewport width (Elementor sections manage their own containers) */
.tpv2-elementor-takeover .ast-container {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}
.tpv2-elementor-takeover .site-content { padding: 0; }
.tpv2-elementor-content { width: 100%; }

/* Elementor-rendered V2 sections (homepage import): Elementor positions its
   column/widget wrappers, which would hijack the absolutely-positioned wave
   dividers — make them static so .tpv2-wave anchors to the section itself. */
.tpv2-section.elementor-section { overflow: visible; }
body:not(.elementor-editor-active) .tpv2-section.elementor-section .elementor-column,
body:not(.elementor-editor-active) .tpv2-section.elementor-section .elementor-widget,
body:not(.elementor-editor-active) .tpv2-section.elementor-section .elementor-widget-wrap { position: static; }
.tpv2-section.elementor-section .elementor-widget-container { width: 100%; }
/* keep hero clipping its decorative blobs, as in the PHP template */
.tpv2-hero.elementor-section { overflow: hidden; }

/* ---- Native Elementor widgets inside V2 sections ---------------------
   The homepage is built from native Elementor elements (resizable columns,
   heading/text/button widgets). These rules make the native widgets match
   the V2 design without per-widget styling. */
.tpv2-section h1.elementor-heading-title {
	font-size: clamp(38px, 5vw, 60px);
	font-weight: 900;
	line-height: 1.08;
	letter-spacing: -1px;
	color: var(--tpv2-ink);
	margin: 22px 0 24px;
}
.tpv2-section h2.elementor-heading-title {
	font-size: 40px;
	font-weight: 900;
	letter-spacing: -0.5px;
	line-height: 1.15;
	color: var(--tpv2-ink);
	margin: 18px 0 14px;
}
.tpv2-section h3.elementor-heading-title {
	font-size: 23px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--tpv2-ink);
	margin: 0 0 12px;
}
.tpv2-section .elementor-widget-text-editor {
	font-family: var(--tpv2-font-body);
	color: var(--tpv2-muted);
	font-size: 16.5px;
	line-height: 1.65;
}
.tpv2-hero .elementor-widget-text-editor { font-size: 18.5px; max-width: 480px; }
.tpv2-cardw .elementor-widget-text-editor { font-size: 15px; }
.tpv2-section .elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* Centered, width-capped section intro text */
.tpv2-headw .elementor-widget-container { max-width: 640px; margin: 0 auto; text-align: center; }

/* Button widget skins matching .tpv2-btn variants */
.tpv2-btnw .elementor-button {
	font-family: var(--tpv2-font-display);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 16px 32px;
	border-radius: 999px;
	line-height: 1.2;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.tpv2-btnw .elementor-button:hover { transform: translateY(-2px); }
.tpv2-btnw--coral .elementor-button {
	background: var(--tpv2-coral);
	color: #fff;
	box-shadow: 0 10px 24px rgba(222, 122, 100, 0.35);
}
.tpv2-btnw--coral .elementor-button:hover { background: var(--tpv2-coral-deep); color: #fff; }
.tpv2-btnw--outline .elementor-button {
	background: #fff;
	color: var(--tpv2-ink);
	border: 2px solid var(--tpv2-ink);
}
.tpv2-btnw--outline .elementor-button:hover { background: var(--tpv2-cream); color: var(--tpv2-ink); }
.tpv2-btnw--dark .elementor-button {
	background: var(--tpv2-ink);
	color: #fff;
	font-size: 12px;
	padding: 12px 24px;
}
.tpv2-btnw--dark .elementor-button:hover { background: #2d3748; }

/* Card columns (services/testimonials): styled to match .tpv2-guide-card —
   white box, rounded corners, soft purple shadow, hover lift. !important
   beats Elementor's per-element generated column background/CSS. */
.tpv2-cardw > .elementor-widget-wrap {
	transition: transform .25s ease, box-shadow .25s ease;
}
.tpv2-cardw > .elementor-widget-wrap.elementor-element-populated {
	background: #fff !important;
	border-radius: 22px !important;
	padding: 18px 18px 26px !important;
	box-shadow: 0 10px 30px rgba(95, 79, 168, 0.10) !important;
}
.tpv2-cardw:hover > .elementor-widget-wrap.elementor-element-populated {
	transform: translateY(-6px);
	box-shadow: 0 20px 44px rgba(95, 79, 168, 0.18) !important;
}
/* The card padding above replaces Elementor's column-gap padding, so the
   card boxes would touch — restore separation with a flex gap matching the
   28px guide-card grid. Columns flex-shrink, so custom widths still work. */
.elementor-container:has(> .elementor-column.tpv2-cardw) { gap: 28px; }
.elementor-column.tpv2-cardw { min-width: 0; }

/* Constrain Elementor's boxed containers to the V2 content width */
.tpv2-section.elementor-section > .elementor-container { max-width: 1140px; }

/* Wave dividers anchor to the section only on the frontend; hide them in
   the editor canvas so they don't overlap content there */
.elementor-editor-active .tpv2-wave { display: none; }

.tpv2-page-hero {
	background: var(--tpv2-cream);
	text-align: center;
	padding: 72px 24px 56px;
	position: relative;
	overflow: hidden;
}
.tpv2-page-hero::before {
	content: "";
	position: absolute;
	left: -100px;
	top: -120px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: var(--tpv2-rose);
	opacity: .3;
}
.tpv2-page-hero::after {
	content: "";
	position: absolute;
	right: -90px;
	bottom: -130px;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: var(--tpv2-lavender);
	opacity: .35;
}
.tpv2-page-hero h1 {
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 900;
	letter-spacing: -0.5px;
	line-height: 1.12;
	margin: 18px auto 14px;
	max-width: 760px;
	position: relative;
	z-index: 1;
}
.tpv2-page-hero p {
	font-size: 17.5px;
	line-height: 1.65;
	color: var(--tpv2-muted);
	max-width: 560px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}
.tpv2-page-hero .tpv2-badge { position: relative; z-index: 1; }

.tpv2-page-body { padding: 64px 24px 90px; }
.tpv2-page-body--narrow .tpv2-container { max-width: 820px; }

.tpv2-content-card {
	background: #fff;
	border-radius: 24px;
	padding: 44px 48px;
	box-shadow: 0 14px 36px rgba(26, 32, 44, 0.07);
}
@media (max-width: 640px) {
	.tpv2-content-card { padding: 28px 22px; }
}

/* Long-form prose (about, legal pages, generic content) */
.tpv2-prose { font-size: 16.5px; line-height: 1.75; color: #2D3748; }
.tpv2-prose h2 { font-size: 28px; margin: 36px 0 14px; }
.tpv2-prose h3 { font-size: 21px; font-weight: 800; margin: 32px 0 12px; }
.tpv2-prose p { margin: 0 0 18px; color: #2D3748; }
.tpv2-prose ul { padding-left: 22px; margin: 0 0 18px; }
.tpv2-prose li { margin-bottom: 8px; }
.tpv2-prose a { color: var(--tpv2-terracotta); font-weight: 700; }

/* Service detail cards (services page) */
.tpv2-cards-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
}
@media (max-width: 760px) { .tpv2-cards-2 { grid-template-columns: 1fr; } }
.tpv2-price-tag {
	display: inline-block;
	font-family: var(--tpv2-font-display);
	font-weight: 800;
	font-size: 14px;
	color: var(--tpv2-terracotta);
	background: var(--tpv2-pink-tint);
	border-radius: 999px;
	padding: 7px 16px;
	margin-top: auto;
}
.tpv2-service-card .tpv2-price-tag { margin-top: 0; }

/* TutorBird widget frame (schedule / register / student portal) */
.tpv2-widget-frame {
	background: transparent;
	border-radius: 24px;
	padding: 0;
	box-shadow: none;
}
/* TutorBird embeds: TutorBird wraps its iframe in a div with overflow:hidden
   and sizes both to the iframe's self-reported content height. When that lands
   a few px short, the widget's bottom border (rendered inside the cross-origin
   iframe) gets clipped by the wrapper. Letting the wrapper overflow visibly
   reveals it, without altering TutorBird's dynamic height (don't force the
   iframe height — the wrapper is auto-sized around it, so a fixed/percentage
   height collapses the embed). */
.tpv2-widget-frame > div { overflow: visible !important; }
.tpv2-widget-placeholder {
	background: var(--tpv2-cream);
	border: 2px dashed var(--tpv2-lavender);
	border-radius: 16px;
	padding: 56px 30px;
	text-align: center;
}
.tpv2-widget-placeholder-title {
	font-family: var(--tpv2-font-display);
	font-weight: 800;
	font-size: 19px;
	color: var(--tpv2-ink);
	margin: 0 0 10px;
}
.tpv2-widget-placeholder p { color: var(--tpv2-muted); font-size: 15px; line-height: 1.6; margin: 0; }

.tpv2-page-links {
	text-align: center;
	margin-top: 32px;
	color: var(--tpv2-muted);
	font-size: 15.5px;
}
.tpv2-page-links a { color: var(--tpv2-terracotta); font-weight: 700; text-decoration: none; }
.tpv2-page-links a:hover { text-decoration: underline; }

/* Quick-link list (contact page) */
.tpv2-linklist { list-style: none; padding: 0; margin: 0; }
.tpv2-linklist li {
	padding: 14px 0;
	border-bottom: 1px solid var(--tpv2-cream-deep);
	font-size: 16.5px;
}
.tpv2-linklist li:last-child { border-bottom: none; }
.tpv2-linklist a { color: var(--tpv2-terracotta); font-weight: 700; text-decoration: none; }
.tpv2-linklist a:hover { text-decoration: underline; }

/* ============================================================
   WooCommerce in V2 clothes
   ============================================================ */
/* Shop hero renders inside Astra's flex container — force it onto its own
   full-width row above the product grid (page bg is the same cream, so it
   reads as a full-bleed band) */
.post-type-archive-product .ast-container { flex-wrap: wrap; }
.post-type-archive-product .tpv2-page-hero {
	width: 100%;
	flex-basis: 100%;
	margin: 0 0 40px;
}
.post-type-archive-product .woocommerce-products-header,
.tpv2-has-hero .woocommerce-products-header { display: none; }

.woocommerce ul.products li.product .button,
.woocommerce a.button, .woocommerce button.button.alt {
	background: var(--tpv2-coral);
	color: #fff;
	border-radius: 999px;
	font-family: var(--tpv2-font-display);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .8px;
	font-size: 12px;
	padding: 12px 24px;
}
.woocommerce a.button:hover, .woocommerce button.button.alt:hover {
	background: var(--tpv2-coral-deep);
	color: #fff;
}
.woocommerce ul.products li.product {
	background: #fff;
	border-radius: 22px;
	padding: 18px 18px 26px;
	box-shadow: 0 10px 30px rgba(95, 79, 168, 0.10);
	transition: transform .25s ease, box-shadow .25s ease;
	text-align: center;
}
.woocommerce ul.products li.product:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 44px rgba(95, 79, 168, 0.18);
}
.woocommerce ul.products li.product img { border-radius: 14px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--tpv2-font-display);
	font-weight: 800;
	font-size: 19px;
	color: var(--tpv2-ink);
}
.woocommerce ul.products li.product .price {
	font-family: var(--tpv2-font-display);
	font-weight: 800;
	color: var(--tpv2-terracotta);
}
.woocommerce nav.woocommerce-pagination ul li a:focus,
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--tpv2-coral);
	color: #fff;
}
.woocommerce div.product p.price, .woocommerce div.product span.price {
	color: var(--tpv2-terracotta);
	font-family: var(--tpv2-font-display);
	font-weight: 800;
}

/* Center headings inside the page-hero Elementor section (Elementor
   generates text-align:left by default on heading widgets; this wins
   over the inherited center from .tpv2-page-hero { text-align:center }) */
/* Hero heading: Elementor's .elementor-heading-title { margin:0 } (spec 0,2,0)
   beats .tpv2-page-hero h1 { margin:auto } (spec 0,1,1), so use !important. */
.elementor-section.tpv2-page-hero .elementor-heading-title {
	text-align: center;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* ============================================================
   Elementor column overrides — sub-page service cards
   ============================================================ */
/* When .tpv2-service-card is the column CSS class, the widget-wrap must
   stretch horizontally to fill the card and stack widgets vertically. */
.elementor-column.tpv2-service-card { align-items: stretch; }
.elementor-column.tpv2-service-card > .elementor-widget-wrap {
	padding: 0 !important;
	display: flex !important;
	flex-direction: column;
	flex: 1;
}
/* The column itself is the card box (wrap padding is 0), so Elementor's
   column-gap padding can't separate them — use a flex gap like the
   homepage card rows. Columns flex-shrink, so custom widths still work. */
.elementor-container:has(> .elementor-column.tpv2-service-card) { gap: 28px; }
.elementor-column.tpv2-service-card { min-width: 0; }
/* Vertical separation above/below card rows, 28px to match the column gap.
   Consecutive rows zero their top margin so the gap between rows stays 28px
   (wraps are flex, so margins don't collapse). */
.elementor-section:has(> .elementor-container > .elementor-column.tpv2-service-card) {
	margin-top: 28px;
	margin-bottom: 28px;
}
.elementor-section:has(> .elementor-container > .elementor-column.tpv2-service-card)
+ .elementor-section:has(> .elementor-container > .elementor-column.tpv2-service-card) { margin-top: 0; }
/* Gap between rows of inner-section card grids */
.elementor-widget-wrap > .elementor-section.elementor-inner + .elementor-section.elementor-inner { margin-top: 24px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
	.tpv2-hero-grid { grid-template-columns: 1fr; gap: 64px; }
	.tpv2-hero-lead { max-width: none; }
	.tpv2-hero img.tpv2-hero-img { width: 100%; max-width: 440px !important; margin: 0 auto; }
	.tpv2-cards-3 { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
	.tpv2-approach-grid { grid-template-columns: 1fr; gap: 56px; }
	.tpv2-footer-grid { grid-template-columns: 1fr 1fr; }

	/* Compact header: brand + hamburger on one row, nav/CTA in dropdown panel */
	.tpv2-header-inner { flex-wrap: wrap; padding: 10px 18px; }
	.tpv2-brand img { height: 44px; }
	.tpv2-nav-toggle,
	.tpv2-nav-toggle:hover,
	.tpv2-nav-toggle:focus,
	.tpv2-nav-toggle:active {
		/* !important: Astra's blue default button styles outrank a single class */
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 44px;
		height: 44px;
		padding: 11px !important;
		background: var(--tpv2-cream) !important;
		border: 0 !important;
		border-radius: 12px;
		cursor: pointer;
	}
	.tpv2-nav-toggle:focus-visible { outline: 2px solid var(--tpv2-coral); outline-offset: 2px; }
	.tpv2-nav-toggle span {
		display: block;
		height: 2.5px;
		border-radius: 2px;
		background: var(--tpv2-ink);
		transition: transform .2s ease, opacity .2s ease;
	}
	.tpv2-header.is-open .tpv2-nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
	.tpv2-header.is-open .tpv2-nav-toggle span:nth-child(2) { opacity: 0; }
	.tpv2-header.is-open .tpv2-nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
	.tpv2-header .tpv2-nav,
	.tpv2-header .tpv2-header-cta { display: none; }
	/* Top row: brand left, cart + hamburger right; dropdown rows ordered after */
	.tpv2-cart-link { order: 1; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; }
	.tpv2-nav-toggle { order: 2; }
	.tpv2-header.is-open .tpv2-nav { order: 10; }
	.tpv2-header.is-open .tpv2-header-cta { order: 11; }
	.tpv2-header.is-open .tpv2-lang-switcher--inline { order: 12; }
	.tpv2-header.is-open .tpv2-nav {
		display: flex;
		flex-direction: column;
		width: 100%;
		gap: 2px;
		padding: 8px 0 6px;
	}
	.tpv2-header.is-open .tpv2-nav a { display: block; text-align: center; font-size: 16px; line-height: 1.35; padding: 11px 12px; }
	.tpv2-header.is-open .tpv2-header-cta {
		display: block;
		width: 100%;
		text-align: center;
		margin: 6px 0 10px;
	}
	.tpv2-header.is-open .tpv2-lang-switcher--inline {
		display: flex;
		width: 100%;
		justify-content: center;
		padding: 2px 0 10px;
	}
}

@media (max-width: 640px) {
	.tpv2-section { padding: 64px 18px; }
	.tpv2-section-head h2 { font-size: 30px; }
	.tpv2-approach-copy h2 { font-size: 30px; }
	.tpv2-hero { padding: 48px 18px 90px; }
	.tpv2-hero-visual { min-height: 0; }
	.tpv2-hero-card { left: 0; }
	.tpv2-hero-polaroid { right: 0; }
	.tpv2-footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
