/* Maria Fani — site
   Λιτό: φωτογραφίες, τίτλοι, λίγο κείμενο. Όλα τα χρώματα και οι αποστάσεις περνούν από τα tokens. */
:root {
  --bg: #f4f1ec;
  --bg-2: #e9e4db;
  --ink: #1e1a16;
  --ink-2: #4f483f;
  --muted: #8a8075;
  --line: rgba(30, 26, 22, .14);
  --dark: #1b1814;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --section: clamp(88px, 12vw, 168px);
  --ease: cubic-bezier(.2, .7, .1, 1);

  --fs-display: clamp(2.6rem, 6.6vw, 6rem);
  --fs-title: clamp(1.5rem, 2.8vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -.008em; line-height: 1.1; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.title { font-size: var(--fs-title); line-height: 1.2; letter-spacing: -.008em; color: var(--ink); max-width: 22ch; margin: 0 0 28px; }
/* Ετικέτες: μενού, κουμπιά, σύνδεσμοι, φίλτρα, πεδία φόρμας. Ένα κοινό στυλ, σε κεφαλαία
   (με lang="el" ο browser βγάζει σωστά τους τόνους). */
.site-nav a, .mobile-menu nav a, .btn, .link, .filter, .field > span:not(.field__error), .next-project__label, .lightbox button, .lightbox__count {
  font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.link { display: inline-block; border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: opacity .2s; }
.link:hover { opacity: .6; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  border: 0; border-radius: 2px;
  white-space: nowrap; cursor: pointer;
  transition: background-color .25s, color .25s;
}
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--bg); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }

/* ---------- Header: απλή μπάρα σε όλο το πλάτος ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(244, 241, 236, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color .35s, border-color .35s, color .35s;
}
.site-header__bar { height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header__logo img { height: 68px; width: auto; transition: filter .35s; }
.site-nav { display: flex; gap: clamp(24px, 3.4vw, 48px); }
.site-nav a { position: relative; padding: 6px 0; opacity: .75; transition: opacity .2s; }
.site-nav a:hover, .site-nav a[aria-current] { opacity: 1; }
.site-nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; }

/* Πάνω από φωτογραφία: διάφανο, μέχρι να γίνει scroll */
.header-dark .site-header:not(.is-scrolled) { background: transparent; border-bottom-color: transparent; color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.header-dark .site-header:not(.is-scrolled) .site-header__logo img { filter: brightness(0) invert(1); }

.site-header__toggle { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; position: relative; }
.site-header__toggle span:not(.sr-only) { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.site-header__toggle span:nth-child(2) { top: 18px; }
.site-header__toggle span:nth-child(3) { top: 25px; }
.menu-open .site-header__toggle span:nth-child(2) { top: 21.5px; transform: rotate(45deg); }
.menu-open .site-header__toggle span:nth-child(3) { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: -1;
  padding: 120px var(--gutter) 40px;
  background: var(--dark); color: #ece6dc;
  display: flex; flex-direction: column; justify-content: space-between;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; gap: 6px; }
.mobile-menu nav a { font-size: 20px; line-height: 2.4; }
.mobile-menu__contact { color: #a39888; line-height: 1.9; }
.menu-open { overflow: hidden; }
.menu-open .site-header { background: transparent !important; border-bottom-color: transparent !important; color: #fff; }
.menu-open .site-header__logo img { filter: brightness(0) invert(1); }

/* ---------- Φωτογραφίες σε όλο το πλάτος ---------- */
.hero, .cta, .project-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  color: #fff;
}
.hero__bg, .cta__bg, .project-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after, .cta::after, .project-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 12, 10, .3) 0%, rgba(14, 12, 10, 0) 30%, rgba(14, 12, 10, .1) 55%, rgba(14, 12, 10, .62) 100%);
}
.hero { min-height: 100svh; }
.hero__bg, .project-hero__bg { animation: settle 2.4s var(--ease) both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
.hero__inner, .cta__inner { padding-block: 140px clamp(48px, 7vw, 88px); }
.hero__title, .cta__title { font-size: var(--fs-display); line-height: 1; letter-spacing: -.018em; margin-bottom: 32px; }

.cta { min-height: clamp(480px, 74vh, 720px); }

/* ---------- Ενότητες ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--flush { padding-top: 0; }

.split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 8vw, 128px); align-items: center; }
.split__media img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); }
.split__text { color: var(--ink-2); max-width: 520px; }

.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.row-head .title { margin: 0; }

/* ---------- Κάρτες έργων ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(48px, 6vw, 88px) clamp(16px, 2.4vw, 32px); align-items: end; }
.feature-grid .project-card--lg { grid-column: span 7; }
.feature-grid .project-card--sm { grid-column: span 5; }
.feature-grid .project-card--sm .project-card__media { aspect-ratio: 4 / 5; }

.project-card__media { overflow: hidden; border-radius: var(--radius); background: var(--bg-2); aspect-ratio: 4 / 3; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project-card a:hover img { transform: scale(1.04); }
.project-card__title { margin-top: 16px; font-size: 1.2rem; }
.project-card__sub { margin: 2px 0 0; font-size: 15px; color: var(--muted); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 5vw, 64px) clamp(16px, 2.4vw, 28px); }

/* ---------- Σελίδες ---------- */
.page-head { padding-top: clamp(140px, 17vw, 200px); padding-bottom: clamp(32px, 4vw, 48px); }
.page-head--center { text-align: center; min-height: 70vh; }
.page-head__title { font-size: var(--fs-display); line-height: 1; letter-spacing: -.018em; }
.page-head__lead { margin-top: 24px; color: var(--ink-2); }

/* Φίλτρα: απλές λέξεις, η ενεργή υπογραμμισμένη */
.filters { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-bottom: clamp(32px, 4vw, 48px); }
.filter { padding: 4px 0; color: var(--muted); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Σελίδα έργου */
.project-hero { min-height: clamp(520px, 90svh, 1000px); }
.project-hero__bg { cursor: zoom-in; }
.project-hero__inner { padding-bottom: clamp(36px, 5vw, 64px); pointer-events: none; }
.project-hero__title { font-size: var(--fs-display); line-height: 1; letter-spacing: -.018em; max-width: 16ch; }
.project-hero__sub { margin: 14px 0 0; color: rgba(255, 255, 255, .85); }
.project-text { color: var(--ink-2); }
.project-text .prose { max-width: 640px; }

.gallery { display: grid; gap: clamp(12px, 1.8vw, 24px); padding-bottom: var(--section); }
.project-hero + .gallery { padding-top: var(--section); }
.gallery__row { display: grid; gap: clamp(12px, 1.8vw, 24px); }
.gallery__row--pair { grid-template-columns: 1fr 1fr; }
.gallery__row--single { justify-items: center; }
.gallery__row--single .gallery__item { width: min(100%, 560px); }
.gallery__item { display: block; padding: 0; border: 0; background: var(--bg-2); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__row--pair .gallery__item { aspect-ratio: 4 / 5; }

.next-project { padding-bottom: var(--section); }
.next-project a { display: grid; gap: 6px; padding-top: 32px; border-top: 1px solid var(--line); }
.next-project__label { color: var(--muted); }
.next-project__title { font-size: var(--fs-title); letter-spacing: -.008em; transition: opacity .2s; }
.next-project a:hover .next-project__title { opacity: .6; }

/* Φιλοσοφία */
.about-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end;
  padding-top: clamp(140px, 17vw, 200px);
}
.about-hero__role { margin: 12px 0 40px; color: var(--muted); }
.about-hero__text .title { margin: 0; }
.about-hero__portrait img { width: 100%; mix-blend-mode: multiply; }
.chapters { display: grid; gap: clamp(56px, 7vw, 96px); }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: clamp(24px, 4vw, 64px); }
.chapter__title { font-size: var(--fs-title); line-height: 1.2; max-width: 14ch; }
.chapter > div { max-width: 600px; color: var(--ink-2); }

/* Επικοινωνία */
.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px);
  padding-top: clamp(140px, 17vw, 200px); padding-bottom: var(--section);
}
.contact__lead { margin: 24px 0 40px; color: var(--ink-2); max-width: 32ch; }
.contact__details { line-height: 2; }
.contact__details a:hover { text-decoration: underline; text-underline-offset: 3px; }
.form { display: grid; gap: 26px; align-content: start; padding-top: 12px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field > span:not(.field__error) { color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 8px 0 12px;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink); font: inherit;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.form__hp { position: absolute; left: -9999px; }
.field__error { font-size: 14px; color: #a3392b; }
.field input[aria-invalid], .field textarea[aria-invalid] { border-bottom-color: #a3392b; }
.form__alert { margin: 0; padding: 14px 16px; border-left: 2px solid #a3392b; background: rgba(163, 57, 43, .06); color: var(--ink); }
.form-done { padding-top: 12px; color: var(--ink-2); }
.form .btn { justify-self: start; min-width: 160px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 28px; }
.site-footer__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.site-footer a:hover { color: var(--ink); }

/* Υπογραφή κατασκευαστή: λογότυπο BRAND.ON σε HTML (το SVG έχει text και δεν φορτώνει τη γραμματοσειρά ως <img>) */
.credit { flex-basis: 100%; display: flex; justify-content: center; }
.credit__logo {
  display: inline-flex; align-items: baseline;
  font-family: "Geologica", var(--font); font-weight: 700; font-size: 13px; letter-spacing: .07em;
  color: var(--ink); opacity: .55; transition: opacity .2s;
}
.credit__logo i { display: inline-block; width: .2em; height: .2em; margin: 0 .2em 0 .12em; border-radius: 50%; background: currentColor; }
.credit:hover .credit__logo { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-columns: 150px 1fr 150px; align-items: center;
  background: rgba(14, 12, 10, .96); color: #fff;
  animation: fade .25s ease both;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lightbox__figure { grid-column: 2; display: grid; place-items: center; height: 100svh; padding: 64px 0; margin: 0; }
.lightbox__figure img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.lightbox button { border: 0; background: none; cursor: pointer; color: #fff; }
.lightbox__close { position: absolute; top: 22px; right: 24px; padding: 8px; opacity: .8; }
.lightbox__close:hover { opacity: 1; }
.lightbox__nav { height: 100%; opacity: .6; transition: opacity .2s; }
.lightbox__nav:hover { opacity: 1; }
.lightbox__count { position: absolute; left: 0; right: 0; bottom: 22px; margin: 0; text-align: center; color: rgba(255, 255, 255, .55); }

/* ---------- Εμφάνιση με scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg, .project-hero__bg { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-header__toggle { display: block; }
  .split, .about-hero, .contact, .chapter { grid-template-columns: 1fr; }
  .split__media img { aspect-ratio: 4 / 5; }
  .chapter__title { margin-bottom: 18px; }
  .feature-grid .project-card--lg, .feature-grid .project-card--sm { grid-column: 1 / -1; }
  .feature-grid .project-card--sm .project-card__media { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header__bar { height: 80px; }
  .site-header__logo img { height: 50px; }
  .project-grid { grid-template-columns: 1fr; }
  .gallery__row--pair { grid-template-columns: 1fr; }
  .gallery__row--pair .gallery__item { aspect-ratio: auto; }
  .form__row { grid-template-columns: 1fr; }
  .site-footer__inner { flex-direction: column; }
  .lightbox { grid-template-columns: 0 1fr 0; }
  .lightbox__nav { display: none; }
  .lightbox__figure { padding: 56px 8px; }
}
