/* ============================================
   MARTIN KRAJC — Main Stylesheet
   ============================================ */

@font-face {
  font-family: 'GTStandard';
  src: url('../fonts/GT-Standard-M-Expanded-Heavy.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GTStandard';
  src: url('../fonts/GT-Standard-M-Expanded-Heavy-Oblique.woff') format('woff');
  font-weight: 900;
  font-style: oblique;
  font-display: swap;
}

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

:root {
  --font-main: 'GTStandard', Georgia, serif;
  --font-sans: 'Inter', Helvetica, Arial, sans-serif;
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-white: #ffffff;
  --color-accent: #FF5500;
  --nav-height: 60px;
}

html {
  scroll-behavior: smooth;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── PULSE ANIMATION ── */
@keyframes pulse-color {
  0%, 100% { color: var(--color-text); }
  50%       { color: var(--color-accent); }
}

@keyframes pulse-fill {
  0%, 100% { fill: #1a1a1a; }
  50%       { fill: #FF5500; }
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 18px 0 24px;
  background: var(--color-white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Hamburger — left */
.nav-hamburger {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 3px 0;
  width: 24px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 0;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.77,0,0.18,1), opacity 0.2s, background 0.2s;
}

.nav-hamburger:hover span { background: var(--color-accent); }

/* Hamburger → X when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Logo — center */
.nav-logo {
  font-family: var(--font-main);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  grid-column: 2;
  white-space: nowrap;
  position: relative;
}

.nav-logo-paint {
  position: absolute;
  inset: 0;
  color: #FF5500;
  pointer-events: none;
  white-space: nowrap;
  font-family: var(--font-main);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  opacity: 0;
}

/* Nav links (subpages) */
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  grid-column: 3;
  justify-content: flex-end;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--color-accent); }

/* Social — right */
.nav-social {
  grid-column: 3;
  display: flex;
  gap: 28px;
  justify-content: flex-end;
  align-items: center;
  list-style: none;
}

.nav-social .social-link { display: none; }

/* ── LANGUAGE SWITCH ── */
.lang-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  font-family: var(--font-main);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.lang-switch:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ── FULLSCREEN MENU OVERLAY ── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 80px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s cubic-bezier(0.77,0,0.18,1), transform 0.4s cubic-bezier(0.77,0,0.18,1);
}

.nav-overlay.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.nav-overlay ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-overlay ul li a {
  font-family: var(--font-main);
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--color-text);
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s, transform 0.35s, color 0.2s;
}

.nav-overlay.open ul li a {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation per item */
.nav-overlay ul li:nth-child(1) a { transition-delay: 0.05s; }
.nav-overlay ul li:nth-child(2) a { transition-delay: 0.1s; }
.nav-overlay ul li:nth-child(3) a { transition-delay: 0.15s; }
.nav-overlay ul li:nth-child(4) a { transition-delay: 0.2s; }
.nav-overlay ul li:nth-child(5) a { transition-delay: 0.25s; }

.nav-overlay ul li a:hover { color: var(--color-accent); animation: none; }

/* ── OVERLAY SOCIAL ── */
.nav-overlay-social {
  display: flex;
  flex-direction: row;
  gap: 28px;
  padding: 32px 0 0;
}
.nav-overlay-social .social-link { display: flex; }
.nav-overlay-social .social-icon { width: 44px; height: 44px; fill: var(--color-text); transition: fill 0.2s; }
.nav-overlay-social .social-link:hover .social-icon { fill: var(--color-accent); }

/* ── OVERLAY LANGUAGE ROW ── */
.nav-lang-row {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s 0.3s, transform 0.35s 0.3s;
}
.nav-overlay.open .nav-lang-row {
  opacity: 1;
  transform: translateY(0);
}
.nav-lang-item {
  font-family: var(--font-main);
  font-size: clamp(23px, 3.9vw, 52px);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--color-text);
  opacity: 0.35;
  transition: color 0.2s, opacity 0.2s;
}
.nav-lang-item.active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
  pointer-events: none;
}
.nav-lang-item:hover { color: var(--color-accent); opacity: 1; }

/* ── HERO PANELS ── */
.gallery {
  display: flex;
  flex-direction: column;
}

.panel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  cursor: pointer;
}

.panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.panel:hover img {
  transform: scale(1.03);
}

.panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,0.35) 100%
  );
  pointer-events: none;
}

.panel-label {
  position: absolute;
  bottom: 56px;
  left: 48px;
  color: var(--color-white);
  pointer-events: none;
}

.panel-label .category {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 10px;
}

.panel-label .title {
  font-family: var(--font-main);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.panel-link {
  position: absolute;
  inset: 0;
  display: block;
}

/* placeholder */
.panel.placeholder { background: #d0cdc6; }
.panel.placeholder::after {
  content: attr(data-label);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1a1a1a;
}

/* ── FOOTER ── */
footer {
  padding: 56px 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid #e0e0e0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
}

.footer-social {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
}

.footer-social .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social .social-icon {
  width: 20px;
  height: 20px;
  fill: var(--color-text);
  transition: fill 0.2s;
}

.footer-social .social-link:hover .social-icon { fill: var(--color-accent); }

.footer-email {
  font-family: var(--font-main);
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.footer-top { display: contents; }
.footer-bottom { color: var(--color-text); }

footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: var(--color-accent); }

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--color-accent); }


/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-logo { font-size: 18px; }
  .nav-logo-paint { font-size: 18px; }
  .panel { height: 49vh; }
  .panel-label { left: 24px; bottom: 40px; }
  .nav-overlay { padding: 0 32px; }
  footer { padding: 48px 24px; flex-direction: column; gap: 48px; text-align: left; align-items: flex-start; }
  .footer-right { align-items: flex-start; }

  /* Schovat lang-switch a social ikony z navu na mobilu — jsou v hamburger menu */
  .nav-social .lang-switch { display: none; }
  .nav-social .social-link { display: none; }

  /* Social ikony v overlay — mobil */
  .nav-overlay-social .social-icon { width: 36px; height: 36px; }
}
