/* ============================================
   Παναγιώτης Γ. Γιαννόπουλος — Τεχνικό Γραφείο
   ============================================ */

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

:root[data-theme="light"] {
  --bg: #f6f4ef;
  --bg-alt: #efece4;
  --text: #201e1a;
  --muted: #6b675f;
  --surface: #ffffff;
  --border: #e2ded3;
  --accent: #b5502f;
  --accent-text: #ffffff;
  --overlay: rgba(20, 18, 14, 0.46);
  --shadow: 0 20px 50px -25px rgba(32, 30, 26, 0.35);
}

:root[data-theme="dark"] {
  --bg: #15130f;
  --bg-alt: #1c1a15;
  --text: #ece8de;
  --muted: #a49e8f;
  --surface: #1f1d17;
  --border: #322e25;
  --accent: #dd8256;
  --accent-text: #15130f;
  --overlay: rgba(10, 9, 6, 0.58);
  --shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.6);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  border: 1px solid var(--text);
  border-radius: 2px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background .35s ease, color .35s ease, border-color .35s ease, transform .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--text); color: var(--bg); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn--ghost { border-color: var(--border); }
.btn--ghost:hover { border-color: var(--text); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem clamp(1.25rem, 4vw, 3rem);
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease, border-color .35s ease;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav.scrolled {
  padding: 1.05rem clamp(1.25rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}
.nav__brand img { height: 34px; }
.nav__brand-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}
.nav__brand-text span { color: var(--accent); }
.nav__menu {
  display: flex;
  gap: clamp(1.2rem, 2.4vw, 2.6rem);
}
.nav__menu a {
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.nav__menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s ease;
}
.nav__menu a:hover::after,
.nav__menu a.active::after { width: 100%; }
.nav__controls { display: flex; align-items: center; gap: 0.5rem; }
.ctrl-btn {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
  transition: border-color .25s ease, color .25s ease;
}
.ctrl-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav__phone {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border-left: 1px solid var(--border);
  padding-left: 1.2rem;
  margin-left: 0.4rem;
  white-space: nowrap;
}
.nav__hamburger { display: none; flex-direction: column; gap: 5px; width: 26px; }
.nav__hamburger span { display: block; height: 1.5px; background: var(--text); transition: transform .3s ease, opacity .3s ease; }

@media (max-width: 900px) {
  .nav__menu { position: fixed; top: 0; right: -100%; height: 100vh; width: min(80vw, 340px);
    background: var(--surface); flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 2rem 3rem; gap: 2rem; transition: right .4s ease; box-shadow: var(--shadow); }
  .nav__menu.open { right: 0; }
  .nav__phone { display: none; }
  .nav__hamburger { display: flex; z-index: 101; }
  .nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav__hamburger.open span:nth-child(2) { opacity: 0; }
  .nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ---------- Home hero (full-bleed) ---------- */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.home-hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}
.home-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,9,6,0.9) 0%, rgba(10,9,6,0.45) 42%, rgba(10,9,6,0.08) 68%);
}
.home-hero__content {
  position: relative;
  z-index: 2;
  max-width: 46rem;
  padding: clamp(7rem, 14vw, 10rem) clamp(1.5rem, 5vw, 5rem) clamp(3.5rem, 7vw, 5.5rem);
  color: #f5f2ea;
}
.home-hero__content .label { color: #e3ac8b; }
.home-hero__title {
  font-size: clamp(2.8rem, 6.6vw, 5.2rem);
  margin-bottom: 1.5rem;
}
.home-hero__title em { color: #e3ac8b; font-style: normal; }
.home-hero__desc {
  max-width: 46ch;
  color: #d9d4c8;
  font-size: 1.05rem;
  margin-bottom: 2.2rem;
}
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.home-hero__badge {
  position: absolute;
  z-index: 3;
  top: clamp(6.5rem, 13vw, 9.5rem);
  right: clamp(1.5rem, 5vw, 4rem);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px);
  padding: 1.3rem 1.7rem;
  border-radius: 3px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.home-hero__badge strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  color: var(--accent);
  line-height: 1;
}
.home-hero__badge span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 700px) {
  .home-hero__badge { display: none; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.page-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--overlay), rgba(10,9,6,0.72));
}
.page-hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(6rem, 10vw, 9rem) clamp(1.5rem, 5vw, 5rem) 3.5rem;
  color: #f4f1ea;
}
.page-hero__content .label { color: #e3ac8b; }
.page-hero__title { font-size: clamp(2.4rem, 5vw, 3.8rem); max-width: 18ch; }

/* ---------- Sections ---------- */
section { padding: clamp(4.5rem, 8vw, 7rem) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); max-width: 20ch; }
.section-head p { color: var(--muted); max-width: 38ch; }

