
:root {
  --bg: #0a1220;
  --card: #121c33;
  --line: #1f2d4a;
  --gold: #f0b429;
  --txt: #fff;
  --mut: #9fb0cc;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
}

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

section {
  padding: 90px 0;
}

/* zkrácený horní odstup sekce (O mně, Galerie, Kontakt) */
.sectionTight {
  padding-top: 20px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Tlačítka ---------- */
.btnPrimary {
  background: var(--gold);
  color: #111;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 19px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  transition: background .2s, color .2s, border-color .2s;
}

.btnPrimary:hover {
  background: transparent;
  color: #fff;
  border-color: #fff6;
}

/* ---------- Hlavička ---------- */
.siteHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: transform .35s ease, background .3s, border-color .3s;
}

.siteHeader.isSolid {
  background: rgba(10, 18, 32, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.siteHeader.isHidden {
  transform: translateY(-100%);
}

.siteNav {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.navLink {
  font-size: 13px;
  font-weight: 600;
  transition: color .2s;
}

.navLink:hover {
  color: var(--gold);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: .5px;
  flex: 1;
}

.logo small {
  color: var(--gold);
  display: block;
  font-size: 11px;
}

.logoIcon {
  display: block;
  flex: none;
  width: 44px;
  height: 39px;
  object-fit: contain;
}

.navLinks {
  display: flex;
  gap: 36px;
}

.navActions {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* ---------- Hamburger a mobilní menu ---------- */
.menuToggle {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menuToggleBar {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform .3s, opacity .3s;
}

.menuToggle.isOpen .menuToggleBar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menuToggle.isOpen .menuToggleBar:nth-child(2) {
  opacity: 0;
}

.menuToggle.isOpen .menuToggleBar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobileMenu {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 40;
  background: var(--bg);
  padding: calc(78px + env(safe-area-inset-top, 0px)) 24px 28px;
  display: flex;
  flex-direction: column;
  border-bottom: 2px solid var(--gold);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .35s ease, visibility 0s .35s;
}

.mobileMenu.isOpen {
  transform: none;
  visibility: visible;
  transition: transform .35s ease;
}

.mobileMenu a {
  padding: 13px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  transition: color .2s;
}

.mobileMenu a:hover {
  color: var(--gold);
}

.mobileMenu .btnPrimary {
  text-align: center;
  margin-top: 16px;
}

/* ---------- Úvod (hero) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--card);
}

.heroImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 18, 32, .72), rgba(10, 18, 32, .08) 65%);
}

.heroContent {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 90px;
  padding-bottom: 50px;
}

.heroEyebrow {
  color: var(--gold);
  font-size: 13px;
}

.heroTitle {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.12;
  font-weight: 800;
  margin: 10px 0 24px;
  max-width: 560px;
}

.hero .btnPrimary {
  display: inline-block;
}

.hero .btnOutline {
  border: 1px solid #fff6;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  display: inline-block;
  transition: background .2s, color .2s, border-color .2s;
}

/* dvě tlačítka v úvodu: vedle sebe s mezerou, na úzkém displeji rovně pod sebou */
.heroButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .btnOutline:hover {
  color: var(--gold);
}

/* ---------- Nadpisy sekcí ---------- */
.sectionTitleCentered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 40px;
  font-weight: 800;
}

.sectionTitleCentered:before,
.sectionTitleCentered:after {
  content: "";
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.sectionTitleCentered:after {
  transform: scaleX(-1);
}

.sectionSubtitleCentered {
  text-align: center;
  color: var(--mut);
  font-size: 13px;
  margin: 6px 0 40px;
}

.sectionTitle {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
}

.sectionTitle:after {
  content: "";
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.sectionTitle.sectionTitleRight:before {
  content: "";
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.sectionTitle.sectionTitleRight:after {
  display: none;
}

.sectionSubtitle {
  font-size: 13px;
  color: var(--mut);
  margin-top: 2px;
}

/* ---------- Co vyrábím ---------- */
.servicesGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 auto;
}

.serviceCard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.serviceCardTitle {
  font-size: 14px;
  margin-bottom: 4px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  border: 1px solid #2a3a5c;
  border-left: 2px solid var(--gold);
  background: #1b2740;
  border-radius: 2px;
  padding: 4px 12px;
}

.tagRow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.serviceCardBottomTags .tagRow {
  margin-top: auto;
  padding-top: 8px;
}

.serviceCardStacked .tagRow {
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ---------- O mně ---------- */
.aboutFacts {
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--gold);
  border-radius: 6px;
  margin-top: 40px;
  padding: 36px 20px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  text-align: center;
  font-size: 12px;
  color: #cdd6e6;
}

.aboutFacts b {
  color: #fff;
}

.aboutFacts b.factHeading {
  display: block;
  font-size: 13px;
}

.factIcon {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2a3550;
  position: relative;
  margin: 0 auto 12px;
}

.factIcon:after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Galerie ---------- */
.galleryHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.galleryNote {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  font-size: 12px;
  color: var(--mut);
  max-width: 320px;
}

.galleryGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.galleryGrid + .galleryGrid {
  margin-top: 16px;
}

.galleryItem {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
}

.galleryItem img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.galleryToggle {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--gold);
  font: inherit;
  font-weight: 800;
  font-size: 20px;
  cursor: pointer;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.galleryToggle small {
  font-size: 12px;
  color: #fff;
  font-weight: 600;
}

.galleryToggle:hover,
.galleryToggle[aria-expanded="true"] {
  border-color: var(--gold);
}

.galleryExtra {
  display: none;
}

.galleryExtra.isOpen {
  display: grid;
}

/* ---------- Lightbox (zvětšená fotka) ---------- */
.galleryItem {
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}

.galleryItem:hover,
.galleryItem:focus-visible {
  border-color: var(--gold);
  transform: scale(1.02);
  outline: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 9, 16, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility 0s .25s;
}

.lightbox.isOpen {
  opacity: 1;
  visibility: visible;
  transition: opacity .25s;
}

.lightboxStage {
  width: min(88vw, calc(80vh * 4 / 3), 1000px);
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
}

.lightboxStage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lightbox button {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 1px solid #fff3;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.lightbox button:hover {
  background: var(--gold);
  color: #111;
  border-color: var(--gold);
}

.lightboxClose {
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: 16px;
}

.lightboxPrev {
  left: 12px;
  top: 50%;
  margin-top: -24px;
}

.lightboxNext {
  right: 12px;
  top: 50%;
  margin-top: -24px;
}

.lightboxCounter {
  position: absolute;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  color: var(--mut);
}

/* ---------- Kontakt ---------- */
.contactHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.facebookLink {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mut);
}

.contactHeading {
  text-align: right;
}

.contactLayout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.contactMap {
  border-radius: 6px;
  min-height: 230px;
  background:
    linear-gradient(#0000 49%, #c9b98a 49% 51%, #0000 51%),
    linear-gradient(90deg, #0000 60%, #d9d2b8 60% 62%, #0000 62%),
    #e8e4d6;
  position: relative;
  overflow: hidden;
}

.contactMap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 230px;
  border: 0;
}

.contactDetails {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 24px;
  text-align: right;
}

.contactItem {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contactItem:last-child {
  border: 0;
}

.contactLabel {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}

.contactValue {
  font-size: 17px;
}

.contactValue a {
  transition: color .2s;
}

.contactValue a:hover {
  color: var(--gold);
}

/* ---------- Patička ---------- */
.siteFooter {
  background: var(--card);
  padding: 32px 0 16px;
  font-size: 12px;
  color: var(--mut);
}

.footerLogo {
  margin-bottom: 12px;
}

.footerColumns {
  display: flex;
  justify-content: space-between;
}

.footerNavList {
  list-style: none;
  text-align: right;
  line-height: 2;
}

.footerNavList a {
  transition: color .2s;
}

.footerNavList a:hover {
  color: #fff;
}

.footerNavTitle {
  color: #fff;
  font-size: 14px;
  text-align: right;
}

.footerCopyright {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #fff;
}

.footerCredit {
  text-align: center;
  margin-top: 6px;
  font-size: 12px;
  color: var(--mut);
}

.footerCredit a {
  color: inherit;
  transition: color .2s;
}

.footerCredit a:hover {
  color: #fff;
}

/* ---------- Responzivita ---------- */
@media (max-width: 820px) {
  .navLinks,
  .navActions .btnPrimary {
    display: none;
  }

  .menuToggle {
    display: flex;
  }
}

@media (max-width: 700px) {
  .servicesGrid,
  .contactLayout {
    grid-template-columns: 1fr;
  }

  /* O mně: jeden bod pod druhým, ikona vlevo a text vpravo */
  .aboutFacts {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 22px;
    text-align: left;
    font-size: 14px;
  }

  .fact {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .factIcon {
    flex: none;
    margin: 0;
  }

  .aboutFacts b.factHeading {
    font-size: 15px;
  }

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

  /* tlačítko „+30 dalších fotografií“ / „Zobrazit méně“ přes celou šířku */
  .galleryToggle {
    grid-column: 1 / -1;
    aspect-ratio: auto;
    flex-direction: row;
    gap: 10px;
    padding: 18px 0;
  }

  .sectionTitle {
    font-size: 30px;
  }

  /* „Co vyrábím“ zůstane v jednom řádku: písmo i čárky se zmenšují s šířkou */
  .sectionTitleCentered {
    font-size: clamp(24px, 7.5vw, 30px);
    gap: 12px;
    white-space: nowrap;
  }

  .sectionTitleCentered:before,
  .sectionTitleCentered:after {
    width: clamp(14px, 5vw, 48px);
  }
}

/* kontakt: odkaz na Facebook a nadpis pod sebou, aby se nepřekrývaly */
@media (max-width: 560px) {
  .contactHeader {
    flex-direction: column;
    align-items: flex-end;
    gap: 24px;
  }

  .facebookLink {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .heroButtons {
    flex-direction: column;
    align-items: flex-start;
  }
}
