/*
 * CMS39 default theme — layout (Bootstrap 5.3 + αυτό το αρχείο). Φορτώνει μετά το style.css (παλιά utilities).
 * Χρώματα / γραμματοσειρές: μεταβλητές στο :root — αλλάζουν εύκολα ανά site.
 */
:root {
    --t-primary: #e11d2e;          /* κόκκινο CMS39 */
    --t-primary-dark: #b3121f;
    --t-ink: #0f172a;
    --t-text: #334155;
    --t-muted: #64748b;
    --t-line: #e2e8f0;
    --t-soft: #f8fafc;
    --t-radius: 14px;
    --t-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --bs-primary: var(--t-primary);
    --bs-primary-rgb: 225, 29, 46;
    --bs-link-color: var(--t-primary);
    --bs-link-hover-color: var(--t-primary-dark);
    --bs-body-font-family: var(--t-font);
    --bs-body-color: var(--t-text);
}

html { scroll-behavior: smooth; }
body { font-family: var(--t-font); color: var(--t-text); background: #fff; font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3 { font-family: var(--t-font); color: var(--t-ink); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
a { color: var(--t-primary); text-decoration: none; }
a:hover { color: var(--t-primary-dark); }
img { max-width: 100%; height: auto; }
.btn-primary { --bs-btn-bg: var(--t-primary); --bs-btn-border-color: var(--t-primary); --bs-btn-hover-bg: var(--t-primary-dark); --bs-btn-hover-border-color: var(--t-primary-dark); --bs-btn-active-bg: var(--t-primary-dark); }
.btn { border-radius: 999px; font-weight: 600; padding-inline: 1.25rem; }
.btn-lg { padding: .8rem 1.75rem; }
:focus-visible { outline: 3px solid rgba(225, 29, 46, .35); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------------------------------------------------------------- topbar */
.t-topbar { background: var(--t-ink); color: #cbd5e1; font-size: .82rem; }
.t-topbar a { color: #e2e8f0; }
.t-topbar a:hover { color: #fff; }
.t-topbar .lang-list { margin: 0; padding: 0; display: flex; gap: .25rem; list-style: none; }
.t-topbar .lang-list li a { display: inline-block; padding: .15rem .55rem; border-radius: 999px; }
.t-topbar .lang-list li.active a, .t-topbar .lang-list li a.active { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------------------------------------------------------------- header / navigation */
.t-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.t-header.is-scrolled { border-bottom-color: var(--t-line); box-shadow: 0 6px 24px rgba(15, 23, 42, .06); }
.t-header .navbar { padding-block: .85rem; }
.t-brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; color: var(--t-ink); letter-spacing: -.02em; }
.t-brand:hover { color: var(--t-ink); }
.t-brand img { height: 38px; width: auto; }
.t-brand { min-width: 0; }
.t-brand > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22rem; }
@media (max-width: 991.98px) {
    /* backdrop-filter = containing block για το position:fixed → το offcanvas του μενού θα έμενε μέσα στο header και ξεχείλιζε */
    .t-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
    .t-header .navbar > .container { flex-wrap: nowrap; }
    .t-brand > span:last-child { max-width: 52vw; font-size: 1.05rem; }
}
.t-brand-mark { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--t-primary); color: #fff; font-size: .95rem; font-weight: 800; }

/* το μενού (cms39_navigation_menu_plugin → ul#cms39-header-nav > li > a) */
.t-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.t-nav li { position: relative; }
.t-nav a { display: block; padding: .5rem .9rem; border-radius: 999px; color: var(--t-text); font-weight: 500; }
.t-nav a:hover { color: var(--t-ink); background: var(--t-soft); }
.t-nav li.active > a, .t-nav a.active { color: var(--t-primary); background: rgba(225, 29, 46, .08); }
.t-nav li ul { display: none; position: absolute; left: 0; top: 100%; min-width: 220px; flex-direction: column; align-items: stretch; padding: .5rem; background: #fff; border: 1px solid var(--t-line); border-radius: var(--t-radius); box-shadow: 0 16px 40px rgba(15, 23, 42, .12); z-index: 10; }
.t-nav li:hover > ul, .t-nav li:focus-within > ul { display: flex; }
.t-nav li ul a { border-radius: 8px; }

@media (max-width: 991.98px) {
    .t-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .t-nav a { border-radius: 10px; padding: .75rem 1rem; font-size: 1.05rem; }
    .t-nav li ul { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 1rem; min-width: 0; }
}
.offcanvas.t-offcanvas { --bs-offcanvas-width: min(340px, 86vw); }

/* ---------------------------------------------------------------- hero (αρχική) */
.t-hero { position: relative; overflow: hidden; padding: clamp(4rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
    background: radial-gradient(1200px 500px at 85% -10%, rgba(225, 29, 46, .16), transparent 60%),
                radial-gradient(900px 500px at -10% 110%, rgba(59, 130, 246, .12), transparent 60%), var(--t-soft); }
.t-hero.has-image { background: var(--t-ink); color: #fff; }
.t-hero.has-image .t-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.t-hero.has-image h1, .t-hero.has-image .t-hero-sub { color: #fff; }
.t-hero .container { position: relative; }
.t-eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .85rem; border-radius: 999px; background: rgba(225, 29, 46, .1); color: var(--t-primary); font-weight: 600; font-size: .85rem; }
.t-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.2rem); font-weight: 800; margin: 1rem 0; max-width: 18ch; }
.t-hero-sub { font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); color: var(--t-muted); max-width: 46ch; }

/* ---------------------------------------------------------------- εσωτερικές σελίδες */
.t-page-head { padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; background: var(--t-soft); border-bottom: 1px solid var(--t-line); }
.t-page-head h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); margin: .25rem 0 0; }
.t-page-head .breadcrumb { margin: 0; font-size: .875rem; }
.t-page-head .breadcrumb a { color: var(--t-muted); }
.t-page-head .breadcrumb li + li::before { content: "/"; padding: 0 .5rem; color: var(--t-line); }

.t-main { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.t-content { font-size: 1.05rem; }
.t-content > *:first-child { margin-top: 0; }
.t-content h2 { margin-top: 2.25rem; font-size: 1.7rem; }
.t-content h3 { margin-top: 1.75rem; font-size: 1.3rem; }
.t-content img { border-radius: var(--t-radius); }
.t-content table { width: 100%; margin-bottom: 1rem; }
.t-content blockquote { border-left: 4px solid var(--t-primary); padding: .5rem 1.25rem; color: var(--t-muted); background: var(--t-soft); border-radius: 0 var(--t-radius) var(--t-radius) 0; }

/* υπομενού σελίδας (theme_submenu → ul#submenus) */
.t-sidebar { position: sticky; top: 96px; }
.t-sidebar ul { list-style: none; margin: 0; padding: 0; }
.t-sidebar li a { display: block; padding: .55rem .9rem; border-radius: 10px; color: var(--t-text); }
.t-sidebar li a:hover { background: var(--t-soft); color: var(--t-ink); }
.t-sidebar li.active > a, .t-sidebar a.active { background: rgba(225, 29, 46, .08); color: var(--t-primary); font-weight: 600; }
.t-sidebar li ul { padding-left: .9rem; }

/* gallery */
.t-gallery:empty { display: none; }
.t-gallery { margin-bottom: 2rem; }
.t-gallery img { border-radius: 10px; }

/* κάρτα επικοινωνίας (theme_contact) */
.t-cta { margin-top: 3rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: calc(var(--t-radius) * 1.4); background: linear-gradient(135deg, var(--t-ink), #1e293b); color: #e2e8f0; }
.t-cta a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.t-cta:empty { display: none; }

/* ---------------------------------------------------------------- footer */
.t-footer { background: var(--t-ink); color: #94a3b8; padding: 4rem 0 0; margin-top: auto; }
.t-footer h6 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.t-footer a { color: #cbd5e1; }
.t-footer a:hover { color: #fff; }
.t-footer .t-brand { color: #fff; }
.t-footer ul { list-style: none; padding: 0; margin: 0; }
.t-footer li { margin-bottom: .45rem; }
.t-footer-bottom { border-top: 1px solid rgba(148, 163, 184, .18); margin-top: 3rem; padding: 1.25rem 0; font-size: .85rem; }

body { display: flex; flex-direction: column; min-height: 100vh; }

/* ---------------------------------------------------------------- 404 */
.t-404 { padding: clamp(4rem, 10vw, 8rem) 0; text-align: center; }
.t-404 .code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--t-primary), #f97316); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .t-header { transition: none; } }

/* ---------------------------------------------------------------- slider αρχικής (πεδίο home_slides — Bootstrap carousel) */
.t-slider .t-slide { min-height: clamp(420px, 62vh, 640px); display: flex; align-items: center; padding: 4rem 0 5rem;
    background: radial-gradient(1200px 500px at 85% -10%, rgba(225, 29, 46, .16), transparent 60%), var(--t-soft) center / cover no-repeat; }
.t-slider .t-slide.has-image { position: relative; color: #fff; }
.t-slider .t-slide.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 23, 42, .78), rgba(15, 23, 42, .25)); }
.t-slider .t-slide .container { position: relative; }
.t-slide-title { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.8rem); font-weight: 800; max-width: 18ch; margin-bottom: 1rem; }
.t-slide.has-image .t-slide-title, .t-slide.has-image .t-hero-sub { color: #fff; }
.t-slider .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 2px; background-color: var(--t-ink); }
.t-slider .carousel-control-prev, .t-slider .carousel-control-next { width: 6%; }
.t-slider:not(:has(.has-image)) .carousel-control-prev-icon, .t-slider:not(:has(.has-image)) .carousel-control-next-icon { filter: invert(1); }
@media (prefers-reduced-motion: reduce) { .t-slider .carousel-item { transition: none; } }

/* ---------------------------------------------------------------- αναζήτηση (plugin cms39_search): πάνελ header + σελίδα αποτελεσμάτων */
.t-search { border-top: 1px solid var(--t-line); background: #fff; }
.t-search-form { position: relative; display: flex; gap: .5rem; max-width: 760px; margin: 0 auto; }
.t-search-form > .bi-search { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--t-muted); pointer-events: none; }
.t-search-form .form-control { padding-left: 2.6rem; border-radius: var(--t-radius); border-color: var(--t-line); }
.t-search-form .form-control:focus { border-color: var(--t-primary); box-shadow: 0 0 0 .2rem rgba(225, 29, 46, .15); }
.t-search-form .btn { border-radius: var(--t-radius); white-space: nowrap; }
.searchArea { margin: 1rem 0 2rem; }
.searchArea > hr { border-color: var(--t-line); opacity: 1; margin: 1.25rem 0; }
.searchArea > b:first-child { font-size: 1.5rem; color: var(--t-ink); }
.searchResultLoop { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.searchResultLoop > li { padding: 1rem 1.25rem; border: 1px solid var(--t-line); border-radius: var(--t-radius); background: #fff; transition: border-color .15s, box-shadow .15s; }
.searchResultLoop > li:hover { border-color: var(--t-primary); box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.searchResultLoop > li > a { display: block; font-weight: 700; font-size: 1.1rem; color: var(--t-ink); }
.searchResultLoop > li > a:hover { color: var(--t-primary); }
.searchResultLoop .excerpt { display: block; margin-top: .25rem; color: var(--t-muted); font-size: .95rem; }
.search_q { color: var(--t-primary); }
.search_q::before { content: "«"; } .search_q::after { content: "»"; }
.search-corrected, .search-suggest { padding: .75rem 1rem; border-radius: var(--t-radius); background: var(--t-soft); border: 1px solid var(--t-line); }
.search-corrected a, .search-suggest a { font-weight: 600; }
.search-nodata { padding: 2rem 1rem; text-align: center; color: var(--t-muted); font-size: 1.1rem; }
