/* ====== R2ART SHARED STYLESHEET ======
   Editorial atelier aesthetic — mobile-first
   ====================================== */

/* ====== TOKENS ====== */
:root {
  --bone: #F5F1E8;
  --bone-2: #EDE6D6;
  --ink: #1A1817;
  --ink-2: #4A453F;
  --ink-3: #8A857D;
  --sanguine: #B8472C;
  --sanguine-dark: #8E3520;
  --forest: #2D4A3E;
  --line: rgba(26, 24, 23, 0.12);
  --line-strong: rgba(26, 24, 23, 0.22);
  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-body: 'Manrope', system-ui, sans-serif;
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.display { font-family: var(--f-display); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; }
.eyebrow { font-family: var(--f-body); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sanguine); }

/* ====== TOPBAR + HEADER + DRAWER (shared across all pages) ====== */
.topbar { background: var(--ink); color: var(--bone); font-size: 0.75rem; letter-spacing: 0.08em; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem var(--gutter); max-width: var(--container); margin: 0 auto; gap: 1rem; }
.topbar a { opacity: 0.85; transition: opacity 0.2s; }
.topbar a:hover { opacity: 1; }
.topbar-left, .topbar-right { display: flex; gap: 1.25rem; align-items: center; }
.lang-switch button { font-size: 0.7rem; letter-spacing: 0.12em; padding: 0.2rem 0.4rem; opacity: 0.5; }
.lang-switch button.active { opacity: 1; border-bottom: 1px solid var(--sanguine); }
.hide-mobile { display: none; }
@media (min-width: 640px) { .hide-mobile { display: inline; } }

.header { position: sticky; top: 0; z-index: 100; background: rgba(245, 241, 232, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter); max-width: var(--container); margin: 0 auto; }
.logo { display: inline-flex; flex-direction: column; gap: 0.35rem; line-height: 1; }
.logo img { height: 32px; width: auto; display: block; }
@media (min-width: 1024px) { .logo img { height: 38px; } }
.logo small { display: block; font-family: var(--f-body); font-size: 0.58rem; font-weight: 500; letter-spacing: 0.22em; color: var(--ink-3); text-transform: uppercase; }
/* Footer: all-white logo treatment (διατηρεί διαφάνεια, ουδετεροποιεί χρώματα) */
.footer .logo img { filter: brightness(0) invert(1); opacity: 0.95; }
.footer .logo small { color: rgba(245, 241, 232, 0.5); }

.nav-desktop { display: none; }
@media (min-width: 1024px) {
  .nav-desktop { display: flex; gap: 2.25rem; align-items: center; }
  .nav-desktop a { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; position: relative; padding: 0.3rem 0; }
  .nav-desktop a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--sanguine); transition: width 0.3s ease; }
  .nav-desktop a:hover::after, .nav-desktop a.active::after { width: 100%; }
}
.menu-toggle { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.menu-toggle svg { width: 24px; height: 24px; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.drawer { position: fixed; inset: 0; background: var(--bone); z-index: 200; padding: var(--gutter); transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; }
.drawer nav { display: flex; flex-direction: column; gap: 1.5rem; }
.drawer nav a { font-family: var(--f-display); font-size: 2rem; font-weight: 500; position: relative; padding-left: 2rem; }
.drawer nav a::before { content: ''; position: absolute; left: 0; top: 50%; width: 1rem; height: 1px; background: var(--sanguine); transform: translateY(-50%); }
.drawer-foot { margin-top: auto; padding-top: 2rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-2); }

/* ====== BUTTONS ====== */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.95rem 1.75rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; transition: all 0.25s ease; border: 1px solid; }
.btn-primary { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn-primary:hover { background: var(--sanguine); border-color: var(--sanguine); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 14px; height: 14px; transition: transform 0.25s; }
.btn:hover svg { transform: translateX(3px); }

/* ====== PAGE HEADER (for inner pages) ====== */
.page-header { padding: 4rem var(--gutter) 3rem; max-width: var(--container); margin: 0 auto; }
@media (min-width: 900px) { .page-header { padding: 6rem var(--gutter) 4rem; } }
.page-header .eyebrow { margin-bottom: 1.5rem; display: block; }
.page-header h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-family: var(--f-display); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 1.5rem; }
.page-header h1 em { color: var(--sanguine); font-style: italic; font-weight: 400; }
.page-header .lead { font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: var(--ink-2); max-width: 60ch; line-height: 1.6; font-weight: 300; }
.breadcrumb { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2rem; }
.breadcrumb a:hover { color: var(--sanguine); }
.breadcrumb .sep { margin: 0 0.6rem; color: var(--line-strong); }

