/* --- STUDIO DOMA | 100% EDITORIAL MASTER SHEET --- */

:root {
    --primary: #111111;       /* Deep Charcoal, not black */
    --secondary: #6e6e6e;     /* Stone Grey */
    --bg-color: #fcfcfc;      /* Vapor White */
    --line-color: #e5e5e5;
    --accent: #d4d4d4;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    --container-width: 1520px; /* Wider for editorial look */
    --transition-slow: all 0.9s cubic-bezier(0.19, 1, 0.22, 1); /* "Luxury" easing */
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { 
    scroll-behavior: auto; 
    -webkit-font-smoothing: antialiased; 
    cursor: none; /* Κρύβουμε τον default κέρσορα για να φαίνεται μόνο ο Custom */
}
body {
    background-color: var(--bg-color);
    color: var(--primary);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- EDITORIAL TYPOGRAPHY --- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; color: var(--primary); }

h1 { font-size: 6vw; letter-spacing: -0.03em; line-height: 1; }
h2 { font-size: 3.5vw; letter-spacing: -0.02em; line-height: 1.1; }
h3 { font-size: 24px; letter-spacing: -0.01em; }

/* The "Italic" Emphasis (Signature Look) */
em, .italic { font-style: italic; font-weight: 400; padding-right: 5px; }

.label {
    font-family: var(--font-sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.25em; /* Extreme spacing for luxury */
    color: var(--secondary);
    display: block;
    margin-bottom: 15px;
}

/* --- UI ELEMENTS --- */
/* Custom Liquid Cursor */
.custom-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 12px; height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, opacity 0.3s;
    mix-blend-mode: difference; /* Αντιστρέφει το χρώμα (λευκό σε μαύρο φόντο) */
}
.custom-cursor.active { width: 60px; height: 60px; background-color: #fff; opacity: 0.2; }

/* Preloader */
.preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #fff; z-index: 10000;
    display: flex; justify-content: center; align-items: center;
}
.loader-text { font-family: var(--font-serif); font-style: italic; font-size: 24px; }

/* --- LAYOUT --- */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 4vw; }
.section-padding { padding: 180px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }

