/* ============================================================
   Psixotherapia.gr — Stylesheet (redesign 2026)
   Palette: plum / orchid / sage / paper
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Literata:opsz,wght@7..72,500;7..72,600&display=swap');

:root {
    --plum: #5B4B68;          /* headings, header text, footer bg */
    --plum-dark: #453853;
    --orchid: #B07BAC;        /* brand accent (links, buttons) */
    --orchid-dark: #966092;
    --sage: #7FA087;          /* secondary accent (leaf, checks) */
    --blush: #F5EEF4;         /* soft tinted surfaces */
    --paper: #FBFAF8;         /* page background */
    --white: #ffffff;
    --ink: #3A3440;           /* body text */
    --ink-soft: #5f5768;
    --border: #E8E2EA;
    --shadow: 0 2px 12px rgba(91, 75, 104, 0.10);
    --shadow-lift: 0 10px 28px rgba(91, 75, 104, 0.16);
    --radius: 12px;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-display: 'Literata', Georgia, serif;
    --header-height: 78px;

    /* Legacy variable names kept for safety */
    --primary-color: #B07BAC;
    --secondary-color: #FBFAF8;
    --text-color: #3A3440;
    --text-light: #5f5768;
    --heading-color: #453853;
    --border-color: #E8E2EA;
    --white-color: #ffffff;
    --shadow-color: rgba(91, 75, 104, 0.12);
    --hover-color: #966092;
    --font-family: 'Inter', system-ui, sans-serif;
    --input-border-color: #d8cfdb;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    line-height: 1.75;
    color: var(--ink);
    background-color: var(--paper);
    font-weight: 400;
    padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--orchid-dark); }

:focus-visible {
    outline: 3px solid var(--orchid);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    html { scroll-behavior: auto; }
}

/* ---------- Header ---------- */
header {
    background-color: rgba(251, 250, 248, 0.96);
    backdrop-filter: blur(8px);
    padding: 0 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(91, 75, 104, 0.05);
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

/* Logo lockup */
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--plum);
    flex-shrink: 0;
}
.logo-mark {
    width: 44px;
    height: 44px;
    display: block;
}
.logo-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    color: var(--plum);
    white-space: nowrap;
}
.logo-text em {
    font-style: normal;
    color: var(--sage);
}

/* Old <img> logo fallback (if still used anywhere) */
.logo-image { height: 48px; width: auto; border-radius: 10px; }

/* ---------- Navigation ---------- */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.9rem;
    cursor: pointer;
    color: var(--plum);
    padding: 4px 10px;
    line-height: 1;
    border-radius: 8px;
}

.nav-links > ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links > ul > li { position: relative; margin-left: 6px; }

.nav-links ul li a {
    text-decoration: none;
    color: var(--plum);
    padding: 9px 14px;
    display: block;
    font-weight: 500;
    font-size: 0.86rem;
    letter-spacing: 0.05em;
    border-radius: 8px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-links > ul > li > a:hover,
.nav-links > ul > li > a:focus {
    color: var(--plum-dark);
    background-color: var(--blush);
}

/* Dropdown (simple, e.g. Services) */
.nav-links ul li ul {
    display: block;
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-lift);
    z-index: 10;
    min-width: 260px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}
.nav-links ul li:hover > ul,
.nav-links ul li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-links ul li ul li { margin: 0; }
.nav-links ul li ul li a {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--ink);
    padding: 9px 12px;
}
.nav-links ul li ul li a:hover,
.nav-links ul li ul li a:focus {
    background-color: var(--blush);
    color: var(--plum-dark);
}

/* Mega menu (Articles) */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 8px);
    display: flex;
    gap: 32px;
    background-color: var(--white);
    box-shadow: var(--shadow-lift);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 28px;
    min-width: 560px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 10;
}
.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.mega-menu-column { flex: 1; min-width: 230px; }
.mega-menu-column h4 {
    font-family: var(--font-display);
    color: var(--plum);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 14px 0 4px;
    padding: 0 12px;
}
.mega-menu-column h4:first-child { margin-top: 0; }
.mega-menu-column ul {
    position: static;
    display: block;
    list-style: none;
    box-shadow: none;
    border: none;
    padding: 0;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
}
.mega-menu-column ul li { margin: 0; }
.mega-menu-column ul li a {
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--ink);
    padding: 6px 12px;
    border-radius: 6px;
}
.mega-menu-column ul li a:hover,
.mega-menu-column ul li a:focus {
    background-color: var(--blush);
    color: var(--plum-dark);
}