/* ====== PROSE (article content) ====== */
.prose { max-width: 72ch; margin: 0 auto; padding: 2rem var(--gutter) 5rem; font-size: 1.0625rem; line-height: 1.8; color: var(--ink-2); }
@media (min-width: 900px) { .prose { padding: 3rem var(--gutter) 7rem; font-size: 1.125rem; } }
.prose p { margin-bottom: 1.5rem; }
.prose p:first-child::first-letter { font-family: var(--f-display); font-size: 4em; line-height: 0.9; float: left; margin: 0.08em 0.12em 0 0; color: var(--sanguine); font-weight: 500; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose h2 { font-family: var(--f-display); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 500; color: var(--ink); margin: 3rem 0 1.25rem; line-height: 1.15; letter-spacing: -0.01em; }
.prose h2 em { color: var(--sanguine); font-style: italic; }
.prose blockquote { border-left: 3px solid var(--sanguine); padding-left: 1.5rem; margin: 2.5rem 0; font-family: var(--f-display); font-style: italic; font-size: 1.4em; color: var(--ink); line-height: 1.4; }
.prose blockquote cite { display: block; margin-top: 0.6rem; font-size: 0.7em; font-family: var(--f-body); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.prose ul { margin: 1.5rem 0; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--sanguine); }

/* ====== GALLERY ====== */
.gallery-section { padding: 2rem var(--gutter) 6rem; max-width: var(--container); margin: 0 auto; }
.gallery-section .gallery-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem; }
.gallery-section h2 { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; } }
@media (min-width: 1100px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.gallery-grid figure { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bone-2); cursor: pointer; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }

/* ====== LIGHTBOX ====== */
.lightbox { position: fixed; inset: 0; background: rgba(26, 24, 23, 0.95); z-index: 300; display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--bone); width: 44px; height: 44px; }

/* ====== CALLOUT (CTA section in inner pages) ====== */
.callout { background: var(--ink); color: var(--bone); padding: 4rem var(--gutter); margin-top: 4rem; }
.callout-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.callout h2 { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; font-weight: 500; }
.callout h2 em { color: var(--sanguine); font-style: italic; }
.callout p { color: rgba(245, 241, 232, 0.75); margin-bottom: 2rem; max-width: 50ch; margin-left: auto; margin-right: auto; }
.callout .btn-primary { background: var(--sanguine); border-color: var(--sanguine); }
.callout .btn-primary:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

/* ====== FOOTER ====== */
.footer { background: var(--ink); color: var(--bone); padding: 4rem var(--gutter) 2rem; }
.footer-grid { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(245, 241, 232, 0.15); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 4rem; } }
.footer-brand p { margin-top: 1.25rem; color: rgba(245, 241, 232, 0.65); max-width: 30ch; font-size: 0.9rem; }
.footer-col h4 { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sanguine); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { font-size: 0.9rem; color: rgba(245, 241, 232, 0.75); transition: color 0.2s; }
.footer-col a:hover { color: var(--bone); }
.copyright { max-width: var(--container); margin: 0 auto; padding-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: 0.75rem; color: rgba(245, 241, 232, 0.5); }

/* ====== CHATBOT FAB ====== */
.chat-fab { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: var(--sanguine); color: var(--bone); box-shadow: 0 10px 30px rgba(184, 71, 44, 0.35); display: flex; align-items: center; justify-content: center; transition: transform 0.25s; }
.chat-fab:hover { transform: translateY(-3px) scale(1.05); }
.chat-fab svg { width: 26px; height: 26px; }

/* ====== UTILS ====== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.65, 0.3, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bone); padding: 1rem; z-index: 999; }
.skip-link:focus { left: 0; }
