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

/* ==========================================================================
   DESIGN TOKENS
   Χρησιμοποιούμε μεταβλητές αντί για hardcoded χρώματα, ώστε μια αλλαγή
   εδώ να ενημερώνει αυτόματα ΟΛΟ το site.
   ========================================================================== */
:root {
    --primary-color: #1a1a1a;
    --accent-color: #c5a059;   /* Prestige Gold */
    --legal-gold: #c5a059;     /* alias, χρησιμοποιείται στα άρθρα */
    --legal-navy: #1a1a1a;     /* alias, χρησιμοποιείται στα άρθρα */
    --text-main: #333;
    --text-muted: #888;
    --bg-light: #f9f9f9;
    --font-sans: 'Montserrat', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-main);
    background-color: #fff;
}

/* Αυξημένη απόσταση μεταξύ γραμμών για ξεκούραστο διάβασμα σε παραγράφους.
   ΣΗΜΕΙΩΣΗ: αφαιρέθηκε το "color: #c5a059" που υπήρχε εδώ πριν -
   έκανε ΟΛΑ τα <p> της σελίδας χρυσά (hero, κάρτες, βιογραφικά κ.λπ.),
   κάτι που δεν φαίνεται να ήταν ποτέ η πρόθεση. Το χρώμα gold μπαίνει
   πλέον μόνο στοχευμένα, στις κλάσεις που πραγματικά το θέλουν
   (.philosophy-text, .associate-card p, .gold-text κ.λπ.) */
p {
    line-height: 1.8;
    letter-spacing: 0.2px;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    border-bottom: 1px solid #eee;
}

.logo h1 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.logo span {
    font-size: 0.8rem;
    letter-spacing: 4px;
    display: block;
    color: var(--text-muted);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--accent-color);
}

nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width .3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.active-link {
    color: var(--accent-color) !important; /* πρέπει να νικήσει το χρώμα hover/inherit ό,τι κι αν γίνει - ok εδώ */
}

/* Sticky header + glassmorphism */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* HAMBURGER */
.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    user-select: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('./images/acropolis1.jpg');
    min-height: 70vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 150px;
    width: 80vw;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.slide {
    position: absolute;
    font-family: var(--font-serif);
    font-size: 2.2rem;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    width: 100%;
}

.slide.active {
    opacity: 1;
}

.hero-content h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.btn:hover {
    background: #fff;
    color: #000;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 20px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(197, 160, 89, 0.8);
}

.prev { left: 20px; }
.next { right: 20px; }

/* Services */
.services {
    padding: 80px 5%;
    background: var(--bg-light);
}

.services h3 {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 50px;
}

/* Γενικό wrapper πλάτους, χρησιμοποιείται π.χ. στη σελίδα Συνεργάτες
   (associates.html -> <div class="container">). Πριν δεν υπήρχε καθόλου
   ορισμός γι' αυτή την κλάση, οπότε το grid απλωνόταν σε όλο το πλάτος
   της οθόνης χωρίς κανένα όριο. */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 40px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border-top: 3px solid transparent;
    transition: all 0.4s ease;
}

.card:hover {
    border-top: 3px solid var(--accent-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transform: translateY(-10px);
}

.card h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    background: var(--primary-color);
    color: var(--text-muted);
    font-size: 0.8rem;
    position: relative;
    width: 100%;
    min-height: 60px;
    padding: 20px 0;
}

/* Στυλ για τη σελίδα Προφίλ / εσωτερικές σελίδες */
.page-header {
    background-color: #696969;
    padding: 60px 0;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-family: var(--font-serif);
    letter-spacing: 3px;
    font-size: 2.5rem;
}

.page-header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

.container-narrow {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 20px;
    line-height: 1.8;
}

