/* ============================================
   STUDIO 61 GRZYBOWSKA — Design System
   Aesthetic: Luxury Minimal (Black/White/Gold)
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --black: #0A0A0A;
  --white: #FAFAF8;
  --gold: #C9A96E;
  --gold-light: #D4BA8A;
  --gold-dark: #A8884F;
  --gray-900: #1A1A1A;
  --gray-800: #222222;
  --gray-700: #333333;
  --gray-400: #999999;
  --gray-300: #BBBBBB;
  --gray-100: #F5F5F3;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --nav-h: 72px;
  --section-py: clamp(80px, 10vw, 140px);
  --container: min(1200px, 90vw);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--white);
  background: var(--black);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-family: var(--font-sans); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 500; }
p { max-width: 65ch; }

/* --- Layout --- */
.container { width: var(--container); margin: 0 auto; }
.section { padding: var(--section-py) 0; }
.section--light { background: var(--gray-100); color: var(--black); }
.section--dark { background: var(--gray-900); }

.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--gray-400); margin: 0 auto; }
.section--light .section-header p { color: var(--gray-700); }

.gold-line {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 20px auto 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 0;
  transition: var(--transition);
}
.btn--primary {
  background: var(--gold);
  color: var(--black);
}
.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,169,110,0.3);
}
.btn--outline {
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn--dark {
  background: var(--black);
  color: var(--white);
}
.btn--dark:hover {
  background: var(--gray-800);
  transform: translateY(-2px);
}
.btn--small {
  padding: 10px 24px;
  font-size: 0.7rem;
  letter-spacing: 2px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo img { height: 36px; }
.nav__logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 2px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav__link:hover, .nav__link.active {
  color: var(--white);
}
.nav__link:hover::after, .nav__link.active::after {
  width: 100%;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav__socials {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__socials a {
  color: rgba(255,255,255,0.35);
  transition: color 0.3s;
  display: flex;
  align-items: center;
}
.nav__socials a:hover { color: var(--gold); }
.nav__socials svg { width: 14px; height: 14px; }
.lang-switch {
  display: flex;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.lang-switch button {
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
  padding: 4px;
}
.lang-switch button.active, .lang-switch button:hover {
  color: var(--gold);
}
.nav__cta { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  padding: 4px 0;
}
.hamburger span {
  display: block;
  height: 1px;
  background: var(--white);
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--white);
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--gold); }

.mobile-menu__socials {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu__socials a {
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  transition: color 0.3s;
}
.mobile-menu__socials a:hover { color: var(--gold); }
.mobile-menu__socials svg { width: 22px; height: 22px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  will-change: transform;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.5) 0%,
    rgba(10,10,10,0.7) 60%,
    rgba(10,10,10,0.95) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid rgba(201,169,110,0.3);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}
.hero h1 { margin-bottom: 20px; }
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray-300);
  font-weight: 300;
  margin-bottom: 48px;
}
.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: scrollBounce 2s infinite;
}
.hero__scroll svg { width: 24px; height: 24px; stroke: var(--gray-400); }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   ABOUT
   ============================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about__text h2 { margin-bottom: 24px; }
.about__text p { color: var(--gray-300); margin-bottom: 24px; }
.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}
.about__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.about__feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  color: var(--gold);
}
.about__feature h4 {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.about__feature p {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.5;
}
.about__image {
  position: relative;
  overflow: hidden;
}
.about__image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
.about__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 120px;
  border: 2px solid var(--gold);
  transform: translate(20px, 20px);
  pointer-events: none;
}

/* ============================================
   SERVICES
   ============================================ */
.services__tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.services__tab {
  padding: 12px 24px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-400);
  border: 1px solid transparent;
  transition: var(--transition);
}
.services__tab.active, .services__tab:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.services__panel { display: none; }
.services__panel.active { display: block; }

.services__list {
  max-width: 800px;
  margin: 0 auto;
}
.service-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 16px;
}
.service-item__name {
  font-size: 1rem;
  font-weight: 400;
}
.service-item__meta {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-shrink: 0;
}
.service-item__duration {
  font-size: 0.8rem;
  color: var(--gray-400);
}
.service-item__price {
  font-weight: 500;
  color: var(--gold);
  white-space: nowrap;
}
.service-item__old-price {
  text-decoration: line-through;
  color: var(--gray-400);
  font-size: 0.85rem;
  margin-right: 4px;
}
.services__brands {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  color: var(--gray-400);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.portfolio__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}
.portfolio__item:nth-child(1),
.portfolio__item:nth-child(6) {
  grid-column: span 2;
  grid-row: span 2;
}
.portfolio__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.portfolio__item:hover img { transform: scale(1.06); }
.portfolio__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.3);
  opacity: 0;
  transition: opacity 0.4s;
}
.portfolio__item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--white);
  font-size: 2rem;
  z-index: 10;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 2rem;
  padding: 20px;
  z-index: 10;
}
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* ============================================
   TEAM
   ============================================ */
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--gray-900);
  transition: var(--transition);
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.team-card__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  margin: 0 auto 24px;
}
.team-card__name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.team-card__role {
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact__info h2 { margin-bottom: 32px; }
.contact__item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.contact__icon {
  font-size: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.contact__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-400);
  margin-bottom: 4px;
}
.contact__value {
  font-size: 1rem;
  color: var(--white);
}
.contact__value a:hover { color: var(--gold); }
.contact__hours {
  margin-top: 32px;
}
.contact__hours table {
  width: 100%;
  border-collapse: collapse;
}
.contact__hours td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
}
.contact__hours td:first-child { color: var(--gray-400); }
.contact__map {
  position: relative;
  min-height: 400px;
}
.contact__map iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border: 0;
  filter: grayscale(1) invert(1) contrast(1.1);
}
.contact__cta {
  text-align: center;
  margin-top: 64px;
}
.contact__socials {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
.contact__social {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}
.contact__social:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 48px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__copy {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.8s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__socials { display: none; }
  .hamburger { display: flex; }
  .about__grid { grid-template-columns: 1fr; }
  .about__image { order: -1; }
  .about__image img { height: 300px; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio__grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio__item:nth-child(1),
  .portfolio__item:nth-child(6) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__map { min-height: 300px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .hero__buttons { flex-direction: column; align-items: center; }
  .about__features { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .service-item { flex-direction: column; gap: 8px; }
  .service-item__meta { align-self: flex-end; }
  .footer__inner { flex-direction: column; text-align: center; }
}
