:root {
  --navy: #1F3A5F;
  --royal: #161C49;
  --emerald: #2d4a2d;
  --sage: #A3B18A;
  --rust: #8d4931;
  --burgundy: #692525;
  --champagne: #F7E7CE;
  --champagnegold: #dbc69a;

  --luk: #556882;
  --text: #1F3A5F;
  --background: #ffffff;
  --line: rgba(31,58,95,0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', serif;
  background: white;
  color: var(--text);

  overflow-x: hidden;

  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.8;

  letter-spacing: 0.2px;
}

.side-ribbon {
  position: fixed;
  top: 0;
  bottom: 0;
  margin-left: 40px;
  margin-right: 40px;

  width: 140px;

  background-color: #1F3A5F;

  /* obrázek jako tvar */
  -webkit-mask-image: url("media/ribbon.png");
  mask-image: url("media/ribbon.png");

  -webkit-mask-repeat: repeat-y;
  mask-repeat: repeat-y;

  -webkit-mask-size: contain;
  mask-size: contain;

  opacity: 0.18;

  z-index: 0;

  pointer-events: none;
}

.side-ribbon.left {
  left: 0;
}

.side-ribbon.right {
  right: 0;
  transform: scaleX(-1);
}

body {
  position: relative;
}

nav, header, section, footer {
  position: relative;
  z-index: 2;
}

/* NAVBAR */

.menu-icon{
    display: none;
    width: 35px;
    height: 35px;
}

nav {
  position: sticky;
  top: 0;
  z-index: 1000;

  padding: 18px 30px;

  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(31,58,95,0.08);

  transition: 0.3s ease;
  text-align: center;
}

nav.scrolled {
  padding: 12px 30px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

.nav-links {
  list-style: none;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
  position: relative;
  transition: 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;

  width: 0%;
  height: 1px;

  background: var(--navy);

  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* HERO */

header {
  min-height: 85vh;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  text-align: center;
  padding: 40px 20px;
}



header h1 {
  font-size: 5rem;
  font-weight: 500;
  letter-spacing: 2px;

  opacity: 0;
  transform: translateY(20px);

  animation: fadeHero 1.2s ease forwards;
}

header p {
  font-size: 1.9rem;
  font-weight: 500;

  margin-top: 24px;

  opacity: 0;
  transform: translateY(20px);

  animation: fadeHero 1.2s ease forwards;
  animation-delay: 0.4s;
}

@keyframes fadeHero {

  to {
    opacity: 1;
    transform: translateY(0);
  }

}

/* ORNAMENT */

.ornament {
  
  display: block;

  width: 500px;
  max-width: 80%;

  margin: 35px auto;

  opacity: 0;
  transform: translateY(20px);

  filter:
    drop-shadow(0 6px 14px rgba(0,0,0,0.05));
  filter: 
    grayscale(10%);
  animation: fadeHero 1.2s ease forwards;
}

.ornament-top {
  animation-delay: 0.2s;
}

.ornament-bottom {
  animation-delay: 0.8s;
}

/* SEKCE */

section {
  padding: 110px 10%;
  position: relative;
}

section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;

  transform: translateX(-50%);

  width: 1000px;
  height: 1px;
  max-width: 80%;

  background: var(--line);
}

section h2 {
  text-align: center;

  font-size: 3rem;
  font-weight: 600;

  margin-bottom: 24px;
}

section p {
  text-align: center;

  max-width: 900px;

  margin: auto;

  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.9;
}

.lukas {
  text-align: center;
  max-width: 900px;
  color: var(--luk);
  margin: auto;
  font-style: italic;
  font-size: 0.9rem;
}

/* SCROLL ANIMACE */

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* MAPA */

.map-container {
  margin-top: 40px;
  overflow: hidden;
  border-radius: 20px;

  box-shadow:
    0 15px 40px rgba(0,0,0,0.08);

  transition: 0.4s ease;
}

.map-container:hover {
  transform: translateY(-4px);
}

.map-container iframe {
  width: 100%;
  height: 420px;
  border: none;
}

/* FORMULÁŘ */

form {
  margin: 40px auto 0;
  max-width: 520px;

  display: flex;
  flex-direction: column;
  gap: 18px;
}

input,
select,
button {
  padding: 15px;
  border-radius: 12px;

  border: 1px solid rgba(31,58,95,0.15);

  font-size: 1.1rem;
  font-family: inherit;

  transition: 0.3s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--navy);

  box-shadow: 0 0 0 4px rgba(31,58,95,0.08);
}

button {
  background: var(--navy);
  color: white;
  cursor: pointer;
  border: none;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31,58,95,0.2);
}

/* BARVY */

.colors {
  margin-top: 40px;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.color-card {
  text-align: center;
  transition: 0.4s ease;
}

.color-card:hover {
  transform: translateY(-8px);
}

.color-circle {
  width: 140px;
  height: 140px;

  border-radius: 50%;

  margin-bottom: 14px;

  border: 1px solid rgba(0,0,0,0.05);

  box-shadow:
    inset 0 0 20px rgba(255,255,255,0.3),
    0 10px 20px rgba(0,0,0,0.08);
}

.royal {
  background: var(--royal);
}

.champagnegold {
  background: var(--champagnegold);
}

.emerald {
  background: var(--emerald);
}

.navy {
  background: var(--navy);
}

.sage {
  background: var(--sage);
}

.rust {
  background: var(--rust);
}

.burgundy {
  background: var(--burgundy);
}

.champagne {
  background: var(--champagne);
}

/* KONTAKTY */

.contact-grid {
  margin-top: 50px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;

  align-items: start;
}

.contact-card {
  text-align: center;

  padding: 20px;

  transition: 0.4s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
}

.contact-photo {
  width: 170px;
  height: 170px;

  margin: 0 auto 20px;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      rgba(31,58,95,0.12),
      rgba(163,177,138,0.18)
    );

  border: 1px solid rgba(31,58,95,0.12);

  position: relative;

  overflow: hidden;

  box-shadow:
    0 10px 25px rgba(0,0,0,0.08);
}

/* dekorativní placeholder */



.contact-card h3 {
  font-size: 2rem;
  font-weight: 500;

  margin-bottom: 6px;
}

.contact-card p {
  font-size: 1.1rem;
  opacity: 0.75;

  margin-bottom: 12px;
}

.contact-card a {
  text-decoration: none;
  color: var(--navy);

  font-size: 1.1rem;

  position: relative;
}

.contact-card a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -3px;

  width: 0%;
  height: 1px;

  background: var(--navy);

  transition: 0.3s ease;
}

.contact-card a:hover::after {
  width: 100%;
}

.gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.photo {
    width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* FOOTER */

footer {
  padding: 50px 20px;
  text-align: center;
  font-size: 1.2rem;
}

/* RESPONSIVE */

@media (max-width: 768px) {

  header h1 {
    font-size: 3rem;
  }

  header p {
    font-size: 1.2rem;
  }

  section {
    padding: 80px 8%;
    font-size: small;
  }

  section p {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.9;
  }

  .nav{
    text-align: center;
    padding-top: 30px;
    padding-bottom: 20px;
  }

  .nav-links {
    gap: 18px;
    
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .color-circle {
    width: 110px;
    height: 110px;
  }

  .menu-icon{
    display: inline;
    cursor: pointer;
    text-align: center;
  }

  .nav-links:not(.show) a {
    display: none;
  }

  .nav-links.show a {
    display: block;
  }

  .nav-links.show {
    max-height: 500px;
  }

  .side-ribbon {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 20px;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
  margin-left: 0px;
  margin-right: 0px;
  }
  
  .side-ribbon.left {
  left: 0;
  }

  .side-ribbon.right {
  right: 0;
  transform: scaleX(-1);
  }
}