/* ================================
   VARIABLES
================================ */

:root {
  --text-gray: #aaaaaa;
  --magenta: #fe02b1;
  --light-pink: #ffafe6;
  --bg: #ffffff;
  --font-sans: "Helvetica Neue", Arial, sans-serif;

  --header-height: 80px;
  --page-padding-x: 70px;
  --grid-padding-x: 10%;
}




/* ================================
   RESET / BASE
================================ */

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  background: var(--bg);
  color: var(--text-gray);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

figure {
  margin: 0;
}

img {
  display: block;
}


/* ================================
   TYPOGRAPHY
================================ */

.text-large {
  font-size: 21.74px;
  font-weight: 700;
}

.text-medium {
  font-size: 20px;
  font-weight: 500;
}

.text-small {
  font-size: 13.62px;
  font-weight: 500;
}

.text-bottom {

  justify-content: flex-end;

}



.project-gap {

  margin-top: 20px;

}

/* ================================
   HEADER
================================ */

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.hero {
  height: var(--header-height);
  min-height: 70px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  background-color: white;

  background-image: linear-gradient(
    180deg,
    rgba(254, 2, 177, 0.6) 0%,
    rgba(254, 2, 177, 0.5) 10%,
    rgba(254, 2, 177, 0.4) 20%,
    rgba(254, 2, 177, 0.3) 30%,
    rgba(254, 2, 177, 0.2) 40%,
    rgba(254, 2, 177, 0.1) 50%,
    rgba(254, 2, 177, 0.03) 60%,
    rgba(254, 2, 177, 0) 70%
  );
}

.nav-links {
  position: relative;
  width: 100%;
  padding: 30px var(--page-padding-x);

  display: flex;
  align-items: center;
}

.nav-left {
  display: flex;
}

.nav-right {
  display: flex;
  gap: 80px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-gray);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.nav-links a:hover {
  color: var(--magenta);
  opacity: 0.5;
}

.site-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  color: var(--text-gray);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.site-title img {
  max-height: 20px;
  width: auto;
}
.menu-toggle,
.mobile-menu {
  display: none;
}

/* ================================
   HOMEPAGE PROJECT GRID
================================ */

.projects-section {
  margin: 0;
  padding: 0;
  background: #ffffff;
}

.projects-grid {
  width: 100%;
  margin: 0;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.project {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;

  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 0.6s ease;
}

.project:hover img {
  transform: scale(1.05);
}

.project .overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.55);
  opacity: 0;

  transition: opacity 0.4s ease;
}

.project:hover .overlay {
  opacity: 1;
}

.project-title {
  color: white;
  font-size: 17.54px;
  letter-spacing: 0.05em;
}


/* ================================
   PROJECT PAGES
================================ */

.fullbleed {
  width: 100%;
}

.fullbleed img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

:root {
  --grid-padding-x: 10%;
  --grid-padding-x-narrow: 20%;
}

.project-grid {
  margin: 40px 0 60px;
  padding-inline: var(--grid-padding-x);

  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  align-items: stretch;
}

