/*
Theme Name: Tele-Expert
Theme URI: https://tele-expert.com
Author: Aspinall Technologies
Description: Block theme for Tele-Expert, built from the 2026 website mockup. Home fibre (consumer) and network-owner (EPC) audiences, with ready-made page patterns for Home, What we build and Design Lab.
Version: 1.1.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tele-expert
*/

/* ---------- Base ---------- */
:root {
	--te-radius-lg: 24px;
	--te-radius-md: 20px;
	--te-radius-sm: 12px;
	--te-shadow: 0 20px 50px rgba(20, 0, 40, 0.35);
}
body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks > * { margin-block-start: 0; }
/* Page sections sit flush against each other (WordPress would otherwise add a gap between them). */
.wp-block-post-content > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
/* Grids that should stretch to fill the row (3 stats, 3 benefits, 4 steps). */
.te-grid-fit { grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)) !important; }
/* Cards inside custom grids: no stacked margins. */
.te-cycle > *, .te-stat-grid > *, .te-steps > *, .te-whatsapp > * { margin: 0 !important; }
.te-montserrat { font-family: var(--wp--preset--font-family--montserrat); }
input:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--wp--preset--color--gold); outline-offset: 2px; }

/* Section padding: every page band uses .te-section */
.te-section { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.te-section--tight { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.te-section--band { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.te-intro > * { max-width: 720px; }
.te-intro p, p.te-lead { font-size: 1.125rem; color: var(--wp--preset--color--muted); }
.has-plum-900-background-color p.te-lead,
.has-hero-glow-gradient-background p.te-lead { color: #E9DDF5; }

/* Eyebrow + pills */
p.te-eyebrow {
	font-weight: 800; font-size: 0.8125rem; letter-spacing: 1.5px; text-transform: uppercase;
	color: var(--wp--preset--color--pink-dark); margin-bottom: 0.25rem;
}
.has-plum-900-background-color p.te-eyebrow,
.has-pink-background-color p.te-eyebrow,
.has-hero-glow-gradient-background p.te-eyebrow { color: var(--wp--preset--color--gold); }
.has-pink-background-color p.te-eyebrow { color: #FFE3F1; }

p.te-pill {
	display: inline-block; align-self: flex-start; width: fit-content;
	border: 2px solid var(--wp--preset--color--gold); color: var(--wp--preset--color--gold);
	padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: 0.875rem;
	letter-spacing: 1px; text-transform: uppercase; line-height: 1.4;
}
p.te-pills { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 0.875rem; color: #E9DDF5; }
p.te-pills .te-pill-word { border: 2px solid #fff; color: #fff; padding: 6px 16px; border-radius: 999px; font-weight: 800; letter-spacing: 0.5px; }
p.te-pills .te-pill-word--gold { border-color: var(--wp--preset--color--yellow); color: var(--wp--preset--color--yellow); }

/* ---------- Header ---------- */
.te-topbar { font-size: 0.875rem; padding-top: 8px; padding-bottom: 8px; }
.te-topbar p { margin: 0; color: #E9DDF5; }
.te-topbar strong { color: #fff; }
p.te-audience { display: flex; gap: 4px; }
p.te-audience a { color: #fff; text-decoration: none; padding: 6px 14px; border-radius: 999px; font-weight: 600; }
p.te-audience a.is-current { background: #fff; color: var(--wp--preset--color--plum-950); font-weight: 700; }
p.te-audience a:hover { background: rgba(255,255,255,0.12); color: #fff; }
p.te-audience a.is-current:hover { background: #fff; color: var(--wp--preset--color--plum-950); }

.te-header { border-bottom: 1px solid #4A1C78; padding-top: 16px; padding-bottom: 16px; }
p.te-logo { margin: 0; }
p.te-logo a { white-space: nowrap; display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-family: var(--wp--preset--font-family--montserrat); font-weight: 800; font-size: 1.375rem; }
.te-logo-mark {
	width: 52px; height: 52px; border-radius: 50%; background: var(--wp--preset--color--pink); color: #fff;
	display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.5rem; letter-spacing: -1px; flex: none;
}
.te-nav { font-weight: 600; font-size: 0.9375rem; }
.te-nav a { color: #fff; }
.te-nav .wp-block-navigation-item__content:hover,
.te-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--yellow); }
.te-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--plum-900); color: #fff; padding: 2rem;
}
.te-nav .wp-block-navigation__responsive-container.is-menu-open a { font-size: 1.25rem; }

/* ---------- Buttons (block styles registered in functions.php) ---------- */
.wp-block-button.is-style-te-yellow .wp-block-button__link { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--plum-950); }
.wp-block-button.is-style-te-yellow .wp-block-button__link:hover { background: var(--wp--preset--color--yellow); }
.wp-block-button.is-style-te-plum .wp-block-button__link { background: var(--wp--preset--color--plum-900); color: #fff; }
.wp-block-button.is-style-te-plum .wp-block-button__link:hover { background: var(--wp--preset--color--plum-700); }
.wp-block-button.is-style-te-white .wp-block-button__link { background: #fff; color: var(--wp--preset--color--plum-900); }
.wp-block-button.is-style-te-white .wp-block-button__link:hover { background: var(--wp--preset--color--yellow); }
.wp-block-button.is-style-te-outline-light .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.wp-block-button.is-style-te-outline-light .wp-block-button__link:hover { background: rgba(255,255,255,0.1); }
.te-btn-full, .te-btn-full .wp-block-button { width: 100%; }
.te-btn-full .wp-block-button__link { width: 100%; text-align: center; box-sizing: border-box; }

/* ---------- Home hero ---------- */
.te-hero { overflow: hidden; padding-top: 56px; }
.te-hero .wp-block-columns { margin-bottom: 0; align-items: flex-end !important; }
.te-hero-copy { padding-bottom: 64px; }
.te-hero h1 { color: #fff; }
p.te-from { font-family: var(--wp--preset--font-family--montserrat); font-weight: 800; font-size: 1.375rem; letter-spacing: 1px; margin-bottom: -0.5rem; }
p.te-hero-price { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 24px; margin-top: 0; font-family: var(--wp--preset--font-family--montserrat); }
p.te-hero-price strong { font-weight: 900; font-size: clamp(5.5rem, 11vw, 9.25rem); line-height: 0.85; color: var(--wp--preset--color--yellow); letter-spacing: -3px; }
p.te-hero-price span { font-weight: 700; font-size: 1.25rem; padding-bottom: 10px; color: #F3E8FF; }
ul.te-ticks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; max-width: 560px; }
ul.te-ticks li {
	display: flex; align-items: center; gap: 10px; font-family: var(--wp--preset--font-family--montserrat); font-weight: 800; font-size: 1.25rem; line-height: 1.3;
}
ul.te-ticks li::before {
	content: ""; width: 24px; height: 24px; flex: none;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC93C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E");
}
.te-hero-visual { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; }
.te-hero-visual .te-hero-photo { margin: 0 auto !important; max-width: 480px; }
.te-hero-visual .te-hero-photo img { display: block; width: 100%; height: auto; }
.te-hero-visual .te-hero-waves { position: absolute; left: 0; bottom: 120px; width: 220px; margin: 0 !important; opacity: 0.95; z-index: 1; }
p.te-badge {
	position: absolute; right: 8px; bottom: 140px; width: 128px; height: 128px; margin: 0; border-radius: 50%;
	background: var(--wp--preset--color--pink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
	font-family: var(--wp--preset--font-family--montserrat); text-align: center; line-height: 1.1; box-shadow: 0 10px 30px rgba(0,0,0,0.3); z-index: 2;
	font-size: 0.75rem; font-weight: 700;
}
p.te-badge strong { font-size: 1.25rem; font-weight: 900; }

/* Address checker */
.te-checker {
	background: #fff; color: var(--wp--preset--color--ink); border-radius: var(--te-radius-md); padding: 24px; max-width: 620px; box-shadow: var(--te-shadow);
}
.te-checker label { display: block; font-family: var(--wp--preset--font-family--montserrat); font-weight: 800; font-size: 1.25rem; margin-bottom: 12px; color: var(--wp--preset--color--ink); }
.te-checker__row { display: flex; flex-wrap: wrap; gap: 10px; }
.te-checker input[type="text"] {
	flex: 1 1 260px; min-width: 0; height: 52px; border: 2px solid #CDB8E3; border-radius: var(--te-radius-sm); padding: 0 16px;
	font: inherit; font-size: 1rem; color: var(--wp--preset--color--ink); background: #fff;
}
.te-checker button {
	height: 52px; padding: 0 24px; border: 0; border-radius: var(--te-radius-sm); background: var(--wp--preset--color--pink); color: #fff;
	font-family: var(--wp--preset--font-family--montserrat); font-weight: 800; font-size: 1rem; cursor: pointer;
}
.te-checker button:hover { background: var(--wp--preset--color--pink-dark); }
.te-checker__note { margin: 12px 0 0; font-size: 0.8125rem; color: #5E4A75; }
.te-checker__error { margin: 10px 0 0; font-size: 0.875rem; color: var(--wp--preset--color--pink-dark); font-weight: 600; }

/* ---------- Stats strip ---------- */
.te-stats p { margin: 0; font-weight: 600; }
.te-stats p strong { display: block; font-family: var(--wp--preset--font-family--montserrat); font-weight: 900; font-size: 2.5rem; letter-spacing: -1px; line-height: 1.15; }

/* ---------- Cards ---------- */
.te-card {
	border-radius: var(--te-radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px;
	background: #fff; border: 2px solid var(--wp--preset--color--lilac-200);
}
.te-card > * { margin: 0 !important; }
.te-card h3 { color: var(--wp--preset--color--plum-900); }
.te-card p { color: var(--wp--preset--color--muted); }
.te-card--plain { border-color: transparent; }
.te-card--soft { background: var(--wp--preset--color--lilac-100); border-color: transparent; }
.te-card--featured { border: 3px solid var(--wp--preset--color--pink); }
.te-card--dark { background: var(--wp--preset--color--plum-900); border-color: transparent; }
.te-card--dark h3, .te-card--dark p { color: #fff; }
.te-card--dark .te-stage-num, .te-card--dark .te-step-label { color: var(--wp--preset--color--yellow); }
.te-card--pink { background: var(--wp--preset--color--pink); border-color: transparent; }
.te-card--pink h3, .te-card--pink p { color: #fff; }
.te-card .wp-block-buttons { margin-top: auto !important; }
.te-card--compact { padding: 22px; gap: 8px; border-radius: var(--te-radius-md); }

p.te-tag {
	align-self: flex-start; width: fit-content; background: #F1E8FA; color: var(--wp--preset--color--plum-700);
	font-weight: 800; font-size: 0.75rem; padding: 5px 12px; border-radius: 999px; letter-spacing: 1px; text-transform: uppercase; line-height: 1.3;
}
p.te-tag--pink { background: var(--wp--preset--color--pink); color: #fff; }
p.te-speed { font-family: var(--wp--preset--font-family--montserrat); font-weight: 900; font-size: 2.75rem; color: var(--wp--preset--color--plum-900) !important; line-height: 1; }
p.te-speed span { font-size: 1.25rem; }
p.te-price { font-family: var(--wp--preset--font-family--montserrat); font-weight: 900; font-size: 2rem; color: var(--wp--preset--color--plum-950) !important; line-height: 1.1; }
p.te-price span { font-size: 1rem; font-weight: 600; }
p.te-small { font-size: 0.8125rem; color: var(--wp--preset--color--muted); }

/* Icons used in cards (inline SVG inside a paragraph) */
p.te-icon { line-height: 0; color: var(--wp--preset--color--pink); }
p.te-icon svg { width: 28px; height: 28px; }

/* Numbered stages */
p.te-stage-num { font-family: var(--wp--preset--font-family--montserrat); font-weight: 900; font-size: 2.25rem; line-height: 1; color: var(--wp--preset--color--pink) !important; }
p.te-step-label { font-weight: 800; font-size: 0.8125rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--wp--preset--color--pink) !important; }

/* Three steps list */
.te-steps { display: flex; flex-direction: column; gap: 22px; }
.te-step { display: grid !important; grid-template-columns: 52px 1fr; column-gap: 18px; align-items: start; }
.te-step > * { margin: 0 !important; }
p.te-step-num {
	grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; background: var(--wp--preset--color--pink); color: #fff;
	display: flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--montserrat); font-weight: 900; font-size: 1.375rem;
}
.te-step h3 { font-size: 1.125rem; font-family: var(--wp--preset--font-family--inter); font-weight: 700; color: var(--wp--preset--color--plum-900); }
.te-step p:last-child { color: var(--wp--preset--color--muted); }

/* WhatsApp card */
.te-whatsapp {
	border-radius: var(--te-radius-lg); padding: 32px; color: #fff;
	display: grid !important; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.te-whatsapp__text > * { margin-top: 0; margin-bottom: 10px; }
.te-whatsapp p.te-whatsapp__number { font-family: var(--wp--preset--font-family--montserrat); font-weight: 900; font-size: 2.25rem; line-height: 1.1; color: #fff; }
.te-whatsapp p { color: #E9DDF5; }
.te-whatsapp .te-qr { margin: 0 !important; }
.te-whatsapp .te-qr img { width: 160px; height: 160px; background: #fff; border-radius: 16px; padding: 8px; display: block; }
@media (max-width: 600px) { .te-whatsapp { grid-template-columns: 1fr; } }

/* Operator logos (text wordmarks until real logos are approved) */
p.te-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 48px; font-family: var(--wp--preset--font-family--montserrat); font-weight: 800; font-size: 1.75rem; color: #3A2A4E; margin: 0; }
.te-logos-section { border-top: 1px solid #EEE4F7; }
.te-logos-section p.te-eyebrow { text-align: center; color: var(--wp--preset--color--muted); }

/* CTA band */
.te-cta-band h2 { color: #fff; }
.te-cta-band p { color: #FFE3F1; }

/* Value cycle: arrows between cards on wide screens */
.te-cycle { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.te-cycle > .te-card { position: relative; }
.te-cycle > .te-card:not(:last-child)::after {
	content: "→"; position: absolute; right: -30px; top: 50%; transform: translateY(-50%);
	color: var(--wp--preset--color--pink); font-weight: 800; font-size: 1.25rem;
}
@media (max-width: 900px) {
	.te-cycle { grid-template-columns: 1fr; gap: 16px; }
	.te-cycle > .te-card:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -22px; transform: translateX(-50%); }
}

/* Design Lab stat tiles */
.te-stat-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.te-stat-tile { background: var(--wp--preset--color--plum-700); border-radius: var(--te-radius-md); padding: 22px; }
.te-stat-tile > * { margin: 0 !important; }
.te-stat-tile p { color: #E9DDF5; font-size: 0.875rem; line-height: 1.35; }
.te-stat-tile p strong { display: block; color: var(--wp--preset--color--yellow); font-family: var(--wp--preset--font-family--montserrat); font-weight: 900; font-size: 2.25rem; line-height: 1.1; margin-bottom: 6px; }

/* Tool chips */
p.te-chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 0.875rem; }
p.te-chips strong { color: var(--wp--preset--color--plum-900); margin-right: 4px; }
p.te-chips span { border: 1.5px dashed var(--wp--preset--color--pink); border-radius: 999px; padding: 4px 12px; color: var(--wp--preset--color--muted); background: #fff; }

/* ---------- Footer ---------- */
.te-footer { color: #E9DDF5; font-size: 0.9375rem; }
.te-footer p.te-footer__title { font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.te-footer p { margin: 0 0 0.5rem; }
.te-footer a { color: #E9DDF5; text-decoration: none; }
.te-footer a:hover { color: #fff; text-decoration: underline; }
.te-footer .te-footer__contact a { color: var(--wp--preset--color--yellow); }
.te-footer__bottom { border-top: 1px solid #3A1A5C; padding-top: 20px; font-size: 0.8125rem; }
.te-footer__bottom p { margin: 0; }


/* ---------- Card icons (drawn with CSS so editors never see SVG code) ---------- */
.te-ico::before { content: ""; display: block; width: 28px; height: 28px; margin-bottom: 14px; background-color: var(--wp--preset--color--pink); -webkit-mask: var(--te-ico) no-repeat center / contain; mask: var(--te-ico) no-repeat center / contain; }
.te-ico--bolt { --te-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2L4 14h7l-1 8 9-12h-7l1-8z'/%3E%3C/svg%3E"); }
.te-ico--shield { --te-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 8.3-8 9-4.6-.7-8-4.5-8-9V6l8-3z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.te-ico--home { --te-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E"); }
.te-ico--map { --te-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4L3 6v14l6-2 6 2 6-2V4l-6 2-6-2z'/%3E%3Cpath d='M9 4v14M15 6v14'/%3E%3C/svg%3E"); }
.te-ico--pin { --te-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.te-ico--nodes { --te-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5' cy='12' r='2.5'/%3E%3Ccircle cx='19' cy='5' r='2.5'/%3E%3Ccircle cx='19' cy='19' r='2.5'/%3E%3Cpath d='M7.3 11l9.4-5M7.3 13l9.4 5'/%3E%3C/svg%3E"); }
.te-ico--doc { --te-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M9 11h7M9 15h7M9 7h4'/%3E%3C/svg%3E"); }
.te-ico--doc-check { --te-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M9 13.5l2.2 2.2L15.5 11'/%3E%3C/svg%3E"); }
.te-ico--chart { --te-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4v16h16'/%3E%3Cpath d='M7 15l4-4 3 3 5-6'/%3E%3C/svg%3E"); }

/* ---------- Dark & pink sections ---------- */
.te-dark-hero { padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.has-plum-900-background-color h1, .has-plum-900-background-color h2,
.has-hero-glow-gradient-background h1, .has-pink-background-color h2 { color: #fff; }
.te-dark-hero p.te-lead { color: #E9DDF5; max-width: 760px; }
.te-card--dark h3, .te-card--pink h3 { color: #fff !important; }
.te-cta-band h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.te-two-up .te-card { background: #fff; }

/* ---------- Generic content pages ---------- */
.te-page-title { padding-top: 3.5rem; padding-bottom: 2rem; }
.te-page-title h1 { color: #fff; font-size: clamp(2.25rem, 5vw, 3.5rem); }

/* ---------- Mobile tweaks ---------- */
@media (max-width: 781px) {
	.te-hero-copy { padding-bottom: 24px; }
	.te-hero-visual { min-height: 0; max-width: 320px; margin: 0 auto; }
	.te-hero-visual .te-hero-waves { width: 140px; bottom: 80px; }
	p.te-badge { width: 104px; height: 104px; bottom: 90px; }
	ul.te-ticks li { font-size: 1.0625rem; }
	.te-stat-grid { grid-template-columns: 1fr 1fr; }
	p.te-logos { font-size: 1.375rem; gap: 10px 28px; }
	.te-header .te-header-cta { display: none; }
}

/* =====================================================================
   Interactions (driven by assets/js/interactions.js)
   ===================================================================== */

/* Sticky header that tightens on scroll */
header.te-sticky { position: sticky; top: 0; z-index: 100; transition: box-shadow .25s ease; }
.admin-bar header.te-sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar header.te-sticky { top: 46px; } }
@media (max-width: 600px) { .admin-bar header.te-sticky { top: 0; } }
header.te-sticky .te-topbar { transition: margin .25s ease, opacity .25s ease; }
header.te-sticky .te-header { transition: padding .25s ease; }
header.te-sticky.is-scrolled { box-shadow: 0 8px 30px rgba(20, 0, 40, .35); }
header.te-sticky.is-scrolled .te-header { padding-top: 8px; padding-bottom: 8px; }
header.te-sticky.is-scrolled .wp-block-site-logo img { max-height: 44px; width: auto; }

/* Buttons: lift on hover */
.wp-block-button__link { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(46, 10, 82, .28); }
.te-checker button { transition: transform .2s ease, background-color .2s ease; }
.te-checker button:hover { transform: translateY(-2px); }

/* Mouse-follow glow on hero, dark heroes and pink banners */
.te-glow { position: relative; isolation: isolate; }
.te-glow::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(600px circle at var(--gx, 70%) var(--gy, 30%), rgba(255, 255, 255, .14), transparent 60%);
	opacity: .55; transition: opacity .4s ease;
}
.te-glow.is-hover::before { opacity: 1; }
.te-cta-band.te-glow::before { background: radial-gradient(520px circle at var(--gx, 80%) var(--gy, 50%), rgba(255, 201, 60, .35), transparent 60%); }

/* Hero parallax depth */
.te-hero .te-hero-photo { transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -8px), 0); transition: transform .35s ease-out; }
.te-hero .te-hero-waves { transform: translate3d(calc(var(--px, 0) * -32px), calc(var(--py, 0) * -20px), 0); transition: transform .35s ease-out; }
.te-hero p.te-badge { translate: calc(var(--px, 0) * 22px) calc(var(--py, 0) * 16px); transition: translate .35s ease-out; animation: te-float 5s ease-in-out infinite; }
.te-hero .te-checker { transition: transform .3s ease, box-shadow .3s ease; }
@keyframes te-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.te-hero-waves img { animation: te-pulse 3.2s ease-in-out infinite; transform-origin: 30% 80%; }
@keyframes te-pulse { 0%, 100% { opacity: .85; filter: drop-shadow(0 0 0 rgba(230, 0, 126, 0)); } 50% { opacity: 1; filter: drop-shadow(0 0 18px rgba(230, 0, 126, .6)); } }

/* Card tilt + spotlight */
.te-tilt {
	position: relative;
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: transform .25s ease-out, box-shadow .25s ease, border-color .25s ease;
	will-change: transform;
}
.te-tilt.is-hover { box-shadow: 0 18px 40px rgba(46, 10, 82, .16); transition: transform .08s linear, box-shadow .25s ease, border-color .25s ease; }
.te-card.te-tilt.is-hover:not(.te-card--featured) { border-color: #CDB8E3; }
.te-tilt::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
	background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(230, 0, 126, .10), transparent 55%);
	opacity: 0; transition: opacity .3s ease;
}
.te-tilt.is-hover::before { opacity: 1; }
.te-card--dark.te-tilt::before, .te-card--pink.te-tilt::before, .te-stat-tile.te-tilt::before, .te-whatsapp.te-tilt::before {
	background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .16), transparent 55%);
}
.te-tilt > * { position: relative; z-index: 1; }
.te-card .te-stage-num, .te-card h3.te-ico::before { transition: transform .3s ease; }
.te-card.is-hover .te-stage-num { transform: translateX(4px); }
.te-card.is-hover h3.te-ico::before { transform: scale(1.15) rotate(-6deg); }

/* Step numbers and cycle arrows */
p.te-step-num { transition: transform .25s ease, box-shadow .25s ease; }
.te-step:hover p.te-step-num { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(230, 0, 126, .15); }
.te-cycle > .te-card:not(:last-child)::after { animation: te-nudge 1.8s ease-in-out infinite; }
@keyframes te-nudge { 0%, 100% { margin-right: 0; opacity: .6; } 50% { margin-right: -6px; opacity: 1; } }

/* Scroll reveal: only hides things when JS has run, and only below the fold */
.te-js .te-reveal { opacity: 0; translate: 0 28px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--te-delay, 0ms); }
.te-js .te-reveal.is-visible { opacity: 1; translate: 0 0; }

/* Operator marquee */
p.te-logos.te-marquee {
	display: block; overflow: hidden; white-space: nowrap; padding: 8px 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.te-marquee__track { display: inline-flex; width: max-content; animation: te-marquee var(--te-duration, 30s) linear infinite; }
.te-marquee__group { display: inline-flex; align-items: center; gap: 64px; padding-right: 64px; }
.te-marquee__group span { transition: color .2s ease, transform .2s ease; display: inline-block; cursor: default; }
.te-marquee__group span:hover { color: var(--wp--preset--color--pink); transform: scale(1.08); }
.te-marquee:hover .te-marquee__track { animation-play-state: paused; }
@keyframes te-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--te-shift, 50%))); } }

/* Site logo in header and footer */
.te-header .wp-block-site-logo, .te-footer .wp-block-site-logo { margin: 0; line-height: 0; flex: none; }
.te-header .wp-block-site-logo img { max-height: 56px; width: auto; height: auto; transition: max-height .25s ease; }
.te-footer .wp-block-site-logo img { max-height: 64px; width: auto; height: auto; }
.te-footer .wp-block-site-logo { margin-bottom: 1rem; }

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