/*
Theme Name: educopii
Theme URI: https://educopii.ro
Description: Custom lightweight theme for educopii.ro — a SaaS landing page for the educopii management platform, on top of the educational directory (kindergartens, after-school, centres, schools). No page builder. Brand: playful-professional, education.
Author: educopii
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: educopii
*/

@import url("assets/css/fonts.css");

/* ============================ Design tokens ============================ */
:root {
	--ec-blue:   #1AA0DC;
	--ec-blue-d: #1487bd;
	--ec-red:    #E62A31;
	--ec-yellow: #F8A81C;
	--ec-purple: #8A2E90;
	--ec-green:  #34B27B;

	--ink:   #16233B;   /* headings */
	--body:  #4b586c;   /* paragraphs */
	--muted: #7a869a;
	--line:  #e7edf5;
	--soft:  #f4f8fc;   /* soft section bg */
	--soft2: #eef4fb;
	--white: #ffffff;

	--grad-brand: linear-gradient(120deg, var(--ec-blue) 0%, var(--ec-purple) 55%, var(--ec-red) 100%);
	--grad-warm:  linear-gradient(120deg, var(--ec-yellow), var(--ec-red));
	--grad-cool:  linear-gradient(135deg, var(--ec-blue), var(--ec-purple));

	--r-sm: 10px;
	--r:    16px;
	--r-lg: 24px;
	--r-xl: 32px;
	--shadow-sm: 0 2px 8px rgba(22,35,59,.06);
	--shadow:    0 12px 34px rgba(22,35,59,.10);
	--shadow-lg: 0 30px 70px rgba(22,35,59,.16);
	--shadow-blue: 0 18px 40px rgba(26,160,220,.28);

	--wrap: 1160px;
	--font: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ============================ Base ============================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 18px;
	line-height: 1.65;
	color: var(--body);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 900; }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1.1em; }