.project-grid-narrow {
  margin: 40px 0 60px;
  padding-inline: var(--grid-padding-x-narrow);

  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  align-items: stretch;
}
.item {
  position: relative;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cell {
  height: 100%;
  padding: 10px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-row {
  grid-column: span 12;

  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 4px;
  align-items: end;
}

.intro-text {
  padding: 0 20px 0 0;
}

.intro-text p {
  margin: 0;
}

.intro-row img {
  width: 100%;
  height: auto;
}

.span-12 {
  grid-column: span 12;
}

.span-8 {
  grid-column: span 8;
}

.span-6 {
  grid-column: span 6;
}

.span-4 {
  grid-column: span 4;
}

.ratio-16x9 {
  aspect-ratio: 16 / 9;
}

.ratio-3x2 {
  aspect-ratio: 3 / 2;
}

.ratio-4x3 {
  aspect-ratio: 4 / 3;
}

.ratio-4x5 {
  aspect-ratio: 4 / 5;
}

.ratio-3x1 {
  aspect-ratio: 3 / 1;
}

.ratio-2x1 {
  aspect-ratio: 2 / 1;
}

.image-natural {
  aspect-ratio: auto;
}

.image-natural img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.text-block {
  height: 100%;
  padding: 0 0 8px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;

  background: #ffffff;
  color: var(--text-gray);
  text-align: left;
}

.text-block h2 {
  margin: 0 0 8px;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
}

.text-block-free {
  height: auto;

  padding-top: 20px;   /* mezera od poslední fotky */
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
}

.text-block-free p {
  margin: 0;

  font-size: 13.62px;
  line-height: 1.5;
  font-weight: 500;
}

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

.text-right {
  text-align: right;
}
.text-italic p {
  font-style: italic;
}



/* ================================
   ABOUT PAGE
================================ */

.about-page {
  padding-inline: var(--grid-padding-x);
  padding-top: 80px;
  padding-bottom: 70px;
}



.about-page {
  padding-inline: var(--grid-padding-x);
  padding-top: 80px;
  padding-bottom: 70px;
}

.about-grid {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 40px;
}

.about-bio,

.about-photo,

.about-info {
  width: 100%;
  text-align: center;
}

.about-photo {
  margin: 0;
}

.about-photo img {
  width: 100%;
  height: auto;
}

.about-bio p,

.about-info p {
  color: var(--text-gray);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}

.about-bio p {
  margin: 0;
}

.about-info p {
  margin: 0 0 32px;
}

.about-info p:last-child {
  margin-bottom: 0;
}

.about-contact-cta {
  margin-top: 70px;
  text-align: center;
}

.about-contact-cta p {
  margin: 0 0 40px;

  color: var(--text-gray);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.2;
}

.about-contact-cta a {
  color: var(--magenta);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  text-decoration: underline;

  transition: opacity 0.3s ease;
}

.about-contact-cta a:hover {
  opacity: 0.6;
}


/* ================================
   CONTACT PAGE
================================ */

.contact-page {
  padding-inline: var(--grid-padding-x);
  padding-top: 80px;
  padding-bottom: 100px;
}

.contact-top-text {
  margin-bottom: 90px;
  text-align: center;
}

.contact-top-text .contact-services {
  max-width: 750px;
  margin: 0 auto 45px;

  color: var(--text-gray);
  font-size: clamp(18px, 2vw, 32px);
  font-weight: 500;
  line-height: 1.35;
}

.contact-top-text .contact-tagline {
  max-width: 800px;
  margin: 0 auto 80px;

  color: var(--text-gray);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.3;
}

.contact-form-section {
  max-width: 900px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 12px;

  color: var(--text-gray);
  font-size: 13.62px;
  font-weight: 500;
  letter-spacing: 0.01;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 0;

  border: none;
  border-bottom: 1px solid var(--text-gray);
  background: transparent;

  color: var(--text-gray);
  font: inherit;
  outline: none;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-bottom-color: var(--magenta);
}

.contact-form button {
  align-self: flex-start;
  margin-top: 10px;

  border: none;
  background: transparent;
  color: var(--text-gray);

  font-size: 13.62px;
  font-weight: 500;
  letter-spacing: 0.01em;

  cursor: pointer;

  transition: color 0.3s ease, opacity 0.3s ease;
}

.contact-form button:hover {
  color: var(--magenta);
  opacity: 0.6;
}

/* ================================
   FOOTER CONTACT SECTION
================================ */

.contact-section {
  padding: 48px var(--page-padding-x);
}

.contact-inner {
  width: 100%;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.contact-left {
  text-align: left;
}

.contact-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.contact-right {
  display: flex;
  justify-content: flex-end;
}

.contact-item {
  margin: 4px 0;
  line-height: 1.25;

  color: var(--text-gray);
  font-size: 16px;
  font-weight: 500;
  
  
}

.contact-item,
.contact-center a,
.contact-right a {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

.contact-item a,
.contact-center a,
.contact-right a {
  color: var(--text-gray);
  text-decoration: none;
  letter-spacing: normal;

  transition: color 0.3s ease, opacity 0.3s ease;
}

.contact-item a:hover,
.contact-center a:hover,
.contact-right a:hover {
  color: var(--magenta);
  opacity: 0.5;
}

.instagram-icon {
  color: var(--text-gray);
  font-size: 24px;

  transition: color 0.3s ease, opacity 0.3s ease;
}

.instagram-icon:hover {
  color: var(--magenta);
}


/* ================================
   FOOTER
================================ */

.site-footer {
  padding: 100px var(--page-padding-x) 40px;

  color: var(--text-gray);
  font-weight: 500;
  text-align: left;

  background: linear-gradient(
    0deg,
    rgba(254, 2, 177, 0.4) 0%,
    rgba(254, 2, 177, 0.25) 30%,
    rgba(254, 2, 177, 0.15) 60%,
    rgba(254, 2, 177, 0.05) 80%,
    rgba(254, 2, 177, 0) 100%
  );
}


/* ================================
   SCROLL TO TOP BUTTON
================================ */

#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  left: 50%;
  z-index: 999;

  transform: translateX(-50%) translateY(10px);

  border: none;
  background: none;
  color: var(--text-gray);

  font-size: 26px;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;

  transition: color 0.3s ease, opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);

  animation: float 2s ease-in-out infinite;
}

#scrollTopBtn:hover {
  color: var(--magenta);
  transform: translateX(-50%) translateY(-3px);
}

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

  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}


