/*
Theme Name:   Loyalties X
Theme URI:    https://www.loyalties.gr/
Author:       Marios Filippas — Business 2040 Ε.Ε.
Author URI:   https://business2040.gr/
Description:  Θέμα για το loyalties.gr — πρόγραμμα πόντων xLoyalty. Γρήγορο, χωρίς page builder, με schema (Organization, SoftwareApplication, FAQPage) και φόρμα leads μέσω του plugin «Business 2040 Leads».
Version:      1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License:      GPLv2 or later
Text Domain:  loyalties-x
*/

:root {
	--brand: #5B2BE0;
	--brand-2: #7B4DFF;
	--brand-deep: #1B1340;
	--accent: #FFC233;
	--ink: #1B1340;
	--text: #3D3858;
	--muted: #6B6489;
	--line: #E6E2F3;
	--soft: #F6F3FF;
	--white: #fff;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 20px 50px -20px rgba(43, 18, 120, .35);
	--shadow-sm: 0 6px 20px -10px rgba(43, 18, 120, .25);
	--font: 'Commissioner', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
h1, h2, h3 { color: var(--ink); line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1em; }
.sr, .skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 40px); }
.ico { width: 22px; height: 22px; flex: none; }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--brand); transition: transform .15s, box-shadow .15s, background .15s; box-shadow: 0 10px 24px -12px var(--brand); }
.btn:hover { color: #fff; background: var(--brand-2); border-color: var(--brand-2); transform: translateY(-1px); }
.btn--sm { padding: 9px 18px; font-size: .95rem; }
.btn--ghost { background: transparent; color: var(--brand); box-shadow: none; }
.btn--ghost:hover { background: var(--soft); color: var(--brand); border-color: var(--brand); }
.btn--light { background: #fff; color: var(--brand-deep); border-color: #fff; box-shadow: none; }
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: var(--brand-deep); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); box-shadow: none; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--block { width: 100%; }
.link { font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow .ico { width: 16px; height: 16px; color: var(--accent); fill: var(--accent); }
.eyebrow--light { color: var(--accent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -14px rgba(0,0,0,.25); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: block; line-height: 0; }
.brand svg { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__list a { color: var(--ink); font-weight: 600; font-size: .97rem; text-decoration: none; white-space: nowrap; }
.nav__list a:hover { color: var(--brand); }
.nav__list .sub-menu { display: none; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 90px; background:
	radial-gradient(900px 500px at 85% 10%, rgba(123,77,255,.16), transparent 60%),
	radial-gradient(600px 400px at 5% 90%, rgba(255,194,51,.16), transparent 60%),
	linear-gradient(180deg, #fff 0%, var(--soft) 100%); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 .hl { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 1.15rem; color: var(--text); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero__ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-weight: 600; color: var(--ink); font-size: .95rem; }
.hero__ticks li, .ticks li { display: flex; align-items: center; gap: 8px; }
.hero__ticks .ico, .ticks .ico { color: #12a150; width: 20px; height: 20px; }
.hero__visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.phone { position: relative; width: 270px; aspect-ratio: 579/1100; border-radius: 42px; background: #0f0b24; padding: 12px; box-shadow: var(--shadow), 0 0 0 1px rgba(0,0,0,.05); transform: rotate(3deg); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 32px; background: linear-gradient(160deg, var(--brand-2), var(--brand)); }
.float { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 14px 18px; display: flex; gap: 12px; align-items: center; animation: bob 5s ease-in-out infinite; }
.float small { display: block; color: var(--muted); font-size: .78rem; }
.float strong { color: var(--ink); }
.float--stamps { left: -6px; top: 60px; flex-direction: column; align-items: flex-start; gap: 6px; }
.stamps { display: flex; gap: 6px; }
.stamps i { width: 24px; height: 24px; border-radius: 50%; border: 2px dashed var(--brand); }
.stamps i.on { background: var(--brand); border-style: solid; box-shadow: inset 0 0 0 4px #fff; }
.float--points { right: 0; bottom: 70px; animation-delay: -2.5s; }
.float__badge { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent); color: var(--brand-deep); font-weight: 800; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } html { scroll-behavior: auto; } }

/* Strip */
.strip { border-block: 1px solid var(--line); background: #fff; }
.strip__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; padding: 22px 0; color: var(--muted); font-weight: 600; font-size: .95rem; }
.strip__inner span { display: inline-flex; align-items: center; gap: 8px; }
.strip .ico { color: var(--brand); }

/* Sections */
.section { padding: 96px 0; }
.section--tight { padding: 56px 0 80px; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--brand-deep); color: #CFC6F5; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head p:not(.eyebrow) { color: var(--muted); font-size: 1.07rem; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.split--center { align-items: center; grid-template-columns: 1fr 1fr; }
.prose--lead p { font-size: 1.12rem; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-weight: 600; color: var(--ink); }

/* Cards */
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.card p { color: var(--muted); margin-bottom: 0; }
.card__num { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--soft); color: var(--brand); font-weight: 800; font-size: 1.2rem; margin-bottom: 18px; }
.card--accent { background: linear-gradient(160deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; }
.card--accent h3 { color: #fff; }
.card--accent p { color: #E9E2FF; }
.card--accent .card__num { background: var(--accent); color: var(--brand-deep); }
.card--media, .card--post { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card__img { display: block; aspect-ratio: 16/10; background: var(--soft); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__img--contain img { object-fit: contain; padding: 14px; }
.card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__body p { margin-bottom: 10px; }
.card__body .link { margin-top: auto; }
.card--post time { font-size: .82rem; color: var(--muted); }
.card--post h3 a { color: var(--ink); text-decoration: none; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps li { position: relative; padding: 30px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.steps p { color: var(--muted); margin: 0; }
.steps__n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.25rem; margin-bottom: 18px; box-shadow: 0 0 0 8px var(--soft); }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 26px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: background .2s; }
.feature:hover { background: rgba(255,255,255,.08); }
.feature .ico { width: 30px; height: 30px; color: var(--accent); margin-bottom: 14px; }
.feature h3 { font-size: 1.05rem; }
.feature p { font-size: .95rem; margin: 0; }

/* Shots */
.shots { display: flex; gap: 16px; justify-content: center; }
.shots img { width: 31%; border-radius: 22px; border: 8px solid #0f0b24; box-shadow: var(--shadow); background: var(--brand); aspect-ratio: 579/1030; object-fit: cover; }
.shots img:nth-child(2) { transform: translateY(-24px); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.plan h3 { font-size: 1.15rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { position: relative; padding-left: 28px; color: var(--text); }
.plan li::before { content: ''; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 2.5px solid #12a150; border-bottom: 2.5px solid #12a150; transform: rotate(-45deg); }
.plan__price { font-size: 3rem; font-weight: 800; color: var(--ink); line-height: 1; margin: 10px 0 24px; letter-spacing: -.03em; }
.plan__price span { font-size: 1.5rem; vertical-align: top; margin-right: 2px; }
.plan__price small { font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan__price--ask { font-size: 1.35rem; color: var(--brand); padding: 14px 0 9px; }
.plan--featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan__badge { position: absolute; top: -14px; left: 30px; background: var(--accent); color: var(--brand-deep); font-size: .78rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; margin: 0; }
.pricing__note { text-align: center; color: var(--muted); margin-top: 28px; font-size: .95rem; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 24px; }
.faq__item summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: 1.07rem; }
.faq__item summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--brand); transition: transform .2s; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding-bottom: 20px; margin: 0; color: var(--muted); }

/* Contact */
.section--contact { background: linear-gradient(150deg, var(--brand-deep) 0%, #2E1A7A 100%); color: #CFC6F5; }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact h2 { color: #fff; }
.contact__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact__list li { display: flex; gap: 12px; align-items: center; }
.contact__list a { color: #fff; font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.contact__list .ico { color: var(--accent); }
.contact__form { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); color: var(--text); }
.lead-fallback { margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #EDE7FF; padding: 56px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 1.8rem; margin-bottom: 6px; }
.cta-band p { margin: 0; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Inner pages */
.page-hero { padding: 70px 0 40px; background: linear-gradient(180deg, var(--soft), #fff); }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 22em; }
.page-hero .meta { color: var(--muted); font-size: .95rem; }
.page-hero--center { text-align: center; padding: 120px 0; }
.page-hero--center h1 { margin-inline: auto; }
.prose { max-width: 760px; }
.prose img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--brand); color: var(--ink); font-weight: 500; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose__hero { margin-top: 0 !important; }
.pager { margin-top: 40px; display: flex; gap: 8px; justify-content: center; }
.pager .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; }
.pager .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.alignwide { max-width: 1000px; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .88rem; color: var(--muted); text-align: center; }

/* Footer */
.site-footer { background: #120C2E; color: #A9A1CC; padding: 72px 0 0; font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.brand--footer svg { height: 44px; width: auto; margin-bottom: 18px; }
.site-footer__h { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #DCD6F7; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__contact li { display: flex; gap: 10px; align-items: center; }
.site-footer__contact .ico { width: 18px; height: 18px; color: var(--accent); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .88rem; }

/* Responsive */
@media (max-width: 1080px) {
	.features { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
	.nav-toggle { display: block; }
	.nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 8px; padding: 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(0,0,0,.3); transform: translateY(-120%); transition: transform .25s; visibility: hidden; }
	.nav.is-open { transform: none; visibility: visible; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
	.nav__cta { margin-top: 8px; }
	.hero { padding: 40px 0 64px; }
	.hero__grid, .split, .split--center, .contact { grid-template-columns: 1fr; gap: 40px; }
	.hero__visual { min-height: 460px; }
	.cards--3, .steps, .pricing { grid-template-columns: 1fr; }
	.section { padding: 72px 0; }
	.plan--featured { order: -1; }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.brand svg { height: 38px; }
	.features { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.phone { width: 220px; }
	.float--stamps { left: 0; top: 20px; }
	.float--points { right: 0; bottom: 30px; }
	.contact__form { padding: 24px; }
	.strip__inner { justify-content: center; }
}

/* Inner pages: title aligned with the text column */
.page .page-hero .wrap, .single .page-hero .wrap { width: min(760px, 100% - 40px); }

/* Offices */
.contact__list .office, .site-footer__contact .office { align-items: flex-start; }
.contact__list .office .ico, .site-footer__contact .office .ico { margin-top: 3px; }
.contact__list .office strong { color: #fff; margin-right: 4px; }
.site-footer__contact .office strong { color: #fff; margin-right: 4px; }
.contact__list .office span { color: inherit; }