.gold-text {
    color: var(--accent-color);
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.philosophy-text {
    font-size: 1.15rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    text-align: justify;
}

.divider {
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    margin: 40px auto;
}

/* Χρυσή πινελιά στους τίτλους */
h2, h3 {
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

/* Services Accordion */
.services-list {
    padding: 60px 0;
    background-color: #fff;
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
}

.accordion-header {
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.accordion-header:hover,
.accordion-header.active {
    color: var(--accent-color);
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
}

.accordion-header.active::after {
    content: '-';
}

/* Το πραγματικό ύψος ανοίγματος μπαίνει inline από το JS (scrollHeight),
   εδώ ορίζουμε μόνο την κλειστή αρχική κατάσταση + το padding. */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

/* Ασφάλεια: αν κάποιο εσωτερικό στοιχείο μέσα στις κάρτες υπηρεσιών έχει
   πάρει κατά λάθος περιορισμένο ύψος, το ξεκλειδώνουμε εδώ γενικά -
   ΟΧΙ μόνο σε mobile όπως ήταν πριν (ήταν κλειδωμένο μέσα σε media query
   και δεν ίσχυε καθόλου σε desktop). */
.services .card,
.services .card p,
.services .card-content,
.services .grid div {
    height: auto !important;
    max-height: none !important;
    min-height: min-content !important;
    overflow: visible !important;
}

/* Associates Grid */
.associates-grid {
    padding: 80px 5%;
}

.associate-card {
    text-align: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border-top: 3px solid transparent;
    transition: all 0.4s ease;
}

.associate-card:hover {
    border-top: 3px solid var(--accent-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transform: translateY(-10px);
}

.photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.associate-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.associate-card p {
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background-color: #fff;
    margin: 20px auto;
    padding: 20px;
    width: min(90vw, 600px);
    position: relative;
    font-family: var(--font-sans);
    max-height: 85vh;
    overflow-y: auto;
    box-sizing: border-box;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-muted);
    z-index: 2000;
    padding: 12px;
    line-height: 1;
}

.close:hover { color: #000; }

#bio-text h2 {
    font-family: var(--font-serif);
    margin-bottom: 20px;
    color: var(--accent-color);
}

/* Contact Page Styling */
.contact-grid {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('./images/grafeio1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    align-items: center;
    justify-content: center;
    text-align: left;
    color: white;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    padding: 80px 5%;
}

.contact-info .info-item {
    margin-bottom: 30px;
}

.contact-info strong {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: white;
    display: block;
    margin-bottom: 5px;
}

.contact-info a {
    text-decoration: none;
    color: white;
    font-weight: 600;
}

.qr-container {
    margin-top: 40px;
    padding: 20px;
    background: var(--bg-light);
    text-align: center;
    border: 1px dashed var(--accent-color);
    width: fit-content;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 0;
    color: #999;
    font-size: 0.8rem;
}

.map-container {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    min-height: 400px;
}

/* Εφέ Εμφάνισης (Fade-in on Scroll) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Article Styling (χρησιμοποιεί τα --legal-gold / --legal-navy aliases) */
.container-article {
    max-width: 750px;
    margin: 60px auto;
    padding: 0 20px;
}

.post-meta {
    margin-bottom: 20px;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.post-meta .category {
    color: var(--legal-gold);
    font-weight: 600;
    margin-right: 15px;
}

.post-meta .date {
    color: var(--text-muted);
}

.post-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--legal-navy);
    margin-bottom: 40px;
}

.post-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-align: justify;
}

.post-content .intro {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.post-content h2 {
    font-family: var(--font-serif);
    margin: 40px 0 20px;
    color: var(--legal-navy);
}

blockquote {
    border-left: 3px solid var(--legal-gold);
    padding-left: 30px;
    margin: 40px 0;
    font-style: italic;
    font-size: 1.4rem;
    color: #555;
}

.post-footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.back-link {
    text-decoration: none;
    color: var(--legal-navy);
    font-weight: 600;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--legal-gold);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   Τα δύο ξεχωριστά @media (max-width: 768px) blocks που υπήρχαν πριν
   ενώθηκαν σε ένα, ώστε να μην υπάρχει ρίσκο κάποιο κομμάτι να μείνει
   κατά λάθος έξω/μέσα σε λάθος block (όπως συνέβαινε πριν με το
   "FORCE UNLOCK ACCORDION", που είχε καταλήξει να ισχύει ΜΟΝΟ σε mobile).
   ========================================================================== */
@media (max-width: 768px) {

    /* -- Menu / Nav -- */
    nav {
        position: relative;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }

    .logo {
        text-align: left;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .logo span {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    .menu-toggle {
        display: block;
    }

    #menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        border-top: 1px solid #eee;
        box-shadow: 0 5px 20px rgba(0,0,0,.1);
        z-index: 999;
    }

    #menu.active {
        display: flex;
    }

    #menu li {
        margin: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    #menu li a {
        display: block;
        padding: 16px;
        font-size: 14px;
    }

    header nav ul li a {
        font-size: 0.95rem;
        font-weight: bold;
        padding: 5px 0;
    }

    body {
        overflow-x: hidden;
    }

    /* -- Contact page -- */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* -- Hero / slider -- */
    .nav-btn {
        padding: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .hero {
        margin-top: 20px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .slider-container {
        margin-bottom: 40px;
        min-height: 180px;
    }

    .slide {
        line-height: 1.6;
        font-size: 1.3rem;
    }

    .hero-content .btn {
        position: relative;
        display: inline-block;
        margin-top: 10px;
    }
}
