/* ============================================================
   VĚČNÉ MOMENTY — Photographer Portfolio
   ============================================================ */

@font-face {
  font-family: 'BlackMango';
  src: url('../fonts/BlackMango/font.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Reset & Base ─────────────────────────────────────────── */

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

:root {
  --gold:    #9b7a4a;
  --gold-lt: #b89060;
  --bg:      #f4ece0;
  --bg-alt:  #ebe2d3;
  --dark:    #2c1e12;
  --text:    #2c1e12;
  --muted:   #7a6550;
  --nav-h:   80px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

/* ── Utility ──────────────────────────────────────────────── */

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.6em;
}

.section-title {
  font-family: 'BlackMango', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: normal;
  line-height: 1.1;
  margin: 0 0 1em;
  color: var(--text);
}

.btn-gold {
  display: inline-block;
  padding: 0.85em 2.4em;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
  background: transparent;
}

.btn-gold:hover {
  background: var(--gold);
  color: #fff;
}

.btn-gold.filled {
  background: var(--gold);
  color: #fff;
}

.btn-gold.filled:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
}

/* ── Navigation ───────────────────────────────────────────── */

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s;
}

#navbar.scrolled {
  background: rgba(44, 30, 18, 0.96);
  box-shadow: 0 2px 30px rgba(0,0,0,0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-logo {
  font-family: 'BlackMango', Georgia, serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: #f4ece0;
  white-space: nowrap;
}

.nav-logo span { color: var(--gold-lt); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0; padding: 0;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,236,224,0.85);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold-lt);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--gold-lt); }
.nav-links a:hover::after { width: 100%; }

.nav-social {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.nav-social a {
  color: rgba(244,236,224,0.7);
  font-size: 1.1rem;
  transition: color 0.2s;
}

.nav-social a:hover { color: var(--gold-lt); }

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

.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: #f4ece0;
  transition: transform 0.3s, opacity 0.3s;
}

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

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(44, 30, 18, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 2rem;
  z-index: 999;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}

.nav-mobile.open { transform: translateY(0); }

.nav-mobile ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f4ece0;
  transition: color 0.2s;
}

.nav-mobile a:hover { color: var(--gold-lt); }

/* ── Hero ─────────────────────────────────────────────────── */

#hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/background3.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}

#hero.loaded .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(20,12,6,0.70) 0%,
    rgba(20,12,6,0.50) 50%,
    rgba(20,12,6,0.78) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
}

.hero-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s 0.3s forwards;
}

.hero-title {
  font-family: 'BlackMango', Georgia, serif;
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: normal;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #f4ece0;
  margin: 0 0 1.2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s 0.5s forwards;
}

.hero-sub {
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  color: rgba(244,236,224,0.75);
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s 0.8s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s 1.05s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(244,236,224,0.5);
  z-index: 2;
  animation: fadeIn 1s 1.5s both;
}

.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold-lt), transparent);
  animation: scrollPulse 2s 2s infinite;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ── Gallery Carousel ─────────────────────────────────────── */

#gallery {
  padding: 5rem 0;
  overflow: hidden;
  background: var(--bg);
}

.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 1.5rem;
}

.gallery-header .section-title { margin-bottom: 0.5em; }

.gallery-view-all {
  margin-top: 1rem;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}

.gallery-view-all:hover { color: var(--gold-lt); }

.carousel-track-wrapper { position: relative; }

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 1.2rem;
  padding: 0 1.5rem;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 auto;
  width: clamp(240px, 33vw, 460px);
}

.carousel-slide img {
  width: 100%;
  height: clamp(280px, 42vw, 500px);
  object-fit: cover;
  border-radius: 3px;
  transition: transform 0.5s ease;
}

.carousel-slide img:hover { transform: scale(1.02); }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.carousel-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
}

.carousel-btn:hover {
  background: var(--gold);
  color: #fff;
}

.carousel-dots { display: flex; gap: 0.5rem; }

.carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
  opacity: 0.4;
}

.carousel-dot.active {
  background: var(--gold);
  opacity: 1;
  transform: scale(1.4);
}

/* ── Services ─────────────────────────────────────────────── */

#services {
  padding: 5rem 1.5rem;
  background: var(--bg-alt);
}

.services-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.services-header { margin-bottom: 3rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(155,122,74,0.15);
  border: 1px solid rgba(155,122,74,0.15);
}

.service-card {
  padding: 2.5rem 2rem;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: background 0.3s;
  cursor: default;
}

.service-card:hover { background: var(--bg); }

.service-num {
  font-family: 'BlackMango', Georgia, serif;
  font-size: 2.4rem;
  color: rgba(155,122,74,0.3);
  line-height: 1;
}

.service-name {
  font-family: 'BlackMango', Georgia, serif;
  font-size: 1.3rem;
  font-weight: normal;
  color: var(--text);
  margin: 0;
}

.service-desc {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

/* ── About ────────────────────────────────────────────────── */

#about {
  padding: 5rem 1.5rem;
  background: var(--bg);
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-img-wrap { position: relative; }

.about-img-wrap img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 3px;
}

.about-img-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 60%;
  aspect-ratio: 1;
  border: 1.5px solid var(--gold);
  border-radius: 3px;
  pointer-events: none;
  opacity: 0.3;
}

.about-text p {
  font-size: 0.93rem;
  line-height: 1.9;
  color: var(--muted);
  margin: 0 0 1.1em;
}

.about-text p strong { color: var(--text); font-weight: 600; }

.about-stat-row {
  display: flex;
  gap: 2.5rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(155,122,74,0.2);
  border-bottom: 1px solid rgba(155,122,74,0.2);
}

.about-stat strong {
  display: block;
  font-family: 'BlackMango', Georgia, serif;
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}

.about-stat span {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3em;
  display: block;
}

/* ── Contact ──────────────────────────────────────────────── */

#contact {
  padding: 5rem 1.5rem;
  background: var(--bg-alt);
  text-align: center;
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact-inner p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 2.5rem;
}

.contact-ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1em 2.2em;
  border: 1.5px solid var(--gold);
  border-radius: 100px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  transition: background 0.3s, color 0.3s;
}

.contact-ig-link i { font-size: 1.15rem; }

.contact-ig-link:hover {
  background: var(--gold);
  color: #fff;
}

.contact-ig-handle {
  display: block;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ── Footer ───────────────────────────────────────────────── */

footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(155,122,74,0.2);
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(244,236,224,0.45);
  letter-spacing: 0.08em;
}

.footer-brand {
  font-family: 'BlackMango', Georgia, serif;
  font-size: 1rem;
  color: var(--gold-lt);
  letter-spacing: 0.1em;
}

/* ── Scroll-reveal ────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 992px) {
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-wrap { max-width: 460px; }
  .about-img-accent { display: none; }
}

@media (max-width: 768px) {
  .nav-links, .nav-social { display: none; }
  .hamburger { display: flex; }
  .nav-mobile { display: block; }
  footer { flex-direction: column; text-align: center; }
}
