/*
Theme Name: Asfaleies
Author: nrgweb
Description: Theme για site οδηγών και σύγκρισης ασφαλειών (με το plugin NRG Insurance CTA). Γρήγορο, χωρίς page builder.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: asf
*/

:root {
	--ink: #14233a;
	--muted: #51607a;
	--brand: #12406f;
	--brand-deep: #0b2c50;
	--accent: #ffb300;
	--accent-deep: #e59e00;
	--paper: #ffffff;
	--mist: #eef2f6;
	--line: #d9e1ea;
	--ok: #1b7f4c;
	--serif: "Literata", Georgia, "Times New Roman", serif;
	--sans: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--wrap: 1180px;
	--gut: clamp(16px, 4vw, 32px);
	--r: 10px;
	/* χρώματα για τα στοιχεία του plugin */
	--nic-cta-color: var(--accent);
	--nic-cta-text: var(--ink);
	--surface: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--mist); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.35rem, 2.3vw, 1.7rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r); }

/* Κουμπί (κοινό με το plugin) */
.nic-btn { font-family: var(--sans); }
.nic-btn:hover { background: var(--accent-deep); filter: none; }

/* ---------------- Header ---------------- */
.head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.head__in { display: flex; align-items: center; gap: 14px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex: none; }
.brand__name { font: 700 1.2rem/1 var(--serif); letter-spacing: -.01em; }
.brand__logo { max-height: 40px; width: auto; }
.nav { margin-left: auto; order: 3; }
.nav__btn { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.nav__btn::-webkit-details-marker { display: none; }
.nav__btn span, .nav__btn span::before, .nav__btn span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.nav__btn span::before { position: absolute; top: -6px; } .nav__btn span::after { position: absolute; top: 6px; }
.nav__panel { position: absolute; left: 0; right: 0; top: 66px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 6px var(--gut) 14px; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__list a { display: block; padding: 11px 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--mist); }
.head__cta { order: 2; margin-left: auto; min-height: 40px !important; padding: .4em 1em !important; font-size: .9rem; }
@media (min-width: 1000px) {
	.nav { order: 2; margin-left: 10px; }
	.nav__btn { display: none; }
	.nav__panel { position: static; padding: 0; border: 0; background: none; }
	.nav__list { display: flex; gap: 2px; }
	.nav__list a { border: 0; padding: 8px 12px; border-radius: 6px; font-size: .97rem; }
	.nav__list a:hover, .nav__list .current-menu-item > a, .nav__list .current-page-ancestor > a { background: var(--mist); color: var(--brand); }
	.head__cta { order: 3; }
}
@media (max-width: 420px) { .head__cta { display: none !important; } }

/* ---------------- Hero (αρχική) ---------------- */
.hero { background: var(--brand); color: #fff; padding: 44px 0 52px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -140px; width: 520px; height: 520px; border-radius: 50%; border: 70px solid rgba(255, 255, 255, .04); pointer-events: none; }
.hero__grid { display: grid; gap: 28px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1fr 1.05fr; gap: 48px; } .hero { padding: 64px 0 72px; } }
.hero__title { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08; margin-bottom: .4em; text-wrap: balance; }
.hero__lead { font-size: 1.12rem; opacity: .92; max-width: 34em; }
.hero__points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; }
.hero__points li { padding-left: 28px; position: relative; }
.hero__points li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.hero__form .nic-quote { margin: 0; color: var(--ink); grid-template-columns: 1fr; border-top-color: var(--accent); }
.hero__form .nic-quote__text { display: none; }
.hero__form .nic-quote__frame::before { content: none; }

