/* Sarah Kocourková – portfolio */

@font-face {
  font-family: "Lexend Deca";
  src: url("/fonts/Lexend_Deca/static/LexendDeca-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lexend Deca";
  src: url("/fonts/Lexend_Deca/static/LexendDeca-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lexend Deca";
  src: url("/fonts/Lexend_Deca/static/LexendDeca-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Futura";
  src: url("/fonts/futura-medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Purisa";
  src: local("Purisa"), local("Purisa Medium"),
    url("/fonts/Purisa.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --white: #f7f5ef;
  --black: #0b0b0b;
  --turquoise: #0097b2;
  --sage: #c9d8c5;
  --muted: rgba(247, 245, 239, 0.55);
  --font-main: "Lexend Deca", system-ui, sans-serif;
  --font-tech: "Futura", "Century Gothic", sans-serif;
  --font-hand: "Purisa", sans-serif;
  --content-width: 1250px;
  --header-h: 72px;
  --gap: clamp(1rem, 2.5vw, 1.75rem);
  --page-pad: clamp(1.25rem, 5vw, 3.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--turquoise);
}

.site-container {
  width: 100%;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(8px);
}

.site-header .site-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo span {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 0.15rem;
}

.nav-main {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-main a.active {
  color: var(--turquoise);
}

/* Homepage */
.home-main {
  padding-top: var(--header-h);
}

.hero {
  padding: clamp(2rem, 5vw, 3.5rem) 0 3rem;
}

.hero-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: var(--hero-aspect, 16 / 9);
  transition: aspect-ratio 0.5s ease;
  overflow: hidden;
  background: #111;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

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

.hero-content {
  padding-top: clamp(2rem, 4vw, 3rem);
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 300;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.hero-claim {
  font-family: var(--font-hand);
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 400;
  color: var(--sage);
  line-height: 1.35;
  margin: 0;
}

/* Page sections */
.page {
  padding-top: var(--header-h);
}

.page-intro {
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
}

.page-intro h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 300;
  margin: 0 0 0.75rem;
}

.page-intro .claim {
  font-family: var(--font-hand);
  font-size: clamp(14px, 2vw, 18px);
  color: var(--sage);
  margin: 0;
}

.page-intro .meta-line {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.25rem;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  padding-bottom: 2rem;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filters button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  font: inherit;
  transition: color 0.2s;
}

.filters button:hover,
.filters button.active {
  color: var(--white);
}

.filters button.active {
  border-bottom: 1px solid var(--turquoise);
}

/* Masonry portfolio grid – 3 sloupce, vyvážená výška (jako Studio Flusser) */
.portfolio-grid {
  columns: 1;
  column-gap: var(--gap);
  column-fill: balance;
  padding-bottom: 4rem;
}

@media (min-width: 640px) {
  .portfolio-grid {
    columns: 2;
  }
}

@media (min-width: 960px) {
  .portfolio-grid {
    columns: 3;
  }
}

/* Architektura: 3 sloupce, opakující se vzor (12 pozic) – plná šířka site-container */
.portfolio-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
  width: 100%;
  padding-bottom: 4rem;
}

.portfolio-column {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
  min-width: 0;
}

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

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

.project-card {
  break-inside: avoid;
  margin-bottom: var(--gap);
  display: block;
}

.portfolio-column .project-card {
  margin-bottom: 0;
}

.project-card:hover {
  color: var(--white);
}

.project-card figure {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  transition: filter 0.35s ease, transform 0.6s ease;
}

.project-card.landscape img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.project-card.portrait img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.project-card.square img {
  aspect-ratio: 1;
  object-fit: cover;
}

/* Velikosti náhledů – Architektura */
.portfolio-columns .project-card--landscape-sm img {
  aspect-ratio: 3 / 2;
  max-height: clamp(140px, 18vw, 200px);
  object-fit: cover;
}

.portfolio-columns .project-card--landscape img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.portfolio-columns .project-card--portrait img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.portfolio-columns .project-card--portrait-lg img {
  aspect-ratio: 2 / 3;
  min-height: clamp(280px, 38vw, 420px);
  object-fit: cover;
}

.portfolio-columns .project-card--dominant img {
  aspect-ratio: 2 / 3.5;
  min-height: clamp(360px, 52vw, 560px);
  object-fit: cover;
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(11, 11, 11, 0);
  transition: background 0.35s ease;
  pointer-events: none;
}

.project-card-overlay h2 {
  font-family: var(--font-main);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  text-align: center;
  margin: 0;
  color: var(--white);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  line-height: 1.35;
}

@media (hover: hover) {
  .project-card:hover img {
    filter: brightness(0.55);
    transform: scale(1.01);
  }

  .project-card:hover .project-card-overlay {
    background: rgba(11, 11, 11, 0.25);
  }

  .project-card:hover .project-card-overlay h2 {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Touch: tap shows title (optional fallback via focus) */
@media (hover: none) {
  .project-card:focus-within img,
  .project-card:active img {
    filter: brightness(0.55);
  }

  .project-card:focus-within .project-card-overlay h2,
  .project-card:active .project-card-overlay h2 {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Project detail */
.project-detail {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 4rem;
}

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.project-gallery img {
  width: 100%;
}

.project-meta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(247, 245, 239, 0.12);
}

.project-meta h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 300;
  margin: 0 0 1.5rem;
}

.meta-grid {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  display: grid;
  gap: 0.5rem;
}

.meta-grid dt {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.meta-grid dd {
  margin: 0 0 1rem;
}

.project-description {
  margin-top: 2rem;
  max-width: 60ch;
  color: var(--muted);
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-tech);
  font-weight: 500;
}

.back-link::before {
  content: "← ";
  color: var(--turquoise);
}

/* Services */
.services-list {
  padding-bottom: 4rem;
}

.service-item {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(247, 245, 239, 0.1);
}

.service-item:first-child {
  border-top: none;
}

.service-item h2 {
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.service-item h2::before {
  content: "✳ ";
  color: var(--turquoise);
}

.service-claim {
  font-family: var(--font-hand);
  color: var(--sage);
  font-size: 14px;
  margin: 0 0 1rem;
}

.service-item p {
  color: var(--muted);
  max-width: 55ch;
  margin: 0;
}

.service-item ul {
  color: var(--muted);
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

/* About */
.about-content {
  max-width: 60ch;
  padding-bottom: 4rem;
}

.about-content p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.about-quote {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--sage);
  margin: 2rem 0 0;
  line-height: 1.4;
}

/* Contact */
.contact-block {
  max-width: 480px;
  padding-bottom: 4rem;
}

.contact-block p {
  color: var(--muted);
}

.contact-details {
  margin: 2rem 0 0;
  padding: 0;
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.contact-details__name {
  color: var(--white);
  font-weight: 400;
}

.contact-details a {
  color: var(--muted);
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--turquoise);
}

.btn-primary {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 1.75rem;
  background: transparent;
  border: 1px solid var(--turquoise);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-primary:hover {
  background: var(--turquoise);
  color: var(--black);
}

/* Footer */
.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(247, 245, 239, 0.08);
  font-family: var(--font-tech);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.site-footer .site-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--turquoise);
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 11, 11, 0.98);
  border-top: 1px solid rgba(0, 151, 178, 0.35);
  padding: clamp(1rem, 3vw, 1.35rem) 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 16rem;
  max-width: 40rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.cookie-banner__btn {
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--turquoise);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cookie-banner__btn--accept:hover {
  background: var(--turquoise);
  color: var(--black);
}

.cookie-banner__btn--deny {
  border-color: rgba(247, 245, 239, 0.28);
}

.cookie-banner__btn--deny:hover {
  border-color: rgba(247, 245, 239, 0.55);
  background: rgba(247, 245, 239, 0.06);
}

.cookie-banner__link {
  font-family: var(--font-tech);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--turquoise);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.cookie-banner__link:hover {
  color: var(--white);
}

/* Cookies policy page */
.legal-content {
  max-width: 42rem;
  padding-bottom: 4rem;
}

.legal-content h2 {
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 2.5rem 0 0.75rem;
  color: var(--turquoise);
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 1.5rem 0 0.5rem;
}

.legal-content p {
  margin: 0 0 1rem;
  color: rgba(247, 245, 239, 0.9);
}

.legal-content a {
  color: var(--turquoise);
}

.legal-content a:hover {
  color: var(--white);
}

.legal-sign {
  margin-top: 2rem;
  font-style: italic;
  color: var(--muted);
}

.cookie-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.25rem 0 2rem;
}

.cookie-settings__note {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.88rem;
  color: var(--turquoise);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__btn {
    width: 100%;
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .nav-main {
    position: fixed;
    top: var(--header-h);
    right: 0;
    flex-direction: column;
    background: var(--black);
    padding: 1.5rem 2rem;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s;
    border-left: 1px solid rgba(247, 245, 239, 0.08);
  }

  .nav-main.open {
    transform: translateX(0);
  }
}

.hidden {
  display: none !important;
}