.bg-alt { background: var(--bg-alt); }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats__item {
  padding: 2.6rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stats__item:last-child { border-right: none; }
.stats__num { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--accent); }
.stats__label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 0.4rem; }
@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: none; }
  .stats__item { border-bottom: 1px solid var(--border); }
}

/* ---------- Works / bento grid ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.4rem;
}
.work-card {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  grid-column: span 3;
  aspect-ratio: 4 / 3;
}
.work-card--wide { grid-column: span 6; aspect-ratio: 16 / 8; }
.work-card--tall { aspect-ratio: 3 / 4; }
.work-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.work-card:hover img { transform: scale(1.06); }
.work-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,9,6,0.82));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.6rem;
  color: #f4f1ea;
}
.work-card__tag { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #e3ac8b; margin-bottom: 0.3rem; }
.work-card__title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; }
@media (max-width: 800px) {
  .work-card, .work-card--wide { grid-column: span 6; }
}

/* ---------- Services list ---------- */
.services-list { border-top: 1px solid var(--border); }
.service-row {
  display: grid;
  grid-template-columns: 90px 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left .3s ease;
}
.service-row:hover { padding-left: 0.6rem; }
.service-row__num { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--accent); }
.service-row__title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-family: 'Cormorant Garamond', serif; }
.service-row__desc { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 720px) {
  .service-row { grid-template-columns: 50px 1fr; }
  .service-row__desc { grid-column: 2 / 3; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about-grid img { border-radius: 3px; box-shadow: var(--shadow); }
.about-copy p { color: var(--muted); margin-bottom: 1.2rem; }
.about-copy p:first-of-type { color: var(--text); font-size: 1.15rem; }
.quote {
  border-left: 2px solid var(--accent);
  padding-left: 1.6rem;
  margin: 2rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
}
.contact-card + .contact-card { margin-top: 1.4rem; }
.contact-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.contact-line { display: flex; gap: 0.8rem; padding: 0.5rem 0; color: var(--muted); }
.contact-line a:hover { color: var(--accent); }
.contact-line svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.map-frame { border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.map-frame iframe { width: 100%; height: 280px; border: 0; filter: grayscale(0.3) contrast(1.05); }
:root[data-theme="dark"] .map-frame iframe { filter: grayscale(0.5) invert(0.92) contrast(0.9); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: clamp(3rem, 6vw, 5rem); }
.footer__main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__brand img { height: 30px; margin-bottom: 1rem; }
.footer__brand p { color: var(--muted); max-width: 34ch; font-size: 0.92rem; }
.footer__col-title { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer__nav li { margin-bottom: 0.6rem; }
.footer__nav a:hover { color: var(--accent); }
.footer__info .contact-line { padding: 0.3rem 0; font-size: 0.92rem; }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 1.4rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
@media (max-width: 760px) { .footer__main { grid-template-columns: 1fr; } }

/* ---------- Fade-in ---------- */
.fade { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fade.in { opacity: 1; transform: none; }

/* ---------- Language toggle disable transitions on load ---------- */
[data-en] { transition: none; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  cursor: pointer;
  display: block;
  list-style: none;
  position: relative;
  padding: 1.35rem 2.6rem 1.35rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.32rem;
  line-height: 1.35;
  transition: color .25s ease;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__q::after {
  content: '+';
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.35rem; font-weight: 300;
  color: var(--muted);
  transition: color .25s ease;
}
.faq__item[open] .faq__q { color: var(--accent); }
.faq__item[open] .faq__q::after { content: '\2212'; color: var(--accent); }
.faq__a {
  padding: 0 2.6rem 1.6rem 0;
  color: var(--muted);
  max-width: 78ch;
  font-size: 0.95rem;
}
