/* ==========================================================================
   Konstantinos Vardalos — Portfolio Styles
   Warm, minimal editorial layout inspired by Brunello Cucinelli's shop site:
   ivory ground, restrained camel accent, thin refined type, centered logo,
   generous whitespace, image+copy blocks instead of overlays.
   ========================================================================== */

:root {
  --bg: #f4efe6;
  --bg-alt: #ece4d6;
  --text: #2b2520;
  --text-dim: #766a5c;
  --text-faint: #a89b89;
  --accent: #8c6c46; /* warm camel/cognac — used sparingly */
  --border: rgba(43,37,32,0.14);
  --maxw: 1320px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 14px;
}

/* Minimal underline / text CTA — replaces filled buttons */
.link-cta {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text);
  padding-bottom: 7px;
  border-bottom: 1px solid var(--accent);
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.link-cta:hover { opacity: 0.6; }
.link-cta-ghost {
  color: var(--text-dim);
  border-bottom-color: var(--border);
}
.link-cta-ghost:hover { color: var(--text); }

/* ---------------- Header (minimal, centered logo) ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px rgba(43,37,32,0.05);
}

.nav-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.logo { display: block; line-height: 0; }
.logo img { display: block; width: 42px; height: 42px; }

.brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px 2px;
}
.menu-toggle-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 500;
}
.menu-toggle-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}
.menu-toggle-lines i {
  display: block;
  height: 1px;
  background: var(--text);
  width: 100%;
}
.menu-toggle-lines i:last-child { width: 60%; }

/* ---------------- Fullscreen menu overlay ---------------- */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 90px 6vw 40px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-close {
  position: absolute;
  top: 22px; right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 500;
}
.menu-close-x { font-size: 1.4rem; line-height: 1; font-weight: 300; }

.menu-categories {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 2.2vw, 18px);
}
.menu-cat-link {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(1.7rem, 5vw, 3.2rem);
  color: var(--text-dim);
  display: flex;
  align-items: baseline;
  gap: 18px;
  transition: color 0.2s ease;
}
.menu-cat-link:hover { color: var(--text); }
.menu-cat-index {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 500;
}

.menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.menu-links { display: flex; gap: 28px; }
.menu-link {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  color: var(--text-dim);
}
.menu-link:hover { color: var(--text); }

.lang-switch { display: flex; gap: 4px; }
.lang-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 6px 13px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-btn.active { color: var(--bg); background: var(--text); border-color: var(--text); }
.lang-btn:hover:not(.active) { border-color: var(--text); color: var(--text); }

/* ---------------- Hero (full-bleed, like the category panels, but bigger) ---------------- */

.hero {
  position: relative;
  height: 100svh;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: #111;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 45% 12%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6,5,4,0.9) 0%, rgba(6,5,4,0.25) 48%, rgba(6,5,4,0.2) 100%),
    linear-gradient(to right, rgba(6,5,4,0.4), transparent 60%);
}

.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 10vh 8vw;
  max-width: 680px;
  color: #f7f2e9;
}
.hero-kicker {
  color: #d8b98a;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin: 0 0 22px;
}
.hero-title {
  font-size: clamp(3.4rem, 7.5vw, 6.4rem);
  font-weight: 300;
  line-height: 1.0;
  color: #fdfaf5;
}
.hero-sub {
  max-width: 440px;
  color: rgba(247,242,233,0.82);
  font-weight: 300;
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 28px 0 38px;
}
.hero-actions { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-actions .link-cta { color: #fdfaf5; border-bottom-color: #d8b98a; }
.hero-actions .link-cta-ghost { color: rgba(247,242,233,0.7); border-bottom-color: rgba(247,242,233,0.35); }
.hero-actions .link-cta:hover { opacity: 0.75; }

/* ---------------- Editorial category panels ---------------- */
/* Full-screen photo panels with the copy set directly over the image. */

.explore-section { background: #0a0a0a; }

.panel {
  display: block;
  position: relative;
  height: 100svh;
  overflow: hidden;
}
.panel-link { cursor: pointer; }
.panel-link .panel-media img { transition: transform 0.6s ease; }
.panel-link:hover .panel-media img { transform: scale(1.04); }

.panel-media {
  position: absolute;
  inset: 0;
  background: var(--bg-alt);
}
.panel-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.panel-media-blank {
  background:
    repeating-linear-gradient(135deg, rgba(244,239,230,0.05) 0 2px, transparent 2px 26px),
    linear-gradient(160deg, #2a2620, #17140f);
}

.panel-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6,5,4,0.92) 0%, rgba(6,5,4,0.2) 45%, rgba(6,5,4,0.15) 100%),
    linear-gradient(to right, rgba(6,5,4,0.35), transparent 55%);
}
.panel-no-image .panel-overlay { display: none; }

.panel-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 16px;
  padding: 12vh 8vw;
  max-width: 640px;
  color: #f7f2e9;
}
.panel.panel-align-right .panel-copy { align-items: flex-end; text-align: right; margin-left: auto; }