a  { color: var(--ec-blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--ec-blue-d); }
img { max-width: 100%; height: auto; display: block; }
strong { color: var(--ink); font-weight: 800; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--soft { background: var(--soft); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.lead { font-size: 1.22rem; color: var(--body); max-width: 640px; }
.center .lead { margin-inline: auto; }

/* Eyebrow / kicker */
.kicker {
	display: inline-flex; align-items: center; gap: .5em;
	font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
	color: var(--ec-purple); background: #f3e9fb; padding: .5em 1em; border-radius: 999px;
}
.kicker--blue { color: var(--ec-blue-d); background: #e4f4fc; }

.gradient-text {
	background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============================ Buttons ============================ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	font-family: var(--font); font-weight: 800; font-size: 1.02rem; line-height: 1;
	padding: .95em 1.6em; border-radius: 999px; border: 0; cursor: pointer;
	transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background .18s; white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--ec-blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 22px 46px rgba(26,160,220,.4); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ec-blue); transform: translateY(-2px); }
.btn-white { background:#fff; color: var(--ec-purple); }
.btn-white:hover { color: var(--ec-purple); transform: translateY(-2px); }
.btn-lg { font-size: 1.12rem; padding: 1.1em 1.9em; }

/* ============================ Header / nav ============================ */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: 8px; list-style: none; padding: 0; }
.nav-menu a { color: var(--ink); font-weight: 700; font-size: .98rem; padding: .5em .85em; border-radius: 10px; }
.nav-menu a:hover { background: var(--soft2); color: var(--ec-blue-d); }
.nav-cta { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-cta .login { color: var(--ink); font-weight: 800; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .2s; }

/* ============================ Hero ============================ */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero::before, .hero::after {
	content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: 0;
}
.hero::before { width: 520px; height: 520px; background: radial-gradient(circle, var(--ec-blue), transparent 70%); top: -160px; right: -120px; }
.hero::after  { width: 460px; height: 460px; background: radial-gradient(circle, var(--ec-yellow), transparent 70%); bottom: -180px; left: -140px; opacity: .35; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero p.lead { margin-bottom: 1.7em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--muted); font-weight: 700; font-size: .95rem; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars span {
	width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; margin-left: -10px;
	background: var(--grad-cool); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: .8rem;
}
.hero-trust .avatars span:first-child { margin-left: 0; }

/* App mockup (CSS-rendered dashboard) */
.mockup {
	position: relative; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-lg);
	overflow: hidden; border: 1px solid var(--line); transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
	transition: transform .4s ease;
}
.mockup:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.mockup-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #f7fafd; border-bottom: 1px solid var(--line); }
.mockup-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mockup-bar i:nth-child(1){ background:#ff5f57 } .mockup-bar i:nth-child(2){ background:#febc2e } .mockup-bar i:nth-child(3){ background:#28c840 }
.mockup-bar .url { margin-left: 12px; font-size: .75rem; color: var(--muted); background:#fff; border:1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-weight: 700; }
.mockup-body { display: grid; grid-template-columns: 62px 1fr; min-height: 340px; }
.mock-side { background: var(--ink); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mock-side .dot { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.12); }
.mock-side .dot.active { background: var(--ec-blue); }
.mock-main { padding: 20px; background: #fbfdff; }
.mock-row { display: flex; gap: 12px; margin-bottom: 14px; }
.mock-stat { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.mock-stat b { display: block; font-size: 1.5rem; color: var(--ink); font-weight: 900; }
.mock-stat span { font-size: .72rem; color: var(--muted); font-weight: 700; }
.mock-stat .bar { height: 6px; border-radius: 6px; margin-top: 8px; background: var(--soft2); overflow: hidden; }
.mock-stat .bar i { display:block; height: 100%; border-radius: 6px; }
.mock-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.mock-card h5 { margin: 0 0 12px; color: var(--ink); font-size: .95rem; font-weight: 800; }
.mock-line { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.mock-line:first-of-type { border-top: 0; }
.mock-line .av { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
.mock-line .txt { flex: 1; }
.mock-line .txt em { display:block; height: 8px; width: 60%; background: var(--soft2); border-radius: 5px; }
.mock-line .txt em + em { width: 40%; margin-top: 5px; height: 6px; }
.mock-line .pill { font-size: .68rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.pill-green { background: #e5f6ee; color: var(--ec-green); }
.pill-blue { background: #e4f4fc; color: var(--ec-blue-d); }

/* Floating badges on mockup */
.float-badge {
	position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px;
	display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: .85rem; z-index: 2;
}
.float-badge .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.float-badge.b1 { top: 24px; left: -34px; animation: floaty 5s ease-in-out infinite; }
.float-badge.b2 { bottom: 40px; right: -28px; animation: floaty 5s ease-in-out infinite 1.4s; }
@keyframes floaty { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-12px) } }

/* ============================ Trust strip ============================ */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-strip .wrap { padding-block: 26px; }
.trust-strip p { text-align: center; color: var(--muted); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; margin: 0 0 16px; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.trust-logos .tag {
	display:inline-flex; align-items:center; gap:8px; font-weight: 800; color: var(--ink);
	background: var(--soft); border-radius: 999px; padding: .6em 1.15em; font-size: .95rem;
}
.trust-logos .tag .d { width: 10px; height: 10px; border-radius: 50%; }

/* ============================ Audience cards ============================ */
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.aud-card {
	position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
	padding: 28px 22px; text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden;
}
.aud-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.aud-card .ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 16px; color: #fff; }
.aud-card h3 { font-size: 1.15rem; margin-bottom: .3em; }
.aud-card p { font-size: .97rem; margin: 0; }
.aud-card::after { content:""; position:absolute; inset: auto 0 0 0; height: 4px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.aud-card:hover::after { transform: scaleX(1); }

/* ============================ Feature grid ============================ */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.feat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px; transition: transform .2s, box-shadow .2s; }
.feat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feat-card .ic { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; }
.feat-card h3 { font-size: 1.2rem; }
.feat-card p { margin: 0; font-size: 1rem; }

/* ============================ Showcase (alt rows) ============================ */
.show-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.show-row + .show-row { margin-top: clamp(56px, 8vw, 100px); }
.show-row.reverse .show-media { order: 2; }
.show-list { list-style: none; padding: 0; margin: 22px 0 0; }
.show-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-weight: 600; color: var(--body); }
.show-list li svg { flex-shrink: 0; width: 24px; height: 24px; color: var(--ec-green); margin-top: 1px; }
.show-media { position: relative; }
.show-media .panel {
	background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px;
}
.show-media .glow { position:absolute; inset: 20px; border-radius: var(--r-xl); background: var(--grad-cool); filter: blur(50px); opacity: .18; z-index: -1; }

/* ============================ Pricing ============================ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; align-items: stretch; }
.price-card {
	position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 30px;
	display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.price-card.featured { border: 0; box-shadow: var(--shadow-lg); transform: scale(1.03); }
.price-card.featured::before { content:""; position:absolute; inset:0; border-radius: var(--r-lg); padding: 2px; background: var(--grad-brand); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events:none; }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-brand); color: #fff; font-weight: 800; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; padding: .45em 1.1em; border-radius: 999px; }
.price-card h3 { font-size: 1.25rem; margin-bottom: .2em; }
.price-card .desc { font-size: .95rem; color: var(--muted); margin-bottom: 18px; min-height: 44px; }
.price-amount { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 4px; }
.price-amount .num { font-size: 3rem; font-weight: 900; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.price-amount .per { color: var(--muted); font-weight: 700; font-size: .95rem; padding-bottom: 8px; }
.price-note { font-size: .85rem; color: var(--muted); margin-bottom: 22px; }
.price-feats { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.price-feats li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: .97rem; font-weight: 600; }
.price-feats li svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--ec-green); margin-top: 2px; }
.price-card .btn { width: 100%; }

/* ============================ Testimonial ============================ */
.quote-card {
	max-width: 820px; margin-inline: auto; text-align: center; background: #fff; border-radius: var(--r-xl);
	box-shadow: var(--shadow); padding: clamp(32px, 5vw, 56px);
}
.quote-card .stars { color: var(--ec-yellow); font-size: 1.3rem; letter-spacing: 2px; margin-bottom: 14px; }
.quote-card blockquote { margin: 0 0 24px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 800; color: var(--ink); line-height: 1.4; letter-spacing: -.01em; }
.quote-author { display: flex; align-items: center; justify-content: center; gap: 14px; }
.quote-author .av { width: 52px; height: 52px; border-radius: 50%; background: var(--grad-warm); display: grid; place-items: center; color: #fff; font-weight: 900; }
.quote-author b { display: block; color: var(--ink); }
.quote-author span { font-size: .9rem; color: var(--muted); }

/* ============================ CTA band ============================ */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--grad-brand); color: #fff; padding: clamp(44px, 6vw, 72px); text-align: center; }
.cta-band::before { content:""; position:absolute; width: 380px; height: 380px; border-radius:50%; background: rgba(255,255,255,.14); top: -160px; right: -100px; }
.cta-band::after  { content:""; position:absolute; width: 300px; height: 300px; border-radius:50%; background: rgba(255,255,255,.10); bottom: -140px; left: -80px; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.92); position: relative; font-size: 1.2rem; max-width: 620px; margin-inline: auto; }
.cta-band .hero-cta { position: relative; justify-content: center; margin-top: 26px; }

/* ============================ Footer ============================ */
.site-footer { background: var(--ink); color: #b9c3d4; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #b9c3d4; font-weight: 600; font-size: .96rem; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 40px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { font-size: .96rem; max-width: 280px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .9rem; color: #8c99ad; }

/* ============================ Generic content / directory ============================ */
.page-hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: clamp(40px,6vw,72px) 0; }
.breadcrumbs { font-size: .88rem; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.breadcrumbs a { color: var(--muted); }
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dir-card { background:#fff; border:1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.dir-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.dir-card .thumb { aspect-ratio: 16/10; background: var(--soft2) center/cover; }
.dir-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.dir-card .city { font-size: .82rem; font-weight: 800; color: var(--ec-purple); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.dir-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.dir-card .meta { font-size: .92rem; color: var(--muted); margin-top: auto; }
.entry { max-width: 760px; margin-inline: auto; }
.entry img { border-radius: var(--r); margin: 1.5em 0; }
.entry h2, .entry h3 { margin-top: 1.6em; }

.prose p { color: var(--body); }

/* ============================ Reveal on scroll ============================ */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; } html { scroll-behavior: auto; } }

/* ============================ Responsive ============================ */
@media (max-width: 960px) {
	.hero-grid { grid-template-columns: 1fr; gap: 40px; }
	.hero-media { max-width: 520px; }
	.feat-grid, .aud-grid { grid-template-columns: repeat(2, 1fr); }
	.show-row, .show-row.reverse .show-media { grid-template-columns: 1fr; order: 0; }
	.show-row .show-media { order: 2; }
	.price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
	.price-card.featured { transform: none; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
	.dir-grid { grid-template-columns: repeat(2, 1fr); }
	.nav-menu { display: none; }
	.nav-toggle { display: block; }
	.nav-menu.open { display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 4px; box-shadow: var(--shadow); }
	.nav-menu.open a { padding: .8em 1em; }
}
@media (max-width: 560px) {
	body { font-size: 17px; }
	.feat-grid, .aud-grid, .dir-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.float-badge { display: none; }
	.hero-cta .btn { width: 100%; }
}