/* ---------- Main layout ---------- */
main {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--plum);
    line-height: 1.3;
    font-weight: 600;
}

main h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin-bottom: 0.6em;
}

main h2 {
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    margin-top: 2.4em;
    margin-bottom: 0.6em;
}
main h2:first-of-type { margin-top: 0; }

main h3 { font-size: 1.15rem; margin-bottom: 0.4em; }

p, li {
    color: var(--ink-soft);
    margin-bottom: 1em;
    font-weight: 400;
}

section { margin-bottom: 2.5rem; }

/* Lists inside content: leaf-check bullets */
ul { list-style-type: disc; margin-left: 25px; padding-left: 15px; }

section:not(#contact-form-section) ul {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}
section:not(#contact-form-section) ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}
section:not(#contact-form-section) ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    background-color: var(--sage);
    border-radius: 50%;
}

/* Homepage hero */
.home-hero {
    background: linear-gradient(135deg, var(--blush) 0%, #EFF3EE 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 3rem;
}
.home-hero h1 { margin-bottom: 0.4em; }
.home-hero .hero-lead {
    max-width: 560px;
    margin: 0 auto 1.6em;
    font-size: 1.05rem;
}
.hero-cta {
    display: inline-block;
    background-color: var(--orchid-dark);
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 13px 32px;
    border-radius: 999px;
    transition: background-color 0.25s ease, transform 0.25s ease;
}
.hero-cta:hover, .hero-cta:focus {
    background-color: var(--plum);
    transform: translateY(-1px);
}

/* Generic hero (ypiresies etc.) */
.hero-section {
    text-align: center;
    background: linear-gradient(135deg, var(--blush) 0%, #EFF3EE 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 2.5rem;
}
.hero-subtitle {
    font-size: 1.05rem;
    color: var(--ink-soft);
    margin-bottom: 0;
}

.center-image {
    display: block;
    margin: 0 auto 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ---------- Cards: articles / books / services ---------- */
.category-section { margin-bottom: 3rem; }

.category-title {
    padding-bottom: 8px;
    border-bottom: 2px solid var(--orchid);
    display: inline-block;
}

.articles-grid,
.books-grid,
.features-grid,
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 1.2rem;
}

.article-card,
.feature-item,
.testimonial-item,
.service-item,
.expertise-item {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.article-card:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-3px);
}
.article-card h3 { color: var(--plum); }
.article-card p { font-size: 0.92rem; }
.article-card a {
    color: var(--orchid-dark);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.92rem;
}
.article-card a:hover, .article-card a:focus { text-decoration: underline; }

.service-item, .expertise-item { margin-bottom: 18px; }

/* Books */
.book-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.book-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.book-image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}
.book-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.book-content p { font-size: 0.92rem; flex: 1; }
.book-content a {
    align-self: flex-start;
    background-color: var(--orchid-dark);
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 9px 22px;
    border-radius: 999px;
    transition: background-color 0.25s ease;
}
.book-content a:hover, .book-content a:focus { background-color: var(--plum); }

/* Purchase / offers */
.purchase-section, .special-offer, .team-intro-section, .online-expertise-section, .testimonials-section {
    background-color: var(--blush);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.purchase-info { margin-bottom: 1rem; }
.purchase-benefits ul { margin-top: 0.5rem; }

/* ---------- Contact form ---------- */
#contact-form-section {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    margin-top: 3rem;
}
#contact-form-section h2 { margin-top: 0; }

.form-group { margin-bottom: 1.1rem; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--plum);
    font-weight: 500;
    font-size: 0.92rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--input-border-color);
    border-radius: 10px;
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orchid);
    box-shadow: 0 0 0 3px rgba(176, 123, 172, 0.2);
}

.form-group button[type="submit"] {
    background-color: var(--orchid-dark);
    color: var(--white);
    border: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    padding: 13px 38px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}
.form-group button[type="submit"]:hover,
.form-group button[type="submit"]:focus {
    background-color: var(--plum);
    transform: translateY(-1px);
}

.text-center { text-align: center; }

/* Honeypot: hidden from humans */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* ---------- Footer ---------- */
footer {
    background-color: var(--plum-dark);
    color: #E9E3EC;
    padding: 44px 0 0;
    font-size: 0.92rem;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 24px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-left, .footer-center, .footer-right { flex: 1; min-width: 200px; }

.footer-logo-link { color: #E9E3EC; margin-bottom: 8px; }
.footer-logo-link .logo-text { color: #E9E3EC; font-size: 1.15rem; }
.footer-logo-link .logo-mark { width: 36px; height: 36px; }
.footer-tagline { color: #BFB3C7; font-size: 0.88rem; margin: 10px 0 0; }
.footer-logo { max-height: 56px; width: auto; }

.footer-nav ul {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.footer-nav ul li { margin: 0; }
.footer-nav ul li a,
.footer-right a {
    color: #E9E3EC;
    text-decoration: none;
    transition: color 0.25s ease;
}
.footer-nav ul li a:hover,
.footer-right a:hover { color: var(--white); text-decoration: underline; }

.footer-right p { color: #E9E3EC; margin-bottom: 6px; font-weight: 500; }
.social-icons { margin-top: 10px; }
.social-icons a { font-weight: 500; }

.footer-bottom {
    border-top: 1px solid rgba(233, 227, 236, 0.15);
    text-align: center;
    padding: 16px 24px;
}
.footer-bottom p { color: #BFB3C7; margin-bottom: 4px; font-size: 0.82rem; }
.footer-bottom a { color: #E9E3EC; font-size: 0.82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    header { padding: 0 1rem; }

    .hamburger-menu { display: block; }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        background-color: var(--paper);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lift);
        padding: 12px 16px 24px;
    }
    .nav-links.active { display: block; }

    .nav-links > ul {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-links > ul > li { margin: 0; }
    .nav-links > ul > li > a {
        padding: 14px 10px;
        font-size: 1rem;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }

    /* Submenus: shown inline, simplified */
    .nav-links ul li ul,
    .mega-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        min-width: 0;
        padding: 0 0 0 14px;
        background: transparent;
    }
    .nav-links ul li:hover > ul,
    .has-mega:hover .mega-menu,
    .nav-links ul li:focus-within > ul,
    .has-mega:focus-within .mega-menu {
        display: block;
        transform: none;
    }
    .mega-menu { gap: 0; }
    .mega-menu-column h4 { padding: 10px 10px 0; }

    main { padding: 2rem 1.1rem 3rem; }

    .footer-content { flex-direction: column; }
}

@media (max-width: 480px) {
    .logo-text { font-size: 1.1rem; }
    .logo-mark { width: 36px; height: 36px; }
    .articles-grid, .books-grid, .features-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .nav-links li.submenu-open > ul,
    .has-mega.submenu-open .mega-menu {
        display: block;
    }
}

/* Μηνύματα φόρμας (Web3Forms) */
.form-note { max-width: 640px; margin: 1rem auto 0; padding: 14px 18px; border-radius: 12px; font-weight: 500; text-align: center; }
.form-note--ok { background: #eef6f0; color: #3f6b4e; border: 1px solid #b9d6c2; }
.form-note--err { background: #fbeeee; color: #a04040; border: 1px solid #e3b9b9; }

/* SEO: κενό κάτω από το H1 όταν ακολουθεί H2 */
main h1 + h2 { margin-top: 1.2em; }

/* Μήνυμα επιτυχίας αποστολής φόρμας (πάνω από τη φόρμα, πράσινα γράμματα) */
.form-success { color: #1e8e3e; font-weight: 700; font-size: 1.15rem; text-align: center; margin: 0 0 20px; padding: 14px 18px; background: #eaf7ee; border: 1px solid #b5e2c3; border-radius: 12px; }