/* Header - Mix Blend Mode (Critical for Visibility over Images) */
.main-header {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 40px 0; z-index: 100; mix-blend-mode: difference;
    color: #fff; 
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: baseline; }
.logo a { font-family: var(--font-serif); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; color: #fff; }
.nav-links { display: flex; gap: 50px; }
.nav-link { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; position: relative; color: #fff; text-decoration: none;}

/* Hero */
.hero { height: 100vh; width: 100%; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.9); }
.hero-content { text-align: center; color: #fff; z-index: 2; mix-blend-mode: overlay; }

/* Process / Tiers Section (Refined) */
.process-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
    border-top: 1px solid var(--line-color); padding-top: 40px; margin-top: 40px;
}
.process-step { padding-right: 20px; }
.step-number { font-family: var(--font-serif); font-size: 14px; font-style: italic; color: var(--secondary); margin-bottom: 20px; display: block; }
.process-step h4 { font-size: 18px; margin-bottom: 15px; }
.process-step p { font-size: 13px; color: var(--secondary); line-height: 1.8; }

/* Projects Grid (The Art Gallery Look) */
.project-card { display: block; position: relative; overflow: hidden; margin-bottom: 60px; text-decoration: none; color: inherit; }
.project-img { overflow: hidden; background: var(--bg-color); }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.project-card:hover .project-img img { transform: scale(1.05); }
.project-meta { margin-top: 20px; display: flex; justify-content: space-between; align-items: baseline; }
.project-meta h3 { font-size: 24px; }

/* Filters (Projects Page) */
.filter-wrapper { margin-top: 40px; }
.filter-list a { text-decoration: none; transition: color 0.3s ease; }
.filter-list a:hover { color: var(--primary) !important; }

/* Contact Form */
.luxury-form input::placeholder, .luxury-form textarea::placeholder { color: #ccc; }
.luxury-form input:focus, .luxury-form textarea:focus, .luxury-form select:focus { border-bottom: 1px solid var(--primary); }

/* Footer */
.main-footer { padding: 100px 0 40px; border-top: 1px solid var(--line-color); }
.footer-bottom { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.1em; color: var(--secondary); text-transform: uppercase; }
.footer-bottom a { text-decoration: none; color: inherit; }

/* Mobile Responsiveness */
@media (max-width: 992px) {
    h1 { font-size: 12vw; } h2 { font-size: 8vw; }
    .grid-2, .process-grid { grid-template-columns: 1fr; gap: 40px; }
    .col-right { margin-top: 0 !important; } /* Reset waterfall on mobile */
    .section-padding { padding: 100px 0; }
    .nav-links { display: none; } /* Mobile Menu implementation needed later */
    .container { padding: 0 20px; }
}

/* --- MOBILE OPTIMIZATION (Responsive) --- */

/* 1. Mobile Menu Overlay (Hidden by default) */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background-color: var(--primary);
    z-index: 900; /* Πίσω από το Header αλλά μπροστά από όλα τα άλλα */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-links {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-links a {
    font-family: var(--font-serif);
    font-size: 32px;
    color: #fff;
    text-decoration: none;
    font-style: italic;
}

/* 2. Hamburger Icon */
.menu-toggle {
    display: none; /* Κρυφό σε Desktop */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 1px;
    background-color: #fff; /* Λευκό λόγω του mix-blend-mode του header */
    transition: all 0.3s ease;
}

/* 3. Mobile Layout Adjustments */
@media (max-width: 992px) {
    /* Hide Custom Cursor on Touch */
    .custom-cursor { display: none !important; }
    html { cursor: auto; } /* Επαναφορά κανονικού scroll */

    /* Typography fixes */
    h1 { font-size: 14vw; line-height: 1.1; }
    h2 { font-size: 10vw; }
    
    /* Layout Stacking */
    .container { padding: 0 20px; }
    .section-padding { padding: 80px 0; }
    
    .grid-2, .process-grid, .asymmetric-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Reset Offsets (Waterfall effect) */
    .col-right { margin-top: 0 !important; }
    .project-card { margin-bottom: 40px; }
    
    /* Navigation */
    .nav-links { display: none; } /* Κρύβουμε το desktop menu */
    .menu-toggle { display: flex; } /* Εμφανίζουμε το hamburger */
    
    /* Form */
    .luxury-form input, .luxury-form select, .luxury-form textarea {
        font-size: 14px; /* Αποφυγή zoom στο iPhone */
    }
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Καλύπτει όλη την οθόνη χωρίς παραμόρφωση */
    position: absolute;
    top: 0;
    left: 0;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0, 0.2); /* 20% σκοτάδι για να "σκάει" το λευκό κείμενο */
    z-index: 1;
}

/* --- ACCESSIBILITY --- */
.skip-link {
    position: absolute;
    top: -100px; left: 0;
    background: var(--primary); color: #fff;
    padding: 12px 20px; font-size: 11px;
    letter-spacing: 0.2em; text-transform: uppercase;
    z-index: 10001; text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* menu-toggle as button */
button.menu-toggle { background: none; border: none; padding: 0; }

/* Active nav indicator */
.nav-link.is-current { color: #fff; }
.nav-link.is-current::after {
    content: ''; display: block; height: 1px;
    background: currentColor; margin-top: 4px;
    transform: scaleX(1); transform-origin: left;
}

/* Touch device: hide custom cursor + restore default */
@media (hover: none), (pointer: coarse) {
    .custom-cursor { display: none !important; }
    html { cursor: auto !important; }
}

/* Reduced motion: respect user preference */
@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;
    }
    .custom-cursor { display: none !important; }
    html { cursor: auto !important; }
}

/* --- BREADCRUMBS --- */
.breadcrumbs {
    font-size: 10px; letter-spacing: 0.25em;
    text-transform: uppercase; color: var(--secondary);
    margin-bottom: 30px;
}
.breadcrumbs a { color: var(--secondary); text-decoration: none; transition: color 0.3s; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span[aria-current] { color: var(--primary); }
.breadcrumbs .sep { margin: 0 10px; opacity: 0.5; }

/* --- PROJECT PREV/NEXT (replaces "Next Narrative") --- */
.project-nav {
    display: flex; justify-content: space-between; gap: 40px;
    border-top: 1px solid var(--line-color);
    padding-top: 80px; margin-top: 0;
}
.project-nav .nav-item { flex: 1; }
.project-nav .nav-item.next { text-align: right; }
.project-nav .label { margin-bottom: 10px; }
.project-nav .title {
    font-family: var(--font-serif); font-size: 2.5vw;
    text-decoration: none; color: var(--primary);
    transition: opacity 0.3s;
}
.project-nav .title:hover { opacity: 0.6; }

@media (max-width: 992px) {
    .project-nav { flex-direction: column; gap: 40px; padding-top: 50px; }
    .project-nav .nav-item.next { text-align: left; }
    .project-nav .title { font-size: 8vw; }
}

/* --- COOKIE CONSENT --- */
.cookie-banner {
    position: fixed; bottom: 20px; left: 20px; right: 20px;
    max-width: 480px; margin: 0 auto;
    background: var(--primary); color: #fff;
    padding: 24px 28px; z-index: 9000;
    font-size: 12px; line-height: 1.7;
    transform: translateY(150%); opacity: 0;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.6s;
}
.cookie-banner.visible { transform: translateY(0); opacity: 1; }
.cookie-banner p { margin: 0 0 14px; }
.cookie-banner a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner .cookie-actions { display: flex; gap: 20px; }
.cookie-banner button {
    background: none; border: 1px solid rgba(255,255,255,0.4);
    color: #fff; padding: 10px 20px;
    font-family: var(--font-sans); font-size: 10px;
    letter-spacing: 0.2em; text-transform: uppercase;
    cursor: pointer; transition: background 0.3s, border-color 0.3s;
}
.cookie-banner button:hover { background: #fff; color: var(--primary); border-color: #fff; }
.cookie-banner button.primary { background: #fff; color: var(--primary); }
.cookie-banner button.primary:hover { background: transparent; color: #fff; border-color: #fff; }

@media (max-width: 600px) {
    .cookie-banner { bottom: 0; left: 0; right: 0; max-width: none; }
}

/* --- 404 PAGE --- */
.error-page {
    min-height: 80vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 100px 4vw;
}
.error-page .code {
    font-family: var(--font-serif); font-style: italic;
    font-size: 18vw; line-height: 1; color: var(--accent);
    margin-bottom: 20px;
}
.error-page h1 { font-size: 4vw; margin-bottom: 20px; }
.error-page p { color: var(--secondary); max-width: 480px; margin: 0 auto 40px; }

@media (max-width: 992px) {
    .error-page h1 { font-size: 10vw; }
    .error-page .code { font-size: 40vw; }
}

/* --- PRIVACY / LEGAL PAGES --- */
.legal-content { max-width: 720px; }
.legal-content h2 { font-size: 28px; margin-top: 60px; margin-bottom: 20px; }
.legal-content h3 { font-size: 18px; margin-top: 40px; margin-bottom: 15px; }
.legal-content p, .legal-content li { font-size: 14px; color: var(--secondary); line-height: 1.9; margin-bottom: 15px; }
.legal-content ul { padding-left: 20px; list-style: disc; }
.legal-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* --- FILTER STATES --- */
.filter-list { display: flex; gap: 30px; margin-top: 15px; list-style: none; padding: 0; }
.filter-list button {
    background: none; border: none; padding: 0;
    font-family: var(--font-sans); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.2em;
    color: var(--secondary); cursor: pointer;
    transition: color 0.3s;
}
.filter-list button:hover, .filter-list button[aria-pressed="true"] { color: var(--primary); }

/* --- PRELOADER NOSCRIPT FALLBACK --- */
.no-js .preloader { display: none !important; }

/* --- FOOTER POLISH --- */
.footer-legal {
    margin-top: 30px; padding-top: 30px;
    border-top: 1px solid var(--line-color);
    font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--secondary);
    display: flex; gap: 30px; flex-wrap: wrap;
}
.footer-legal a { color: inherit; text-decoration: none; transition: color 0.3s; }
.footer-legal a:hover { color: var(--primary); }