/* ============================================================
   ATELIER U — styles.css
   Swiss-style Grotesque · Orange #F0501C · Pink #E8316E
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --orange:      #F0501C;
  --pink:        #E8316E;
  --white:       #FFFFFF;
  --off-white:   #F9F6F2;
  --dark:        #111111;
  --mid:         #5A5A5A;
  --light:       #E0DBD6;
  --font:        'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
  --radius:      4px;
  --section-pad: clamp(80px, 10vw, 140px);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

address {
  font-style: normal;
}

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav.scrolled {
  border-color: var(--light);
  box-shadow: 0 1px 20px rgba(0,0,0,0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  height: 64px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark);
}

.logo-img {
  height: 36px;
  width: auto;
}

.logo-text {
  display: none; /* shown via JS if image fails */
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.3s var(--ease);
}

.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--orange); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px clamp(24px, 5vw, 64px) 24px;
  border-top: 1px solid var(--light);
  background: var(--white);
}

.mobile-menu.open { display: flex; }

.mobile-link {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid var(--light);
  color: var(--dark);
  transition: color 0.2s;
}

.mobile-link:hover { color: var(--orange); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
  background: var(--off-white);
}

/* Subtle knit stitch background texture */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M7 14 L14 4 L21 14 M7 24 L14 14 L21 24' fill='none' stroke='%23F0501C' stroke-width='0.7' opacity='0.1'/%3E%3C/svg%3E");
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(60px, 8vw, 100px) clamp(24px, 5vw, 64px);
  max-width: 680px;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 28px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  line-height: 0.88;
  margin-bottom: 36px;
}

.hero-line {
  font-size: clamp(80px, 15vw, 180px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--dark);
  display: block;
}

.hero-u {
  color: var(--orange);
  position: relative;
  display: inline-flex;
  align-items: flex-start;
}

.u-dot {
  display: inline-block;
  width: clamp(12px, 2vw, 22px);
  height: clamp(12px, 2vw, 22px);
  background: var(--pink);
  border-radius: 50%;
  margin-left: 6px;
  margin-top: clamp(14px, 3vw, 30px);
  flex-shrink: 0;
}

.hero-sub {
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--mid);
  margin-bottom: 48px;
  border-left: 3px solid var(--pink);
  padding-left: 18px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero decorative SVG */
.hero-deco {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 45vw, 520px);
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1.2s var(--ease) 0.8s forwards;
}

.yarn-svg {
  width: 100%;
  height: auto;
}

.yarn-s {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawYarn 1.8s var(--ease) forwards;
}

.yarn-s:nth-child(1) { animation-delay: 0.9s; }
.yarn-s:nth-child(2) { animation-delay: 1.1s; }
.yarn-s:nth-child(3) { animation-delay: 1.3s; }
.yarn-s:nth-child(4) { animation-delay: 1.5s; }
.yarn-s:nth-child(5) { animation-delay: 1.7s; }
.yarn-s:nth-child(6) { animation-delay: 1.9s; }
.yarn-s:nth-child(7) { animation-delay: 2.1s; }
.yarn-s:nth-child(8) { animation-delay: 2.3s; }

.yarn-thread {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawYarn 1.2s var(--ease) forwards;
}

.yarn-thread:nth-child(9)  { animation-delay: 2.4s; }
.yarn-thread:nth-child(10) { animation-delay: 2.6s; }

.yarn-needle {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawYarn 1s var(--ease) 2.8s forwards;
}

@keyframes drawYarn {
  to { stroke-dashoffset: 0; }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: clamp(24px, 5vw, 64px);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}

.scroll-line {
  width: 48px;
  height: 1px;
  background: var(--orange);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { width: 48px; opacity: 1; }
  50% { width: 24px; opacity: 0.4; }
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: var(--dark);
  padding: 14px 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-flex;
  gap: 48px;
  animation: ticker 28s linear infinite;
  padding-right: 48px;
}

.ticker-inner span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

.ticker-inner span:nth-child(odd)  { color: var(--orange); }
.ticker-inner span:nth-child(even) { color: var(--white);  }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section {
  padding: var(--section-pad) 0;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 40px;
}