/* ---------------- Ενότητες αρχικής ---------------- */
.sec { margin-top: 56px; }
.sec__h { margin-bottom: 18px; }
.sec__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.more { font-weight: 600; }
.products { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.product { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.product .ico { color: var(--brand); margin-bottom: 6px; }
.product__name { font: 700 1.15rem/1.2 var(--serif); }
.product__desc { font-size: .9rem; color: var(--muted); }
.product:hover { border-color: var(--brand); box-shadow: 0 6px 18px -12px rgba(18, 64, 111, .5); color: var(--ink); }
.sec--split { display: grid; gap: 28px; }
@media (min-width: 900px) { .sec--split { grid-template-columns: 1fr 1fr; gap: 48px; } }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 58px; background: var(--paper); border-radius: var(--r); border: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 .95rem/30px var(--sans); text-align: center; }
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: .95rem; }
.home__intro { align-self: center; font-size: 1.1rem; }
.sec--quiz .nic-quiz { max-width: 760px; }

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: 8px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; position: relative; }
.card__cat { font-size: .82rem; font-weight: 600; color: var(--brand); margin: 0 0 4px; }
.card__t { font-size: 1.08rem; margin: 0 0 6px; }
.card__t a { color: var(--ink); text-decoration: none; }
.card__t a::after { content: ""; position: absolute; inset: 0; }
.card:hover { border-color: var(--brand); }
.card__ex { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------------- Σελίδες-οδηγοί ---------------- */
.dochead { background: var(--paper); border-bottom: 1px solid var(--line); padding: 18px 0 26px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 14px; padding: 0; font-size: .86rem; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line); }
.crumbs a, .crumbs span { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.dochead__t { font-size: clamp(1.75rem, 3.8vw, 2.6rem); max-width: 26ch; text-wrap: balance; }
.dochead__lead { font-size: 1.15rem; color: var(--muted); max-width: 44em; margin-bottom: 10px; }
.docmeta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .86rem; color: var(--muted); margin: 0; }
.docmeta span:first-child { color: var(--ok); font-weight: 600; }

.docgrid { display: grid; gap: 28px; margin-top: 28px; align-items: start; }
@media (min-width: 1000px) { .docgrid { grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; } .docside__in { position: sticky; top: 88px; } }
.docbody { background: var(--paper); border-radius: var(--r); border: 1px solid var(--line); padding: clamp(18px, 3.5vw, 40px); min-width: 0; }
.docbody > p, .docbody > ul, .docbody > ol, .plainbody > * { max-width: 70ch; }
.docbody h2 { margin-top: 1.7em; padding-top: .2em; }
.docbody h2:first-of-type { margin-top: .4em; }
.docbody ul, .docbody ol, .prose ul, .prose ol { padding-left: 1.25em; }
.docbody li, .prose li { margin-bottom: .4em; }
.docbody__img { margin: 0 0 20px; }
.docbody__img img { border-radius: 8px; }
.plainbody { background: var(--paper); border-radius: var(--r); border: 1px solid var(--line); padding: clamp(18px, 3.5vw, 40px); margin-top: 28px; }

.toc { background: var(--mist); border-radius: 8px; padding: 12px 16px; margin: 0 0 24px; max-width: 70ch; }
.toc summary { font-weight: 700; cursor: pointer; }
.toc ol { margin: 8px 0 0; padding-left: 1.3em; columns: 2 220px; column-gap: 28px; }
.toc li { margin-bottom: 4px; break-inside: avoid; font-size: .95rem; }

