/* ============================================================
   Έπιπλα Χαμηλοθώρης — style.css
   Aesthetic: "printed catalog turned digital" — warm cream paper,
   charcoal-brown ink, bronze accents drawn from the logo.
   Fonts: EB Garamond (display, Greek) + Commissioner (body, Greek).
   ============================================================ */

:root {
  --paper: #f5f0e8;
  --paper-deep: #ece4d6;
  --paper-card: #faf7f1;
  --ink: #2a2521;
  --ink-soft: #5c544a;
  --bronze: #b08a47;
  --bronze-deep: #8f6d35;
  --line: rgba(143, 109, 53, 0.28);
  --line-soft: rgba(143, 109, 53, 0.16);
  --shadow: 0 18px 40px -18px rgba(42, 37, 33, 0.35);
  --serif: "EB Garamond", "Georgia", serif;
  --sans: "Commissioner", "Segoe UI", sans-serif;
  --wrap: 1180px;
  --header-h: 112px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* faint paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }

a { color: var(--bronze-deep); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* --- kicker + swoosh (logo-echo motif) ------------------- */
.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  margin-bottom: 14px;
}

.swoosh {
  display: block;
  width: 120px;
  height: 12px;
  margin-top: 10px;
}
.swoosh path {
  fill: none;
  stroke: var(--bronze);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.center .swoosh { margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* --- buttons ---------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { background: var(--bronze-deep); border-color: var(--bronze-deep); color: var(--paper); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--light {
  background: transparent;
  border-color: rgba(245, 240, 232, 0.65);
  color: var(--paper);
}
.btn--light:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* --- header ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(42, 37, 33, 0.4); }

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.brand img { height: 90px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 30px; }

.main-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--bronze);
  transition: right 0.28s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { right: 0; }
.main-nav a[aria-current="page"] { color: var(--bronze-deep); }

.header-tools { display: flex; align-items: center; gap: 18px; }

.lang-toggle {
  display: flex;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.lang-toggle button {
  font-family: var(--sans);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 7px 12px;
  cursor: pointer;
}
.lang-toggle button.active {
  background: var(--ink);
  color: var(--paper);
}

.header-phone {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.header-phone svg { vertical-align: -3px; margin-right: 6px; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 8px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- hero -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--paper);
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(30, 23, 16, 0.82) 0%, rgba(30, 23, 16, 0.55) 45%, rgba(30, 23, 16, 0.12) 80%);
}
.hero-content { max-width: 640px; padding: 120px 0; }
.hero-content .kicker { color: var(--bronze); }
.hero-content h1 { color: #fdfaf4; }
.hero-content p {
  color: rgba(245, 240, 232, 0.85);
  font-size: 1.12rem;
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-badge {
  position: absolute;
  right: 40px;
  bottom: 36px;
  text-align: right;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.75);
}

/* --- page hero (inner pages) ------------------------------- */
.page-hero {
  padding: 90px 0 56px;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero p { max-width: 640px; font-size: 1.08rem; }

/* --- sections ---------------------------------------------- */
.section { padding: 96px 0; }
.section--deep { background: var(--paper-deep); }
.section--ink {
  background: var(--ink);
  color: var(--paper);
}
.section--ink p { color: rgba(245, 240, 232, 0.72); }
.section--ink h2, .section--ink h3 { color: #fdfaf4; }

.section-head { margin-bottom: 56px; max-width: 640px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* --- USP band ---------------------------------------------- */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(245, 240, 232, 0.14);
}
.usp {
  padding: 44px 34px 8px 0;
  border-left: 1px solid rgba(245, 240, 232, 0.14);
  padding-left: 34px;
}
.usp:first-child { border-left: 0; padding-left: 0; }
.usp .num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--bronze);
  display: block;
  line-height: 1;
  margin-bottom: 14px;
}
.usp h3 { font-size: 1.18rem; margin-bottom: 8px; }
.usp p { font-size: 0.92rem; }

/* --- category tiles ---------------------------------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.cat-tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  background: var(--ink);
}
.cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.4s ease;
}
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile .plate {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: rgba(250, 247, 241, 0.94);
  color: var(--ink);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.08rem;
  transition: background 0.25s ease;
}
.cat-tile .plate .arrow {
  color: var(--bronze-deep);
  font-family: var(--sans);
  transition: transform 0.25s ease;
}
.cat-tile:hover .plate .arrow { transform: translateX(5px); }

/* --- split (image + text) ---------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
}
.split.flip { grid-template-columns: 1fr 1.05fr; }
.split.flip .split-media { order: 2; }
.split-media {
  position: relative;
}
.split-media img {
  width: 100%;
  box-shadow: var(--shadow);
}
.split-media::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--line);
  z-index: -1;
}
.split.flip .split-media::before { inset: 22px 22px -22px -22px; }
.split-body h2 { max-width: 420px; }
.split-body .btn { margin-top: 12px; }

/* --- services ----------------------------------------------- */
.svc-list { display: grid; gap: 90px; }
.svc-num {
  font-family: var(--serif);
  font-size: 4.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--bronze);
  display: block;
  margin-bottom: 18px;
}

/* --- detail strip ------------------------------------------- */
.detail-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.detail-strip figure { margin: 0; }
.detail-strip img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.detail-strip figcaption {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

/* --- quote band --------------------------------------------- */
.quote-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: 110px 0;
  color: var(--paper);
}
.quote-band .texture {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.quote-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(32, 25, 18, 0.88);
}
.quote-band h2 { color: #fdfaf4; max-width: 700px; margin-left: auto; margin-right: auto; }
.quote-band p { color: rgba(245, 240, 232, 0.75); max-width: 520px; margin: 0 auto 30px; }

/* --- gallery ------------------------------------------------ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 44px;
}
.filter-bar button {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.22s ease;
}
.filter-bar button:hover { border-color: var(--bronze-deep); color: var(--ink); }
.filter-bar button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.g-card {
  cursor: pointer;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  font: inherit;
}
.g-card .frame {
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4 / 3;
}
.g-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.g-card:hover img { transform: scale(1.05); }
.g-card figcaption {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--ink);
  padding: 12px 2px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.g-card .cat-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  white-space: nowrap;
  padding-top: 5px;
}
.gallery-empty {
  padding: 60px 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink-soft);
}

/* --- lightbox ----------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 21, 16, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 78vh;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lb-caption {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-top: 18px;
  text-align: center;
}
.lb-counter {
  color: rgba(245, 240, 232, 0.55);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin-top: 6px;
}
.lightbox button {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(245, 240, 232, 0.4);
  color: var(--paper);
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox button:hover { background: rgba(245, 240, 232, 0.14); border-color: var(--paper); }
.lb-close { top: 26px; right: 26px; }
.lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 26px; top: 50%; transform: translateY(-50%); }

/* --- contact ------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.contact-card {
  background: var(--paper-card);
  border: 1px solid var(--line-soft);
  padding: 34px 30px;
}
.contact-card .kicker { margin-bottom: 6px; }
.contact-card .big {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  display: block;
  margin: 4px 0 6px;
}
a.big:hover { color: var(--bronze-deep); }
.contact-card p { font-size: 0.92rem; margin: 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-grid .contact-card h3 { font-size: 1.25rem; margin-bottom: 8px; }

.map-frame {
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--paper-card);
  margin-top: 26px;
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  filter: sepia(0.22) saturate(0.85);
}

/* --- footer -------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(245, 240, 232, 0.75);
  padding: 80px 0 36px;
  position: relative;
  z-index: 2;
}
.site-footer::before {
  content: "";
  display: block;
  max-width: var(--wrap);
  margin: -80px auto 64px;
  border-top: 3px solid var(--bronze);
  padding-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}
.footer-grid img { height: 110px; width: auto; margin-bottom: 18px; }
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 18px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.95rem; }
.footer-grid a { color: rgba(245, 240, 232, 0.75); }
.footer-grid a:hover { color: var(--bronze); }
.footer-bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.14);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(245, 240, 232, 0.5);
}

/* --- reveal animation ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cat-tile img, .g-card img { transition: none; }
}

/* --- responsive ----------------------------------------------- */
@media (max-width: 1000px) {
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .usp:nth-child(3) { border-left: 0; padding-left: 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split.flip { grid-template-columns: 1fr; gap: 44px; }
  .split.flip .split-media { order: 0; }
  .detail-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-phone { display: none; }
}

@media (max-width: 760px) {
  :root { --header-h: 92px; }
  .brand img { height: 72px; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 22px;
    display: none;
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 12px 0; font-size: 0.9rem; width: 100%; }
  .nav-burger { display: flex; }
  .hero { min-height: 72vh; }
  .hero-content { padding: 90px 0; }
  .hero-badge { display: none; }
  .section { padding: 64px 0; }
  .cat-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr; }
  .usp { border-left: 0; padding-left: 0; padding-right: 0; }
  .split-media::before { display: none; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: 20px; }
  .lb-next { right: 20px; }
}
