/*
Theme Name: HCP
Theme URI: https://healthconsultantpharmacy.gr/
Description: Θέμα του Health Consultant Pharmacy. Block theme: όλες οι σελίδες, η κεφαλίδα και το υποσέλιδο επεξεργάζονται από την Εμφάνιση → Επεξεργαστής. Χρειάζεται το plugin HCP Core.
Author: Health Consultant Pharmacy
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: hcp
*/

/* ---------- Βασικά ---------- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
::selection { background: var(--wp--preset--color--mist); color: var(--wp--preset--color--pine); }

a { text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

/* Ορατή εστίαση για πληκτρολόγιο (WCAG 2.2: 2.4.7, 2.4.11). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
	border-radius: 4px;
}
.has-pine-background-color :where(a, button):focus-visible,
.has-primary-background-color :where(a, button):focus-visible { outline-color: var(--wp--preset--color--sage); }

/* Σύνδεσμος «μετάβαση στο περιεχόμενο». */
.skip-link.screen-reader-text:focus { background: var(--wp--preset--color--white); color: var(--wp--preset--color--primary); clip: auto !important; clip-path: none; display: block; font-weight: 600; height: auto; left: 8px; padding: 14px 20px; top: 8px; width: auto; z-index: 100000; border-radius: 8px; }

/* ---------- Κεφαλίδα ---------- */
.hcp-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--wp--preset--color--base) 94%, transparent); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--wp--preset--color--line); }
.admin-bar .hcp-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hcp-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .hcp-header { top: 0; } }
.hcp-topbar { font-size: 0.875rem; }
.hcp-topbar .hcp-contact--inline { font-size: 0.875rem; }
.hcp-topbar .hcp-contact__item .hcp-icon { width: 16px; height: 16px; }
.hcp-header .wp-block-navigation__responsive-container-open { padding: 10px; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; background: var(--wp--preset--color--white); }
.hcp-header .wp-block-navigation__responsive-container-open svg { width: 24px; height: 24px; }
.hcp-header .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; background: var(--wp--preset--color--base); }
.hcp-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 1.25rem; }
.hcp-header .wp-block-navigation .current-menu-item > a,
.hcp-header .wp-block-navigation [aria-current="page"] { color: var(--wp--preset--color--primary); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (max-width: 599px) {
	.hcp-topbar .hcp-contact--inline { display: none; }
	.hcp-topbar .wp-block-group { justify-content: center !important; }
	.hcp-header .hcp-logo img { width: 200px !important; }
	.hcp-hero .wp-block-cover { min-height: 340px !important; }
	.hcp-header-call .hcp-btn span { display: none; }
	.hcp-header-call .hcp-btn { padding: 0 14px; }
}
@media (max-width: 380px) { .hcp-header .hcp-logo img { width: 176px !important; } }

/* ---------- Ενότητες ---------- */
.hcp-eyebrow { font-size: 0.8125rem !important; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin: 0; }
.hcp-section-head { gap: 1rem; }
.hcp-section-head .wp-block-heading { margin: 0; }
.hcp-more a { font-weight: 600; text-decoration: none; }
.hcp-more a:hover { text-decoration: underline; }
.hcp-hero .wp-block-cover { border-radius: var(--wp--custom--radius--large); overflow: hidden; }
.hcp-hero .hcp-status--card { max-width: 300px; }
.hcp-hero .wp-block-cover .wp-block-cover__inner-container { width: 100%; }
.hcp-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.6; color: #3f4a44; }

/* Λίστα άρθρων */
.hcp-journal .wp-block-post-template { gap: 2.5rem 1.5rem; }
.hcp-journal .wp-block-post-featured-image img { border-radius: var(--wp--custom--radius--card); aspect-ratio: 4 / 3; object-fit: cover; }
.hcp-journal .wp-block-post-title a { color: var(--wp--preset--color--primary); }
.hcp-journal .wp-block-post-title a:hover { text-decoration: underline; }
.hcp-noimage { aspect-ratio: 4 / 3; border-radius: var(--wp--custom--radius--card); background: var(--wp--preset--color--mist); }
.wp-block-query-pagination { gap: 0.5rem; font-weight: 600; }
.wp-block-query-pagination-numbers .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border-radius: 999px; }
.wp-block-query-pagination-numbers .current { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }

/* Άρθρο */
.hcp-article .wp-block-post-content > * + h2 { margin-top: 2.2em; }
.hcp-article .wp-block-post-content { font-size: 1.125rem; line-height: 1.75; }
.hcp-article .wp-block-post-featured-image img { border-radius: var(--wp--custom--radius--large); }
.hcp-article-meta { gap: 0.5rem 1.25rem; color: var(--wp--preset--color--muted); }

/* Αναζήτηση */
.wp-block-search__input { border: 1.5px solid #9aa59f; border-radius: 999px !important; padding: 0.75rem 1.1rem !important; font: inherit; }
.wp-block-search__button { margin-left: 0.5rem !important; }

/* Υποσέλιδο */
.hcp-footer a { color: var(--wp--preset--color--mist); }
.hcp-footer a:hover { color: var(--wp--preset--color--white); }
.hcp-footer .hcp-contact__item .hcp-icon { color: var(--wp--preset--color--sage); }
.hcp-footer .hcp-hours__table th, .hcp-footer .hcp-hours__table td { border-color: rgba(221, 230, 222, 0.18); padding: 6px 0; font-size: 0.95rem; }
.hcp-footer .hcp-hours__table tr.is-today th, .hcp-footer .hcp-hours__table tr.is-today td { color: var(--wp--preset--color--white); }
.hcp-footer .hcp-hours__table tr.is-today th::after { color: var(--wp--preset--color--sage); }
.hcp-footer .hcp-hours__closed { color: #e8b9a2; }
.hcp-footer .hcp-hours__duty a { color: var(--wp--preset--color--mist); }
.hcp-footer .hcp-hours__duty, .hcp-footer .hcp-hours__note { color: var(--wp--preset--color--sage); }
.hcp-footer .hcp-hours__changes { background: rgba(221, 230, 222, 0.1); }
.hcp-footer-title { font-size: 0.8125rem !important; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--sage) !important; margin: 0 0 0.75rem; font-family: var(--wp--preset--font-family--body) !important; }
.hcp-footer .wp-block-navigation { gap: 0.5rem; }
.hcp-footer .wp-block-navigation a { color: var(--wp--preset--color--mist); }
.hcp-footer-bottom { border-top: 1px solid rgba(221, 230, 222, 0.18); }
.hcp-footer-bottom, .hcp-footer-bottom a { color: var(--wp--preset--color--sage); font-size: 0.875rem; }

/* Πίνακες στο περιεχόμενο */
.wp-block-table table { border-collapse: collapse; }
.wp-block-table td, .wp-block-table th { border-color: var(--wp--preset--color--line); padding: 0.6em 0.8em; }

/* Λιγότερη κίνηση όταν το ζητά ο χρήστης. */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Εκτύπωση: χωρίς κεφαλίδα/υποσέλιδο, με διεύθυνση και ωράριο στο τέλος. */
@media print {
	.hcp-header, .hcp-footer, .hcp-map, .wp-block-navigation, .hcp-actions, .hcp-form { display: none !important; }
	body { background: #fff; color: #000; }
	a { color: #000; }
}
.wp-site-blocks > * { margin-block-start: 0; }
.hcp-footer .hcp-contact__label { color: var(--wp--preset--color--sage); }
.hcp-footer .hcp-hours__table th { white-space: nowrap; }