.side-cta { background: var(--brand); color: #fff; border-radius: var(--r); padding: 18px; margin-bottom: 16px; }
.side-cta__k { font-size: .82rem; opacity: .8; margin: 0; }
.side-cta__t { font: 700 1.25rem/1.25 var(--serif); margin: 2px 0 6px; }
.side-cta__d { font-size: .93rem; opacity: .9; }
.side-cta .nic-btn { width: 100%; }
.side-nav { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.side-nav__h { font-weight: 700; margin: 0 0 8px; }
.side-nav__h a { color: var(--ink); text-decoration: none; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; font-size: .93rem; }
.side-nav li a:hover, .side-nav li.is-current a { border-left-color: var(--brand); color: var(--brand); font-weight: 600; }
@media (max-width: 999px) { .docside { order: 2; } }

/* Υποσελίδες (κάρτες) */
.kids { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin: 10px 0 24px; }
.kid { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); background: var(--paper); }
.kid strong { display: block; font-family: var(--serif); margin-bottom: 2px; }
.kid span { color: var(--muted); font-size: .9rem; }
.kid:hover { border-color: var(--brand); }

/* ---------------- Πίνακας καλύψεων (ασφαλιστήριο) ---------------- */
.covtable { margin: 22px 0 28px; }
.covtable__title { font-weight: 700; margin-bottom: 8px; }
.covtable__scroll { overflow-x: auto; border: 1.5px solid var(--brand); border-radius: 8px; background: var(--paper); }
.covtable table { width: 100%; border-collapse: collapse; min-width: 560px; }
.covtable thead th { background: var(--brand); color: #fff; font: 600 .9rem/1.3 var(--sans); padding: 12px 10px; text-align: center; }
.covtable thead th:first-child { text-align: left; padding-left: 16px; }
.covtable tbody th { text-align: left; font-weight: 400; padding: 11px 12px 11px 16px; border-top: 1px solid var(--line); }
.covtable tbody th strong { display: block; font-weight: 600; }
.covtable tbody th small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.covtable td { text-align: center; border-top: 1px solid var(--line); border-left: 1px dashed var(--line); width: 17%; }
.covtable tbody tr:nth-child(even) { background: #f8fafc; }
.cov { display: inline-grid; place-items: center; }
.cov--yes { width: 26px; height: 26px; border-radius: 50%; background: var(--ok); }
.cov--yes::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.cov--no { width: 14px; height: 2px; background: #b8c3d0; }
.cov--opt { font-size: .75rem; font-weight: 600; color: var(--brand); background: var(--mist); padding: 3px 8px; border-radius: 999px; }
.covtable__note { font-size: .84rem; color: var(--muted); margin-top: 8px; }

/* FAQ */
.faq { margin-top: 36px; }
.faq__item { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; background: var(--paper); }
.faq__item summary { cursor: pointer; padding: 13px 44px 13px 16px; font-weight: 600; list-style: none; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--brand); font-size: 1.3rem; font-weight: 400; }
.faq__item[open] summary::after { content: "–"; }
.faq__a { padding: 0 16px 4px; color: var(--muted); }

.related { margin-top: 40px; }
.related .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }

/* Λεξικό */
.glossary { margin: 0; }
.glossary dt { font: 700 1.08rem/1.3 var(--serif); margin-top: 18px; scroll-margin-top: 90px; }
.glossary dd { margin: 4px 0 0; color: var(--muted); }

/* Στοιχεία plugin μέσα στο theme */
.nic-quote, .nic-cta, .nic-quiz { --nic-accent: var(--accent); box-shadow: none; border: 1px solid var(--line); }
.nic-quote { border-top: 4px solid var(--accent); }
.nic-cta { border-left: 4px solid var(--accent); }
.nic-quote__title, .nic-cta__title, .nic-quiz__title { font-family: var(--serif); }
.docbody .nic-quote, .docbody .nic-cta, .docbody .nic-quiz { background: var(--mist); border-color: transparent; }
.docbody .nic-quote { border-top: 4px solid var(--accent); }
.docbody .nic-cta { border-left: 4px solid var(--accent); }

/* ---------------- Footer ---------------- */
.foot { background: var(--brand-deep); color: #c7d3e3; margin-top: 72px; padding: 44px 0 22px; font-size: .93rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__grid { display: grid; gap: 26px; }
@media (min-width: 800px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1.3fr 1fr; } }
.foot__brand { font: 700 1.2rem/1.2 var(--serif); color: #fff; }
.foot__h { color: #fff; font-weight: 700; margin-bottom: 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot__legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .84rem; }

.nav-links { display: flex; gap: 8px; margin-top: 24px; }
.page-numbers { padding: 8px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }
