/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== VARIABLES ===== */
:root {
  --dark: #0E1C26;
  --blue: #1E3A48;
  --gold: #C7A25C;
  --light: #F2ECE2;
  --white: #ffffff;
  --container-padding: 1.5rem;
}

/* ===== GLOBAL ===== */
body {
  font-family: 'Instrument Sans', sans-serif;
}

/* ===== HERO ===== */
.hero {
  min-height: calc(100vh - 70px);
  margin-top: 70px;

  background-image: url("img/Bcard.png");
  background-size: cover;
  background-position: center 40%;
  position: relative;
  color: var(--white);
}


/* tmavý overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 28, 38, 0.70);
}

.hero-content {
  position: relative;
  padding-top: 10rem;
  padding-bottom: 4rem;
  max-width: 700px;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 3rem;
}

.hero-subtitle {
    font-size: 1.1rem;      /* default */
    line-height: 1.5;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 3rem;
}    

.hero-text {
  font-weight: 400;
  margin-bottom: 3rem;
  max-width: 500px;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  font-weight: 600;
  border-radius: 6px;
}

/* ===== HERO SUBPAGES ===== */
.hero--subpage {
  min-height: 42vh;
  background-image: url("img/hero-subpage1.webp");
  background-size: cover;
  background-position: center;
}

.hero--subpage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 28, 38, 0.55);
}

.hero--subpage .hero-content {
  padding-top: 8rem;
  padding-bottom: 3rem;
}

.hero--subpage h1 {
  font-size: 2.2rem;
}

.hero-media {
  display: none;
}

/*===== UNIVERSAL CONTAINER ====*/
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--dark); 
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--container-padding);
  position: relative;
}

  section, footer {
  scroll-margin-top: 90px;
}


.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}

.logo img {
  height: 32px;
  width: auto;
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--white);
  cursor: pointer;
}

.main-nav {
  display: none;
}

.main-nav.is-open {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  position: absolute;
  top: 100%;
  left: 0;
  right: 0;

  background: var(--dark);
  padding: 1rem var(--container-padding);
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 0.35rem 0;
}

.main-nav a:visited {
  color: var(--white);
}

.main-nav a.active {
  color: var(--light);
}

nav a::first-letter {
  transition: color 0.2s ease;
}

nav a:hover::first-letter {
  color: var(--gold);
}

  /* ===== INTRO SECTION ===== */
.intro {
  background: var(--light);
  color: var(--dark);
  padding: 6rem 0;
}

.intro-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.intro-image {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.intro-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* overlay */
.intro-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 28, 38, 0.25); /* tmavý overlay */
  pointer-events: none;
}

.intro h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  margin-top: 0;
}

.intro p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.intro p:last-child {
  margin-bottom: 0;
}

.price-list {
  max-width: 360px;
  margin: 2rem 0;
  font-size: 0.8rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0.35rem 0;
}

.price-row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.45rem;
  border-bottom: 1px dotted rgba(14, 28, 38, 0.3);
  z-index: 0;
}

.price-row span {
  background: var(--light);
  padding: 0 0.4rem;
  position: relative;
  z-index: 1;
}

.price-row span:last-child {
  font-weight: 600;
}

.price-note {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

.services {
  background: var(--blue);
  color: var(--white);
  padding: 6rem 0;
}

.services h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--light);
}

.services-subtitle {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: var(--gold);
}

/* Grid pro služby */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
  justify-items: center;
}

.services-grid a {
  text-decoration: none;
  color: inherit;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
  cursor: pointer;
}

.service-item img {
  width: 60px;
  height: 60px;
  display: block;
  margin: 0 0 1rem 0;
}

.service-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--light);
  text-align: center;
}

.service-item:hover {
  transform: translateY(-4px);
  opacity: 0.9;
}

/* ===== HOMEPAGE SAMPLE SLIDER ===== */

.sample {
  background: var(--light);
  color: var(--dark);
  padding: 6rem 0;
}

.sample-inner h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.sample-subtitle {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: var(--gold);
}

.sample-stage {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

#sample-main {
  width: 100%;
  max-width: 860px;   /* ← původní hodnota */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.sample-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.sample-arrow {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--dark);
  padding: 0.25rem 0.5rem;
}

.sample-arrow:hover {
  color: var(--gold);
}

.sample-dots {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sample-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(14,28,38,0.35);
  cursor: pointer;
  border: none;
}

.sample-dot.active {
  background: var(--dark);
}

/* ===== GALLERI SUBPAGE ===== */
.gallery {
  background: var(--light);
  color: var(--dark);
  padding: 6rem 0;
}

.gallery-inner h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.intro-image {
  position: relative;
  overflow: hidden;
}

.gallery-note {
  position: absolute;
  bottom: 16px;        /* vzdálenost odspodu */
  left: 50%;
  transform: translateX(-50%);

  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;

  padding: 0;          /* žádný pruh */
  background: none;    /* žádné pozadí */

  text-shadow: 0 2px 8px rgba(0,0,0,0.6); /* lepší čitelnost */
  z-index: 2;
}

.gallery-subtitle {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: var(--gold);
}

.gallery-block {
  position: relative;
}

 .gallery-section .gallery-main {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 1rem auto;

 /* aspect-ratio: 16 / 9;*/
  aspect-ratio: 4 / 3;
  object-fit: cover;

  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  cursor: zoom-in;
}

.gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;

  opacity: 0.65;
  border-radius: 6px;

  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-block:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.06);
}

.gallery-section {
  padding: 6rem 0;
}

.gallery-light {
  background: var(--light);
  color: var(--dark);
}

.gallery-blue {
  background: var(--blue);
  color: var(--white);
}


.gallery-block:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.06);
}

.gallery-section h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
}

/* ===== LIGHTBOX ===== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  font-weight: 300;
  transition: transform 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.1);
}

.intro-image a img {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.intro-image a:hover img {
  transform: scale(1.02);
  opacity: 0.9;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem var(--container-padding);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-left {
  font-size: 1.3rem;
  line-height: 1.8;
}

.footer-right p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
}

.icon {
  width: 30px;
  height: 30px;
  display: block;
  flex: 0 0 auto;
}

.icon--phone {
  width: 24px;
  height: 24px;
}

.footer-credits {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-left: var(--container-padding);
  font-size: 0.8rem;
  opacity: 0.25;
  text-align: right;
}

.footer-credits a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.footer-credits a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* ===== CONTACT PAGE ===== */
.contact-main {
  background: var(--light);
  color: var(--dark);
  padding: 6rem 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-top {
  text-align: center;
}

.contact-top h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-address {
  font-size: 1.1rem;
  line-height: 1.6;
}

.contact-map-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

.contact-map{
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.contact-map img:first-child{
  width: 100%;
  display: block;
  filter: grayscale(1) contrast(1.1);
}

.map-pin {
  position: absolute;
  width: 26px;
  height: 26px;

  left: 78%;
  top: 68%;
  transform: translate(-50%, -100%);
}

.gps-text {
  font-size: 1rem;
  color: var(--dark);
  line-height: 1.5;

  width: 100%;
  max-width: 520px;
  text-align: center;
}

.contact-right{
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-line{
  display: grid;
  grid-template-columns: 24px auto;
  column-gap: 12px;
  align-items: center;
  justify-content: center;
}

/* ===== DESKTOP ===== */
@media (min-width: 768px) {

  :root {
    --container-padding: 3rem;
  }

  /* HERO */
  .hero h1 {
    font-size: 3rem;
    margin-bottom: 4rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .hero-text {
    font-size: 1.1rem;
    max-width: 38ch;
  }

 /* HERO SUBPAGES */
  .hero--subpage {
    min-height: 38vh;
  }

  .hero--subpage h1 {
    font-size: 2.8rem;
  }

  .hero-content--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
  }

  .hero-textbox {
    flex: 1;
    max-width: 640px;
  }

  .hero-media {
    display: block; 
    flex: 0 0 500px;
    max-width: 540px;
  }

  .hero-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  }

  /* HEADER */
  
  .menu-toggle { display: none; }
  .main-nav { display: flex; flex-direction: row; gap: 2rem; }
  .main-nav.is-open { position: static; padding: 0; 
  }

  .main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
  }

  .logo img {
    height: 56px;
  }

  .logo span {
    font-size: 1.5rem;
  }

  /* INTRO */
  .intro {
    padding: 6rem var(--container-padding);
  }

  .intro-content {
    flex-direction: row;
    align-items: flex-start;
  }

  .intro-text,
  .intro-image {
    flex: 1;
}
 /* SERVICES */
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .service-item img,
  .service-item p {
    text-align: left;
  }

/* GALLERY */
  .gallery-thumbs {
    justify-content: flex-start;
  }
  .gallery-controls {
    justify-content: center;
  }

  .gallery-section .gallery-main {
    aspect-ratio: 4 / 3; 
    max-width: 1000px;
  }

/* FOOTER */
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
    
/* CONTACT */
  .contact-inner {
    grid-template-columns: 1fr 1fr;
    column-gap: 6rem;
    row-gap: 3rem;
    align-items: start;
  }

  .contact-top {
    grid-column: 1 / -1;
  }

  .contact-map {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .gps-text {
    margin: 0 auto;
  }

  .contact-map-wrap,
  .contact-right {
    padding-top: 2rem;
  }

  .contact-right{
    align-items: flex-start;
    text-align: left;
    margin-top: 150px;
    margin-left: 110px;
  }

  .contact-line{
    justify-content: flex-start;
  }

}