/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1000px) {
  .project-grid {
    gap: 10px;
  }

  .span-8,
  .span-6 {
    grid-column: span 12;
  }

  .span-4 {
    grid-column: span 6;
  }

  .contact-grid .span-4,
  .contact-grid .span-8 {
    grid-column: span 12;
  }

  .about-grid {
    gap: 32px;
  }

  .about-bio,
  .about-photo,
  .about-info {
    grid-column: span 12;
  }

  .about-photo {
    max-width: 520px;
  }

  .about-bio p {
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  :root {
    --page-padding-x: 30px;
  }

  .nav-right {
    gap: 30px;
  }
}

@media (max-width: 800px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    height: 70px;
  }

  body {
    padding-top: 70px;
  }
}

@media (max-width: 600px) {
  .project-grid,
  .project-grid-narrow {
    padding-inline: 7%;
    gap: 8px;
  }

  .span-12,
  .span-8,
  .span-6,
  .span-4 {
    grid-column: span 12;
  }

  /* Úvod projektu: text zvlášť, fotografie pod ním */
  .intro-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .intro-text {
    width: 100%;
    padding: 0;
    order: 1;
  }

  .intro-text p {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
  }

  .intro-row > img,
  .intro-row > .item,
  .intro-row > figure {
    width: 100%;
    order: 2;
  }

  .intro-row img {
    width: 100%;
    height: auto;
  }

  .text-block-free {
    width: 100%;
    padding-top: 20px;
  }

  .text-block-free p {
    font-size: 16px;
    line-height: 1.4;
  }

  /* Mobilní header */
  .hero {
    position: relative;
    height: 70px;
    min-height: 70px;
    overflow: visible;
  }

  .nav-links {
    position: relative;
    width: 100%;
    height: 70px;
    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .desktop-nav {
    display: none;
  }

  .site-title {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;

    transform: translate(-50%, -50%);
  }

  .site-title img {
    width: auto;
    max-width: min(68vw, 250px);
    max-height: 16px;
  }

.menu-toggle {
  position: absolute;
  top: 50%;
  right: 16px;
  z-index: 5;

  width: 30px;
  height: 30px;
  padding: 5px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;

  border: 0;
  background: transparent;
  cursor: pointer;

  transform: translateY(-50%);
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;

  background: var(--text-gray);
  border-radius: 999px;
  opacity: 0.75;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

  .mobile-menu {
    position: absolute;
    top: 70px;
    left: 0;
    z-index: 4;

    width: 100%;
    padding: 28px 20px 32px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;

    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-10px);

    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.25s ease;
  }

  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-menu a {
    color: var(--text-gray);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
  }

  .mobile-menu a:hover {
    color: var(--magenta);
    opacity: 0.6;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .contact-left,
  .contact-right {
    justify-content: center;
    text-align: center;
  }

  .contact-center {
    gap: 12px;
  }
}


@media (max-width: 420px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 70px;
    padding: 0;
  }

  .nav-links {
    padding-inline: 14px;
  }

  .site-title img {
    max-width: 62vw;
    max-height: 15px;
  }

  .menu-toggle {
    right: 10px;
  }
}