.section-heading {
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.section-heading em {
  font-style: italic;
  font-weight: 300;
  color: var(--pink);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero items animate immediately */
.hero .reveal-up {
  animation: heroReveal 0.8s var(--ease-out) var(--delay, 0s) both;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   IMAGE PLACEHOLDERS
   ============================================================ */
.img-placeholder {
  background: var(--off-white);
  border: 1.5px dashed var(--light);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.img-placeholder:hover {
  border-color: var(--orange);
}

.img-placeholder span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
  text-align: center;
  line-height: 1.5;
}

.placeholder-cross {
  width: 28px;
  height: 28px;
  position: relative;
}

.placeholder-cross::before,
.placeholder-cross::after {
  content: '';
  position: absolute;
  background: var(--light);
  border-radius: 2px;
  transition: background 0.3s;
}

.placeholder-cross::before { width: 2px; height: 28px; left: 13px; top: 0; }
.placeholder-cross::after  { width: 28px; height: 2px; top: 13px; left: 0; }
.img-placeholder:hover .placeholder-cross::before,
.img-placeholder:hover .placeholder-cross::after { background: var(--orange); }

/* Real images when added */
.img-placeholder img,
.atelier-image img,
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ============================================================
   ATELIER SECTION
   ============================================================ */
.section-atelier {
  background: var(--white);
}

.atelier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.atelier-text {
  padding-top: clamp(20px, 3vw, 40px);
}

.atelier-text .section-heading {
  margin-bottom: 40px;
}

.atelier-body p {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.75;
  color: var(--mid);
  margin-bottom: 20px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 32px;
  position: relative;
  padding-bottom: 4px;
}

.text-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1.5px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.text-link:hover::after { transform: scaleX(1); }

.atelier-image {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.img-placeholder.tall  { aspect-ratio: 3/4; }
.img-placeholder.small { aspect-ratio: 4/3; }

/* ============================================================
   WORKSHOPS SECTION
   ============================================================ */
.section-workshops {
  background: var(--off-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M7 14 L14 4 L21 14 M7 24 L14 14 L21 24' fill='none' stroke='%23E8316E' stroke-width='0.6' opacity='0.07'/%3E%3C/svg%3E");
  background-size: 28px 28px;
}

.workshops-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.workshops-intro {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
  color: var(--mid);
  align-self: end;
  padding-bottom: 6px;
}

.workshops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.workshop-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border: 1.5px solid transparent;
}

.workshop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  border-color: var(--orange);
}

.workshop-card:nth-child(2):hover { border-color: var(--pink); }

.img-placeholder.card-img {
  aspect-ratio: 4/3;
  border: none;
  border-radius: 0;
  background: var(--off-white);
}

.card-body {
  padding: 28px;
}

.card-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--orange);
  margin-bottom: 12px;
}

.workshop-card:nth-child(2) .card-num { color: var(--pink); }

.card-body h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--dark);
}

.card-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--mid);
  margin-bottom: 20px;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1.5px solid var(--light);
  border-radius: 100px;
  color: var(--mid);
}

.workshops-cta {
  margin-top: clamp(40px, 5vw, 64px);
  text-align: center;
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.section-galerie {
  background: var(--white);
}

.section-galerie .section-heading {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}

.img-placeholder.g-tall   { aspect-ratio: 3/4; grid-row: span 2; }
.img-placeholder.g-normal { aspect-ratio: 4/3; }
.img-placeholder.g-wide   { aspect-ratio: 16/9; grid-column: span 2; }

/* When real images replace placeholders */
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.5s var(--ease);
}

.gallery-grid > div:hover img {
  transform: scale(1.03);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.section-kontakt {
  background: var(--dark);
}

.section-kontakt .section-label {
  color: var(--pink);
}

.section-kontakt .section-heading {
  color: var(--white);
  margin-bottom: 48px;
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.kontakt-info .info-block {
  margin-bottom: 36px;
}

.info-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.kontakt-info p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

.kontakt-info a {
  color: var(--white);
  border-bottom: 1px solid var(--orange);
  transition: color 0.2s;
}

.kontakt-info a:hover { color: var(--orange); }

.social-links {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.social-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
}

.social-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--pink);
  transition: width 0.3s var(--ease);
}

.social-link:hover::after { width: 100%; }

/* Form */
.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--white);
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group select option { background: #222; color: var(--white); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  background: rgba(255,255,255,0.09);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 32px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn-primary:hover {
  background: var(--pink);
  border-color: var(--pink);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}

.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
}

.section-kontakt .btn-primary:hover {
  background: var(--pink);
  border-color: var(--pink);
}

.full-width { width: 100%; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0C0C0C;
  padding: 64px 0 0;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .footer-logo { height: 32px; margin-bottom: 16px; }
.footer-logo-text {
  display: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: right;
}

.footer-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--orange); }

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px clamp(24px, 5vw, 64px);
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.08em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-deco {
    position: absolute;
    right: -20%;
    top: 15%;
    transform: none;
    opacity: 0.25;
    width: clamp(200px, 60vw, 360px);
  }

  .atelier-grid {
    grid-template-columns: 1fr;
  }

  .atelier-image {
    flex-direction: row;
    gap: 12px;
  }

  .img-placeholder.tall  { flex: 1; aspect-ratio: 1; }
  .img-placeholder.small { flex: 1; aspect-ratio: 1; }

  .workshops-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .workshops-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .img-placeholder.g-wide { grid-column: span 2; }
  .img-placeholder.g-tall { grid-row: span 1; aspect-ratio: 4/3; }

  .kontakt-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 600px) {
  .hero-ctas { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }

  .workshops-grid { max-width: 100%; }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .img-placeholder.g-wide,
  .img-placeholder.g-tall { grid-column: span 1; grid-row: span 1; aspect-ratio: 4/3; }

  .footer-links { text-align: left; }
}