.panel-index {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: #d8b98a;
  font-weight: 500;
}
.panel-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 300;
  color: #fdfaf5;
}
.panel-tagline {
  color: rgba(247,242,233,0.82);
  font-weight: 300;
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 440px;
}
.panel-copy .link-cta {
  color: #fdfaf5;
  border-bottom-color: #d8b98a;
}
.panel-copy .link-cta:hover { opacity: 0.75; }

/* The "no image yet" category (AI Generated) sits on the warm ground —
   flip the copy back to dark text instead of the light-on-photo treatment. */
.panel-no-image .panel-copy { color: var(--text); }
.panel-no-image .panel-index { color: var(--accent); }
.panel-no-image .panel-title { color: var(--text); }
.panel-no-image .panel-tagline { color: var(--text-dim); }
.panel-no-image .panel-copy .link-cta { color: var(--text); border-bottom-color: var(--accent); }

/* ---------------- Contact ---------------- */

.contact-section { text-align: center; padding: 110px 6vw; }
.contact-inner { max-width: 600px; margin: 0 auto; }
.contact-inner h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 14px; }
.contact-inner > p:not(.section-kicker) { color: var(--text-dim); font-weight: 300; margin-bottom: 30px; }
.contact-email {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 6px;
  margin-bottom: 14px;
}
.contact-phone {
  display: block;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  margin-bottom: 36px;
}
.contact-phone:hover { color: var(--text); }

/* ---------------- Footer ---------------- */

.site-footer { border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 6vw 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.footer-col p { color: var(--text-faint); font-size: 0.85rem; margin: 0; }
.footer-heading {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}
.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 0.86rem;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 20px;
  color: var(--text-faint);
  font-size: 0.76rem;
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------------- Category gallery (lightbox) ---------------- */

.gallery {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,8,6,0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 70px 90px 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.gallery.open { opacity: 1; pointer-events: auto; }

.gallery-main {
  max-width: 1100px;
  width: 100%;
  max-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main img {
  max-width: 100%; max-height: 62vh;
  object-fit: contain;
  margin: 0 auto;
}
.gallery-video-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #000; overflow: hidden;
}
.gallery-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery-pending {
  position: relative; width: 100%; aspect-ratio: 16/9;
  overflow: hidden; background: #000;
}
.gallery-pending img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.gallery-pending-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 20px;
  font-weight: 400; color: #f4efe6;
  background: rgba(0,0,0,0.35);
}

.gallery-caption {
  color: #cabfaf; font-size: 0.9rem; font-weight: 300; margin: 0; text-align: center;
}

.gallery-close {
  position: absolute; top: 24px; right: 26px; z-index: 1001;
  background: none; border: none; color: #fff;
  font-size: 2.2rem; line-height: 1; cursor: pointer; padding: 6px 10px;
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid rgba(255,255,255,0.3);
  color: #fff; width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease;
}
.gallery-nav:hover { border-color: #fff; }
.gallery-prev { left: 24px; }
.gallery-next { right: 24px; }

.gallery-strip {
  display: flex; gap: 8px; overflow-x: auto; max-width: 100%;
  padding-bottom: 4px;
}
.gallery-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 64px; height: 80px;
  padding: 0; border: 2px solid transparent; background: none;
  cursor: pointer; overflow: hidden;
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { opacity: 1; border-color: #d8b98a; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3);
}
.gallery-thumb-play svg { width: 12px; height: 12px; fill: #fff; }

@media (max-width: 700px) {
  .gallery { padding: 60px 20px 20px; gap: 16px; }
  .gallery-nav { width: 36px; height: 36px; font-size: 1.3rem; }
  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 640px) {
  .panel-copy { padding: 48px 6vw; }
  .hero-copy { padding: 8vh 6vw; }
  .hero-title { font-size: clamp(2.6rem, 11vw, 4rem); }
  .panel-title { font-size: clamp(2rem, 8vw, 3rem); }
}

/* Narrow phones: the centered brand wordmark and the right-aligned menu
   button both live in one row — give the button less room so they never
   collide. */
@media (max-width: 480px) {
  .brand { font-size: 0.7rem; letter-spacing: 0.05em; }
  .logo img { width: 34px; height: 34px; }
  .menu-toggle-label { display: none; }
}
