/* ΑΛΠΑ Λογιστική — v3: CSS εσωτερικών σελίδων (Υπηρεσίες, Νέα, Επικοινωνία, Απόρρητο).
   Φορτώνεται ΜΕΤΑ το style.css. Χρώματα/γραμματοσειρές ΜΟΝΟ από τις μεταβλητές :root του style.css — καμία νέα απόχρωση.
   Μοναδική νέα μεταβλητή: --subnav-h (διάσταση, όχι χρώμα). */

:root { --subnav-h: 3.25rem; }

/* Οι άγκυρες δεν κρύβονται κάτω από την κεφαλίδα (69px όταν έχει κυλήσει) και τη sticky πλοήγηση ενοτήτων */
html { scroll-padding-top: calc(69px + var(--subnav-h) + 1rem); }

/* ---------- Κεφαλίδα σελίδας (μόνο τυπογραφία) ---------- */
.page-hero { background: var(--surface); padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.75rem clamp(2rem, 6vw, 5.5rem); align-items: end;
}
.page-title {
  font-family: var(--serif); font-weight: 400; color: var(--blue);
  font-size: clamp(2.3rem, 4.8vw, 4.1rem); line-height: 1.08; letter-spacing: -.02em;
  text-wrap: balance;
}
.page-note { margin-top: 1rem; color: var(--muted); }
.js .page-hero-grid > * { opacity: 0; animation: page-in .9s var(--ease) forwards; }
.js .page-hero-grid > :nth-child(2) { animation-delay: .1s; }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Sticky πλοήγηση ενοτήτων ---------- */
.subnav {
  position: sticky; top: 68px; z-index: 40;
  background: var(--surface);
  border-block: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav-list {
  display: flex; gap: clamp(1.5rem, 3.2vw, 2.75rem);
  width: max-content; min-width: 100%;
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}
.subnav a {
  display: flex; align-items: center; min-height: var(--subnav-h);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-size: .95rem; font-weight: 600; line-height: 1.3; white-space: nowrap;
  color: var(--muted); text-decoration: none;
  transition: color .25s, border-color .3s var(--ease);
}
.subnav a:hover, .subnav a[aria-current="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.subnav a:focus-visible { outline-offset: -4px; }

/* ---------- Εναλλαγή φόντου ενοτήτων ---------- */
.sec-bg { background: var(--bg); }
.sec-surface { background: var(--surface); border-block: 1px solid var(--line); }

/* ---------- Ενότητα υπηρεσιών: αριστερά αριθμός + τίτλος + εισαγωγή, δεξιά λίστα εργασιών ---------- */
.svc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.svc-head, .svc-body { border-top: 1.5px solid var(--blue); }
.svc-head { padding-top: 1.25rem; }
.svc-n { display: block; margin-bottom: .9rem; font-family: var(--serif); font-size: 1rem; color: var(--muted); font-variant-numeric: lining-nums; }
.svc-title {
  font-family: var(--serif); font-weight: 400; color: var(--blue);
  font-size: clamp(1.75rem, 2.7vw, 2.3rem); line-height: 1.15; letter-spacing: -.012em;
  text-wrap: balance; overflow-wrap: break-word;
}
.svc-intro { margin-top: 1.1rem; font-size: 1.1rem; line-height: 1.6; color: var(--text); max-width: 32rem; }
.svc-intro + .svc-intro { color: var(--muted); }
.svc-cta { margin-top: 1.75rem; }

.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.75rem, 3.5vw, 3rem); }
.svc-item { padding-block: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.svc-item dt {
  margin-bottom: .45rem;
  font-family: var(--serif); font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.25; letter-spacing: -.005em; color: var(--blue);
}
.svc-item dd { font-size: 1.02rem; line-height: 1.6; color: var(--text); }

.svc-label { padding-top: 1.25rem; padding-bottom: 1rem; font-weight: 600; color: var(--blue); }
.svc-points li {
  display: flex; align-items: baseline; gap: 1rem;
  padding-block: 1.1rem; border-bottom: 1px solid var(--line);
  font-size: 1.1rem; line-height: 1.5; color: var(--text);
}
.svc-points li::before { content: ""; flex: 0 0 1.5rem; height: 1.5px; background: var(--blue); transform: translateY(-.3em); }

/* ---------- Κλείσιμο σελίδας (μπλε ζώνη) ---------- */
.close-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem clamp(2.5rem, 6vw, 5rem); align-items: start; }
.close-lead { margin-top: 1.1rem; max-width: 32rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--on-blue-muted); }
.close-actions { margin-top: 2rem; }
.close-details { grid-template-columns: minmax(0, 1fr); }
.close .contact-item { border-top-color: var(--line-blue); }
.close .contact-label { color: var(--on-blue-muted); }
.close .contact-big, .close .contact-mid { color: var(--on-blue); }
.close .contact-mid { margin-bottom: 0; font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.close .contact-big a:hover, .close .contact-mid a:hover { text-decoration-color: currentColor; }

.btn-light { background: var(--on-blue); color: var(--blue); }
.btn-light:hover { background: var(--mist); transform: translateY(-1px); }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) and (min-width: 901px) {
  .svc-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {

  .page-hero-grid, .svc-grid, .close-grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero-grid { align-items: start; }
  .svc-intro, .close-lead { max-width: 40rem; }
}

@media (max-width: 640px) {
  .svc-list { grid-template-columns: minmax(0, 1fr); }
  .svc-cta .btn, .close-actions .btn { width: 100%; }
  .svc-points li { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  .js .page-hero-grid > * { opacity: 1; animation: none; }
}

/* === σελίδες nea/epikoinonia/idiotikotita/en === */
/* Μόνο μεταβλητές :root του style.css — καμία νέα απόχρωση. */

/* Κοινά */
.eyebrow { margin-bottom: .9rem; font-size: .85rem; font-weight: 700; color: var(--muted); }

/* Νέα: λίστα δελτίων (γεμίζει από news.php / news-fallback.json) */
.news-items { margin: 0; padding: 0; list-style: none; }
.news-items .campaign { color: var(--muted); }
.news-status { padding-block: 1.35rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.news-archive { margin-top: 1.75rem; }
.news-head { margin-bottom: 1.25rem; }

/* Επικοινωνία: στοιχεία ως γραμμές ετικέτα / τιμή */
.fact { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: .35rem 2rem; align-items: baseline; padding-block: 1.35rem; border-bottom: 1px solid var(--line); }
.fact dt { font-size: .85rem; font-weight: 700; color: var(--muted); }
.fact dd { font-size: 1.1rem; line-height: 1.5; overflow-wrap: anywhere; }
.fact dd a { text-decoration: none; }
.fact dd a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.fact dd.fact-tel { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.4; color: var(--blue); font-variant-numeric: lining-nums; }
.fact dd.fact-tel a { display: block; width: fit-content; }
.fact dd.fact-mail { font-weight: 600; }

/* Επικοινωνία: χάρτης που φορτώνεται μόνο μετά από επιλογή (καμία επαφή με τρίτο πριν) */
.map-box {
  position: relative; display: grid; place-items: center; align-content: center; gap: 1rem;
  min-height: clamp(280px, 34vw, 420px); padding: 1.75rem var(--gutter); text-align: center;
  background: var(--mist-soft); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.map-box p { max-width: 30rem; color: var(--muted); }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-box.is-loaded { padding: 0; }
.map-links { margin-top: 1.25rem; }

/* Απόρρητο: ενότητες με τίτλο αριστερά, κείμενο δεξιά */
.policy-sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1rem clamp(2rem, 6vw, 5rem); padding-block: clamp(1.75rem, 3.5vw, 2.5rem); border-top: 1px solid var(--line); }
.policy-sec:first-child { border-top: 1.5px solid var(--blue); }
.policy-h { font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.25; color: var(--blue); text-wrap: balance; }
.prose { max-width: 44rem; }
.prose > * + * { margin-top: 1rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose li + li { margin-top: .4rem; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.prose strong { color: var(--text); }
.legal > div + div { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal dt { margin-bottom: .45rem; font-weight: 700; color: var(--blue); }
.legal dd > p + p { margin-top: .5rem; }

@media (max-width: 900px) {
  .policy-sec { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .fact { grid-template-columns: minmax(0, 1fr); padding-block: 1.15rem; }
  .map-box .btn { width: 100%; }
}

/* === φωτογραφίες εσωτερικών === */
/* Κεφαλίδα Υπηρεσιών: φωτογραφία-λωρίδα κάτω από τίτλο/εισαγωγή (μέσα στην πρώτη οθόνη → όχι lazy) */
.page-photo { display: block; margin-top: clamp(2rem, 4.5vw, 3.25rem); }
.page-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 5;
  object-fit: cover; object-position: 50% 30%;
  border-radius: var(--radius); background: var(--mist-soft);
}
.js .page-photo { opacity: 0; animation: page-in .9s var(--ease) .2s forwards; }
@media (max-width: 1020px) { .page-photo img { aspect-ratio: 5 / 2; } }
@media (max-width: 640px) { .page-photo img { aspect-ratio: 3 / 2; object-position: 50% 35%; } }
@media (prefers-reduced-motion: reduce) { .js .page-photo { opacity: 1; animation: none; } }
/* === τέλος φωτογραφιών εσωτερικών === */

/* === Οδηγοί και εργαλεία (odigoi.html) === */
/* Απλή τυπογραφική λίστα: τίτλος + περιγραφή αριστερά, τύπος και ημερομηνία ενημέρωσης δεξιά. Μόνο μεταβλητές :root. */
.guides-head { margin-bottom: 1.25rem; }
.guide-list { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--blue); }
.guide {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem);
  gap: .75rem clamp(1.5rem, 5vw, 4rem); align-items: baseline;
  padding-block: 1.5rem 1.65rem; border-bottom: 1px solid var(--line);
}
.guide-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.25; letter-spacing: -.005em; text-wrap: balance; }
.guide-title a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-decoration-thickness .2s; }
.guide-title a:hover { text-decoration-thickness: 2px; }
.guide-ext { font-family: var(--sans); font-size: .85rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.guide-desc { margin-top: .5rem; max-width: 40rem; color: var(--text); }
.guide-meta { display: grid; gap: .15rem; margin: 0; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.guide-type { font-weight: 700; color: var(--blue); }
@media (max-width: 640px) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: .6rem; padding-block: 1.25rem 1.4rem; }
}
/* === τέλος Οδηγοί και εργαλεία === */
